[r.toLowerCase(),a]))}function FHn(t,r,a){var s=H0.exec(r.slice(a,a+1));return s?(t.w=+s[0],a+s[0].length):-1}function $Hn(t,r,a){var s=H0.exec(r.slice(a,a+1));return s?(t.u=+s[0],a+s[0].length):-1}function GHn(t,r,a){var s=H0.exec(r.slice(a,a+2));return s?(t.U=+s[0],a+s[0].length):-1}function jHn(t,r,a){var s=H0.exec(r.slice(a,a+2));return s?(t.V=+s[0],a+s[0].length):-1}function zHn(t,r,a){var s=H0.exec(r.slice(a,a+2));return s?(t.W=+s[0],a+s[0].length):-1}function Jyr(t,r,a){var s=H0.exec(r.slice(a,a+4));return s?(t.y=+s[0],a+s[0].length):-1}function Zyr(t,r,a){var s=H0.exec(r.slice(a,a+2));return s?(t.y=+s[0]+(+s[0]>68?1900:2e3),a+s[0].length):-1}function UHn(t,r,a){var s=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(a,a+6));return s?(t.Z=s[1]?0:-(s[2]+(s[3]||"00")),a+s[0].length):-1}function VHn(t,r,a){var s=H0.exec(r.slice(a,a+1));return s?(t.q=s[0]*3-3,a+s[0].length):-1}function HHn(t,r,a){var s=H0.exec(r.slice(a,a+2));return s?(t.m=s[0]-1,a+s[0].length):-1}function ebr(t,r,a){var s=H0.exec(r.slice(a,a+2));return s?(t.d=+s[0],a+s[0].length):-1}function qHn(t,r,a){var s=H0.exec(r.slice(a,a+3));return s?(t.m=0,t.d=+s[0],a+s[0].length):-1}function tbr(t,r,a){var s=H0.exec(r.slice(a,a+2));return s?(t.H=+s[0],a+s[0].length):-1}function WHn(t,r,a){var s=H0.exec(r.slice(a,a+2));return s?(t.M=+s[0],a+s[0].length):-1}function YHn(t,r,a){var s=H0.exec(r.slice(a,a+2));return s?(t.S=+s[0],a+s[0].length):-1}function KHn(t,r,a){var s=H0.exec(r.slice(a,a+3));return s?(t.L=+s[0],a+s[0].length):-1}function XHn(t,r,a){var s=H0.exec(r.slice(a,a+6));return s?(t.L=Math.floor(s[0]/1e3),a+s[0].length):-1}function QHn(t,r,a){var s=OHn.exec(r.slice(a,a+1));return s?a+s[0].length:-1}function JHn(t,r,a){var s=H0.exec(r.slice(a));return s?(t.Q=+s[0],a+s[0].length):-1}function ZHn(t,r,a){var s=H0.exec(r.slice(a));return s?(t.s=+s[0],a+s[0].length):-1}function rbr(t,r){return yu(t.getDate(),r,2)}function eqn(t,r){return yu(t.getHours(),r,2)}function tqn(t,r){return yu(t.getHours()%12||12,r,2)}function rqn(t,r){return yu(1+Hk.count(Bx(t),t),r,3)}function obr(t,r){return yu(t.getMilliseconds(),r,3)}function nqn(t,r){return obr(t,r)+"000"}function iqn(t,r){return yu(t.getMonth()+1,r,2)}function aqn(t,r){return yu(t.getMinutes(),r,2)}function sqn(t,r){return yu(t.getSeconds(),r,2)}function oqn(t){var r=t.getDay();return r===0?7:r}function lqn(t,r){return yu(p4.count(Bx(t)-1,t),r,2)}function lbr(t){var r=t.getDay();return r>=4||r===0?h5(t):h5.ceil(t)}function cqn(t,r){return t=lbr(t),yu(h5.count(Bx(t),t)+(Bx(t).getDay()===4),r,2)}function uqn(t){return t.getDay()}function hqn(t,r){return yu(dD.count(Bx(t)-1,t),r,2)}function fqn(t,r){return yu(t.getFullYear()%100,r,2)}function dqn(t,r){return t=lbr(t),yu(t.getFullYear()%100,r,2)}function pqn(t,r){return yu(t.getFullYear()%1e4,r,4)}function gqn(t,r){var a=t.getDay();return t=a>=4||a===0?h5(t):h5.ceil(t),yu(t.getFullYear()%1e4,r,4)}function mqn(t){var r=t.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+yu(r/60|0,"0",2)+yu(r%60,"0",2)}function nbr(t,r){return yu(t.getUTCDate(),r,2)}function yqn(t,r){return yu(t.getUTCHours(),r,2)}function bqn(t,r){return yu(t.getUTCHours()%12||12,r,2)}function vqn(t,r){return yu(1+Rie.count(g4(t),t),r,3)}function cbr(t,r){return yu(t.getUTCMilliseconds(),r,3)}function wqn(t,r){return cbr(t,r)+"000"}function xqn(t,r){return yu(t.getUTCMonth()+1,r,2)}function Tqn(t,r){return yu(t.getUTCMinutes(),r,2)}function kqn(t,r){return yu(t.getUTCSeconds(),r,2)}function Cqn(t){var r=t.getUTCDay();return r===0?7:r}function Eqn(t,r){return yu(JP.count(g4(t)-1,t),r,2)}function ubr(t){var r=t.getUTCDay();return r>=4||r===0?pD(t):pD.ceil(t)}function Sqn(t,r){return t=ubr(t),yu(pD.count(g4(t),t)+(g4(t).getUTCDay()===4),r,2)}function Aqn(t){return t.getUTCDay()}function Rqn(t,r){return yu(tH.count(g4(t)-1,t),r,2)}function Lqn(t,r){return yu(t.getUTCFullYear()%100,r,2)}function _qn(t,r){return t=ubr(t),yu(t.getUTCFullYear()%100,r,2)}function Dqn(t,r){return yu(t.getUTCFullYear()%1e4,r,4)}function Iqn(t,r){var a=t.getUTCDay();return t=a>=4||a===0?pD(t):pD.ceil(t),yu(t.getUTCFullYear()%1e4,r,4)}function Mqn(){return"+0000"}function ibr(){return"%"}function abr(t){return+t}function sbr(t){return Math.floor(+t/1e3)}var Qyr,H0,OHn,PHn,hbr=ee(()=>{"use strict";dTe();i($tt,"localDate");i(Gtt,"utcDate");i(Lie,"newDate");i(jtt,"formatLocale");Qyr={"-":"",_:" ",0:"0"},H0=/^\s*\d+/,OHn=/^%/,PHn=/[\\^$*+?|[\]().{}]/g;i(yu,"pad");i(BHn,"requote");i(_ie,"formatRe");i(Die,"formatLookup");i(FHn,"parseWeekdayNumberSunday");i($Hn,"parseWeekdayNumberMonday");i(GHn,"parseWeekNumberSunday");i(jHn,"parseWeekNumberISO");i(zHn,"parseWeekNumberMonday");i(Jyr,"parseFullYear");i(Zyr,"parseYear");i(UHn,"parseZone");i(VHn,"parseQuarter");i(HHn,"parseMonthNumber");i(ebr,"parseDayOfMonth");i(qHn,"parseDayOfYear");i(tbr,"parseHour24");i(WHn,"parseMinutes");i(YHn,"parseSeconds");i(KHn,"parseMilliseconds");i(XHn,"parseMicroseconds");i(QHn,"parseLiteralPercent");i(JHn,"parseUnixTimestamp");i(ZHn,"parseUnixTimestampSeconds");i(rbr,"formatDayOfMonth");i(eqn,"formatHour24");i(tqn,"formatHour12");i(rqn,"formatDayOfYear");i(obr,"formatMilliseconds");i(nqn,"formatMicroseconds");i(iqn,"formatMonthNumber");i(aqn,"formatMinutes");i(sqn,"formatSeconds");i(oqn,"formatWeekdayNumberMonday");i(lqn,"formatWeekNumberSunday");i(lbr,"dISO");i(cqn,"formatWeekNumberISO");i(uqn,"formatWeekdayNumberSunday");i(hqn,"formatWeekNumberMonday");i(fqn,"formatYear");i(dqn,"formatYearISO");i(pqn,"formatFullYear");i(gqn,"formatFullYearISO");i(mqn,"formatZone");i(nbr,"formatUTCDayOfMonth");i(yqn,"formatUTCHour24");i(bqn,"formatUTCHour12");i(vqn,"formatUTCDayOfYear");i(cbr,"formatUTCMilliseconds");i(wqn,"formatUTCMicroseconds");i(xqn,"formatUTCMonthNumber");i(Tqn,"formatUTCMinutes");i(kqn,"formatUTCSeconds");i(Cqn,"formatUTCWeekdayNumberMonday");i(Eqn,"formatUTCWeekNumberSunday");i(ubr,"UTCdISO");i(Sqn,"formatUTCWeekNumberISO");i(Aqn,"formatUTCWeekdayNumberSunday");i(Rqn,"formatUTCWeekNumberMonday");i(Lqn,"formatUTCYear");i(_qn,"formatUTCYearISO");i(Dqn,"formatUTCFullYear");i(Iqn,"formatUTCFullYearISO");i(Mqn,"formatUTCZone");i(ibr,"formatLiteralPercent");i(abr,"formatUnixTimestamp");i(sbr,"formatUnixTimestampSeconds")});function ztt(t){return rH=jtt(t),ZP=rH.format,fbr=rH.parse,dbr=rH.utcFormat,pbr=rH.utcParse,rH}var rH,ZP,fbr,dbr,pbr,gbr=ee(()=>{"use strict";hbr();ztt({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"]});i(ztt,"defaultLocale")});var Utt=ee(()=>{"use strict";gbr()});function Nqn(t){return new Date(t)}function Oqn(t){return t instanceof Date?+t:+new Date(+t)}function mbr(t,r,a,s,l,h,f,d,g,b){var v=Sie(),T=v.invert,C=v.domain,E=b(".%L"),S=b(":%S"),R=b("%I:%M"),L=b("%I %p"),D=b("%a %d"),M=b("%b %d"),N=b("%B"),F=b("%Y");function O(P){return(g(P){"use strict";dTe();Utt();Ctt();Eie();Fyr();i(Nqn,"date");i(Oqn,"number");i(mbr,"calendar");i(pTe,"time")});var bbr=ee(()=>{"use strict";Iyr();Byr();wtt();ybr()});function Vtt(t){for(var r=t.length/6|0,a=new Array(r),s=0;s{"use strict";i(Vtt,"default")});var Htt,wbr=ee(()=>{"use strict";vbr();Htt=Vtt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab")});var xbr=ee(()=>{"use strict";wbr()});function Bf(t){return i(function(){return t},"constant")}var gTe=ee(()=>{"use strict";i(Bf,"default")});function kbr(t){return t>1?0:t<-1?nH:Math.acos(t)}function Wtt(t){return t>=1?Iie:t<=-1?-Iie:Math.asin(t)}var qtt,z1,gD,Tbr,mTe,m4,eB,q0,nH,Iie,iH,yTe=ee(()=>{"use strict";qtt=Math.abs,z1=Math.atan2,gD=Math.cos,Tbr=Math.max,mTe=Math.min,m4=Math.sin,eB=Math.sqrt,q0=1e-12,nH=Math.PI,Iie=nH/2,iH=2*nH;i(kbr,"acos");i(Wtt,"asin")});function bTe(t){let r=3;return t.digits=function(a){if(!arguments.length)return r;if(a==null)r=null;else{let s=Math.floor(a);if(!(s>=0))throw new RangeError(`invalid digits: ${a}`);r=s}return t},()=>new HP(r)}var Ytt=ee(()=>{"use strict";Vet();i(bTe,"withPath")});function Pqn(t){return t.innerRadius}function Bqn(t){return t.outerRadius}function Fqn(t){return t.startAngle}function $qn(t){return t.endAngle}function Gqn(t){return t&&t.padAngle}function jqn(t,r,a,s,l,h,f,d){var g=a-t,b=s-r,v=f-l,T=d-h,C=T*g-v*b;if(!(C*CQ*Q+K*K&&(q=Z,X=J),{cx:q,cy:X,x01:-v,y01:-T,x11:q*(l/O-1),y11:X*(l/O-1)}}function y4(){var t=Pqn,r=Bqn,a=Bf(0),s=null,l=Fqn,h=$qn,f=Gqn,d=null,g=bTe(b);function b(){var v,T,C=+t.apply(this,arguments),E=+r.apply(this,arguments),S=l.apply(this,arguments)-Iie,R=h.apply(this,arguments)-Iie,L=qtt(R-S),D=R>S;if(d||(d=v=g()),Eq0))d.moveTo(0,0);else if(L>iH-q0)d.moveTo(E*gD(S),E*m4(S)),d.arc(0,0,E,S,R,!D),C>q0&&(d.moveTo(C*gD(R),C*m4(R)),d.arc(0,0,C,R,S,D));else{var M=S,N=R,F=S,O=R,P=L,G=L,q=f.apply(this,arguments)/2,X=q>q0&&(s?+s.apply(this,arguments):eB(C*C+E*E)),Z=mTe(qtt(E-C)/2,+a.apply(this,arguments)),J=Z,W=Z,V,Q;if(X>q0){var K=Wtt(X/C*m4(q)),Y=Wtt(X/E*m4(q));(P-=K*2)>q0?(K*=D?1:-1,F+=K,O-=K):(P=0,F=O=(S+R)/2),(G-=Y*2)>q0?(Y*=D?1:-1,M+=Y,N-=Y):(G=0,M=N=(S+R)/2)}var re=E*gD(M),z=E*m4(M),ie=C*gD(O),ue=C*m4(O);if(Z>q0){var ce=E*gD(N),oe=E*m4(N),de=C*gD(F),ve=C*m4(F),Se;if(Lq0?W>q0?(V=vTe(de,ve,re,z,E,W,D),Q=vTe(ce,oe,ie,ue,E,W,D),d.moveTo(V.cx+V.x01,V.cy+V.y01),Wq0)||!(P>q0)?d.lineTo(ie,ue):J>q0?(V=vTe(ie,ue,ce,oe,C,-J,D),Q=vTe(re,z,de,ve,C,-J,D),d.lineTo(V.cx+V.x01,V.cy+V.y01),J{"use strict";gTe();yTe();Ytt();i(Pqn,"arcInnerRadius");i(Bqn,"arcOuterRadius");i(Fqn,"arcStartAngle");i($qn,"arcEndAngle");i(Gqn,"arcPadAngle");i(jqn,"intersect");i(vTe,"cornerTangents");i(y4,"default")});function Mie(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}var D_a,Ktt=ee(()=>{"use strict";D_a=Array.prototype.slice;i(Mie,"default")});function Ebr(t){this._context=t}function qk(t){return new Ebr(t)}var Xtt=ee(()=>{"use strict";i(Ebr,"Linear");Ebr.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._point=0},"lineStart"),lineEnd:i(function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,r){switch(t=+t,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break;case 1:this._point=2;default:this._context.lineTo(t,r);break}},"point")};i(qk,"default")});function Sbr(t){return t[0]}function Abr(t){return t[1]}var Rbr=ee(()=>{"use strict";i(Sbr,"x");i(Abr,"y")});function tB(t,r){var a=Bf(!0),s=null,l=qk,h=null,f=bTe(d);t=typeof t=="function"?t:t===void 0?Sbr:Bf(t),r=typeof r=="function"?r:r===void 0?Abr:Bf(r);function d(g){var b,v=(g=Mie(g)).length,T,C=!1,E;for(s==null&&(h=l(E=f())),b=0;b<=v;++b)!(b{"use strict";Ktt();gTe();Xtt();Ytt();Rbr();i(tB,"default")});function Qtt(t,r){return rt?1:r>=t?0:NaN}var _br=ee(()=>{"use strict";i(Qtt,"default")});function Jtt(t){return t}var Dbr=ee(()=>{"use strict";i(Jtt,"default")});function wTe(){var t=Jtt,r=Qtt,a=null,s=Bf(0),l=Bf(iH),h=Bf(0);function f(d){var g,b=(d=Mie(d)).length,v,T,C=0,E=new Array(b),S=new Array(b),R=+s.apply(this,arguments),L=Math.min(iH,Math.max(-iH,l.apply(this,arguments)-R)),D,M=Math.min(Math.abs(L)/b,h.apply(this,arguments)),N=M*(L<0?-1:1),F;for(g=0;g0&&(C+=F);for(r!=null?E.sort(function(O,P){return r(S[O],S[P])}):a!=null&&E.sort(function(O,P){return a(d[O],d[P])}),g=0,T=C?(L-b*N)/C:0;g0?F*T:0)+N,S[v]={data:d[v],index:g,value:F,startAngle:R,endAngle:D,padAngle:M};return S}return i(f,"pie"),f.value=function(d){return arguments.length?(t=typeof d=="function"?d:Bf(+d),f):t},f.sortValues=function(d){return arguments.length?(r=d,a=null,f):r},f.sort=function(d){return arguments.length?(a=d,r=null,f):a},f.startAngle=function(d){return arguments.length?(s=typeof d=="function"?d:Bf(+d),f):s},f.endAngle=function(d){return arguments.length?(l=typeof d=="function"?d:Bf(+d),f):l},f.padAngle=function(d){return arguments.length?(h=typeof d=="function"?d:Bf(+d),f):h},f}var Ibr=ee(()=>{"use strict";Ktt();gTe();_br();Dbr();yTe();i(wTe,"default")});function Nie(t){return new xTe(t,!0)}function Oie(t){return new xTe(t,!1)}var xTe,Mbr=ee(()=>{"use strict";xTe=class{static{i(this,"Bump")}constructor(r,a){this._context=r,this._x=a}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(r,a){switch(r=+r,a=+a,this._point){case 0:{this._point=1,this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+r)/2,this._y0,this._x0,a,r,a):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+a)/2,r,this._y0,r,a);break}}this._x0=r,this._y0=a}};i(Nie,"bumpX");i(Oie,"bumpY")});function Fx(){}var Pie=ee(()=>{"use strict";i(Fx,"default")});function aH(t,r,a){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+r)/6,(t._y0+4*t._y1+a)/6)}function Bie(t){this._context=t}function rB(t){return new Bie(t)}var Fie=ee(()=>{"use strict";i(aH,"point");i(Bie,"Basis");Bie.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 3:aH(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,r){switch(t=+t,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);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:aH(this,t,r);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=r},"point")};i(rB,"default")});function Nbr(t){this._context=t}function TTe(t){return new Nbr(t)}var Obr=ee(()=>{"use strict";Pie();Fie();i(Nbr,"BasisClosed");Nbr.prototype={areaStart:Fx,areaEnd:Fx,lineStart:i(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},"lineEnd"),point:i(function(t,r){switch(t=+t,r=+r,this._point){case 0:this._point=1,this._x2=t,this._y2=r;break;case 1:this._point=2,this._x3=t,this._y3=r;break;case 2:this._point=3,this._x4=t,this._y4=r,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+r)/6);break;default:aH(this,t,r);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=r},"point")};i(TTe,"default")});function Pbr(t){this._context=t}function kTe(t){return new Pbr(t)}var Bbr=ee(()=>{"use strict";Fie();i(Pbr,"BasisOpen");Pbr.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:i(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,r){switch(t=+t,r=+r,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var a=(this._x0+4*this._x1+t)/6,s=(this._y0+4*this._y1+r)/6;this._line?this._context.lineTo(a,s):this._context.moveTo(a,s);break;case 3:this._point=4;default:aH(this,t,r);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=r},"point")};i(kTe,"default")});function Fbr(t,r){this._basis=new Bie(t),this._beta=r}var Ztt,$br=ee(()=>{"use strict";Fie();i(Fbr,"Bundle");Fbr.prototype={lineStart:i(function(){this._x=[],this._y=[],this._basis.lineStart()},"lineStart"),lineEnd:i(function(){var t=this._x,r=this._y,a=t.length-1;if(a>0)for(var s=t[0],l=r[0],h=t[a]-s,f=r[a]-l,d=-1,g;++d<=a;)g=d/a,this._basis.point(this._beta*t[d]+(1-this._beta)*(s+g*h),this._beta*r[d]+(1-this._beta)*(l+g*f));this._x=this._y=null,this._basis.lineEnd()},"lineEnd"),point:i(function(t,r){this._x.push(+t),this._y.push(+r)},"point")};Ztt=i((function t(r){function a(s){return r===1?new Bie(s):new Fbr(s,r)}return i(a,"bundle"),a.beta=function(s){return t(+s)},a}),"custom")(.85)});function sH(t,r,a){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-r),t._y2+t._k*(t._y1-a),t._x2,t._y2)}function CTe(t,r){this._context=t,this._k=(1-r)/6}var $ie,Gie=ee(()=>{"use strict";i(sH,"point");i(CTe,"Cardinal");CTe.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:sH(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,r){switch(t=+t,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break;case 1:this._point=2,this._x1=t,this._y1=r;break;case 2:this._point=3;default:sH(this,t,r);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=r},"point")};$ie=i((function t(r){function a(s){return new CTe(s,r)}return i(a,"cardinal"),a.tension=function(s){return t(+s)},a}),"custom")(0)});function ETe(t,r){this._context=t,this._k=(1-r)/6}var ert,trt=ee(()=>{"use strict";Pie();Gie();i(ETe,"CardinalClosed");ETe.prototype={areaStart:Fx,areaEnd:Fx,lineStart:i(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},"lineEnd"),point:i(function(t,r){switch(t=+t,r=+r,this._point){case 0:this._point=1,this._x3=t,this._y3=r;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=r);break;case 2:this._point=3,this._x5=t,this._y5=r;break;default:sH(this,t,r);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=r},"point")};ert=i((function t(r){function a(s){return new ETe(s,r)}return i(a,"cardinal"),a.tension=function(s){return t(+s)},a}),"custom")(0)});function STe(t,r){this._context=t,this._k=(1-r)/6}var rrt,nrt=ee(()=>{"use strict";Gie();i(STe,"CardinalOpen");STe.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:i(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,r){switch(t=+t,r=+r,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:sH(this,t,r);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=r},"point")};rrt=i((function t(r){function a(s){return new STe(s,r)}return i(a,"cardinal"),a.tension=function(s){return t(+s)},a}),"custom")(0)});function jie(t,r,a){var s=t._x1,l=t._y1,h=t._x2,f=t._y2;if(t._l01_a>q0){var d=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,g=3*t._l01_a*(t._l01_a+t._l12_a);s=(s*d-t._x0*t._l12_2a+t._x2*t._l01_2a)/g,l=(l*d-t._y0*t._l12_2a+t._y2*t._l01_2a)/g}if(t._l23_a>q0){var b=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,v=3*t._l23_a*(t._l23_a+t._l12_a);h=(h*b+t._x1*t._l23_2a-r*t._l12_2a)/v,f=(f*b+t._y1*t._l23_2a-a*t._l12_2a)/v}t._context.bezierCurveTo(s,l,h,f,t._x2,t._y2)}function Gbr(t,r){this._context=t,this._alpha=r}var zie,ATe=ee(()=>{"use strict";yTe();Gie();i(jie,"point");i(Gbr,"CatmullRom");Gbr.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,r){if(t=+t,r=+r,this._point){var a=this._x2-t,s=this._y2-r;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(a*a+s*s,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break;case 1:this._point=2;break;case 2:this._point=3;default:jie(this,t,r);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=r},"point")};zie=i((function t(r){function a(s){return r?new Gbr(s,r):new CTe(s,0)}return i(a,"catmullRom"),a.alpha=function(s){return t(+s)},a}),"custom")(.5)});function jbr(t,r){this._context=t,this._alpha=r}var irt,zbr=ee(()=>{"use strict";trt();Pie();ATe();i(jbr,"CatmullRomClosed");jbr.prototype={areaStart:Fx,areaEnd:Fx,lineStart:i(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},"lineEnd"),point:i(function(t,r){if(t=+t,r=+r,this._point){var a=this._x2-t,s=this._y2-r;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(a*a+s*s,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=r;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=r);break;case 2:this._point=3,this._x5=t,this._y5=r;break;default:jie(this,t,r);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=r},"point")};irt=i((function t(r){function a(s){return r?new jbr(s,r):new ETe(s,0)}return i(a,"catmullRom"),a.alpha=function(s){return t(+s)},a}),"custom")(.5)});function Ubr(t,r){this._context=t,this._alpha=r}var art,Vbr=ee(()=>{"use strict";nrt();ATe();i(Ubr,"CatmullRomOpen");Ubr.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:i(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,r){if(t=+t,r=+r,this._point){var a=this._x2-t,s=this._y2-r;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(a*a+s*s,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:jie(this,t,r);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=r},"point")};art=i((function t(r){function a(s){return r?new Ubr(s,r):new STe(s,0)}return i(a,"catmullRom"),a.alpha=function(s){return t(+s)},a}),"custom")(.5)});function Hbr(t){this._context=t}function RTe(t){return new Hbr(t)}var qbr=ee(()=>{"use strict";Pie();i(Hbr,"LinearClosed");Hbr.prototype={areaStart:Fx,areaEnd:Fx,lineStart:i(function(){this._point=0},"lineStart"),lineEnd:i(function(){this._point&&this._context.closePath()},"lineEnd"),point:i(function(t,r){t=+t,r=+r,this._point?this._context.lineTo(t,r):(this._point=1,this._context.moveTo(t,r))},"point")};i(RTe,"default")});function Wbr(t){return t<0?-1:1}function Ybr(t,r,a){var s=t._x1-t._x0,l=r-t._x1,h=(t._y1-t._y0)/(s||l<0&&-0),f=(a-t._y1)/(l||s<0&&-0),d=(h*l+f*s)/(s+l);return(Wbr(h)+Wbr(f))*Math.min(Math.abs(h),Math.abs(f),.5*Math.abs(d))||0}function Kbr(t,r){var a=t._x1-t._x0;return a?(3*(t._y1-t._y0)/a-r)/2:r}function srt(t,r,a){var s=t._x0,l=t._y0,h=t._x1,f=t._y1,d=(h-s)/3;t._context.bezierCurveTo(s+d,l+d*r,h-d,f-d*a,h,f)}function LTe(t){this._context=t}function Xbr(t){this._context=new Qbr(t)}function Qbr(t){this._context=t}function Uie(t){return new LTe(t)}function Vie(t){return new Xbr(t)}var Jbr=ee(()=>{"use strict";i(Wbr,"sign");i(Ybr,"slope3");i(Kbr,"slope2");i(srt,"point");i(LTe,"MonotoneX");LTe.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:srt(this,this._t0,Kbr(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,r){var a=NaN;if(t=+t,r=+r,!(t===this._x1&&r===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break;case 1:this._point=2;break;case 2:this._point=3,srt(this,Kbr(this,a=Ybr(this,t,r)),a);break;default:srt(this,this._t0,a=Ybr(this,t,r));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=r,this._t0=a}},"point")};i(Xbr,"MonotoneY");(Xbr.prototype=Object.create(LTe.prototype)).point=function(t,r){LTe.prototype.point.call(this,r,t)};i(Qbr,"ReflectContext");Qbr.prototype={moveTo:i(function(t,r){this._context.moveTo(r,t)},"moveTo"),closePath:i(function(){this._context.closePath()},"closePath"),lineTo:i(function(t,r){this._context.lineTo(r,t)},"lineTo"),bezierCurveTo:i(function(t,r,a,s,l,h){this._context.bezierCurveTo(r,t,s,a,h,l)},"bezierCurveTo")};i(Uie,"monotoneX");i(Vie,"monotoneY")});function evr(t){this._context=t}function Zbr(t){var r,a=t.length-1,s,l=new Array(a),h=new Array(a),f=new Array(a);for(l[0]=0,h[0]=2,f[0]=t[0]+2*t[1],r=1;r=0;--r)l[r]=(f[r]-l[r+1])/h[r];for(h[a-1]=(t[a]+l[a-1])/2,r=0;r{"use strict";i(evr,"Natural");evr.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x=[],this._y=[]},"lineStart"),lineEnd:i(function(){var t=this._x,r=this._y,a=t.length;if(a)if(this._line?this._context.lineTo(t[0],r[0]):this._context.moveTo(t[0],r[0]),a===2)this._context.lineTo(t[1],r[1]);else for(var s=Zbr(t),l=Zbr(r),h=0,f=1;f{"use strict";i(_Te,"Step");_Te.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x=this._y=NaN,this._point=0},"lineStart"),lineEnd:i(function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},"lineEnd"),point:i(function(t,r){switch(t=+t,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,r),this._context.lineTo(t,r);else{var a=this._x*(1-this._t)+t*this._t;this._context.lineTo(a,this._y),this._context.lineTo(a,r)}break}}this._x=t,this._y=r},"point")};i(lH,"default");i(Hie,"stepBefore");i(qie,"stepAfter")});var nvr=ee(()=>{"use strict";Cbr();Lbr();Ibr();Obr();Bbr();Fie();Mbr();$br();trt();nrt();Gie();zbr();Vbr();ATe();qbr();Xtt();Jbr();tvr();rvr()});var ivr=ee(()=>{"use strict"});var avr=ee(()=>{"use strict"});function mD(t,r,a){this.k=t,this.x=r,this.y=a}function lrt(t){for(;!t.__zoom;)if(!(t=t.parentNode))return ort;return t.__zoom}var ort,crt=ee(()=>{"use strict";i(mD,"Transform");mD.prototype={constructor:mD,scale:i(function(t){return t===1?this:new mD(this.k*t,this.x,this.y)},"scale"),translate:i(function(t,r){return t===0&r===0?this:new mD(this.k,this.x+this.k*t,this.y+this.k*r)},"translate"),apply:i(function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},"apply"),applyX:i(function(t){return t*this.k+this.x},"applyX"),applyY:i(function(t){return t*this.k+this.y},"applyY"),invert:i(function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},"invert"),invertX:i(function(t){return(t-this.x)/this.k},"invertX"),invertY:i(function(t){return(t-this.y)/this.k},"invertY"),rescaleX:i(function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},"rescaleX"),rescaleY:i(function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},"rescaleY"),toString:i(function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"},"toString")};ort=new mD(1,0,0);lrt.prototype=mD.prototype;i(lrt,"transform")});var svr=ee(()=>{"use strict"});var ovr=ee(()=>{"use strict";Yxe();ivr();avr();crt();svr()});var lvr=ee(()=>{"use strict";ovr();crt()});var rl=ee(()=>{"use strict";aD();mmr();O1r();$1r();HV();G1r();j1r();KJe();o0r();z1r();$et();U1r();H1r();rtt();ayr();Lyr();YV();Vet();_yr();V1r();Dyr();bbr();xbr();c4();nvr();dTe();Utt();zxe();Yxe();lvr()});var urt,nB,DTe,cvr,ITe,MTe,sv,Wie,yD,B8=ee(()=>{"use strict";urt=G2(Zne(),1);rl();hl();nB=i((t,r)=>{let a=t.append("rect");if(a.attr("x",r.x),a.attr("y",r.y),a.attr("fill",r.fill),a.attr("stroke",r.stroke),a.attr("width",r.width),a.attr("height",r.height),r.name&&a.attr("name",r.name),r.rx&&a.attr("rx",r.rx),r.ry&&a.attr("ry",r.ry),r.attrs!==void 0)for(let s in r.attrs)a.attr(s,r.attrs[s]);return r.class&&a.attr("class",r.class),a},"drawRect"),DTe=i((t,r)=>{let a={x:r.startx,y:r.starty,width:r.stopx-r.startx,height:r.stopy-r.starty,fill:r.fill,stroke:r.stroke,class:"rect"};nB(t,a).lower()},"drawBackgroundRect"),cvr=i((t,r)=>{let a=r.text.replace(IP," "),s=t.append("text");s.attr("x",r.x),s.attr("y",r.y),s.attr("class","legend"),s.style("text-anchor",r.anchor),r.class&&s.attr("class",r.class);let l=s.append("tspan");return l.attr("x",r.x+r.textMargin*2),l.text(a),s},"drawText"),ITe=i((t,r,a,s)=>{let l=t.append("image");l.attr("x",r),l.attr("y",a);let h=(0,urt.sanitizeUrl)(s);l.attr("xlink:href",h)},"drawImage"),MTe=i((t,r,a,s)=>{let l=t.append("use");l.attr("x",r),l.attr("y",a);let h=(0,urt.sanitizeUrl)(s);l.attr("xlink:href",`#${h}`)},"drawEmbeddedImage"),sv=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),Wie=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),yD=i(()=>{let t=fn(".mermaidTooltip");return t.empty()&&(t=fn("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),t},"createTooltip")});var uvr,zqn,Uqn,Vqn,Hqn,qqn,Wqn,Yqn,Kqn,Xqn,Yie,f5,hvr=ee(()=>{"use strict";hl();B8();uvr=i(function(t,r){return nB(t,r)},"drawRect"),zqn=i((t,r,a,s)=>{let l=t.append("g"),h=0;for(let f of r){let d=f.textColor?f.textColor:"#444444",g=f.lineColor?f.lineColor:"#444444",b=f.offsetX?parseInt(String(f.offsetX)):0,v=f.offsetY?parseInt(String(f.offsetY)):0,T="";if(h===0){let S=l.append("line");S.attr("x1",f.startPoint.x),S.attr("y1",f.startPoint.y),S.attr("x2",f.endPoint.x),S.attr("y2",f.endPoint.y),S.attr("stroke-width","1"),S.attr("stroke",g),S.style("fill","none"),f.type!=="rel_b"&&S.attr("marker-end","url("+T+"#"+s+"-arrowhead)"),(f.type==="birel"||f.type==="rel_b")&&S.attr("marker-start","url("+T+"#"+s+"-arrowend)"),h=-1}else{let S=l.append("path");S.attr("fill","none").attr("stroke-width","1").attr("stroke",g).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",f.startPoint.x).replaceAll("starty",f.startPoint.y).replaceAll("controlx",f.startPoint.x+(f.endPoint.x-f.startPoint.x)/2-(f.endPoint.x-f.startPoint.x)/4).replaceAll("controly",f.startPoint.y+(f.endPoint.y-f.startPoint.y)/2).replaceAll("stopx",f.endPoint.x).replaceAll("stopy",f.endPoint.y)),f.type!=="rel_b"&&S.attr("marker-end","url("+T+"#"+s+"-arrowhead)"),(f.type==="birel"||f.type==="rel_b")&&S.attr("marker-start","url("+T+"#"+s+"-arrowend)")}let C=f.label.width,E=a.messageFont();Yie(a)(f.label.text,l,Math.min(f.startPoint.x,f.endPoint.x)+Math.abs(f.endPoint.x-f.startPoint.x)/2+b,Math.min(f.startPoint.y,f.endPoint.y)+Math.abs(f.endPoint.y-f.startPoint.y)/2+v,C,f.label.height,{fill:d},E),f.techn&&f.techn.text!==""&&(E=a.messageFont(),Yie(a)("["+f.techn.text+"]",l,Math.min(f.startPoint.x,f.endPoint.x)+Math.abs(f.endPoint.x-f.startPoint.x)/2+b,Math.min(f.startPoint.y,f.endPoint.y)+Math.abs(f.endPoint.y-f.startPoint.y)/2+a.messageFontSize+5+v,Math.max(C,f.techn.width),f.techn.height,{fill:d,"font-style":"italic"},E))}},"drawRels"),Uqn=i(function(t,r,a){let s=t.append("g"),l=r.bgColor?r.bgColor:"none",h=r.borderColor?r.borderColor:"#444444",f=r.fontColor?r.fontColor:"black",d={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};r.nodeType&&(d={"stroke-width":1});let g={x:r.x,y:r.y,fill:l,stroke:h,width:r.width,height:r.height,rx:2.5,ry:2.5,attrs:d};uvr(s,g);let b=a.boundaryFont();b.fontWeight="bold",b.fontSize=b.fontSize+2,b.fontColor=f,Yie(a)(r.label.text,s,r.x,r.y+r.label.Y,r.width,r.height,{fill:"#444444"},b),r.type&&r.type.text!==""&&(b=a.boundaryFont(),b.fontColor=f,Yie(a)(r.type.text,s,r.x,r.y+r.type.Y,r.width,r.height,{fill:"#444444"},b)),r.descr&&r.descr.text!==""&&(b=a.boundaryFont(),b.fontSize=b.fontSize-2,b.fontColor=f,Yie(a)(r.descr.text,s,r.x,r.y+r.descr.Y,r.width,r.height,{fill:"#444444"},b))},"drawBoundary"),Vqn=i(function(t,r){t.append("defs").append("symbol").attr("id",r+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),Hqn=i(function(t,r){t.append("defs").append("symbol").attr("id",r+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),qqn=i(function(t,r){t.append("defs").append("symbol").attr("id",r+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),Wqn=i(function(t,r){t.append("defs").append("marker").attr("id",r+"-arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),Yqn=i(function(t,r){t.append("defs").append("marker").attr("id",r+"-arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),Kqn=i(function(t,r){t.append("defs").append("marker").attr("id",r+"-filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),Xqn=i(function(t,r){let s=t.append("defs").append("marker").attr("id",r+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);s.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),s.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),Yie=(function(){function t(l,h,f,d,g,b,v){let T=h.append("text").attr("x",f+g/2).attr("y",d+b/2+5).style("text-anchor","middle").text(l);s(T,v)}i(t,"byText");function r(l,h,f,d,g,b,v,T){let{fontSize:C,fontFamily:E,fontWeight:S}=T,R=l.split(Wn.lineBreakRegex);for(let L=0;L=0}var dvr=ee(()=>{"use strict";i(fvr,"isLength")});function OTe(t){return t!=null&&typeof t!="function"&&fvr(t.length)}var hrt=ee(()=>{"use strict";dvr();i(OTe,"isArrayLike")});function pvr(t){return t==="__proto__"}var gvr=ee(()=>{"use strict";i(pvr,"isUnsafeProperty")});function bD(t){return t==null||typeof t!="object"&&typeof t!="function"}var Kie=ee(()=>{"use strict";i(bD,"isPrimitive")});function PTe(t){return Object.getOwnPropertySymbols(t).filter(r=>Object.prototype.propertyIsEnumerable.call(t,r))}var frt=ee(()=>{"use strict";i(PTe,"getSymbols")});function F8(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}var Xie=ee(()=>{"use strict";i(F8,"getTag")});var Qie,vD,iB,aB,sB,Jie,Zie,eae,tae,BTe,rae,cH,nae,FTe,$Te,GTe,jTe,zTe,UTe,VTe,HTe,qTe,WTe=ee(()=>{"use strict";Qie="[object RegExp]",vD="[object String]",iB="[object Number]",aB="[object Boolean]",sB="[object Arguments]",Jie="[object Symbol]",Zie="[object Date]",eae="[object Map]",tae="[object Set]",BTe="[object Array]",rae="[object ArrayBuffer]",cH="[object Object]",nae="[object DataView]",FTe="[object Uint8Array]",$Te="[object Uint8ClampedArray]",GTe="[object Uint16Array]",jTe="[object Uint32Array]",zTe="[object Int8Array]",UTe="[object Int16Array]",VTe="[object Int32Array]",HTe="[object Float32Array]",qTe="[object Float64Array]"});function uH(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}var YTe=ee(()=>{"use strict";i(uH,"isTypedArray")});function mvr(t,r){return hH(t,void 0,t,new Map,r)}function hH(t,r,a,s=new Map,l=void 0){let h=l?.(t,r,a,s);if(h!==void 0)return h;if(bD(t))return t;if(s.has(t))return s.get(t);if(Array.isArray(t)){let f=new Array(t.length);s.set(t,f);for(let d=0;d{"use strict";frt();Xie();WTe();Kie();YTe();i(mvr,"cloneDeepWith");i(hH,"cloneDeepWithImpl");i(Wk,"copyProperties");i(Qqn,"isCloneableObject")});function bvr(t,r){return mvr(t,(a,s,l,h)=>{let f=r?.(a,s,l,h);if(f!==void 0)return f;if(typeof t=="object"){if(F8(t)===cH&&typeof t.constructor!="function"){let d={};return h.set(t,d),Wk(d,t,l,h),d}switch(Object.prototype.toString.call(t)){case iB:case vD:case aB:{let d=new t.constructor(t?.valueOf());return Wk(d,t),d}case sB:{let d={};return Wk(d,t),d.length=t.length,d[Symbol.iterator]=t[Symbol.iterator],d}default:return}}})}var vvr=ee(()=>{"use strict";yvr();Xie();WTe();i(bvr,"cloneDeepWith")});function drt(t){return bvr(t)}var wvr=ee(()=>{"use strict";vvr();i(drt,"cloneDeep")});function iae(t){return t!==null&&typeof t=="object"&&F8(t)==="[object Arguments]"}var prt=ee(()=>{"use strict";Xie();i(iae,"isArguments")});function aae(t){return typeof t=="object"&&t!==null}var grt=ee(()=>{"use strict";i(aae,"isObjectLike")});function xvr(t){return aae(t)&&OTe(t)}var Tvr=ee(()=>{"use strict";hrt();grt();i(xvr,"isArrayLikeObject")});function kvr(t){return Array.isArray(t)}var Cvr=ee(()=>{"use strict";i(kvr,"isArray")});function oB(t,r){if(typeof t!="function"||r!=null&&typeof r!="function")throw new TypeError("Expected a function");let a=i(function(...l){let h=r?r.apply(this,l):l[0],f=a.cache;if(f.has(h))return f.get(h);let d=t.apply(this,l);return a.cache=f.set(h,d)||f,d},"memoized"),s=oB.Cache||Map;return a.cache=new s,a}var Evr=ee(()=>{"use strict";i(oB,"memoize");oB.Cache=Map});function Svr(){}var Avr=ee(()=>{"use strict";i(Svr,"noop")});function Rvr(t){let r=t?.constructor,a=typeof r=="function"?r.prototype:Object.prototype;return t===a}var Lvr=ee(()=>{"use strict";i(Rvr,"isPrototype")});function wD(t){return uH(t)}var KTe=ee(()=>{"use strict";YTe();i(wD,"isTypedArray")});function yrt(t){if(bD(t))return t;let r=F8(t);if(!Jqn(t))return{};if(kvr(t)){let s=Array.from(t);return t.length>0&&typeof t[0]=="string"&&Object.hasOwn(t,"index")&&(s.index=t.index,s.input=t.input),s}if(wD(t)){let s=t,l=s.constructor;return new l(s.buffer,s.byteOffset,s.length)}if(r===rae)return new ArrayBuffer(t.byteLength);if(r===nae){let s=t,l=s.buffer,h=s.byteOffset,f=s.byteLength,d=new ArrayBuffer(f),g=new Uint8Array(l,h,f);return new Uint8Array(d).set(g),new DataView(d)}if(r===aB||r===iB||r===vD){let s=t.constructor,l=new s(t.valueOf());return r===vD?eWn(l,t):mrt(l,t),l}if(r===Zie)return new Date(Number(t));if(r===Qie){let s=t,l=new RegExp(s.source,s.flags);return l.lastIndex=s.lastIndex,l}if(r===Jie)return Object(Symbol.prototype.valueOf.call(t));if(r===eae){let s=t,l=new Map;return s.forEach((h,f)=>{l.set(f,h)}),l}if(r===tae){let s=t,l=new Set;return s.forEach(h=>{l.add(h)}),l}if(r===sB){let s=t,l={};return mrt(l,s),l.length=s.length,l[Symbol.iterator]=s[Symbol.iterator],l}let a={};return tWn(a,t),mrt(a,t),Zqn(a,t),a}function Jqn(t){switch(F8(t)){case sB:case BTe:case rae:case nae:case aB:case Zie:case HTe:case qTe:case zTe:case UTe:case VTe:case eae:case iB:case cH:case Qie:case tae:case vD:case Jie:case FTe:case $Te:case GTe:case jTe:return!0;default:return!1}}function mrt(t,r){for(let a in r)Object.hasOwn(r,a)&&(t[a]=r[a])}function Zqn(t,r){let a=Object.getOwnPropertySymbols(r);for(let s=0;s=a)&&(t[s]=r[s])}function tWn(t,r){let a=Object.getPrototypeOf(r);a!==null&&typeof r.constructor=="function"&&Object.setPrototypeOf(t,a)}var _vr=ee(()=>{"use strict";Kie();Xie();WTe();Cvr();KTe();i(yrt,"clone");i(Jqn,"isCloneableObject");i(mrt,"copyOwnProperties");i(Zqn,"copySymbolProperties");i(eWn,"cloneStringObjectProperties");i(tWn,"copyPrototype")});function XTe(t){if(typeof t!="object"||t==null)return!1;if(Object.getPrototypeOf(t)===null)return!0;if(Object.prototype.toString.call(t)!=="[object Object]"){let a=t[Symbol.toStringTag];return a==null||!Object.getOwnPropertyDescriptor(t,Symbol.toStringTag)?.writable?!1:t.toString()===`[object ${a}]`}let r=t;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(t)===r}var Dvr=ee(()=>{"use strict";i(XTe,"isPlainObject")});function Ivr(t){if(bD(t))return t;if(Array.isArray(t)||uH(t)||t instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer)return t.slice(0);let r=Object.getPrototypeOf(t);if(r==null)return Object.assign(Object.create(r),t);let a=r.constructor;if(t instanceof Date||t instanceof Map||t instanceof Set)return new a(t);if(t instanceof RegExp){let s=new a(t);return s.lastIndex=t.lastIndex,s}if(t instanceof DataView)return new a(t.buffer.slice(0));if(t instanceof Error){let s;return t instanceof AggregateError?s=new a(t.errors,t.message,{cause:t.cause}):s=new a(t.message,{cause:t.cause}),s.stack=t.stack,Object.assign(s,t),s}if(typeof File<"u"&&t instanceof File)return new a([t],t.name,{type:t.type,lastModified:t.lastModified});if(typeof t=="object"){let s=Object.create(r);return Object.assign(s,t)}return t}var Mvr=ee(()=>{"use strict";Kie();YTe();i(Ivr,"clone")});function Nvr(t,...r){let a=r.slice(0,-1),s=r[r.length-1],l=t;for(let h=0;h{"use strict";wvr();gvr();Mvr();Kie();frt();prt();Tvr();grt();Dvr();KTe();i(Nvr,"mergeWith");i(QTe,"mergeWithDeep")});function brt(t,...r){return Nvr(t,...r,Svr)}var Pvr=ee(()=>{"use strict";Ovr();Avr();i(brt,"merge")});function JTe(t){if(t==null)return!0;if(OTe(t))return typeof t.splice!="function"&&typeof t!="string"&&(typeof Buffer>"u"||!Buffer.isBuffer(t))&&!wD(t)&&!iae(t)?!1:t.length===0;if(typeof t=="object"){if(t instanceof Map||t instanceof Set)return t.size===0;let r=Object.keys(t);return Rvr(t)?r.filter(a=>a!=="constructor").length===0:r.length===0}return!0}var Bvr=ee(()=>{"use strict";prt();hrt();KTe();Lvr();i(JTe,"isEmpty")});var ZTe=ee(()=>{"use strict";Evr();_vr();Pvr();Bvr()});function xrt(t,r){if(!t)return r;let a=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return rWn[a]??r}function sWn(t,r){let a=t.trim();if(a)return r.securityLevel!=="loose"?(0,Gvr.sanitizeUrl)(a):a}function Uvr(t,r){return!t||!r?0:Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2))}function lWn(t){let r,a=0;t.forEach(l=>{a+=Uvr(l,r),r=l});let s=a/2;return Trt(t,s)}function cWn(t){return t.length===1?t[0]:lWn(t)}function hWn(t,r,a){let s=structuredClone(a);Pe.info("our points",s),r!=="start_left"&&r!=="start_right"&&s.reverse();let l=25+t,h=Trt(s,l),f=10+t*.5,d=Math.atan2(s[0].y-h.y,s[0].x-h.x),g={x:0,y:0};return r==="start_left"?(g.x=Math.sin(d+Math.PI)*f+(s[0].x+h.x)/2,g.y=-Math.cos(d+Math.PI)*f+(s[0].y+h.y)/2):r==="end_right"?(g.x=Math.sin(d-Math.PI)*f+(s[0].x+h.x)/2-5,g.y=-Math.cos(d-Math.PI)*f+(s[0].y+h.y)/2-5):r==="end_left"?(g.x=Math.sin(d)*f+(s[0].x+h.x)/2-5,g.y=-Math.cos(d)*f+(s[0].y+h.y)/2-5):(g.x=Math.sin(d)*f+(s[0].x+h.x)/2,g.y=-Math.cos(d)*f+(s[0].y+h.y)/2),g}function krt(t){let r="",a="";for(let s of t)s!==void 0&&(s.startsWith("color:")||s.startsWith("text-align:")?a=a+s+";":r=r+s+";");return{style:r,labelStyle:a}}function fWn(t){let r="",a="0123456789abcdef",s=a.length;for(let l=0;lMath.round(parseFloat(h)).toString());return l.includes(a.toString())||l.includes(s.toString())}var Gvr,wrt,rWn,nWn,iWn,jvr,zvr,aWn,oWn,Fvr,Trt,uWn,$vr,Crt,Ert,dWn,pWn,lB,gWn,sae,vrt,eke,mWn,yWn,ov,za,Vvr,U2,V2,Ia=ee(()=>{"use strict";Gvr=G2(Zne(),1);rl();hl();wwe();qn();rD();bV();ZTe();uxe();wrt="\u200B",rWn={curveBasis:rB,curveBasisClosed:TTe,curveBasisOpen:kTe,curveBumpX:Nie,curveBumpY:Oie,curveBundle:Ztt,curveCardinalClosed:ert,curveCardinalOpen:rrt,curveCardinal:$ie,curveCatmullRomClosed:irt,curveCatmullRomOpen:art,curveCatmullRom:zie,curveLinear:qk,curveLinearClosed:RTe,curveMonotoneX:Uie,curveMonotoneY:Vie,curveNatural:oH,curveStep:lH,curveStepAfter:qie,curveStepBefore:Hie},nWn=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,iWn=i(function(t,r){let a=jvr(t,/(?:init\b)|(?:initialize\b)/),s={};if(Array.isArray(a)){let f=a.map(d=>d.args);wV(f),s=Kh(s,[...f])}else s=a.args;if(!s)return;let l=tD(t,r),h="config";return s[h]!==void 0&&(l==="flowchart-v2"&&(l="flowchart"),s[l]=s[h],delete s[h]),s},"detectInit"),jvr=i(function(t,r=null){try{let a=new RegExp(`[%]{2}(?![{]${nWn.source})(?=[}][%]{2}).*
-`,"ig");t=t.trim().replace(a,"").replace(/'/gm,'"'),Pe.debug(`Detecting diagram directive${r!==null?" type:"+r:""} based on the text:${t}`);let s,l=[];for(;(s=NP.exec(t))!==null;)if(s.index===NP.lastIndex&&NP.lastIndex++,s&&!r||r&&s[1]?.match(r)||r&&s[2]?.match(r)){let h=s[1]?s[1]:s[2],f=s[3]?s[3].trim():s[4]?JSON.parse(s[4].trim()):null;l.push({type:h,args:f})}return l.length===0?{type:t,args:null}:l.length===1?l[0]:l}catch(a){return Pe.error(`ERROR: ${a.message} - Unable to parse directive type: '${r}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),zvr=i(function(t){return t.replace(NP,"")},"removeDirectives"),aWn=i(function(t,r){for(let[a,s]of r.entries())if(s.match(t))return a;return-1},"isSubstringInArray");i(xrt,"interpolateToCurve");i(sWn,"formatUrl");oWn=i((t,...r)=>{let a=t.split("."),s=a.length-1,l=a[s],h=window;for(let f=0;f{let a=Math.pow(10,r);return Math.round(t*a)/a},"roundNumber"),Trt=i((t,r)=>{let a,s=r;for(let l of t){if(a){let h=Uvr(l,a);if(h===0)return a;if(h=1)return{x:l.x,y:l.y};if(f>0&&f<1)return{x:Fvr((1-f)*a.x+f*l.x,5),y:Fvr((1-f)*a.y+f*l.y,5)}}}a=l}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),uWn=i((t,r,a)=>{Pe.info(`our points ${JSON.stringify(r)}`),r[0]!==a&&(r=r.reverse());let l=Trt(r,25),h=t?10:5,f=Math.atan2(r[0].y-l.y,r[0].x-l.x),d={x:0,y:0};return d.x=Math.sin(f)*h+(r[0].x+l.x)/2,d.y=-Math.cos(f)*h+(r[0].y+l.y)/2,d},"calcCardinalityPosition");i(hWn,"calcTerminalLabelPosition");i(krt,"getStylesFromArray");$vr=0,Crt=i(()=>($vr++,"id-"+Math.random().toString(36).substr(2,12)+"-"+$vr),"generateId");i(fWn,"makeRandomHex");Ert=i(t=>fWn(t.length),"random"),dWn=i(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),pWn=i(function(t,r){let a=r.text.replace(Wn.lineBreakRegex," "),[,s]=ov(r.fontSize),l=t.append("text");l.attr("x",r.x),l.attr("y",r.y),l.style("text-anchor",r.anchor),l.style("font-family",r.fontFamily),l.style("font-size",s),l.style("font-weight",r.fontWeight),l.attr("fill",r.fill),r.class!==void 0&&l.attr("class",r.class);let h=l.append("tspan");return h.attr("x",r.x+r.textMargin*2),h.attr("fill",r.fill),h.text(a),l},"drawSimpleText"),lB=oB((t,r,a)=>{if(!t||(a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},a),Wn.hasBreaks(t)))return t;let s=t.split(" ").filter(Boolean),l=[],h="";return s.forEach((f,d)=>{let g=U1(`${f} `,a),b=U1(h,a);if(g>r){let{hyphenatedStrings:C,remainingWord:E}=gWn(f,r,"-",a);l.push(h,...C),h=E}else b+g>=r?(l.push(h),h=f):h=[h,f].filter(Boolean).join(" ");d+1===s.length&&l.push(h)}),l.filter(f=>f!=="").join(a.joinWith)},(t,r,a)=>`${t}${r}${a.fontSize}${a.fontWeight}${a.fontFamily}${a.joinWith}`),gWn=oB((t,r,a="-",s)=>{s=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},s);let l=[...t],h=[],f="";return l.forEach((d,g)=>{let b=`${f}${d}`;if(U1(b,s)>=r){let T=g+1,C=l.length===T,E=`${b}${a}`;h.push(C?b:E),f=""}else f=b}),{hyphenatedStrings:h,remainingWord:f}},(t,r,a="-",s)=>`${t}${r}${a}${s.fontSize}${s.fontWeight}${s.fontFamily}`);i(tke,"calculateTextHeight");i(U1,"calculateTextWidth");sae=oB((t,r)=>{let{fontSize:a=12,fontFamily:s="Arial",fontWeight:l=400}=r;if(!t)return{width:0,height:0};let[,h]=ov(a),f=["sans-serif",s],d=t.split(Wn.lineBreakRegex),g=[],b=fn("body");if(!b.remove)return{width:0,height:0,lineHeight:0};let v=b.append("svg");for(let C of f){let E=0,S={width:0,height:0,lineHeight:0};for(let R of d){let L=dWn();L.text=R||wrt;let D=pWn(v,L).style("font-size",h).style("font-weight",l).style("font-family",C),M=(D._groups||D)[0][0].getBBox();if(M.width===0&&M.height===0)throw new Error("svg element not in render tree");S.width=Math.round(Math.max(S.width,M.width)),E=Math.round(M.height),S.height+=E,S.lineHeight=Math.round(Math.max(S.lineHeight,E))}g.push(S)}v.remove();let T=isNaN(g[1].height)||isNaN(g[1].width)||isNaN(g[1].lineHeight)||g[0].height>g[1].height&&g[0].width>g[1].width&&g[0].lineHeight>g[1].lineHeight?0:1;return g[T]},(t,r)=>`${t}${r.fontSize}${r.fontWeight}${r.fontFamily}`),vrt=class{constructor(r=!1,a){this.count=0;this.count=a?a.length:0,this.next=r?()=>this.count++:()=>Date.now()}static{i(this,"InitIDGenerator")}},mWn=i(function(t){return eke=eke||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),eke.innerHTML=t,unescape(eke.textContent)},"entityDecode");i(Srt,"isDetailedError");yWn=i((t,r,a,s)=>{if(!s)return;let l=t.node()?.getBBox();l&&t.append("text").text(s).attr("text-anchor","middle").attr("x",l.x+l.width/2).attr("y",-a).attr("class",r)},"insertTitle"),ov=i(t=>{if(typeof t=="number")return[t,t+"px"];let r=parseInt(t??"",10);return Number.isNaN(r)?[void 0,void 0]:t===String(r)?[r,t+"px"]:[r,t]},"parseFontSize");i(fl,"cleanAndMerge");za={assignWithDepth:Kh,wrapLabel:lB,calculateTextHeight:tke,calculateTextWidth:U1,calculateTextDimensions:sae,cleanAndMerge:fl,detectInit:iWn,detectDirective:jvr,isSubstringInArray:aWn,interpolateToCurve:xrt,calcLabelPosition:cWn,calcCardinalityPosition:uWn,calcTerminalLabelPosition:hWn,formatUrl:sWn,getStylesFromArray:krt,generateId:Crt,random:Ert,runFunc:oWn,entityDecode:mWn,insertTitle:yWn,isLabelCoordinateInPath:bWn,parseFontSize:ov,InitIDGenerator:vrt},Vvr=i(function(t){let r=t;return r=r.replace(/style.*:\S*#.*;/g,function(a){return a.substring(0,a.length-1)}),r=r.replace(/classDef.*:\S*#.*;/g,function(a){return a.substring(0,a.length-1)}),r=r.replace(/#\w+;/g,function(a){let s=a.substring(1,a.length-1);return/^\+?\d+$/.test(s)?"\uFB02\xB0\xB0"+s+"\xB6\xDF":"\uFB02\xB0"+s+"\xB6\xDF"}),r},"encodeEntities"),U2=i(function(t){return t.replace(/fl°°/g,"").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),V2=i((t,r,{counter:a=0,prefix:s,suffix:l},h)=>h||`${s?`${s}_`:""}${t}_${r}_${a}${l?`_${l}`:""}`,"getEdgeId");i(Oc,"handleUndefinedAttr");i(bWn,"isLabelCoordinateInPath")});var Hvr,qvr=ee(()=>{"use strict";rl();Hvr=i((t,r)=>{if(r==="sandbox"){let s=fn("#i"+t).node()?.contentDocument;if(!s)throw new Error(`Sandbox iframe #i${t} is missing its content document`);return{root:fn(s.body),doc:s}}return{root:fn("body"),doc:document}},"getDiagramRoot")});var yNa,fH=ee(()=>{"use strict";yNa=typeof performance<"u"&&typeof performance.now=="function";globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"}});function _rt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function Jvr(t){uB=t}function Ku(t,r=""){let a=typeof t=="string"?t:t.source,s={replace:i((l,h)=>{let f=typeof h=="string"?h:h.source;return f=f.replace(lv.caret,"$1"),a=a.replace(l,f),s},"replace"),getRegex:i(()=>new RegExp(a,r),"getRegex")};return s}function d5(t,r){if(r){if(lv.escapeTest.test(t))return t.replace(lv.escapeReplace,Yvr)}else if(lv.escapeTestNoEncode.test(t))return t.replace(lv.escapeReplaceNoEncode,Yvr);return t}function Kvr(t){try{t=encodeURI(t).replace(lv.percentDecode,"%")}catch{return null}return t}function Xvr(t,r){let a=t.replace(lv.findPipe,(h,f,d)=>{let g=!1,b=f;for(;--b>=0&&d[b]==="\\";)g=!g;return g?"|":" |"}),s=a.split(lv.splitPipe),l=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),r)if(s.length>r)s.splice(r);else for(;s.length0?-2:-1}function Qvr(t,r,a,s,l){let h=r.href,f=r.title||null,d=t[1].replace(l.other.outputLinkReplace,"$1");s.state.inLink=!0;let g={type:t[0].charAt(0)==="!"?"image":"link",raw:a,href:h,title:f,text:d,tokens:s.inlineTokens(d)};return s.state.inLink=!1,g}function ZWn(t,r,a){let s=t.match(a.other.indentCodeCompensation);if(s===null)return r;let l=s[1];return r.split(`
-`).map(h=>{let f=h.match(a.other.beginningSpace);if(f===null)return h;let[d]=f;return d.length>=l.length?h.slice(l.length):h}).join(`
-`)}function Iu(t,r){return cB.parse(t,r)}var uB,uae,lv,vWn,wWn,xWn,hae,TWn,Drt,Zvr,e2r,kWn,Irt,CWn,Mrt,EWn,SWn,ske,Nrt,AWn,t2r,RWn,Ort,Wvr,LWn,_Wn,DWn,IWn,r2r,MWn,oke,Prt,n2r,NWn,i2r,OWn,PWn,BWn,a2r,FWn,$Wn,s2r,GWn,jWn,zWn,UWn,VWn,HWn,qWn,nke,WWn,o2r,l2r,YWn,Brt,KWn,Art,XWn,rke,oae,QWn,Yvr,ike,$8,ake,Frt,G8,cae,eYn,cB,wNa,xNa,TNa,kNa,CNa,ENa,SNa,c2r=ee(()=>{"use strict";i(_rt,"L");uB=_rt();i(Jvr,"G");uae={exec:i(()=>null,"exec")};i(Ku,"h");lv={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:i(t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),"listItemRegex"),nextBulletRegex:i(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),"nextBulletRegex"),hrRegex:i(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),"hrRegex"),fencesBeginRegex:i(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),"fencesBeginRegex"),headingBeginRegex:i(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),"headingBeginRegex"),htmlBeginRegex:i(t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),"htmlBeginRegex")},vWn=/^(?:[ \t]*(?:\n|$))+/,wWn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,xWn=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hae=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,TWn=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Drt=/(?:[*+-]|\d{1,9}[.)])/,Zvr=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,e2r=Ku(Zvr).replace(/bull/g,Drt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),kWn=Ku(Zvr).replace(/bull/g,Drt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Irt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,CWn=/^[^\n]+/,Mrt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,EWn=Ku(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Mrt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),SWn=Ku(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Drt).getRegex(),ske="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Nrt=/|$))/,AWn=Ku("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Nrt).replace("tag",ske).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),t2r=Ku(Irt).replace("hr",hae).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ske).getRegex(),RWn=Ku(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",t2r).getRegex(),Ort={blockquote:RWn,code:wWn,def:EWn,fences:xWn,heading:TWn,hr:hae,html:AWn,lheading:e2r,list:SWn,newline:vWn,paragraph:t2r,table:uae,text:CWn},Wvr=Ku("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",hae).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ske).getRegex(),LWn={...Ort,lheading:kWn,table:Wvr,paragraph:Ku(Irt).replace("hr",hae).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Wvr).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ske).getRegex()},_Wn={...Ort,html:Ku(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Nrt).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:uae,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ku(Irt).replace("hr",hae).replace("heading",` *#{1,6} *[^
-]`).replace("lheading",e2r).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},DWn=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,IWn=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,r2r=/^( {2,}|\\)\n(?!\s*$)/,MWn=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,a2r=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,FWn=Ku(a2r,"u").replace(/punct/g,oke).getRegex(),$Wn=Ku(a2r,"u").replace(/punct/g,i2r).getRegex(),s2r="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",GWn=Ku(s2r,"gu").replace(/notPunctSpace/g,n2r).replace(/punctSpace/g,Prt).replace(/punct/g,oke).getRegex(),jWn=Ku(s2r,"gu").replace(/notPunctSpace/g,PWn).replace(/punctSpace/g,OWn).replace(/punct/g,i2r).getRegex(),zWn=Ku("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,n2r).replace(/punctSpace/g,Prt).replace(/punct/g,oke).getRegex(),UWn=Ku(/\\(punct)/,"gu").replace(/punct/g,oke).getRegex(),VWn=Ku(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),HWn=Ku(Nrt).replace("(?:-->|$)","-->").getRegex(),qWn=Ku("^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",HWn).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),nke=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/,WWn=Ku(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",nke).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),o2r=Ku(/^!?\[(label)\]\[(ref)\]/).replace("label",nke).replace("ref",Mrt).getRegex(),l2r=Ku(/^!?\[(ref)\](?:\[\])?/).replace("ref",Mrt).getRegex(),YWn=Ku("reflink|nolink(?!\\()","g").replace("reflink",o2r).replace("nolink",l2r).getRegex(),Brt={_backpedal:uae,anyPunctuation:UWn,autolink:VWn,blockSkip:BWn,br:r2r,code:IWn,del:uae,emStrongLDelim:FWn,emStrongRDelimAst:GWn,emStrongRDelimUnd:zWn,escape:DWn,link:WWn,nolink:l2r,punctuation:NWn,reflink:o2r,reflinkSearch:YWn,tag:qWn,text:MWn,url:uae},KWn={...Brt,link:Ku(/^!?\[(label)\]\((.*?)\)/).replace("label",nke).getRegex(),reflink:Ku(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",nke).getRegex()},Art={...Brt,emStrongRDelimAst:jWn,emStrongLDelim:$Wn,url:Ku(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},Yvr=i(t=>QWn[t],"ke");i(d5,"w");i(Kvr,"J");i(Xvr,"V");i(lae,"z");i(JWn,"ge");i(Qvr,"fe");i(ZWn,"Je");ike=class{static{i(this,"y")}options;rules;lexer;constructor(t){this.options=t||uB}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let a=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?a:lae(a,`
-`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let a=r[0],s=ZWn(a,r[3]||"",this.rules);return{type:"code",raw:a,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:s}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let a=r[2].trim();if(this.rules.other.endingHash.test(a)){let s=lae(a,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(a=s.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:a,tokens:this.lexer.inline(a)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:lae(r[0],`
-`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let a=lae(r[0],`
+ ${t}
+`},"getStyles"),vJ=s((e,t)=>{t!==void 0&&(dk[e]=t)},"addStylesForDiagram"),xJ=VWe});var nb={};sr(nb,{clear:()=>Tr,getAccDescription:()=>Nr,getAccTitle:()=>Ir,getDiagramTitle:()=>Pr,setAccDescription:()=>Mr,setAccTitle:()=>Lr,setDiagramTitle:()=>Gr});var J7,eI,tI,rI,Tr,Lr,Ir,Mr,Nr,Gr,Pr,$n=F(()=>{"use strict";Yr();br();J7="",eI="",tI="",rI=s(e=>xr(e,Lt()),"sanitizeText"),Tr=s(()=>{J7="",tI="",eI=""},"clear"),Lr=s(e=>{J7=rI(e).replace(/^\s+/g,"")},"setAccTitle"),Ir=s(()=>J7,"getAccTitle"),Mr=s(e=>{tI=rI(e).replace(/\n\s+/g,`
+`)},"setAccDescription"),Nr=s(()=>tI,"getAccDescription"),Gr=s(e=>{eI=rI(e)},"setDiagramTitle"),Pr=s(()=>eI,"getDiagramTitle")});var bJ,WWe,Pe,ib,pk,ab,sb,qWe,fk,Kp,ob,nI,Jt=F(()=>{"use strict";Xp();St();br();Yr();Vn();Q7();$n();bJ=se,WWe=Mx,Pe=Lt,ib=kw,pk=wd,ab=s(e=>xr(e,Pe()),"sanitizeText"),sb=ml,qWe=s(()=>nb,"getCommonDb"),fk={},Kp=s((e,t,r)=>{fk[e]&&bJ.warn(`Diagram with id ${e} already registered. Overwriting.`),fk[e]=t,r&&X7(e,r),vJ(e,t.styles),t.injectUtils?.(bJ,WWe,Pe,ab,sb,qWe(),()=>{})},"registerDiagram"),ob=s(e=>{if(e in fk)return fk[e];throw new nI(e)},"getDiagram"),nI=class extends Error{static{s(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}}});var mk,iI=F(()=>{"use strict";Jt();mk=s(e=>Pe()[e],"getRequiredConfig")});var Zp,TJ,Yl,Pd,Ns,Ul,Wc,lb,aI,sI,gk,yk,CJ,HWe,UWe,YWe,jWe,XWe,KWe,ZWe,QWe,JWe,eqe,tqe,rqe,nqe,iqe,aqe,sqe,oqe,SJ,lqe,cqe,wJ,uqe,hqe,dqe,fqe,Od,pqe,mqe,gqe,yqe,vqe,cb,oI=F(()=>{"use strict";Jt();iI();Yr();$n();Zp=s((e,t)=>{for(let[r,n]of Object.entries(t))if(n!==void 0)if(typeof n=="object"){let[i,a]=Object.entries(n)[0];e[i]=a}else e[r]=n},"assignAttributes"),TJ=s(()=>({alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}),"createGlobalBoundary"),Yl=[],Pd=[""],Ns="global",Ul="",Wc=[TJ()],lb=[],aI="",sI=!1,gk=4,yk=2,HWe=s(function(){return CJ},"getC4Type"),UWe=s(function(e){CJ=xr(e,Pe())},"setC4Type"),YWe=s(function(e,t,r,n,i,a,o,l,u){if(e==null||t===void 0||t===null||r===void 0||r===null||n===void 0||n===null)return;let h={},d=lb.find(f=>f.from===t&&f.to===r);if(d?h=d:lb.push(h),h.type=e,h.from=t,h.to=r,h.label={text:n},i==null)h.techn={text:""};else if(typeof i=="object"){let[f,p]=Object.entries(i)[0];h[f]={text:p}}else h.techn={text:i};if(a==null)h.descr={text:""};else if(typeof a=="object"){let[f,p]=Object.entries(a)[0];h[f]={text:p}}else h.descr={text:a};Zp(h,{sprite:o,tags:l,link:u}),h.wrap=Od()},"addRel"),jWe=s(function(e,t,r,n,i,a,o){if(t===null||r===null)return;let l={},u=Yl.find(h=>h.alias===t);if(u&&t===u.alias?l=u:(l.alias=t,Yl.push(l)),r==null?l.label={text:""}:l.label={text:r},n==null)l.descr={text:""};else if(typeof n=="object"){let[h,d]=Object.entries(n)[0];l[h]={text:d}}else l.descr={text:n};Zp(l,{sprite:i,tags:a,link:o}),l.typeC4Shape={text:e},l.parentBoundary=Ns,l.wrap=Od()},"addPersonOrSystem"),XWe=s(function(e,t,r,n,i,a,o,l){if(t===null||r===null)return;let u={},h=Yl.find(d=>d.alias===t);if(h&&t===h.alias?u=h:(u.alias=t,Yl.push(u)),r==null?u.label={text:""}:u.label={text:r},n==null)u.techn={text:""};else if(typeof n=="object"){let[d,f]=Object.entries(n)[0];u[d]={text:f}}else u.techn={text:n};if(i==null)u.descr={text:""};else if(typeof i=="object"){let[d,f]=Object.entries(i)[0];u[d]={text:f}}else u.descr={text:i};Zp(u,{sprite:a,tags:o,link:l}),u.wrap=Od(),u.typeC4Shape={text:e},u.parentBoundary=Ns},"addContainer"),KWe=s(function(e,t,r,n,i,a,o,l){if(t===null||r===null)return;let u={},h=Yl.find(d=>d.alias===t);if(h&&t===h.alias?u=h:(u.alias=t,Yl.push(u)),r==null?u.label={text:""}:u.label={text:r},n==null)u.techn={text:""};else if(typeof n=="object"){let[d,f]=Object.entries(n)[0];u[d]={text:f}}else u.techn={text:n};if(i==null)u.descr={text:""};else if(typeof i=="object"){let[d,f]=Object.entries(i)[0];u[d]={text:f}}else u.descr={text:i};Zp(u,{sprite:a,tags:o,link:l}),u.wrap=Od(),u.typeC4Shape={text:e},u.parentBoundary=Ns},"addComponent"),ZWe=s(function(e,t,r,n,i){if(e===null||t===null)return;let a={},o=Wc.find(l=>l.alias===e);if(o&&e===o.alias?a=o:(a.alias=e,Wc.push(a)),t==null?a.label={text:""}:a.label={text:t},r==null)a.type={text:"system"};else if(typeof r=="object"){let[l,u]=Object.entries(r)[0];a[l]={text:u}}else a.type={text:r};Zp(a,{tags:n,link:i}),a.parentBoundary=Ns,a.wrap=Od(),Ul=Ns,Ns=e,Pd.push(Ul)},"addPersonOrSystemBoundary"),QWe=s(function(e,t,r,n,i){if(e===null||t===null)return;let a={},o=Wc.find(l=>l.alias===e);if(o&&e===o.alias?a=o:(a.alias=e,Wc.push(a)),t==null?a.label={text:""}:a.label={text:t},r==null)a.type={text:"container"};else if(typeof r=="object"){let[l,u]=Object.entries(r)[0];a[l]={text:u}}else a.type={text:r};Zp(a,{tags:n,link:i}),a.parentBoundary=Ns,a.wrap=Od(),Ul=Ns,Ns=e,Pd.push(Ul)},"addContainerBoundary"),JWe=s(function(e,t,r,n,i,a,o,l){if(t===null||r===null)return;let u={},h=Wc.find(d=>d.alias===t);if(h&&t===h.alias?u=h:(u.alias=t,Wc.push(u)),r==null?u.label={text:""}:u.label={text:r},n==null)u.type={text:"node"};else if(typeof n=="object"){let[d,f]=Object.entries(n)[0];u[d]={text:f}}else u.type={text:n};if(i==null)u.descr={text:""};else if(typeof i=="object"){let[d,f]=Object.entries(i)[0];u[d]={text:f}}else u.descr={text:i};Zp(u,{tags:o,link:l}),u.nodeType=e,u.parentBoundary=Ns,u.wrap=Od(),Ul=Ns,Ns=t,Pd.push(Ul)},"addDeploymentNode"),eqe=s(function(){Ns=Ul,Pd.pop(),Ul=Pd.pop(),Pd.push(Ul)},"popBoundaryParseStack"),tqe=s(function(e,t,r,n,i,a,o,l,u,h,d){let f=Yl.find(p=>p.alias===t);if(!(f===void 0&&(f=Wc.find(p=>p.alias===t),f===void 0))){if(r!=null)if(typeof r=="object"){let[p,m]=Object.entries(r)[0];f[p]=m}else f.bgColor=r;if(n!=null)if(typeof n=="object"){let[p,m]=Object.entries(n)[0];f[p]=m}else f.fontColor=n;if(i!=null)if(typeof i=="object"){let[p,m]=Object.entries(i)[0];f[p]=m}else f.borderColor=i;if(a!=null)if(typeof a=="object"){let[p,m]=Object.entries(a)[0];f[p]=m}else f.shadowing=a;if(o!=null)if(typeof o=="object"){let[p,m]=Object.entries(o)[0];f[p]=m}else f.shape=o;if(l!=null)if(typeof l=="object"){let[p,m]=Object.entries(l)[0];f[p]=m}else f.sprite=l;if(u!=null)if(typeof u=="object"){let[p,m]=Object.entries(u)[0];f[p]=m}else f.techn=u;if(h!=null)if(typeof h=="object"){let[p,m]=Object.entries(h)[0];f[p]=m}else f.legendText=h;if(d!=null)if(typeof d=="object"){let[p,m]=Object.entries(d)[0];f[p]=m}else f.legendSprite=d}},"updateElStyle"),rqe=s(function(e,t,r,n,i,a,o){let l=lb.find(u=>u.from===t&&u.to===r);if(l!==void 0){if(n!=null)if(typeof n=="object"){let[u,h]=Object.entries(n)[0];l[u]=h}else l.textColor=n;if(i!=null)if(typeof i=="object"){let[u,h]=Object.entries(i)[0];l[u]=h}else l.lineColor=i;if(a!=null)if(typeof a=="object"){let[u,h]=Object.entries(a)[0];l[u]=parseInt(h)}else l.offsetX=parseInt(a);if(o!=null)if(typeof o=="object"){let[u,h]=Object.entries(o)[0];l[u]=parseInt(h)}else l.offsetY=parseInt(o)}},"updateRelStyle"),nqe=s(function(e,t,r){let n=gk,i=yk;if(typeof t=="object"){let a=Object.values(t)[0];n=parseInt(a)}else n=parseInt(t);if(typeof r=="object"){let a=Object.values(r)[0];i=parseInt(a)}else i=parseInt(r);n>=1&&(gk=n),i>=1&&(yk=i)},"updateLayoutConfig"),iqe=s(function(){return gk},"getC4ShapeInRow"),aqe=s(function(){return yk},"getC4BoundaryInRow"),sqe=s(function(){return Ns},"getCurrentBoundaryParse"),oqe=s(function(){return Ul},"getParentBoundaryParse"),SJ=s(function(e){return e==null?Yl:Yl.filter(t=>t.parentBoundary===e)},"getC4ShapeArray"),lqe=s(function(e){return Yl.find(t=>t.alias===e)},"getC4Shape"),cqe=s(function(e){return Object.keys(SJ(e))},"getC4ShapeKeys"),wJ=s(function(e){return e==null?Wc:Wc.filter(t=>t.parentBoundary===e)},"getBoundaries"),uqe=wJ,hqe=s(function(){return lb},"getRels"),dqe=s(function(){return aI},"getTitle"),fqe=s(function(e){sI=e},"setWrap"),Od=s(function(){return sI},"autoWrap"),pqe=s(function(){Yl=[],Wc=[TJ()],Ul="",Ns="global",Pd=[""],lb=[],Pd=[""],aI="",sI=!1,gk=4,yk=2},"clear"),mqe={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},gqe={FILLED:0,OPEN:1},yqe={LEFTOF:0,RIGHTOF:1,OVER:2},vqe=s(function(e){aI=xr(e,Pe())},"setTitle"),cb={addPersonOrSystem:jWe,addPersonOrSystemBoundary:ZWe,addContainer:XWe,addContainerBoundary:QWe,addComponent:KWe,addDeploymentNode:JWe,popBoundaryParseStack:eqe,addRel:YWe,updateElStyle:tqe,updateRelStyle:rqe,updateLayoutConfig:nqe,autoWrap:Od,setWrap:fqe,getC4ShapeArray:SJ,getC4Shape:lqe,getC4ShapeKeys:cqe,getBoundaries:wJ,getBoundarys:uqe,getCurrentBoundaryParse:sqe,getParentBoundaryParse:oqe,getRels:hqe,getTitle:dqe,getC4Type:HWe,getC4ShapeInRow:iqe,getC4BoundaryInRow:aqe,setAccTitle:Lr,getAccTitle:Ir,getAccDescription:Nr,setAccDescription:Mr,getConfig:s(()=>mk("c4"),"getConfig"),clear:pqe,LINETYPE:mqe,ARROWTYPE:gqe,PLACEMENT:yqe,setTitle:vqe,setC4Type:UWe}});var kJ=As(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.BLANK_URL=La.relativeFirstCharacters=La.whitespaceEscapeCharsRegex=La.urlSchemeRegex=La.ctrlCharactersRegex=La.htmlCtrlEntityRegex=La.htmlEntitiesRegex=La.invalidProtocolRegex=void 0;La.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;La.htmlEntitiesRegex=/(\w+)(^\w|;)?/g;La.htmlCtrlEntityRegex=/&(newline|tab);/gi;La.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;La.urlSchemeRegex=/^.+(:|:)/gim;La.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;La.relativeFirstCharacters=[".","/"];La.BLANK_URL="about:blank"});var ub=As(lI=>{"use strict";Object.defineProperty(lI,"__esModule",{value:!0});lI.sanitizeUrl=Cqe;var ms=kJ();function xqe(e){return ms.relativeFirstCharacters.indexOf(e[0])>-1}s(xqe,"isRelativeUrlWithoutProtocol");function bqe(e){var t=e.replace(ms.ctrlCharactersRegex,"");return t.replace(ms.htmlEntitiesRegex,function(r,n){return String.fromCharCode(n)})}s(bqe,"decodeHtmlCharacters");function Tqe(e){return URL.canParse(e)}s(Tqe,"isValidUrl");function EJ(e){try{return decodeURIComponent(e)}catch{return e}}s(EJ,"decodeURI");function Cqe(e){if(!e)return ms.BLANK_URL;var t,r=EJ(e.trim());do r=bqe(r).replace(ms.htmlCtrlEntityRegex,"").replace(ms.ctrlCharactersRegex,"").replace(ms.whitespaceEscapeCharsRegex,"").trim(),r=EJ(r),t=r.match(ms.ctrlCharactersRegex)||r.match(ms.htmlEntitiesRegex)||r.match(ms.htmlCtrlEntityRegex)||r.match(ms.whitespaceEscapeCharsRegex);while(t&&t.length>0);var n=r;if(!n)return ms.BLANK_URL;if(xqe(n))return n;var i=n.trimStart(),a=i.match(ms.urlSchemeRegex);if(!a)return n;var o=a[0].toLowerCase().trim();if(ms.invalidProtocolRegex.test(o))return ms.BLANK_URL;var l=i.replace(/\\/g,"/");if(o==="mailto:"||o.includes("://"))return l;if(o==="http:"||o==="https:"){if(!Tqe(l))return ms.BLANK_URL;var u=new URL(l);return u.protocol=u.protocol.toLowerCase(),u.hostname=u.hostname.toLowerCase(),u.toString()}return l}s(Cqe,"sanitizeUrl")});function Qp(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}var cI=F(()=>{"use strict";s(Qp,"ascending")});function uI(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}var AJ=F(()=>{"use strict";s(uI,"descending")});function Jp(e){let t,r,n;e.length!==2?(t=Qp,r=s((l,u)=>Qp(e(l),u),"compare2"),n=s((l,u)=>e(l)-u,"delta")):(t=e===Qp||e===uI?e:Sqe,r=e,n=e);function i(l,u,h=0,d=l.length){if(h>>1;r(l[f],u)<0?h=f+1:d=f}while(h>>1;r(l[f],u)<=0?h=f+1:d=f}while(hh&&n(l[f-1],u)>-n(l[f],u)?f-1:f}return s(o,"center"),{left:i,center:o,right:a}}function Sqe(){return 0}var hI=F(()=>{"use strict";cI();AJ();s(Jp,"bisector");s(Sqe,"zero")});function dI(e){return e===null?NaN:+e}var RJ=F(()=>{"use strict";s(dI,"number")});var _J,LJ,wqe,kqe,fI,DJ=F(()=>{"use strict";cI();hI();RJ();_J=Jp(Qp),LJ=_J.right,wqe=_J.left,kqe=Jp(dI).center,fI=LJ});function IJ({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):r}function Eqe({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function Aqe({_intern:e,_key:t},r){let n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function Rqe(e){return e!==null&&typeof e=="object"?e.valueOf():e}var ny,MJ=F(()=>{"use strict";ny=class extends Map{static{s(this,"InternMap")}constructor(t,r=Rqe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(let[n,i]of t)this.set(n,i)}get(t){return super.get(IJ(this,t))}has(t){return super.has(IJ(this,t))}set(t,r){return super.set(Eqe(this,t),r)}delete(t){return super.delete(Aqe(this,t))}};s(IJ,"intern_get");s(Eqe,"intern_set");s(Aqe,"intern_delete");s(Rqe,"keyof")});function vk(e,t,r){let n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=_qe?10:a>=Lqe?5:a>=Dqe?2:1,l,u,h;return i<0?(h=Math.pow(10,-i)/o,l=Math.round(e*h),u=Math.round(t*h),l/ht&&--u,h=-h):(h=Math.pow(10,i)*o,l=Math.round(e/h),u=Math.round(t/h),l*ht&&--u),u0))return[];if(e===t)return[e];let n=t=i))return[];let l=a-i+1,u=new Array(l);if(n)if(o<0)for(let h=0;h{"use strict";_qe=Math.sqrt(50),Lqe=Math.sqrt(10),Dqe=Math.sqrt(2);s(vk,"tickSpec");s(xk,"ticks");s(hb,"tickIncrement");s(iy,"tickStep")});function bk(e,t){let r;if(t===void 0)for(let n of e)n!=null&&(r=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r=i)&&(r=i)}return r}var PJ=F(()=>{"use strict";s(bk,"max")});function Tk(e,t){let r;if(t===void 0)for(let n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}var OJ=F(()=>{"use strict";s(Tk,"min")});function Ck(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n{"use strict";s(Ck,"range")});var Bd=F(()=>{"use strict";DJ();hI();PJ();OJ();BJ();NJ();MJ()});function pI(e){return e}var $J=F(()=>{"use strict";s(pI,"default")});function Iqe(e){return"translate("+e+",0)"}function Mqe(e){return"translate(0,"+e+")"}function Nqe(e){return t=>+e(t)}function Pqe(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),r=>+e(r)+t}function Oqe(){return!this.__axis}function GJ(e,t){var r=[],n=null,i=null,a=6,o=6,l=3,u=typeof window<"u"&&window.devicePixelRatio>1?0:.5,h=e===wk||e===Sk?-1:1,d=e===Sk||e===mI?"x":"y",f=e===wk||e===gI?Iqe:Mqe;function p(m){var g=n??(t.ticks?t.ticks.apply(t,r):t.domain()),y=i??(t.tickFormat?t.tickFormat.apply(t,r):pI),v=Math.max(a,0)+l,x=t.range(),b=+x[0]+u,T=+x[x.length-1]+u,w=(t.bandwidth?Pqe:Nqe)(t.copy(),u),C=m.selection?m.selection():m,S=C.selectAll(".domain").data([null]),k=C.selectAll(".tick").data(g,t).order(),R=k.exit(),M=k.enter().append("g").attr("class","tick"),P=k.select("line"),N=k.select("text");S=S.merge(S.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),k=k.merge(M),P=P.merge(M.append("line").attr("stroke","currentColor").attr(d+"2",h*a)),N=N.merge(M.append("text").attr("fill","currentColor").attr(d,h*v).attr("dy",e===wk?"0em":e===gI?"0.71em":"0.32em")),m!==C&&(S=S.transition(m),k=k.transition(m),P=P.transition(m),N=N.transition(m),R=R.transition(m).attr("opacity",FJ).attr("transform",function(_){return isFinite(_=w(_))?f(_+u):this.getAttribute("transform")}),M.attr("opacity",FJ).attr("transform",function(_){var A=this.parentNode.__axis;return f((A&&isFinite(A=A(_))?A:w(_))+u)})),R.remove(),S.attr("d",e===Sk||e===mI?o?"M"+h*o+","+b+"H"+u+"V"+T+"H"+h*o:"M"+u+","+b+"V"+T:o?"M"+b+","+h*o+"V"+u+"H"+T+"V"+h*o:"M"+b+","+u+"H"+T),k.attr("opacity",1).attr("transform",function(_){return f(w(_)+u)}),P.attr(d+"2",h*a),N.attr(d,h*v).text(y),C.filter(Oqe).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===mI?"start":e===Sk?"end":"middle"),C.each(function(){this.__axis=w})}return s(p,"axis"),p.scale=function(m){return arguments.length?(t=m,p):t},p.ticks=function(){return r=Array.from(arguments),p},p.tickArguments=function(m){return arguments.length?(r=m==null?[]:Array.from(m),p):r.slice()},p.tickValues=function(m){return arguments.length?(n=m==null?null:Array.from(m),p):n&&n.slice()},p.tickFormat=function(m){return arguments.length?(i=m,p):i},p.tickSize=function(m){return arguments.length?(a=o=+m,p):a},p.tickSizeInner=function(m){return arguments.length?(a=+m,p):a},p.tickSizeOuter=function(m){return arguments.length?(o=+m,p):o},p.tickPadding=function(m){return arguments.length?(l=+m,p):l},p.offset=function(m){return arguments.length?(u=+m,p):u},p}function yI(e){return GJ(wk,e)}function vI(e){return GJ(gI,e)}var wk,mI,gI,Sk,FJ,zJ=F(()=>{"use strict";$J();wk=1,mI=2,gI=3,Sk=4,FJ=1e-6;s(Iqe,"translateX");s(Mqe,"translateY");s(Nqe,"number");s(Pqe,"center");s(Oqe,"entering");s(GJ,"axis");s(yI,"axisTop");s(vI,"axisBottom")});var VJ=F(()=>{"use strict";zJ()});function qJ(){for(var e=0,t=arguments.length,r={},n;e=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}function Fqe(e,t){for(var r=0,n=e.length,i;r{"use strict";Bqe={value:s(()=>{},"value")};s(qJ,"dispatch");s(kk,"Dispatch");s($qe,"parseTypenames");kk.prototype=qJ.prototype={constructor:kk,on:s(function(e,t){var r=this._,n=$qe(e+"",r),i,a=-1,o=n.length;if(arguments.length<2){for(;++a0)for(var r=new Array(i),n=0,i,a;n{"use strict";HJ()});var Ek,TI,CI=F(()=>{"use strict";Ek="http://www.w3.org/1999/xhtml",TI={svg:"http://www.w3.org/2000/svg",xhtml:Ek,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}});function qc(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),TI.hasOwnProperty(t)?{space:TI[t],local:e}:e}var Ak=F(()=>{"use strict";CI();s(qc,"default")});function Gqe(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Ek&&t.documentElement.namespaceURI===Ek?t.createElement(e):t.createElementNS(r,e)}}function zqe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function db(e){var t=qc(e);return(t.local?zqe:Gqe)(t)}var SI=F(()=>{"use strict";Ak();CI();s(Gqe,"creatorInherit");s(zqe,"creatorFixed");s(db,"default")});function Vqe(){}function $d(e){return e==null?Vqe:function(){return this.querySelector(e)}}var Rk=F(()=>{"use strict";s(Vqe,"none");s($d,"default")});function wI(e){typeof e!="function"&&(e=$d(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i{"use strict";jl();Rk();s(wI,"default")});function kI(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}var YJ=F(()=>{"use strict";s(kI,"array")});function Wqe(){return[]}function ay(e){return e==null?Wqe:function(){return this.querySelectorAll(e)}}var EI=F(()=>{"use strict";s(Wqe,"empty");s(ay,"default")});function qqe(e){return function(){return kI(e.apply(this,arguments))}}function AI(e){typeof e=="function"?e=qqe(e):e=ay(e);for(var t=this._groups,r=t.length,n=[],i=[],a=0;a{"use strict";jl();YJ();EI();s(qqe,"arrayAll");s(AI,"default")});function sy(e){return function(){return this.matches(e)}}function _k(e){return function(t){return t.matches(e)}}var fb=F(()=>{"use strict";s(sy,"default");s(_k,"childMatcher")});function Uqe(e){return function(){return Hqe.call(this.children,e)}}function Yqe(){return this.firstElementChild}function RI(e){return this.select(e==null?Yqe:Uqe(typeof e=="function"?e:_k(e)))}var Hqe,XJ=F(()=>{"use strict";fb();Hqe=Array.prototype.find;s(Uqe,"childFind");s(Yqe,"childFirst");s(RI,"default")});function Xqe(){return Array.from(this.children)}function Kqe(e){return function(){return jqe.call(this.children,e)}}function _I(e){return this.selectAll(e==null?Xqe:Kqe(typeof e=="function"?e:_k(e)))}var jqe,KJ=F(()=>{"use strict";fb();jqe=Array.prototype.filter;s(Xqe,"children");s(Kqe,"childrenFilter");s(_I,"default")});function LI(e){typeof e!="function"&&(e=sy(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i{"use strict";jl();fb();s(LI,"default")});function pb(e){return new Array(e.length)}var DI=F(()=>{"use strict";s(pb,"default")});function II(){return new Ii(this._enter||this._groups.map(pb),this._parents)}function mb(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}var MI=F(()=>{"use strict";DI();jl();s(II,"default");s(mb,"EnterNode");mb.prototype={constructor:mb,appendChild:s(function(e){return this._parent.insertBefore(e,this._next)},"appendChild"),insertBefore:s(function(e,t){return this._parent.insertBefore(e,t)},"insertBefore"),querySelector:s(function(e){return this._parent.querySelector(e)},"querySelector"),querySelectorAll:s(function(e){return this._parent.querySelectorAll(e)},"querySelectorAll")}});function NI(e){return function(){return e}}var QJ=F(()=>{"use strict";s(NI,"default")});function Zqe(e,t,r,n,i,a){for(var o=0,l,u=t.length,h=a.length;o=T&&(T=b+1);!(C=v[T])&&++T{"use strict";jl();MI();QJ();s(Zqe,"bindIndex");s(Qqe,"bindKey");s(Jqe,"datum");s(PI,"default");s(eHe,"arraylike")});function OI(){return new Ii(this._exit||this._groups.map(pb),this._parents)}var eee=F(()=>{"use strict";DI();jl();s(OI,"default")});function BI(e,t,r){var n=this.enter(),i=this,a=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),r==null?a.remove():r(a),n&&i?n.merge(i).order():i}var tee=F(()=>{"use strict";s(BI,"default")});function $I(e){for(var t=e.selection?e.selection():e,r=this._groups,n=t._groups,i=r.length,a=n.length,o=Math.min(i,a),l=new Array(i),u=0;u{"use strict";jl();s($I,"default")});function FI(){for(var e=this._groups,t=-1,r=e.length;++t=0;)(o=n[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}var nee=F(()=>{"use strict";s(FI,"default")});function GI(e){e||(e=tHe);function t(f,p){return f&&p?e(f.__data__,p.__data__):!f-!p}s(t,"compareNode");for(var r=this._groups,n=r.length,i=new Array(n),a=0;at?1:e>=t?0:NaN}var iee=F(()=>{"use strict";jl();s(GI,"default");s(tHe,"ascending")});function zI(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}var aee=F(()=>{"use strict";s(zI,"default")});function VI(){return Array.from(this)}var see=F(()=>{"use strict";s(VI,"default")});function WI(){for(var e=this._groups,t=0,r=e.length;t{"use strict";s(WI,"default")});function qI(){let e=0;for(let t of this)++e;return e}var lee=F(()=>{"use strict";s(qI,"default")});function HI(){return!this.node()}var cee=F(()=>{"use strict";s(HI,"default")});function UI(e){for(var t=this._groups,r=0,n=t.length;r{"use strict";s(UI,"default")});function rHe(e){return function(){this.removeAttribute(e)}}function nHe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function iHe(e,t){return function(){this.setAttribute(e,t)}}function aHe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function sHe(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function oHe(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function YI(e,t){var r=qc(e);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((t==null?r.local?nHe:rHe:typeof t=="function"?r.local?oHe:sHe:r.local?aHe:iHe)(r,t))}var hee=F(()=>{"use strict";Ak();s(rHe,"attrRemove");s(nHe,"attrRemoveNS");s(iHe,"attrConstant");s(aHe,"attrConstantNS");s(sHe,"attrFunction");s(oHe,"attrFunctionNS");s(YI,"default")});function gb(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}var jI=F(()=>{"use strict";s(gb,"default")});function lHe(e){return function(){this.style.removeProperty(e)}}function cHe(e,t,r){return function(){this.style.setProperty(e,t,r)}}function uHe(e,t,r){return function(){var n=t.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,r)}}function XI(e,t,r){return arguments.length>1?this.each((t==null?lHe:typeof t=="function"?uHe:cHe)(e,t,r??"")):Fd(this.node(),e)}function Fd(e,t){return e.style.getPropertyValue(t)||gb(e).getComputedStyle(e,null).getPropertyValue(t)}var KI=F(()=>{"use strict";jI();s(lHe,"styleRemove");s(cHe,"styleConstant");s(uHe,"styleFunction");s(XI,"default");s(Fd,"styleValue")});function hHe(e){return function(){delete this[e]}}function dHe(e,t){return function(){this[e]=t}}function fHe(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function ZI(e,t){return arguments.length>1?this.each((t==null?hHe:typeof t=="function"?fHe:dHe)(e,t)):this.node()[e]}var dee=F(()=>{"use strict";s(hHe,"propertyRemove");s(dHe,"propertyConstant");s(fHe,"propertyFunction");s(ZI,"default")});function fee(e){return e.trim().split(/^|\s+/)}function QI(e){return e.classList||new pee(e)}function pee(e){this._node=e,this._names=fee(e.getAttribute("class")||"")}function mee(e,t){for(var r=QI(e),n=-1,i=t.length;++n{"use strict";s(fee,"classArray");s(QI,"classList");s(pee,"ClassList");pee.prototype={add:s(function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},"add"),remove:s(function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},"remove"),contains:s(function(e){return this._names.indexOf(e)>=0},"contains")};s(mee,"classedAdd");s(gee,"classedRemove");s(pHe,"classedTrue");s(mHe,"classedFalse");s(gHe,"classedFunction");s(JI,"default")});function yHe(){this.textContent=""}function vHe(e){return function(){this.textContent=e}}function xHe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function e8(e){return arguments.length?this.each(e==null?yHe:(typeof e=="function"?xHe:vHe)(e)):this.node().textContent}var vee=F(()=>{"use strict";s(yHe,"textRemove");s(vHe,"textConstant");s(xHe,"textFunction");s(e8,"default")});function bHe(){this.innerHTML=""}function THe(e){return function(){this.innerHTML=e}}function CHe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function t8(e){return arguments.length?this.each(e==null?bHe:(typeof e=="function"?CHe:THe)(e)):this.node().innerHTML}var xee=F(()=>{"use strict";s(bHe,"htmlRemove");s(THe,"htmlConstant");s(CHe,"htmlFunction");s(t8,"default")});function SHe(){this.nextSibling&&this.parentNode.appendChild(this)}function r8(){return this.each(SHe)}var bee=F(()=>{"use strict";s(SHe,"raise");s(r8,"default")});function wHe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function n8(){return this.each(wHe)}var Tee=F(()=>{"use strict";s(wHe,"lower");s(n8,"default")});function i8(e){var t=typeof e=="function"?e:db(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}var Cee=F(()=>{"use strict";SI();s(i8,"default")});function kHe(){return null}function a8(e,t){var r=typeof e=="function"?e:db(e),n=t==null?kHe:typeof t=="function"?t:$d(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}var See=F(()=>{"use strict";SI();Rk();s(kHe,"constantNull");s(a8,"default")});function EHe(){var e=this.parentNode;e&&e.removeChild(this)}function s8(){return this.each(EHe)}var wee=F(()=>{"use strict";s(EHe,"remove");s(s8,"default")});function AHe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function RHe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function o8(e){return this.select(e?RHe:AHe)}var kee=F(()=>{"use strict";s(AHe,"selection_cloneShallow");s(RHe,"selection_cloneDeep");s(o8,"default")});function l8(e){return arguments.length?this.property("__data__",e):this.node().__data__}var Eee=F(()=>{"use strict";s(l8,"default")});function _He(e){return function(t){e.call(this,t,this.__data__)}}function LHe(e){return e.trim().split(/^|\s+/).map(function(t){var r="",n=t.indexOf(".");return n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),{type:t,name:r}})}function DHe(e){return function(){var t=this.__on;if(t){for(var r=0,n=-1,i=t.length,a;r{"use strict";s(_He,"contextListener");s(LHe,"parseTypenames");s(DHe,"onRemove");s(IHe,"onAdd");s(c8,"default")});function Ree(e,t,r){var n=gb(e),i=n.CustomEvent;typeof i=="function"?i=new i(t,r):(i=n.document.createEvent("Event"),r?(i.initEvent(t,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function MHe(e,t){return function(){return Ree(this,e,t)}}function NHe(e,t){return function(){return Ree(this,e,t.apply(this,arguments))}}function u8(e,t){return this.each((typeof t=="function"?NHe:MHe)(e,t))}var _ee=F(()=>{"use strict";jI();s(Ree,"dispatchEvent");s(MHe,"dispatchConstant");s(NHe,"dispatchFunction");s(u8,"default")});function*h8(){for(var e=this._groups,t=0,r=e.length;t{"use strict";s(h8,"default")});function Ii(e,t){this._groups=e,this._parents=t}function Dee(){return new Ii([[document.documentElement]],d8)}function PHe(){return this}var d8,uh,jl=F(()=>{"use strict";UJ();jJ();XJ();KJ();ZJ();JJ();MI();eee();tee();ree();nee();iee();aee();see();oee();lee();cee();uee();hee();KI();dee();yee();vee();xee();bee();Tee();Cee();See();wee();kee();Eee();Aee();_ee();Lee();d8=[null];s(Ii,"Selection");s(Dee,"selection");s(PHe,"selection_selection");Ii.prototype=Dee.prototype={constructor:Ii,select:wI,selectAll:AI,selectChild:RI,selectChildren:_I,filter:LI,data:PI,enter:II,exit:OI,join:BI,merge:$I,selection:PHe,order:FI,sort:GI,call:zI,nodes:VI,node:WI,size:qI,empty:HI,each:UI,attr:YI,style:XI,property:ZI,classed:JI,text:e8,html:t8,raise:r8,lower:n8,append:i8,insert:a8,remove:s8,clone:o8,datum:l8,on:c8,dispatch:u8,[Symbol.iterator]:h8};uh=Dee});function ut(e){return typeof e=="string"?new Ii([[document.querySelector(e)]],[document.documentElement]):new Ii([[e]],d8)}var Iee=F(()=>{"use strict";jl();s(ut,"default")});var Xl=F(()=>{"use strict";fb();Ak();Iee();jl();Rk();EI();KI()});var Mee=F(()=>{"use strict"});function Gd(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function oy(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}var f8=F(()=>{"use strict";s(Gd,"default");s(oy,"extend")});function zd(){}function Pee(){return this.rgb().formatHex()}function WHe(){return this.rgb().formatHex8()}function qHe(){return Vee(this).formatHsl()}function Oee(){return this.rgb().formatRgb()}function Zl(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=OHe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Bee(t):r===3?new Xa(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Lk(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Lk(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=BHe.exec(e))?new Xa(t[1],t[2],t[3],1):(t=$He.exec(e))?new Xa(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=FHe.exec(e))?Lk(t[1],t[2],t[3],t[4]):(t=GHe.exec(e))?Lk(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=zHe.exec(e))?Gee(t[1],t[2]/100,t[3]/100,1):(t=VHe.exec(e))?Gee(t[1],t[2]/100,t[3]/100,t[4]):Nee.hasOwnProperty(e)?Bee(Nee[e]):e==="transparent"?new Xa(NaN,NaN,NaN,0):null}function Bee(e){return new Xa(e>>16&255,e>>8&255,e&255,1)}function Lk(e,t,r,n){return n<=0&&(e=t=r=NaN),new Xa(e,t,r,n)}function m8(e){return e instanceof zd||(e=Zl(e)),e?(e=e.rgb(),new Xa(e.r,e.g,e.b,e.opacity)):new Xa}function cy(e,t,r,n){return arguments.length===1?m8(e):new Xa(e,t,r,n??1)}function Xa(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function $ee(){return`#${em(this.r)}${em(this.g)}${em(this.b)}`}function HHe(){return`#${em(this.r)}${em(this.g)}${em(this.b)}${em((isNaN(this.opacity)?1:this.opacity)*255)}`}function Fee(){let e=Mk(this.opacity);return`${e===1?"rgb(":"rgba("}${tm(this.r)}, ${tm(this.g)}, ${tm(this.b)}${e===1?")":`, ${e})`}`}function Mk(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function tm(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function em(e){return e=tm(e),(e<16?"0":"")+e.toString(16)}function Gee(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Kl(e,t,r,n)}function Vee(e){if(e instanceof Kl)return new Kl(e.h,e.s,e.l,e.opacity);if(e instanceof zd||(e=Zl(e)),!e)return new Kl;if(e instanceof Kl)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,l=a-i,u=(a+i)/2;return l?(t===a?o=(r-n)/l+(r0&&u<1?0:o,new Kl(o,l,u,e.opacity)}function Wee(e,t,r,n){return arguments.length===1?Vee(e):new Kl(e,t,r,n??1)}function Kl(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function zee(e){return e=(e||0)%360,e<0?e+360:e}function Dk(e){return Math.max(0,Math.min(1,e||0))}function p8(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}var yb,Ik,ly,vb,Hc,OHe,BHe,$He,FHe,GHe,zHe,VHe,Nee,g8=F(()=>{"use strict";f8();s(zd,"Color");yb=.7,Ik=1/yb,ly="\\s*([+-]?\\d+)\\s*",vb="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Hc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",OHe=/^#([0-9a-f]{3,8})$/,BHe=new RegExp(`^rgb\\(${ly},${ly},${ly}\\)$`),$He=new RegExp(`^rgb\\(${Hc},${Hc},${Hc}\\)$`),FHe=new RegExp(`^rgba\\(${ly},${ly},${ly},${vb}\\)$`),GHe=new RegExp(`^rgba\\(${Hc},${Hc},${Hc},${vb}\\)$`),zHe=new RegExp(`^hsl\\(${vb},${Hc},${Hc}\\)$`),VHe=new RegExp(`^hsla\\(${vb},${Hc},${Hc},${vb}\\)$`),Nee={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};Gd(zd,Zl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Pee,formatHex:Pee,formatHex8:WHe,formatHsl:qHe,formatRgb:Oee,toString:Oee});s(Pee,"color_formatHex");s(WHe,"color_formatHex8");s(qHe,"color_formatHsl");s(Oee,"color_formatRgb");s(Zl,"color");s(Bee,"rgbn");s(Lk,"rgba");s(m8,"rgbConvert");s(cy,"rgb");s(Xa,"Rgb");Gd(Xa,cy,oy(zd,{brighter(e){return e=e==null?Ik:Math.pow(Ik,e),new Xa(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?yb:Math.pow(yb,e),new Xa(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Xa(tm(this.r),tm(this.g),tm(this.b),Mk(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:$ee,formatHex:$ee,formatHex8:HHe,formatRgb:Fee,toString:Fee}));s($ee,"rgb_formatHex");s(HHe,"rgb_formatHex8");s(Fee,"rgb_formatRgb");s(Mk,"clampa");s(tm,"clampi");s(em,"hex");s(Gee,"hsla");s(Vee,"hslConvert");s(Wee,"hsl");s(Kl,"Hsl");Gd(Kl,Wee,oy(zd,{brighter(e){return e=e==null?Ik:Math.pow(Ik,e),new Kl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?yb:Math.pow(yb,e),new Kl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Xa(p8(e>=240?e-240:e+120,i,n),p8(e,i,n),p8(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Kl(zee(this.h),Dk(this.s),Dk(this.l),Mk(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 e=Mk(this.opacity);return`${e===1?"hsl(":"hsla("}${zee(this.h)}, ${Dk(this.s)*100}%, ${Dk(this.l)*100}%${e===1?")":`, ${e})`}`}}));s(zee,"clamph");s(Dk,"clampt");s(p8,"hsl2rgb")});var qee,Hee,Uee=F(()=>{"use strict";qee=Math.PI/180,Hee=180/Math.PI});function Qee(e){if(e instanceof Uc)return new Uc(e.l,e.a,e.b,e.opacity);if(e instanceof hh)return Jee(e);e instanceof Xa||(e=m8(e));var t=b8(e.r),r=b8(e.g),n=b8(e.b),i=y8((.2225045*t+.7168786*r+.0606169*n)/jee),a,o;return t===r&&r===n?a=o=i:(a=y8((.4360747*t+.3850649*r+.1430804*n)/Yee),o=y8((.0139322*t+.0971045*r+.7141733*n)/Xee)),new Uc(116*i-16,500*(a-i),200*(i-o),e.opacity)}function T8(e,t,r,n){return arguments.length===1?Qee(e):new Uc(e,t,r,n??1)}function Uc(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function y8(e){return e>UHe?Math.pow(e,1/3):e/Zee+Kee}function v8(e){return e>uy?e*e*e:Zee*(e-Kee)}function x8(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function b8(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function YHe(e){if(e instanceof hh)return new hh(e.h,e.c,e.l,e.opacity);if(e instanceof Uc||(e=Qee(e)),e.a===0&&e.b===0)return new hh(NaN,0{"use strict";f8();g8();Uee();Nk=18,Yee=.96422,jee=1,Xee=.82521,Kee=4/29,uy=6/29,Zee=3*uy*uy,UHe=uy*uy*uy;s(Qee,"labConvert");s(T8,"lab");s(Uc,"Lab");Gd(Uc,T8,oy(zd,{brighter(e){return new Uc(this.l+Nk*(e??1),this.a,this.b,this.opacity)},darker(e){return new Uc(this.l-Nk*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=Yee*v8(t),e=jee*v8(e),r=Xee*v8(r),new Xa(x8(3.1338561*t-1.6168667*e-.4906146*r),x8(-.9787684*t+1.9161415*e+.033454*r),x8(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));s(y8,"xyz2lab");s(v8,"lab2xyz");s(x8,"lrgb2rgb");s(b8,"rgb2lrgb");s(YHe,"hclConvert");s(xb,"hcl");s(hh,"Hcl");s(Jee,"hcl2lab");Gd(hh,xb,oy(zd,{brighter(e){return new hh(this.h,this.c,this.l+Nk*(e??1),this.opacity)},darker(e){return new hh(this.h,this.c,this.l-Nk*(e??1),this.opacity)},rgb(){return Jee(this).rgb()}}))});var hy=F(()=>{"use strict";g8();ete()});function C8(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function S8(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,l=n{"use strict";s(C8,"basis");s(S8,"default")});function k8(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],l=e[(n+2)%t];return C8((r-n/t)*t,i,a,o,l)}}var tte=F(()=>{"use strict";w8();s(k8,"default")});var dy,E8=F(()=>{"use strict";dy=s(e=>()=>e,"default")});function rte(e,t){return function(r){return e+r*t}}function jHe(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function nte(e,t){var r=t-e;return r?rte(e,r>180||r<-180?r-360*Math.round(r/360):r):dy(isNaN(e)?t:e)}function ite(e){return(e=+e)==1?dh:function(t,r){return r-t?jHe(t,r,e):dy(isNaN(t)?r:t)}}function dh(e,t){var r=t-e;return r?rte(e,r):dy(isNaN(e)?t:e)}var A8=F(()=>{"use strict";E8();s(rte,"linear");s(jHe,"exponential");s(nte,"hue");s(ite,"gamma");s(dh,"nogamma")});function ate(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,l;for(o=0;o{"use strict";hy();w8();tte();A8();rm=s((function e(t){var r=ite(t);function n(i,a){var o=r((i=cy(i)).r,(a=cy(a)).r),l=r(i.g,a.g),u=r(i.b,a.b),h=dh(i.opacity,a.opacity);return function(d){return i.r=o(d),i.g=l(d),i.b=u(d),i.opacity=h(d),i+""}}return s(n,"rgb"),n.gamma=e,n}),"rgbGamma")(1);s(ate,"rgbSpline");XHe=ate(S8),KHe=ate(k8)});function _8(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i{"use strict";s(_8,"default");s(ste,"isNumberArray")});function lte(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o{"use strict";Pk();s(lte,"genericArray")});function L8(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}var ute=F(()=>{"use strict";s(L8,"default")});function Da(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var bb=F(()=>{"use strict";s(Da,"default")});function D8(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Vd(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var hte=F(()=>{"use strict";Pk();s(D8,"default")});function ZHe(e){return function(){return e}}function QHe(e){return function(t){return e(t)+""}}function fy(e,t){var r=M8.lastIndex=I8.lastIndex=0,n,i,a,o=-1,l=[],u=[];for(e=e+"",t=t+"";(n=M8.exec(e))&&(i=I8.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),l[o]?l[o]+=a:l[++o]=a),(n=n[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,u.push({i:o,x:Da(n,i)})),r=I8.lastIndex;return r{"use strict";bb();M8=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,I8=new RegExp(M8.source,"g");s(ZHe,"zero");s(QHe,"one");s(fy,"default")});function Vd(e,t){var r=typeof t,n;return t==null||r==="boolean"?dy(t):(r==="number"?Da:r==="string"?(n=Zl(t))?(t=n,rm):fy:t instanceof Zl?rm:t instanceof Date?L8:ste(t)?_8:Array.isArray(t)?lte:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?D8:Da)(e,t)}var Pk=F(()=>{"use strict";hy();R8();cte();ute();bb();hte();N8();E8();ote();s(Vd,"default")});function Ok(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var dte=F(()=>{"use strict";s(Ok,"default")});function $k(e,t,r,n,i,a){var o,l,u;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(u=e*r+t*n)&&(r-=e*u,n-=t*u),(l=Math.sqrt(r*r+n*n))&&(r/=l,n/=l,u/=l),e*n{"use strict";fte=180/Math.PI,Bk={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};s($k,"default")});function mte(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Bk:$k(t.a,t.b,t.c,t.d,t.e,t.f)}function gte(e){return e==null?Bk:(Fk||(Fk=document.createElementNS("http://www.w3.org/2000/svg","g")),Fk.setAttribute("transform",e),(e=Fk.transform.baseVal.consolidate())?(e=e.matrix,$k(e.a,e.b,e.c,e.d,e.e,e.f)):Bk)}var Fk,yte=F(()=>{"use strict";pte();s(mte,"parseCss");s(gte,"parseSvg")});function vte(e,t,r,n){function i(h){return h.length?h.pop()+" ":""}s(i,"pop");function a(h,d,f,p,m,g){if(h!==f||d!==p){var y=m.push("translate(",null,t,null,r);g.push({i:y-4,x:Da(h,f)},{i:y-2,x:Da(d,p)})}else(f||p)&&m.push("translate("+f+t+p+r)}s(a,"translate");function o(h,d,f,p){h!==d?(h-d>180?d+=360:d-h>180&&(h+=360),p.push({i:f.push(i(f)+"rotate(",null,n)-2,x:Da(h,d)})):d&&f.push(i(f)+"rotate("+d+n)}s(o,"rotate");function l(h,d,f,p){h!==d?p.push({i:f.push(i(f)+"skewX(",null,n)-2,x:Da(h,d)}):d&&f.push(i(f)+"skewX("+d+n)}s(l,"skewX");function u(h,d,f,p,m,g){if(h!==f||d!==p){var y=m.push(i(m)+"scale(",null,",",null,")");g.push({i:y-4,x:Da(h,f)},{i:y-2,x:Da(d,p)})}else(f!==1||p!==1)&&m.push(i(m)+"scale("+f+","+p+")")}return s(u,"scale"),function(h,d){var f=[],p=[];return h=e(h),d=e(d),a(h.translateX,h.translateY,d.translateX,d.translateY,f,p),o(h.rotate,d.rotate,f,p),l(h.skewX,d.skewX,f,p),u(h.scaleX,h.scaleY,d.scaleX,d.scaleY,f,p),h=d=null,function(m){for(var g=-1,y=p.length,v;++g{"use strict";bb();yte();s(vte,"interpolateTransform");P8=vte(mte,"px, ","px)","deg)"),O8=vte(gte,", ",")",")")});function bte(e){return function(t,r){var n=e((t=xb(t)).h,(r=xb(r)).h),i=dh(t.c,r.c),a=dh(t.l,r.l),o=dh(t.opacity,r.opacity);return function(l){return t.h=n(l),t.c=i(l),t.l=a(l),t.opacity=o(l),t+""}}}var B8,JHe,Tte=F(()=>{"use strict";hy();A8();s(bte,"hcl");B8=bte(nte),JHe=bte(dh)});var py=F(()=>{"use strict";Pk();bb();dte();N8();xte();R8();Tte()});function Eb(){return nm||(wte(eUe),nm=wb.now()+Vk)}function eUe(){nm=0}function kb(){this._call=this._time=this._next=null}function Wk(e,t,r){var n=new kb;return n.restart(e,t,r),n}function kte(){Eb(),++my;for(var e=Gk,t;e;)(t=nm-e._time)>=0&&e._call.call(void 0,t),e=e._next;--my}function Cte(){nm=(zk=wb.now())+Vk,my=Cb=0;try{kte()}finally{my=0,rUe(),nm=0}}function tUe(){var e=wb.now(),t=e-zk;t>Ste&&(Vk-=t,zk=e)}function rUe(){for(var e,t=Gk,r,n=1/0;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:Gk=r);Sb=e,$8(n)}function $8(e){if(!my){Cb&&(Cb=clearTimeout(Cb));var t=e-nm;t>24?(e<1/0&&(Cb=setTimeout(Cte,e-wb.now()-Vk)),Tb&&(Tb=clearInterval(Tb))):(Tb||(zk=wb.now(),Tb=setInterval(tUe,Ste)),my=1,wte(Cte))}}var my,Cb,Tb,Ste,Gk,Sb,zk,nm,Vk,wb,wte,F8=F(()=>{"use strict";my=0,Cb=0,Tb=0,Ste=1e3,zk=0,nm=0,Vk=0,wb=typeof performance=="object"&&performance.now?performance:Date,wte=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};s(Eb,"now");s(eUe,"clearNow");s(kb,"Timer");kb.prototype=Wk.prototype={constructor:kb,restart:s(function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Eb():+r)+(t==null?0:+t),!this._next&&Sb!==this&&(Sb?Sb._next=this:Gk=this,Sb=this),this._call=e,this._time=r,$8()},"restart"),stop:s(function(){this._call&&(this._call=null,this._time=1/0,$8())},"stop")};s(Wk,"timer");s(kte,"timerFlush");s(Cte,"wake");s(tUe,"poke");s(rUe,"nap");s($8,"sleep")});function Ab(e,t,r){var n=new kb;return t=t==null?0:+t,n.restart(i=>{n.stop(),e(i+t)},t,r),n}var Ete=F(()=>{"use strict";F8();s(Ab,"default")});var qk=F(()=>{"use strict";F8();Ete()});function fh(e,t,r,n,i,a){var o=e.__transition;if(!o)e.__transition={};else if(r in o)return;aUe(e,r,{name:t,index:n,group:i,on:nUe,tween:iUe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:_te})}function _b(e,t){var r=pa(e,t);if(r.state>_te)throw new Error("too late; already scheduled");return r}function Ka(e,t){var r=pa(e,t);if(r.state>Hk)throw new Error("too late; already running");return r}function pa(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function aUe(e,t,r){var n=e.__transition,i;n[t]=r,r.timer=Wk(a,0,r.time);function a(h){r.state=Ate,r.timer.restart(o,r.delay,r.time),r.delay<=h&&o(h-r.delay)}s(a,"schedule");function o(h){var d,f,p,m;if(r.state!==Ate)return u();for(d in n)if(m=n[d],m.name===r.name){if(m.state===Hk)return Ab(o);m.state===Rte?(m.state=Rb,m.timer.stop(),m.on.call("interrupt",e,e.__data__,m.index,m.group),delete n[d]):+d{"use strict";bI();qk();nUe=xI("start","end","cancel","interrupt"),iUe=[],_te=0,Ate=1,Uk=2,Hk=3,Rte=4,Yk=5,Rb=6;s(fh,"default");s(_b,"init");s(Ka,"set");s(pa,"get");s(aUe,"create")});function Lb(e,t){var r=e.__transition,n,i,a=!0,o;if(r){t=t==null?null:t+"";for(o in r){if((n=r[o]).name!==t){a=!1;continue}i=n.state>Uk&&n.state{"use strict";oo();s(Lb,"default")});function G8(e){return this.each(function(){Lb(this,e)})}var Dte=F(()=>{"use strict";Lte();s(G8,"default")});function sUe(e,t){var r,n;return function(){var i=Ka(this,e),a=i.tween;if(a!==r){n=r=a;for(var o=0,l=n.length;o{"use strict";oo();s(sUe,"tweenRemove");s(oUe,"tweenFunction");s(z8,"default");s(gy,"tweenValue")});function Ib(e,t){var r;return(typeof t=="number"?Da:t instanceof Zl?rm:(r=Zl(t))?(t=r,rm):fy)(e,t)}var V8=F(()=>{"use strict";hy();py();s(Ib,"default")});function lUe(e){return function(){this.removeAttribute(e)}}function cUe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function uUe(e,t,r){var n,i=r+"",a;return function(){var o=this.getAttribute(e);return o===i?null:o===n?a:a=t(n=o,r)}}function hUe(e,t,r){var n,i=r+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===n?a:a=t(n=o,r)}}function dUe(e,t,r){var n,i,a;return function(){var o,l=r(this),u;return l==null?void this.removeAttribute(e):(o=this.getAttribute(e),u=l+"",o===u?null:o===n&&u===i?a:(i=u,a=t(n=o,l)))}}function fUe(e,t,r){var n,i,a;return function(){var o,l=r(this),u;return l==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),u=l+"",o===u?null:o===n&&u===i?a:(i=u,a=t(n=o,l)))}}function W8(e,t){var r=qc(e),n=r==="transform"?O8:Ib;return this.attrTween(e,typeof t=="function"?(r.local?fUe:dUe)(r,n,gy(this,"attr."+e,t)):t==null?(r.local?cUe:lUe)(r):(r.local?hUe:uUe)(r,n,t))}var Ite=F(()=>{"use strict";py();Xl();Db();V8();s(lUe,"attrRemove");s(cUe,"attrRemoveNS");s(uUe,"attrConstant");s(hUe,"attrConstantNS");s(dUe,"attrFunction");s(fUe,"attrFunctionNS");s(W8,"default")});function pUe(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function mUe(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function gUe(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&mUe(e,a)),r}return s(i,"tween"),i._value=t,i}function yUe(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&pUe(e,a)),r}return s(i,"tween"),i._value=t,i}function q8(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var n=qc(e);return this.tween(r,(n.local?gUe:yUe)(n,t))}var Mte=F(()=>{"use strict";Xl();s(pUe,"attrInterpolate");s(mUe,"attrInterpolateNS");s(gUe,"attrTweenNS");s(yUe,"attrTween");s(q8,"default")});function vUe(e,t){return function(){_b(this,e).delay=+t.apply(this,arguments)}}function xUe(e,t){return t=+t,function(){_b(this,e).delay=t}}function H8(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?vUe:xUe)(t,e)):pa(this.node(),t).delay}var Nte=F(()=>{"use strict";oo();s(vUe,"delayFunction");s(xUe,"delayConstant");s(H8,"default")});function bUe(e,t){return function(){Ka(this,e).duration=+t.apply(this,arguments)}}function TUe(e,t){return t=+t,function(){Ka(this,e).duration=t}}function U8(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?bUe:TUe)(t,e)):pa(this.node(),t).duration}var Pte=F(()=>{"use strict";oo();s(bUe,"durationFunction");s(TUe,"durationConstant");s(U8,"default")});function CUe(e,t){if(typeof t!="function")throw new Error;return function(){Ka(this,e).ease=t}}function Y8(e){var t=this._id;return arguments.length?this.each(CUe(t,e)):pa(this.node(),t).ease}var Ote=F(()=>{"use strict";oo();s(CUe,"easeConstant");s(Y8,"default")});function SUe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Ka(this,e).ease=r}}function j8(e){if(typeof e!="function")throw new Error;return this.each(SUe(this._id,e))}var Bte=F(()=>{"use strict";oo();s(SUe,"easeVarying");s(j8,"default")});function X8(e){typeof e!="function"&&(e=sy(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i{"use strict";Xl();im();s(X8,"default")});function K8(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,n=t.length,i=r.length,a=Math.min(n,i),o=new Array(n),l=0;l{"use strict";im();s(K8,"default")});function wUe(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function kUe(e,t,r){var n,i,a=wUe(t)?_b:Ka;return function(){var o=a(this,e),l=o.on;l!==n&&(i=(n=l).copy()).on(t,r),o.on=i}}function Z8(e,t){var r=this._id;return arguments.length<2?pa(this.node(),r).on.on(e):this.each(kUe(r,e,t))}var Gte=F(()=>{"use strict";oo();s(wUe,"start");s(kUe,"onFunction");s(Z8,"default")});function EUe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function Q8(){return this.on("end.remove",EUe(this._id))}var zte=F(()=>{"use strict";s(EUe,"removeFunction");s(Q8,"default")});function J8(e){var t=this._name,r=this._id;typeof e!="function"&&(e=$d(e));for(var n=this._groups,i=n.length,a=new Array(i),o=0;o{"use strict";Xl();im();oo();s(J8,"default")});function eM(e){var t=this._name,r=this._id;typeof e!="function"&&(e=ay(e));for(var n=this._groups,i=n.length,a=[],o=[],l=0;l{"use strict";Xl();im();oo();s(eM,"default")});function tM(){return new AUe(this._groups,this._parents)}var AUe,qte=F(()=>{"use strict";Xl();AUe=uh.prototype.constructor;s(tM,"default")});function RUe(e,t){var r,n,i;return function(){var a=Fd(this,e),o=(this.style.removeProperty(e),Fd(this,e));return a===o?null:a===r&&o===n?i:i=t(r=a,n=o)}}function Hte(e){return function(){this.style.removeProperty(e)}}function _Ue(e,t,r){var n,i=r+"",a;return function(){var o=Fd(this,e);return o===i?null:o===n?a:a=t(n=o,r)}}function LUe(e,t,r){var n,i,a;return function(){var o=Fd(this,e),l=r(this),u=l+"";return l==null&&(u=l=(this.style.removeProperty(e),Fd(this,e))),o===u?null:o===n&&u===i?a:(i=u,a=t(n=o,l))}}function DUe(e,t){var r,n,i,a="style."+t,o="end."+a,l;return function(){var u=Ka(this,e),h=u.on,d=u.value[a]==null?l||(l=Hte(t)):void 0;(h!==r||i!==d)&&(n=(r=h).copy()).on(o,i=d),u.on=n}}function rM(e,t,r){var n=(e+="")=="transform"?P8:Ib;return t==null?this.styleTween(e,RUe(e,n)).on("end.style."+e,Hte(e)):typeof t=="function"?this.styleTween(e,LUe(e,n,gy(this,"style."+e,t))).each(DUe(this._id,e)):this.styleTween(e,_Ue(e,n,t),r).on("end.style."+e,null)}var Ute=F(()=>{"use strict";py();Xl();oo();Db();V8();s(RUe,"styleNull");s(Hte,"styleRemove");s(_Ue,"styleConstant");s(LUe,"styleFunction");s(DUe,"styleMaybeRemove");s(rM,"default")});function IUe(e,t,r){return function(n){this.style.setProperty(e,t.call(this,n),r)}}function MUe(e,t,r){var n,i;function a(){var o=t.apply(this,arguments);return o!==i&&(n=(i=o)&&IUe(e,o,r)),n}return s(a,"tween"),a._value=t,a}function nM(e,t,r){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,MUe(e,t,r??""))}var Yte=F(()=>{"use strict";s(IUe,"styleInterpolate");s(MUe,"styleTween");s(nM,"default")});function NUe(e){return function(){this.textContent=e}}function PUe(e){return function(){var t=e(this);this.textContent=t??""}}function iM(e){return this.tween("text",typeof e=="function"?PUe(gy(this,"text",e)):NUe(e==null?"":e+""))}var jte=F(()=>{"use strict";Db();s(NUe,"textConstant");s(PUe,"textFunction");s(iM,"default")});function OUe(e){return function(t){this.textContent=e.call(this,t)}}function BUe(e){var t,r;function n(){var i=e.apply(this,arguments);return i!==r&&(t=(r=i)&&OUe(i)),t}return s(n,"tween"),n._value=e,n}function aM(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,BUe(e))}var Xte=F(()=>{"use strict";s(OUe,"textInterpolate");s(BUe,"textTween");s(aM,"default")});function sM(){for(var e=this._name,t=this._id,r=jk(),n=this._groups,i=n.length,a=0;a{"use strict";im();oo();s(sM,"default")});function oM(){var e,t,r=this,n=r._id,i=r.size();return new Promise(function(a,o){var l={value:o},u={value:s(function(){--i===0&&a()},"value")};r.each(function(){var h=Ka(this,n),d=h.on;d!==e&&(t=(e=d).copy(),t._.cancel.push(l),t._.interrupt.push(l),t._.end.push(u)),h.on=t}),i===0&&a()})}var Zte=F(()=>{"use strict";oo();s(oM,"default")});function Ps(e,t,r,n){this._groups=e,this._parents=t,this._name=r,this._id=n}function Qte(e){return uh().transition(e)}function jk(){return++$Ue}var $Ue,ph,im=F(()=>{"use strict";Xl();Ite();Mte();Nte();Pte();Ote();Bte();$te();Fte();Gte();zte();Vte();Wte();qte();Ute();Yte();jte();Xte();Kte();Db();Zte();$Ue=0;s(Ps,"Transition");s(Qte,"transition");s(jk,"newId");ph=uh.prototype;Ps.prototype=Qte.prototype={constructor:Ps,select:J8,selectAll:eM,selectChild:ph.selectChild,selectChildren:ph.selectChildren,filter:X8,merge:K8,selection:tM,transition:sM,call:ph.call,nodes:ph.nodes,node:ph.node,size:ph.size,empty:ph.empty,each:ph.each,on:Z8,attr:W8,attrTween:q8,style:rM,styleTween:nM,text:iM,textTween:aM,remove:Q8,tween:z8,delay:H8,duration:U8,ease:Y8,easeVarying:j8,end:oM,[Symbol.iterator]:ph[Symbol.iterator]}});function Xk(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Jte=F(()=>{"use strict";s(Xk,"cubicInOut")});var lM=F(()=>{"use strict";Jte()});function GUe(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function cM(e){var t,r;e instanceof Ps?(t=e._id,e=e._name):(t=jk(),(r=FUe).time=Eb(),e=e==null?null:e+"");for(var n=this._groups,i=n.length,a=0;a{"use strict";im();oo();lM();qk();FUe={time:null,delay:0,duration:250,ease:Xk};s(GUe,"inherit");s(cM,"default")});var tre=F(()=>{"use strict";Xl();Dte();ere();uh.prototype.interrupt=G8;uh.prototype.transition=cM});var Kk=F(()=>{"use strict";tre()});var rre=F(()=>{"use strict"});var nre=F(()=>{"use strict"});var ire=F(()=>{"use strict"});function are(e){return[+e[0],+e[1]]}function zUe(e){return[are(e[0]),are(e[1])]}function uM(e){return{type:e}}var BUt,$Ut,FUt,GUt,zUt,VUt,sre=F(()=>{"use strict";Kk();rre();nre();ire();({abs:BUt,max:$Ut,min:FUt}=Math);s(are,"number1");s(zUe,"number2");GUt={name:"x",handles:["w","e"].map(uM),input:s(function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},"input"),output:s(function(e){return e&&[e[0][0],e[1][0]]},"output")},zUt={name:"y",handles:["n","s"].map(uM),input:s(function(e,t){return e==null?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},"input"),output:s(function(e){return e&&[e[0][1],e[1][1]]},"output")},VUt={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(uM),input:s(function(e){return e==null?null:zUe(e)},"input"),output:s(function(e){return e},"output")};s(uM,"type")});var ore=F(()=>{"use strict";sre()});function lre(e){this._+=e[0];for(let t=1,r=e.length;t