1(function(tA,g0){typeof exports=="object"&&typeof module<"u"?module.exports=g0():typeof define=="function"&&define.amd?define(g0):(tA=typeof globalThis<"u"?globalThis:tA||self,tA.mermaid=g0())})(this,function(){"use strict";function tA(s){for(var o=[],f=1;f<arguments.length;f++)o[f-1]=arguments[f];var p=Array.from(typeof s=="string"?[s]:s);p[p.length-1]=p[p.length-1].replace(/\r?\n([\t ]*)$/,"");var w=p.reduce(function(_,A){var N=A.match(/\n([\t ]+|(?!\s).)/g);return N?_.concat(N.map(function(B){var F,H;return(H=(F=B.match(/[\t ]/g))===null||F===void 0?void 0:F.length)!==null&&H!==void 0?H:0})):_},[]);if(w.length){var k=new RegExp(` 2[ ]{`+Math.min.apply(Math,w)+"}","g");p=p.map(function(_){return _.replace(k,` 3`)})}p[0]=p[0].replace(/^\r?\n/,"");var b=p[0];return o.forEach(function(_,A){var N=b.match(/(?:^|\n)( *)$/),B=N?N[1]:"",F=_;typeof _=="string"&&_.includes(` 4`)&&(F=String(_).split(` 5`).map(function(H,j){return j===0?H:""+B+H}).join(` 6`)),b+=F+p[A+1]}),b}var g0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function GAe(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var hfe={},n4t={get exports(){return hfe},set exports(s){hfe=s}};(function(s,o){(function(f,p){s.exports=p()})(g0,function(){var f=1e3,p=6e4,w=36e5,k="millisecond",b="second",_="minute",A="hour",N="day",B="week",F="month",H="quarter",j="year",V="date",Z="Invalid Date",ae=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,le=/\[([^\]]+)]|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,ce={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(De){var X=["th","st","nd","rd"],Re=De%100;return"["+De+(X[(Re-20)%10]||X[Re]||X[0])+"]"}},be=function(De,X,Re){var pe=String(De);return!pe||pe.length>=X?De:""+Array(X+1-pe.length).join(Re)+De},xe={s:be,z:function(De){var X=-De.utcOffset(),Re=Math.abs(X),pe=Math.floor(Re/60),Ge=Re%60;return(X<=0?"+":"-")+be(pe,2,"0")+":"+be(Ge,2,"0")},m:function De(X,Re){if(X.date()<Re.date())return-De(Re,X);var pe=12*(Re.year()-X.year())+(Re.month()-X.month()),Ge=X.clone().add(pe,F),de=Re-Ge<0,ct=X.clone().add(pe+(de?-1:1),F);return+(-(pe+(Re-Ge)/(de?Ge-ct:ct-Ge))||0)},a:function(De){return De<0?Math.ceil(De)||0:Math.floor(De)},p:function(De){return{M:F,y:j,w:B,d:N,D:V,h:A,m:_,s:b,ms:k,Q:H}[De]||String(De||"").toLowerCase().replace(/s$/,"")},u:function(De){return De===void 0}},Ee="en",Me={};Me[Ee]=ce;var fe=function(De){return De instanceof ke},ye=function De(X,Re,pe){var Ge;if(!X)return Ee;if(typeof X=="string"){var de=X.toLowerCase();Me[de]&&(Ge=de),Re&&(Me[de]=Re,Ge=de);var ct=X.split("-");if(!Ge&&ct.length>1)return De(ct[0])}else{var bt=X.name;Me[bt]=X,Ge=bt}return!pe&&Ge&&(Ee=Ge),Ge||!pe&&Ee},re=function(De,X){if(fe(De))return De.clone();var Re=typeof X=="object"?X:{};return Re.date=De,Re.args=arguments,new ke(Re)},we=xe;we.l=ye,we.i=fe,we.w=function(De,X){return re(De,{locale:X.$L,utc:X.$u,x:X.$x,$offset:X.$offset})};var ke=function(){function De(Re){this.$L=ye(Re.locale,null,!0),this.parse(Re)}var X=De.prototype;return X.parse=function(Re){this.$d=function(pe){var Ge=pe.date,de=pe.utc;if(Ge===null)return new Date(NaN);if(we.u(Ge))return new Date;if(Ge instanceof Date)return new Date(Ge);if(typeof Ge=="string"&&!/Z$/i.test(Ge)){var ct=Ge.match(ae);if(ct){var bt=ct[2]-1||0,St=(ct[7]||"0").substring(0,3);return de?new Date(Date.UTC(ct[1],bt,ct[3]||1,ct[4]||0,ct[5]||0,ct[6]||0,St)):new Date(ct[1],bt,ct[3]||1,ct[4]||0,ct[5]||0,ct[6]||0,St)}}return new Date(Ge)}(Re),this.$x=Re.x||{},this.init()},X.init=function(){var Re=this.$d;this.$y=Re.getFullYear(),this.$M=Re.getMonth(),this.$D=Re.getDate(),this.$W=Re.getDay(),this.$H=Re.getHours(),this.$m=Re.getMinutes(),this.$s=Re.getSeconds(),this.$ms=Re.getMilliseconds()},X.$utils=function(){return we},X.isValid=function(){return this.$d.toString()!==Z},X.isSame=function(Re,pe){var Ge=re(Re);return this.startOf(pe)<=Ge&&Ge<=this.endOf(pe)},X.isAfter=function(Re,pe){return re(Re)<this.startOf(pe)},X.isBefore=function(Re,pe){return this.endOf(pe)<re(Re)},X.$g=function(Re,pe,Ge){return we.u(Re)?this[pe]:this.set(Ge,Re)},X.unix=function(){return Math.floor(this.valueOf()/1e3)},X.valueOf=function(){return this.$d.getTime()},X.startOf=function(Re,pe){var Ge=this,de=!!we.u(pe)||pe,ct=we.p(Re),bt=function(xt,Tt){var wt=we.w(Ge.$u?Date.UTC(Ge.$y,Tt,xt):new Date(Ge.$y,Tt,xt),Ge);return de?wt:wt.endOf(N)},St=function(xt,Tt){return we.w(Ge.toDate()[xt].apply(Ge.toDate("s"),(de?[0,0,0,0]:[23,59,59,999]).slice(Tt)),Ge)},yt=this.$W,Mt=this.$M,nn=this.$D,dn="set"+(this.$u?"UTC":"");switch(ct){case j:return de?bt(1,0):bt(31,11);case F:return de?bt(1,Mt):bt(0,Mt+1);case B:var vt=this.$locale().weekStart||0,Lr=(yt<vt?yt+7:yt)-vt;return bt(de?nn-Lr:nn+(6-Lr),Mt);case N:case V:return St(dn+"Hours",0);case A:return St(dn+"Minutes",1);case _:return St(dn+"Seconds",2);case b:return St(dn+"Milliseconds",3);default:return this.clone()}},X.endOf=function(Re){return this.startOf(Re,!1)},X.$set=function(Re,pe){var Ge,de=we.p(Re),ct="set"+(this.$u?"UTC":""),bt=(Ge={},Ge[N]=ct+"Date",Ge[V]=ct+"Date",Ge[F]=ct+"Month",Ge[j]=ct+"FullYear",Ge[A]=ct+"Hours",Ge[_]=ct+"Minutes",Ge[b]=ct+"Seconds",Ge[k]=ct+"Milliseconds",Ge)[de],St=de===N?this.$D+(pe-this.$W):pe;if(de===F||de===j){var yt=this.clone().set(V,1);yt.$d[bt](St),yt.init(),this.$d=yt.set(V,Math.min(this.$D,yt.daysInMonth())).$d}else bt&&this.$d[bt](St);return this.init(),this},X.set=function(Re,pe){return this.clone().$set(Re,pe)},X.get=function(Re){return this[we.p(Re)]()},X.add=function(Re,pe){var Ge,de=this;Re=Number(Re);var ct=we.p(pe),bt=function(Mt){var nn=re(de);return we.w(nn.date(nn.date()+Math.round(Mt*Re)),de)};if(ct===F)return this.set(F,this.$M+Re);if(ct===j)return this.set(j,this.$y+Re);if(ct===N)return bt(1);if(ct===B)return bt(7);var St=(Ge={},Ge[_]=p,Ge[A]=w,Ge[b]=f,Ge)[ct]||1,yt=this.$d.getTime()+Re*St;return we.w(yt,this)},X.subtract=function(Re,pe){return this.add(-1*Re,pe)},X.format=function(Re){var pe=this,Ge=this.$locale();if(!this.isValid())return Ge.invalidDate||Z;var de=Re||"YYYY-MM-DDTHH:mm:ssZ",ct=we.z(this),bt=this.$H,St=this.$m,yt=this.$M,Mt=Ge.weekdays,nn=Ge.months,dn=function(Tt,wt,At,He){return Tt&&(Tt[wt]||Tt(pe,de))||At[wt].slice(0,He)},vt=function(Tt){return we.s(bt%12||12,Tt,"0")},Lr=Ge.meridiem||function(Tt,wt,At){var He=Tt<12?"AM":"PM";return At?He.toLowerCase():He},xt={YY:String(this.$y).slice(-2),YYYY:this.$y,M:yt+1,MM:we.s(yt+1,2,"0"),MMM:dn(Ge.monthsShort,yt,nn,3),MMMM:dn(nn,yt),D:this.$D,DD:we.s(this.$D,2,"0"),d:String(this.$W),dd:dn(Ge.weekdaysMin,this.$W,Mt,2),ddd:dn(Ge.weekdaysShort,this.$W,Mt,3),dddd:Mt[this.$W],H:String(bt),HH:we.s(bt,2,"0"),h:vt(1),hh:vt(2),a:Lr(bt,St,!0),A:Lr(bt,St,!1),m:String(St),mm:we.s(St,2,"0"),s:String(this.$s),ss:we.s(this.$s,2,"0"),SSS:we.s(this.$ms,3,"0"),Z:ct};return de.replace(le,function(Tt,wt){return wt||xt[Tt]||ct.replace(":","")})},X.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},X.diff=function(Re,pe,Ge){var de,ct=we.p(pe),bt=re(Re),St=(bt.utcOffset()-this.utcOffset())*p,yt=this-bt,Mt=we.m(this,bt);return Mt=(de={},de[j]=Mt/12,de[F]=Mt,de[H]=Mt/3,de[B]=(yt-St)/6048e5,de[N]=(yt-St)/864e5,de[A]=yt/w,de[_]=yt/p,de[b]=yt/f,de)[ct]||yt,Ge?Mt:we.a(Mt)},X.daysInMonth=function(){return this.endOf(F).$D},X.$locale=function(){return Me[this.$L]},X.locale=function(Re,pe){if(!Re)return this.$L;var Ge=this.clone(),de=ye(Re,pe,!0);return de&&(Ge.$L=de),Ge},X.clone=function(){return we.w(this.$d,this)},X.toDate=function(){return new Date(this.valueOf())},X.toJSON=function(){return this.isValid()?this.toISOString():null},X.toISOString=function(){return this.$d.toISOString()},X.toString=function(){return this.$d.toUTCString()},De}(),he=ke.prototype;return re.prototype=he,[["$ms",k],["$s",b],["$m",_],["$H",A],["$W",N],["$M",F],["$y",j],["$D",V]].forEach(function(De){he[De[1]]=function(X){return this.$g(X,De[0],De[1])}}),re.extend=function(De,X){return De.$i||(De(X,ke,re),De.$i=!0),re},re.locale=ye,re.isDayjs=fe,re.unix=function(De){return re(1e3*De)},re.en=Me[Ee],re.Ls=Me,re.p={},re})})(n4t);const Qg=hfe,s5={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},je={trace:(...s)=>{},debug:(...s)=>{},info:(...s)=>{},warn:(...s)=>{},error:(...s)=>{},fatal:(...s)=>{}},ffe=function(s="fatal"){let o=s5.fatal;typeof s=="string"?(s=s.toLowerCase(),s in s5&&(o=s5[s])):typeof s=="number"&&(o=s),je.trace=()=>{},je.debug=()=>{},je.info=()=>{},je.warn=()=>{},je.error=()=>{},je.fatal=()=>{},o<=s5.fatal&&(je.fatal=console.error?console.error.bind(console,$b("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",$b("FATAL"))),o<=s5.error&&(je.error=console.error?console.error.bind(console,$b("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",$b("ERROR"))),o<=s5.warn&&(je.warn=console.warn?console.warn.bind(console,$b("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",$b("WARN"))),o<=s5.info&&(je.info=console.info?console.info.bind(console,$b("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",$b("INFO"))),o<=s5.debug&&(je.debug=console.debug?console.debug.bind(console,$b("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",$b("DEBUG"))),o<=s5.trace&&(je.trace=console.debug?console.debug.bind(console,$b("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",$b("TRACE")))},$b=s=>`%c${Qg().format("ss.SSS")} : ${s} : `;var dfe={};Object.defineProperty(dfe,"__esModule",{value:!0});var a5=dfe.sanitizeUrl=void 0,r4t=/^([^\w]*)(javascript|data|vbscript)/im,i4t=/&#(\w+)(^\w|;)?/g,s4t=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,a4t=/^([^:]+):/gm,o4t=[".","/"];function c4t(s){return o4t.indexOf(s[0])>-1}function u4t(s){return s.replace(i4t,function(o,f){return String.fromCharCode(f)})}function l4t(s){var o=u4t(s||"").replace(s4t,"").trim();if(!o)return"about:blank";if(c4t(o))return o;var f=o.match(a4t);if(!f)return o;var p=f[0];return r4t.test(p)?"about:blank":o}a5=dfe.sanitizeUrl=l4t;function HV(s,o){return s==null||o==null?NaN:s<o?-1:s>o?1:s>=o?0:NaN}function h4t(s,o){return s==null||o==null?NaN:o<s?-1:o>s?1:o>=s?0:NaN}function gfe(s){let o,f,p;s.length!==2?(o=HV,f=(_,A)=>HV(s(_),A),p=(_,A)=>s(_)-A):(o=s===HV||s===h4t?s:f4t,f=s,p=s);function w(_,A,N=0,B=_.length){if(N<B){if(o(A,A)!==0)return B;do{const F=N+B>>>1;f(_[F],A)<0?N=F+1:B=F}while(N<B)}return N}function k(_,A,N=0,B=_.length){if(N<B){if(o(A,A)!==0)return B;do{const F=N+B>>>1;f(_[F],A)<=0?N=F+1:B=F}while(N<B)}return N}function b(_,A,N=0,B=_.length){const F=w(_,A,N,B-1);return F>N&&p(_[F-1],A)>-p(_[F],A)?F-1:F}return{left:w,center:b,right:k}}function f4t(){return 0}function d4t(s){return s===null?NaN:+s}const g4t=gfe(HV).right;gfe(d4t).center;const p4t=g4t;class qAe extends Map{constructor(o,f=w4t){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:f}}),o!=null)for(const[p,w]of o)this.set(p,w)}get(o){return super.get(VAe(this,o))}has(o){return super.has(VAe(this,o))}set(o,f){return super.set(b4t(this,o),f)}delete(o){return super.delete(v4t(this,o))}}function VAe({_intern:s,_key:o},f){const p=o(f);return s.has(p)?s.get(p):f}function b4t({_intern:s,_key:o},f){const p=o(f);return s.has(p)?s.get(p):(s.set(p,f),f)}function v4t({_intern:s,_key:o},f){const p=o(f);return s.has(p)&&(f=s.get(p),s.delete(p)),f}function w4t(s){return s!==null&&typeof s=="object"?s.valueOf():s}var pfe=Math.sqrt(50),bfe=Math.sqrt(10),vfe=Math.sqrt(2);function m4t(s,o,f){var p,w=-1,k,b,_;if(o=+o,s=+s,f=+f,s===o&&f>0)return[s];if((p=o<s)&&(k=s,s=o,o=k),(_=UAe(s,o,f))===0||!isFinite(_))return[];if(_>0){let A=Math.round(s/_),N=Math.round(o/_);for(A*_<s&&++A,N*_>o&&--N,b=new Array(k=N-A+1);++w<k;)b[w]=(A+w)*_}else{_=-_;let A=Math.round(s*_),N=Math.round(o*_);for(A/_<s&&++A,N/_>o&&--N,b=new Array(k=N-A+1);++w<k;)b[w]=(A+w)/_}return p&&b.reverse(),b}function UAe(s,o,f){var p=(o-s)/Math.max(0,f),w=Math.floor(Math.log(p)/Math.LN10),k=p/Math.pow(10,w);return w>=0?(k>=pfe?10:k>=bfe?5:k>=vfe?2:1)*Math.pow(10,w):-Math.pow(10,-w)/(k>=pfe?10:k>=bfe?5:k>=vfe?2:1)}function wfe(s,o,f){var p=Math.abs(o-s)/Math.max(0,f),w=Math.pow(10,Math.floor(Math.log(p)/Math.LN10)),k=p/w;return k>=pfe?w*=10:k>=bfe?w*=5:k>=vfe&&(w*=2),o<s?-w:w}function y4t(s,o){let f;if(o===void 0)for(const p of s)p!=null&&(f<p||f===void 0&&p>=p)&&(f=p);else{let p=-1;for(let w of s)(w=o(w,++p,s))!=null&&(f<w||f===void 0&&w>=w)&&(f=w)}return f}function k4t(s,o){let f;if(o===void 0)for(const p of s)p!=null&&(f>p||f===void 0&&p>=p)&&(f=p);else{let p=-1;for(let w of s)(w=o(w,++p,s))!=null&&(f>w||f===void 0&&w>=w)&&(f=w)}return f}function x4t(s){return s}var zV=1,mfe=2,yfe=3,GV=4,KAe=1e-6;function E4t(s){return"translate("+s+",0)"}function T4t(s){return"translate(0,"+s+")"}function _4t(s){return o=>+s(o)}function C4t(s,o){return o=Math.max(0,s.bandwidth()-o*2)/2,s.round()&&(o=Math.round(o)),f=>+s(f)+o}function S4t(){return!this.__axis}function WAe(s,o){var f=[],p=null,w=null,k=6,b=6,_=3,A=typeof window<"u"&&window.devicePixelRatio>1?0:.5,N=s===zV||s===GV?-1:1,B=s===GV||s===mfe?"x":"y",F=s===zV||s===yfe?E4t:T4t;function H(j){var V=p??(o.ticks?o.ticks.apply(o,f):o.domain()),Z=w??(o.tickFormat?o.tickFormat.apply(o,f):x4t),ae=Math.max(k,0)+_,le=o.range(),ce=+le[0]+A,be=+le[le.length-1]+A,xe=(o.bandwidth?C4t:_4t)(o.copy(),A),Ee=j.selection?j.selection():j,Me=Ee.selectAll(".domain").data([null]),fe=Ee.selectAll(".tick").data(V,o).order(),ye=fe.exit(),re=fe.enter().append("g").attr("class","tick"),we=fe.select("line"),ke=fe.select("text");Me=Me.merge(Me.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),fe=fe.merge(re),we=we.merge(re.append("line").attr("stroke","currentColor").attr(B+"2",N*k)),ke=ke.merge(re.append("text").attr("fill","currentColor").attr(B,N*ae).attr("dy",s===zV?"0em":s===yfe?"0.71em":"0.32em")),j!==Ee&&(Me=Me.transition(j),fe=fe.transition(j),we=we.transition(j),ke=ke.transition(j),ye=ye.transition(j).attr("opacity",KAe).attr("transform",function(he){return isFinite(he=xe(he))?F(he+A):this.getAttribute("transform")}),re.attr("opacity",KAe).attr("transform",function(he){var De=this.parentNode.__axis;return F((De&&isFinite(De=De(he))?De:xe(he))+A)})),ye.remove(),Me.attr("d",s===GV||s===mfe?b?"M"+N*b+","+ce+"H"+A+"V"+be+"H"+N*b:"M"+A+","+ce+"V"+be:b?"M"+ce+","+N*b+"V"+A+"H"+be+"V"+N*b:"M"+ce+","+A+"H"+be),fe.attr("opacity",1).attr("transform",function(he){return F(xe(he)+A)}),we.attr(B+"2",N*k),ke.attr(B,N*ae).text(Z),Ee.filter(S4t).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",s===mfe?"start":s===GV?"end":"middle"),Ee.each(function(){this.__axis=xe})}return H.scale=function(j){return arguments.length?(o=j,H):o},H.ticks=function(){return f=Array.from(arguments),H},H.tickArguments=function(j){return arguments.length?(f=j==null?[]:Array.from(j),H):f.slice()},H.tickValues=function(j){return arguments.length?(p=j==null?null:Array.from(j),H):p&&p.slice()},H.tickFormat=function(j){return arguments.length?(w=j,H):w},H.tickSize=function(j){return arguments.length?(k=b=+j,H):k},H.tickSizeInner=function(j){return arguments.length?(k=+j,H):k},H.tickSizeOuter=function(j){return arguments.length?(b=+j,H):b},H.tickPadding=function(j){return arguments.length?(_=+j,H):_},H.offset=function(j){return arguments.length?(A=+j,H):A},H}function A4t(s){return WAe(zV,s)}function L4t(s){return WAe(yfe,s)}var M4t={value:()=>{}};function YAe(){for(var s=0,o=arguments.length,f={},p;s<o;++s){if(!(p=arguments[s]+"")||p in f||/[\s.]/.test(p))throw new Error("illegal type: "+p);f[p]=[]}return new qV(f)}function qV(s){this._=s}function D4t(s,o){return s.trim().split(/^|\s+/).map(function(f){var p="",w=f.indexOf(".");if(w>=0&&(p=f.slice(w+1),f=f.slice(0,w)),f&&!o.hasOwnProperty(f))throw new Error("unknown type: "+f);return{type:f,name:p}})}qV.prototype=YAe.prototype={constructor:qV,on:function(s,o){var f=this._,p=D4t(s+"",f),w,k=-1,b=p.length;if(arguments.length<2){for(;++k<b;)if((w=(s=p[k]).type)&&(w=I4t(f[w],s.name)))return w;return}if(o!=null&&typeof o!="function")throw new Error("invalid callback: "+o);for(;++k<b;)if(w=(s=p[k]).type)f[w]=XAe(f[w],s.name,o);else if(o==null)for(w in f)f[w]=XAe(f[w],s.name,null);return this},copy:function(){var s={},o=this._;for(var f in o)s[f]=o[f].slice();return new qV(s)},call:function(s,o){if((w=arguments.length-2)>0)for(var f=new Array(w),p=0,w,k;p<w;++p)f[p]=arguments[p+2];if(!this._.hasOwnProperty(s))throw new Error("unknown type: "+s);for(k=this._[s],p=0,w=k.length;p<w;++p)k[p].value.apply(o,f)},apply:function(s,o,f){if(!this._.hasOwnProperty(s))throw new Error("unknown type: "+s);for(var p=this._[s],w=0,k=p.length;w<k;++w)p[w].value.apply(o,f)}};function I4t(s,o){for(var f=0,p=s.length,w;f<p;++f)if((w=s[f]).name===o)return w.value}function XAe(s,o,f){for(var p=0,w=s.length;p<w;++p)if(s[p].name===o){s[p]=M4t,s=s.slice(0,p).concat(s.slice(p+1));break}return f!=null&&s.push({name:o,value:f}),s}var kfe="http://www.w3.org/1999/xhtml";const QAe={svg:"http://www.w3.org/2000/svg",xhtml:kfe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function VV(s){var o=s+="",f=o.indexOf(":");return f>=0&&(o=s.slice(0,f))!=="xmlns"&&(s=s.slice(f+1)),QAe.hasOwnProperty(o)?{space:QAe[o],local:s}:s}function O4t(s){return function(){var o=this.ownerDocument,f=this.namespaceURI;return f===kfe&&o.documentElement.namespaceURI===kfe?o.createElement(s):o.createElementNS(f,s)}}function N4t(s){return function(){return this.ownerDocument.createElementNS(s.space,s.local)}}function ZAe(s){var o=VV(s);return(o.local?N4t:O4t)(o)}function P4t(){}function xfe(s){return s==null?P4t:function(){return this.querySelector(s)}}function B4t(s){typeof s!="function"&&(s=xfe(s));for(var o=this._groups,f=o.length,p=new Array(f),w=0;w<f;++w)for(var k=o[w],b=k.length,_=p[w]=new Array(b),A,N,B=0;B<b;++B)(A=k[B])&&(N=s.call(A,A.__data__,B,k))&&("__data__"in A&&(N.__data__=A.__data__),_[B]=N);return new eg(p,this._parents)}function JAe(s){return s==null?[]:Array.isArray(s)?s:Array.from(s)}function F4t(){return[]}function eLe(s){return s==null?F4t:function(){return this.querySelectorAll(s)}}function R4t(s){return function(){return JAe(s.apply(this,arguments))}}function j4t(s){typeof s=="function"?s=R4t(s):s=eLe(s);for(var o=this._groups,f=o.length,p=[],w=[],k=0;k<f;++k)for(var b=o[k],_=b.length,A,N=0;N<_;++N)(A=b[N])&&(p.push(s.call(A,A.__data__,N,b)),w.push(A));return new eg(p,w)}function tLe(s){return function(){return this.matches(s)}}function nLe(s){return function(o){return o.matches(s)}}var $4t=Array.prototype.find;function H4t(s){return function(){return $4t.call(this.children,s)}}function z4t(){return this.firstElementChild}function G4t(s){return this.select(s==null?z4t:H4t(typeof s=="function"?s:nLe(s)))}var q4t=Array.prototype.filter;function V4t(){return Array.from(this.children)}function U4t(s){return function(){return q4t.call(this.children,s)}}function K4t(s){return this.selectAll(s==null?V4t:U4t(typeof s=="function"?s:nLe(s)))}function W4t(s){typeof s!="function"&&(s=tLe(s));for(var o=this._groups,f=o.length,p=new Array(f),w=0;w<f;++w)for(var k=o[w],b=k.length,_=p[w]=[],A,N=0;N<b;++N)(A=k[N])&&s.call(A,A.__data__,N,k)&&_.push(A);return new eg(p,this._parents)}function rLe(s){return new Array(s.length)}function Y4t(){return new eg(this._enter||this._groups.map(rLe),this._parents)}function UV(s,o){this.ownerDocument=s.ownerDocument,this.namespaceURI=s.namespaceURI,this._next=null,this._parent=s,this.__data__=o}UV.prototype={constructor:UV,appendChild:function(s){return this._parent.insertBefore(s,this._next)},insertBefore:function(s,o){return this._parent.insertBefore(s,o)},querySelector:function(s){return this._parent.querySelector(s)},querySelectorAll:function(s){return this._parent.querySelectorAll(s)}};function X4t(s){return function(){return s}}function Q4t(s,o,f,p,w,k){for(var b=0,_,A=o.length,N=k.length;b<N;++b)(_=o[b])?(_.__data__=k[b],p[b]=_):f[b]=new UV(s,k[b]);for(;b<A;++b)(_=o[b])&&(w[b]=_)}function Z4t(s,o,f,p,w,k,b){var _,A,N=new Map,B=o.length,F=k.length,H=new Array(B),j;for(_=0;_<B;++_)(A=o[_])&&(H[_]=j=b.call(A,A.__data__,_,o)+"",N.has(j)?w[_]=A:N.set(j,A));for(_=0;_<F;++_)j=b.call(s,k[_],_,k)+"",(A=N.get(j))?(p[_]=A,A.__data__=k[_],N.delete(j)):f[_]=new UV(s,k[_]);for(_=0;_<B;++_)(A=o[_])&&N.get(H[_])===A&&(w[_]=A)}function J4t(s){return s.__data__}function e5t(s,o){if(!arguments.length)return Array.from(this,J4t);var f=o?Z4t:Q4t,p=this._parents,w=this._groups;typeof s!="function"&&(s=X4t(s));for(var k=w.length,b=new Array(k),_=new Array(k),A=new Array(k),N=0;N<k;++N){var B=p[N],F=w[N],H=F.length,j=t5t(s.call(B,B&&B.__data__,N,p)),V=j.length,Z=_[N]=new Array(V),ae=b[N]=new Array(V),le=A[N]=new Array(H);f(B,F,Z,ae,le,j,o);for(var ce=0,be=0,xe,Ee;ce<V;++ce)if(xe=Z[ce]){for(ce>=be&&(be=ce+1);!(Ee=ae[be])&&++be<V;);xe._next=Ee||null}}return b=new eg(b,p),b._enter=_,b._exit=A,b}function t5t(s){return typeof s=="object"&&"length"in s?s:Array.from(s)}function n5t(){return new eg(this._exit||this._groups.map(rLe),this._parents)}function r5t(s,o,f){var p=this.enter(),w=this,k=this.exit();return typeof s=="function"?(p=s(p),p&&(p=p.selection())):p=p.append(s+""),o!=null&&(w=o(w),w&&(w=w.selection())),f==null?k.remove():f(k),p&&w?p.merge(w).order():w}function i5t(s){for(var o=s.selection?s.selection():s,f=this._groups,p=o._groups,w=f.length,k=p.length,b=Math.min(w,k),_=new Array(w),A=0;A<b;++A)for(var N=f[A],B=p[A],F=N.length,H=_[A]=new Array(F),j,V=0;V<F;++V)(j=N[V]||B[V])&&(H[V]=j);for(;A<w;++A)_[A]=f[A];return new eg(_,this._parents)}function s5t(){for(var s=this._groups,o=-1,f=s.length;++o<f;)for(var p=s[o],w=p.length-1,k=p[w],b;--w>=0;)(b=p[w])&&(k&&b.compareDocumentPosition(k)^4&&k.parentNode.insertBefore(b,k),k=b);return this}function a5t(s){s||(s=o5t);function o(F,H){return F&&H?s(F.__data__,H.__data__):!F-!H}for(var f=this._groups,p=f.length,w=new Array(p),k=0;k<p;++k){for(var b=f[k],_=b.length,A=w[k]=new Array(_),N,B=0;B<_;++B)(N=b[B])&&(A[B]=N);A.sort(o)}return new eg(w,this._parents).order()}function o5t(s,o){return s<o?-1:s>o?1:s>=o?0:NaN}function c5t(){var s=arguments[0];return arguments[0]=this,s.apply(null,arguments),this}function u5t(){return Array.from(this)}function l5t(){for(var s=this._groups,o=0,f=s.length;o<f;++o)for(var p=s[o],w=0,k=p.length;w<k;++w){var b=p[w];if(b)return b}return null}function h5t(){let s=0;for(const o of this)++s;return s}function f5t(){return!this.node()}function d5t(s){for(var o=this._groups,f=0,p=o.length;f<p;++f)for(var w=o[f],k=0,b=w.length,_;k<b;++k)(_=w[k])&&s.call(_,_.__data__,k,w);return this}function g5t(s){return function(){this.removeAttribute(s)}}function p5t(s){return function(){this.removeAttributeNS(s.space,s.local)}}function b5t(s,o){return function(){this.setAttribute(s,o)}}function v5t(s,o){return function(){this.setAttributeNS(s.space,s.local,o)}}function w5t(s,o){return function(){var f=o.apply(this,arguments);f==null?this.removeAttribute(s):this.setAttribute(s,f)}}function m5t(s,o){return function(){var f=o.apply(this,arguments);f==null?this.removeAttributeNS(s.space,s.local):this.setAttributeNS(s.space,s.local,f)}}function y5t(s,o){var f=VV(s);if(arguments.length<2){var p=this.node();return f.local?p.getAttributeNS(f.space,f.local):p.getAttribute(f)}return this.each((o==null?f.local?p5t:g5t:typeof o=="function"?f.local?m5t:w5t:f.local?v5t:b5t)(f,o))}function iLe(s){return s.ownerDocument&&s.ownerDocument.defaultView||s.document&&s||s.defaultView}function k5t(s){return function(){this.style.removeProperty(s)}}function x5t(s,o,f){return function(){this.style.setProperty(s,o,f)}}function E5t(s,o,f){return function(){var p=o.apply(this,arguments);p==null?this.style.removeProperty(s):this.style.setProperty(s,p,f)}}function T5t(s,o,f){return arguments.length>1?this.each((o==null?k5t:typeof o=="function"?E5t:x5t)(s,o,f??"")):nA(this.node(),s)}function nA(s,o){return s.style.getPropertyValue(o)||iLe(s).getComputedStyle(s,null).getPropertyValue(o)}function _5t(s){return function(){delete this[s]}}function C5t(s,o){return function(){this[s]=o}}function S5t(s,o){return function(){var f=o.apply(this,arguments);f==null?delete this[s]:this[s]=f}}function A5t(s,o){return arguments.length>1?this.each((o==null?_5t:typeof o=="function"?S5t:C5t)(s,o)):this.node()[s]}function sLe(s){return s.trim().split(/^|\s+/)}function Efe(s){return s.classList||new aLe(s)}function aLe(s){this._node=s,this._names=sLe(s.getAttribute("class")||"")}aLe.prototype={add:function(s){var o=this._names.indexOf(s);o<0&&(this._names.push(s),this._node.setAttribute("class",this._names.join(" ")))},remove:function(s){var o=this._names.indexOf(s);o>=0&&(this._names.splice(o,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(s){return this._names.indexOf(s)>=0}};function oLe(s,o){for(var f=Efe(s),p=-1,w=o.length;++p<w;)f.add(o[p])}function cLe(s,o){for(var f=Efe(s),p=-1,w=o.length;++p<w;)f.remove(o[p])}function L5t(s){return function(){oLe(this,s)}}function M5t(s){return function(){cLe(this,s)}}function D5t(s,o){return function(){(o.apply(this,arguments)?oLe:cLe)(this,s)}}function I5t(s,o){var f=sLe(s+"");if(arguments.length<2){for(var p=Efe(this.node()),w=-1,k=f.length;++w<k;)if(!p.contains(f[w]))return!1;return!0}return this.each((typeof o=="function"?D5t:o?L5t:M5t)(f,o))}function O5t(){this.textContent=""}function N5t(s){return function(){this.textContent=s}}function P5t(s){return function(){var o=s.apply(this,arguments);this.textContent=o??""}}function B5t(s){return arguments.length?this.each(s==null?O5t:(typeof s=="function"?P5t:N5t)(s)):this.node().textContent}function F5t(){this.innerHTML=""}function R5t(s){return function(){this.innerHTML=s}}function j5t(s){return function(){var o=s.apply(this,arguments);this.innerHTML=o??""}}function $5t(s){return arguments.length?this.each(s==null?F5t:(typeof s=="function"?j5t:R5t)(s)):this.node().innerHTML}function H5t(){this.nextSibling&&this.parentNode.appendChild(this)}function z5t(){return this.each(H5t)}function G5t(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function q5t(){return this.each(G5t)}function V5t(s){var o=typeof s=="function"?s:ZAe(s);return this.select(function(){return this.appendChild(o.apply(this,arguments))})}function U5t(){return null}function K5t(s,o){var f=typeof s=="function"?s:ZAe(s),p=o==null?U5t:typeof o=="function"?o:xfe(o);return this.select(function(){return this.insertBefore(f.apply(this,arguments),p.apply(this,arguments)||null)})}function W5t(){var s=this.parentNode;s&&s.removeChild(this)}function Y5t(){return this.each(W5t)}function X5t(){var s=this.cloneNode(!1),o=this.parentNode;return o?o.insertBefore(s,this.nextSibling):s}function Q5t(){var s=this.cloneNode(!0),o=this.parentNode;return o?o.insertBefore(s,this.nextSibling):s}function Z5t(s){return this.select(s?Q5t:X5t)}function J5t(s){return arguments.length?this.property("__data__",s):this.node().__data__}function e6t(s){return function(o){s.call(this,o,this.__data__)}}function t6t(s){return s.trim().split(/^|\s+/).map(function(o){var f="",p=o.indexOf(".");return p>=0&&(f=o.slice(p+1),o=o.slice(0,p)),{type:o,name:f}})}function n6t(s){return function(){var o=this.__on;if(o){for(var f=0,p=-1,w=o.length,k;f<w;++f)k=o[f],(!s.type||k.type===s.type)&&k.name===s.name?this.removeEventListener(k.type,k.listener,k.options):o[++p]=k;++p?o.length=p:delete this.__on}}}function r6t(s,o,f){return function(){var p=this.__on,w,k=e6t(o);if(p){for(var b=0,_=p.length;b<_;++b)if((w=p[b]).type===s.type&&w.name===s.name){this.removeEventListener(w.type,w.listener,w.options),this.addEventListener(w.type,w.listener=k,w.options=f),w.value=o;return}}this.addEventListener(s.type,k,f),w={type:s.type,name:s.name,value:o,listener:k,options:f},p?p.push(w):this.__on=[w]}}function i6t(s,o,f){var p=t6t(s+""),w,k=p.length,b;if(arguments.length<2){var _=this.node().__on;if(_){for(var A=0,N=_.length,B;A<N;++A)for(w=0,B=_[A];w<k;++w)if((b=p[w]).type===B.type&&b.name===B.name)return B.value}return}for(_=o?r6t:n6t,w=0;w<k;++w)this.each(_(p[w],o,f));return this}function uLe(s,o,f){var p=iLe(s),w=p.CustomEvent;typeof w=="function"?w=new w(o,f):(w=p.document.createEvent("Event"),f?(w.initEvent(o,f.bubbles,f.cancelable),w.detail=f.detail):w.initEvent(o,!1,!1)),s.dispatchEvent(w)}function s6t(s,o){return function(){return uLe(this,s,o)}}function a6t(s,o){return function(){return uLe(this,s,o.apply(this,arguments))}}function o6t(s,o){return this.each((typeof o=="function"?a6t:s6t)(s,o))}function*c6t(){for(var s=this._groups,o=0,f=s.length;o<f;++o)for(var p=s[o],w=0,k=p.length,b;w<k;++w)(b=p[w])&&(yield b)}var Tfe=[null];function eg(s,o){this._groups=s,this._parents=o}function eN(){return new eg([[document.documentElement]],Tfe)}function u6t(){return this}eg.prototype=eN.prototype={constructor:eg,select:B4t,selectAll:j4t,selectChild:G4t,selectChildren:K4t,filter:W4t,data:e5t,enter:Y4t,exit:n5t,join:r5t,merge:i5t,selection:u6t,order:s5t,sort:a5t,call:c5t,nodes:u5t,node:l5t,size:h5t,empty:f5t,each:d5t,attr:y5t,style:T5t,property:A5t,classed:I5t,text:B5t,html:$5t,raise:z5t,lower:q5t,append:V5t,insert:K5t,remove:Y5t,clone:Z5t,datum:J5t,on:i6t,dispatch:o6t,[Symbol.iterator]:c6t};function sr(s){return typeof s=="string"?new eg([[document.querySelector(s)]],[document.documentElement]):new eg([[s]],Tfe)}function _fe(s){return typeof s=="string"?new eg([document.querySelectorAll(s)],[document.documentElement]):new eg([JAe(s)],Tfe)}function tN(s,o,f){s.prototype=o.prototype=f,f.constructor=s}function KV(s,o){var f=Object.create(s.prototype);for(var p in o)f[p]=o[p];return f}function SE(){}var nN=.7,WV=1/nN,rA="\\s*([+-]?\\d+)\\s*",rN="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l6t=/^#([0-9a-f]{3,8})$/,h6t=new RegExp(`^rgb\\(${rA},${rA},${rA}\\)$`),f6t=new RegExp(`^rgb\\(${Xy},${Xy},${Xy}\\)$`),d6t=new RegExp(`^rgba\\(${rA},${rA},${rA},${rN}\\)$`),g6t=new RegExp(`^rgba\\(${Xy},${Xy},${Xy},${rN}\\)$`),p6t=new RegExp(`^hsl\\(${rN},${Xy},${Xy}\\)$`),b6t=new RegExp(`^hsla\\(${rN},${Xy},${Xy},${rN}\\)$`),lLe={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};tN(SE,AE,{copy(s){return Object.assign(new this.constructor,this,s)},displayable(){return this.rgb().displayable()},hex:hLe,formatHex:hLe,formatHex8:v6t,formatHsl:w6t,formatRgb:fLe,toString:fLe});function hLe(){return this.rgb().formatHex()}function v6t(){return this.rgb().formatHex8()}function w6t(){return wLe(this).formatHsl()}function fLe(){return this.rgb().formatRgb()}function AE(s){var o,f;return s=(s+"").trim().toLowerCase(),(o=l6t.exec(s))?(f=o[1].length,o=parseInt(o[1],16),f===6?dLe(o):f===3?new p0(o>>8&15|o>>4&240,o>>4&15|o&240,(o&15)<<4|o&15,1):f===8?YV(o>>24&255,o>>16&255,o>>8&255,(o&255)/255):f===4?YV(o>>12&15|o>>8&240,o>>8&15|o>>4&240,o>>4&15|o&240,((o&15)<<4|o&15)/255):null):(o=h6t.exec(s))?new p0(o[1],o[2],o[3],1):(o=f6t.exec(s))?new p0(o[1]*255/100,o[2]*255/100,o[3]*255/100,1):(o=d6t.exec(s))?YV(o[1],o[2],o[3],o[4]):(o=g6t.exec(s))?YV(o[1]*255/100,o[2]*255/100,o[3]*255/100,o[4]):(o=p6t.exec(s))?vLe(o[1],o[2]/100,o[3]/100,1):(o=b6t.exec(s))?vLe(o[1],o[2]/100,o[3]/100,o[4]):lLe.hasOwnProperty(s)?dLe(lLe[s]):s==="transparent"?new p0(NaN,NaN,NaN,0):null}function dLe(s){return new p0(s>>16&255,s>>8&255,s&255,1)}function YV(s,o,f,p){return p<=0&&(s=o=f=NaN),new p0(s,o,f,p)}function gLe(s){return s instanceof SE||(s=AE(s)),s?(s=s.rgb(),new p0(s.r,s.g,s.b,s.opacity)):new p0}function Cfe(s,o,f,p){return arguments.length===1?gLe(s):new p0(s,o,f,p??1)}function p0(s,o,f,p){this.r=+s,this.g=+o,this.b=+f,this.opacity=+p}tN(p0,Cfe,KV(SE,{brighter(s){return s=s==null?WV:Math.pow(WV,s),new p0(this.r*s,this.g*s,this.b*s,this.opacity)},darker(s){return s=s==null?nN:Math.pow(nN,s),new p0(this.r*s,this.g*s,this.b*s,this.opacity)},rgb(){return this},clamp(){return new p0(LE(this.r),LE(this.g),LE(this.b),XV(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:pLe,formatHex:pLe,formatHex8:m6t,formatRgb:bLe,toString:bLe}));function pLe(){return`#${ME(this.r)}${ME(this.g)}${ME(this.b)}`}function m6t(){return`#${ME(this.r)}${ME(this.g)}${ME(this.b)}${ME((isNaN(this.opacity)?1:this.opacity)*255)}`}function bLe(){const s=XV(this.opacity);return`${s===1?"rgb(":"rgba("}${LE(this.r)}, ${LE(this.g)}, ${LE(this.b)}${s===1?")":`, ${s})`}`}function XV(s){return isNaN(s)?1:Math.max(0,Math.min(1,s))}function LE(s){return Math.max(0,Math.min(255,Math.round(s)||0))}function ME(s){return s=LE(s),(s<16?"0":"")+s.toString(16)}function vLe(s,o,f,p){return p<=0?s=o=f=NaN:f<=0||f>=1?s=o=NaN:o<=0&&(s=NaN),new Fw(s,o,f,p)}function wLe(s){if(s instanceof Fw)return new Fw(s.h,s.s,s.l,s.opacity);if(s instanceof SE||(s=AE(s)),!s)return new Fw;if(s instanceof Fw)return s;s=s.rgb();var o=s.r/255,f=s.g/255,p=s.b/255,w=Math.min(o,f,p),k=Math.max(o,f,p),b=NaN,_=