b&&(b=h),w=v*v*C,T=Math.max(b/w,w/x),T>k){v-=h;break}k=T}s.push(u={value:v,dice:m ba))l.moveTo(0,0);else if(v>Sy-ba)l.moveTo(m*qd(g),m*Jl(g)),l.arc(0,0,m,g,y,!x),p>ba&&(l.moveTo(p*qd(y),p*Jl(y)),l.arc(0,0,p,y,g,x));else{var b=g,T=y,k=g,C=y,w=v,S=v,R=s.apply(this,arguments)/2,L=R>ba&&(n?+n.apply(this,arguments):dm(p*p+m*m)),N=wE(MN(m-p)/2,+r.apply(this,arguments)),I=N,_=N,A,M;if(L>ba){var D=NN(L/p*Jl(R)),P=NN(L/m*Jl(R));(w-=D*2)>ba?(D*=x?1:-1,k+=D,C-=D):(w=0,k=C=(g+y)/2),(S-=P*2)>ba?(P*=x?1:-1,b+=P,T-=P):(S=0,b=T=(g+y)/2)}var B=m*qd(b),O=m*Jl(b),$=p*qd(C),V=p*Jl(C);if(N>ba){var G=m*qd(T),z=m*Jl(T),W=p*qd(k),H=p*Jl(k),j;if(v "),e.result!==null&&g.kind!==e.kind&&dr(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):dr(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||d}function CKe(e){var t=e.position,r,n,i,a=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(Ui(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(a=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!ro(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&dr(e,"directive name must not be less than one character in length");s!==0;){for(;bm(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!tu(s));break}if(tu(s))break;for(r=e.position;s!==0&&!ro(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}s!==0&&RP(e),Zd.call(wae,n)?wae[n](e,n,i):m4(e,'unknown document directive "'+n+'"')}if(Ui(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Ui(e,!0,-1)):a&&dr(e,"directives end mark is expected"),$y(e,e.lineIndent-1,p4,!1,!0),Ui(e,!0,-1),e.checkLineBreaks&&sKe.test(e.input.slice(t,e.position))&&m4(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&v4(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ui(e,!0,-1));return}if(e.position0;){if(h=gb(s,l,r),h===u)return n[i]=s,n[a]=l,t(n);if(h>0)s=Math.floor(s/h)*h,l=Math.ceil(l/h)*h;else if(h<0)s=Math.ceil(s*h)/h,l=Math.floor(l*h)/h;else break;u=h}return e},e}function Kl(){var e=Vb();return e.copy=function(){return hE(e,Kl())},Gd.apply(e,arguments),gUe(e)}var Zre=F(()=>{"use strict";Nd();hN();Gb();Kre();o(gUe,"linearish");o(Kl,"linear")});function fN(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],s;return a{"use strict";o(fN,"nice")});function qn(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return o(i,"interval"),i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{let s=i(a),l=i.ceil(a);return a-s0))return u;let h;do u.push(h=new Date(+a)),t(a,l),e(a);while(hqn(s=>{if(s>=s)for(;e(s),!a(s);)s.setTime(s-1)},(s,l)=>{if(s>=s)if(l<0)for(;++l<=0;)for(;t(s,-1),!a(s););else for(;--l>=0;)for(;t(s,1),!a(s););}),r&&(i.count=(a,s)=>(pN.setTime(+a),mN.setTime(+s),e(pN),e(mN),Math.floor(r(pN,mN))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?s=>n(s)%a===0:s=>i.count(0,s)%a===0):i)),i}var pN,mN,ph=F(()=>{"use strict";pN=new Date,mN=new Date;o(qn,"timeInterval")});var Kc,Jre,gN=F(()=>{"use strict";ph();Kc=qn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Kc.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?qn(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Kc);Jre=Kc.range});var Bo,ene,yN=F(()=>{"use strict";ph();Bo=qn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*1e3)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds()),ene=Bo.range});var mh,yUe,dE,vUe,vN=F(()=>{"use strict";ph();mh=qn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getMinutes()),yUe=mh.range,dE=qn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes()),vUe=dE.range});var gh,xUe,fE,bUe,xN=F(()=>{"use strict";ph();gh=qn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3-e.getMinutes()*6e4)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getHours()),xUe=gh.range,fE=qn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours()),bUe=fE.range});var hl,TUe,qb,CUe,pE,wUe,bN=F(()=>{"use strict";ph();hl=qn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1),TUe=hl.range,qb=qn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1),CUe=qb.range,pE=qn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5)),wUe=pE.range});function lm(e){return qn(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}function cm(e){return qn(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/6048e5)}var Zl,Vd,mE,gE,Qc,yE,vE,rne,kUe,SUe,EUe,AUe,RUe,_Ue,um,Cy,nne,ine,Wd,ane,sne,one,LUe,DUe,IUe,MUe,NUe,PUe,TN=F(()=>{"use strict";ph();o(lm,"timeWeekday");Zl=lm(0),Vd=lm(1),mE=lm(2),gE=lm(3),Qc=lm(4),yE=lm(5),vE=lm(6),rne=Zl.range,kUe=Vd.range,SUe=mE.range,EUe=gE.range,AUe=Qc.range,RUe=yE.range,_Ue=vE.range;o(cm,"utcWeekday");um=cm(0),Cy=cm(1),nne=cm(2),ine=cm(3),Wd=cm(4),ane=cm(5),sne=cm(6),one=um.range,LUe=Cy.range,DUe=nne.range,IUe=ine.range,MUe=Wd.range,NUe=ane.range,PUe=sne.range});var yh,OUe,xE,BUe,CN=F(()=>{"use strict";ph();yh=qn(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),OUe=yh.range,xE=qn(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),BUe=xE.range});var $o,$Ue,Ql,FUe,wN=F(()=>{"use strict";ph();$o=qn(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());$o.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:qn(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});$Ue=$o.range,Ql=qn(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Ql.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:qn(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});FUe=Ql.range});function cne(e,t,r,n,i,a){let s=[[Bo,1,1e3],[Bo,5,5*1e3],[Bo,15,15*1e3],[Bo,30,30*1e3],[a,1,6e4],[a,5,5*6e4],[a,15,15*6e4],[a,30,30*6e4],[i,1,36e5],[i,3,3*36e5],[i,6,6*36e5],[i,12,12*36e5],[n,1,864e5],[n,2,2*864e5],[r,1,6048e5],[t,1,2592e6],[t,3,3*2592e6],[e,1,31536e6]];function l(h,d,f){let p=d{"use strict";Nd();gN();yN();vN();xN();bN();TN();CN();wN();o(cne,"ticker");[GUe,VUe]=cne(Ql,xE,um,pE,fE,dE),[kN,SN]=cne($o,yh,Zl,hl,gh,mh)});var bE=F(()=>{"use strict";gN();yN();vN();xN();bN();TN();CN();wN();une()});function EN(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function AN(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Hb(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function RN(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,s=e.shortDays,l=e.months,u=e.shortMonths,h=Ub(i),d=Yb(i),f=Ub(a),p=Yb(a),m=Ub(s),g=Yb(s),y=Ub(l),v=Yb(l),x=Ub(u),b=Yb(u),T={a:B,A:O,b:$,B:V,c:null,d:gne,e:gne,f:hYe,g:TYe,G:wYe,H:lYe,I:cYe,j:uYe,L:Tne,m:dYe,M:fYe,p:G,q:z,Q:xne,s:bne,S:pYe,u:mYe,U:gYe,V:yYe,w:vYe,W:xYe,x:null,X:null,y:bYe,Y:CYe,Z:kYe,"%":vne},k={a:W,A:H,b:j,B:Q,c:null,d:yne,e:yne,f:RYe,g:$Ye,G:zYe,H:SYe,I:EYe,j:AYe,L:wne,m:_Ye,M:LYe,p:U,q:oe,Q:xne,s:bne,S:DYe,u:IYe,U:MYe,V:NYe,w:PYe,W:OYe,x:null,X:null,y:BYe,Y:FYe,Z:GYe,"%":vne},C={a:N,A:I,b:_,B:A,c:M,d:pne,e:pne,f:iYe,g:fne,G:dne,H:mne,I:mne,j:eYe,L:nYe,m:JUe,M:tYe,p:L,q:QUe,Q:sYe,s:oYe,S:rYe,u:YUe,U:jUe,V:XUe,w:UUe,W:KUe,x:D,X:P,y:fne,Y:dne,Z:ZUe,"%":aYe};T.x=w(r,T),T.X=w(n,T),T.c=w(t,T),k.x=w(r,k),k.X=w(n,k),k.c=w(t,k);function w(te,le){return function(ie){var ae=[],Re=-1,be=0,Pe=te.length,Ge,Oe,ue;for(ie instanceof Date||(ie=new Date(+ie));++Re
"},r),xt.lineBreakRegex.test(e)))return e;let n=e.split(" ").filter(Boolean),i=[],a="";return n.forEach((s,l)=>{let u=Ca(`${s} `,r),h=Ca(a,r);if(u>t){let{hyphenatedStrings:p,remainingWord:m}=_je(s,t,"-",r);i.push(a,...p),a=m}else h+u>=t?(i.push(a),a=s):a=[a,s].filter(Boolean).join(" ");l+1===n.length&&i.push(a)}),i.filter(s=>s!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),_je=ym((e,t,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);let i=[...e],a=[],s="";return i.forEach((l,u)=>{let h=`${s}${l}`;if(Ca(h,n)>=t){let f=u+1,p=i.length===f,m=`${h}${r}`;a.push(p?h:m),s=""}else s=h}),{hyphenatedStrings:a,remainingWord:s}},(e,t,r="-",n)=>`${e}${t}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);o(l4,"calculateTextHeight");o(Ca,"calculateTextWidth");T2=ym((e,t)=>{let{fontSize:r=12,fontFamily:n="Arial",fontWeight:i=400}=t;if(!e)return{width:0,height:0};let[,a]=As(r),s=["sans-serif",n],l=e.split(xt.lineBreakRegex),u=[],h=et("body");if(!h.remove)return{width:0,height:0,lineHeight:0};let d=h.append("svg");for(let p of s){let m=0,g={width:0,height:0,lineHeight:0};for(let y of l){let v=Aje();v.text=y||cP;let x=Rje(d,v).style("font-size",a).style("font-weight",i).style("font-family",p),b=(x._groups||x)[0][0].getBBox();if(b.width===0&&b.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,b.width)),m=Math.round(b.height),g.height+=m,g.lineHeight=Math.round(Math.max(g.lineHeight,m))}u.push(g)}d.remove();let f=isNaN(u[1].height)||isNaN(u[1].width)||isNaN(u[1].lineHeight)||u[0].height>u[1].height&&u[0].width>u[1].width&&u[0].lineHeight>u[1].lineHeight?0:1;return u[f]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),lP=class{constructor(t=!1,r){this.count=0;this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{o(this,"InitIDGenerator")}},Lje=o(function(e){return o4=o4||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),o4.innerHTML=e,unescape(o4.textContent)},"entityDecode");o(mP,"isDetailedError");Dje=o((e,t,r,n)=>{if(!n)return;let i=e.node()?.getBBox();i&&e.append("text").text(n).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-r).attr("class",t)},"insertTitle"),As=o(e=>{if(typeof e=="number")return[e,e+"px"];let t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");o(qr,"cleanAndMerge");Zt={assignWithDepth:ri,wrapLabel:vm,calculateTextHeight:l4,calculateTextWidth:Ca,calculateTextDimensions:T2,cleanAndMerge:qr,detectInit:vje,detectDirective:iae,isSubstringInArray:xje,interpolateToCurve:uP,calcLabelPosition:wje,calcCardinalityPosition:kje,calcTerminalLabelPosition:Sje,formatUrl:bje,getStylesFromArray:dP,generateId:fP,random:pP,runFunc:Tje,entityDecode:Lje,insertTitle:Dje,isLabelCoordinateInPath:Ije,parseFontSize:As,InitIDGenerator:lP},oae=o(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){let n=r.substring(1,r.length-1);return/^\+?\d+$/.test(n)?"\uFB02\xB0\xB0"+n+"\xB6\xDF":"\uFB02\xB0"+n+"\xB6\xDF"}),t},"encodeEntities"),Rs=o(function(e){return e.replace(/fl°°/g,"").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),eu=o((e,t,{counter:r=0,prefix:n,suffix:i},a)=>a||`${n?`${n}_`:""}${e}_${t}_${r}${i?`_${i}`:""}`,"getEdgeId");o(kn,"handleUndefinedAttr");o(Ije,"isLabelCoordinateInPath")});function ic(e,t,r,n,i){if(!t[e].width)if(r)t[e].text=vm(t[e].text,i,n),t[e].textLines=t[e].text.split(xt.lineBreakRegex).length,t[e].width=i,t[e].height=l4(t[e].text,n);else{let a=t[e].text.split(xt.lineBreakRegex);t[e].textLines=a.length;let s=0;t[e].height=0,t[e].width=0;for(let l of a)t[e].width=Math.max(Ca(l,n),t[e].width),s=l4(l,n),t[e].height=t[e].height+s}}function dae(e,t,r,n,i){let a=new d4(i);a.data.widthLimit=r.data.widthLimit/Math.min(gP,n.length);for(let[s,l]of n.entries()){let u=0;l.image={width:0,height:0,Y:0},l.sprite&&(l.image.width=48,l.image.height=48,l.image.Y=u,u=l.image.Y+l.image.height);let h=l.wrap&&sr.wrap,d=c4(sr);if(d.fontSize=d.fontSize+2,d.fontWeight="bold",ic("label",l,h,d,a.data.widthLimit),l.label.Y=u+8,u=l.label.Y+l.label.height,l.type&&l.type.text!==""){l.type.text="["+l.type.text+"]";let g=c4(sr);ic("type",l,h,g,a.data.widthLimit),l.type.Y=u+5,u=l.type.Y+l.type.height}if(l.descr&&l.descr.text!==""){let g=c4(sr);g.fontSize=g.fontSize-2,ic("descr",l,h,g,a.data.widthLimit),l.descr.Y=u+20,u=l.descr.Y+l.descr.height}if(s==0||s%gP===0){let g=r.data.startx+sr.diagramMarginX,y=r.data.stopy+sr.diagramMarginY+u;a.setData(g,g,y,y)}else{let g=a.data.stopx!==a.data.startx?a.data.stopx+sr.diagramMarginX:a.data.startx,y=a.data.starty;a.setData(g,g,y,y)}a.name=l.alias;let f=i.db.getC4ShapeArray(l.alias),p=i.db.getC4ShapeKeys(l.alias);p.length>0&&hae(a,e,f,p),t=l.alias;let m=i.db.getBoundaries(t);m.length>0&&dae(e,t,a,m,i),l.alias!=="global"&&uae(e,l,a),r.data.stopy=Math.max(a.data.stopy+sr.c4ShapeMargin,r.data.stopy),r.data.stopx=Math.max(a.data.stopx+sr.c4ShapeMargin,r.data.stopx),u4=Math.max(u4,r.data.stopx),h4=Math.max(h4,r.data.stopy)}}var u4,h4,cae,gP,sr,d4,yP,C2,c4,Mje,uae,hae,eo,lae,Nje,Pje,Oje,vP,fae=F(()=>{"use strict";$r();Rie();vt();g8();Vr();E8();Xt();G0();Qt();$n();u4=0,h4=0,cae=4,gP=2;lb.yy=mb;sr={},d4=class{static{o(this,"Bounds")}constructor(t){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,yP(t.db.getConfig())}setData(t,r,n,i){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=r,this.nextData.starty=this.data.starty=n,this.nextData.stopy=this.data.stopy=i}updateVal(t,r,n,i){t[r]===void 0?t[r]=n:t[r]=i(n,t[r])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let r=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+t.margin:this.nextData.stopx+t.margin*2,n=r+t.width,i=this.nextData.starty+t.margin*2,a=i+t.height;(r>=this.data.widthLimit||n>=this.data.widthLimit||this.nextData.cnt>cae)&&(r=this.nextData.startx+t.margin+sr.nextLinePaddingX,i=this.nextData.stopy+t.margin*2,this.nextData.stopx=n=r+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=a=i+t.height,this.nextData.cnt=1),t.x=r,t.y=i,this.updateVal(this.data,"startx",r,Math.min),this.updateVal(this.data,"starty",i,Math.min),this.updateVal(this.data,"stopx",n,Math.max),this.updateVal(this.data,"stopy",a,Math.max),this.updateVal(this.nextData,"startx",r,Math.min),this.updateVal(this.nextData,"starty",i,Math.min),this.updateVal(this.nextData,"stopx",n,Math.max),this.updateVal(this.nextData,"stopy",a,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},yP(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}},yP=o(function(e){ri(sr,e),e.fontFamily&&(sr.personFontFamily=sr.systemFontFamily=sr.messageFontFamily=e.fontFamily),e.fontSize&&(sr.personFontSize=sr.systemFontSize=sr.messageFontSize=e.fontSize),e.fontWeight&&(sr.personFontWeight=sr.systemFontWeight=sr.messageFontWeight=e.fontWeight)},"setConf"),C2=o((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"c4ShapeFont"),c4=o(e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),"boundaryFont"),Mje=o(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont");o(ic,"calcC4ShapeTextWH");uae=o(function(e,t,r){t.x=r.data.startx,t.y=r.data.starty,t.width=r.data.stopx-r.data.startx,t.height=r.data.stopy-r.data.starty,t.label.y=sr.c4ShapeMargin-35;let n=t.wrap&&sr.wrap,i=c4(sr);i.fontSize=i.fontSize+2,i.fontWeight="bold";let a=Ca(t.label.text,i);ic("label",t,n,i,a),nc.drawBoundary(e,t,sr)},"drawBoundary"),hae=o(function(e,t,r,n){let i=0;for(let a of n){i=0;let s=r[a],l=C2(sr,s.typeC4Shape.text);switch(l.fontSize=l.fontSize-2,s.typeC4Shape.width=Ca("\xAB"+s.typeC4Shape.text+"\xBB",l),s.typeC4Shape.height=l.fontSize+2,s.typeC4Shape.Y=sr.c4ShapePadding,i=s.typeC4Shape.Y+s.typeC4Shape.height-4,s.image={width:0,height:0,Y:0},s.typeC4Shape.text){case"person":case"external_person":s.image.width=48,s.image.height=48,s.image.Y=i,i=s.image.Y+s.image.height;break}s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=i,i=s.image.Y+s.image.height);let u=s.wrap&&sr.wrap,h=sr.width-sr.c4ShapePadding*2,d=C2(sr,s.typeC4Shape.text);if(d.fontSize=d.fontSize+2,d.fontWeight="bold",ic("label",s,u,d,h),s.label.Y=i+8,i=s.label.Y+s.label.height,s.type&&s.type.text!==""){s.type.text="["+s.type.text+"]";let m=C2(sr,s.typeC4Shape.text);ic("type",s,u,m,h),s.type.Y=i+5,i=s.type.Y+s.type.height}else if(s.techn&&s.techn.text!==""){s.techn.text="["+s.techn.text+"]";let m=C2(sr,s.techn.text);ic("techn",s,u,m,h),s.techn.Y=i+5,i=s.techn.Y+s.techn.height}let f=i,p=s.label.width;if(s.descr&&s.descr.text!==""){let m=C2(sr,s.typeC4Shape.text);ic("descr",s,u,m,h),s.descr.Y=i+20,i=s.descr.Y+s.descr.height,p=Math.max(s.label.width,s.descr.width),f=i-s.descr.textLines*5}p=p+sr.c4ShapePadding,s.width=Math.max(s.width||sr.width,p,sr.width),s.height=Math.max(s.height||sr.height,f,sr.height),s.margin=s.margin||sr.c4ShapeMargin,e.insert(s),nc.drawC4Shape(t,s,sr)}e.bumpLastMargin(sr.c4ShapeMargin)},"drawC4ShapeArray"),eo=class{static{o(this,"Point")}constructor(t,r){this.x=t,this.y=r}},lae=o(function(e,t){let r=e.x,n=e.y,i=t.x,a=t.y,s=r+e.width/2,l=n+e.height/2,u=Math.abs(r-i),h=Math.abs(n-a),d=h/u,f=e.height/e.width,p=null;return n==a&&ri?p=new eo(r,l):r==i&&na&&(p=new eo(s,n)),r>i&&n=d?p=new eo(r,l+d*e.width/2):p=new eo(s-u/h*e.height/2,n+e.height):r=d?p=new eo(r+e.width,l+d*e.width/2):p=new eo(s+u/h*e.height/2,n+e.height):ra?f>=d?p=new eo(r+e.width,l-d*e.width/2):p=new eo(s+e.height/2*u/h,n):r>i&&n>a&&(f>=d?p=new eo(r,l-e.width/2*d):p=new eo(s-e.height/2*u/h,n)),p},"getIntersectPoint"),Nje=o(function(e,t){let r={x:0,y:0};r.x=t.x+t.width/2,r.y=t.y+t.height/2;let n=lae(e,r);r.x=e.x+e.width/2,r.y=e.y+e.height/2;let i=lae(t,r);return{startPoint:n,endPoint:i}},"getIntersectPoints"),Pje=o(function(e,t,r,n,i){let a=0;for(let s of t){a=a+1;let l=s.wrap&&sr.wrap,u=Mje(sr);n.db.getC4Type()==="C4Dynamic"&&(s.label.text=a+": "+s.label.text);let d=Ca(s.label.text,u);ic("label",s,l,u,d),s.techn&&s.techn.text!==""&&(d=Ca(s.techn.text,u),ic("techn",s,l,u,d)),s.descr&&s.descr.text!==""&&(d=Ca(s.descr.text,u),ic("descr",s,l,u,d));let f=r(s.from),p=r(s.to),m=Nje(f,p);s.startPoint=m.startPoint,s.endPoint=m.endPoint}nc.drawRels(e,t,sr,i)},"drawRels");o(dae,"drawInsideBoundary");Oje=o(function(e,t,r,n){sr=Ae().c4;let i=Ae().securityLevel,a;i==="sandbox"&&(a=et("#i"+t));let s=i==="sandbox"?et(a.nodes()[0].contentDocument.body):et("body"),l=n.db;n.db.setWrap(sr.wrap),cae=l.getC4ShapeInRow(),gP=l.getC4BoundaryInRow(),Z.debug(`C:${JSON.stringify(sr,null,2)}`);let u=i==="sandbox"?s.select(`[id="${t}"]`):et(`[id="${t}"]`);nc.insertComputerIcon(u,t),nc.insertDatabaseIcon(u,t),nc.insertClockIcon(u,t);let h=new d4(n);h.setData(sr.diagramMarginX,sr.diagramMarginX,sr.diagramMarginY,sr.diagramMarginY),h.data.widthLimit=screen.availWidth,u4=sr.diagramMarginX,h4=sr.diagramMarginY;let d=n.db.getTitle(),f=n.db.getBoundaries("");dae(u,"",h,f,n),nc.insertArrowHead(u,t),nc.insertArrowEnd(u,t),nc.insertArrowCrossHead(u,t),nc.insertArrowFilledHead(u,t),Pje(u,n.db.getRels(),n.db.getC4Shape,n,t),h.data.stopx=u4,h.data.stopy=h4;let p=h.data,g=p.stopy-p.starty+2*sr.diagramMarginY,v=p.stopx-p.startx+2*sr.diagramMarginX;d&&u.append("text").text(d).attr("x",(p.stopx-p.startx)/2-4*sr.diagramMarginX).attr("y",p.starty+sr.diagramMarginY),Wr(u,g,v,sr.useMaxWidth);let x=d?60:0;u.attr("viewBox",p.startx-sr.diagramMarginX+" -"+(sr.diagramMarginY+x)+" "+v+" "+(g+x)),Z.debug("models:",p)},"draw"),vP={drawPersonOrSystemArray:hae,drawBoundary:uae,setConf:yP,draw:Oje}});var Bje,pae,mae=F(()=>{"use strict";Bje=o(e=>`.person {
- stroke: ${e.personBorder};
- fill: ${e.personBkg};
- }
-`,"getStyles"),pae=Bje});var gae={};ir(gae,{diagram:()=>$je});var $je,yae=F(()=>{"use strict";g8();E8();fae();mae();$je={parser:lJ,db:mb,renderer:vP,styles:pae,init:o(({c4:e,wrap:t})=>{vP.setConf(e),mb.setWrap(t)},"init")}});function Nae(e){return typeof e>"u"||e===null}function Vje(e){return typeof e=="object"&&e!==null}function Wje(e){return Array.isArray(e)?e:Nae(e)?[]:[e]}function qje(e,t){var r,n,i,a;if(t)for(a=Object.keys(t),r=0,n=a.length;r"u"&&bh(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function Iae(e,t,r,n){var i="",a=e.tag,s,l,u;for(s=0,l=r.length;s tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}function bh(e,t,r,n,i,a,s){e.tag=null,e.dump=r,Mae(e,r,!1)||Mae(e,r,!0);var l=Kae.call(e.dump),u=n,h;n&&(n=e.flowLevel<0||e.flowLevel>t);var d=l==="[object Object]"||l==="[object Array]",f,p;if(d&&(f=e.duplicates.indexOf(r),p=f!==-1),(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&t>0)&&(i=!1),p&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(d&&p&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),l==="[object Object]")n&&Object.keys(e.dump).length!==0?(iZe(e,t,e.dump,i),p&&(e.dump="&ref_"+f+e.dump)):(nZe(e,t,e.dump),p&&(e.dump="&ref_"+f+" "+e.dump));else if(l==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?Iae(e,t-1,e.dump,i):Iae(e,t,e.dump,i),p&&(e.dump="&ref_"+f+e.dump)):(rZe(e,t,e.dump),p&&(e.dump="&ref_"+f+" "+e.dump));else if(l==="[object String]")e.tag!=="?"&&JKe(e,e.dump,t,a,u);else{if(l==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new to("unacceptable kind of an object to dump "+l)}e.tag!==null&&e.tag!=="?"&&(h=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?h="!"+h:h.slice(0,18)==="tag:yaml.org,2002:"?h="!!"+h.slice(18):h="!<"+h+">",e.dump=h+" "+e.dump)}return!0}function aZe(e,t){var r=[],n=[],i,a;for(EP(e,r,n),i=0,a=n.length;i{"use strict";o(Nae,"isNothing");o(Vje,"isObject");o(Wje,"toArray");o(qje,"extend");o(Hje,"repeat");o(Uje,"isNegativeZero");Yje=Nae,jje=Vje,Xje=Wje,Kje=Hje,Zje=Uje,Qje=qje,sa={isNothing:Yje,isObject:jje,toArray:Xje,repeat:Kje,isNegativeZero:Zje,extend:Qje};o(Pae,"formatError");o(k2,"YAMLException$1");k2.prototype=Object.create(Error.prototype);k2.prototype.constructor=k2;k2.prototype.toString=o(function(t){return this.name+": "+Pae(this,t)},"toString");to=k2;o(xP,"getLine");o(bP,"padStart");o(Jje,"makeSnippet");eXe=Jje,tXe=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],rXe=["scalar","sequence","mapping"];o(nXe,"compileStyleAliases");o(iXe,"Type$1");ns=iXe;o(xae,"compileList");o(aXe,"compileMap");o(CP,"Schema$1");CP.prototype.extend=o(function(t){var r=[],n=[];if(t instanceof ns)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new to("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(a){if(!(a instanceof ns))throw new to("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new to("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new to("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(a){if(!(a instanceof ns))throw new to("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(CP.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=xae(i,"implicit"),i.compiledExplicit=xae(i,"explicit"),i.compiledTypeMap=aXe(i.compiledImplicit,i.compiledExplicit),i},"extend");sXe=CP,oXe=new ns("tag:yaml.org,2002:str",{kind:"scalar",construct:o(function(e){return e!==null?e:""},"construct")}),lXe=new ns("tag:yaml.org,2002:seq",{kind:"sequence",construct:o(function(e){return e!==null?e:[]},"construct")}),cXe=new ns("tag:yaml.org,2002:map",{kind:"mapping",construct:o(function(e){return e!==null?e:{}},"construct")}),uXe=new sXe({explicit:[oXe,lXe,cXe]});o(hXe,"resolveYamlNull");o(dXe,"constructYamlNull");o(fXe,"isNull");pXe=new ns("tag:yaml.org,2002:null",{kind:"scalar",resolve:hXe,construct:dXe,predicate:fXe,represent:{canonical:o(function(){return"~"},"canonical"),lowercase:o(function(){return"null"},"lowercase"),uppercase:o(function(){return"NULL"},"uppercase"),camelcase:o(function(){return"Null"},"camelcase"),empty:o(function(){return""},"empty")},defaultStyle:"lowercase"});o(mXe,"resolveYamlBoolean");o(gXe,"constructYamlBoolean");o(yXe,"isBoolean");vXe=new ns("tag:yaml.org,2002:bool",{kind:"scalar",resolve:mXe,construct:gXe,predicate:yXe,represent:{lowercase:o(function(e){return e?"true":"false"},"lowercase"),uppercase:o(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:o(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});o(xXe,"isHexCode");o(bXe,"isOctCode");o(TXe,"isDecCode");o(CXe,"resolveYamlInteger");o(wXe,"constructYamlInteger");o(kXe,"isInteger");SXe=new ns("tag:yaml.org,2002:int",{kind:"scalar",resolve:CXe,construct:wXe,predicate:kXe,represent:{binary:o(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:o(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:o(function(e){return e.toString(10)},"decimal"),hexadecimal:o(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),EXe=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");o(AXe,"resolveYamlFloat");o(RXe,"constructYamlFloat");_Xe=/^[-+]?[0-9]+e/;o(LXe,"representYamlFloat");o(DXe,"isFloat");IXe=new ns("tag:yaml.org,2002:float",{kind:"scalar",resolve:AXe,construct:RXe,predicate:DXe,represent:LXe,defaultStyle:"lowercase"}),Oae=uXe.extend({implicit:[pXe,vXe,SXe,IXe]}),MXe=Oae,Bae=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),$ae=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");o(NXe,"resolveYamlTimestamp");o(PXe,"constructYamlTimestamp");o(OXe,"representYamlTimestamp");BXe=new ns("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:NXe,construct:PXe,instanceOf:Date,represent:OXe});o($Xe,"resolveYamlMerge");FXe=new ns("tag:yaml.org,2002:merge",{kind:"scalar",resolve:$Xe}),AP=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
-\r`;o(zXe,"resolveYamlBinary");o(GXe,"constructYamlBinary");o(VXe,"representYamlBinary");o(WXe,"isBinary");qXe=new ns("tag:yaml.org,2002:binary",{kind:"scalar",resolve:zXe,construct:GXe,predicate:WXe,represent:VXe}),HXe=Object.prototype.hasOwnProperty,UXe=Object.prototype.toString;o(YXe,"resolveYamlOmap");o(jXe,"constructYamlOmap");XXe=new ns("tag:yaml.org,2002:omap",{kind:"sequence",resolve:YXe,construct:jXe}),KXe=Object.prototype.toString;o(ZXe,"resolveYamlPairs");o(QXe,"constructYamlPairs");JXe=new ns("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:ZXe,construct:QXe}),eKe=Object.prototype.hasOwnProperty;o(tKe,"resolveYamlSet");o(rKe,"constructYamlSet");nKe=new ns("tag:yaml.org,2002:set",{kind:"mapping",resolve:tKe,construct:rKe}),Fae=MXe.extend({implicit:[BXe,FXe],explicit:[qXe,XXe,JXe,nKe]}),Zd=Object.prototype.hasOwnProperty,f4=1,zae=2,Gae=3,p4=4,TP=1,iKe=2,bae=3,aKe=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,sKe=/[\x85\u2028\u2029]/,oKe=/[,\[\]\{\}]/,Vae=/^(?:!|!!|![a-z\-]+!)$/i,Wae=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;o(Tae,"_class");o(tu,"is_EOL");o(bm,"is_WHITE_SPACE");o(ro,"is_WS_OR_EOL");o(Oy,"is_FLOW_INDICATOR");o(lKe,"fromHexCode");o(cKe,"escapedHexLen");o(uKe,"fromDecimalCode");o(Cae,"simpleEscapeSequence");o(hKe,"charFromCodepoint");o(qae,"setProperty");Hae=new Array(256),Uae=new Array(256);for(xm=0;xm<256;xm++)Hae[xm]=Cae(xm)?1:0,Uae[xm]=Cae(xm);o(dKe,"State$1");o(Yae,"generateError");o(dr,"throwError");o(m4,"throwWarning");wae={YAML:o(function(t,r,n){var i,a,s;t.version!==null&&dr(t,"duplication of %YAML directive"),n.length!==1&&dr(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&dr(t,"ill-formed argument of the YAML directive"),a=parseInt(i[1],10),s=parseInt(i[2],10),a!==1&&dr(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&m4(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:o(function(t,r,n){var i,a;n.length!==2&&dr(t,"TAG directive accepts exactly two arguments"),i=n[0],a=n[1],Vae.test(i)||dr(t,"ill-formed tag handle (first argument) of the TAG directive"),Zd.call(t.tagMap,i)&&dr(t,'there is a previously declared suffix for "'+i+'" tag handle'),Wae.test(a)||dr(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{dr(t,"tag prefix is malformed: "+a)}t.tagMap[i]=a},"handleTagDirective")};o(Kd,"captureSegment");o(kae,"mergeMappings");o(By,"storeMappingPair");o(RP,"readLineBreak");o(Ui,"skipSeparationSpace");o(v4,"testDocumentSeparator");o(_P,"writeFoldedLines");o(fKe,"readPlainScalar");o(pKe,"readSingleQuotedScalar");o(mKe,"readDoubleQuotedScalar");o(gKe,"readFlowCollection");o(yKe,"readBlockScalar");o(Sae,"readBlockSequence");o(vKe,"readBlockMapping");o(xKe,"readTagProperty");o(bKe,"readAnchorProperty");o(TKe,"readAlias");o($y,"composeNode");o(CKe,"readDocument");o(jae,"loadDocuments");o(wKe,"loadAll$1");o(kKe,"load$1");SKe=wKe,EKe=kKe,Xae={loadAll:SKe,load:EKe},Kae=Object.prototype.toString,Zae=Object.prototype.hasOwnProperty,LP=65279,AKe=9,S2=10,RKe=13,_Ke=32,LKe=33,DKe=34,wP=35,IKe=37,MKe=38,NKe=39,PKe=42,Qae=44,OKe=45,g4=58,BKe=61,$Ke=62,FKe=63,zKe=64,Jae=91,ese=93,GKe=96,tse=123,VKe=124,rse=125,is={};is[0]="\\0";is[7]="\\a";is[8]="\\b";is[9]="\\t";is[10]="\\n";is[11]="\\v";is[12]="\\f";is[13]="\\r";is[27]="\\e";is[34]='\\"';is[92]="\\\\";is[133]="\\N";is[160]="\\_";is[8232]="\\L";is[8233]="\\P";WKe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],qKe=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;o(HKe,"compileStyleMap");o(UKe,"encodeHex");YKe=1,E2=2;o(jKe,"State");o(Eae,"indentString");o(kP,"generateNextLine");o(XKe,"testImplicitResolving");o(y4,"isWhitespace");o(A2,"isPrintable");o(Aae,"isNsCharOrWhitespace");o(Rae,"isPlainSafe");o(KKe,"isPlainSafeFirst");o(ZKe,"isPlainSafeLast");o(w2,"codePointAt");o(nse,"needIndentIndicator");ise=1,SP=2,ase=3,sse=4,Py=5;o(QKe,"chooseScalarStyle");o(JKe,"writeScalar");o(_ae,"blockHeader");o(Lae,"dropEndingNewline");o(eZe,"foldString");o(Dae,"foldLine");o(tZe,"escapeString");o(rZe,"writeFlowSequence");o(Iae,"writeBlockSequence");o(nZe,"writeFlowMapping");o(iZe,"writeBlockMapping");o(Mae,"detectType");o(bh,"writeNode");o(aZe,"getDuplicateReferences");o(EP,"inspectNode");o(sZe,"dump$1");oZe=sZe,lZe={dump:oZe};o(DP,"renamed");Qd=Oae,Jd=Xae.load,fir=Xae.loadAll,pir=lZe.dump,mir=DP("safeLoad","load"),gir=DP("safeLoadAll","loadAll"),yir=DP("safeDump","dump")});function PP(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function dse(e){Cm=e}function _n(e,t=""){let r=typeof e=="string"?e:e.source,n={replace:o((i,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(_s.caret,"$1"),r=r.replace(i,s),n},"replace"),getRegex:o(()=>new RegExp(r,t),"getRegex")};return n}function ru(e,t){if(t){if(_s.escapeTest.test(e))return e.replace(_s.escapeReplace,lse)}else if(_s.escapeTestNoEncode.test(e))return e.replace(_s.escapeReplaceNoEncode,lse);return e}function cse(e){try{e=encodeURI(e).replace(_s.percentDecode,"%")}catch{return null}return e}function use(e,t){let r=e.replace(_s.findPipe,(a,s,l)=>{let u=!1,h=s;for(;--h>=0&&l[h]==="\\";)u=!u;return u?"|":" |"}),n=r.split(_s.splitPipe),i=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length