1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/dagre-KV5264BT.fzEylaAb.js","assets/chunks/graph.NTPnyWX3.js","assets/chunks/baseUniq.BvMlOC9C.js","assets/chunks/layout.ZW3wq6Pd.js","assets/chunks/min.C9MoIvjs.js","assets/chunks/clone.h4r_br-R.js","assets/chunks/framework.uJwGxTCJ.js","assets/app.mox7qrr9.js","assets/chunks/theme.C_zx4iLL.js","assets/theme.DSJHT53x.css","assets/chunks/transform.B7Osg4Ej.js","assets/chunks/cose-bilkent-S5V4N54A.NHFaUIup.js","assets/chunks/cytoscape.esm.Do8NFsrw.js","assets/chunks/c4Diagram-AHTNJAMY.BCHm-V58.js","assets/chunks/chunk-YZCP3GAM.DjECBNGC.js","assets/chunks/flowDiagram-DWJPFMVM.D4ekQ-af.js","assets/chunks/chunk-FMBD7UC4.OE5J16z2.js","assets/chunks/chunk-55IACEB6.BE5jZsEp.js","assets/chunks/chunk-EDXVE4YY.i4H8yNMD.js","assets/chunks/channel.Bd2Km0Ue.js","assets/chunks/erDiagram-SMLLAGMA.D8n_MJ6X.js","assets/chunks/gitGraphDiagram-UUTBAWPF.BK6f8dU_.js","assets/chunks/chunk-4BX2VUAB.ba4Zhy93.js","assets/chunks/chunk-QZHKN3VN.BPx6KBQ2.js","assets/chunks/wardley-RL74JXVD.BMFe0Wp6.js","assets/chunks/ganttDiagram-T4ZO3ILL.K9YpzYTe.js","assets/chunks/time.CA_T4-Dk.js","assets/chunks/linear.DlT12o0E.js","assets/chunks/init.Dmth1JHB.js","assets/chunks/defaultLocale.Cw5pbRzx.js","assets/chunks/infoDiagram-42DDH7IO.CcssmQ3U.js","assets/chunks/pieDiagram-DEJITSTG.Bnt4V7Wo.js","assets/chunks/arc.kziLg8Gq.js","assets/chunks/ordinal.C7BIYaFp.js","assets/chunks/pie.BJyqMPw2.js","assets/chunks/quadrantDiagram-34T5L4WZ.D27UZK-G.js","assets/chunks/xychartDiagram-5P7HB3ND.fiJccDLt.js","assets/chunks/band.BvtxURjr.js","assets/chunks/requirementDiagram-MS252O5E.WZmsuUTR.js","assets/chunks/sequenceDiagram-FGHM5R23.B1K6Uf4j.js","assets/chunks/classDiagram-6PBFFD2Q.DP2AfalV.js","assets/chunks/chunk-4TB4RGXK.CPkkWfE1.js","assets/chunks/classDiagram-v2-HSJHXN6E.DP2AfalV.js","assets/chunks/stateDiagram-FHFEXIEX.DHbMy8MX.js","assets/chunks/chunk-OYMX7WX6.DgfFZw2s.js","assets/chunks/stateDiagram-v2-QKLJ7IA2.DM8ISsdn.js","assets/chunks/journeyDiagram-VCZTEJTY.BF7NdU8L.js","assets/chunks/timeline-definition-GMOUNBTQ.Bxm4IfL0.js","assets/chunks/mindmap-definition-QFDTVHPH.DH6gzDip.js","assets/chunks/kanban-definition-6JOO6SKY.B8XEAuFa.js","assets/chunks/sankeyDiagram-XADWPNL6.DryxaNSc.js","assets/chunks/Tableau10.1LCcg9PS.js","assets/chunks/diagram-TYMM5635.C2-Fq87K.js","assets/chunks/diagram-MMDJMWI5.CZ1ru6Sr.js","assets/chunks/blockDiagram-DXYQGD6D.Ckh86axQ.js","assets/chunks/diagram-5BDNPKRD.CuuWWgvs.js","assets/chunks/architectureDiagram-Q4EWVU46.Y9FK_nOB.js","assets/chunks/ishikawaDiagram-UXIWVN3A.CGOYtQ7K.js","assets/chunks/vennDiagram-DHZGUBPP.RYg4-75w.js","assets/chunks/diagram-G4DWMVQ6.DML2TpyM.js","assets/chunks/index.BjBfa1zi.js","assets/chunks/wardleyDiagram-NUSXRM2D.EtO1fQip.js"])))=>i.map(i=>d[i]); 2var nf=Object.defineProperty;var hf=(e,t,r)=>t in e?nf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var xt=(e,t,r)=>hf(e,typeof t!="symbol"?t+"":t,r);import{a2 as pt}from"./framework.uJwGxTCJ.js";import{b5 as cf,b4 as df}from"../app.mox7qrr9.js";import{k as ht,E as ch,F as dh,G as uh,H as gh,I as ph,J as fh,K as uf,L as ca,M as mh,N as gf,O as pf,P as yh,Q as ff,S as mf,T as yf,U as Ch,V as xh,W as Cf,X as xf,n as Ws,l as bf}from"./transform.B7Osg4Ej.js";var bh={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(df,function(){var r=1e3,i=6e4,a=36e5,s="millisecond",l="second",o="minute",n="hour",h="day",c="week",d="month",g="quarter",u="year",m="date",f="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var M=["th","st","nd","rd"],F=D%100;return"["+D+(M[(F-20)%10]||M[F]||M[0])+"]"}},T=function(D,M,F){var I=String(D);return!I||I.length>=M?D:""+Array(M+1-I.length).join(F)+D},S={s:T,z:function(D){var M=-D.utcOffset(),F=Math.abs(M),I=Math.floor(F/60),A=F%60;return(M<=0?"+":"-")+T(I,2,"0")+":"+T(A,2,"0")}
vendor: 4,966 bytes, line 2
2,m:function D(M,F){if(M.date()<F.date())return-D(F,M);var I=12*(F.year()-M.year())+(F.month()-M.month()),A=M.clone().add(I,d),z=F-A<0,H=M.clone().add(I+(z?-1:1),d);return+(-(I+(F-A)/(z?A-H:H-A))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:d,y:u,w:c,d:h,D:m,h:n,m:o,s:l,ms:s,Q:g}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},w="en",v={};v[w]=b;var k="$isDayjsObject",_=function(D){return D instanceof j||!(!D||!D[k])},q=function D(M,F,I){var A;if(!M)return w;if(typeof M=="string"){var z=M.toLowerCase();v[z]&&(A=z),F&&(v[z]=F,A=z);var H=M.split("-");if(!A&&H.length>1)return D(H[0])}else{var V=M.name;v[V]=M,A=V}return!I&&A&&(w=A),A||!I&&w},P=function(D,M){if(_(D))return D.clone();var F=typeof M=="object"?M:{};return F.date=D,F.args=arguments,new j(F)},E=S;E.l=q,E.i=_,E.w=function(D,M){return P(D,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var j=function(){function D(F){this.$L=q(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[k]=!0}var M=D.prototype;return M.parse=function(F){this.$d=function(I){var A=I.date,z=I.utc;if(A===null)return new Date(NaN);if(E.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var H=A.match(y);if(H){var V=H[2]-1||0,ct=(H[7]||"0").substring(0,3);return z?new Date(Date.UTC(H[1],V,H[3]||1,H[4]||0,H[5]||0,H[6]||0,ct)):new Date(H[1],V,H[3]||1,H[4]||0,H[5]||0,H[6]||0,ct)}}return new Date(A)}(F),this.init()},M.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},M.$utils=function(){return E},M.isValid=function(){return this.$d.toString()!==f},M.isSame=function(F,I){var A=P(F);return this.startOf(I)<=A&&A<=this.endOf(I)},M.isAfter=function(F,I){return P(F)<this.startOf(I)},M.isBefore=function(F,I){return this.endOf(I)<P(F)},M.$g=function(F,I,A){return E.u(F)?this[I]:this.set(A,F)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(F,I){var A=this,z=!!E.u(I)||I,H=E.p(F),V=function(ie,Q){var nt=E.w(A.$u?Date.UTC(A.$y,Q,ie):new Date(A.$y,Q,ie),A);return z?nt:nt.endOf(h)},ct=function(ie,Q){return E.w(A.toDate()[ie].apply(A.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(Q)),A)},it=this.$W,ut=this.$M,et=this.$D,bt="set"+(this.$u?"UTC":"");switch(H){case u:return z?V(1,0):V(31,11);case d:return z?V(1,ut):V(0,ut+1);case c:var _t=this.$locale().weekStart||0,Mt=(it<_t?it+7:it)-_t;return V(z?et-Mt:et+(6-Mt),ut);case h:case m:return ct(bt+"Hours",0);case n:return ct(bt+"Minutes",1);case o:return ct(bt+"Seconds",2);case l:return ct(bt+"Milliseconds",3);default:return this.clone()}},M.endOf=function(F){return this.startOf(F,!1)},M.$set=function(F,I){var A,z=E.p(F),H="set"+(this.$u?"UTC":""),V=(A={},A[h]=H+"Date",A[m]=H+"Date",A[d]=H+"Month",A[u]=H+"FullYear",A[n]=H+"Hours",A[o]=H+"Minutes",A[l]=H+"Seconds",A[s]=H+"Milliseconds",A)[z],ct=z===h?this.$D+(I-this.$W):I;if(z===d||z===u){var it=this.clone().set(m,1);it.$d[V](ct),it.init(),this.$d=it.set(m,Math.min(this.$D,it.daysInMonth())).$d}else V&&this.$d[V](ct);return this.init(),this},M.set=function(F,I){return this.clone().$set(F,I)},M.get=function(F){return this[E.p(F)]()},M.add=function(F,I){var A,z=this;F=Number(F);var H=E.p(I),V=function(ut){var et=P(z);return E.w(et.date(et.date()+Math.round(ut*F)),z)};if(H===d)return this.set(d,this.$M+F);if(H===u)return this.set(u,this.$y+F);if(H===h)return V(1);if(H===c)return V(7);var ct=(A={},A[o]=i,A[n]=a,A[l]=r,A)[H]||1,it=this.$d.getTime()+F*ct;return E.w(it,this)},M.subtract=function(F,I){return this.add(-1*F,I)},M.format=function(F){var I=this,A=this.$locale();if(!this.isValid())return A.invalidDate||f;var z=F||"YYYY-MM-DDTHH:mm:ssZ",H=E.z(this),V=this.$H,ct=this.$m,it=this.$M,ut=A.weekdays,et=A.months,bt=A.meridiem,_t=function(Q,nt,Ct,kt){return Q&&(Q[nt]||Q(I,z))||Ct[nt].slice(0,kt)},Mt=function(Q){return E.s(V%12||12,Q,"0")},ie=bt||function(Q,nt,Ct){var kt=Q<12?"AM":"PM";return Ct?kt.toLowerCase():kt};return z.replace(C,function(Q,nt){return nt||function(Ct){switch(Ct){case"YY":return String(I.$y).slice(-2);case"YYYY":return E.s(I.$y,4,"0");case"M":return it+1;case"MM":return E.s(it+1,2,"0");case"MMM":return _t(A.monthsShort,it,et,3);case"MMMM":return _t(et,it);case"D":return I.$D;case"DD":return E.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return _t(A.weekdaysMin,I.$W,ut,2);case"ddd":return _t(A.weekdaysShort,I.$W,ut,3);case"dddd":return ut[I.$W];case"H":return String(V);case"HH":return E.s(V,2,"0");case"h":return Mt(1);case"hh":return Mt(2);case"a":return ie(V,ct,!0);case"A":return ie(V,ct,!1);case"m":return String(ct);case"mm":return E.s(ct,2,"0");case"s":return String(I.$s);case"ss":return E.s(I.$s,2,"0");case"SSS":return E.s(I.$ms,3,"0");case"Z":return H}return null}(Q)||H.replace(":","")})}
2,M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(F,I,A){var z,H=this,V=E.p(I),ct=P(F),it=(ct.utcOffset()-this.utcOffset())*i,ut=this-ct,et=function(){return E.m(H,ct)};switch(V){case u:z=et()/12;break;case d:z=et();break;case g:z=et()/3;break;case c:z=(ut-it)/6048e5;break;case h:z=(ut-it)/864e5;break;case n:z=ut/a;break;case o:z=ut/i;break;case l:z=ut/r;break;default:z=ut}return A?z:E.a(z)},M.daysInMonth=function(){return this.endOf(d).$D},M.$locale=function(){return v[this.$L]},M.locale=function(F,I){if(!F)return this.$L;var A=this.clone(),z=q(F,I,!0);return z&&(A.$L=z),A},M.clone=function(){return E.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},D}(),W=j.prototype;return P.prototype=W,[["$ms",s],["$s",l],["$m",o],["$H",n],["$W",h],["$M",d],["$y",u],["$D",m]].forEach(function(D){W[D[1]]=function(M){return this.$g(M,D[0],D[1])}}),P.extend=function(D,M){return D.$i||(D(M,j,P),D.$i=!0),P},P.locale=q,P.isDayjs=_,P.unix=function(D){return P(1e3*D)},P.en=v[w],P.Ls=v,P.p={},P})})(bh);var kf=bh.exports;const Tf=cf(kf);var kh=Object.defineProperty,p=(e,t)=>kh(e,"name",{value:t,configurable:!0}),Sf=(e,t)=>{for(var r in t)kh(e,r,{get:t[r],enumerable:!0})},Oe={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},R={trace:p((...e)=>{},"trace"),debug:p((...e)=>{},"debug"),info:p((...e)=>{},"info"),warn:p((...e)=>{},"warn"),error:p((...e)=>{},"error"),fatal:p((...e)=>{},"fatal")},$o=p(function(e="fatal"){let t=Oe.fatal;typeof e=="string"?e.toLowerCase()in Oe&&(t=Oe[e]):typeof e=="number"&&(t=e),R.trace=()=>{},R.debug=()=>{},R.info=()=>{},R.warn=()=>{},R.error=()=>{},R.fatal=()=>{},t<=Oe.fatal&&(R.fatal=console.error?console.error.bind(console,he("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",he("FATAL"))),t<=Oe.error&&(R.error=console.error?console.error.bind(console,he("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",he("ERROR"))),t<=Oe.warn&&(R.warn=console.warn?console.warn.bind(console,he("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",he("WARN"))),t<=Oe.info&&(R.info=console.info?console.info.bind(console,he("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",he("INFO"))),t<=Oe.debug&&(R.debug=console.debug?console.debug.bind(console,he("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",he("DEBUG"))),t<=Oe.trace&&(R.trace=console.debug?console.debug.bind(console,he("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",he("TRACE")))},"setLogLevel"),he=p(e=>`%c${Tf().format("ss.SSS")} : ${e} : `,"format");const da={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},i)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const a=r<.5?r*(1+t):r+t-r*t,s=2*r-a;switch(i){case"r":return da.hue2rgb(s,a,e+1/3)*255;case"g":return da.hue2rgb(s,a,e)*255;case"b":return da.hue2rgb(s,a,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},i)=>{e/=255,t/=255,r/=255;const a=Math.max(e,t,r),s=Math.min(e,t,r),l=(a+s)/2;if(i==="l")return l*100;if(a===s)return 0;const o=a-s,n=l>.5?o/(2-a-s):o/(a+s);if(i==="s")return n*100;switch(a){case e:return((t-r)/o+(t<r?6:0))*60;case t:return((r-e)/o+2)*60;case r:return((e-t)/o+4)*60;default:return-1}}},wf={clamp:(e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},Bf={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},lt={channel:da,lang:wf,unit:Bf},je={};for(let e=0;e<=255;e++)je[e]=lt.unit.dec2hex(e);const Nt={ALL:0,RGB:1,HSL:2};class vf{constructor(){this.type=Nt.ALL}get(){return this.type}
2set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=Nt.ALL}is(t){return this.type===t}}class Lf{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new vf}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=Nt.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:i,l:a}=t;r===void 0&&(t.h=lt.channel.rgb2hsl(t,"h")),i===void 0&&(t.s=lt.channel.rgb2hsl(t,"s")),a===void 0&&(t.l=lt.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:i,b:a}=t;r===void 0&&(t.r=lt.channel.hsl2rgb(t,"r")),i===void 0&&(t.g=lt.channel.hsl2rgb(t,"g")),a===void 0&&(t.b=lt.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(Nt.HSL)&&r!==void 0?r:(this._ensureHSL(),lt.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(Nt.HSL)&&r!==void 0?r:(this._ensureHSL(),lt.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(Nt.HSL)&&r!==void 0?r:(this._ensureHSL(),lt.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(Nt.RGB)&&r!==void 0?r:(this._ensureRGB(),lt.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(Nt.RGB)&&r!==void 0?r:(this._ensureRGB(),lt.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(Nt.RGB)&&r!==void 0?r:(this._ensureRGB(),lt.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(Nt.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(Nt.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(Nt.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(Nt.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(Nt.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(Nt.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const Xa=new Lf({r:0,g:0,b:0,a:0},"transparent"),Mr={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(Mr.re);if(!t)return;const r=t[1],i=parseInt(r,16),a=r.length,s=a%4===0,l=a>4,o=l?1:17,n=l?8:4,h=s?0:-1,c=l?255:15;return Xa.set({r:(i>>n*(h+3)&c)*o,g:(i>>n*(h+2)&c)*o,b:(i>>n*(h+1)&c)*o,a:s?(i&c)*o/255:1},e)},stringify:e=>{const{r:t,g:r,b:i,a}=e;return a<1?`#${je[Math.round(t)]}${je[Math.round(r)]}${je[Math.round(i)]}${je[Math.round(a*255)]}`:`#${je[Math.round(t)]}${je[Math.round(r)]}${je[Math.round(i)]}`}},sr={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(sr.hueRe);if(t){const[,r,i]=t;switch(i){case"grad":return lt.channel.clamp.h(parseFloat(r)*.9);case"rad":return lt.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return lt.channel.clamp.h(parseFloat(r)*360)}}return lt.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(sr.re);if(!r)return;const[,i,a,s,l,o]=r;return Xa.set({h:sr._hue2deg(i),s:lt.channel.clamp.s(parseFloat(a)),l:lt.channel.clamp.l(parseFloat(s)),a:l?lt.channel.clamp.a(o?parseFloat(l)/100:parseFloat(l)):1},e)},stringify:e=>{const{h:t,s:r,l:i,a}=e;return a<1?`hsla(${lt.lang.round(t)}, ${lt.lang.round(r)}%, ${lt.lang.round(i)}%, ${a})`:`hsl(${lt.lang.round(t)}, ${lt.lang.round(r)}%, ${lt.lang.round(i)}%)`}},Si={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",s
2almon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=Si.colors[e];if(t)return Mr.parse(t)},stringify:e=>{const t=Mr.stringify(e);for(const r in Si.colors)if(Si.colors[r]===t)return r}},Ci={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const r=e.match(Ci.re);if(!r)return;const[,i,a,s,l,o,n,h,c]=r;return Xa.set({r:lt.channel.clamp.r(a?parseFloat(i)*2.55:parseFloat(i)),g:lt.channel.clamp.g(l?parseFloat(s)*2.55:parseFloat(s)),b:lt.channel.clamp.b(n?parseFloat(o)*2.55:parseFloat(o)),a:h?lt.channel.clamp.a(c?parseFloat(h)/100:parseFloat(h)):1},e)},stringify:e=>{const{r:t,g:r,b:i,a}=e;return a<1?`rgba(${lt.lang.round(t)}, ${lt.lang.round(r)}, ${lt.lang.round(i)}, ${lt.lang.round(a)})`:`rgb(${lt.lang.round(t)}, ${lt.lang.round(r)}, ${lt.lang.round(i)})`}},ve={format:{keyword:Si,hex:Mr,rgb:Ci,rgba:Ci,hsl:sr,hsla:sr},parse:e=>{if(typeof e!="string")return e;const t=Mr.parse(e)||Ci.parse(e)||sr.parse(e)||Si.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(Nt.HSL)||e.data.r===void 0?sr.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Ci.stringify(e):Mr.stringify(e)},Th=(e,t)=>{const r=ve.parse(e);for(const i in t)r[i]=lt.channel.clamp[i](t[i]);return ve.stringify(r)},Ge=(e,t,r=0,i=1)=>{if(typeof e!="number")return Th(e,{a:t});const a=Xa.set({r:lt.channel.clamp.r(e),g:lt.channel.clamp.g(t),b:lt.channel.clamp.b(r),a:lt.channel.clamp.a(i)});return ve.stringify(a)},_f=e=>{const{r:t,g:r,b:i}=ve.parse(e),a=.2126*lt.channel.toLinear(t)+.7152*lt.channel.toLinear(r)+.0722*lt.channel.toLinear(i);return lt.lang.round(a)},Ff=e=>_f(e)>=.5,Ce=e=>!Ff(e),Sh=(e,t,r)=>{const i=ve.parse(e),a=i[t],s=lt.channel.clamp[t](a+r);return a!==s&&(i[t]=s),ve.stringify(i)}
2,O=(e,t)=>Sh(e,"l",t),$=(e,t)=>Sh(e,"l",-t),x=(e,t)=>{const r=ve.parse(e),i={};for(const a in t)t[a]&&(i[a]=r[a]+t[a]);return Th(e,i)},Af=(e,t,r=50)=>{const{r:i,g:a,b:s,a:l}=ve.parse(e),{r:o,g:n,b:h,a:c}=ve.parse(t),d=r/100,g=d*2-1,u=l-c,f=((g*u===-1?g:(g+u)/(1+g*u))+1)/2,y=1-f,C=i*f+o*y,b=a*f+n*y,T=s*f+h*y,S=l*d+c*(1-d);return Ge(C,b,T,S)},L=(e,t=100)=>{const r=ve.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,Af(r,e,t)};/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:wh,setPrototypeOf:Wl,isFrozen:Mf,getPrototypeOf:Ef,getOwnPropertyDescriptor:$f}=Object;let{freeze:Zt,seal:ce,create:ua}=Object,{apply:zs,construct:Ns}=typeof Reflect<"u"&&Reflect;Zt||(Zt=function(t){return t});ce||(ce=function(t){return t});zs||(zs=function(t,r){for(var i=arguments.length,a=new Array(i>2?i-2:0),s=2;s<i;s++)a[s-2]=arguments[s];return t.apply(r,a)});Ns||(Ns=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return new t(...i)});const ta=Kt(Array.prototype.forEach),Of=Kt(Array.prototype.lastIndexOf),zl=Kt(Array.prototype.pop),oi=Kt(Array.prototype.push),If=Kt(Array.prototype.splice),ga=Kt(String.prototype.toLowerCase),ks=Kt(String.prototype.toString),Ts=Kt(String.prototype.match),li=Kt(String.prototype.replace),Df=Kt(String.prototype.indexOf),Pf=Kt(String.prototype.trim),oe=Kt(Object.prototype.hasOwnProperty),Gt=Kt(RegExp.prototype.test),ni=Rf(TypeError);function Kt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return zs(e,t,i)}}function Rf(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return Ns(e,r)}}function dt(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ga;Wl&&Wl(e,null);let i=t.length;for(;i--;){let a=t[i];if(typeof a=="string"){const s=r(a);s!==a&&(Mf(t)||(t[i]=s),a=s)}e[a]=!0}return e}function qf(e){for(let t=0;t<e.length;t++)oe(e,t)||(e[t]=null);return e}function Te(e){const t=ua(null);for(const[r,i]of wh(e))oe(e,r)&&(Array.isArray(i)?t[r]=qf(i):i&&typeof i=="object"&&i.constructor===Object?t[r]=Te(i):t[r]=i);return t}function hi(e,t){for(;e!==null;){const i=$f(e,t);if(i){if(i.get)return Kt(i.get);if(typeof i.value=="function")return Kt(i.value)}e=Ef(e)}function r(){return null}return r}const Nl=Zt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ss=Zt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ws=Zt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Wf=Zt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Bs=Zt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),zf=Zt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Hl
2=Zt(["#text"]),jl=Zt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),vs=Zt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Yl=Zt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ea=Zt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Nf=ce(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Hf=ce(/<%[\w\W]*|[\w\W]*%>/gm),jf=ce(/\$\{[\w\W]*/gm),Yf=ce(/^data-[\-\w.\u00B7-\uFFFF]+$/),Uf=ce(/^aria-[\-\w]+$/),Bh=ce(/^(?:(?:(?
2:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Gf=ce(/^(?:\w+script|data):/i),Xf=ce(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),vh=ce(/^html$/i),Vf=ce(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ul=Object.freeze({__proto__:null,ARIA_ATTR:Uf,ATTR_WHITESPACE:Xf,CUSTOM_ELEMENT:Vf,DATA_ATTR:Yf,DOCTYPE_NAME:vh,ERB_EXPR:Hf,IS_ALLOWED_URI:Bh,IS_SCRIPT_OR_DATA:Gf,MUSTACHE_EXPR:Nf,TMPLIT_EXPR:jf});const ci={element:1,text:3,progressingInstruction:7,comment:8,document:9},Zf=function(){return typeof window>"u"?null:window},Kf=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null;const a="data-tt-policy-suffix";r&&r.hasAttribute(a)&&(i=r.getAttribute(a));const s="dompurify"+(i?"#"+i:"");try{return t.createPolicy(s,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},Gl=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Lh(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zf();const t=tt=>Lh(tt);if(t.version="3.3.3",t.removed=[],!e||!e.document||e.document.nodeType!==ci.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const i=r,a=i.currentScript,{DocumentFragment:s,HTMLTemplateElement:l,Node:o,Element:n,NodeFilter:h,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:g,trustedTypes:u}=e,m=n.prototype,f=hi(m,"cloneNode"),y=hi(m,"remove"),C=hi(m,"nextSibling"),b=hi(m,"childNodes"),T=hi(m,"parentNode");if(typeof l=="function"){const tt=r.createElement("template");tt.content&&tt.content.ownerDocument&&(r=tt.content.ownerDocument)}let S,w="";const{implementation:v,createNodeIterator:k,createDocumentFragment:_,getElementsByTagName:q}=r,{importNode:P}=i;let E=Gl();t.isSupported=typeof wh=="function"&&typeof T=="function"&&v&&v.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:j,ERB_EXPR:W,TMPLIT_EXPR:D,DATA_ATTR:M,ARIA_ATTR:F,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:A,CUSTOM_ELEMENT:z}=Ul;let{IS_ALLOWED_URI:H}=Ul,V=null;const ct=dt({},[...Nl,...Ss,...ws,...Bs,...Hl]);let it=null;const ut=dt({},[...jl,...vs,...Yl,...ea]);let et=Object.seal(ua(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),bt=null,_t=null;const Mt=Object.seal(ua(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ie=!0,Q=!0,nt=!1,Ct=!0,kt=!1,ne=!0,Wt=!1,br=!1,Gi=!1,xe=!1,Xi=!1,Vi=!1,Sl=!0,wl=!1;const Jp="user-content-";let gs=!0,ai=!1,kr={},be=null;const ps=dt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Bl=null;const vl=dt({},["audio","video","img","source","image","track"]);let fs=null;const Ll=dt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Zi="http://www.w3.org/1998/Math/MathML",Ki="http://www.w3.org/2000/svg",Me="http://www.w3.org/1999/xhtml";let Tr=Me,ms=!1,ys=null;const tf=dt({},[Zi,Ki,Me],ks);let Qi=dt({},["mi","mo","mn","ms","mtext"]),Ji=dt({},["annotation-xml"]);const ef=dt({},["title","style","font","a","script"]);let si=null;const rf=["application/xhtml+xml","text/html"],af="text/html";let Et=null,Sr=null;const sf=r.createElement("form"),_l=function(B){return B instanceof RegExp||B instanceof Function},Cs=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Sr&&Sr===B)){if((!B||typeof B!="object")&&(B={}),B=Te(B),si=rf.indexOf(B.PARSER_MEDIA_TYPE)===-1?af:B.PARSER_MEDIA_TYPE,Et=si==="application/xhtml+xml"?ks:ga,V=oe(B,"ALLOWED_TAGS")?dt({},B.ALLOWED_TAGS,Et):ct,it=oe(B,"ALLOWED_ATTR")?dt({},B.ALLOWED_ATTR,Et):ut,ys=oe(B,"ALLOWED_NAMESPACES")?dt({},B.ALLOWED_NAMESPACES,ks):tf,fs=oe(B,"ADD_URI_SAFE_ATTR")?dt(Te(Ll),B.ADD_URI_SAFE_ATTR,Et):Ll,Bl=oe(B,"ADD_DATA_URI_TAGS")?dt(Te(vl),B.ADD_DATA_URI_TAGS,Et):vl,be=oe(B,"FORBID_CONTENTS")?dt({}
vendor: 5,724 bytes, line 2
2,B.FORBID_CONTENTS,Et):ps,bt=oe(B,"FORBID_TAGS")?dt({},B.FORBID_TAGS,Et):Te({}),_t=oe(B,"FORBID_ATTR")?dt({},B.FORBID_ATTR,Et):Te({}),kr=oe(B,"USE_PROFILES")?B.USE_PROFILES:!1,ie=B.ALLOW_ARIA_ATTR!==!1,Q=B.ALLOW_DATA_ATTR!==!1,nt=B.ALLOW_UNKNOWN_PROTOCOLS||!1,Ct=B.ALLOW_SELF_CLOSE_IN_ATTR!==!1,kt=B.SAFE_FOR_TEMPLATES||!1,ne=B.SAFE_FOR_XML!==!1,Wt=B.WHOLE_DOCUMENT||!1,xe=B.RETURN_DOM||!1,Xi=B.RETURN_DOM_FRAGMENT||!1,Vi=B.RETURN_TRUSTED_TYPE||!1,Gi=B.FORCE_BODY||!1,Sl=B.SANITIZE_DOM!==!1,wl=B.SANITIZE_NAMED_PROPS||!1,gs=B.KEEP_CONTENT!==!1,ai=B.IN_PLACE||!1,H=B.ALLOWED_URI_REGEXP||Bh,Tr=B.NAMESPACE||Me,Qi=B.MATHML_TEXT_INTEGRATION_POINTS||Qi,Ji=B.HTML_INTEGRATION_POINTS||Ji,et=B.CUSTOM_ELEMENT_HANDLING||{},B.CUSTOM_ELEMENT_HANDLING&&_l(B.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(et.tagNameCheck=B.CUSTOM_ELEMENT_HANDLING.tagNameCheck),B.CUSTOM_ELEMENT_HANDLING&&_l(B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(et.attributeNameCheck=B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),B.CUSTOM_ELEMENT_HANDLING&&typeof B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(et.allowCustomizedBuiltInElements=B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),kt&&(Q=!1),Xi&&(xe=!0),kr&&(V=dt({},Hl),it=ua(null),kr.html===!0&&(dt(V,Nl),dt(it,jl)),kr.svg===!0&&(dt(V,Ss),dt(it,vs),dt(it,ea)),kr.svgFilters===!0&&(dt(V,ws),dt(it,vs),dt(it,ea)),kr.mathMl===!0&&(dt(V,Bs),dt(it,Yl),dt(it,ea))),oe(B,"ADD_TAGS")||(Mt.tagCheck=null),oe(B,"ADD_ATTR")||(Mt.attributeCheck=null),B.ADD_TAGS&&(typeof B.ADD_TAGS=="function"?Mt.tagCheck=B.ADD_TAGS:(V===ct&&(V=Te(V)),dt(V,B.ADD_TAGS,Et))),B.ADD_ATTR&&(typeof B.ADD_ATTR=="function"?Mt.attributeCheck=B.ADD_ATTR:(it===ut&&(it=Te(it)),dt(it,B.ADD_ATTR,Et))),B.ADD_URI_SAFE_ATTR&&dt(fs,B.ADD_URI_SAFE_ATTR,Et),B.FORBID_CONTENTS&&(be===ps&&(be=Te(be)),dt(be,B.FORBID_CONTENTS,Et)),B.ADD_FORBID_CONTENTS&&(be===ps&&(be=Te(be)),dt(be,B.ADD_FORBID_CONTENTS,Et)),gs&&(V["#text"]=!0),Wt&&dt(V,["html","head","body"]),V.table&&(dt(V,["tbody"]),delete bt.tbody),B.TRUSTED_TYPES_POLICY){if(typeof B.TRUSTED_TYPES_POLICY.createHTML!="function")throw ni('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof B.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ni('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=B.TRUSTED_TYPES_POLICY,w=S.createHTML("")}else S===void 0&&(S=Kf(u,a)),S!==null&&typeof w=="string"&&(w=S.createHTML(""));Zt&&Zt(B),Sr=B}},Fl=dt({},[...Ss,...ws,...Wf]),Al=dt({},[...Bs,...zf]),of=function(B){let N=T(B);(!N||!N.tagName)&&(N={namespaceURI:Tr,tagName:"template"});const Z=ga(B.tagName),St=ga(N.tagName);return ys[B.namespaceURI]?B.namespaceURI===Ki?N.namespaceURI===Me?Z==="svg":N.namespaceURI===Zi?Z==="svg"&&(St==="annotation-xml"||Qi[St]):!!Fl[Z]:B.namespaceURI===Zi?N.namespaceURI===Me?Z==="math":N.namespaceURI===Ki?Z==="math"&&Ji[St]:!!Al[Z]:B.namespaceURI===Me?N.namespaceURI===Ki&&!Ji[St]||N.namespaceURI===Zi&&!Qi[St]?!1:!Al[Z]&&(ef[Z]||!Fl[Z]):!!(si==="application/xhtml+xml"&&ys[B.namespaceURI]):!1},ke=function(B){oi(t.removed,{element:B});try{T(B).removeChild(B)}catch{y(B)}},tr=function(B,N){try{oi(t.removed,{attribute:N.getAttributeNode(B),from:N})}catch{oi(t.removed,{attribute:null,from:N})}if(N.removeAttribute(B),B==="is")if(xe||Xi)try{ke(N)}catch{}else try{N.setAttribute(B,"")}catch{}},Ml=function(B){let N=null,Z=null;if(Gi)B="<remove></remove>"+B;else{const Ft=Ts(B,/^[\r\n\t ]+/);Z=Ft&&Ft[0]}si==="application/xhtml+xml"&&Tr===Me&&(B='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+B+"</body></html>");const St=S?S.createHTML(B):B;if(Tr===Me)try{N=new g().parseFromString(St,si)}catch{}if(!N||!N.documentElement){N=v.createDocument(Tr,"template",null);try{N.documentElement.innerHTML=ms?w:St}catch{}}const zt=N.body||N.documentElement;return B&&Z&&zt.insertBefore(r.createTextNode(Z),zt.childNodes[0]||null),Tr===Me?q.call(N,Wt?"html":"body")[0]:Wt?N.documentElement:zt},El=function(B){return k.call(B.ownerDocument||B,B,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},xs=function(B){return B instanceof d&&(typeof B.nodeName!="string"||typeof B.textContent!="string"||typeof B.removeChild!="function"||!(B.attributes instanceof c)||typeof B.removeAttribute!="function"||typeof B.setAttribute!="function"||typeof B.namespaceURI!="string"||typeof B.insertBefore!="function"||typeof B.hasChildNodes!="function")},$l=function(B){return typeof o=="function"&&B instanceof o};function Ee(tt,B,N){ta(tt,Z=>{Z.call(t,B,N,Sr)})}const Ol=function(B){let N=null;if(Ee(E.beforeSanitizeElements,B,null),xs(B))return ke(B),!0;const Z=Et(B.nodeName);if(Ee(E.uponSanitizeElement,B,{tagName:Z,allowedTags:V}),ne&&B.hasChildNodes()&&!$l(B.firstElementChild)&&Gt(/<[/\w!]/g,B.innerHTML)&&Gt(/<[/\w!]/g,B.textContent)||B.nodeType===ci.progressingInstruction||ne&&B.nodeType===ci.comment&&Gt(/<[/\w]/g,B.data))return ke(B),!0;if(!(Mt.tagCheck instanceof Function&&Mt.tagCheck(Z))&&(!V[Z]||bt[Z])){if(!bt[Z]&&Dl(Z)&&(et.tagNameCheck instanceof RegExp&&Gt(et.tagNameCheck,Z)||et.tagNameCheck instanceof Function&&et.tagNameCheck(Z)))return!1;if(gs&&!be[Z]){const St=T(B)||B.parentNode,zt=b(B)||B.childNodes;if(zt&&St){const Ft=zt.length;for(let Jt=Ft-1;Jt>=0;--Jt){const $e=f(zt[Jt],!0);$e.__removalCount=(B.__removalCount||0)+1,St.insertBefore($e,C(B))}}}return ke(B),!0}return B instanceof n&&!of(B)||(Z==="noscript"||Z==="noembed"||Z==="noframes")&&Gt(/<\/no(script|embed|frames)/i,B.innerHTML)?(ke(B),!0):(kt&&B.nodeType===ci.text&&(N=B.textContent,ta([j,W,D],St=>{N=li(N,St," ")}),B.textContent!==N&&(oi(t.removed,{element:B.cloneNode()}),B.textContent=N)),Ee(E.afterSanitizeElements,B,null),!1)}
2,Il=function(B,N,Z){if(_t[N]||Sl&&(N==="id"||N==="name")&&(Z in r||Z in sf))return!1;if(!(Q&&!_t[N]&&Gt(M,N))){if(!(ie&&Gt(F,N))){if(!(Mt.attributeCheck instanceof Function&&Mt.attributeCheck(N,B))){if(!it[N]||_t[N]){if(!(Dl(B)&&(et.tagNameCheck instanceof RegExp&&Gt(et.tagNameCheck,B)||et.tagNameCheck instanceof Function&&et.tagNameCheck(B))&&(et.attributeNameCheck instanceof RegExp&&Gt(et.attributeNameCheck,N)||et.attributeNameCheck instanceof Function&&et.attributeNameCheck(N,B))||N==="is"&&et.allowCustomizedBuiltInElements&&(et.tagNameCheck instanceof RegExp&&Gt(et.tagNameCheck,Z)||et.tagNameCheck instanceof Function&&et.tagNameCheck(Z))))return!1}else if(!fs[N]){if(!Gt(H,li(Z,A,""))){if(!((N==="src"||N==="xlink:href"||N==="href")&&B!=="script"&&Df(Z,"data:")===0&&Bl[B])){if(!(nt&&!Gt(I,li(Z,A,"")))){if(Z)return!1}}}}}}}return!0},Dl=function(B){return B!=="annotation-xml"&&Ts(B,z)},Pl=function(B){Ee(E.beforeSanitizeAttributes,B,null);const{attributes:N}=B;if(!N||xs(B))return;const Z={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:it,forceKeepAttr:void 0};let St=N.length;for(;St--;){const zt=N[St],{name:Ft,namespaceURI:Jt,value:$e}=zt,wr=Et(Ft),bs=$e;let Pt=Ft==="value"?bs:Pf(bs);if(Z.attrName=wr,Z.attrValue=Pt,Z.keepAttr=!0,Z.forceKeepAttr=void 0,Ee(E.uponSanitizeAttribute,B,Z),Pt=Z.attrValue,wl&&(wr==="id"||wr==="name")&&(tr(Ft,B),Pt=Jp+Pt),ne&&Gt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Pt)){tr(Ft,B);continue}if(wr==="attributename"&&Ts(Pt,"href")){tr(Ft,B);continue}if(Z.forceKeepAttr)continue;if(!Z.keepAttr){tr(Ft,B);continue}if(!Ct&&Gt(/\/>/i,Pt)){tr(Ft,B);continue}kt&&ta([j,W,D],ql=>{Pt=li(Pt,ql," ")});const Rl=Et(B.nodeName);if(!Il(Rl,wr,Pt)){tr(Ft,B);continue}if(S&&typeof u=="object"&&typeof u.getAttributeType=="function"&&!Jt)switch(u.getAttributeType(Rl,wr)){case"TrustedHTML":{Pt=S.createHTML(Pt);break}case"TrustedScriptURL":{Pt=S.createScriptURL(Pt);break}}if(Pt!==bs)try{Jt?B.setAttributeNS(Jt,Ft,Pt):B.setAttribute(Ft,Pt),xs(B)?ke(B):zl(t.removed)}catch{tr(Ft,B)}}Ee(E.afterSanitizeAttributes,B,null)},lf=function tt(B){let N=null;const Z=El(B);for(Ee(E.beforeSanitizeShadowDOM,B,null);N=Z.nextNode();)Ee(E.uponSanitizeShadowNode,N,null),Ol(N),Pl(N),N.content instanceof s&&tt(N.content);Ee(E.afterSanitizeShadowDOM,B,null)};return t.sanitize=function(tt){let B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=null,Z=null,St=null,zt=null;if(ms=!tt,ms&&(tt="<!-->"),typeof tt!="string"&&!$l(tt))if(typeof tt.toString=="function"){if(tt=tt.toString(),typeof tt!="string")throw ni("dirty is not a string, aborting")}else throw ni("toString is not a function");if(!t.isSupported)return tt;if(br||Cs(B),t.removed=[],typeof tt=="string"&&(ai=!1),ai){if(tt.nodeName){const $e=Et(tt.nodeName);if(!V[$e]||bt[$e])throw ni("root node is forbidden and cannot be sanitized in-place")}}else if(tt instanceof o)N=Ml("<!---->"),Z=N.ownerDocument.importNode(tt,!0),Z.nodeType===ci.element&&Z.nodeName==="BODY"||Z.nodeName==="HTML"?N=Z:N.appendChild(Z);else{if(!xe&&!kt&&!Wt&&tt.indexOf("<")===-1)return S&&Vi?S.createHTML(tt):tt;if(N=Ml(tt),!N)return xe?null:Vi?w:""}N&&Gi&&ke(N.firstChild);const Ft=El(ai?tt:N);for(;St=Ft.nextNode();)Ol(St),Pl(St),St.content instanceof s&&lf(St.content);if(ai)return tt;if(xe){if(Xi)for(zt=_.call(N.ownerDocument);N.firstChild;)zt.appendChild(N.firstChild);else zt=N;return(it.shadowroot||it.shadowrootmode)&&(zt=P.call(i,zt,!0)),zt}let Jt=Wt?N.outerHTML:N.innerHTML;return Wt&&V["!doctype"]&&N.ownerDocument&&N.ownerDocument.doctype&&N.ownerDocument.doctype.name&&Gt(vh,N.ownerDocument.doctype.name)&&(Jt="<!DOCTYPE "+N.ownerDocument.doctype.name+`> 3`+Jt),kt&&ta([j,W,D],$e=>{Jt=li(Jt,$e," ")}),S&&Vi?S.createHTML(Jt):Jt},t.setConfig=function(){let tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Cs(tt),br=!0},t.clearConfig=function(){Sr=null,br=!1},t.isValidAttribute=function(tt,B,N){Sr||Cs({});const Z=Et(tt),St=Et(B);return Il(Z,St,N)},t.addHook=function(tt,B){typeof B=="function"&&oi(E[tt],B)},t.removeHook=function(tt,B){if(B!==void 0){const N=Of(E[tt],B);return N===-1?void 0:If(E[tt],N,1)[0]}return zl(E[tt])},t.removeHooks=function(tt){E[tt]=[]},t.removeAllHooks=function(){E=Gl()},t}var Gr=Lh(),_h=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,wi=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2}
3)?/gi,Qf=/\s*%%.*\n/gm,$r,Fh=($r=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},p($r,"UnknownDiagramError"),$r),hr={},Oo=p(function(e,t){e=e.replace(_h,"").replace(wi,"").replace(Qf,` 4`);for(const[r,{detector:i}]of Object.entries(hr))if(i(e,t))return r;throw new Fh(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),Hs=p((...e)=>{for(const{id:t,detector:r,loader:i}of e)Ah(t,r,i)},"registerLazyLoadedDiagrams"),Ah=p((e,t,r)=>{hr[e]&&R.warn(`Detector with key ${e} already exists. Overwriting.`),hr[e]={detector:t,loader:r},R.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),Jf=p(e=>hr[e].loader,"getDiagramLoader"),js=p((e,t,{depth:r=2,clobber:i=!1}={})=>{const a={depth:r,clobber:i};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(s=>js(e,s,a)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(s=>{e.includes(s)||e.push(s)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(s=>{typeof t[s]=="object"&&t[s]!==null&&(e[s]===void 0||typeof e[s]=="object")?(e[s]===void 0&&(e[s]=Array.isArray(t[s])?[]:{}),e[s]=js(e[s],t[s],{depth:r-1,clobber:i})):(i||typeof e[s]!="object"&&typeof t[s]!="object")&&(e[s]=t[s])}),e)},"assignWithDepth"),$t=js,_e="#ffffff",Fe="#f2f2f2",ot=p((e,t)=>t?x(e,{s:-40,l:10}):x(e,{s:-40,l:-10}),"mkBorder"),Or,tm=(Or=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var r,i,a,s,l,o,n,h,c,d,g,u,m,f,y,C,b,T,S,w,v,k;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||x(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||x(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ot(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ot(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ot(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ot(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||L(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||L(this.tertiaryColor),this.lineColor=this.lineColor||L(this.background),this.arrowheadColor=this.arrowheadColor||L(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?$(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||$(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||L(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||O(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||$(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||$(this.mainBkg,10)):(this.rowOdd=this.rowOdd||O(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||O(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
4dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||x(this.primaryColor,{h:30}),this.cScale4=this.cScale4||x(this.primaryColor,{h:60}),this.cScale5=this.cScale5||x(this.primaryColor,{h:90}),this.cScale6=this.cScale6||x(this.primaryColor,{h:120}),this.cScale7=this.cScale7||x(this.primaryColor,{h:150}),this.cScale8=this.cScale8||x(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||x(this.primaryColor,{h:270}),this.cScale10=this.cScale10||x(this.primaryColor,{h:300}),this.cScale11=this.cScale11||x(this.primaryColor,{h:330}),this.darkMode)for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScale"+_]=$(this["cScale"+_],75);else for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScale"+_]=$(this["cScale"+_],25);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleInv"+_]=this["cScaleInv"+_]||L(this["cScale"+_]);for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this.darkMode?this["cScalePeer"+_]=this["cScalePeer"+_]||O(this["cScale"+_],10):this["cScalePeer"+_]=this["cScalePeer"+_]||$(this["cScale"+_],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let _=0;_<this.THEME_COLOR_LIMIT;_++)this["cScaleLabel"+_]=this["cScaleLabel"+_]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let _=0;_<5;_++)this["surface"+_]=this["surface"+_]||x(this.mainBkg,{h:180,s:-15,l:t*(5+_*3)}),this["surfacePeer"+_]=this["surfacePeer"+_]||x(this.mainBkg,{h:180,s:-15,l:t*(8+_*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||x(this.primaryColor,{h:64}),this.fillType3=this.fillType3||x(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||x(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||x(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||x(this.primaryColor,{h:128}),this.fillType7=this.fillType7||x(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||x(this.primaryColor,{l:-10}),this.pie5=this.pie5||x(this.secondaryColor,{l:-10}),this.pie6=this.pie6||x(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||x(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||x(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||x(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||x(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||x(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||x(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??x(this.primaryColor,{l:-30}),this.venn2=this.venn2??x(this.secondaryColor,{l:-30}),this.venn3=this.venn3??x(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??x(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??x(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??x(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??x(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??x(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.radar={axisColor:((r=this.radar)==null?void 0:r.axisColor)||this.lineColor,axisStrokeWidth:((i=this.radar)==null?void 0:i.axisStrokeWidth)||2,axisLabelFontSize:((a=this.radar)==null?void 0:a.axisLabelFontSize)||12,curveOpacity:((s=this.radar)==null?void 0:s.curveOpacity)||.5,curveStrokeWidth:((l=this.radar)==null?void 0:l.curveStrokeWidth)||2,graticuleColor:((o=this.radar)==null?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((n=this.radar)==null?void 0:n.graticuleStrokeWidth)||1,graticuleOpacity:((h=this.radar)==null?void 0:h.graticuleOpacity)||.3,legendBoxSize:((c=this.radar)==null?void 0:c.legendBoxSize)||12,legendFontSize:((d=this.radar)==null?void 0:d.legendFontSize)||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||x(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||x(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||x(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||x(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||x(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||x(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ce(this.quadrant1Fill)?O(this.quadrant1Fill):$(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
4nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((g=this.xyChart)==null?void 0:g.backgroundColor)||this.background,titleColor:((u=this.xyChart)==null?void 0:u.titleColor)||this.primaryTextColor,dataLabelColor:((m=this.xyChart)==null?void 0:m.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((f=this.xyChart)==null?void 0:f.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((y=this.xyChart)==null?void 0:y.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((C=this.xyChart)==null?void 0:C.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((b=this.xyChart)==null?void 0:b.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((T=this.xyChart)==null?void 0:T.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((S=this.xyChart)==null?void 0:S.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((w=this.xyChart)==null?void 0:w.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((v=this.xyChart)==null?void 0:v.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((k=this.xyChart)==null?void 0:k.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?$(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||x(this.primaryColor,{h:-30}),this.git4=this.git4||x(this.primaryColor,{h:-60}),this.git5=this.git5||x(this.primaryColor,{h:-90}),this.git6=this.git6||x(this.primaryColor,{h:60}),this.git7=this.git7||x(this.primaryColor,{h:120}),this.darkMode?(this.git0=O(this.git0,25),this.git1=O(this.git1,25),this.git2=O(this.git2,25),this.git3=O(this.git3,25),this.git4=O(this.git4,25),this.git5=O(this.git5,25),this.git6=O(this.git6,25),this.git7=O(this.git7,25)):(this.git0=$(this.git0,25),this.git1=$(this.git1,25),this.git2=$(this.git2,25),this.git3=$(this.git3,25),this.git4=$(this.git4,25),this.git5=$(this.git5,25),this.git6=$(this.git6,25),this.git7=$(this.git7,25)),this.gitInv0=this.gitInv0||L(this.git0),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||_e,this.attributeBackgroundColorEven=this.attributeBackgroun
4dColorEven||Fe,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(Or,"Theme"),Or),em=p(e=>{const t=new tm;return t.calculate(e),t},"getThemeVariables"),Ir,rm=(Ir=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=O(this.primaryColor,16),this.tertiaryColor=x(this.primaryColor,{h:-160}),this.primaryBorderColor=L(this.background),this.secondaryBorderColor=ot(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ot(this.tertiaryColor,this.darkMode),this.primaryTextColor=L(this.primaryColor),this.secondaryTextColor=L(this.secondaryColor),this.tertiaryTextColor=L(this.tertiaryColor),this.lineColor=L(this.background),this.textColor=L(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=O(L("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Ge(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=$("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=$(this.sectionBkgColor,10),this.taskBorderColor=Ge(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Ge(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||O(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||$(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){var t,r,i,a,s,l,o,n,h,c,d,g,u,m,f,y,C,b,T,S,w,v;this.secondBkg=O(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=O(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=O(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=L(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
vendor: 4,525 bytes, line 4
4dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=x(this.primaryColor,{h:64}),this.fillType3=x(this.secondaryColor,{h:64}),this.fillType4=x(this.primaryColor,{h:-64}),this.fillType5=x(this.secondaryColor,{h:-64}),this.fillType6=x(this.primaryColor,{h:128}),this.fillType7=x(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||x(this.primaryColor,{h:30}),this.cScale4=this.cScale4||x(this.primaryColor,{h:60}),this.cScale5=this.cScale5||x(this.primaryColor,{h:90}),this.cScale6=this.cScale6||x(this.primaryColor,{h:120}),this.cScale7=this.cScale7||x(this.primaryColor,{h:150}),this.cScale8=this.cScale8||x(this.primaryColor,{h:210}),this.cScale9=this.cScale9||x(this.primaryColor,{h:270}),this.cScale10=this.cScale10||x(this.primaryColor,{h:300}),this.cScale11=this.cScale11||x(this.primaryColor,{h:330});for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleInv"+k]=this["cScaleInv"+k]||L(this["cScale"+k]);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScalePeer"+k]=this["cScalePeer"+k]||O(this["cScale"+k],10);for(let k=0;k<5;k++)this["surface"+k]=this["surface"+k]||x(this.mainBkg,{h:30,s:-30,l:-(-10+k*4)}),this["surfacePeer"+k]=this["surfacePeer"+k]||x(this.mainBkg,{h:30,s:-30,l:-(-7+k*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleLabel"+k]=this["cScaleLabel"+k]||this.scaleLabelColor;for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["pie"+k]=this["cScale"+k];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let k=0;k<8;k++)this["venn"+(k+1)]=this["venn"+(k+1)]??O(this["cScale"+k],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||x(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||x(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||x(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||x(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||x(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||x(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ce(this.quadrant1Fill)?O(this.quadrant1Fill):$(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
4nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,dataLabelColor:((i=this.xyChart)==null?void 0:i.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((a=this.xyChart)==null?void 0:a.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((s=this.xyChart)==null?void 0:s.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((l=this.xyChart)==null?void 0:l.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((n=this.xyChart)==null?void 0:n.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((g=this.xyChart)==null?void 0:g.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:((u=this.radar)==null?void 0:u.axisColor)||this.lineColor,axisStrokeWidth:((m=this.radar)==null?void 0:m.axisStrokeWidth)||2,axisLabelFontSize:((f=this.radar)==null?void 0:f.axisLabelFontSize)||12,curveOpacity:((y=this.radar)==null?void 0:y.curveOpacity)||.5,curveStrokeWidth:((C=this.radar)==null?void 0:C.curveStrokeWidth)||2,graticuleColor:((b=this.radar)==null?void 0:b.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((T=this.radar)==null?void 0:T.graticuleStrokeWidth)||1,graticuleOpacity:((S=this.radar)==null?void 0:S.graticuleOpacity)||.3,legendBoxSize:((w=this.radar)==null?void 0:w.legendBoxSize)||12,legendFontSize:((v=this.radar)==null?void 0:v.legendFontSize)||12},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?$(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=O(this.secondaryColor,20),this.git1=O(this.pie2||this.secondaryColor,20),this.git2=O(this.pie3||this.tertiaryColor,20),this.git3=O(this.pie4||x(this.primaryColor,{h:-30}),20),this.git4=O(this.pie5||x(this.primaryColor,{h:-60}),20),this.git5=O(this.pie6||x(this.primaryColor,{h:-90}),10),this.git6=O(this.pie7||x(this.primaryColor,{h:60}),10),this.git7=O(this.pie8||x(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||L(this.git0),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||L(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||L(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackgroun
vendor: 6,444 bytes, line 4
4d||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||O(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||O(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(Ir,"Theme"),Ir),im=p(e=>{const t=new rm;return t.calculate(e),t},"getThemeVariables"),Dr,am=(Dr=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=x(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=x(this.primaryColor,{h:-160}),this.primaryBorderColor=ot(this.primaryColor,this.darkMode),this.secondaryBorderColor=ot(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ot(this.tertiaryColor,this.darkMode),this.primaryTextColor=L(this.primaryColor),this.secondaryTextColor=L(this.secondaryColor),this.tertiaryTextColor=L(this.tertiaryColor),this.lineColor=L(this.background),this.textColor=L(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=ot(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=Ge(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){var t,r,i,a,s,l,o,n,h,c,d,g,u,m,f,y,C,b,T,S,w,v;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||x(this.primaryColor,{h:30}),this.cScale4=this.cScale4||x(this.primaryColor,{h:60}),this.cScale5=this.cScale5||x(this.primaryColor,{h:90}),this.cScale6=this.cScale6||x(this.primaryColor,{h:120}),this.cScale7=this.cScale7||x(this.primaryColor,{h:150}),this.cScale8=this.cScale8||x(this.primaryColor,{h:210}),this.cScale9=this.cScale9||x(this.primaryColor,{h:270}),this.cScale10=this.cScale10||x(this.primaryColor,{h:300}),this.cScale11=this.cScale11||x(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||$(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||$(this.tertiaryColor,40);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScale"+k]=$(this["cScale"+k],10),this["cScalePeer"+k]=this["cScalePeer"+k]||$(this["cScale"+k],25);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleInv"+k]=this["cScaleInv"+k]||x(this["cScale"+k],{h:180});for(let k=0;k<5;k++)this["surface"+k]=this["surface"+k]||x(this.mainBkg,{h:30,l:-(5+k*5)}),this["surfacePeer"+k]=this["surfacePeer"+k]||x(this.mainBkg,{h:30,l:-(7+k*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||L(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||L(this.labelTextColor);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleLabel"+k]=this["cScaleLabel"+k]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackgroun
vendor: 4,817 bytes, line 4
4d=this.labelBackground,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||O(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||O(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=x(this.primaryColor,{h:64}),this.fillType3=x(this.secondaryColor,{h:64}),this.fillType4=x(this.primaryColor,{h:-64}),this.fillType5=x(this.secondaryColor,{h:-64}),this.fillType6=x(this.primaryColor,{h:128}),this.fillType7=x(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||x(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||x(this.primaryColor,{l:-10}),this.pie5=this.pie5||x(this.secondaryColor,{l:-30}),this.pie6=this.pie6||x(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||x(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||x(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||x(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||x(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||x(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||x(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??x(this.primaryColor,{l:-30}),this.venn2=this.venn2??x(this.secondaryColor,{l:-30}),this.venn3=this.venn3??x(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??x(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??x(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??x(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??x(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??x(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||x(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||x(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||x(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||x(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||x(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||x(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ce(this.quadrant1Fill)?O(this.quadrant1Fill):$(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
4nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:((t=this.radar)==null?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((a=this.radar)==null?void 0:a.curveOpacity)||.5,curveStrokeWidth:((s=this.radar)==null?void 0:s.curveStrokeWidth)||2,graticuleColor:((l=this.radar)==null?void 0:l.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((o=this.radar)==null?void 0:o.graticuleStrokeWidth)||1,graticuleOpacity:((n=this.radar)==null?void 0:n.graticuleOpacity)||.3,legendBoxSize:((h=this.radar)==null?void 0:h.legendBoxSize)||12,legendFontSize:((c=this.radar)==null?void 0:c.legendFontSize)||12},this.xyChart={backgroundColor:((d=this.xyChart)==null?void 0:d.backgroundColor)||this.background,titleColor:((g=this.xyChart)==null?void 0:g.titleColor)||this.primaryTextColor,dataLabelColor:((u=this.xyChart)==null?void 0:u.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((m=this.xyChart)==null?void 0:m.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((f=this.xyChart)==null?void 0:f.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((y=this.xyChart)==null?void 0:y.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((C=this.xyChart)==null?void 0:C.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((b=this.xyChart)==null?void 0:b.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((T=this.xyChart)==null?void 0:T.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((S=this.xyChart)==null?void 0:S.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((w=this.xyChart)==null?void 0:w.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((v=this.xyChart)==null?void 0:v.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||x(this.primaryColor,{h:-30}),this.git4=this.git4||x(this.primaryColor,{h:-60}),this.git5=this.git5||x(this.primaryColor,{h:-90}),this.git6=this.git6||x(this.primaryColor,{h:60}),this.git7=this.git7||x(this.primaryColor,{h:120}),this.darkMode?(this.git0=O(this.git0,25),this.git1=O(this.git1,25),this.git2=O(this.git2,25),this.git3=O(this.git3,25),this.git4=O(this.git4,25),this.git5=O(this.git5,25),this.git6=O(this.git6,25),this.git7=O(this.git7,25)):(this.git0=$(this.git0,25),this.git1=$(this.git1,25),this.git2=$(this.git2,25),this.git3=$(this.git3,25),this.git4=$(this.git4,25),this.git5=$(this.git5,25),this.git6=$(this.git6,25),this.git7=$(this.git7,25)),this.gitInv0=this.gitInv0||$(L(this.git0),25),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||L(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||L(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackgroun
vendor: 6,166 bytes, line 4
4d=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||_e,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Fe}calculate(t){if(Object.keys(this).forEach(i=>{this[i]==="calculated"&&(this[i]=void 0)}),typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(Dr,"Theme"),Dr),sm=p(e=>{const t=new am;return t.calculate(e),t},"getThemeVariables"),Pr,om=(Pr=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=O("#cde498",10),this.primaryBorderColor=ot(this.primaryColor,this.darkMode),this.secondaryBorderColor=ot(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ot(this.tertiaryColor,this.darkMode),this.primaryTextColor=L(this.primaryColor),this.secondaryTextColor=L(this.secondaryColor),this.tertiaryTextColor=L(this.primaryColor),this.lineColor=L(this.background),this.textColor=L(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){var t,r,i,a,s,l,o,n,h,c,d,g,u,m,f,y,C,b,T,S,w,v;this.actorBorder=$(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||x(this.primaryColor,{h:30}),this.cScale4=this.cScale4||x(this.primaryColor,{h:60}),this.cScale5=this.cScale5||x(this.primaryColor,{h:90}),this.cScale6=this.cScale6||x(this.primaryColor,{h:120}),this.cScale7=this.cScale7||x(this.primaryColor,{h:150}),this.cScale8=this.cScale8||x(this.primaryColor,{h:210}),this.cScale9=this.cScale9||x(this.primaryColor,{h:270}),this.cScale10=this.cScale10||x(this.primaryColor,{h:300}),this.cScale11=this.cScale11||x(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||$(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||$(this.tertiaryColor,40);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScale"+k]=$(this["cScale"+k],10),this["cScalePeer"+k]=this["cScalePeer"+k]||$(this["cScale"+k],25);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleInv"+k]=this["cScaleInv"+k]||x(this["cScale"+k],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleLabel"+k]=this["cScaleLabel"+k]||this.scaleLabelColor;for(let k=0;k<5;k++)this["surface"+k]=this["surface"+k]||x(this.mainBkg,{h:30,s:-30,l:-(5+k*5)}),this["surfacePeer"+k]=this["surfacePeer"+k]||x(this.mainBkg,{h:30,s:-30,l:-(8+k*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||O(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||O(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
vendor: 4,212 bytes, line 4
4dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=x(this.primaryColor,{h:64}),this.fillType3=x(this.secondaryColor,{h:64}),this.fillType4=x(this.primaryColor,{h:-64}),this.fillType5=x(this.secondaryColor,{h:-64}),this.fillType6=x(this.primaryColor,{h:128}),this.fillType7=x(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||x(this.primaryColor,{l:-30}),this.pie5=this.pie5||x(this.secondaryColor,{l:-30}),this.pie6=this.pie6||x(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||x(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||x(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||x(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||x(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||x(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||x(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??x(this.primaryColor,{l:-30}),this.venn2=this.venn2??x(this.secondaryColor,{l:-30}),this.venn3=this.venn3??x(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??x(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??x(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??x(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??x(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??x(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||x(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||x(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||x(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||x(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||x(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||x(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ce(this.quadrant1Fill)?O(this.quadrant1Fill):$(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillC
4olor:this.mainBkg},this.radar={axisColor:((t=this.radar)==null?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((a=this.radar)==null?void 0:a.curveOpacity)||.5,curveStrokeWidth:((s=this.radar)==null?void 0:s.curveStrokeWidth)||2,graticuleColor:((l=this.radar)==null?void 0:l.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((o=this.radar)==null?void 0:o.graticuleStrokeWidth)||1,graticuleOpacity:((n=this.radar)==null?void 0:n.graticuleOpacity)||.3,legendBoxSize:((h=this.radar)==null?void 0:h.legendBoxSize)||12,legendFontSize:((c=this.radar)==null?void 0:c.legendFontSize)||12},this.xyChart={backgroundColor:((d=this.xyChart)==null?void 0:d.backgroundColor)||this.background,titleColor:((g=this.xyChart)==null?void 0:g.titleColor)||this.primaryTextColor,dataLabelColor:((u=this.xyChart)==null?void 0:u.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((m=this.xyChart)==null?void 0:m.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((f=this.xyChart)==null?void 0:f.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((y=this.xyChart)==null?void 0:y.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((C=this.xyChart)==null?void 0:C.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((b=this.xyChart)==null?void 0:b.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((T=this.xyChart)==null?void 0:T.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((S=this.xyChart)==null?void 0:S.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((w=this.xyChart)==null?void 0:w.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((v=this.xyChart)==null?void 0:v.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||x(this.primaryColor,{h:-30}),this.git4=this.git4||x(this.primaryColor,{h:-60}),this.git5=this.git5||x(this.primaryColor,{h:-90}),this.git6=this.git6||x(this.primaryColor,{h:60}),this.git7=this.git7||x(this.primaryColor,{h:120}),this.darkMode?(this.git0=O(this.git0,25),this.git1=O(this.git1,25),this.git2=O(this.git2,25),this.git3=O(this.git3,25),this.git4=O(this.git4,25),this.git5=O(this.git5,25),this.git6=O(this.git6,25),this.git7=O(this.git7,25)):(this.git0=$(this.git0,25),this.git1=$(this.git1,25),this.git2=$(this.git2,25),this.git3=$(this.git3,25),this.git4=$(this.git4,25),this.git5=$(this.git5,25),this.git6=$(this.git6,25),this.git7=$(this.git7,25)),this.gitInv0=this.gitInv0||L(this.git0),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||L(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||L(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackgroun
vendor: 6,336 bytes, line 4
4d=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||_e,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Fe}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(Pr,"Theme"),Pr),lm=p(e=>{const t=new om;return t.calculate(e),t},"getThemeVariables"),Rr,nm=(Rr=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=O(this.contrast,55),this.background="#ffffff",this.tertiaryColor=x(this.primaryColor,{h:-160}),this.primaryBorderColor=ot(this.primaryColor,this.darkMode),this.secondaryBorderColor=ot(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ot(this.tertiaryColor,this.darkMode),this.primaryTextColor=L(this.primaryColor),this.secondaryTextColor=L(this.secondaryColor),this.tertiaryTextColor=L(this.tertiaryColor),this.lineColor=L(this.background),this.textColor=L(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||O(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var t,r,i,a,s,l,o,n,h,c,d,g,u,m,f,y,C,b,T,S,w,v;this.secondBkg=O(this.contrast,55),this.border2=this.contrast,this.actorBorder=O(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleInv"+k]=this["cScaleInv"+k]||L(this["cScale"+k]);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this.darkMode?this["cScalePeer"+k]=this["cScalePeer"+k]||O(this["cScale"+k],10):this["cScalePeer"+k]=this["cScalePeer"+k]||$(this["cScale"+k],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleLabel"+k]=this["cScaleLabel"+k]||this.scaleLabelColor;for(let k=0;k<5;k++)this["surface"+k]=this["surface"+k]||x(this.mainBkg,{l:-(5+k*5)}),this["surfacePeer"+k]=this["surfacePeer"+k]||x(this.mainBkg,{l:-(8+k*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=O(this.contrast,30),this.sectionBkgColor2=O(this.contrast,30),this.taskBorderColor=$(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=O(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=$(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
4dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=x(this.primaryColor,{h:64}),this.fillType3=x(this.secondaryColor,{h:64}),this.fillType4=x(this.primaryColor,{h:-64}),this.fillType5=x(this.secondaryColor,{h:-64}),this.fillType6=x(this.primaryColor,{h:128}),this.fillType7=x(this.secondaryColor,{h:128});for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["pie"+k]=this["cScale"+k];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let k=0;k<8;k++)this["venn"+(k+1)]=this["venn"+(k+1)]??this["cScale"+k];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||x(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||x(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||x(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||x(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||x(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||x(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ce(this.quadrant1Fill)?O(this.quadrant1Fill):$(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,dataLabelColor:((i=this.xyChart)==null?void 0:i.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((a=this.xyChart)==null?void 0:a.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((s=this.xyChart)==null?void 0:s.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((l=this.xyChart)==null?void 0:l.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((n=this.xyChart)==null?void 0:n.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((g=this.xyChart)==null?void 0:g.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((u=this.radar)==null?void 0:u.axisColor)||this.lineColor,axisStrokeWidth:((m
4=this.radar)==null?void 0:m.axisStrokeWidth)||2,axisLabelFontSize:((f=this.radar)==null?void 0:f.axisLabelFontSize)||12,curveOpacity:((y=this.radar)==null?void 0:y.curveOpacity)||.5,curveStrokeWidth:((C=this.radar)==null?void 0:C.curveStrokeWidth)||2,graticuleColor:((b=this.radar)==null?void 0:b.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((T=this.radar)==null?void 0:T.graticuleStrokeWidth)||1,graticuleOpacity:((S=this.radar)==null?void 0:S.graticuleOpacity)||.3,legendBoxSize:((w=this.radar)==null?void 0:w.legendBoxSize)||12,legendFontSize:((v=this.radar)==null?void 0:v.legendFontSize)||12},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=$(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||x(this.primaryColor,{h:-30}),this.git4=this.pie5||x(this.primaryColor,{h:-60}),this.git5=this.pie6||x(this.primaryColor,{h:-90}),this.git6=this.pie7||x(this.primaryColor,{h:60}),this.git7=this.pie8||x(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||L(this.git0),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||_e,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Fe}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(Rr,"Theme"),Rr),hm=p(e=>{const t=new nm;return t.calculate(e),t},"getThemeVariables"),qr,cm=(qr=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=ot(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var s,l,o,n,h,c,d,g,u,m,f;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||x(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||x(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ot(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ot(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ot(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ot(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||L(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||L(this.tertiaryColor),this.lineColor=this.lineColor||L(this.background),this.arrowheadColor=this.arrowheadColor||L(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackgroun
vendor: 7,094 bytes, line 4
4d=this.edgeLabelBackground||(this.darkMode?$(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||$(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||L(this.lineColor);const t="#ECECFE",r="#E9E9F1",i=x(t,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||O(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||t,this.cScale1=this.cScale1||r,this.cScale2=this.cScale2||i,this.cScale3=this.cScale3||x(t,{h:30}),this.cScale4=this.cScale4||x(t,{h:60}),this.cScale5=this.cScale5||x(t,{h:90}),this.cScale6=this.cScale6||x(t,{h:120}),this.cScale7=this.cScale7||x(t,{h:150}),this.cScale8=this.cScale8||x(t,{h:210,l:150}),this.cScale9=this.cScale9||x(t,{h:270}),this.cScale10=this.cScale10||x(t,{h:300}),this.cScale11=this.cScale11||x(t,{h:330}),this.darkMode)for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScale"+y]=$(this["cScale"+y],75);else for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScale"+y]=$(this["cScale"+y],25);for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScaleInv"+y]=this["cScaleInv"+y]||L(this["cScale"+y]);for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this.darkMode?this["cScalePeer"+y]=this["cScalePeer"+y]||O(this["cScale"+y],10):this["cScalePeer"+y]=this["cScalePeer"+y]||$(this["cScale"+y],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScaleLabel"+y]=this["cScaleLabel"+y]||this.scaleLabelColor;const a=this.darkMode?-4:-1;for(let y=0;y<5;y++)this["surface"+y]=this["surface"+y]||x(this.mainBkg,{h:180,s:-15,l:a*(5+y*3)}),this["surfacePeer"+y]=this["surfacePeer"+y]||x(this.mainBkg,{h:180,s:-15,l:a*(8+y*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||x(t,{h:64}),this.fillType3=this.fillType3||x(r,{h:64}),this.fillType4=this.fillType4||x(t,{h:-64}),this.fillType5=this.fillType5||x(r,{h:-64}),this.fillType6=this.fillType6||x(t,{h:128}),this.fillType7=this.fillType7||x(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||x(t,{l:-10}),this.pie5=this.pie5||x(r,{l:-10}),this.pie6=this.pie6||x(i,{l:-10}),this.pie7=this.pie7||x(t,{h:60,l:-10}),this.pie8=this.pie8||x(t,{h:-60,l:-10}),this.pie9=this.pie9||x(t,{h:120,l:0}),this.pie10=this.pie10||x(t,{h:60,l:-20}),this.pie11=this.pie11||x(t,{h:-60,l:-20}),this.pie12=this.pie12||x(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||x(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||x(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||x(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||x(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||x(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||x(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ce(this.quadrant1Fill)?O(this.quadrant1Fill):$(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
4nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((s=this.xyChart)==null?void 0:s.backgroundColor)||this.background,titleColor:((l=this.xyChart)==null?void 0:l.titleColor)||this.primaryTextColor,xAxisTitleColor:((o=this.xyChart)==null?void 0:o.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((h=this.xyChart)==null?void 0:h.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((c=this.xyChart)==null?void 0:c.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((d=this.xyChart)==null?void 0:d.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((g=this.xyChart)==null?void 0:g.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((m=this.xyChart)==null?void 0:m.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?$(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||x(t,{h:-30}),this.git4=this.git4||x(t,{h:-60}),this.git5=this.git5||x(t,{h:-90}),this.git6=this.git6||x(t,{h:60}),this.git7=this.git7||x(t,{h:120}),this.darkMode?(this.git0=O(this.git0,25),this.git1=O(this.git1,25),this.git2=O(this.git2,25),this.git3=O(this.git3,25),this.git4=O(this.git4,25),this.git5=O(this.git5,25),this.git6=O(this.git6,25),this.git7=O(this.git7,25)):(this.git0=$(this.git0,25),this.git1=$(this.git1,25),this.git2=$(this.git2,25),this.git3=$(this.git3,25),this.git4=$(this.git4,25),this.git5=$(this.git5,25),this.git6=$(this.git6,25),this.git7=$(this.git7,25)),this.gitInv0=this.gitInv0||L(this.git0),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||_e,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Fe}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(qr,"Theme"),qr),dm=p(e=>{const t=new cm;return t.calculate(e),t},"getThemeVariables"),Wr,um=(Wr=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=O(this.primaryColor,16),this.tertiaryColor=x(this.primaryColor,{h:-160}),this.primaryBorderColor=L(this.background),this.secondaryBorderColor=ot(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ot(this.tertiaryColor,this.darkMode),this.primaryTextColor=L(this.primaryColor),this.secondaryTextColor=L(this.secondaryColor),this.tertiaryTextColor=L(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=O(L("#323D47"),10),this.border1="#ccc",this.border2=Ge(255,255,255,.25),this.arrowheadColor=L(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackgroun
vendor: 4,744 bytes, line 4
4d="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var r,i,a,s,l,o,n,h,c,d,g;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||x(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||x(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ot(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ot(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ot(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ot(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||L(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||L(this.tertiaryColor),this.lineColor=this.lineColor||L(this.background),this.arrowheadColor=this.arrowheadColor||L(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?$(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||$(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||L(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||O(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
vendor: 5,036 bytes, line 4
4dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||x(this.primaryColor,{h:30}),this.cScale4=this.cScale4||x(this.primaryColor,{h:60}),this.cScale5=this.cScale5||x(this.primaryColor,{h:90}),this.cScale6=this.cScale6||x(this.primaryColor,{h:120}),this.cScale7=this.cScale7||x(this.primaryColor,{h:150}),this.cScale8=this.cScale8||x(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||x(this.primaryColor,{h:270}),this.cScale10=this.cScale10||x(this.primaryColor,{h:300}),this.cScale11=this.cScale11||x(this.primaryColor,{h:330}),this.darkMode)for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScale"+u]=$(this["cScale"+u],75);else for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScale"+u]=$(this["cScale"+u],25);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleInv"+u]=this["cScaleInv"+u]||L(this["cScale"+u]);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this.darkMode?this["cScalePeer"+u]=this["cScalePeer"+u]||O(this["cScale"+u],10):this["cScalePeer"+u]=this["cScalePeer"+u]||$(this["cScale"+u],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleLabel"+u]=this["cScaleLabel"+u]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let u=0;u<5;u++)this["surface"+u]=this["surface"+u]||x(this.mainBkg,{h:180,s:-15,l:t*(5+u*3)}),this["surfacePeer"+u]=this["surfacePeer"+u]||x(this.mainBkg,{h:180,s:-15,l:t*(8+u*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||x(this.primaryColor,{h:64}),this.fillType3=this.fillType3||x(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||x(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||x(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||x(this.primaryColor,{h:128}),this.fillType7=this.fillType7||x(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||x(this.primaryColor,{l:-10}),this.pie5=this.pie5||x(this.secondaryColor,{l:-10}),this.pie6=this.pie6||x(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||x(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||x(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||x(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||x(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||x(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||x(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||x(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||x(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||x(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||x(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||x(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||x(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ce(this.quadrant1Fill)?O(this.quadrant1Fill):$(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
4nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((a=this.xyChart)==null?void 0:a.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((s=this.xyChart)==null?void 0:s.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((l=this.xyChart)==null?void 0:l.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((n=this.xyChart)==null?void 0:n.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((g=this.xyChart)==null?void 0:g.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?$(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode?(this.git0=O(this.git0,25),this.git1=O(this.git1,25),this.git2=O(this.git2,25),this.git3=O(this.git3,25),this.git4=O(this.git4,25),this.git5=O(this.git5,25),this.git6=O(this.git6,25),this.git7=O(this.git7,25)):(this.git0=$(this.git0,25),this.git1=$(this.git1,25),this.git2=$(this.git2,25),this.git3=$(this.git3,25),this.git4=$(this.git4,25),this.git5=$(this.git5,25),this.git6=$(this.git6,25),this.git7=$(this.git7,25)),this.gitInv0=this.gitInv0||L(this.git0),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||_e,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Fe}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(Wr,"Theme"),Wr),gm=p(e=>{const t=new um;return t.calculate(e),t},"getThemeVariables"),zr,pm=(zr=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=ot("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){var s,l,o,n,h,c,d,g,u,m,f;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||x(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||x(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ot(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ot(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ot(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ot(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||L(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||L(this.tertiaryColor),this.lineColor=this.lineColor||L(this.background),this.arrowheadColor=this.arrowheadColor||L(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackgroun
vendor: 6,864 bytes, line 4
4d=this.edgeLabelBackground||(this.darkMode?$(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||$(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||L(this.lineColor);const t="#ECECFE",r="#E9E9F1",i=x(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||O(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScale"+y]=this.mainBkg;if(this.darkMode)for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScale"+y]=$(this["cScale"+y],75);else for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScale"+y]=$(this["cScale"+y],25);for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScaleInv"+y]=this["cScaleInv"+y]||L(this["cScale"+y]);for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this.darkMode?this["cScalePeer"+y]=this["cScalePeer"+y]||O(this["cScale"+y],10):this["cScalePeer"+y]=this["cScalePeer"+y]||$(this["cScale"+y],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScaleLabel"+y]=this["cScaleLabel"+y]||this.scaleLabelColor;const a=this.darkMode?-4:-1;for(let y=0;y<5;y++)this["surface"+y]=this["surface"+y]||x(this.mainBkg,{h:180,s:-15,l:a*(5+y*3)}),this["surfacePeer"+y]=this["surfacePeer"+y]||x(this.mainBkg,{h:180,s:-15,l:a*(8+y*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||x(t,{h:64}),this.fillType3=this.fillType3||x(r,{h:64}),this.fillType4=this.fillType4||x(t,{h:-64}),this.fillType5=this.fillType5||x(r,{h:-64}),this.fillType6=this.fillType6||x(t,{h:128}),this.fillType7=this.fillType7||x(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||x(t,{l:-10}),this.pie5=this.pie5||x(r,{l:-10}),this.pie6=this.pie6||x(i,{l:-10}),this.pie7=this.pie7||x(t,{h:60,l:-10}),this.pie8=this.pie8||x(t,{h:-60,l:-10}),this.pie9=this.pie9||x(t,{h:120,l:0}),this.pie10=this.pie10||x(t,{h:60,l:-20}),this.pie11=this.pie11||x(t,{h:-60,l:-20}),this.pie12=this.pie12||x(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||x(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||x(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||x(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||x(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||x(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||x(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ce(this.quadrant1Fill)?O(this.quadrant1Fill):$(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
4nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((s=this.xyChart)==null?void 0:s.backgroundColor)||this.background,titleColor:((l=this.xyChart)==null?void 0:l.titleColor)||this.primaryTextColor,xAxisTitleColor:((o=this.xyChart)==null?void 0:o.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((h=this.xyChart)==null?void 0:h.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((c=this.xyChart)==null?void 0:c.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((d=this.xyChart)==null?void 0:d.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((g=this.xyChart)==null?void 0:g.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((m=this.xyChart)==null?void 0:m.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?$(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||x(t,{h:-30}),this.git4=this.git4||x(t,{h:-60}),this.git5=this.git5||x(t,{h:-90}),this.git6=this.git6||x(t,{h:60}),this.git7=this.git7||x(t,{h:120}),this.darkMode?(this.git0=O(this.git0,25),this.git1=O(this.git1,25),this.git2=O(this.git2,25),this.git3=O(this.git3,25),this.git4=O(this.git4,25),this.git5=O(this.git5,25),this.git6=O(this.git6,25),this.git7=O(this.git7,25)):(this.git0=$(this.git0,25),this.git1=$(this.git1,25),this.git2=$(this.git2,25),this.git3=$(this.git3,25),this.git4=$(this.git4,25),this.git5=$(this.git5,25),this.git6=$(this.git6,25),this.git7=$(this.git7,25)),this.gitInv0=this.gitInv0||L(this.git0),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||_e,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Fe}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>
vendor: 5,938 bytes, line 4
4{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(zr,"Theme"),zr),fm=p(e=>{const t=new pm;return t.calculate(e),t},"getThemeVariables"),Nr,mm=(Nr=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=O(this.primaryColor,16),this.tertiaryColor=x(this.primaryColor,{h:-160}),this.primaryBorderColor=L(this.background),this.secondaryBorderColor=ot(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ot(this.tertiaryColor,this.darkMode),this.primaryTextColor=L(this.primaryColor),this.secondaryTextColor=L(this.secondaryColor),this.tertiaryTextColor=L(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=O(L("#323D47"),10),this.border1="#ccc",this.border2=Ge(255,255,255,.25),this.arrowheadColor=L(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){var r,i,a,s,l,o,n,h,c,d,g;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||x(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||x(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ot(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ot(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ot(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ot(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||L(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||L(this.tertiaryColor),this.lineColor=this.lineColor||L(this.background),this.arrowheadColor=this.arrowheadColor||L(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?$(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||$(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||L(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||O(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackgroun
vendor: 5,238 bytes, line 4
4d="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||x(this.primaryColor,{h:30}),this.cScale4=this.cScale4||x(this.primaryColor,{h:60}),this.cScale5=this.cScale5||x(this.primaryColor,{h:90}),this.cScale6=this.cScale6||x(this.primaryColor,{h:120}),this.cScale7=this.cScale7||x(this.primaryColor,{h:150}),this.cScale8=this.cScale8||x(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||x(this.primaryColor,{h:270}),this.cScale10=this.cScale10||x(this.primaryColor,{h:300}),this.cScale11=this.cScale11||x(this.primaryColor,{h:330}),this.darkMode)for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScale"+u]=$(this["cScale"+u],75);else for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScale"+u]=$(this["cScale"+u],25);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleInv"+u]=this["cScaleInv"+u]||L(this["cScale"+u]);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this.darkMode?this["cScalePeer"+u]=this["cScalePeer"+u]||O(this["cScale"+u],10):this["cScalePeer"+u]=this["cScalePeer"+u]||$(this["cScale"+u],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleLabel"+u]=this["cScaleLabel"+u]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let u=0;u<5;u++)this["surface"+u]=this["surface"+u]||x(this.mainBkg,{h:180,s:-15,l:t*(5+u*3)}),this["surfacePeer"+u]=this["surfacePeer"+u]||x(this.mainBkg,{h:180,s:-15,l:t*(8+u*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||x(this.primaryColor,{h:64}),this.fillType3=this.fillType3||x(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||x(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||x(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||x(this.primaryColor,{h:128}),this.fillType7=this.fillType7||x(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||x(this.primaryColor,{l:-10}),this.pie5=this.pie5||x(this.secondaryColor,{l:-10}),this.pie6=this.pie6||x(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||x(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||x(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||x(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||x(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||x(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||x(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||x(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||x(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||x(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||x(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||x(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||x(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ce(this.quadrant1Fill)?O(this.quadrant1Fill):$(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
4nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((a=this.xyChart)==null?void 0:a.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((s=this.xyChart)==null?void 0:s.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((l=this.xyChart)==null?void 0:l.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((n=this.xyChart)==null?void 0:n.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((g=this.xyChart)==null?void 0:g.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?$(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||x(this.primaryColor,{h:-30}),this.git4=this.git4||x(this.primaryColor,{h:-60}),this.git5=this.git5||x(this.primaryColor,{h:-90}),this.git6=this.git6||x(this.primaryColor,{h:60}),this.git7=this.git7||x(this.primaryColor,{h:120}),this.darkMode?(this.git0=O(this.git0,25),this.git1=O(this.git1,25),this.git2=O(this.git2,25),this.git3=O(this.git3,25),this.git4=O(this.git4,25),this.git5=O(this.git5,25),this.git6=O(this.git6,25),this.git7=O(this.git7,25)):(this.git0=$(this.git0,25),this.git1=$(this.git1,25),this.git2=$(this.git2,25),this.git3=$(this.git3,25),this.git4=$(this.git4,25),this.git5=$(this.git5,25),this.git6=$(this.git6,25),this.git7=$(this.git7,25)),this.gitInv0=this.gitInv0||L(this.git0),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||_e,this.attributeBackgroun
4dColorEven=this.attributeBackgroundColorEven||Fe}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(Nr,"Theme"),Nr),ym=p(e=>{const t=new mm;return t.calculate(e),t},"getThemeVariables"),Hr,Cm=(Hr=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=ot(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"}updateColors(){var s,l,o,n,h,c,d,g,u,m,f;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||x(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||x(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ot(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ot(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ot(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ot(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||L(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||L(this.tertiaryColor),this.lineColor=this.lineColor||L(this.background),this.arrowheadColor=this.arrowheadColor||L(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?$(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||$(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||L(this.lineColor);const t="#ECECFE",r="#E9E9F1",i=x(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||O(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
vendor: 4,256 bytes, line 4
4dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScaleInv"+y]=this["cScaleInv"+y]||L(this["cScale"+y]);for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this.darkMode?this["cScalePeer"+y]=this["cScalePeer"+y]||O(this["cScale"+y],10):this["cScalePeer"+y]=this["cScalePeer"+y]||$(this["cScale"+y],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let y=0;y<this.THEME_COLOR_LIMIT;y++)this["cScaleLabel"+y]=this["cScaleLabel"+y]||this.scaleLabelColor;const a=this.darkMode?-4:-1;for(let y=0;y<5;y++)this["surface"+y]=this["surface"+y]||x(this.mainBkg,{h:180,s:-15,l:a*(5+y*3)}),this["surfacePeer"+y]=this["surfacePeer"+y]||x(this.mainBkg,{h:180,s:-15,l:a*(8+y*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||x(t,{h:64}),this.fillType3=this.fillType3||x(r,{h:64}),this.fillType4=this.fillType4||x(t,{h:-64}),this.fillType5=this.fillType5||x(r,{h:-64}),this.fillType6=this.fillType6||x(t,{h:128}),this.fillType7=this.fillType7||x(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||x(t,{l:-10}),this.pie5=this.pie5||x(r,{l:-10}),this.pie6=this.pie6||x(i,{l:-10}),this.pie7=this.pie7||x(t,{h:60,l:-10}),this.pie8=this.pie8||x(t,{h:-60,l:-10}),this.pie9=this.pie9||x(t,{h:120,l:0}),this.pie10=this.pie10||x(t,{h:60,l:-20}),this.pie11=this.pie11||x(t,{h:-60,l:-20}),this.pie12=this.pie12||x(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||x(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||x(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||x(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||x(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||x(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||x(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ce(this.quadrant1Fill)?O(this.quadrant1Fill):$(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
4nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((s=this.xyChart)==null?void 0:s.backgroundColor)||this.background,titleColor:((l=this.xyChart)==null?void 0:l.titleColor)||this.primaryTextColor,xAxisTitleColor:((o=this.xyChart)==null?void 0:o.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((h=this.xyChart)==null?void 0:h.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((c=this.xyChart)==null?void 0:c.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((d=this.xyChart)==null?void 0:d.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((g=this.xyChart)==null?void 0:g.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((m=this.xyChart)==null?void 0:m.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?$(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||x(t,{h:-30}),this.git4=this.git4||x(t,{h:-60}),this.git5=this.git5||x(t,{h:-90}),this.git6=this.git6||x(t,{h:60}),this.git7=this.git7||x(t,{h:120}),this.darkMode?(this.git0=O(this.git0,25),this.git1=O(this.git1,25),this.git2=O(this.git2,25),this.git3=O(this.git3,25),this.git4=O(this.git4,25),this.git5=O(this.git5,25),this.git6=O(this.git6,25),this.git7=O(this.git7,25)):(this.git0=$(this.git0,25),this.git1=$(this.git1,25),this.git2=$(this.git2,25),this.git3=$(this.git3,25),this.git4=$(this.git4,25),this.git5=$(this.git5,25),this.git6=$(this.git6,25),this.git7=$(this.git7,25)),this.gitInv0=this.gitInv0||L(this.git0),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLineColor=this.commitLineColor??"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||_e,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Fe}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>
4{this[i]=t[i]})}},p(Hr,"Theme"),Hr),xm=p(e=>{const t=new Cm;return t.calculate(e),t},"getThemeVariables"),jr,bm=(jr=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=O(this.primaryColor,16),this.tertiaryColor=x(this.primaryColor,{h:-160}),this.primaryBorderColor=L(this.background),this.secondaryBorderColor=ot(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ot(this.tertiaryColor,this.darkMode),this.primaryTextColor=L(this.primaryColor),this.secondaryTextColor=L(this.secondaryColor),this.tertiaryTextColor=L(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=O(L("#323D47"),10),this.border1="#ccc",this.border2=Ge(255,255,255,.25),this.arrowheadColor=L(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"}updateColors(){var r,i,a,s,l,o,n,h,c,d,g;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||x(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||x(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ot(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ot(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ot(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ot(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||L(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||L(this.tertiaryColor),this.lineColor=this.lineColor||L(this.background),this.arrowheadColor=this.arrowheadColor||L(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?$(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||$(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||L(this.lineColor),this.rootLabelColor="#FFFFFF",this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||O(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
vendor: 4,633 bytes, line 4
4dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleInv"+u]=this["cScaleInv"+u]||L(this["cScale"+u]);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this.darkMode?this["cScalePeer"+u]=this["cScalePeer"+u]||O(this["cScale"+u],10):this["cScalePeer"+u]=this["cScalePeer"+u]||$(this["cScale"+u],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleLabel"+u]=$(this["cScale"+u],75);const t=this.darkMode?-4:-1;for(let u=0;u<5;u++)this["surface"+u]=this["surface"+u]||x(this.mainBkg,{h:180,s:-15,l:t*(5+u*3)}),this["surfacePeer"+u]=this["surfacePeer"+u]||x(this.mainBkg,{h:180,s:-15,l:t*(8+u*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||x(this.primaryColor,{h:64}),this.fillType3=this.fillType3||x(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||x(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||x(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||x(this.primaryColor,{h:128}),this.fillType7=this.fillType7||x(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||x(this.primaryColor,{l:-10}),this.pie5=this.pie5||x(this.secondaryColor,{l:-10}),this.pie6=this.pie6||x(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||x(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||x(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||x(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||x(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||x(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||x(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||x(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||x(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||x(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||x(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||x(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||x(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ce(this.quadrant1Fill)?O(this.quadrant1Fill):$(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExter
4nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((a=this.xyChart)==null?void 0:a.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((s=this.xyChart)==null?void 0:s.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((l=this.xyChart)==null?void 0:l.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((n=this.xyChart)==null?void 0:n.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((g=this.xyChart)==null?void 0:g.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?$(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||x(this.primaryColor,{h:-30}),this.git4=this.git4||x(this.primaryColor,{h:-60}),this.git5=this.git5||x(this.primaryColor,{h:-90}),this.git6=this.git6||x(this.primaryColor,{h:60}),this.git7=this.git7||x(this.primaryColor,{h:120}),this.darkMode?(this.git0=O(this.git0,25),this.git1=O(this.git1,25),this.git2=O(this.git2,25),this.git3=O(this.git3,25),this.git4=O(this.git4,25),this.git5=O(this.git5,25),this.git6=O(this.git6,25),this.git7=O(this.git7,25)):(this.git0=$(this.git0,25),this.git1=$(this.git1,25),this.git2=$(this.git2,25),this.git3=$(this.git3,25),this.git4=$(this.git4,25),this.git5=$(this.git5,25),this.git6=$(this.git6,25),this.git7=$(this.git7,25)),this.gitInv0=this.gitInv0||L(this.git0),this.gitInv1=this.gitInv1||L(this.git1),this.gitInv2=this.gitInv2||L(this.git2),this.gitInv3=this.gitInv3||L(this.git3),this.gitInv4=this.gitInv4||L(this.git4),this.gitInv5=this.gitInv5||L(this.git5),this.gitInv6=this.gitInv6||L(this.git6),this.gitInv7=this.gitInv7||L(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||_e,this.attributeBackgroundColorEven=this.attributeBackgroun
4dColorEven||Fe}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(jr,"Theme"),jr),km=p(e=>{const t=new bm;return t.calculate(e),t},"getThemeVariables"),Pe={base:{getThemeVariables:em},dark:{getThemeVariables:im},default:{getThemeVariables:sm},forest:{getThemeVariables:lm},neutral:{getThemeVariables:hm},neo:{getThemeVariables:dm},"neo-dark":{getThemeVariables:gm},redux:{getThemeVariables:fm},"redux-dark":{getThemeVariables:ym},"redux-color":{getThemeVariables:xm},"redux-dark-color":{getThemeVariables:km}},ae={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.
vendor: 5,406 bytes, line 4
417},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},Mh={...ae,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:Pe.default.getThemeVariables(),sequence:{...ae.sequence,messageFont:p(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:p(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:p(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...ae.gantt,tickInterval:void 0,useWidth:void 0},c4:{...ae.c4,useWidth:void 0,personFont:p(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...ae.flowchart,inheritDir:!1},external_personFont:p(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:p(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:p(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:p(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:p(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:p(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:p(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:p(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:p(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:p(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:p(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:p(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:p(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:p(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:p(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:p(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:p(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:p(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:p(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:p(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:p(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...ae.pie,useWidth:984}
4,xyChart:{...ae.xyChart,useWidth:void 0},requirement:{...ae.requirement,useWidth:void 0},packet:{...ae.packet},treeView:{...ae.treeView,useWidth:void 0},radar:{...ae.radar},ishikawa:{...ae.ishikawa},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...ae.venn}},Eh=p((e,t="")=>Object.keys(e).reduce((r,i)=>Array.isArray(e[i])?r:typeof e[i]=="object"&&e[i]!==null?[...r,t+i,...Eh(e[i],"")]:[...r,t+i],[]),"keyify"),Tm=new Set(Eh(Mh,"")),$h=Mh,Ta=p(e=>{if(R.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>Ta(t));return}for(const t of Object.keys(e)){if(R.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!Tm.has(t)||e[t]==null){R.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){R.debug("sanitizing object",t),Ta(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)t.includes(i)&&(R.debug("sanitizing css option",t),e[t]=Sm(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}R.debug("After sanitization",e)}},"sanitizeDirective"),Sm=p(e=>{let t=0,r=0;for(const i of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";i==="{"?t++:i==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss"),Xr=Object.freeze($h),We=p(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),ee=$t({},Xr),Sa,cr=[],Bi=$t({},Xr),Va=p((e,t)=>{let r=$t({},e),i={};for(const a of t)Dh(a),i=$t(i,a);if(r=$t(r,i),i.theme&&i.theme in Pe){const a=$t({},Sa),s=$t(a.themeVariables||{},i.themeVariables);r.theme&&r.theme in Pe&&(r.themeVariables=Pe[r.theme].getThemeVariables(s))}return Bi=r,Rh(Bi),Bi},"updateCurrentConfig"),wm=p(e=>(ee=$t({},Xr),ee=$t(ee,e),e.theme&&Pe[e.theme]&&(ee.themeVariables=Pe[e.theme].getThemeVariables(e.themeVariables)),Va(ee,cr),ee),"setSiteConfig"),Bm=p(e=>{Sa=$t({},e)},"saveConfigFromInitialize"),vm=p(e=>(ee=$t(ee,e),Va(ee,cr),ee),"updateSiteConfig"),Oh=p(()=>$t({},ee),"getSiteConfig"),Ih=p(e=>(Rh(e),$t(Bi,e),Bt()),"setConfig"),Bt=p(()=>$t({},Bi),"getConfig"),Dh=p(e=>{e&&(["secure",...ee.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(R.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&Dh(e[t])}))},"sanitize"),Lm=p(e=>{var t;Ta(e),e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),cr.push(e),Va(ee,cr)},"addDirective"),wa=p((e=ee)=>{cr=[],Va(e,cr)},"reset"),_m={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},Xl={},Ph=p(e=>{Xl[e]||(R.warn(_m[e]),Xl[e]=!0)},"issueWarning"),Rh=p(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&Ph("LAZY_LOAD_DEPRECATED")},"checkConfig"),Bw=p(()=>{let e={};Sa&&(e=$t(e,Sa));for(const t of cr)e=$t(e,t);return e},"getUserDefinedConfig"),Qt=p(e=>{var t,r;return((t=e.flowchart)==null?void 0:t.htmlLabels)!=null&&Ph("FLOWCHART_HTML_LABELS_DEPRECATED"),We(e.htmlLabels??((r=e.flowchart)==null?void 0:r.htmlLabels)??!0)},"getEffectiveHtmlLabels"),Ri=/<br\s*\/?>/gi,Fm=p(e=>
4e?zh(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),Am=(()=>{let e=!1;return()=>{e||(qh(),e=!0)}})();function qh(){const e="data-temp-href-target";Gr.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),Gr.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}p(qh,"setupDompurifyHooks");var Wh=p(e=>(Am(),Gr.sanitize(e)),"removeScript"),Vl=p((e,t)=>{if(Qt(t)){const r=t.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?e=Wh(e):r!=="loose"&&(e=zh(e),e=e.replace(/</g,"<").replace(/>/g,">"),e=e.replace(/=/g,"="),e=Om(e))}return e},"sanitizeMore"),ye=p((e,t)=>e&&(t.dompurifyConfig?e=Gr.sanitize(Vl(e,t),t.dompurifyConfig).toString():e=Gr.sanitize(Vl(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),Mm=p((e,t)=>typeof e=="string"?ye(e,t):e.flat().map(r=>ye(r,t)),"sanitizeTextOrArray"),Em=p(e=>Ri.test(e),"hasBreaks"),$m=p(e=>e.split(Ri),"splitBreaks"),Om=p(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),zh=p(e=>e.replace(Ri,"#br#"),"breakToPlaceholder"),Im=p(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),Dm=p(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),Pm=p(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),Zl=p(function(e){const t=e.split(/(,)/),r=[];for(let i=0;i<t.length;i++){let a=t[i];if(a===","&&i>0&&i+1<t.length){const s=t[i-1],l=t[i+1];Rm(s,l)&&(a=s+","+l,i++,r.pop())}r.push(qm(a))}return r.join("")},"parseGenericTypes"),Ys=p((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),Rm=p((e,t)=>{const r=Ys(e,"~"),i=Ys(t,"~");return r===1&&i===1},"shouldCombineSets"),qm=p(e=>{const t=Ys(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const i=[...e];let a=i.indexOf("~"),s=i.lastIndexOf("~");for(;a!==-1&&s!==-1&&a!==s;)i[a]="<",i[s]=">",a=i.indexOf("~"),s=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),Kl=p(()=>window.MathMLElement!==void 0,"isMathMLSupported"),Us=/\$\$(.*)\$\$/g,_i=p(e=>{var t;return(((t=e.match(Us))==null?void 0:t.length)??0)>0},"hasKatex"),vw=p(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await Nh(e,t),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const i=document.querySelector("body");i==null||i.insertAdjacentElement("beforeend",r);const a={width:r.clientWidth,height:r.clientHeight};return r.remove(),a},"calculateMathMLDimensions"),Wm=p(async(e,t)=>{if(!_i(e))return e;if(!(Kl()||t.legacyMathML||t.forceLegacyMathML))return e.replace(Us,"MathML is unsupported in this environment.");{const{default:r}=await pt(async()=>{const{default:a}=await import("./katex.D7YudOYD.js");return{default:a}},[]),i=t.forceLegacyMathML||!Kl()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(Ri).map(a=>_i(a)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${a}</div>`:`<div>${a}</div>`).join("").replace(Us,(a,s)=>r.renderToString(s,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),Nh=p(async(e,t)=>ye(await Wm(e,t),t),"renderKatexSanitized"),qi={getRows:Fm,sanitizeText:ye,sanitizeTextOrArray:Mm,hasBreaks:Em,splitBreaks:$m,lineBreakRegex:Ri,removeScript:Wh,getUrl:Im,evaluate:We,getMax:Dm,getMin:Pm},zm=p(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),Nm=p(function(e,t,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${t}px;`)):(i.set("height",e),i.set("width",t)),i},"calculateSvgSizeAttrs"),Hh=p(function(e,t,r,i){const a=Nm(t,r,i);zm(e,a)},"configureSvgSize"),Hm=p(function(e,t,r,i){const a=t.node().getBBox(),s=a.width,l=a.height;R.info(`SVG bounds: ${s}x${l}`,a);let o=0,n=0;R.info(`Graph bounds: ${o}x${n}`,e),o=s+r*2,n=l+r*2,R.info(`Calculated bounds: ${o}x${n}`),Hh(t,n,o,i);const h=`${a.x-r} ${a.y-r} ${a.width+2*r} ${a.height+2*r}`;t.attr("viewBox",h)},"setupGraphViewbox"),pa={},jm=p((e,t,r,i)=>{let a="";return e in pa&&pa[e]?a=pa[e]({...r,svgId:i}):R.warn(`No theme found for ${e}`),` & { 5 font-family: ${r.fontFamily}; 6 font-size: ${r.fontSize}; 7 fill: ${r.textColor} 8 } 9 @keyframes edge-animation-frame { 10 from { 11 stroke-dashoffset: 0; 12 } 13 } 14 @keyframes dash { 15 to { 16 stroke-dashoffset: 0; 17 } 18 } 19 & .edge-animation-slow { 20 stroke-dasharray: 9,5 !important; 21 stroke-dashoffset: 900; 22 animation: dash 50s linear infinite; 23 stroke-linecap: round; 24 } 25 & .edge-animation-fast { 26 stroke-dasharray: 9,5 !important; 27 stroke-dashoffset: 900; 28 animation: dash 20s linear infinite; 29 stroke-linecap: round; 30 } 31 /* Classes common for multiple diagrams */ 32 33 & .error-icon { 34 fill: ${r.errorBkgColor}; 35 } 36 & .error-text { 37 fill: ${r.errorTextColor}; 38 stroke: ${r.errorTextColor}; 39 } 40 41 & .edge-thickness-normal { 42 stroke-width: ${r.strokeWidth??1}px; 43 } 44 & .edge-thickness-thick { 45 stroke-width: 3.5px 46 } 47 & .edge-pattern-solid { 48 stroke-dasharray: 0; 49 } 50 & .edge-thickness-invisible { 51 stroke-width: 0; 52 fill: none; 53 } 54 & .edge-pattern-dashed{ 55 stroke-dasharray: 3; 56 } 57 .edge-pattern-dotted { 58 stroke-dasharray: 2; 59 } 60 61 & .marker { 62 fill: ${r.lineColor}; 63 stroke: ${r.lineColor}; 64 } 65 & .marker.cross { 66 stroke: ${r.lineColor}; 67 } 68 69 & svg { 70 font-family: ${r.fontFamily}; 71 font-size: ${r.fontSize}; 72 } 73 & p { 74 margin: 0 75 } 76 77 ${a}
78 .node .neo-node { 79 stroke: ${r.nodeBorder}; 80 } 81 82 [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon { 83 stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder}; 84 filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"}; 85 } 86 87 88 [data-look="neo"].node path { 89 stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder}; 90 stroke-width: ${r.strokeWidth??1}px; 91 } 92 93 [data-look="neo"].node .outer-path { 94 filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"}; 95 } 96 97 [data-look="neo"].node .neo-line path { 98 stroke: ${r.nodeBorder}; 99 filter: none; 100 } 101 102 [data-look="neo"].node circle{ 103 stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder}; 104 filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"}; 105 } 106 107 [data-look="neo"].node circle .state-start{ 108 fill: #000000; 109 } 110 111 [data-look="neo"].icon-shape .icon { 112 fill: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder}; 113 filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"}; 114 } 115 116 [data-look="neo"].icon-shape .icon-neo path { 117 stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder}; 118 filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"}; 119 } 120 121 ${t} 122`},"getStyles"),Ym=p((e,t)=>{t!==void 0&&(pa[e]=t)},"addStylesForDiagram"),Um=jm,jh={};Sf(jh,{clear:()=>Gm,getAccDescription:()=>Km,getAccTitle:()=>Vm,getDiagramTitle:()=>Jm,setAccDescription:()=>Zm,setAccTitle:()=>Xm,setDiagramTitle:()=>Qm});var Io="",Do="",Po="",Ro=p(e=>ye(e,Bt()),"sanitizeText"),Gm=p(()=>{Io="",Po="",Do=""},"clear"),Xm=p(e=>{Io=Ro(e).replace(/^\s+/g,"")},"setAccTitle"),Vm=p(()=>Io,"getAccTitle"),Zm=p(e=>{Po=Ro(e).replace(/\n\s+/g,` 123`)},"setAccDescription"),Km=p(()=>Po,"getAccDescription"),Qm=p(e=>{Do=Ro(e)},"setDiagramTitle"),Jm=p(()=>Do,"getDiagramTitle"),Ql=R,ty=$o,ft=Bt,Lw=Ih,_w=Xr,qo=p(e=>ye(e,ft()),"sanitizeText"),ey=Hm,ry=p(()=>jh,"getCommonDb"),Ba={},va=p((e,t,r)=>{var i;Ba[e]&&Ql.warn(`Diagram with id ${e} already registered. Overwriting.`),Ba[e]=t,r&&Ah(e,r),Ym(e,t.styles),(i=t.injectUtils)==null||i.call(t,Ql,ty,ft,qo,ey,ry(),()=>{})},"registerDiagram"),Gs=p(e=>{if(e in Ba)return Ba[e];throw new iy(e)},"getDiagram"),Yr,iy=(Yr=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},p(Yr,"DiagramNotFoundError"),Yr),ay=p(e=>{var a;const{securityLevel:t}=ft();let r=ht("body");if(t==="sandbox"){const l=((a=ht(`#i${e}`).node())==null?void 0:a.contentDocument)??document;r=ht(l.body)}return r.select(`#${e}`)},"selectSvgElement");function Wo(e){return typeof e>"u"||e===null}p(Wo,"isNothing");function Yh(e){return typeof e=="object"&&e!==null}p(Yh,"isObject");function Uh(e){return Array.isArray(e)?e:Wo(e)?[]:[e]}p(Uh,"toArray");function Gh(e,t){var r,i,a,s;if(t)for(s=Object.keys(t),r=0,i=s.length;r<i;r+=1)a=s[r],e[a]=t[a];return e}p(Gh,"extend");function Xh(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}p(Xh,"repeat");function Vh(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}p(Vh,"isNegativeZero");var sy=Wo,oy=Yh,ly=Uh,ny=Xh,hy=Vh,cy=Gh,Ot={isNothing:sy,isObject:oy,toArray:ly,repeat:ny,isNegativeZero:hy,extend:cy};function zo(e,t){var r="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=` 124 125`+e.mark.snippet),i+" "+r):i}p(zo,"formatError");function Vr(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=zo(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}p(Vr,"YAMLException$1");Vr.prototype=Object.create(Error.prototype);Vr.prototype.constructor=Vr;Vr.prototype.toString=p(function(t){return this.name+": "+zo(this,t)},"toString");var re=Vr;function fa(e,t,r,i,a){var s="",l="",o=Math.floor(a/2)-1;return i-t>o&&(s=" ... ",t=i-o+s.length),r-i>o&&(l=" ...",r=i+o-l.length),{str:s+e.slice(t,r).replace(/\t/g,"→")+l,pos:i-t+s.length}}p(fa,"getLine");function ma(e,t){return Ot.repeat(" ",t-e.length)+e}p(ma,"padStart");function Zh(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],a=[],s,l=-1;s=r.exec(e.buffer);)a.push(s.index),i.push(s.index+s[0].length),e.position<=s.index&&l<0&&(l=i.length-2);l<0&&(l=i.length-1);var o="",n,h,c=Math.min(e.line+t.linesAfter,a.length).toString().length,d=t.maxLength-(t.indent+c+3);for(n=1;n<=t.linesBefore&&!(l-n<0);n++)h=fa(e.buffer,i[l-n],a[l-n],e.position-(i[l]-i[l-n]),d),o=Ot.repeat(" ",t.indent)+ma((e.line-n+1).toString(),c)+" | "+h.str+` 126`+o;for(h=fa(e.buffer,i[l],a[l],e.position,d),o+=Ot.repeat(" ",t.indent)+ma((e.line+1).toString(),c)+" | "+h.str+` 127`,o+=Ot.repeat("-",t.indent+c+3+h.pos)+`^ 128`,n=1;n<=t.linesAfter&&!(l+n>=a.length);n++)h=fa(e.buffer,i[l+n],a[l+n],e.position-(i[l]-i[l+n]),d),o+=Ot.repeat(" ",t.indent)+ma((e.line+n+1).toString(),c)+" | "+h.str+` 129`;return o.replace(/\n$/,"")}p(Zh,"makeSnippet");var dy=Zh,uy=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],gy=["scalar","sequence","mapping"];function Kh(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}p(Kh,"compileStyleAliases");function Qh(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(uy.indexOf(r)===-1)throw new re('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=Kh(t.styleAliases||null),gy.indexOf(this.kind)===-1)throw new re('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}p(Qh,"Type$1");var Yt=Qh;function Xs(e,t){var r=[];return e[t].forEach(function(i){var a=r.length;r.forEach(function(s,l){s.tag===i.tag&&s.kind===i.kind&&s.multi===i.multi&&(a=l)}),r[a]=i}),r}p(Xs,"compileList");function Jh(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function i(a){a.multi?(e.multi[a.kind].push(a),e.multi.fallback.push(a)):e[a.kind][a.tag]=e.fallback[a.tag]=a}for(p(i,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}p(Jh,"compileMap");function La(e){return this.extend(e)}p(La,"Schema$1");La.prototype.extend=p(function(t){var r=[],i=[];if(t instanceof Yt)i.push(t);else if(Array.isArray(t))i=i.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(i=i.concat(t.explicit));else throw new re("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Yt))throw new re("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new re("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
129if(s.multi)throw new re("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(s){if(!(s instanceof Yt))throw new re("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var a=Object.create(La.prototype);return a.implicit=(this.implicit||[]).concat(r),a.explicit=(this.explicit||[]).concat(i),a.compiledImplicit=Xs(a,"implicit"),a.compiledExplicit=Xs(a,"explicit"),a.compiledTypeMap=Jh(a.compiledImplicit,a.compiledExplicit),a},"extend");var py=La,fy=new Yt("tag:yaml.org,2002:str",{kind:"scalar",construct:p(function(e){return e!==null?e:""},"construct")}),my=new Yt("tag:yaml.org,2002:seq",{kind:"sequence",construct:p(function(e){return e!==null?e:[]},"construct")}),yy=new Yt("tag:yaml.org,2002:map",{kind:"mapping",construct:p(function(e){return e!==null?e:{}},"construct")}),Cy=new py({explicit:[fy,my,yy]});function tc(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}p(tc,"resolveYamlNull");function ec(){return null}p(ec,"constructYamlNull");function rc(e){return e===null}p(rc,"isNull");var xy=new Yt("tag:yaml.org,2002:null",{kind:"scalar",resolve:tc,construct:ec,predicate:rc,represent:{canonical:p(function(){return"~"},"canonical"),lowercase:p(function(){return"null"},"lowercase"),uppercase:p(function(){return"NULL"},"uppercase"),camelcase:p(function(){return"Null"},"camelcase"),empty:p(function(){return""},"empty")},defaultStyle:"lowercase"});function ic(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}p(ic,"resolveYamlBoolean");function ac(e){return e==="true"||e==="True"||e==="TRUE"}p(ac,"constructYamlBoolean");function sc(e){return Object.prototype.toString.call(e)==="[object Boolean]"}p(sc,"isBoolean");var by=new Yt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:ic,construct:ac,predicate:sc,represent:{lowercase:p(function(e){return e?"true":"false"},"lowercase"),uppercase:p(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:p(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function oc(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}p(oc,"isHexCode");function lc(e){return 48<=e&&e<=55}p(lc,"isOctCode");function nc(e){return 48<=e&&e<=57}p(nc,"isDecCode");function hc(e){if(e===null)return!1;var t=e.length,r=0,i=!1,a;if(!t)return!1;if(a=e[r],(a==="-"||a==="+")&&(a=e[++r]),a==="0"){if(r+1===t)return!0;if(a=e[++r],a==="b"){for(r++;r<t;r++)if(a=e[r],a!=="_"){if(a!=="0"&&a!=="1")return!1;i=!0}return i&&a!=="_"}if(a==="x"){for(r++;r<t;r++)if(a=e[r],a!=="_"){if(!oc(e.charCodeAt(r)))return!1;i=!0}return i&&a!=="_"}if(a==="o"){for(r++;r<t;r++)if(a=e[r],a!=="_"){if(!lc(e.charCodeAt(r)))return!1;i=!0}return i&&a!=="_"}}if(a==="_")return!1;for(;r<t;r++)if(a=e[r],a!=="_"){if(!nc(e.charCodeAt(r)))return!1;i=!0}return!(!i||a==="_")}p(hc,"resolveYamlInteger");function cc(e){var t=e,r=1,i;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),t=t.slice(1),i=t[0]),t==="0")return 0;if(i==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}p(cc,"constructYamlInteger");function dc(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Ot.isNegativeZero(e)}p(dc,"isInteger");var ky=new Yt("tag:yaml.org,2002:int",{kind:"scalar",resolve:hc,construct:cc,predicate:dc,represent:{binary:p(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:p(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)}
129,"octal"),decimal:p(function(e){return e.toString(10)},"decimal"),hexadecimal:p(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"]}}),Ty=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function uc(e){return!(e===null||!Ty.test(e)||e[e.length-1]==="_")}p(uc,"resolveYamlFloat");function gc(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}p(gc,"constructYamlFloat");var Sy=/^[-+]?[0-9]+e/;function pc(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ot.isNegativeZero(e))return"-0.0";return r=e.toString(10),Sy.test(r)?r.replace("e",".e"):r}p(pc,"representYamlFloat");function fc(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Ot.isNegativeZero(e))}p(fc,"isFloat");var wy=new Yt("tag:yaml.org,2002:float",{kind:"scalar",resolve:uc,construct:gc,predicate:fc,represent:pc,defaultStyle:"lowercase"}),mc=Cy.extend({implicit:[xy,by,ky,wy]}),By=mc,yc=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Cc=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]))?))?$");function xc(e){return e===null?!1:yc.exec(e)!==null||Cc.exec(e)!==null}p(xc,"resolveYamlTimestamp");function bc(e){var t,r,i,a,s,l,o,n=0,h=null,c,d,g;if(t=yc.exec(e),t===null&&(t=Cc.exec(e)),t===null)throw new Error("Date resolve error");
129if(r=+t[1],i=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(r,i,a));if(s=+t[4],l=+t[5],o=+t[6],t[7]){for(n=t[7].slice(0,3);n.length<3;)n+="0";n=+n}return t[9]&&(c=+t[10],d=+(t[11]||0),h=(c*60+d)*6e4,t[9]==="-"&&(h=-h)),g=new Date(Date.UTC(r,i,a,s,l,o,n)),h&&g.setTime(g.getTime()-h),g}p(bc,"constructYamlTimestamp");function kc(e){return e.toISOString()}p(kc,"representYamlTimestamp");var vy=new Yt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:xc,construct:bc,instanceOf:Date,represent:kc});function Tc(e){return e==="<<"||e===null}p(Tc,"resolveYamlMerge");var Ly=new Yt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Tc}),No=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= 130\r`;function Sc(e){if(e===null)return!1;var t,r,i=0,a=e.length,s=No;for(r=0;r<a;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}p(Sc,"resolveYamlBinary");function wc(e){var t,r,i=e.replace(/[\r\n=]/g,""),a=i.length,s=No,l=0,o=[];for(t=0;t<a;t++)t%4===0&&t&&(o.push(l>>16&255),o.push(l>>8&255),o.push(l&255)),l=l<<6|s.indexOf(i.charAt(t));return r=a%4*6,r===0?(o.push(l>>16&255),o.push(l>>8&255),o.push(l&255)):r===18?(o.push(l>>10&255),o.push(l>>2&255)):r===12&&o.push(l>>4&255),new Uint8Array(o)}p(wc,"constructYamlBinary");function Bc(e){var t="",r=0,i,a,s=e.length,l=No;for(i=0;i<s;i++)i%3===0&&i&&(t+=l[r>>18&63],t+=l[r>>12&63],t+=l[r>>6&63],t+=l[r&63]),r=(r<<8)+e[i];return a=s%3,a===0?(t+=l[r>>18&63],t+=l[r>>12&63],t+=l[r>>6&63],t+=l[r&63]):a===2?(t+=l[r>>10&63],t+=l[r>>4&63],t+=l[r<<2&63],t+=l[64]):a===1&&(t+=l[r>>2&63],t+=l[r<<4&63],t+=l[64],t+=l[64]),t}p(Bc,"representYamlBinary");function vc(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}p(vc,"isBinary");var _y=new Yt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Sc,construct:wc,predicate:vc,represent:Bc}),Fy=Object.prototype.hasOwnProperty,Ay=Object.prototype.toString;function Lc(e){if(e===null)return!0;var t=[],r,i,a,s,l,o=e;for(r=0,i=o.length;r<i;r+=1){if(a=o[r],l=!1,Ay.call(a)!=="[object Object]")return!1;for(s in a)if(Fy.call(a,s))if(!l)l=!0;else return!1;if(!l)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}p(Lc,"resolveYamlOmap");function _c(e){return e!==null?e:[]}p(_c,"constructYamlOmap");var My=new Yt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Lc,construct:_c}),Ey=Object.prototype.toString;function Fc(e){if(e===null)return!0;var t,r,i,a,s,l=e;for(s=new Array(l.length),t=0,r=l.length;t<r;t+=1){if(i=l[t],Ey.call(i)!=="[object Object]"||(a=Object.keys(i),a.length!==1))return!1;s[t]=[a[0],i[a[0]]]}return!0}p(Fc,"resolveYamlPairs");function Ac(e){if(e===null)return[];var t,r,i,a,s,l=e;for(s=new Array(l.length),t=0,r=l.length;t<r;t+=1)i=l[t],a=Object.keys(i),s[t]=[a[0],i[a[0]]];return s}p(Ac,"constructYamlPairs");var $y=new Yt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Fc,construct:Ac}),Oy=Object.prototype.hasOwnProperty;function Mc(e){if(e===null)return!0;var t,r=e;for(t in r)if(Oy.call(r,t)&&r[t]!==null)return!1;return!0}p(Mc,"resolveYamlSet");function Ec(e){return e!==null?e:{}}p(Ec,"constructYamlSet");var Iy=new Yt("tag:yaml.org,2002:set",{kind:"mapping",resolve:Mc,construct:Ec}),$c=By.extend({implicit:[vy,Ly],explicit:[_y,My,$y,Iy]}),Ve=Object.prototype.hasOwnProperty,_a=1,Oc=2,Ic=3,Fa=4,Ls=1,Dy=2,Jl=3,Py=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ry=/[\x85\u2028\u2029]/,qy=/[,\[\]\{\}]/,Dc=/^(?:!|!!|![a-z\-]+!)$/i,Pc=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Vs(e){return Object.prototype.toString.call(e)}p(Vs,"_class");function fe(e){return e===10||e===13}p(fe,"is_EOL");function Xe(e){return e===9||e===32}p(Xe,"is_WHITE_SPACE");function Xt(e){return e===9||e===32||e===10||e===13}p(Xt,"is_WS_OR_EOL");function or(e){return e===44||e===91||e===93||e===123||e===125}p(or,"is_FLOW_INDICATOR");function Rc(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}p(Rc,"fromHexCode");function qc(e){return e===120?2:e===117?4:e===85?8:0}p(qc,"escapedHexLen");function Wc(e){return 48<=e&&e<=57?e-48:-1}p(Wc,"fromDecimalCode");function Zs(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?` 131`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}p(Zs,"simpleEscapeSequence");function zc(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}p(zc,"charFromCodepoint");function Ho(e,t,r){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}p(Ho,"setProperty");var Nc=new Array(256),Hc=new Array(256);for(er=0;er<256;er++)Nc[er]=Zs(er)?1:0,Hc[er]=Zs(er);var er;function jc(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||$c,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.impl
131icitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}p(jc,"State$1");function jo(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=dy(r),new re(t,r)}p(jo,"generateError");function J(e,t){throw jo(e,t)}p(J,"throwError");function Fi(e,t){e.onWarning&&e.onWarning.call(null,jo(e,t))}p(Fi,"throwWarning");var tn={YAML:p(function(t,r,i){var a,s,l;t.version!==null&&J(t,"duplication of %YAML directive"),i.length!==1&&J(t,"YAML directive accepts exactly one argument"),a=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),a===null&&J(t,"ill-formed argument of the YAML directive"),s=parseInt(a[1],10),l=parseInt(a[2],10),s!==1&&J(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=l<2,l!==1&&l!==2&&Fi(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:p(function(t,r,i){var a,s;i.length!==2&&J(t,"TAG directive accepts exactly two arguments"),a=i[0],s=i[1],Dc.test(a)||J(t,"ill-formed tag handle (first argument) of the TAG directive"),Ve.call(t.tagMap,a)&&J(t,'there is a previously declared suffix for "'+a+'" tag handle'),Pc.test(s)||J(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{J(t,"tag prefix is malformed: "+s)}t.tagMap[a]=s},"handleTagDirective")};function Re(e,t,r,i){var a,s,l,o;if(t<r){if(o=e.input.slice(t,r),i)for(a=0,s=o.length;a<s;a+=1)l=o.charCodeAt(a),l===9||32<=l&&l<=1114111||J(e,"expected valid JSON character");else Py.test(o)&&J(e,"the stream contains non-printable characters");e.result+=o}}p(Re,"captureSegment");function Ks(e,t,r,i){var a,s,l,o;for(Ot.isObject(r)||J(e,"cannot merge mappings; the provided source object is unacceptable"),a=Object.keys(r),l=0,o=a.length;l<o;l+=1)s=a[l],Ve.call(t,s)||(Ho(t,s,r[s]),i[s]=!0)}p(Ks,"mergeMappings");function lr(e,t,r,i,a,s,l,o,n){var h,c;if(Array.isArray(a))for(a=Array.prototype.slice.call(a),h=0,c=a.length;h<c;h+=1)Array.isArray(a[h])&&J(e,"nested arrays are not supported inside keys"),typeof a=="object"&&Vs(a[h])==="[object Object]"&&(a[h]="[object Object]");if(typeof a=="object"&&Vs(a)==="[object Object]"&&(a="[object Object]"),a=String(a),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(h=0,c=s.length;h<c;h+=1)Ks(e,t,s[h],r);else Ks(e,t,s,r);else!e.json&&!Ve.call(r,a)&&Ve.call(t,a)&&(e.line=l||e.line,e.lineStart=o||e.lineStart,e.position=n||e.position,J(e,"duplicated mapping key")),Ho(t,a,s),delete r[a];return t}p(lr,"storeMappingPair");function Za(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):J(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}p(Za,"readLineBreak");function Lt(e,t,r){for(var i=0,a=e.input.charCodeAt(e.position);a!==0;){for(;Xe(a);)a===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),a=e.input.charCodeAt(++e.position);if(t&&a===35)do a=e.input.charCodeAt(++e.position);while(a!==10&&a!==13&&a!==0);if(fe(a))for(Za(e),a=e.input.charCodeAt(e.position),i++,e.lineIndent=0;a===32;)e.lineIndent++,a=e.input.charCodeAt(++e.position);else break}return r!==-1&&i!==0&&e.lineIndent<r&&Fi(e,"deficient indentation"),i}p(Lt,"skipSeparationSpace");function Wi(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Xt(r)))}p(Wi,"testDocumentSeparator");function Ka(e,t){t===1?e.result+=" ":t>1&&(e.result+=Ot.repeat(` 132`,t-1))}p(Ka,"writeFoldedLines");function Yc(e,t,r){var i,a,s,l,o,n,h,c,d=e.kind,g=e.result,u;if(u=e.input.charCodeAt(e.position),Xt(u)||or(u)||u===35||u===38||u===42||u===33||u===124||u===62||u===39||u===34||u===37||u===64||u===96||(u===63||u===45)&&(a=e.input.charCodeAt(e.position+1),Xt(a)||r&&or(a)))return!1;for(e.kind="scalar",e.result="",s=l=e.position,o=!1;u!==0;){if(u===58){if(a=e.input.charCodeAt(e.position+1),Xt(a)||r&&or(a))break}else if(u===35){if(i=e.input.charCodeAt(e.position-1),Xt(i))break}else{if(e.position===e.lineStart&&Wi(e)||r&&or(u))break;if(fe(u))if(n=e.line,h=e.lineStart,c=e.lineIndent,Lt(e,!1,-1),e.lineIndent>=t){o=!0,u=e.input.charCodeAt(e.position);continue}else{e.position=l,e.line=n,e.lineStart=h,e.lineIndent=c;break}}o&&(Re(e,s,l,!1),Ka(e,e.line-n),s=l=e.position,o=!1),Xe(u)||(l=e.position+1),u=e.input.charCodeAt(++e.position)}return Re(e,s,l,!1),e.result?!0:(e.kind=d,e.result=g,!1)}p(Yc,"readPlainScalar");function Uc(e,t){var r,i,a;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=a=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Re(e,i,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)i=e.position,e.position++,a=e.position;else return!0;else fe(r)?(Re(e,i,a,!0),Ka(e,Lt(e,!1,t)),i=a=e.position):e.position===e.lineStart&&Wi(e)?J(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);J(e,"unexpected end of the stream within a single quoted scalar")}p(Uc,"readSingleQuotedScalar");function Gc(e,t){var r,i,a,s,l,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return Re(e,r,e.position,!0),e.position++,!0;if(o===92){if(Re(e,r,e.position,!0),o=e.input.charCodeAt(++e.position),fe(o))Lt(e,!1,t);else if(o<256&&Nc[o])e.result+=Hc[o],e.position++;else if((l=qc(o))>0){for(a=l,s=0;a>0;a--)o=e.input.charCodeAt(++e.position),(l=Rc(o))>=0?s=(s<<4)+l:J(e,"expected hexadecimal character");e.result+=zc(s),e.position++}else J(e,"unknown escape sequence");r=i=e.position}else fe(o)?(Re(e,r,i,!0),Ka(e,Lt(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Wi(e)?J(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}J(e,"unexpected end of the stream within a double quoted scalar")}p(Gc,"readDoubleQuotedScalar");function Xc(e,t){var r=!0,i,a,s,l=e.tag,o,n=e.anchor,h,c,d,g,u,m=Object.create(null),f,y,C,b;if(b=e.input.charCodeAt(e.position),b===91)c=93,u=!1,o=[];else if(b===123)c=125,u=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),b=e.input.charCodeAt(++e.position);b!==0;){if(Lt(e,!0,t),b=e.input.charCodeAt(e.position),b===c)return e.position++,e.tag=l,e.anchor=n,e.kind=u?"mapping":"sequence",e.result=
132o,!0;r?b===44&&J(e,"expected the node content, but found ','"):J(e,"missed comma between flow collection entries"),y=f=C=null,d=g=!1,b===63&&(h=e.input.charCodeAt(e.position+1),Xt(h)&&(d=g=!0,e.position++,Lt(e,!0,t))),i=e.line,a=e.lineStart,s=e.position,dr(e,t,_a,!1,!0),y=e.tag,f=e.result,Lt(e,!0,t),b=e.input.charCodeAt(e.position),(g||e.line===i)&&b===58&&(d=!0,b=e.input.charCodeAt(++e.position),Lt(e,!0,t),dr(e,t,_a,!1,!0),C=e.result),u?lr(e,o,m,y,f,C,i,a,s):d?o.push(lr(e,null,m,y,f,C,i,a,s)):o.push(f),Lt(e,!0,t),b=e.input.charCodeAt(e.position),b===44?(r=!0,b=e.input.charCodeAt(++e.position)):r=!1}J(e,"unexpected end of the stream within a flow collection")}p(Xc,"readFlowCollection");function Vc(e,t){var r,i,a=Ls,s=!1,l=!1,o=t,n=0,h=!1,c,d;if(d=e.input.charCodeAt(e.position),d===124)i=!1;else if(d===62)i=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)Ls===a?a=d===43?Jl:Dy:J(e,"repeat of a chomping mode identifier");else if((c=Wc(d))>=0)c===0?J(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?J(e,"repeat of an indentation width identifier"):(o=t+c-1,l=!0);else break;if(Xe(d)){do d=e.input.charCodeAt(++e.position);while(Xe(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!fe(d)&&d!==0)}for(;d!==0;){for(Za(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!l||e.lineIndent<o)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!l&&e.lineIndent>o&&(o=e.lineIndent),fe(d)){n++;continue}if(e.lineIndent<o){a===Jl?e.result+=Ot.repeat(` 133`,s?1+n:n):a===Ls&&s&&(e.result+=` 134`);break}for(i?Xe(d)?(h=!0,e.result+=Ot.repeat(` 135`,s?1+n:n)):h?(h=!1,e.result+=Ot.repeat(` 136`,n+1)):n===0?s&&(e.result+=" "):e.result+=Ot.repeat(` 137`,n):e.result+=Ot.repeat(` 138`,s?1+n:n),s=!0,l=!0,n=0,r=e.position;!fe(d)&&d!==0;)d=e.input.charCodeAt(++e.position);Re(e,r,e.position,!1)}return!0}p(Vc,"readBlockScalar");function Qs(e,t){var r,i=e.tag,a=e.anchor,s=[],l,o=!1,n;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),n=e.input.charCodeAt(e.position);n!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,J(e,"tab characters must not be used in indentation")),!(n!==45||(l=e.input.charCodeAt(e.position+1),!Xt(l))));){if(o=!0,e.position++,Lt(e,!0,-1)&&e.lineIndent<=t){s.push(null),n=e.input.charCodeAt(e.position);continue}if(r=e.line,dr(e,t,Ic,!1,!0),s.push(e.result),Lt(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&n!==0)J(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o?(e.tag=i,e.anchor=a,e.kind="sequence",e.result=s,!0):!1}p(Qs,"readBlockSequence");function Zc(e,t,r){var i,a,s,l,o,n,h=e.tag,c=e.anchor,d={},g=Object.create(null),u=null,m=null,f=null,y=!1,C=!1,b;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=d),b=e.input.charCodeAt(e.position);b!==0;){if(!y&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,J(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),s=e.line,(b===63||b===58)&&Xt(i))b===63?(y&&(lr(e,d,g,u,m,null,l,o,n),u=m=f=null),C=!0,y=!0,a=!0):y?(y=!1,a=!0):J(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,b=i;else{if(l=e.line,o=e.lineStart,n=e.position,!dr(e,r,Oc,!1,!0))break;if(e.line===s){for(b=e.input.charCodeAt(e.position);Xe(b);)b=e.input.charCodeAt(++e.position);if(b===58)b=e.input.charCodeAt(++e.position),Xt(b)||J(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(lr(e,d,g,u,m,null,l,o,n),u=m=f=null),C=!0,y=!1,a=!1,u=e.tag,m=e.result;else if(C)J(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=h,e.anchor=c,!0}else if(C)J(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=h,e.anchor=c,!0}if((e.line===s||e.lineIndent>t)&&(y&&(l=e.line,o=e.lineStart,n=e.position),dr(e,t,Fa,!0,a)&&(y?m=e.result:f=e.result),y||(lr(e,d,g,u,m,f,l,o,n),u=m=f=null),Lt(e,!0,-1),b=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&b!==0)J(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&lr(e,d,g,u,m,null,l,o,n),C&&(e.tag=h,e.anchor=c,e.kind="mapping",e.result=d),C}p(Zc,"readBlockMapping");function Kc(e){var t,r=!1,i=!1,a,s,l;if(l=e.input.charCodeAt(e.position),l!==33)return!1;if(e.tag!==null&&J(e,"duplication of a tag property"),l=e.input.charCodeAt(++e.position),l===60?(r=!0,l=e.input.charCodeAt(++e.position)):l===33?(i=!0,a="!!",l=e.input.charCodeAt(++e.position)):a="!",t=e.position,r){do l=e.input.charCodeAt(++e.position);while(l!==0&&l!==62);e.position<e.length?(s=e.input.slice(t,e.position),l=e.input.charCodeAt(++e.position)):J(e,"unexpected end of the stream within a verbatim tag")}else{for(;l!==0&&!Xt(l);)l===33&&(i?J(e,"tag suffix cannot contain exclamation marks"):(a=e.input.slice(t-1,e.position+1),Dc.test(a)||J(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),l=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),qy.test(s)&&J(e,"tag suffix cannot contain flow indicator characters")}s&&!Pc.test(s)&&J(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{J(e,"tag name is malformed: "+s)}return r?e.tag=s:Ve.call(e.tagMap,a)?e.tag=e.tagMap[a]+s:a==="!"?e.tag="!"+s:a==="!!"?e.tag="tag:yaml.org,2002:"+s:J(e,'undeclared tag handle "'+a+'"'),!0}p(Kc,"readTagProperty");function Qc(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&J(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Xt(r)&&!or(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&J(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}p(Qc,"readAnchorProperty");
138function Jc(e){var t,r,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!Xt(i)&&!or(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&J(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Ve.call(e.anchorMap,r)||J(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Lt(e,!0,-1),!0}p(Jc,"readAlias");function dr(e,t,r,i,a){var s,l,o,n=1,h=!1,c=!1,d,g,u,m,f,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=l=o=Fa===r||Ic===r,i&&Lt(e,!0,-1)&&(h=!0,e.lineIndent>t?n=1:e.lineIndent===t?n=0:e.lineIndent<t&&(n=-1)),n===1)for(;Kc(e)||Qc(e);)Lt(e,!0,-1)?(h=!0,o=s,e.lineIndent>t?n=1:e.lineIndent===t?n=0:e.lineIndent<t&&(n=-1)):o=!1;if(o&&(o=h||a),(n===1||Fa===r)&&(_a===r||Oc===r?f=t:f=t+1,y=e.position-e.lineStart,n===1?o&&(Qs(e,y)||Zc(e,y,f))||Xc(e,f)?c=!0:(l&&Vc(e,f)||Uc(e,f)||Gc(e,f)?c=!0:Jc(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&J(e,"alias node should not have any properties")):Yc(e,f,_a===r)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):n===0&&(c=o&&Qs(e,y))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&J(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),d=0,g=e.implicitTypes.length;d<g;d+=1)if(m=e.implicitTypes[d],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Ve.call(e.typeMap[e.kind||"fallback"],e.tag))m=e.typeMap[e.kind||"fallback"][e.tag];else for(m=null,u=e.typeMap.multi[e.kind||"fallback"],d=0,g=u.length;d<g;d+=1)if(e.tag.slice(0,u[d].tag.length)===u[d].tag){m=u[d];break}m||J(e,"unknown tag !<"+e.tag+">"),e.result!==null&&m.kind!==e.kind&&J(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):J(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}p(dr,"composeNode");function td(e){var t=e.position,r,i,a,s=!1,l;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(l=e.input.charCodeAt(e.position))!==0&&(Lt(e,!0,-1),l=e.input.charCodeAt(e.position),!(e.lineIndent>0||l!==37));){for(s=!0,l=e.input.charCodeAt(++e.position),r=e.position;l!==0&&!Xt(l);)l=e.input.charCodeAt(++e.position);for(i=e.input.slice(r,e.position),a=[],i.length<1&&J(e,"directive name must not be less than one character in length");l!==0;){for(;Xe(l);)l=e.input.charCodeAt(++e.position);if(l===35){do l=e.input.charCodeAt(++e.position);while(l!==0&&!fe(l));break}if(fe(l))break;for(r=e.position;l!==0&&!Xt(l);)l=e.input.charCodeAt(++e.position);a.push(e.input.slice(r,e.position))}l!==0&&Za(e),Ve.call(tn,i)?tn[i](e,i,a):Fi(e,'unknown document directive "'+i+'"')}if(Lt(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,Lt(e,!0,-1)):s&&J(e,"directives end mark is expected"),dr(e,e.lineIndent-1,Fa,!1,!0),Lt(e,!0,-1),e.checkLineBreaks&&Ry.test(e.input.slice(t,e.position))&&Fi(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Wi(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Lt(e,!0,-1));return}if(e.position<e.length-1)J(e,"end of the stream or a document separator is expected");else return}p(td,"readDocument");function Yo(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=` 139`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new jc(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,J(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)td(r);return r.documents}p(Yo,"loadDocuments");function Wy(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=Yo(e,r);if(typeof t!="function")return i;for(var a=0,s=i.length;a<s;a+=1)t(i[a])}p(Wy,"loadAll$1");function ed(e,t){var r=Yo(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new re("expected a single document in the stream, but found more")}}p(ed,"load$1");var zy=ed,Ny={load:zy},rd=Object.prototype.toString,id=Object.prototype.hasOwnProperty,Uo=65279,Hy=9,Ai=10,jy=13,Yy=32,Uy=33,Gy=34,Js=35,Xy=37,Vy=38,Zy=39,Ky=42,ad=44,Qy=45,Aa=58,Jy=61,tC=62,eC=63,rC=64,sd=91,od=93,iC=96,ld=123,aC=124,nd=125,Ut={};Ut[0]="\\0";Ut[7]="\\a";Ut[8]="\\b";Ut[9]="\\t";Ut[10]="\\n";Ut[11]="\\v";Ut[12]="\\f";Ut[13]="\\r";Ut[27]="\\e";Ut[34]='\\"';Ut[92]="\\\\";Ut[133]="\\N";Ut[160]="\\_";Ut[8232]="\\L";Ut[8233]="\\P";var sC=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],oC=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function hd(e,t){var r,i,a,s,l,o,n;if(t===null)return{};for(r={},i=Object.keys(t),a=0,s=i.length;a<s;a+=1)l=i[a],o=String(t[l]),l.slice(0,2)==="!!"&&(l="tag:yaml.org,2002:"+l.slice(2)),n=e.compiledTypeMap.fallback[l],n&&id.call(n.styleAliases,o)&&(o=n.styleAliases[o]),r[l]=o;return r}p(hd,"compileStyleMap");function cd(e){var t,r,i;if(t=e.toString(16).toUpperCase(),e<=255)r="x",i=2;else if(e<=65535)r="u",i=4;else if(e<=4294967295)r="U",i=8;else throw new re("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Ot.repeat("0",i-t.length)+t}p(cd,"encodeHex");var lC=1,Mi=2;function dd(e){this.schema=e.schema||$c,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.ski
139pInvalid||!1,this.flowLevel=Ot.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=hd(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Mi:lC,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}p(dd,"State");function to(e,t){for(var r=Ot.repeat(" ",t),i=0,a=-1,s="",l,o=e.length;i<o;)a=e.indexOf(` 140`,i),a===-1?(l=e.slice(i),i=o):(l=e.slice(i,a+1),i=a+1),l.length&&l!==` 141`&&(s+=r),s+=l;return s}p(to,"indentString");function Ma(e,t){return` 142`+Ot.repeat(" ",e.indent*t)}p(Ma,"generateNextLine");function ud(e,t){var r,i,a;for(r=0,i=e.implicitTypes.length;r<i;r+=1)if(a=e.implicitTypes[r],a.resolve(t))return!0;return!1}p(ud,"testImplicitResolving");function Ei(e){return e===Yy||e===Hy}p(Ei,"isWhitespace");function Zr(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Uo||65536<=e&&e<=1114111}p(Zr,"isPrintable");function eo(e){return Zr(e)&&e!==Uo&&e!==jy&&e!==Ai}p(eo,"isNsCharOrWhitespace");function ro(e,t,r){var i=eo(e),a=i&&!Ei(e);return(r?i:i&&e!==ad&&e!==sd&&e!==od&&e!==ld&&e!==nd)&&e!==Js&&!(t===Aa&&!a)||eo(t)&&!Ei(t)&&e===Js||t===Aa&&a}p(ro,"isPlainSafe");function gd(e){return Zr(e)&&e!==Uo&&!Ei(e)&&e!==Qy&&e!==eC&&e!==Aa&&e!==ad&&e!==sd&&e!==od&&e!==ld&&e!==nd&&e!==Js&&e!==Vy&&e!==Ky&&e!==Uy&&e!==aC&&e!==Jy&&e!==tC&&e!==Zy&&e!==Gy&&e!==Xy&&e!==rC&&e!==iC}p(gd,"isPlainSafeFirst");function pd(e){return!Ei(e)&&e!==Aa}p(pd,"isPlainSafeLast");function Ar(e,t){var r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&t+1<e.length&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}p(Ar,"codePointAt");function Go(e){var t=/^\n* /;return t.test(e)}p(Go,"needIndentIndicator");var fd=1,io=2,md=3,yd=4,Lr=5;function Cd(e,t,r,i,a,s,l,o){var n,h=0,c=null,d=!1,g=!1,u=i!==-1,m=-1,f=gd(Ar(e,0))&&pd(Ar(e,e.length-1));if(t||l)for(n=0;n<e.length;h>=65536?n+=2:n++){if(h=Ar(e,n),!Zr(h))return Lr;f=f&&ro(h,c,o),c=h}else{for(n=0;n<e.length;h>=65536?n+=2:n++){if(h=Ar(e,n),h===Ai)d=!0,u&&(g=g||n-m-1>i&&e[m+1]!==" ",m=n);else if(!Zr(h))return Lr;f=f&&ro(h,c,o),c=h}g=g||u&&n-m-1>i&&e[m+1]!==" "}return!d&&!g?f&&!l&&!a(e)?fd:s===Mi?Lr:io:r>9&&Go(e)?Lr:l?s===Mi?Lr:io:g?yd:md}p(Cd,"chooseScalarStyle");function xd(e,t,r,i,a){e.dump=function(){if(t.length===0)return e.quotingType===Mi?'""':"''";if(!e.noCompatMode&&(sC.indexOf(t)!==-1||oC.test(t)))return e.quotingType===Mi?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),l=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),o=i||e.flowLevel>-1&&r>=e.flowLevel;function n(h){return ud(e,h)}switch(p(n,"testAmbiguity"),Cd(t,o,e.indent,l,n,e.quotingType,e.forceQuotes&&!i,a)){case fd:return t;case io:return"'"+t.replace(/'/g,"''")+"'";case md:return"|"+ao(t,e.indent)+so(to(t,s));case yd:return">"+ao(t,e.indent)+so(to(bd(t,l),s));case Lr:return'"'+kd(t)+'"';default:throw new re("impossible error: invalid scalar style")}}()}p(xd,"writeScalar");function ao(e,t){var r=Go(e)?String(t):"",i=e[e.length-1]===` 143`,a=i&&(e[e.length-2]===` 144`||e===` 145`),s=a?"+":i?"":"-";return r+s+` 146`}p(ao,"blockHeader");function so(e){return e[e.length-1]===` 147`?e.slice(0,-1):e}p(so,"dropEndingNewline");function bd(e,t){for(var r=/(\n+)([^\n]*)/g,i=function(){var h=e.indexOf(` 148`);return h=h!==-1?h:e.length,r.lastIndex=h,oo(e.slice(0,h),t)}(),a=e[0]===` 149`||e[0]===" ",s,l;l=r.exec(e);){var o=l[1],n=l[2];s=n[0]===" ",i+=o+(!a&&!s&&n!==""?` 150`:"")+oo(n,t),a=s}return i}p(bd,"foldString");function oo(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,i,a=0,s,l=0,o=0,n="";i=r.exec(e);)o=i.index,o-a>t&&(s=l>a?l:o,n+=` 151`+e.slice(a,s),a=s+1),l=o;return n+=` 152`,e.length-a>t&&l>a?n+=e.slice(a,l)+` 153`+e.slice(l+1):n+=e.slice(a),n.slice(1)}p(oo,"foldLine");function kd(e){for(var t="",r=0,i,a=0;a<e.length;r>=65536?a+=2:a++)r=Ar(e,a),i=Ut[r],!i&&Zr(r)?(t+=e[a],r>=65536&&(t+=e[a+1])):t+=i||cd(r);return t}p(kd,"escapeString");function Td(e,t,r){var i="",a=e.tag,s,l,o;for(s=0,l=r.length;s<l;s+=1)o=r[s],e.replacer&&(o=e.replacer.call(r,String(s),o)),(Le(e,t,o,!1,!1)||typeof o>"u"&&Le(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=a,e.dump="["+i+"]"}p(Td,"writeFlowSequence");function lo(e,t,r,i){var a="",s=e.tag,l,o,n;for(l=0,o=r.length;l<o;l+=1)n=r[l],e.replacer&&(n=e.replacer.call(r,String(l),n)),(Le(e,t+1,n,!0,!0,!1,!0)||typeof n>"u"&&Le(e,t+1,null,!0,!0,!1,!0))&&((!i||a!=="")&&(a+=Ma(e,t)),e.dump&&Ai===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=s,e.dump=a||"[]"}p(lo,"writeBlockSequence");function Sd(e,t,r){var i="",a=e.tag,s=Object.keys(r),l,o,n,h,c;for(l=0,o=s.length;l<o;l+=1)c="",i!==""&&(c+=", "),e.condenseFlow&&(c+='"'),n=s[l],h=r[n],e.replacer&&(h=e.replacer.call(r,n,h)),Le(e,t,n,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Le(e,t,h,!1,!1)&&(c+=e.dump,i+=c));e.tag=a,e.dump="{"+i+"}"}p(Sd,"writeFlowMapping");function wd(e,t,r,i){var a="",s=e.tag,l=Object.keys(r),o,n,h,c,d,g;
153if(e.sortKeys===!0)l.sort();else if(typeof e.sortKeys=="function")l.sort(e.sortKeys);else if(e.sortKeys)throw new re("sortKeys must be a boolean or a function");for(o=0,n=l.length;o<n;o+=1)g="",(!i||a!=="")&&(g+=Ma(e,t)),h=l[o],c=r[h],e.replacer&&(c=e.replacer.call(r,h,c)),Le(e,t+1,h,!0,!0,!0)&&(d=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,d&&(e.dump&&Ai===e.dump.charCodeAt(0)?g+="?":g+="? "),g+=e.dump,d&&(g+=Ma(e,t)),Le(e,t+1,c,!0,d)&&(e.dump&&Ai===e.dump.charCodeAt(0)?g+=":":g+=": ",g+=e.dump,a+=g));e.tag=s,e.dump=a||"{}"}p(wd,"writeBlockMapping");function no(e,t,r){var i,a,s,l,o,n;for(a=r?e.explicitTypes:e.implicitTypes,s=0,l=a.length;s<l;s+=1)if(o=a[s],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof t=="object"&&t instanceof o.instanceOf)&&(!o.predicate||o.predicate(t))){if(r?o.multi&&o.representName?e.tag=o.representName(t):e.tag=o.tag:e.tag="?",o.represent){if(n=e.styleMap[o.tag]||o.defaultStyle,rd.call(o.represent)==="[object Function]")i=o.represent(t,n);else if(id.call(o.represent,n))i=o.represent[n](t,n);else throw new re("!<"+o.tag+'> tag resolver accepts not "'+n+'" style');e.dump=i}return!0}return!1}p(no,"detectType");function Le(e,t,r,i,a,s,l){e.tag=null,e.dump=r,no(e,r,!1)||no(e,r,!0);var o=rd.call(e.dump),n=i,h;i&&(i=e.flowLevel<0||e.flowLevel>t);var c=o==="[object Object]"||o==="[object Array]",d,g;if(c&&(d=e.duplicates.indexOf(r),g=d!==-1),(e.tag!==null&&e.tag!=="?"||g||e.indent!==2&&t>0)&&(a=!1),g&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(c&&g&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),o==="[object Object]")i&&Object.keys(e.dump).length!==0?(wd(e,t,e.dump,a),g&&(e.dump="&ref_"+d+e.dump)):(Sd(e,t,e.dump),g&&(e.dump="&ref_"+d+" "+e.dump));else if(o==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!l&&t>0?lo(e,t-1,e.dump,a):lo(e,t,e.dump,a),g&&(e.dump="&ref_"+d+e.dump)):(Td(e,t,e.dump),g&&(e.dump="&ref_"+d+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&xd(e,e.dump,t,s,n);else{if(o==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new re("unacceptable kind of an object to dump "+o)}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}p(Le,"writeNode");function Bd(e,t){var r=[],i=[],a,s;for(Ea(e,r,i),a=0,s=i.length;a<s;a+=1)t.duplicates.push(r[i[a]]);t.usedDuplicates=new Array(s)}p(Bd,"getDuplicateReferences");function Ea(e,t,r){var i,a,s;if(e!==null&&typeof e=="object")if(a=t.indexOf(e),a!==-1)r.indexOf(a)===-1&&r.push(a);else if(t.push(e),Array.isArray(e))for(a=0,s=e.length;a<s;a+=1)Ea(e[a],t,r);else for(i=Object.keys(e),a=0,s=i.length;a<s;a+=1)Ea(e[i[a]],t,r)}p(Ea,"inspectNode");function nC(e,t){t=t||{};var r=new dd(t);r.noRefs||Bd(e,r);var i=e;return r.replacer&&(i=r.replacer.call({"":i},"",i)),Le(r,0,i,!0,!0)?r.dump+` 154`:""}p(nC,"dump$1");function hC(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}p(hC,"renamed");var cC=mc,dC=Ny.load;/*! Bundled license information: 155 156js-yaml/dist/js-yaml.mjs: 157 (*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *) 158*/var di=p((e,t)=>{if(t)return"translate("+-e.width/2+", "+-e.height/2+")";const r=e.x??0,i=e.y??0;return"translate("+-(r+e.width/2)+", "+-(i+e.height/2)+")"},"computeLabelTransform"),jt={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},en={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function xi(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=wt(e),t=wt(t);const[r,i]=[e.x,e.y],[a,s]=[t.x,t.y],l=a-r,o=s-i;return{angle:Math.atan(o/l),deltaX:l,deltaY:o}}p(xi,"calculateDeltaAndAngle");var wt=p(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),uC=p(e=>({x:p(function(t,r,i){let a=0;const s=wt(i[0]).x<wt(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(jt,e.arrowTypeStart)){const{angle:u,deltaX:m}=xi(i[0],i[1]);a=jt[e.arrowTypeStart]*Math.cos(u)*(m>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(jt,e.arrowTypeEnd)){const{angle:u,deltaX:m}=xi(i[i.length-1],i[i.length-2]);a=jt[e.arrowTypeEnd]*Math.cos(u)*(m>=0?1:-1)}const l=Math.abs(wt(t).x-wt(i[i.length-1]).x),o=Math.abs(wt(t).y-wt(i[i.length-1]).y),n=Math.abs(wt(t).x-wt(i[0]).x),h=Math.abs(wt(t).y-wt(i[0]).y),c=jt[e.arrowTypeStart],d=jt[e.arrowTypeEnd],g=1;if(l<d&&l>0&&o<d){let u=d+g-l;u*=s==="right"?-1:1,a-=u}if(n<c&&n>0&&h<c){let u=c+g-n;u*=s==="right"?-1:1,a+=u}return wt(t).x+a},"x"),y:p(function(t,r,i){let a=0;const s=wt(i[0]).y<wt(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(jt,e.arrowTypeStart)){const{angle:u,deltaY:m}=xi(i[0],i[1]);a=jt[e.arrowTypeStart]*Math.abs(Math.sin(u))*(m>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(jt,e.arrowTypeEnd)){const{angle:u,deltaY:m}=xi(i[i.length-1],i[i.length-2]);a=jt[e.arrowTypeEnd]*Math.abs(Math.sin(u))*(m>=0?1:-1)}const l=Math.abs(wt(t).y-wt(i[i.length-1]).y),o=Math.abs(wt(t).x-wt(i[i.length-1]).x),n=Math.abs(wt(t).y-wt(i[0]).y),h=Math.abs(wt(t).x-wt(i[0]).x),c=jt[e.arrowTypeStart],d=jt[e.arrowTypeEnd],g=1;if(l<d&&l>0&&o<d){let u=d+g-l;u*=s==="up"?-1:1,a-=u}if(n<c&&n>0&&h<c){let u=c+g-n;u*=s==="up"?-1:1,a+=u}return wt(t).y+a}
158,"y")}),"getLineFunctionsWithOffset"),vd={},It={};Object.defineProperty(It,"__esModule",{value:!0});It.BLANK_URL=It.relativeFirstCharacters=It.whitespaceEscapeCharsRegex=It.urlSchemeRegex=It.ctrlCharactersRegex=It.htmlCtrlEntityRegex=It.htmlEntitiesRegex=It.invalidProtocolRegex=void 0;It.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;It.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;It.htmlCtrlEntityRegex=/&(newline|tab);/gi;It.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;It.urlSchemeRegex=/^.+(:|:)/gim;It.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;It.relativeFirstCharacters=[".","/"];It.BLANK_URL="about:blank";Object.defineProperty(vd,"__esModule",{value:!0});var gC=vd.sanitizeUrl=yC,Ht=It;function pC(e){return Ht.relativeFirstCharacters.indexOf(e[0])>-1}function fC(e){var t=e.replace(Ht.ctrlCharactersRegex,"");return t.replace(Ht.htmlEntitiesRegex,function(r,i){return String.fromCharCode(i)})}function mC(e){return URL.canParse(e)}function rn(e){try{return decodeURIComponent(e)}catch{return e}}function yC(e){if(!e)return Ht.BLANK_URL;var t,r=rn(e.trim());do r=fC(r).replace(Ht.htmlCtrlEntityRegex,"").replace(Ht.ctrlCharactersRegex,"").replace(Ht.whitespaceEscapeCharsRegex,"").trim(),r=rn(r),t=r.match(Ht.ctrlCharactersRegex)||r.match(Ht.htmlEntitiesRegex)||r.match(Ht.htmlCtrlEntityRegex)||r.match(Ht.whitespaceEscapeCharsRegex);while(t&&t.length>0);var i=r;if(!i)return Ht.BLANK_URL;if(pC(i))return i;var a=i.trimStart(),s=a.match(Ht.urlSchemeRegex);if(!s)return i;var l=s[0].toLowerCase().trim();if(Ht.invalidProtocolRegex.test(l))return Ht.BLANK_URL;var o=a.replace(/\\/g,"/");if(l==="mailto:"||l.includes("://"))return o;if(l==="http:"||l==="https:"){if(!mC(o))return Ht.BLANK_URL;var n=new URL(o);return n.protocol=n.protocol.toLowerCase(),n.hostname=n.hostname.toLowerCase(),n.toString()}return o}var Ld=typeof global=="object"&&global&&global.Object===Object&&global,CC=typeof self=="object"&&self&&self.Object===Object&&self,Ae=Ld||CC||Function("return this")(),$a=Ae.Symbol,_d=Object.prototype,xC=_d.hasOwnProperty,bC=_d.toString,ui=$a?$a.toStringTag:void 0;function kC(e){var t=xC.call(e,ui),r=e[ui];try{e[ui]=void 0;var i=!0}catch{}var a=bC.call(e);return i&&(t?e[ui]=r:delete e[ui]),a}var TC=Object.prototype,SC=TC.toString;function wC(e){return SC.call(e)}var BC="[object Null]",vC="[object Undefined]",an=$a?$a.toStringTag:void 0;function Jr(e){return e==null?e===void 0?vC:BC:an&&an in Object(e)?kC(e):wC(e)}function mr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var LC="[object AsyncFunction]",_C="[object Function]",FC="[object GeneratorFunction]",AC="[object Proxy]";function Xo(e){if(!mr(e))return!1;var t=Jr(e);return t==_C||t==FC||t==LC||t==AC}var _s=Ae["__core-js_shared__"],sn=function(){var e=/[^.]+$/.exec(_s&&_s.keys&&_s.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function MC(e){return!!sn&&sn in e}var EC=Function.prototype,$C=EC.toString;function yr(e){if(e!=null){try{return $C.call(e)}catch{}try{return e+""}catch{}}return""}var OC=/[\\^$.*+?()[\]{}|]/g,IC=/^\[object .+?Constructor\]$/,DC=Function.prototype,PC=Object.prototype,RC=DC.toString,qC=PC.hasOwnProperty,WC=RegExp("^"+RC.call(qC).replace(OC,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function zC(e){if(!mr(e)||MC(e))return!1;var t=Xo(e)?WC:IC;return t.test(yr(e))}function NC(e,t){return e==null?void 0:e[t]}function Cr(e,t){var r=NC(e,t);return zC(r)?r:void 0}var $i=Cr(Object,"create");function HC(){this.__data__=$i?$i(null):{},this.size=0}function jC(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var YC="__lodash_hash_undefined__",UC=Object.prototype,GC=UC.hasOwnProperty;function XC(e){var t=this.__data__;if($i){var r=t[e];return r===YC?void 0:r}return GC.call(t,e)?t[e]:void 0}var VC=Object.prototype,ZC=VC.hasOwnProperty;function KC(e){var t=this.__data__;return $i?t[e]!==void 0:ZC.call(t,e)}var QC="__lodash_hash_undefined__";function JC(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=$i&&t===void 0?QC:t,this}function ur(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}ur.prototype.clear=HC;ur.prototype.delete=jC;ur.prototype.get=XC;ur.prototype.has=KC;ur.prototype.set=JC;function t0(){this.__data__=[],this.size=0}function Qa(e,t){return e===t||e!==e&&t!==t}function Ja(e,t){for(var r=e.length;r--;)if(Qa(e[r][0],t))return r;return-1}var e0=Array.prototype,r0=e0.splice;function i0(e){var t=this.__data__,r=Ja(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():r0.call(t,r,1),--this.size,!0}function a0(e){var t=this.__data__,r=Ja(t,e);return r<0?void 0:t[r][1]}function s0(e){return Ja(this.__data__,e)>-1}function o0(e,t){var r=this.__data__,i=Ja(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function ze(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}ze.prototype.clear=t0;ze.prototype.delete=i0;ze.prototype.get=a0;ze.prototype.has=s0;ze.prototype.set=o0;var Oi=Cr(Ae,"Map");function l0(){this.size=0,this.__data__={hash:new ur,map:new(Oi||ze),string:new ur}}function n0(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ts(e,t){var r=e.__data__;return n0(t)?r[typeof t=="string"?"string":"hash"]:r.map}function h0(e){var t=ts(this,e).delete(e);return this.size-=t?1:0,t}function c0(e){return ts(this,e).get(e)}function d0(e){return ts(this,e).has(e)}function u0(e,t){var r=ts(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function Qe(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Qe.prototype.clear=l0;Qe.prototype.delete=h0;Qe.prototype.get=c0;Qe.prototype.has=d0;Qe.prototype.set=u0;var g0="Expected a function";function zi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(g0);var r=function(){var i=arguments,a=t?t.apply(this,i):i[0],s=r.cache;if(s.has(a))return s.get(a);var l=e.apply(this,i);return r.cache=s.set(a,l)||s,l};return r.cache=new(zi.Cache||Qe),r}zi.Cache=Qe;function p0(){this.__data__=new ze,this.size=0}function f0(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function m0(e){return this.__data__.get(e)}function y0(e){return this.__data__.has(e)}var C0=200;function x0(e,t){var r=this.__data__;if(r instanceof ze){var i=r.__data__;if(!Oi||i.length<C0-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Qe(i)}return r.set(e,t),this.size=r.size,this}function ti(e){var t=this.__data__=new ze(e);this.size=t.size}ti.prototype.clear=p0;ti.prototype.delete=f0;ti.prototype.get=m0;ti.prototype.has=y0;ti.prototype.set=x0;var Oa=function(){try{var e=Cr(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Vo(e,t,r){t=="__proto__"&&Oa?Oa(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ho(e,t,r){(r!==void 0&&!Qa(e[t],r)||r===void 0&&!(t in e))&&Vo(e,t,r)}function b0(e){return function(t,r,i){for(var a=-1,s=Object(t),l=i(t),o=l.length;o--;){var n=l[++a];if(r(s[n],n,s)===!1)break}return t}}var k0=b0(),Fd=typeof exports=="object"&&exports&&!exports.nodeType&&exports,on=Fd&&typeof module=="object"&&module&&!module.nodeType&&module,T0=on&&on.exports===Fd,ln=T0?Ae.Buffer:void 0,nn=ln?ln.allocUnsafe:void 0;function S0(e,t){if(t)return e.slice();var r=e.length,i=nn?nn(r):new e.constructor(r);return e.copy(i),i}var hn=Ae.Uint8Array;function w0(e){var t=new e.constructor(e.byteLength);return new hn(t).set(new hn(e)),t}function B0(e,t){var r=t?w0(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function v0(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}var cn=Object.create,L0=function(){function e(){}return function(t){if(!mr(t))return{};if(cn)return cn(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Ad(e,t){return function(r){return e(t(r))}}var Md=Ad(Object.getPrototypeOf,Object),_0=Object.prototype;function es(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||_0;return e===r}function F0(e){return typeof e.constructor=="function"&&!es(e)?L0(Md(e)):{}}function Ni(e){return e!=null&&typeof e=="object"}var A0="[object Arguments]";function dn(e){return Ni(e)&&Jr(e)==A0}var Ed=Object.prototype,M0=Ed.hasOwnProperty,E0=Ed.propertyIsEnumerable,Ia=dn(function(){return arguments}())?dn:function(e){return Ni(e)&&M0.call(e,"callee")&&!E0.call(e,"callee")},Da=Array.isArray,$0=9007199254740991;function $d(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=$0}function rs(e){return e!=null&&$d(e.length)&&!Xo(e)}function O0(e){return Ni(e)&&rs(e)}function I0(){return!1}var Od=typeof exports=="object"&&exports&&!exports.nodeType&&exports,un=Od&&typeof module=="object"&&module&&!module.nodeType&&module,D0=un&&un.exports===Od,gn=D0?Ae.Buffer:void 0,P0=gn?gn.isBuffer:void 0,Zo=P0||I0,R0="[object Object]",q0=Function.prototype,W0=Object.prototype,Id=q0.toString,z0=W0.hasOwnProperty,N0=Id.call(Object);function H0(e){if(!Ni(e)||Jr(e)!=R0)return!1;var t=Md(e);if(t===null)return!0;
158var r=z0.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Id.call(r)==N0}var j0="[object Arguments]",Y0="[object Array]",U0="[object Boolean]",G0="[object Date]",X0="[object Error]",V0="[object Function]",Z0="[object Map]",K0="[object Number]",Q0="[object Object]",J0="[object RegExp]",tx="[object Set]",ex="[object String]",rx="[object WeakMap]",ix="[object ArrayBuffer]",ax="[object DataView]",sx="[object Float32Array]",ox="[object Float64Array]",lx="[object Int8Array]",nx="[object Int16Array]",hx="[object Int32Array]",cx="[object Uint8Array]",dx="[object Uint8ClampedArray]",ux="[object Uint16Array]",gx="[object Uint32Array]",Tt={};Tt[sx]=Tt[ox]=Tt[lx]=Tt[nx]=Tt[hx]=Tt[cx]=Tt[dx]=Tt[ux]=Tt[gx]=!0;Tt[j0]=Tt[Y0]=Tt[ix]=Tt[U0]=Tt[ax]=Tt[G0]=Tt[X0]=Tt[V0]=Tt[Z0]=Tt[K0]=Tt[Q0]=Tt[J0]=Tt[tx]=Tt[ex]=Tt[rx]=!1;function px(e){return Ni(e)&&$d(e.length)&&!!Tt[Jr(e)]}function fx(e){return function(t){return e(t)}}var Dd=typeof exports=="object"&&exports&&!exports.nodeType&&exports,vi=Dd&&typeof module=="object"&&module&&!module.nodeType&&module,mx=vi&&vi.exports===Dd,Fs=mx&&Ld.process,pn=function(){try{var e=vi&&vi.require&&vi.require("util").types;return e||Fs&&Fs.binding&&Fs.binding("util")}catch{}}(),fn=pn&&pn.isTypedArray,Ko=fn?fx(fn):px;function co(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var yx=Object.prototype,Cx=yx.hasOwnProperty;function xx(e,t,r){var i=e[t];(!(Cx.call(e,t)&&Qa(i,r))||r===void 0&&!(t in e))&&Vo(e,t,r)}function bx(e,t,r,i){var a=!r;r||(r={});for(var s=-1,l=t.length;++s<l;){var o=t[s],n=void 0;n===void 0&&(n=e[o]),a?Vo(r,o,n):xx(r,o,n)}return r}function kx(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var Tx=9007199254740991,Sx=/^(?:0|[1-9]\d*)$/;function Pd(e,t){var r=typeof e;return t=t??Tx,!!t&&(r=="number"||r!="symbol"&&Sx.test(e))&&e>-1&&e%1==0&&e<t}var wx=Object.prototype,Bx=wx.hasOwnProperty;function vx(e,t){var r=Da(e),i=!r&&Ia(e),a=!r&&!i&&Zo(e),s=!r&&!i&&!a&&Ko(e),l=r||i||a||s,o=l?kx(e.length,String):[],n=o.length;for(var h in e)(t||Bx.call(e,h))&&!(l&&(h=="length"||a&&(h=="offset"||h=="parent")||s&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||Pd(h,n)))&&o.push(h);return o}function Lx(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var _x=Object.prototype,Fx=_x.hasOwnProperty;function Ax(e){if(!mr(e))return Lx(e);var t=es(e),r=[];for(var i in e)i=="constructor"&&(t||!Fx.call(e,i))||r.push(i);return r}function Rd(e){return rs(e)?vx(e,!0):Ax(e)}function Mx(e){return bx(e,Rd(e))}function Ex(e,t,r,i,a,s,l){var o=co(e,r),n=co(t,r),h=l.get(n);if(h){ho(e,r,h);return}var c=s?s(o,n,r+"",e,t,l):void 0,d=c===void 0;if(d){var g=Da(n),u=!g&&Zo(n),m=!g&&!u&&Ko(n);c=n,g||u||m?Da(o)?c=o:O0(o)?c=v0(o):u?(d=!1,c=S0(n,!0)):m?(d=!1,c=B0(n,!0)):c=[]:H0(n)||Ia(n)?(c=o,Ia(o)?c=Mx(o):(!mr(o)||Xo(o))&&(c=F0(n))):d=!1}d&&(l.set(n,c),a(c,n,i,s,l),l.delete(n)),ho(e,r,c)}function qd(e,t,r,i,a){e!==t&&k0(t,function(s,l){if(a||(a=new ti),mr(s))Ex(e,t,l,r,qd,i,a);else{var o=i?i(co(e,l),s,l+"",e,t,a):void 0;o===void 0&&(o=s),ho(e,l,o)}},Rd)}function Wd(e){return e}function $x(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var mn=Math.max;function Ox(e,t,r){return t=mn(t===void 0?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=mn(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var o=Array(t+1);++a<t;)o[a]=i[a];return o[t]=r(l),$x(e,this,o)}}function Ix(e){return function(){return e}}var Dx=Oa?function(e,t){return Oa(e,"toString",{configurable:!0,enumerable:!1,value:Ix(t),writable:!0})}:Wd,Px=800,Rx=16,qx=Date.now;function Wx(e){var t=0,r=0;return function(){var i=qx(),a=Rx-(i-r);if(r=i,a>0){if(++t>=Px)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var zx=Wx(Dx);function Nx(e,t){return zx(Ox(e,t,Wd),e+"")}function Hx(e,t,r){if(!mr(r))return!1;var i=typeof t;return(i=="number"?rs(r)&&Pd(t,r.length):i=="string"&&t in r)?Qa(r[t],e):!1}function jx(e){return Nx(function(t,r){var i=-1,a=r.length,s=a>1?r[a-1]:void 0,l=a>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(a--,s):void 0,l&&Hx(r[0],r[1],l)&&(s=a<3?void 0:s,a=1),t=Object(t);++i<a;){var o=r[i];o&&e(t,o,i,s)}return t})}var Yx=jx(function(e,t,r){qd(e,t,r)}),Ux="​",Gx={curveBasis:Ws,curveBasisClosed:xf,curveBasisOpen:Cf,curveBumpX:xh,curveBumpY:Ch,curveBundle:yf,curveCardinalClosed:mf,curveCardinalOpen:ff,curveCardinal:yh,curveCatmullRomClosed:
158pf,curveCatmullRomOpen:gf,curveCatmullRom:mh,curveLinear:ca,curveLinearClosed:uf,curveMonotoneX:fh,curveMonotoneY:ph,curveNatural:gh,curveStep:uh,curveStepAfter:dh,curveStepBefore:ch},Xx=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Vx=p(function(e,t){const r=zd(e,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const l=r.map(o=>o.args);Ta(l),i=$t(i,[...l])}else i=r.args;if(!i)return;let a=Oo(e,t);const s="config";return i[s]!==void 0&&(a==="flowchart-v2"&&(a="flowchart"),i[a]=i[s],delete i[s]),i},"detectInit"),zd=p(function(e,t=null){var r,i;try{const a=new RegExp(`[%]{2}(?![{]${Xx.source})(?=[}][%]{2}).* 159`,"ig");e=e.trim().replace(a,"").replace(/'/gm,'"'),R.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let s;const l=[];for(;(s=wi.exec(e))!==null;)if(s.index===wi.lastIndex&&wi.lastIndex++,s&&!t||t&&((r=s[1])!=null&&r.match(t))||t&&((i=s[2])!=null&&i.match(t))){const o=s[1]?s[1]:s[2],n=s[3]?s[3].trim():s[4]?JSON.parse(s[4].trim()):null;l.push({type:o,args:n})}return l.length===0?{type:e,args:null}:l.length===1?l[0]:l}catch(a){return R.error(`ERROR: ${a.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),Zx=p(function(e){return e.replace(wi,"")},"removeDirectives"),Kx=p(function(e,t){for(const[r,i]of t.entries())if(i.match(e))return r;return-1},"isSubstringInArray");function Qo(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return Gx[r]??t}p(Qo,"interpolateToCurve");function Nd(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?gC(r):r}p(Nd,"formatUrl");var Qx=p((e,...t)=>{const r=e.split("."),i=r.length-1,a=r[i];let s=window;for(let l=0;l<i;l++)if(s=s[r[l]],!s){R.error(`Function name: ${e} not found in window`);return}s[a](...t)},"runFunc");function Jo(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}p(Jo,"distance");function Hd(e){let t,r=0;e.forEach(a=>{r+=Jo(a,t),t=a});const i=r/2;return tl(e,i)}p(Hd,"traverseEdge");function jd(e){return e.length===1?e[0]:Hd(e)}p(jd,"calcLabelPosition");var yn=p((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),tl=p((e,t)=>{let r,i=t;for(const a of e){if(r){const s=Jo(a,r);if(s===0)return r;if(s<i)i-=s;else{const l=i/s;if(l<=0)return r;if(l>=1)return{x:a.x,y:a.y};if(l>0&&l<1)return{x:yn((1-l)*r.x+l*a.x,5),y:yn((1-l)*r.y+l*a.y,5)}}}r=a}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),Jx=p((e,t,r)=>{R.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const a=tl(t,25),s=e?10:5,l=Math.atan2(t[0].y-a.y,t[0].x-a.x),o={x:0,y:0};return o.x=Math.sin(l)*s+(t[0].x+a.x)/2,o.y=-Math.cos(l)*s+(t[0].y+a.y)/2,o},"calcCardinalityPosition");function Yd(e,t,r){const i=structuredClone(r);R.info("our points",i),t!=="start_left"&&t!=="start_right"&&i.reverse();const a=25+e,s=tl(i,a),l=10+e*.5,o=Math.atan2(i[0].y-s.y,i[0].x-s.x),n={x:0,y:0};return t==="start_left"?(n.x=Math.sin(o+Math.PI)*l+(i[0].x+s.x)/2,n.y=-Math.cos(o+Math.PI)*l+(i[0].y+s.y)/2):t==="end_right"?(n.x=Math.sin(o-Math.PI)*l+(i[0].x+s.x)/2-5,n.y=-Math.cos(o-Math.PI)*l+(i[0].y+s.y)/2-5):t==="end_left"?(n.x=Math.sin(o)*l+(i[0].x+s.x)/2-5,n.y=-Math.cos(o)*l+(i[0].y+s.y)/2-5):(n.x=Math.sin(o)*l+(i[0].x+s.x)/2,n.y=-Math.cos(o)*l+(i[0].y+s.y)/2),n}p(Yd,"calcTerminalLabelPosition");function Ud(e){let t="",r="";for(const i of e)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":t=t+i+";");return{style:t,labelStyle:r}}p(Ud,"getStylesFromArray");var Cn=0,tb=p(()=>(Cn++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Cn),"generateId");function Gd(e){let t="";const r="0123456789abcdef",i=r.length;for(let a=0;a<e;a++)t+=r.charAt(Math.floor(Math.random()*i));return t}p(Gd,"makeRandomHex");var eb=p(e=>Gd(e.length),"random"),rb=p(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"),ib=p(function(e,t){const r=t.text.replace(qi.lineBreakRegex," "),[,i]=is(t.fontSize),a=e.append("text");a.attr("x",t.x),a.attr("y",t.y),a.style("text-anchor",t.anchor),a.style("font-family",t.fontFamily),a.style("font-size",i),a.style("font-weight",t.fontWeight),a.attr("fill",t.fill),t.class!==void 0&&a.attr("class",t.class);const s=a.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.attr("fill",t.fill),s.text(r),a},"drawSimpleText"),ab=zi((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),qi.lineBreakRegex.test(e)))return e;
159const i=e.split(" ").filter(Boolean),a=[];let s="";return i.forEach((l,o)=>{const n=qe(`${l} `,r),h=qe(s,r);if(n>t){const{hyphenatedStrings:g,remainingWord:u}=sb(l,t,"-",r);a.push(s,...g),s=u}else h+n>=t?(a.push(s),s=l):s=[s,l].filter(Boolean).join(" ");o+1===i.length&&a.push(s)}),a.filter(l=>l!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),sb=zi((e,t,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const a=[...e],s=[];let l="";return a.forEach((o,n)=>{const h=`${l}${o}`;if(qe(h,i)>=t){const d=n+1,g=a.length===d,u=`${h}${r}`;s.push(g?h:u),l=""}else l=h}),{hyphenatedStrings:s,remainingWord:l}},(e,t,r="-",i)=>`${e}${t}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function Xd(e,t){return el(e,t).height}p(Xd,"calculateTextHeight");function qe(e,t){return el(e,t).width}p(qe,"calculateTextWidth");var el=zi((e,t)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:a=400}=t;if(!e)return{width:0,height:0};const[,s]=is(r),l=["sans-serif",i],o=e.split(qi.lineBreakRegex),n=[],h=ht("body");if(!h.remove)return{width:0,height:0,lineHeight:0};const c=h.append("svg");for(const g of l){let u=0;const m={width:0,height:0,lineHeight:0};for(const f of o){const y=rb();y.text=f||Ux;const C=ib(c,y).style("font-size",s).style("font-weight",a).style("font-family",g),b=(C._groups||C)[0][0].getBBox();if(b.width===0&&b.height===0)throw new Error("svg element not in render tree");m.width=Math.round(Math.max(m.width,b.width)),u=Math.round(b.height),m.height+=u,m.lineHeight=Math.round(Math.max(m.lineHeight,u))}n.push(m)}c.remove();const d=isNaN(n[1].height)||isNaN(n[1].width)||isNaN(n[1].lineHeight)||n[0].height>n[1].height&&n[0].width>n[1].width&&n[0].lineHeight>n[1].lineHeight?0:1;return n[d]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),Ur,ob=(Ur=class{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}},p(Ur,"InitIDGenerator"),Ur),ra,lb=p(function(e){return ra=ra||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ra.innerHTML=e,unescape(ra.textContent)},"entityDecode");function rl(e){return"str"in e}p(rl,"isDetailedError");var nb=p((e,t,r,i)=>{var s;if(!i)return;const a=(s=e.node())==null?void 0:s.getBBox();a&&e.append("text").text(i).attr("text-anchor","middle").attr("x",a.x+a.width/2).attr("y",-r).attr("class",t)},"insertTitle"),is=p(e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function il(e,t){return Yx({},e,t)}p(il,"cleanAndMerge");var pe={assignWithDepth:$t,wrapLabel:ab,calculateTextHeight:Xd,calculateTextWidth:qe,calculateTextDimensions:el,cleanAndMerge:il,detectInit:Vx,detectDirective:zd,isSubstringInArray:Kx,interpolateToCurve:Qo,calcLabelPosition:jd,calcCardinalityPosition:Jx,calcTerminalLabelPosition:Yd,formatUrl:Nd,getStylesFromArray:Ud,generateId:tb,random:eb,runFunc:Qx,entityDecode:lb,insertTitle:nb,isLabelCoordinateInPath:Vd,parseFontSize:is,InitIDGenerator:ob},hb=p(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){const i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?"fl°°"+i+"¶ß":"fl°"+i+"¶ß"}),t},"encodeEntities"),gr=p(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),Fw=p((e,t,{counter:r=0,prefix:i,suffix:a},s)=>s||`${i?`${i}_`:""}${e}_${t}_${r}${a?`_${a}`:""}`,"getEdgeId");function Dt(e){return e??null}p(Dt,"handleUndefinedAttr");function Vd(e,t){const r=Math.round(e.x),i=Math.round(e.y),a=t.replace(/(\d+\.\d+)/g,s=>Math.round(parseFloat(s)).toString());return a.includes(r.toString())||a.includes(i.toString())}p(Vd,"isLabelCoordinateInPath");var al=p(({flowchart:e})=>{var a,s;const t=((a=e==null?void 0:e.subGraphTitleMargin)==null?void 0:a.top)??0,r=((s=e==null?void 0:e.subGraphTitleMargin)==null?void 0:s.bottom)??0,i=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins");async function Zd(e,t){const r=e.getElementsByTagName("img");if(!r||r.length===0)return;const i=t.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...r].map(a=>new Promise(s=>{function l(){if(a.style.display="flex",a.style.flexDirection="column",i){const o=ft().fontSize?ft().fontSize:window.getComputedStyle(document.body).fontSize,n=5,[h=$h.fontSize]=is(o),c=h*n+"px";a.style.minWidth=c,a.style.maxWidth=c}else a.style.width="100%";s(a)}p(l,"setupImage"),setTimeout(()=>{a.complete&&l()}),a.addEventListener("error",l),a.addEventListener("load",l)})))}p(Zd,"configureLabelImages");var cb=p(e=>{const{handDrawnSeed:t}=ft();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),ei=p(e=>{const t=db([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),db=p(e=>{const t=new Map;return e.forEach(r=>{const[i,a]=r.split(":");t.set(i.trim(),a==null?void 0:a.trim())}),t},"styles2Map"),Kd=p(e=>e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens","isLabelStyle"),X=p(e=>{const{stylesArray:t}=ei(e),r=[],i=[],a=[],s=[];return t.forEach(l=>{const o=l[0];Kd(o)?r.push(l.join(":")+" !important"):(i.push(l.join(":")+" !important"),o.includes("stroke")&&a.push(l.join(":")+" !important"),o==="fill"&&s.push(l.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:t,borderStyles:a,backgroundStyles:s}},"styles2String"),G=p((e,t)=>{var n;const{themeVariables:r,handDrawnSeed:i}=ft(),{nodeBorder:a,mainBkg:s}=r,{stylesMap:l}=ei(e);return Object.assign({roughness:.7,fill:l.get("fill")||s,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:l.get("stroke")||a,seed:i,strokeWidth:((n=l.get("stroke-width"))==null?void 0:n.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:ub(l.get("stroke-dasharray"))},t)},"userNodeOverrides"),ub=p(e=>{if(!e)return[0,0];const t=e.trim().split(/\s+/).map(Number);if(t.length===1){const a=isNaN(t[0])?0:t[0];return[a,a]}const r=isNaN(t[0])?0:t[0],i=isNaN(t[1])?0:t[1];return[r,i]},"getStrokeDashArray");const gb=Object.freeze({left:0,top:0,width:16,height:16}),Pa=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Qd=Object.freeze({...gb,...Pa}),pb=Object.freeze({...Qd,body:"",hidden:!1}),fb=Object.freeze({width:null,height:null}),mb=Object.freeze({...fb,...Pa}),yb=(e,t,r,i="")=>{const a=e.split(":");if(e.slice(0,1)==="@"){if(a.length<2||a.length>3)return null;i=a.shift().slice(1)}if(a.length>3||!a.length)return null;if(a.length>1){const o=a.pop(),n=a.pop(),h={provider:a.length>0?a[0]:i,prefix:n,name:o};return As(h)?h:null}const s=a[0],l=s.split("-");if(l.length>1){const o={provider:i,prefix:l.shift(),name:l.join("-")};return As(o)?o:null}if(r&&i===""){const o={provider:i,prefix:"",name:s};return As(o,r)?o:null}return null},As=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function Cb(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const i=((e.rotate||0)+(t.rotate||0))%4;return i&&(r.rotate=i),r}function xn(e,t){const r=Cb(e,t);for(const i in pb)i in Pa?i in e&&!(i in r)&&(r[i]=Pa[i]):i in t?r[i]=t[i]:i in e&&(r[i]=e[i]);return r}function xb(e,t){const r=e.icons,i=e.aliases||Object.create(null),a=Object.create(null);function s(l){if(r[l])return a[l]=[];if(!(l in a)){a[l]=null;const o=i[l]&&i[l].parent,n=o&&s(o);n&&(a[l]=[o].concat(n))}return a[l]}
159return(t||Object.keys(r).concat(Object.keys(i))).forEach(s),a}function bn(e,t,r){const i=e.icons,a=e.aliases||Object.create(null);let s={};function l(o){s=xn(i[o]||a[o],s)}return l(t),r.forEach(l),xn(e,s)}function bb(e,t){if(e.icons[t])return bn(e,t,[]);const r=xb(e,[t])[t];return r?bn(e,t,r):null}const kb=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Tb=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function kn(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const i=e.split(kb);if(i===null||!i.length)return e;const a=[];let s=i.shift(),l=Tb.test(s);for(;;){if(l){const o=parseFloat(s);isNaN(o)?a.push(s):a.push(Math.ceil(o*t*r)/r)}else a.push(s);if(s=i.shift(),s===void 0)return a.join("");l=!l}}function Sb(e,t="defs"){let r="";const i=e.indexOf("<"+t);for(;i>=0;){const a=e.indexOf(">",i),s=e.indexOf("</"+t);if(a===-1||s===-1)break;const l=e.indexOf(">",s);if(l===-1)break;r+=e.slice(a+1,s).trim(),e=e.slice(0,i).trim()+e.slice(l+1)}return{defs:r,content:e}}function wb(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Bb(e,t,r){const i=Sb(e);return wb(i.defs,t+i.content+r)}const vb=e=>e==="unset"||e==="undefined"||e==="none";function Lb(e,t){const r={...Qd,...e},i={...mb,...t},a={left:r.left,top:r.top,width:r.width,height:r.height};let s=r.body;[r,i].forEach(f=>{const y=[],C=f.hFlip,b=f.vFlip;let T=f.rotate;C?b?T+=2:(y.push("translate("+(a.width+a.left).toString()+" "+(0-a.top).toString()+")"),y.push("scale(-1 1)"),a.top=a.left=0):b&&(y.push("translate("+(0-a.left).toString()+" "+(a.height+a.top).toString()+")"),y.push("scale(1 -1)"),a.top=a.left=0);let S;switch(T<0&&(T-=Math.floor(T/4)*4),T=T%4,T){case 1:S=a.height/2+a.top,y.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:y.unshift("rotate(180 "+(a.width/2+a.left).toString()+" "+(a.height/2+a.top).toString()+")");break;case 3:S=a.width/2+a.left,y.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}T%2===1&&(a.left!==a.top&&(S=a.left,a.left=a.top,a.top=S),a.width!==a.height&&(S=a.width,a.width=a.height,a.height=S)),y.length&&(s=Bb(s,'<g transform="'+y.join(" ")+'">',"</g>"))});const l=i.width,o=i.height,n=a.width,h=a.height;let c,d;l===null?(d=o===null?"1em":o==="auto"?h:o,c=kn(d,n/h)):(c=l==="auto"?n:l,d=o===null?kn(c,h/n):o==="auto"?h:o);const g={},u=(f,y)=>{vb(y)||(g[f]=y.toString())};u("width",c),u("height",d);const m=[a.left,a.top,n,h];return g.viewBox=m.join(" "),{attributes:g,viewBox:m,body:s}}const _b=/\sid="(\S+)"/g,Tn=new Map;function Fb(e){e=e.replace(/[0-9]+$/,"")||"a";const t=Tn.get(e)||0;return Tn.set(e,t+1),t?`${e}${t}`:e}function Ab(e){const t=[];let r;for(;r=_b.exec(e);)t.push(r[1]);if(!t.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(a=>{const s=Fb(a),l=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+l+')([")]|\\.[a-z])',"g"),"$1"+s+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}function Mb(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in t)r+=" "+i+'="'+t[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function sl(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var xr=sl();function Jd(e){xr=e}var Li={exec:()=>null};function mt(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(a,s)=>{let l=typeof s=="string"?s:s.source;return l=l.replace(Vt.caret,"$1"),r=r.replace(a,l),i},getRegex:()=>new RegExp(r,t)};return i}var Eb=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Vt={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
vendor: 6,729 bytes, lines 159-160
159:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/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:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},$b=/^(?:[ \t]*(?:\n|$))+/,Ob=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ib=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Hi=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Db=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ol=/(?:[*+-]|\d{1,9}[.)])/,tu=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,eu=mt(tu).replace(/bull/g,ol).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(),Pb=mt(tu).replace(/bull/g,ol).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(),ll=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Rb=/^[^\n]+/,nl=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,qb=mt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",nl).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Wb=mt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ol).getRegex(),as="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",hl=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,zb=mt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\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",hl).replace("tag",as).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ru=mt(ll).replace("hr",Hi).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",as).getRegex(),Nb=mt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ru).getRegex(),cl={blockquote:Nb,code:Ob,def:qb,fences:Ib,heading:Db,hr:Hi,html:zb,lheading:eu,list:Wb,newline:$b,paragraph:ru,table:Li,text:Rb},Sn=mt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Hi).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",as).getRegex(),Hb={...cl,lheading:Pb,table:Sn,paragraph:mt(ll).replace("hr",Hi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Sn).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",as).getRegex()},jb={...cl,html:mt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",hl).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:Li,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:mt(ll).replace("hr",Hi).replace("heading",` *#{1,6} *[^ 160]`).replace("lheading",eu).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Yb=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ub=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,iu=/^( {2,}|\\)\n(?!\s*$)/,Gb=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ss=/[\p{P}\p{S}]/u,dl=/[\s\p{P}\p{S}]/u,au=/[^\s\p{P}\p{S}]/u,Xb=mt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,dl).getRegex(),su=/(?!~)[\p{P}\p{S}]/u,Vb=/(?!~)[\s\p{P}\p{S}]/u,Zb=/(?:[^\s\p{P}\p{S}]|~)/u,Kb=mt(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("prec
160ode-",Eb?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ou=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Qb=mt(ou,"u").replace(/punct/g,ss).getRegex(),Jb=mt(ou,"u").replace(/punct/g,su).getRegex(),lu="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",tk=mt(lu,"gu").replace(/notPunctSpace/g,au).replace(/punctSpace/g,dl).replace(/punct/g,ss).getRegex(),ek=mt(lu,"gu").replace(/notPunctSpace/g,Zb).replace(/punctSpace/g,Vb).replace(/punct/g,su).getRegex(),rk=mt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,au).replace(/punctSpace/g,dl).replace(/punct/g,ss).getRegex(),ik=mt(/\\(punct)/,"gu").replace(/punct/g,ss).getRegex(),ak=mt(/^<(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(),sk=mt(hl).replace("(?:-->|$)","-->").getRegex(),ok=mt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",sk).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ra=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,lk=mt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Ra).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),nu=mt(/^!?\[(label)\]\[(ref)\]/).replace("label",Ra).replace("ref",nl).getRegex(),hu=mt(/^!?\[(ref)\](?:\[\])?/).replace("ref",nl).getRegex(),nk=mt("reflink|nolink(?!\\()","g").replace("reflink",nu).replace("nolink",hu).getRegex(),wn=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ul={_backpedal:Li,anyPunctuation:ik,autolink:ak,blockSkip:Kb,br:iu,code:Ub,del:Li,emStrongLDelim:Qb,emStrongRDelimAst:tk,emStrongRDelimUnd:rk,escape:Yb,link:lk,nolink:hu,punctuation:Xb,reflink:nu,reflinkSearch:nk,tag:ok,text:Gb,url:Li},hk={...ul,link:mt(/^!?\[(label)\]\((.*?)\)/).replace("label",Ra).getRegex(),reflink:mt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ra).getRegex()},uo={...ul,emStrongRDelimAst:ek,emStrongLDelim:Jb,url:mt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",wn).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:mt(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",wn).getRegex()},ck={...uo,br:mt(iu).replace("{2,}","*").getRegex(),text:mt(uo.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ia={normal:cl,gfm:Hb,pedantic:jb},gi={normal:ul,gfm:uo,breaks:ck,pedantic:hk},dk={"&":"&","<":"<",">":">",'"':""","'":"'"},Bn=e=>dk[e];function Se(e,t){if(t){if(Vt.escapeTest.test(e))return e.replace(Vt.escapeReplace,Bn)}else if(Vt.escapeTestNoEncode.test(e))return e.replace(Vt.escapeReplaceNoEncode,Bn);return e}function vn(e){try{e=encodeURI(e).replace(Vt.percentDecode,"%")}catch{return null}return e}function Ln(e,t){var s;let r=e.replace(Vt.findPipe,(l,o,n)=>{let h=!1,c=o;for(;--c>=0&&n[c]==="\\";)h=!h;return h?"|":" |"}),i=r.split(Vt.splitPipe),a=0;if(i[0].trim()||i.shift(),i.length>0&&!((s=i.at(-1))!=null&&s.trim())&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;a<i.length;a++)i[a]=i[a].trim().replace(Vt.slashPipe,"|");return i}function pi(e,t,r){let i=e.length;if(i===0)return"";let a=0;for(;a<i&&e.charAt(i-a-1)===t;)a++;return e.slice(0,i-a)}function uk(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return r>0?-2:-1}function _n(e,t,r,i,a){let s=t.href,l=t.title||null,o=e[1].replace(a.other.outputLinkReplace,"$1");i.state.inLink=!0;let n={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:l,text:o,tokens:i.inl
vendor: 23,403 bytes, lines 160-217
160ineTokens(o)};return i.state.inLink=!1,n}function gk(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let a=i[1];return t.split(` 161`).map(s=>{let l=s.match(r.other.beginningSpace);if(l===null)return s;let[o]=l;return o.length>=a.length?s.slice(a.length):s}).join(` 162`)}var qa=class{constructor(t){xt(this,"options");xt(this,"rules");xt(this,"lexer");this.options=t||xr}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 i=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?i:pi(i,` 163`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],a=gk(i,r[3]||"",this.rules);return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:a}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let i=r[2].trim();if(this.rules.other.endingHash.test(i)){let a=pi(i,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(i=a.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:pi(r[0],` 164`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=pi(r[0],` 165`).split(` 166`),a="",s="",l=[];for(;i.length>0;){let o=!1,n=[],h;for(h=0;h<i.length;h++)if(this.rules.other.blockquoteStart.test(i[h]))n.push(i[h]),o=!0;else if(!o)n.push(i[h]);else break;i=i.slice(h);let c=n.join(` 167`),d=c.replace(this.rules.other.blockquoteSetextReplace,` 168 $1`).replace(this.rules.other.blockquoteSetextReplace2,"");a=a?`${a} 169${c}`:c,s=s?`${s} 170${d}`:d;let g=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,l,!0),this.lexer.state.top=g,i.length===0)break;let u=l.at(-1);if((u==null?void 0:u.type)==="code")break;if((u==null?void 0:u.type)==="blockquote"){let m=u,f=m.raw+` 171`+i.join(` 172`),y=this.blockquote(f);l[l.length-1]=y,a=a.substring(0,a.length-m.raw.length)+y.raw,s=s.substring(0,s.length-m.text.length)+y.text;break}else if((u==null?void 0:u.type)==="list"){let m=u,f=m.raw+` 173`+i.join(` 174`),y=this.list(f);l[l.length-1]=y,a=a.substring(0,a.length-u.raw.length)+y.raw,s=s.substring(0,s.length-m.raw.length)+y.raw,i=f.substring(l.at(-1).raw.length).split(` 175`);continue}}return{type:"blockquote",raw:a,tokens:l,text:s}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),a=i.length>1,s={type:"list",raw:"",ordered:a,start:a?+i.slice(0,-1):"",loose:!1,items:[]};i=a?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=a?i:"[*+-]");let l=this.rules.other.listItemRegex(i),o=!1;for(;t;){let h=!1,c="",d="";if(!(r=l.exec(t))||this.rules.block.hr.test(t))break;c=r[0],t=t.substring(c.length);let g=r[2].split(` 176`,1)[0].replace(this.rules.other.listReplaceTabs,b=>" ".repeat(3*b.length)),u=t.split(` 177`,1)[0],m=!g.trim(),f=0;if(this.options.pedantic?(f=2,d=g.trimStart()):m?f=r[1].length+1:(f=r[2].search(this.rules.other.nonSpaceChar),f=f>4?1:f,d=g.slice(f),f+=r[1].length),m&&this.rules.other.blankLine.test(u)&&(c+=u+` 178`,t=t.substring(u.length+1),h=!0),!h){let b=this.rules.other.nextBulletRegex(f),T=this.rules.other.hrRegex(f),S=this.rules.other.fencesBeginRegex(f),w=this.rules.other.headingBeginRegex(f),v=this.rules.other.htmlBeginRegex(f);for(;t;){let k=t.split(` 179`,1)[0],_;if(u=k,this.options.pedantic?(u=u.replace(this.rules.other.listReplaceNesting," "),_=u):_=u.replace(this.rules.other.tabCharGlobal," "),S.test(u)||w.test(u)||v.test(u)||b.test(u)||T.test(u))break;if(_.search(this.rules.other.nonSpaceChar)>=f||!u.trim())d+=` 180`+_.slice(f);else{if(m||g.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||S.test(g)||w.test(g)||T.test(g))break;d+=` 181`+u}!m&&!u.trim()&&(m=!0),c+=k+` 182`,t=t.substring(k.length+1),g=_.slice(f)}}s.loose||(o?s.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(o=!0));let y=null,C;this.options.gfm&&(y=this.rules.other.listIsTask.exec(d),y&&(C=y[0]!=="[ ] ",d=d.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:c,task:!!y,checked:C,loose:!1,text:d,tokens:[]}),s.raw+=c}let n=s.items.at(-1);if(n)n.raw=n.raw.trimEnd(),n.text=n.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let h=0;h<s.items.length;h++)if(this.lexer.state.top=!1,s.items[h].tokens=this.lexer.blockTokens(s.items[h].text,[]),!s.loose){let c=s.items[h].tokens.filter(g=>g.type==="space"),d=c.length>0&&c.some(g=>this.rules.other.anyLine.test(g.raw));s.loose=d}if(s.loose)for(let h=0;h<s.items.length;h++)s.items[h].loose=!0;return s}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),a=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:a,title:s}}}table(t){var o;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=Ln(r[1]),a=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(o=r[3])!=null&&o.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(` 183`):[],l={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===a.length){for(let n of a)this.rules.other.tableAlignRight.test(n)?l.align.push("right"):this.rules.other.tableAlignCenter.test(n)?l.align.push("center"):this.rules.other.tableAlignLeft.test(n)?l.align.push("left"):l.align.push(null);for(let n=0;n<i.length;n++)l.header.push({text:i[n],tokens:this.lexer.inline(i[n]),header:!0,align:l.align[n]});for(let n of s)l.rows.push(Ln(n,l.header.length).map((h,c)=>({text:h,tokens:this.lexer.inline(h),header:!1,align:l.align[c]})));return l}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let i=r[1].charAt(r[1].length-1)===` 184`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let l=pi(i.slice(0,-1),"\\");if((i.length-l.length)%2===0)return}else{let l=uk(r[2],"()");if(l===-2)return;if(l>-1){let o=(r[0].indexOf("!")===0?5:4)+r[1].length+l;r[2]=r[2].substring(0,l),r[0]=r[0].substring(0,o).trim(),r[3]=""}}let a=r[2],s="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(a);l&&(a=l[1],s=l[3])}else s=r[3]?r[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?a=a.slice(1):a=a.slice(1,-1)),_n(r,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let a=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=r[a.toLowerCase()];if(!s){let l=i[0].charAt(0);return{type:"text",raw:l,text:l}}return _n(i,s,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let a=this.rules.inline.emStrongLDelim.exec(t);if(!(!a||a[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(a[1]||a[2])||!i||this.rules.inline.punctuation.exec(i))){let s=[...a[0]].length-1,l,o,n=s,h=0,c=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,r=r.slice(-1*t.length+s);(a=c.exec(r))!=null;){if(l=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!l)continue;if(o=[...l].length,a[3]||a[4]){n+=o;continue}else if((a[5]||a[6])&&s%3&&!((s+o)%3)){h+=o;continue}if(n-=o,n>0)continue;o=Math.min(o,o+n+h);let d=[...a[0]][0].length,g=t.slice(0,s+a.index+d+o);if(Math.min(s,o)%2){let m=g.slice(1,-1);return{type:"em",raw:g,text:m,tokens:this.lexer.inlineTokens(m)}}let u=g.slice(2,-2);return{type:"strong",raw:g,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),a=this.rules.other.nonSpaceChar.test(i),s=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return a&&s&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let i,a;return r[2]==="@"?(i=r[1],a="mailto:"+i):(i=r[1],a=i),{type:"link",raw:r[0],text:i,href:a,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let r;if(r=this.rules.inline.url.exec(t)){let a,s;if(r[2]==="@")a=r[0],s="mailto:"+a;else{let l;do l=r[0],r[0]=((i=this.rules.inline._backpedal.exec(r[0]))==null?void 0:i[0])??"";while(l!==r[0]);a=r[0],r[1]==="www."?s="http://"+r[0]:s=r[0]}return{type:"link",raw:r[0],text:a,href:s,tokens:[{type:"text",raw:a,text:a}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},ue=class go{constructor(t){xt(this,"tokens");xt(this,"options");xt(this,"state");xt(this,"tokenizer");xt(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||xr,this.options.tokenizer=this.options.tokenizer||new qa,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Vt,block:ia.normal,inline:gi.normal};this.options.pedantic?(r.block=ia.pedantic,r.inline=gi.pedantic):this.options.gfm&&(r.block=ia.gfm,this.options.breaks?r.inline=gi.breaks:r.inline=gi.gfm),this.tokenizer.rules=r}static get rules(){return{block:ia,inline:gi}}static lex(t,r){return new go(r).lex(t)}static lexInline(t,r){return new go(r).inlineTokens(t)}lex(t){t=t.replace(Vt.carriageReturn,` 185`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],i=!1){var a,s,l;for(this.options.pedantic&&(t=t.replace(Vt.tabCharGlobal," ").replace(Vt.spaceLine,""));t;){let o;if((s=(a=this.options.extensions)==null?void 0:a.block)!=null&&s.some(h=>(o=h.call({lexer:this},t,r))?(t=t.substring(o.raw.length),r.push(o),!0):!1))continue;if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length);let h=r.at(-1);o.raw.length===1&&h!==void 0?h.raw+=` 186`:r.push(o);continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length);let h=r.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=(h.raw.endsWith(` 187`)?"":` 188`)+o.raw,h.text+=` 189`+o.text,this.inlineQueue.at(-1).src=h.text):r.push(o);continue}if(o=this.tokenizer.fences(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.heading(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.hr(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.blockquote(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.list(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.html(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.def(t)){t=t.substring(o.raw.length);let h=r.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=(h.raw.endsWith(` 190`)?"":` 191`)+o.raw,h.text+=` 192`+o.raw,this.inlineQueue.at(-1).src=h.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},r.push(o));continue}if(o=this.tokenizer.table(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.lheading(t)){t=t.substring(o.raw.length),r.push(o);continue}let n=t;if((l=this.options.extensions)!=null&&l.startBlock){let h=1/0,c=t.slice(1),d;this.options.extensions.startBlock.forEach(g=>{d=g.call({lexer:this},c),typeof d=="number"&&d>=0&&(h=Math.min(h,d))}),h<1/0&&h>=0&&(n=t.substring(0,h+1))}if(this.state.top&&(o=this.tokenizer.paragraph(n))){let h=r.at(-1);i&&(h==null?void 0:h.type)==="paragraph"?(h.raw+=(h.raw.endsWith(` 193`)?"":` 194`)+o.raw,h.text+=` 195`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):r.push(o),i=n.length!==t.length,t=t.substring(o.raw.length);continue}if(o=this.tokenizer.text(t)){t=t.substring(o.raw.length);let h=r.at(-1);(h==null?void 0:h.type)==="text"?(h.raw+=(h.raw.endsWith(` 196`)?"":` 197`)+o.raw,h.text+=` 198`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):r.push(o);continue}if(t){let h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var n,h,c,d,g;let i=t,a=null;if(this.tokens.links){let u=Object.keys(this.tokens.links);if(u.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)u.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,a.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let s;for(;(a=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)s=a[2]?a[2].length:0,i=i.slice(0,a.index+s)+"["+"a".repeat(a[0].length-s-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((h=(n=this.options.hooks)==null?void 0:n.emStrongMask)==null?void 0:h.call({lexer:this},i))??i;let l=!1,o="";for(;t;){l||(o=""),l=!1;let u;if((d=(c=this.options.extensions)==null?void 0:c.inline)!=null&&d.some(f=>(u=f.call({lexer:this},t,r))?(t=t.substring(u.raw.length),r.push(u),!0):!1))continue;if(u=this.tokenizer.escape(t)){t=t.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.tag(t)){t=t.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.link(t)){t=t.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(u.raw.length);let f=r.at(-1);u.type==="text"&&(f==null?void 0:f.type)==="text"?(f.raw+=u.raw,f.text+=u.text):r.push(u);continue}if(u=this.tokenizer.emStrong(t,i,o)){t=t.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.codespan(t)){t=t.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.br(t)){t=t.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.del(t)){t=t.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.autolink(t)){t=t.substring(u.raw.length),r.push(u);continue}if(!this.state.inLink&&(u=this.tokenizer.url(t))){t=t.substring(u.raw.length),r.push(u);continue}let m=t;if((g=this.options.extensions)!=null&&g.startInline){let f=1/0,y=t.slice(1),C;this.options.extensions.startInline.forEach(b=>{C=b.call({lexer:this},y),typeof C=="number"&&C>=0&&(f=Math.min(f,C))}),f<1/0&&f>=0&&(m=t.substring(0,f+1))}if(u=this.tokenizer.inlineText(m)){t=t.substring(u.raw.length),u.raw.slice(-1)!=="_"&&(o=u.raw.slice(-1)),l=!0;let f=r.at(-1);(f==null?void 0:f.type)==="text"?(f.raw+=u.raw,f.text+=u.text):r.push(u);continue}if(t){let f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return r}},Wa=class{constructor(t){xt(this,"options");xt(this,"parser");this.options=t||xr}space(t){return""}code({text:t,lang:r,escaped:i}){var l;let a=(l=(r||"").match(Vt.notSpaceStart))==null?void 0:l[0],s=t.replace(Vt.endingNewline,"")+` 199`;return a?'<pre><code class="language-'+Se(a)+'">'+(i?s:Se(s,!0))+`</code></pre> 200`:"<pre><code>"+(i?s:Se(s,!0))+`</code></pre> 201`}blockquote({tokens:t}){return`<blockquote> 202${this.parser.parse(t)}</blockquote> 203`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}> 204`}hr(t){return`<hr> 205`}list(t){let r=t.ordered,i=t.start,a="";for(let o=0;o<t.items.length;o++){let n=t.items[o];a+=this.listitem(n)}let s=r?"ol":"ul",l=r&&i!==1?' start="'+i+'"':"";return"<"+s+l+`> 206`+a+"</"+s+`> 207`}listitem(t){var i;let r="";if(t.task){let a=this.checkbox({checked:!!t.checked});t.loose?((i=t.tokens[0])==null?void 0:i.type)==="paragraph"?(t.tokens[0].text=a+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=a+" "+Se(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:a+" ",text:a+" ",escaped:!0}):r+=a+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li> 208`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p> 209`}table(t){let r="",i="";for(let s=0;s<t.header.length;s++)i+=this.tablecell(t.header[s]);r+=this.tablerow({text:i});let a="";for(let s=0;s<t.rows.length;s++){let l=t.rows[s];i="";for(let o=0;o<l.length;o++)i+=this.tablecell(l[o]);a+=this.tablerow({text:i})}return a&&(a=`<tbody>${a}</tbody>`),`<table> 210<thead> 211`+r+`</thead> 212`+a+`</table> 213`}tablerow({text:t}){return`<tr> 214${t}</tr> 215`}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}> 216`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Se(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:i}){let a=this.parser.parseInline(i),s=vn(t);if(s===null)return a;t=s;let l='<a href="'+t+'"';return r&&(l+=' title="'+Se(r)+'"'),l+=">"+a+"</a>",l}image({href:t,title:r,text:i,tokens:a}){a&&(i=this.parser.parseInline(a,this.parser.textRenderer));let s=vn(t);if(s===null)return Se(i);t=s;let l=`<img src="${t}" alt="${i}"`;return r&&(l+=` title="${Se(r)}"`),l+=">",l}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Se(t.text)}},gl=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},ge=class po{constructor(t){xt(this,"options");xt(this,"renderer");xt(this,"textRenderer");this.options=t||xr,this.options.renderer=this.options.renderer||new Wa,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new gl}static parse(t,r){return new po(r).parse(t)}static parseInline(t,r){return new po(r).parseInline(t)}parse(t,r=!0){var a,s;let i="";for(let l=0;l<t.length;l++){let o=t[l];if((s=(a=this.options.extensions)==null?void 0:a.renderers)!=null&&s[o.type]){let h=o,c=this.options.extensions.renderers[h.type].call({parser:this},h);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(h.type)){i+=c||"";continue}}let n=o;switch(n.type){case"space":{i+=this.renderer.space(n);continue}case"hr":{i+=this.renderer.hr(n);continue}case"heading":{i+=this.renderer.heading(n);continue}case"code":{i+=this.renderer.code(n);continue}case"table":{i+=this.renderer.table(n);continue}case"blockquote":{i+=this.renderer.blockquote(n);continue}case"list":{i+=this.renderer.list(n);continue}case"html":{i+=this.renderer.html(n);continue}case"def":{i+=this.renderer.def(n);continue}case"paragraph":{i+=this.renderer.paragraph(n);continue}case"text":{let h=n,c=this.renderer.text(h);for(;l+1<t.length&&t[l+1].type==="text";)h=t[++l],c+=` 217`+this.renderer.text(h);r?i+=this.renderer.paragraph({type:"paragraph",raw:c,text:c,tokens:[{type:"text",raw:c,text:c,escaped:!0}]}):i+=c;continue}default:{let h='Token with "'+n.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return i}parseInline(t,r=this.renderer){var a,s;let i="";for(let l=0;l<t.length;l++){let o=t[l];if((s=(a=this.options.extensions)==null?void 0:a.renderers)!=null&&s[o.type]){let h=this.options.extensions.renderers[o.type].call({parser:this},o);if(h!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){i+=h||"";continue}}let n=o;switch(n.type){case"escape":{i+=r.text(n);break}case"html":{i+=r.html(n);break}case"link":{i+=r.link(n);break}case"image":{i+=r.image(n);break}case"strong":{i+=r.strong(n);break}case"em":{i+=r.em(n);break}case"codespan":{i+=r.codespan(n);break}case"br":{i+=r.br(n);break}case"del":{i+=r.del(n);break}case"text":{i+=r.text(n);break}default:{let h='Token with "'+n.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return i}},ha,bi=(ha=class{constructor(t){xt(this,"options");xt(this,"block");this.options=t||xr}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?ue.lex:ue.lexInline}provideParser(){return this.block?ge.parse:ge.parseInline}},xt(ha,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),xt(ha,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),ha),pk=class{constructor(...t){xt(this,"defaults",sl());xt(this,"options",this.setOptions);xt(this,"parse",this.parseMarkdown(!0));xt(this,"parseInline",this.parseMarkdown(!1));xt(this,"Parser",ge);xt(this,"Renderer",Wa);xt(this,"TextRenderer",gl);xt(this,"Lexer",ue);xt(this,"Tokenizer",qa);xt(this,"Hooks",bi);this.use(...t)}walkTokens(t,r){var a,s;let i=[];for(let l of t)switch(i=i.concat(r.call(this,l)),l.type){case"table":{let o=l;for(let n of o.header)i=i.concat(this.walkTokens(n.tokens,r));for(let n of o.rows)for(let h of n)i=i.concat(this.walkTokens(h.tokens,r));break}case"list":{let o=l;i=i.concat(this.walkTokens(o.items,r));break}default:{let o=l;(s=(a=this.defaults.extensions)==null?void 0:a.childTokens)!=null&&s[o.type]?this.defaults.extensions.childTokens[o.type].forEach(n=>{let h=o[n].flat(1/0);i=i.concat(this.walkTokens(h,r))}):o.tokens&&(i=i.concat(this.walkTokens(o.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>
217{let a={...i};if(a.async=this.defaults.async||a.async||!1,i.extensions&&(i.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let l=r.renderers[s.name];l?r.renderers[s.name]=function(...o){let n=s.renderer.apply(this,o);return n===!1&&(n=l.apply(this,o)),n}:r.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=r[s.level];l?l.unshift(s.tokenizer):r[s.level]=[s.tokenizer],s.start&&(s.level==="block"?r.startBlock?r.startBlock.push(s.start):r.startBlock=[s.start]:s.level==="inline"&&(r.startInline?r.startInline.push(s.start):r.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(r.childTokens[s.name]=s.childTokens)}),a.extensions=r),i.renderer){let s=this.defaults.renderer||new Wa(this.defaults);for(let l in i.renderer){if(!(l in s))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let o=l,n=i.renderer[o],h=s[o];s[o]=(...c)=>{let d=n.apply(s,c);return d===!1&&(d=h.apply(s,c)),d||""}}a.renderer=s}if(i.tokenizer){let s=this.defaults.tokenizer||new qa(this.defaults);for(let l in i.tokenizer){if(!(l in s))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let o=l,n=i.tokenizer[o],h=s[o];s[o]=(...c)=>{let d=n.apply(s,c);return d===!1&&(d=h.apply(s,c)),d}}a.tokenizer=s}if(i.hooks){let s=this.defaults.hooks||new bi;for(let l in i.hooks){if(!(l in s))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let o=l,n=i.hooks[o],h=s[o];bi.passThroughHooks.has(l)?s[o]=c=>{if(this.defaults.async&&bi.passThroughHooksRespectAsync.has(l))return(async()=>{let g=await n.call(s,c);return h.call(s,g)})();let d=n.call(s,c);return h.call(s,d)}:s[o]=(...c)=>{if(this.defaults.async)return(async()=>{let g=await n.apply(s,c);return g===!1&&(g=await h.apply(s,c)),g})();let d=n.apply(s,c);return d===!1&&(d=h.apply(s,c)),d}}a.hooks=s}if(i.walkTokens){let s=this.defaults.walkTokens,l=i.walkTokens;a.walkTokens=function(o){let n=[];return n.push(l.call(this,o)),s&&(n=n.concat(s.call(this,o))),n}}this.defaults={...this.defaults,...a}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return ue.lex(t,r??this.defaults)}parser(t,r){return ge.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let a={...i},s={...this.defaults,...a},l=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&a.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=t),s.async)return(async()=>{let o=s.hooks?await s.hooks.preprocess(r):r,n=await(s.hooks?await s.hooks.provideLexer():t?ue.lex:ue.lexInline)(o,s),h=s.hooks?await s.hooks.processAllTokens(n):n;s.walkTokens&&await Promise.all(this.walkTokens(h,s.walkTokens));let c=await(s.hooks?await s.hooks.provideParser():t?ge.parse:ge.parseInline)(h,s);return s.hooks?await s.hooks.postprocess(c):c})().catch(l);try{s.hooks&&(r=s.hooks.preprocess(r));let o=(s.hooks?s.hooks.provideLexer():t?ue.lex:ue.lexInline)(r,s);s.hooks&&(o=s.hooks.processAllTokens(o)),s.walkTokens&&this.walkTokens(o,s.walkTokens);let n=(s.hooks?s.hooks.provideParser():t?ge.parse:ge.parseInline)(o,s);return s.hooks&&(n=s.hooks.postprocess(n)),n}catch(o){return l(o)}}}onError(t,r){return i=>{if(i.message+=` 218Please report this to https://github.com/markedjs/marked.`,t){let a="<p>An error occurred:</p><pre>"+Se(i.message+"",!0)+"</pre>";return r?Promise.resolve(a):a}if(r)return Promise.reject(i);throw i}}},pr=new pk;function yt(e,t){return pr.parse(e,t)}yt.options=yt.setOptions=function(e){return pr.setOptions(e),yt.defaults=pr.defaults,Jd(yt.defaults),yt};yt.getDefaults=sl;yt.defaults=xr;yt.use=function(...e){return pr.use(...e),yt.defaults=pr.defaults,Jd(yt.defaults),yt};yt.walkTokens=function(e,t){return pr.walkTokens(e,t)};yt.parseInline=pr.parseInline;yt.Parser=ge;yt.parser=ge.parse;yt.Renderer=Wa;yt.TextRenderer=gl;yt.Lexer=ue;yt.lexer=ue.lex;yt.Tokenizer=qa;yt.Hooks=bi;yt.parse=yt;yt.options;yt.setOptions;yt.use;yt.walkTokens;yt.parseInline;ge.parse;ue.lex;function cu(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=Array.from(typeof e=="string"?[e]:e);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var a=i.reduce(function(o,n){var h=n.match(/\n([\t ]+|(?!\s).)/g);return h?o.concat(h.map(function(c){var d,g;return(g=(d=c.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&g!==void 0?g:0})):o},[]);if(a.length){var s=new RegExp(` 219[ ]{`+Math.min.apply(Math,a)+"}","g");i=i.map(function(o){return o.replace(s,` 220`)})}i[0]=i[0].replace(/^\r?\n/,"");var l=i[0];return t.forEach(function(o,n){var h=l.match(/(?:^|\n)( *)$/),c=h?h[1]:"",d=o;
220typeof o=="string"&&o.includes(` 221`)&&(d=String(o).split(` 222`).map(function(g,u){return u===0?g:""+c+g}).join(` 223`)),l+=d+i[n+1]}),l}var fk={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},fo=new Map,du=new Map,mk=p(e=>{for(const t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(R.debug("Registering icon pack:",t.name),"loader"in t)du.set(t.name,t.loader);else if("icons"in t)fo.set(t.name,t.icons);else throw R.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),uu=p(async(e,t)=>{const r=yb(e,!0,t!==void 0);if(!r)throw new Error(`Invalid icon name: ${e}`);const i=r.prefix||t;if(!i)throw new Error(`Icon name must contain a prefix: ${e}`);let a=fo.get(i);if(!a){const l=du.get(i);if(!l)throw new Error(`Icon set not found: ${r.prefix}`);try{a={...await l(),prefix:i},fo.set(i,a)}catch(o){throw R.error(o),new Error(`Failed to load icon set: ${r.prefix}`)}}const s=bb(a,r.name);if(!s)throw new Error(`Icon not found: ${e}`);return s},"getRegisteredIconData"),yk=p(async e=>{try{return await uu(e),!0}catch{return!1}},"isIconAvailable"),ji=p(async(e,t,r)=>{let i;try{i=await uu(e,t==null?void 0:t.fallbackPrefix)}catch(l){R.error(l),i=fk}const a=Lb(i,t),s=Mb(Ab(a.body),{...a.attributes,...r});return ye(s,Bt())},"getIconSVG");function gu(e,{markdownAutoWrap:t}){const i=e.replace(/<br\/>/g,` 224`).replace(/\n{2,}/g,` 225`);return cu(i)}p(gu,"preprocessMarkdown");function pu(e){return e.split(/\\n|\n|<br\s*\/?>/gi).map(t=>{var r;return((r=t.trim().match(/<[^>]+>|[^\s<>]+/g))==null?void 0:r.map(i=>({content:i,type:"normal"})))??[]})}p(pu,"nonMarkdownToLines");function fu(e,t={}){const r=gu(e,t),i=yt.lexer(r),a=[[]];let s=0;function l(o,n="normal"){o.type==="text"?o.text.split(` 226`).forEach((c,d)=>{d!==0&&(s++,a.push([])),c.split(" ").forEach(g=>{g=g.replace(/'/g,"'"),g&&a[s].push({content:g,type:n})})}):o.type==="strong"||o.type==="em"?o.tokens.forEach(h=>{l(h,o.type)}):o.type==="html"&&a[s].push({content:o.text,type:"normal"})}return p(l,"processNode"),i.forEach(o=>{var n;o.type==="paragraph"?(n=o.tokens)==null||n.forEach(h=>{l(h)}):o.type==="html"?a[s].push({content:o.text,type:"normal"}):a[s].push({content:o.raw,type:"normal"})}),a}p(fu,"markdownToLines");function mu(e){return e?`<p>${e.replace(/\\n|\n/g,"<br />")}</p>`:""}p(mu,"nonMarkdownToHTML");function yu(e,{markdownAutoWrap:t}={}){const r=yt.lexer(e);function i(a){var s,l,o;return a.type==="text"?t===!1?a.text.replace(/\n */g,"<br/>").replace(/ /g," "):a.text.replace(/\n */g,"<br/>"):a.type==="strong"?`<strong>${(s=a.tokens)==null?void 0:s.map(i).join("")}</strong>`:a.type==="em"?`<em>${(l=a.tokens)==null?void 0:l.map(i).join("")}</em>`:a.type==="paragraph"?`<p>${(o=a.tokens)==null?void 0:o.map(i).join("")}</p>`:a.type==="space"?"":a.type==="html"?`${a.text}`:a.type==="escape"?a.text:(R.warn(`Unsupported markdown: ${a.type}`),a.raw)}return p(i,"output"),r.map(i).join("")}p(yu,"markdownToHTML");function Cu(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}p(Cu,"splitTextToChars");function xu(e,t){const r=Cu(t.content);return pl(e,[],r,t.type)}p(xu,"splitWordToFitWidth");function pl(e,t,r,i){if(r.length===0)return[{content:t.join(""),type:i},{content:"",type:i}];const[a,...s]=r,l=[...t,a];return e([{content:l.join(""),type:i}])?pl(e,l,s,i):(t.length===0&&a&&(t.push(a),r.shift()),[{content:t.join(""),type:i},{content:r.join(""),type:i}])}p(pl,"splitWordToFitWidthRecursion");function bu(e,t){if(e.some(({content:r})=>r.includes(` 227`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return za(e,t)}p(bu,"splitLineToFitWidth");function za(e,t,r=[],i=[]){if(e.length===0)return i.length>0&&r.push(i),r.length>0?r:[];let a="";e[0].content===" "&&(a=" ",e.shift());const s=e.shift()??{content:" ",type:"normal"},l=[...i];if(a!==""&&l.push({content:a,type:"normal"}),l.push(s),t(l))return za(e,t,r,l);if(i.length>0)r.push(i),e.unshift(s);else if(s.content){const[o,n]=xu(t,s);r.push([o]),n.content&&e.unshift(n)}return za(e,t,r)}p(za,"splitLineToFitWidthRecursion");function mo(e,t){t&&e.attr("style",t)}p(mo,"applyStyle");var Fn=16384;async function ku(e,t,r,i,a=!1,s=Bt()){const l=e.append("foreignObject");l.attr("width",`${Math.min(10*r,Fn)}px`),l.attr("height",`${Math.min(10*r,Fn)}px`);const o=l.append("xhtml:div"),n=_i(t.label)?await Nh(t.label.replace(qi.lineBreakRegex,` 228`),s):ye(t.label,s),h=t.isNode?"nodeLabel":"edgeLabel",c=o.append("span");c.html(n),mo(c,t.labelStyle),c.attr("class",`${h} ${i}`),mo(o,t.labelStyle),o.style("display","table-cell"),o.style("white-space","nowrap"),o.style("line-height","1.5"),r!==Number.POSITIVE_INFINITY&&(o.style("max-width",r+"px"),o.style("text-align","center")),o.attr("xmlns","http://www.w3.org/1999/xhtml"),a&&o.attr("class","labelBkg");let d=o.node().getBoundingClientRect();return d.width===r&&(o.style("display","table"),o.style("white-space","break-spaces"),o.style("width",r+"px"),d=o.node().getBoundingClientRect()),l.node()}p(ku,"addHtmlSpan");function os(e,t,r,i=!1){const a=e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em");return i&&a.attr("text-anchor","middle"),a}p(os,"createTspan");function Tu(e,t,r){const i=e.append("text"),a=os(i,1,t);ls(a,r);const s=a.node().getComputedTextLength();return i.remove(),s}p(Tu,"computeWidthOfText");function Ck(e,t,r){var l;const i=e.append("text"),a=os(i,1,t);ls(a,[{content:r,type:"normal"}]);const s=(l=a.node())==null?void 0:l.getBoundingClientRect();return s&&i.remove(),s}p(Ck,"computeDimensionOfText");function Su(e,t,r,i=!1,a=!1){const l=t.append("g"),o=l.insert("rect").attr("class","background").attr("style","stroke: none"),n=l.append("text").attr("y","-10.1");a&&n.attr("text-anchor","middle");let h=0;for(const c of r){const d=p(u=>Tu(l,1.1,u)<=e,"checkWidth"),g=d(c)?[c]:bu(c,d);for(const u of g){const m=os(n,h,1.1,a);ls(m,u),h++}}if(i){const c=n.node().getBBox(),d=2;return o.attr("x",c.x-d).attr("y",c.y-d).attr("width",c.width+2*d).attr("height",c.height+2*d),l.node()}else return n.node()}p(Su,"createFormattedText");function yo(e){const t=/&(amp|lt|gt);/g;return e.replace(t,(r,i)=>{switch(i){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return r}})}p(yo,"decodeHTMLEntities");function ls(e,t){e.text(""),t.forEach((r,i)=>{const a=e.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");i===0?a.text(yo(r.content)):a.text(" "+yo(r.content))})}p(ls,"updateTextContentAndStyles");async function wu(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(a,s,l)=>(r.push((async()=>{const o=`${s}:${l}`;return await yk(o)?await ji(o,void 0,{class:"label-icon"}):`<i class='${ye(a,t).replace(":"," ")}'></i>`})()),a));const i=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}p(wu,"replaceIconSubstring");var Ne=p(async(e,t="",{style:r="",isTitle:i=!1,classes:a="",useHtmlLabels:s=!0,markdown:l=!0,isNode:o=!0,width:n=200,addSvgBackgroun
228d:h=!1}={},c)=>{if(R.debug("XYZ createText",t,r,i,a,s,o,"addSvgBackground: ",h),s){const d=l?yu(t,c):mu(t),g=await wu(gr(d),c),u=t.replace(/\\\\/g,"\\"),m={isNode:o,label:_i(t)?u:g,labelStyle:r.replace("fill:","color:")};return await ku(e,m,n,a,h,c)}else{const d=gr(t.replace(/<br\s*\/?>/g,"<br/>")),g=l?fu(d.replace("<br>","<br/>"),c):pu(d),u=Su(n,e,g,t?h:!1,!o);if(o){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const m=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");ht(u).attr("style",m)}else{const m=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");ht(u).select("rect").attr("style",m.replace(/background:/g,"fill:"));const f=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");ht(u).select("text").attr("style",f)}return i?ht(u).selectAll("tspan.text-outer-tspan").classed("title-row",!0):ht(u).selectAll("tspan.text-outer-tspan").classed("row",!0),u}},"createText");function Ms(e,t,r){if(e&&e.length){const[i,a]=t,s=Math.PI/180*r,l=Math.cos(s),o=Math.sin(s);for(const n of e){const[h,c]=n;n[0]=(h-i)*l-(c-a)*o+i,n[1]=(h-i)*o+(c-a)*l+a}}}function xk(e,t){return e[0]===t[0]&&e[1]===t[1]}function bk(e,t,r,i=1){const a=r,s=Math.max(t,.1),l=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,o=[0,0];if(a)for(const h of l)Ms(h,o,a);const n=function(h,c,d){const g=[];for(const b of h){const T=[...b];xk(T[0],T[T.length-1])||T.push([T[0][0],T[0][1]]),T.length>2&&g.push(T)}const u=[];c=Math.max(c,.1);const m=[];for(const b of g)for(let T=0;T<b.length-1;T++){const S=b[T],w=b[T+1];if(S[1]!==w[1]){const v=Math.min(S[1],w[1]);m.push({ymin:v,ymax:Math.max(S[1],w[1]),x:v===S[1]?S[0]:w[0],islope:(w[0]-S[0])/(w[1]-S[1])})}}if(m.sort((b,T)=>b.ymin<T.ymin?-1:b.ymin>T.ymin?1:b.x<T.x?-1:b.x>T.x?1:b.ymax===T.ymax?0:(b.ymax-T.ymax)/Math.abs(b.ymax-T.ymax)),!m.length)return u;let f=[],y=m[0].ymin,C=0;for(;f.length||m.length;){if(m.length){let b=-1;for(let T=0;T<m.length&&!(m[T].ymin>y);T++)b=T;m.splice(0,b+1).forEach(T=>{f.push({s:y,edge:T})})}if(f=f.filter(b=>!(b.edge.ymax<=y)),f.sort((b,T)=>b.edge.x===T.edge.x?0:(b.edge.x-T.edge.x)/Math.abs(b.edge.x-T.edge.x)),(d!==1||C%c==0)&&f.length>1)for(let b=0;b<f.length;b+=2){const T=b+1;if(T>=f.length)break;const S=f[b].edge,w=f[T].edge;u.push([[Math.round(S.x),y],[Math.round(w.x),y]])}y+=d,f.forEach(b=>{b.edge.x=b.edge.x+d*b.edge.islope}),C++}return u}(l,s,i);if(a){for(const h of l)Ms(h,o,-a);(function(h,c,d){const g=[];h.forEach(u=>g.push(...u)),Ms(g,c,d)})(n,o,-a)}return n}function Yi(e,t){var r;const i=t.hachureAngle+90;let a=t.hachureGap;a<0&&(a=4*t.strokeWidth),a=Math.round(Math.max(a,.1));let s=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(s=a),bk(e,a,i,s||1)}class fl{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const i=Yi(t,r);return{type:"fillSketch",ops:this.renderLines(i,r)}}renderLines(t,r){const i=[];for(const a of t)i.push(...this.helper.doubleLineOps(a[0][0],a[0][1],a[1][0],a[1][1],r));return i}}function ns(e){const t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}class kk extends fl{fillPolygons(t,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);const a=Yi(t,Object.assign({},r,{hachureGap:i})),s=Math.PI/180*r.hachureAngle,l=[],o=.5*i*Math.cos(s),n=.5*i*Math.sin(s);for(const[h,c]of a)ns([h,c])&&l.push([[h[0]-o,h[1]+n],[...c]],[[h[0]+o,h[1]-n],[...c]]);return{type:"fillSketch",ops:this.renderLines(l,r)}}}class Tk extends fl{fillPolygons(t,r){const i=this._fillPolygons(t,r),a=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),s=this._fillPolygons(t,a);return i.ops=i.ops.concat(s.ops),i}}class Sk{constructor(t){this.helper=t}fillPolygons(t,r){const i=Yi(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(i,r)}dotsOnLines(t,r){const i=[];let a=r.hachureGap;a<0&&(a=4*r.strokeWidth),a=Math.max(a,.1);let s=r.fillWeight;s<0&&(s=r.strokeWidth/2);const l=a/4;
228for(const o of t){const n=ns(o),h=n/a,c=Math.ceil(h)-1,d=n-c*a,g=(o[0][0]+o[1][0])/2-a/4,u=Math.min(o[0][1],o[1][1]);for(let m=0;m<c;m++){const f=u+d+m*a,y=g-l+2*Math.random()*l,C=f-l+2*Math.random()*l,b=this.helper.ellipse(y,C,s,s,r);i.push(...b.ops)}}return{type:"fillSketch",ops:i}}}class wk{constructor(t){this.helper=t}fillPolygons(t,r){const i=Yi(t,r);return{type:"fillSketch",ops:this.dashedLine(i,r)}}dashedLine(t,r){const i=r.dashOffset<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashOffset,a=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,s=[];return t.forEach(l=>{const o=ns(l),n=Math.floor(o/(i+a)),h=(o+a-n*(i+a))/2;let c=l[0],d=l[1];c[0]>d[0]&&(c=l[1],d=l[0]);const g=Math.atan((d[1]-c[1])/(d[0]-c[0]));for(let u=0;u<n;u++){const m=u*(i+a),f=m+i,y=[c[0]+m*Math.cos(g)+h*Math.cos(g),c[1]+m*Math.sin(g)+h*Math.sin(g)],C=[c[0]+f*Math.cos(g)+h*Math.cos(g),c[1]+f*Math.sin(g)+h*Math.sin(g)];s.push(...this.helper.doubleLineOps(y[0],y[1],C[0],C[1],r))}}),s}}class Bk{constructor(t){this.helper=t}fillPolygons(t,r){const i=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,a=r.zigzagOffset<0?i:r.zigzagOffset,s=Yi(t,r=Object.assign({},r,{hachureGap:i+a}));return{type:"fillSketch",ops:this.zigzagLines(s,a,r)}}zigzagLines(t,r,i){const a=[];return t.forEach(s=>{const l=ns(s),o=Math.round(l/(2*r));let n=s[0],h=s[1];n[0]>h[0]&&(n=s[1],h=s[0]);const c=Math.atan((h[1]-n[1])/(h[0]-n[0]));for(let d=0;d<o;d++){const g=2*d*r,u=2*(d+1)*r,m=Math.sqrt(2*Math.pow(r,2)),f=[n[0]+g*Math.cos(c),n[1]+g*Math.sin(c)],y=[n[0]+u*Math.cos(c),n[1]+u*Math.sin(c)],C=[f[0]+m*Math.cos(c+Math.PI/4),f[1]+m*Math.sin(c+Math.PI/4)];a.push(...this.helper.doubleLineOps(f[0],f[1],C[0],C[1],i),...this.helper.doubleLineOps(C[0],C[1],y[0],y[1],i))}}),a}}const te={};class vk{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const Lk=0,Es=1,An=2,aa={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function $s(e,t){return e.type===t}function ml(e){const t=[],r=function(l){const o=new Array;for(;l!=="";)if(l.match(/^([ \t\r\n,]+)/))l=l.substr(RegExp.$1.length);else if(l.match(/^([aAcChHlLmMqQsStTvVzZ])/))o[o.length]={type:Lk,text:RegExp.$1},l=l.substr(RegExp.$1.length);else{if(!l.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];o[o.length]={type:Es,text:`${parseFloat(RegExp.$1)}`},l=l.substr(RegExp.$1.length)}return o[o.length]={type:An,text:""},o}(e);let i="BOD",a=0,s=r[a];for(;!$s(s,An);){let l=0;const o=[];if(i==="BOD"){if(s.text!=="M"&&s.text!=="m")return ml("M0,0"+e);a++,l=aa[s.text],i=s.text}else $s(s,Es)?l=aa[i]:(a++,l=aa[s.text],i=s.text);if(!(a+l<r.length))throw new Error("Path data ended short");for(let n=a;n<a+l;n++){const h=r[n];if(!$s(h,Es))throw new Error("Param not a number: "+i+","+h.text);o[o.length]=+h.text}if(typeof aa[i]!="number")throw new Error("Bad segment: "+i);{const n={key:i,data:o};t.push(n),a+=l,s=r[a],i==="M"&&(i="L"),i==="m"&&(i="l")}}return t}function Bu(e){let t=0,r=0,i=0,a=0;const s=[];for(const{key:l,data:o}of e)switch(l){case"M":s.push({key:"M",data:[...o]}),[t,r]=o,[i,a]=o;break;case"m":t+=o[0],r+=o[1],s.push({key:"M",data:[t,r]}),i=t,a=r;break;case"L":s.push({key:"L",data:[...o]}),[t,r]=o;break;case"l":t+=o[0],r+=o[1],s.push({key:"L",data:[t,r]});break;case"C":s.push({key:"C",data:[...o]}),t=o[4],r=o[5];break;case"c":{const n=o.map((h,c)=>c%2?h+r:h+t);s.push({key:"C",data:n}),t=n[4],r=n[5];break}case"Q":s.push({key:"Q",data:[...o]}),t=o[2],r=o[3];break;case"q":{const n=o.map((h,c)=>c%2?h+r:h+t);s.push({key:"Q",data:n}),t=n[2],r=n[3];break}case"A":s.push({key:"A",data:[...o]}),t=o[5],r=o[6];break;case"a":t+=o[5],r+=o[6],s.push({key:"A",data:[o[0],o[1],o[2],o[3],o[4],t,r]});break;case"H":s.push({key:"H",data:[...o]}),t=o[0];break;case"h":t+=o[0],s.push({key:"H",data:[t]});break;case"V":s.push({key:"V",data:[...o]}),r=o[0];break;case"v":r+=o[0],s.push({key:"V",data:[r]});break;case"S":s.push({key:"S",data:[...o]}),t=o[2],r=o[3];break;case"s":{const n=o.map((h,c)=>c%2?h+r:h+t);s.push({key:"S",data:n}),t=n[2],r=n[3];break}case"T":s.push({key:"T",data:[...o]}),t=o[0],r=o[1];break;case"t":t+=o[0],r+=o[1],s.push({key:"T",data:[t,r]});break;case"Z":case"z":s.push({key:"Z",data:[]}),t=i,r=a}return s}function vu(e){const t=[];let r="",i=0,a=0,s=0,l=0,o=0,n=0;for(const{key:h,data:c}of e){switch(h){case"M":t.push({key:"M",data:[...c]}),[i,a]=c,[s,l]=c;break;case"C":t.push({key:"C",data:[...c]}),i=c[4],a=c[5],o=c[2],n=c[3];break;case"L":t.push({key:"L",data:[...c]}),[i,a]=c;break;case"H":i=c[0],t.push({key:"L",data:[i,a]});break;case"V":a=c[0],t.push({key:"L",data:[i,a]});break;case"S":{let d=0,g=0;r==="C"||r==="S"?(d=i+(i-o),g=a+(a-n)):(d=i,g=a),t.push({key:"C",data:[d,g,...c]}),o=c[0],n=c[1],i=c[2],a=c[3];break}case"T":{const[d,g]=c;let u=0,m=0;r==="Q"||r==="T"?(u=i+(i-o),m=a+(a-n)):(u=i,m=a);const f=i+2*(u-i)/3,y=a+2*(m-a)/3,C=d+2*(u-d)/3,b=g+2*(m-g)/3;t.push({key:"C",data:[f,y,C,b,d,g]}),o=u,n=m,i=d,a=g;break}case"Q":{const[d,g,u,m]=c,f=i+2*(d-i)/3,y=a+2*(g-a)/3,C=u+2*(d-u)/3,b=m+2*(g-m)/3;t.push({key:"C",data:[f,y,C,b,u,m]}),o=d,n=g,i=u,a=m;break}case"A":{const d=Math.abs(c[0]),g=Math.abs(c[1]),u=c[2],m=c[3],f=c[4],y=c[5],C=c[6];d===0||g===0?(t.push({key:"C",data:[i,a,y,C,y,C]}),i=y,a=C):(i!==y||a!==C)&&(Lu(i,a,y,C,d,g,u,m,f).forEach(function(b){t.push({key:"C",data:b})}),i=y,a=C);break}case"Z":t.push({key:"Z",data:[]}),i=s,a=l}r=h}return t}function fi(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function Lu(e,t,r,i,a,s,l,o,n,h){const c=(d=l,Math.PI*d/180);var d;let g=[],u=0,m=0,f=0,y=0;if(h)[u,m,f,y]=h;else{[e,t]=fi(e,t,-c),[r,i]=fi(r,i,-c);const W=(e-r)/2,D=(t-i)/2;let M=W*W/(a*a)+D*D/(s*s);M>1&&(M=Math.sqrt(M),a*=M,s*=M);const F=a*a,I=s*s,A=F*I-F*D*D-I*W*W,z=F*D*D+I*W*W,H=(o===n?-1:1)*Math.sqrt(Math.abs(A/z));f=H*a*D/s+(e+r)/2,y=H*-s*W/a+(t+i)/2,u=Math.asin(parseFloat(((t-y)/s).toFixed(9))),m=Math.asin(parseFloat(((i-y)/s).toFixed(9))),e<f&&(u=Math.PI-u),r<f&&(m=Math.PI-m),u<0&&(u=2*Math.PI+u),m<0&&(m=2*Math.PI+m),n&&u>m&&(u-=2*Math.PI),!n&&m>u&&(m-=2*Math.PI)}let C=m-u;if(Math.abs(C)>120*Math.PI/180){const W=m,D=r,M=i;m=n&&m>u?u+120*Math.PI/180*1:u+120*Math.PI/180*-1,g=Lu(r=f+a*Math.cos(m),i=y+s*Math.sin(m),D,M,a,s,l,0,n,[m,W,f,y])}C=m-u;const b=Math.cos(u),T=Math.sin(u),S=Math.cos(m),w=Math.sin(m),v=Math.tan(C/4),k=4/3*a*v,_=4/3*s*v,q=[e,t],P=[e+k*T,t-_*b],E=[r+k*w,i-_*S],j=[r,i];if(P[0]=2*q[0]-P[0],P[1]=2*q[1]-P[1],h)return[P,E,j].concat(g);{g=[P,E,j].concat(g);const W=[];for(let D=0;D<g.length;
228D+=3){const M=fi(g[D][0],g[D][1],c),F=fi(g[D+1][0],g[D+1][1],c),I=fi(g[D+2][0],g[D+2][1],c);W.push([M[0],M[1],F[0],F[1],I[0],I[1]])}return W}}const _k={randOffset:function(e,t){return st(e,t)},randOffsetWithRange:function(e,t,r){return Na(e,t,r)},ellipse:function(e,t,r,i,a){const s=Fu(r,i,a);return Co(e,t,a,s).opset},doubleLineOps:function(e,t,r,i,a){return Ze(e,t,r,i,a,!0)}};function _u(e,t,r,i,a){return{type:"path",ops:Ze(e,t,r,i,a)}}function ya(e,t,r){const i=(e||[]).length;if(i>2){const a=[];for(let s=0;s<i-1;s++)a.push(...Ze(e[s][0],e[s][1],e[s+1][0],e[s+1][1],r));return t&&a.push(...Ze(e[i-1][0],e[i-1][1],e[0][0],e[0][1],r)),{type:"path",ops:a}}return i===2?_u(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function Fk(e,t,r,i,a){return function(s,l){return ya(s,!0,l)}([[e,t],[e+r,t],[e+r,t+i],[e,t+i]],a)}function Mn(e,t){if(e.length){const r=typeof e[0][0]=="number"?[e]:e,i=sa(r[0],1*(1+.2*t.roughness),t),a=t.disableMultiStroke?[]:sa(r[0],1.5*(1+.22*t.roughness),On(t));for(let s=1;s<r.length;s++){const l=r[s];if(l.length){const o=sa(l,1*(1+.2*t.roughness),t),n=t.disableMultiStroke?[]:sa(l,1.5*(1+.22*t.roughness),On(t));for(const h of o)h.op!=="move"&&i.push(h);for(const h of n)h.op!=="move"&&a.push(h)}}return{type:"path",ops:i.concat(a)}}return{type:"path",ops:[]}}function Fu(e,t,r){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),a=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),s=2*Math.PI/a;let l=Math.abs(e/2),o=Math.abs(t/2);const n=1-r.curveFitting;return l+=st(l*n,r),o+=st(o*n,r),{increment:s,rx:l,ry:o}}function Co(e,t,r,i){const[a,s]=In(i.increment,e,t,i.rx,i.ry,1,i.increment*Na(.1,Na(.4,1,r),r),r);let l=Ha(a,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[o]=In(i.increment,e,t,i.rx,i.ry,1.5,0,r),n=Ha(o,null,r);l=l.concat(n)}return{estimatedPoints:s,opset:{type:"path",ops:l}}}function En(e,t,r,i,a,s,l,o,n){const h=e,c=t;let d=Math.abs(r/2),g=Math.abs(i/2);d+=st(.01*d,n),g+=st(.01*g,n);let u=a,m=s;for(;u<0;)u+=2*Math.PI,m+=2*Math.PI;m-u>2*Math.PI&&(u=0,m=2*Math.PI);const f=2*Math.PI/n.curveStepCount,y=Math.min(f/2,(m-u)/2),C=Dn(y,h,c,d,g,u,m,1,n);if(!n.disableMultiStroke){const b=Dn(y,h,c,d,g,u,m,1.5,n);C.push(...b)}return l&&(o?C.push(...Ze(h,c,h+d*Math.cos(u),c+g*Math.sin(u),n),...Ze(h,c,h+d*Math.cos(m),c+g*Math.sin(m),n)):C.push({op:"lineTo",data:[h,c]},{op:"lineTo",data:[h+d*Math.cos(u),c+g*Math.sin(u)]})),{type:"path",ops:C}}function $n(e,t){const r=vu(Bu(ml(e))),i=[];let a=[0,0],s=[0,0];for(const{key:l,data:o}of r)switch(l){case"M":s=[o[0],o[1]],a=[o[0],o[1]];break;case"L":i.push(...Ze(s[0],s[1],o[0],o[1],t)),s=[o[0],o[1]];break;case"C":{const[n,h,c,d,g,u]=o;i.push(...Ak(n,h,c,d,g,u,s,t)),s=[g,u];break}case"Z":i.push(...Ze(s[0],s[1],a[0],a[1],t)),s=[a[0],a[1]]}return{type:"path",ops:i}}function Os(e,t){const r=[];for(const i of e)if(i.length){const a=t.maxRandomnessOffset||0,s=i.length;if(s>2){r.push({op:"move",data:[i[0][0]+st(a,t),i[0][1]+st(a,t)]});for(let l=1;l<s;l++)r.push({op:"lineTo",data:[i[l][0]+st(a,t),i[l][1]+st(a,t)]})}}return{type:"fillPath",ops:r}}function Br(e,t){return function(r,i){let a=r.fillStyle||"hachure";if(!te[a])switch(a){case"zigzag":te[a]||(te[a]=new kk(i));break;case"cross-hatch":te[a]||(te[a]=new Tk(i));break;case"dots":te[a]||(te[a]=new Sk(i));break;case"dashed":te[a]||(te[a]=new wk(i));break;case"zigzag-line":te[a]||(te[a]=new Bk(i));break;default:a="hachure",te[a]||(te[a]=new fl(i))}return te[a]}(t,_k).fillPolygons(e,t)}function On(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function Au(e){return e.randomizer||(e.randomizer=new vk(e.seed||0)),e.randomizer.next()}function Na(e,t,r,i=1){return r.roughness*i*(Au(r)*(t-e)+e)}function st(e,t,r=1){return Na(-e,e,t,r)}function Ze(e,t,r,i,a,s=!1){const l=s?a.disableMultiStrokeFill:a.disableMultiStroke,o=xo(e,t,r,i,a,!0,!1);if(l)return o;const n=xo(e,t,r,i,a,!0,!0);return o.concat(n)}function xo(e,t,r,i,a,s,l){const o=Math.pow(e-r,2)+Math.pow(t-i,2),n=Math.sqrt(o);let h=1;h=n<200?1:n>500?.4:-.0016668*n+1.233334;let c=a.maxRandomnessOffset||0;c*c*100>o&&(c=n/10);const d=c/2,g=.2+.2*Au(a);let u=a.bowing*a.maxRandomnessOffset*(i-t)/200,m=a.bowing*a.maxRandomnessOffset*(e-r)/200;u=st(u,a,h),m=st(m,a,h);const f=[],y=()=>st(d,a,h),C=()=>st(c,a,h),b=a.preserveVertices;
228return l?f.push({op:"move",data:[e+(b?0:y()),t+(b?0:y())]}):f.push({op:"move",data:[e+(b?0:st(c,a,h)),t+(b?0:st(c,a,h))]}),l?f.push({op:"bcurveTo",data:[u+e+(r-e)*g+y(),m+t+(i-t)*g+y(),u+e+2*(r-e)*g+y(),m+t+2*(i-t)*g+y(),r+(b?0:y()),i+(b?0:y())]}):f.push({op:"bcurveTo",data:[u+e+(r-e)*g+C(),m+t+(i-t)*g+C(),u+e+2*(r-e)*g+C(),m+t+2*(i-t)*g+C(),r+(b?0:C()),i+(b?0:C())]}),f}function sa(e,t,r){if(!e.length)return[];const i=[];i.push([e[0][0]+st(t,r),e[0][1]+st(t,r)]),i.push([e[0][0]+st(t,r),e[0][1]+st(t,r)]);for(let a=1;a<e.length;a++)i.push([e[a][0]+st(t,r),e[a][1]+st(t,r)]),a===e.length-1&&i.push([e[a][0]+st(t,r),e[a][1]+st(t,r)]);return Ha(i,null,r)}function Ha(e,t,r){const i=e.length,a=[];if(i>3){const s=[],l=1-r.curveTightness;a.push({op:"move",data:[e[1][0],e[1][1]]});for(let o=1;o+2<i;o++){const n=e[o];s[0]=[n[0],n[1]],s[1]=[n[0]+(l*e[o+1][0]-l*e[o-1][0])/6,n[1]+(l*e[o+1][1]-l*e[o-1][1])/6],s[2]=[e[o+1][0]+(l*e[o][0]-l*e[o+2][0])/6,e[o+1][1]+(l*e[o][1]-l*e[o+2][1])/6],s[3]=[e[o+1][0],e[o+1][1]],a.push({op:"bcurveTo",data:[s[1][0],s[1][1],s[2][0],s[2][1],s[3][0],s[3][1]]})}}else i===3?(a.push({op:"move",data:[e[1][0],e[1][1]]}),a.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):i===2&&a.push(...xo(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return a}function In(e,t,r,i,a,s,l,o){const n=[],h=[];if(o.roughness===0){e/=4,h.push([t+i*Math.cos(-e),r+a*Math.sin(-e)]);for(let c=0;c<=2*Math.PI;c+=e){const d=[t+i*Math.cos(c),r+a*Math.sin(c)];n.push(d),h.push(d)}h.push([t+i*Math.cos(0),r+a*Math.sin(0)]),h.push([t+i*Math.cos(e),r+a*Math.sin(e)])}else{const c=st(.5,o)-Math.PI/2;h.push([st(s,o)+t+.9*i*Math.cos(c-e),st(s,o)+r+.9*a*Math.sin(c-e)]);const d=2*Math.PI+c-.01;for(let g=c;g<d;g+=e){const u=[st(s,o)+t+i*Math.cos(g),st(s,o)+r+a*Math.sin(g)];n.push(u),h.push(u)}h.push([st(s,o)+t+i*Math.cos(c+2*Math.PI+.5*l),st(s,o)+r+a*Math.sin(c+2*Math.PI+.5*l)]),h.push([st(s,o)+t+.98*i*Math.cos(c+l),st(s,o)+r+.98*a*Math.sin(c+l)]),h.push([st(s,o)+t+.9*i*Math.cos(c+.5*l),st(s,o)+r+.9*a*Math.sin(c+.5*l)])}return[h,n]}function Dn(e,t,r,i,a,s,l,o,n){const h=s+st(.1,n),c=[];c.push([st(o,n)+t+.9*i*Math.cos(h-e),st(o,n)+r+.9*a*Math.sin(h-e)]);for(let d=h;d<=l;d+=e)c.push([st(o,n)+t+i*Math.cos(d),st(o,n)+r+a*Math.sin(d)]);return c.push([t+i*Math.cos(l),r+a*Math.sin(l)]),c.push([t+i*Math.cos(l),r+a*Math.sin(l)]),Ha(c,null,n)}function Ak(e,t,r,i,a,s,l,o){const n=[],h=[o.maxRandomnessOffset||1,(o.maxRandomnessOffset||1)+.3];let c=[0,0];const d=o.disableMultiStroke?1:2,g=o.preserveVertices;for(let u=0;u<d;u++)u===0?n.push({op:"move",data:[l[0],l[1]]}):n.push({op:"move",data:[l[0]+(g?0:st(h[0],o)),l[1]+(g?0:st(h[0],o))]}),c=g?[a,s]:[a+st(h[u],o),s+st(h[u],o)],n.push({op:"bcurveTo",data:[e+st(h[u],o),t+st(h[u],o),r+st(h[u],o),i+st(h[u],o),c[0],c[1]]});return n}function mi(e){return[...e]}function Pn(e,t=0){const r=e.length;if(r<3)throw new Error("A curve must have at least three points.");const i=[];if(r===3)i.push(mi(e[0]),mi(e[1]),mi(e[2]),mi(e[2]));else{const a=[];a.push(e[0],e[0]);for(let o=1;o<e.length;o++)a.push(e[o]),o===e.length-1&&a.push(e[o]);const s=[],l=1-t;i.push(mi(a[0]));for(let o=1;o+2<a.length;o++){const n=a[o];s[0]=[n[0],n[1]],s[1]=[n[0]+(l*a[o+1][0]-l*a[o-1][0])/6,n[1]+(l*a[o+1][1]-l*a[o-1][1])/6],s[2]=[a[o+1][0]+(l*a[o][0]-l*a[o+2][0])/6,a[o+1][1]+(l*a[o][1]-l*a[o+2][1])/6],s[3]=[a[o+1][0],a[o+1][1]],i.push(s[1],s[2],s[3])}}return i}function Ca(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function Mk(e,t,r){const i=Ca(t,r);if(i===0)return Ca(e,t);let a=((e[0]-t[0])*(r[0]-t[0])+(e[1]-t[1])*(r[1]-t[1]))/i;return a=Math.max(0,Math.min(1,a)),Ca(e,ir(t,r,a))}function ir(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function bo(e,t,r,i){const a=i||[];if(function(o,n){const h=o[n+0],c=o[n+1],d=o[n+2],g=o[n+3];let u=3*c[0]-2*h[0]-g[0];u*=u;let m=3*c[1]-2*h[1]-g[1];m*=m;let f=3*d[0]-2*g[0]-h[0];f*=f;let y=3*d[1]-2*g[1]-h[1];return y*=y,u<f&&(u=f),m<y&&(m=y),u+m}(e,t)<r){const o=e[t+0];a.length?(s=a[a.length-1],l=o,Math.sqrt(Ca(s,l))>1&&a.push(o)):a.push(o),a.push(e[t+3])}else{const n=e[t+0],h=e[t+1],c=e[t+2],d=e[t+3],g=ir(n,h,.5),u=ir(h,c,.5),m=ir(c,d,.5),f=ir(g,u,.5),y=ir(u,m,.5),C=ir(f,y,.5);bo([n,g,f,C],0,r,a),bo([C,y,m,d],0,r,a)}var s,l;return a}function Ek(e,t){return ja(e,0,e.length,t)}function ja(e,t,r,i,a){const s=a||[],l=e[t],o=e[r-1];let n=0,h=1;for(let c=t+1;c<r-1;++c){const d=Mk(e[c],l,o);d>n&&(n=d,h=c)}return Math.sqrt(n)>i?(ja(e,t,h+1,i,s),ja(e,h,r,i,s)):(s.length||s.push(l),s.push(o)),s}function Is(e,t=.15,r){const i=[],a=(e.length-1)/3;for(let s=0;s<a;s++)bo(e,3*s,t,i);return r&&r>0?ja(i,0,i.length,r):i}const se="none";class Ya{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,r,i){return{shape:t,sets:r||[],options:i||this.defaultOptions}}line(t,r,i,a,s){const l=this._o(s);return this._d("line",[_u(t,r,i,a,l)],l)}rectangle(t,r,i,a,s){const l=this._o(s),o=[],n=Fk(t,r,i,a,l);if(l.fill){const h=[[t,r],[t+i,r],[t+i,r+a],[t,r+a]];l.fillStyle==="solid"?o.push(Os([h],l)):o.push(Br([h],l))}return l.stroke!==se&&o.push(n),this._d("rectangle",o,l)}ellipse(t,r,i,a,s){const l=this._o(s),o=[],n=Fu(i,a,l),h=Co(t,r,l,n);if(l.fill)if(l.fillStyle==="solid"){const c=Co(t,r,l,n).opset;c.type="fillPath",o.push(c)}else o.push(Br([h.estimatedPoints],l));return l.stroke!==se&&o.push(h.opset),this._d("ellipse",o,l)}circle(t,r,i,a){const s=this.ellipse(t,r,i,i,a);return s.shape="circle",s}linearPath(t,r){const i=this._o(r);return this._d("linearPath",[ya(t,!1,i)],i)}arc(t,r,i,a,s,l,o=!1,n){const h=this._o(n),c=[],d=En(t,r,i,a,s,l,o,!0,h);if(o&&h.fill)if(h.fillStyle==="solid"){const g=Object.assign({},h);g.disableMultiStroke=!0;const u=En(t,r,i,a,s,l,!0,!1,g);u.type="fillPath",c.push(u)}else c.push(function(g,u,m,f,y,C,b){const T=g,S=u;let w=Math.abs(m/2),v=Math.abs(f/2);w+=st(.01*w,b),v+=st(.01*v,b);let k=y,_=C;for(;k<0;)k+=2*Math.PI,_+=2*Math.PI;_-k>2*Math.PI&&(k=0,_=2*Math.PI);const q=(_-k)/b.curveStepCount,P=[];for(let E=k;E<=_;E+=q)P.push([T+w*Math.cos(E),S+v*Math.sin(E)]);return P.push([T+w*Math.cos(_),S+v*Math.sin(_)]),P.push([T,S]),Br([P],b)}(t,r,i,a,s,l,h));
228return h.stroke!==se&&c.push(d),this._d("arc",c,h)}curve(t,r){const i=this._o(r),a=[],s=Mn(t,i);if(i.fill&&i.fill!==se)if(i.fillStyle==="solid"){const l=Mn(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(l.ops)})}else{const l=[],o=t;if(o.length){const n=typeof o[0][0]=="number"?[o]:o;for(const h of n)h.length<3?l.push(...h):h.length===3?l.push(...Is(Pn([h[0],h[0],h[1],h[2]]),10,(1+i.roughness)/2)):l.push(...Is(Pn(h),10,(1+i.roughness)/2))}l.length&&a.push(Br([l],i))}return i.stroke!==se&&a.push(s),this._d("curve",a,i)}polygon(t,r){const i=this._o(r),a=[],s=ya(t,!0,i);return i.fill&&(i.fillStyle==="solid"?a.push(Os([t],i)):a.push(Br([t],i))),i.stroke!==se&&a.push(s),this._d("polygon",a,i)}path(t,r){const i=this._o(r),a=[];if(!t)return this._d("path",a,i);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const s=i.fill&&i.fill!=="transparent"&&i.fill!==se,l=i.stroke!==se,o=!!(i.simplification&&i.simplification<1),n=function(c,d,g){const u=vu(Bu(ml(c))),m=[];let f=[],y=[0,0],C=[];const b=()=>{C.length>=4&&f.push(...Is(C,d)),C=[]},T=()=>{b(),f.length&&(m.push(f),f=[])};for(const{key:w,data:v}of u)switch(w){case"M":T(),y=[v[0],v[1]],f.push(y);break;case"L":b(),f.push([v[0],v[1]]);break;case"C":if(!C.length){const k=f.length?f[f.length-1]:y;C.push([k[0],k[1]])}C.push([v[0],v[1]]),C.push([v[2],v[3]]),C.push([v[4],v[5]]);break;case"Z":b(),f.push([y[0],y[1]])}if(T(),!g)return m;const S=[];for(const w of m){const v=Ek(w,g);v.length&&S.push(v)}return S}(t,1,o?4-4*(i.simplification||1):(1+i.roughness)/2),h=$n(t,i);if(s)if(i.fillStyle==="solid")if(n.length===1){const c=$n(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(c.ops)})}else a.push(Os(n,i));else a.push(Br(n,i));return l&&(o?n.forEach(c=>{a.push(ya(c,!1,i))}):a.push(h)),this._d("path",a,i)}opsToPath(t,r){let i="";for(const a of t.ops){const s=typeof r=="number"&&r>=0?a.data.map(l=>+l.toFixed(r)):a.data;switch(a.op){case"move":i+=`M${s[0]} ${s[1]} `;break;case"bcurveTo":i+=`C${s[0]} ${s[1]}, ${s[2]} ${s[3]}, ${s[4]} ${s[5]} `;break;case"lineTo":i+=`L${s[0]} ${s[1]} `}}return i.trim()}toPaths(t){const r=t.sets||[],i=t.options||this.defaultOptions,a=[];for(const s of r){let l=null;switch(s.type){case"path":l={d:this.opsToPath(s),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:se};break;case"fillPath":l={d:this.opsToPath(s),stroke:se,strokeWidth:0,fill:i.fill||se};break;case"fillSketch":l=this.fillSketch(s,i)}l&&a.push(l)}return a}fillSketch(t,r){let i=r.fillWeight;return i<0&&(i=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||se,strokeWidth:i,fill:se}}_mergedShape(t){return t.filter((r,i)=>i===0||r.op!=="move")}}class $k{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new Ya(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),a=this.ctx,s=t.options.fixedDecimalPlaceDigits;for(const l of r)switch(l.type){case"path":a.save(),a.strokeStyle=i.stroke==="none"?"transparent":i.stroke,a.lineWidth=i.strokeWidth,i.strokeLineDash&&a.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(a.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(a,l,s),a.restore();break;case"fillPath":{a.save(),a.fillStyle=i.fill||"";const o=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(a,l,s,o),a.restore();break}case"fillSketch":this.fillSketch(a,l,i)}}fillSketch(t,r,i){let a=i.fillWeight;a<0&&(a=i.strokeWidth/2),t.save(),i.fillLineDash&&t.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(t.lineDashOffset=i.fillLineDashOffset),t.strokeStyle=i.fill||"",t.lineWidth=a,this._drawToContext(t,r,i.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,i,a="nonzero"){t.beginPath();for(const s of r.ops){const l=typeof i=="number"&&i>=0?s.data.map(o=>+o.toFixed(i)):s.data;switch(s.op){case"move":t.moveTo(l[0],l[1]);break;case"bcurveTo":t.bezierCurveTo(l[0],l[1],l[2],l[3],l[4],l[5]);break;case"lineTo":t.lineTo(l[0],l[1])}}r.type==="fillPath"?t.fill(a):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,i,a,s){const l=this.gen.line(t,r,i,a,s);return this.draw(l),l}rectangle(t,r,i,a,s){const l=this.gen.rectangle(t,r,i,a,s);return this.draw(l),l}ellipse(t,r,i,a,s){const l=this.gen.ellipse(t,r,i,a,s);return this.draw(l),l}circle(t,r,i,a){const s=this.gen.circle(t,r,i,a);return this.draw(s),s}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i),i}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i),i}arc(t,r,i,a,s,l,o=!1,n){const h=this.gen.arc(t,r,i,a,s,l,o,n);return this.draw(h),h}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i),i}path(t,r){const i=this.gen.path(t,r);return this.draw(i),i}}const oa="http://www.w3.org/2000/svg";class Ok{constructor(t,r){this.svg=t,this.gen=new Ya(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),a=this.svg.ownerDocument||window.document,s=a.createElementNS(oa,"g"),l=t.options.fixedDecimalPlaceDigits;for(const o of r){let n=null;switch(o.type){case"path":n=a.createElementNS(oa,"path"),n.setAttribute("d",this.opsToPath(o,l)),n.setAttribute("stroke",i.stroke),n.setAttribute("stroke-width",i.strokeWidth+""),n.setAttribute("fill","none"),i.strokeLineDash&&n.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&n.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":n=a.createElementNS(oa,"path"),n.setAttribute("d",this.opsToPath(o,l)),n.setAttribute("stroke","none"),n.setAttribute("stroke-width","0"),n.setAttribute("fill",i.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||n.setAttribute("fill-rule","evenodd");break;case"fillSketch":n=this.fillSketch(a,o,i)}n&&s.appendChild(n)}return s}fillSketch(t,r,i){let a=i.fillWeight;a<0&&(a=i.strokeWidth/2);const s=t.createElementNS(oa,"path");return s.setAttribute("d",this.opsToPath(r,i.fixedDecimalPlaceDigits)),s.setAttribute("stroke",i.fill||""),s.setAttribute("stroke-width",a+""),s.setAttribute("fill","none"),i.fillLineDash&&s.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&s.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),s}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,i,a,s){const l=this.gen.line(t,r,i,a,s);return this.draw(l)}rectangle(t,r,i,a,s){const l=this.gen.rectangle(t,r,i,a,s);return this.draw(l)}ellipse(t,r,i,a,s){const l=this.gen.ellipse(t,r,i,a,s);return this.draw(l)}circle(t,r,i,a){const s=this.gen.circle(t,r,i,a);return this.draw(s)}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i)}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i)}arc(t,r,i,a,s,l,o=!1,n){const h=this.gen.arc(t,r,i,a,s,l,o,n);return this.draw(h)}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i)}path(t,r){const i=this.gen.path(t,r);return this.draw(i)}}var U={canvas:(e,t)=>new $k(e,t),svg:(e,t)=>new Ok(e,t),generator:e=>new Ya(e),newSeed:()=>Ya.newSeed()},at=p(async(e,t,r)=>{var u,m;let i;const a=t.useHtmlLabels||We((u=ft())==null?void 0:u.htmlLabels);r?i=r:i="node default";const s=e.insert("g").attr("class",i).attr("id",t.domId||t.id),l=s.insert("g").attr("class","label").attr("style",Dt(t.labelStyle));let o;t.label===void 0?o="":o=typeof t.label=="string"?t.label:t.label[0];const n=!!t.icon||!!t.img,h=t.labelType==="markdown",c=await Ne(l,ye(gr(o),ft()),{useHtmlLabels:a,width:t.width||((m=ft().flowchart)==null?void 0:m.wrappingWidth),classes:h?"markdown-node-label":"",style:t.labelStyle,addSvgBackgroun
228d:n,markdown:h},ft());let d=c.getBBox();const g=((t==null?void 0:t.padding)??0)/2;if(a){const f=c.children[0],y=ht(c);await Zd(f,o),d=f.getBoundingClientRect(),y.attr("width",d.width),y.attr("height",d.height)}return a?l.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"):l.attr("transform","translate(0, "+-d.height/2+")"),t.centerLabel&&l.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),l.insert("rect",":first-child"),{shapeSvg:s,bbox:d,halfPadding:g,label:l}},"labelHelper"),Ds=p(async(e,t,r)=>{var n,h;const i=r.useHtmlLabels??Qt(ft()),a=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),s=await Ne(a,ye(gr(t),ft()),{useHtmlLabels:i,width:r.width||((h=(n=ft())==null?void 0:n.flowchart)==null?void 0:h.wrappingWidth),style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let l=s.getBBox();const o=r.padding/2;if(Qt(ft())){const c=s.children[0],d=ht(s);l=c.getBoundingClientRect(),d.attr("width",l.width),d.attr("height",l.height)}return i?a.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"):a.attr("transform","translate(0, "+-l.height/2+")"),r.centerLabel&&a.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),a.insert("rect",":first-child"),{shapeSvg:e,bbox:l,halfPadding:o,label:a}},"insertLabel"),K=p((e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),rt=p((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function gt(e){const t=e.map((r,i)=>`${i===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}p(gt,"createPathFromPoints");function Ke(e,t,r,i,a,s){const l=[],n=r-e,h=i-t,c=n/s,d=2*Math.PI/c,g=t+h/2;for(let u=0;u<=50;u++){const m=u/50,f=e+m*n,y=g+a*Math.sin(d*(f-e));l.push({x:f,y})}return l}p(Ke,"generateFullSineWavePoints");function Ii(e,t,r,i,a,s){const l=[],o=a*Math.PI/180,c=(s*Math.PI/180-o)/(i-1);for(let d=0;d<i;d++){const g=o+d*c,u=e+r*Math.cos(g),m=t+r*Math.sin(g);l.push({x:-u,y:-m})}return l}p(Ii,"generateCirclePoints");function ko(e){const t=Array.from(e.childNodes).filter(n=>n.tagName==="path"),r=document.createElementNS("http://www.w3.org/2000/svg","path"),i=t.map(n=>n.getAttribute("d")).filter(n=>n!==null).join(" ");r.setAttribute("d",i);const a=t.find(n=>n.getAttribute("fill")!=="none"),s=t.find(n=>n.getAttribute("stroke")!=="none"),l=p((n,h)=>(n==null?void 0:n.getAttribute(h))??void 0,"getAttr");if(a){const n={fill:l(a,"fill"),"fill-opacity":l(a,"fill-opacity")??"1"};Object.entries(n).forEach(([h,c])=>{c&&r.setAttribute(h,c)})}if(s){const n={stroke:l(s,"stroke"),"stroke-width":l(s,"stroke-width")??"1","stroke-opacity":l(s,"stroke-opacity")??"1"};Object.entries(n).forEach(([h,c])=>{c&&r.setAttribute(h,c)})}const o=document.createElementNS("http://www.w3.org/2000/svg","g");return o.appendChild(r),o}p(ko,"mergePaths");var Ik=p((e,t)=>{var r=e.x,i=e.y,a=t.x-r,s=t.y-i,l=e.width/2,o=e.height/2,n,h;return Math.abs(s)*l>Math.abs(a)*o?(s<0&&(o=-o),n=s===0?0:o*a/s,h=o):(a<0&&(l=-l),n=l,h=a===0?0:l*s/a),{x:r+n,y:i+h}},"intersectRect"),ri=Ik,Dk=p(async(e,t,r,i=!1,a=!1)=>{let s=t||"";typeof s=="object"&&(s=s[0]);const l=ft(),o=Qt(l);return await Ne(e,s,{style:r,isTitle:i,useHtmlLabels:o,markdown:!1,isNode:a,width:Number.POSITIVE_INFINITY},l)},"createLabel"),Ye=Dk,Je=p((e,t,r,i,a)=>["M",e+a,t,"H",e+r-a,"A",a,a,0,0,1,e+r,t+a,"V",t+i-a,"A",a,a,0,0,1,e+r-a,t+i,"H",e+a,"A",a,a,0,0,1,e,t+i-a,"V",t+a,"A",a,a,0,0,1,e+a,t,"Z"].join(" "),"createRoundedRectPathD"),Mu=p(async(e,t)=>{R.info("Creating subgraph rect for ",t.id,t);const r=ft(),{themeVariables:i,handDrawnSeed:a}=r,{clusterBkg:s,clusterBorder:l}=i,{labelStyles:o,nodeStyles:n,borderStyles:h,backgroundStyles:c}=X(t),d=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),g=Qt(r),u=d.insert("g").attr("class","cluster-label ");let m;t.labelType==="markdown"?m=await Ne(u,t.label,{style:t.labelStyle,useHtmlLabels:g,isNode:!0,width:t.width}):m=await Ye(u,t.label,t.labelStyle||"",!1,!0);let f=m.getBBox();if(Qt(r)){const k=m.children[0],_=ht(m);f=k.getBoundingClientRect(),_.attr("width",f.width),_.attr("height",f.height)}const y=t.width<=f.width+t.padding?f.width+t.padding:t.width;t.width<=f.width+t.padding?t.diff=(y-t.width)/2-t.padding:t.diff=-t.padding;const C=t.height,b=t.x-y/2,T=t.y-C/2;R.trace("Data ",t,JSON.stringify(t));let S;
228if(t.look==="handDrawn"){const k=U.svg(d),_=G(t,{roughness:.7,fill:s,stroke:l,fillWeight:3,seed:a}),q=k.path(Je(b,T,y,C,0),_);S=d.insert(()=>(R.debug("Rough node insert CXC",q),q),":first-child"),S.select("path:nth-child(2)").attr("style",h.join(";")),S.select("path").attr("style",c.join(";").replace("fill","stroke"))}else S=d.insert("rect",":first-child"),S.attr("style",n).attr("rx",t.rx).attr("ry",t.ry).attr("x",b).attr("y",T).attr("width",y).attr("height",C);const{subGraphTitleTopMargin:w}=al(r);if(u.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2+w})`),o){const k=u.select("span");k&&k.attr("style",o)}const v=S.node().getBBox();return t.offsetX=0,t.width=v.width,t.height=v.height,t.offsetY=f.height-t.padding/2,t.intersect=function(k){return ri(t,k)},{cluster:d,labelBBox:f}},"rect"),Pk=p((e,t)=>{const r=e.insert("g").attr("class","note-cluster").attr("id",t.domId),i=r.insert("rect",":first-child"),a=0*t.padding,s=a/2;i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-s).attr("y",t.y-t.height/2-s).attr("width",t.width+a).attr("height",t.height+a).attr("fill","none");const l=i.node().getBBox();return t.width=l.width,t.height=l.height,t.intersect=function(o){return ri(t,o)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),Rk=p(async(e,t)=>{const r=ft(),{themeVariables:i,handDrawnSeed:a}=r,{altBackground:s,compositeBackground:l,compositeTitleBackground:o,nodeBorder:n}=i,h=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-id",t.id).attr("data-look",t.look),c=h.insert("g",":first-child"),d=h.insert("g").attr("class","cluster-label");let g=h.append("rect");const u=await Ye(d,t.label,t.labelStyle,void 0,!0);let m=u.getBBox();if(Qt(r)){const q=u.children[0],P=ht(u);m=q.getBoundingClientRect(),P.attr("width",m.width),P.attr("height",m.height)}const f=0*t.padding,y=f/2,C=(t.width<=m.width+t.padding?m.width+t.padding:t.width)+f;t.width<=m.width+t.padding?t.diff=(C-t.width)/2-t.padding:t.diff=-t.padding;const b=t.height+f,T=t.height+f-m.height-6,S=t.x-C/2,w=t.y-b/2;t.width=C;const v=t.y-t.height/2-y+m.height+2;let k;if(t.look==="handDrawn"){const q=t.cssClasses.includes("statediagram-cluster-alt"),P=U.svg(h),E=t.rx||t.ry?P.path(Je(S,w,C,b,10),{roughness:.7,fill:o,fillStyle:"solid",stroke:n,seed:a}):P.rectangle(S,w,C,b,{seed:a});k=h.insert(()=>E,":first-child");const j=P.rectangle(S,v,C,T,{fill:q?s:l,fillStyle:q?"hachure":"solid",stroke:n,seed:a});k=h.insert(()=>E,":first-child"),g=h.insert(()=>j)}else k=c.insert("rect",":first-child"),k.attr("class","outer").attr("x",S).attr("y",w).attr("width",C).attr("height",b).attr("data-look",t.look),g.attr("class","inner").attr("x",S).attr("y",v).attr("width",C).attr("height",T);d.attr("transform",`translate(${t.x-m.width/2}, ${w+1-(Qt(r)?0:3)})`);const _=k.node().getBBox();return t.height=_.height,t.offsetX=0,t.offsetY=m.height-t.padding/2,t.labelBBox=m,t.intersect=function(q){return ri(t,q)},{cluster:h,labelBBox:m}},"roundedWithTitle"),qk=p(async(e,t)=>{R.info("Creating subgraph rect for ",t.id,t);const r=ft(),{themeVariables:i,handDrawnSeed:a}=r,{clusterBkg:s,clusterBorder:l}=i,{labelStyles:o,nodeStyles:n,borderStyles:h,backgroundStyles:c}=X(t),d=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),g=Qt(r),u=d.insert("g").attr("class","cluster-label "),m=await Ne(u,t.label,{style:t.labelStyle,useHtmlLabels:g,isNode:!0,width:t.width});let f=m.getBBox();if(Qt(r)){const k=m.children[0],_=ht(m);f=k.getBoundingClientRect(),_.attr("width",f.width),_.attr("height",f.height)}const y=t.width<=f.width+t.padding?f.width+t.padding:t.width;t.width<=f.width+t.padding?t.diff=(y-t.width)/2-t.padding:t.diff=-t.padding;const C=t.height,b=t.x-y/2,T=t.y-C/2;R.trace("Data ",t,JSON.stringify(t));let S;if(t.look==="handDrawn"){const k=U.svg(d),_=G(t,{roughness:.7,fill:s,stroke:l,fillWeight:4,seed:a}),q=k.path(Je(b,T,y,C,t.rx),_);S=d.insert(()=>(R.debug("Rough node insert CXC",q),q),":first-child"),S.select("path:nth-child(2)").attr("style",h.join(";")),S.select("path").attr("style",c.join(";").replace("fill","stroke"))}else S=d.insert("rect",":first-child"),S.attr("style",n).attr("rx",t.rx).attr("ry",t.ry).attr("x",b).attr("y",T).attr("width",y).attr("height",C);const{subGraphTitleTopMargin:w}=al(r);if(u.attr("transform",`translate(${t.x-f.width/2}, ${t.y-t.height/2+w})`),o){const k=u.select("span");k&&k.attr("style",o)}const v=S.node().getBBox();return t.offsetX=0,t.width=v.width,t.height=v.height,t.offsetY=f.height-t.padding/2,t.intersect=function(k){return ri(t,k)},{cluster:d,labelBBox:f}},"kanbanSection"),Wk=p((e,t)=>
228{const r=ft(),{themeVariables:i,handDrawnSeed:a}=r,{nodeBorder:s}=i,l=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-look",t.look),o=l.insert("g",":first-child"),n=0*t.padding,h=t.width+n;t.diff=-t.padding;const c=t.height+n,d=t.x-h/2,g=t.y-c/2;t.width=h;let u;if(t.look==="handDrawn"){const y=U.svg(l).rectangle(d,g,h,c,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:s,seed:a});u=l.insert(()=>y,":first-child")}else{u=o.insert("rect",":first-child");let f="outer";t.look,f="divider",u.attr("class",f).attr("x",d).attr("y",g).attr("width",h).attr("height",c).attr("data-look",t.look)}const m=u.node().getBBox();return t.height=m.height,t.offsetX=0,t.offsetY=0,t.intersect=function(f){return ri(t,f)},{cluster:l,labelBBox:{}}},"divider"),zk=Mu,Nk={rect:Mu,squareRect:zk,roundedWithTitle:Rk,noteGroup:Pk,divider:Wk,kanbanSection:qk},Eu=new Map,Hk=p(async(e,t)=>{const r=t.shape||"rect",i=await Nk[r](e,t);return Eu.set(t.id,i),i},"insertCluster"),Iw=p(()=>{Eu=new Map},"clear");function $u(e,t){return e.intersect(t)}p($u,"intersectNode");var jk=$u;function Ou(e,t,r,i){var a=e.x,s=e.y,l=a-i.x,o=s-i.y,n=Math.sqrt(t*t*o*o+r*r*l*l),h=Math.abs(t*r*l/n);i.x<a&&(h=-h);var c=Math.abs(t*r*o/n);return i.y<s&&(c=-c),{x:a+h,y:s+c}}p(Ou,"intersectEllipse");var Iu=Ou;function Du(e,t,r){return Iu(e,t,t,r)}p(Du,"intersectCircle");var Yk=Du;
228function Pu(e,t,r,i){{const a=t.y-e.y,s=e.x-t.x,l=t.x*e.y-e.x*t.y,o=a*r.x+s*r.y+l,n=a*i.x+s*i.y+l,h=1e-6;if(o!==0&&n!==0&&To(o,n))return;const c=i.y-r.y,d=r.x-i.x,g=i.x*r.y-r.x*i.y,u=c*e.x+d*e.y+g,m=c*t.x+d*t.y+g;if(Math.abs(u)<h&&Math.abs(m)<h&&To(u,m))return;const f=a*d-c*s;if(f===0)return;const y=Math.abs(f/2);let C=s*g-d*l;const b=C<0?(C-y)/f:(C+y)/f;C=c*l-a*g;const T=C<0?(C-y)/f:(C+y)/f;return{x:b,y:T}}}p(Pu,"intersectLine");function To(e,t){return e*t>0}p(To,"sameSign");var Uk=Pu;function Ru(e,t,r){let i=e.x,a=e.y,s=[],l=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(c){l=Math.min(l,c.x),o=Math.min(o,c.y)}):(l=Math.min(l,t.x),o=Math.min(o,t.y));let n=i-e.width/2-l,h=a-e.height/2-o;for(let c=0;c<t.length;c++){let d=t[c],g=t[c<t.length-1?c+1:0],u=Uk(e,r,{x:n+d.x,y:h+d.y},{x:n+g.x,y:h+g.y});u&&s.push(u)}return s.length?(s.length>1&&s.sort(function(c,d){let g=c.x-r.x,u=c.y-r.y,m=Math.sqrt(g*g+u*u),f=d.x-r.x,y=d.y-r.y,C=Math.sqrt(f*f+y*y);return m<C?-1:m===C?0:1}),s[0]):e}p(Ru,"intersectPolygon");var Gk=Ru,Y={node:jk,circle:Yk,ellipse:Iu,polygon:Gk,rect:ri};function qu(e,t){const{labelStyles:r}=X(t);t.labelStyle=r;const i=rt(t);let a=i;i||(a="anchor");const s=e.insert("g").attr("class",a).attr("id",t.domId||t.id),l=1,{cssStyles:o}=t,n=U.svg(s),h=G(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(h.roughness=0);const c=n.circle(0,0,l*2,h),d=s.insert(()=>c,":first-child");return d.attr("class","anchor").attr("style",Dt(o)),K(t,d),t.intersect=function(g){return R.info("Circle intersect",t,l,g),Y.circle(t,l,g)},s}p(qu,"anchor");function So(e,t,r,i,a,s,l){const n=(e+r)/2,h=(t+i)/2,c=Math.atan2(i-t,r-e),d=(r-e)/2,g=(i-t)/2,u=d/a,m=g/s,f=Math.sqrt(u**2+m**2);if(f>1)throw new Error("The given radii are too small to create an arc between the points.");const y=Math.sqrt(1-f**2),C=n+y*s*Math.sin(c)*(l?-1:1),b=h-y*a*Math.cos(c)*(l?-1:1),T=
228Math.atan2((t-b)/s,(e-C)/a);let w=Math.atan2((i-b)/s,(r-C)/a)-T;l&&w<0&&(w+=2*Math.PI),!l&&w>0&&(w-=2*Math.PI);const v=[];for(let k=0;k<20;k++){const _=k/19,q=T+_*w,P=C+a*Math.cos(q),E=b+s*Math.sin(q);v.push({x:P,y:E})}return v}p(So,"generateArcPoints");function Wu(e,t,r){const[i,a]=[t,r].sort((s,l)=>l-s);return a*(1-Math.sqrt(1-(e/i/2)**2))}p(Wu,"calculateArcSagitta");async function zu(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const a=t.padding??0,s=t.look==="neo"?16:a,l=t.look==="neo"?12:a,o=p(q=>q+l,"calcTotalHeight"),n=p(q=>{const P=q/2;return[P/(2.5+q/50),P]},"calcEllipseRadius"),{shapeSvg:h,bbox:c}=await at(e,t,rt(t)),d=o(t!=null&&t.height?t==null?void 0:t.height:c.height),[g,u]=n(d),m=Wu(d,g,u),y=(t!=null&&t.width?t==null?void 0:t.width:c.width)+s*2+m-m,C=d,{cssStyles:b}=t,T=[{x:y/2,y:-C/2},{x:-y/2,y:-C/2},...So(-y/2,-C/2,-y/2,C/2,g,u,!1),{x:y/2,y:C/2},...So(y/2,C/2,y/2,-C/2,g,u,!0)],S=U.svg(h),w=G(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const v=gt(T),k=S.path(v,w),_=h.insert(()=>k,":first-child");return _.attr("class","basic label-container outer-path"),b&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",b),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),_.attr("transform",`translate(${g/2}, 0)`),K(t,_),t.intersect=function(q){return Y.polygon(t,T,q)},h}p(zu,"bowTieRect");function He(e,t,r,i){return e.insert("polygon",":first-child").attr("points",i.map(function(a){return a.x+","+a.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}p(He,"insertPolygonShape");var la=12;async function Nu(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const a=t.padding??0,s=t.look==="neo"?28:a,l=t.look==="neo"?24:a,{shapeSvg:o,bbox:n}=await at(e,t,rt(t)),h=((t==null?void 0:t.width)??n.width)+(t.look==="neo"?s*2:s+la),c=((t==null?void 0:t.height)??n.height)+(t.look==="neo"?l*2:l),d=0,g=h,u=-c,m=0,f=[{x:d+la,y:u},{x:g,y:u},{x:g,y:m},{x:d,y:m},{x:d,y:u+la},{x:d+la,y:u}];let y;const{cssStyles:C}=t;if(t.look==="handDrawn"){const b=U.svg(o),T=G(t,{}),S=gt(f),w=b.path(S,T);y=o.insert(()=>w,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),C&&y.attr("style",C)}else y=He(o,h,c,f);return i&&y.attr("style",i),K(t,y),t.intersect=function(b){return Y.polygon(t,f,b)},o}p(Nu,"card");function Hu(e,t){const{nodeStyles:r}=X(t);t.label="";const i=e.insert("g").attr("class",rt(t)).attr("id",t.domId??t.id),{cssStyles:a}=t,s=Math.max(28,t.width??0),l=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}],o=U.svg(i),n=G(t,{});t.look!=="handDrawn"&&(n.roughness=0,n.fillStyle="solid");const h=gt(l),c=o.path(h,n),d=i.insert(()=>c,":first-child");return a&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",a),r&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(g){return Y.polygon(t,l,g)},i}p(Hu,"choice");async function yl(e,t,r){const{labelStyles:i,nodeStyles:a}=X(t);t.labelStyle=i;const{shapeSvg:s,bbox:l,halfPadding:o}=await at(e,t,rt(t)),n=16,h=(r==null?void 0:r.padding)??o,c=t.look==="neo"?l.width/2+n*2:l.width/2+h;let d;const{cssStyles:g}=t;if(t.look==="handDrawn"){const u=U.svg(s),m=G(t,{}),f=u.circle(0,0,c*2,m);d=s.insert(()=>f,":first-child"),d.attr("class","basic label-container").attr("style",Dt(g))}else d=s.insert("circle",":first-child").attr("class","basic label-container").attr("style",a).attr("r",c).attr("cx",0).attr("cy",0);return K(t,d),t.calcIntersect=function(u,m){const f=u.width/2;return Y.circle(u,f,m)},t.intersect=function(u){return R.info("Circle intersect",t,c,u),Y.circle(t,c,u)},s}p(yl,"circle");function ju(e){const t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=e*2,a={x:i/2*t,y:i/2*r},s={x:-(i/2)*t,y:i/2*r},l={x:-(i/2)*t,y:-(i/2)*r},o={x:i/2*t,y:-(i/2)*r};return`M ${s.x},${s.y} L ${o.x},${o.y} 229 M ${a.x},${a.y} L ${l.x},${l.y}`}p(ju,"createLine");function Yu(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r,t.label="";const a=e.insert("g").attr("class",rt(t)).attr("id",t.domId??t.id),s=Math.max(30,(t==null?void 0:t.width)??0),{cssStyles:l}=t,o=U.svg(a),n=G(t,{});t.look!=="handDrawn"&&(n.roughness=0,n.fillStyle="solid");const h=o.circle(0,0,s*2,n),c=ju(s),d=o.path(c,n),g=a.insert(()=>h,":first-child");return g.insert(()=>d),g.attr("class","outer-path"),l&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",l),i&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",i),K(t,g),t.intersect=function(u){return R.info("crossedCircle intersect",t,{radius:s,point:u}),Y.circle(t,s,u)},a}p(Yu,"crossedCircle");function Ie(e,t,r,i=100,a=0,s=180){const l=[],o=a*Math.PI/180,c=(s*Math.PI/180-o)/(i-1);for(let d=0;d<i;d++){const g=o+d*c,u=e+r*Math.cos(g),m=t+r*Math.sin(g);l.push({x:-u,y:-m})}return l}p(Ie,"generateCirclePoints");async function Uu(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const{shapeSvg:a,bbox:s,label:l}=await at(e,t,rt(t)),o=t.look==="neo"?18:t.padding??0,n=t.look==="neo"?12:t.padding??0,h=s.width+o,c=s.height+n,d=Math.max(5,c*.1),{cssStyles:g}=t,u=[...Ie(h/2,-c/2,d,30,-90,0),{x:-h/2-d,y:d},...Ie(h/2+d*2,-d,d,20,-180,-270),...Ie(h/2+d*2,d,d,20,-90,-180),{x:-h/2-d,y:-c/2},...Ie(h/2,c/2,d,20,0,90)],m=[{x:h/2,y:-c/2-d},{x:-h/2,y:-c/2-d}
vendor: 3,121 bytes, line 229
229,...Ie(h/2,-c/2,d,20,-90,0),{x:-h/2-d,y:-d},...Ie(h/2+h*.1,-d,d,20,-180,-270),...Ie(h/2+h*.1,d,d,20,-90,-180),{x:-h/2-d,y:c/2},...Ie(h/2,c/2,d,20,0,90),{x:-h/2,y:c/2+d},{x:h/2,y:c/2+d}],f=U.svg(a),y=G(t,{fill:"none"});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const b=gt(u).replace("Z",""),T=f.path(b,y),S=gt(m),w=f.path(S,{...y}),v=a.insert("g",":first-child");return v.insert(()=>w,":first-child").attr("stroke-opacity",0),v.insert(()=>T,":first-child"),v.attr("class","text"),g&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",i),v.attr("transform",`translate(${d}, 0)`),l.attr("transform",`translate(${-h/2+d-(s.x-(s.left??0))},${-c/2+(t.padding??0)/2-(s.y-(s.top??0))})`),K(t,v),t.intersect=function(k){return Y.polygon(t,m,k)},a}p(Uu,"curlyBraceLeft");function De(e,t,r,i=100,a=0,s=180){const l=[],o=a*Math.PI/180,c=(s*Math.PI/180-o)/(i-1);for(let d=0;d<i;d++){const g=o+d*c,u=e+r*Math.cos(g),m=t+r*Math.sin(g);l.push({x:u,y:m})}return l}p(De,"generateCirclePoints");async function Gu(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const{shapeSvg:a,bbox:s,label:l}=await at(e,t,rt(t)),o=t.look==="neo"?18:t.padding??0,n=t.look==="neo"?12:t.padding??0,h=s.width+(t.look==="neo"?o*2:o),c=s.height+(t.look==="neo"?n*2:n),d=Math.max(5,c*.1),{cssStyles:g}=t,u=[...De(h/2,-c/2,d,20,-90,0),{x:h/2+d,y:-d},...De(h/2+d*2,-d,d,20,-180,-270),...De(h/2+d*2,d,d,20,-90,-180),{x:h/2+d,y:c/2},...De(h/2,c/2,d,20,0,90)],m=[{x:-h/2,y:-c/2-d},{x:h/2,y:-c/2-d},...De(h/2,-c/2,d,20,-90,0),{x:h/2+d,y:-d},...De(h/2+d*2,-d,d,20,-180,-270),...De(h/2+d*2,d,d,20,-90,-180),{x:h/2+d,y:c/2},...De(h/2,c/2,d,20,0,90),{x:h/2,y:c/2+d},{x:-h/2,y:c/2+d}],f=U.svg(a),y=G(t,{fill:"none"});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const b=gt(u).replace("Z",""),T=f.path(b,y),S=gt(m),w=f.path(S,{...y}),v=a.insert("g",":first-child");return v.insert(()=>w,":first-child").attr("stroke-opacity",0),v.insert(()=>T,":first-child"),v.attr("class","text"),g&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",i),v.attr("transform",`translate(${-d}, 0)`),l.attr("transform",`translate(${-h/2+(t.padding??0)/2-(s.x-(s.left??0))},${-c/2+(t.padding??0)/2-(s.y-(s.top??0))})`),K(t,v),t.intersect=function(k){return Y.polygon(t,m,k)},a}p(Gu,"curlyBraceRight");function Rt(e,t,r,i=100,a=0,s=180){const l=[],o=a*Math.PI/180,c=(s*Math.PI/180-o)/(i-1);for(let d=0;d<i;d++){const g=o+d*c,u=e+r*Math.cos(g),m=t+r*Math.sin(g);l.push({x:-u,y:-m})}return l}p(Rt,"generateCirclePoints");async function Xu(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const{shapeSvg:a,bbox:s,label:l}=await at(e,t,rt(t)),o=t.look==="neo"?18:t.padding??0,n=t.look==="neo"?12:t.padding??0,h=s.width+(t.look==="neo"?o*2:o),c=s.height+(t.look==="neo"?n*2:n),d=Math.max(5,c*.1),{cssStyles:g}=t,u=[...Rt(h/2,-c/2,d,30,-90,0),{x:-h/2-d,y:d},...Rt(h/2+d*2,-d,d,20,-180,-270),...Rt(h/2+d*2,d,d,20,-90,-180),{x:-h/2-d,y:-c/2},...Rt(h/2,c/2,d,20,0,90)],m=[...Rt(-h/2+d+d/2,-c/2,d,20,-90,-180),{x:h/2-d/2,y:d}
229,...Rt(-h/2-d/2,-d,d,20,0,90),...Rt(-h/2-d/2,d,d,20,-90,0),{x:h/2-d/2,y:-d},...Rt(-h/2+d+d/2,c/2,d,30,-180,-270)],f=[{x:h/2,y:-c/2-d},{x:-h/2,y:-c/2-d},...Rt(h/2,-c/2,d,20,-90,0),{x:-h/2-d,y:-d},...Rt(h/2+d*2,-d,d,20,-180,-270),...Rt(h/2+d*2,d,d,20,-90,-180),{x:-h/2-d,y:c/2},...Rt(h/2,c/2,d,20,0,90),{x:-h/2,y:c/2+d},{x:h/2-d-d/2,y:c/2+d},...Rt(-h/2+d+d/2,-c/2,d,20,-90,-180),{x:h/2-d/2,y:d},...Rt(-h/2-d/2,-d,d,20,0,90),...Rt(-h/2-d/2,d,d,20,-90,0),{x:h/2-d/2,y:-d},...Rt(-h/2+d+d/2,c/2,d,30,-180,-270)],y=U.svg(a),C=G(t,{fill:"none"});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const T=gt(u).replace("Z",""),S=y.path(T,C),v=gt(m).replace("Z",""),k=y.path(v,C),_=gt(f),q=y.path(_,{...C}),P=a.insert("g",":first-child");return P.insert(()=>q,":first-child").attr("stroke-opacity",0),P.insert(()=>S,":first-child"),P.insert(()=>k,":first-child"),P.attr("class","text"),g&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",i),P.attr("transform",`translate(${d-d/4}, 0)`),l.attr("transform",`translate(${-h/2+(t.padding??0)/2-(s.x-(s.left??0))},${-c/2+(t.padding??0)/2-(s.y-(s.top??0))})`),K(t,P),t.intersect=function(E){return Y.polygon(t,f,E)},a}p(Xu,"curlyBraces");async function Vu(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const a=t.padding??0,s=t.look==="neo"?16:a,l=t.look==="neo"?12:a,o=20,n=5,{shapeSvg:h,bbox:c}=await at(e,t,rt(t)),d=Math.max(o,(c.width+s*2)*1.25,(t==null?void 0:t.width)??0),g=Math.max(n,c.height+l*2,(t==null?void 0:t.height)??0),u=g/2,{cssStyles:m}=t,f=U.svg(h),y=G(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const C=d,b=g,T=C-u,S=b/4,w=[{x:T,y:0},{x:S,y:0},{x:0,y:b/2},{x:S,y:b},{x:T,y:b},...Ii(-T,-b/2,u,50,270,90)],v=gt(w),k=f.path(v,y),_=h.insert(()=>k,":first-child");return _.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",m),i&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",i),_.attr("transform",`translate(${-d/2}, ${-g/2})`),K(t,_),t.intersect=function(q){return Y.polygon(t,w,q)},h}p(Vu,"curvedTrapezoid");var Xk=p((e,t,r,i,a,s)=>[`M${e},${t+s}`,`a${a},${s} 0,0,0 ${r},0`,`a${a},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${a},${s} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),Vk=p((e,t,r,i,a,s)=>[`M${e},${t+s}`,`M${e+r},${t+s}`,`a${a},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${a},${s} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),Zk=p((e,t,r,i,a,s)=>[`M${e-r/2},${-i/2}`,`a${a},${s} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),Rn=8,qn=8;async function Zu(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const a=t.padding??0,s=t.look==="neo"?24:a,l=t.look==="neo"?24:a;if(t.width||t.height){const y=t.width??0;t.width=(t.width??0)-l,t.width<qn&&(t.width=qn);const b=y/2/(2.5+y/50);t.height=(t.height??0)-s-b*3,t.height<Rn&&(t.height=Rn)}const{shapeSvg:o,bbox:n,label:h}=await at(e,t,rt(t)),c=(t.width?t.width:n.width)+l,d=c/2,g=d/(2.5+c/50),u=(t.height?t.height:n.height)+s+g;let m;const{cssStyles:f}=t;if(t.look==="handDrawn"){const y=U.svg(o),C=Vk(0,0,c,u,d,g),b=Zk(0,g,c,u,d,g),T=G(t,{}),S=y.path(C,T),w=y.path(b,G(t,{fill:"none"}));m=o.insert(()=>w,":first-child"),m=o.insert(()=>S,":first-child"),m.attr("class","basic label-container"),f&&m.attr("style",f)}else{const y=Xk(0,0,c,u,d,g);m=o.insert("path",":first-child").attr("d",y).attr("class","basic label-container outer-path").attr("style",Dt(f)).attr("style",i)}return m.attr("label-offset-y",g),m.attr("transform",`translate(${-c/2}, ${-(u/2+g)})`),K(t,m),h.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${-(n.height/2)+(t.padding??0)/1.5-(n.y-(n.top??0))})`),t.intersect=function(y){const C=Y.rect(t,y),b=C.x-(t.x??0);if(d!=0&&(Math.abs(b)<(t.width??0)/2||Math.abs(b)==(t.width??0)/2&&Math.abs(C.y-(t.y??0))>(t.height??0)/2-g)){let T=g*g*(1-b*b/(d*d));T>0&&(T=Math.sqrt(T)),T=g-T,y.y-(t.y??0)>0&&(T=-T),C.y+=T}return C},o}p(Zu,"cylinder");async function Ku(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const a=t.look==="neo"?16:t.padding??0,s=t.look==="neo"?16:t.padding??0,{shapeSvg:l,bbox:o,label:n}=await at(e,t,rt(t)),h=o.width+a,c=o.height+s,d=c*.2,g=-h/2,u=-c/2-d/2,{cssStyles:m}=t,f=U.svg(l),y=G(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const C=[{x:g,y:u+d},{x:-g,y:u+d},{x:-g,y:-u},{x:g,y:-u},{x:g,y:u},{x:-g,y:u},{x:-g,y:u+d}],b=f.polygon(C.map(S=>[S.x,S.y]),y),T=l.insert(()=>b,":first-child");return T.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",i),n.attr("transform",`translate(${g+(t.padding??0)
229/2-(o.x-(o.left??0))}, ${u+d+(t.padding??0)/2-(o.y-(o.top??0))})`),K(t,T),t.intersect=function(S){return Y.rect(t,S)},l}p(Ku,"dividedRectangle");async function Qu(e,t){var u,m;const{labelStyles:r,nodeStyles:i}=X(t),a=t.look==="neo"?12:5;t.labelStyle=r;const s=t.padding??0,l=t.look==="neo"?16:s,{shapeSvg:o,bbox:n}=await at(e,t,rt(t)),h=(t!=null&&t.width?(t==null?void 0:t.width)/2:n.width/2)+(l??0),c=h-a;let d;const{cssStyles:g}=t;if(t.look==="handDrawn"){const f=U.svg(o),y=G(t,{roughness:.2,strokeWidth:2.5}),C=G(t,{roughness:.2,strokeWidth:1.5}),b=f.circle(0,0,h*2,y),T=f.circle(0,0,c*2,C);d=o.insert("g",":first-child"),d.attr("class",Dt(t.cssClasses)).attr("style",Dt(g)),(u=d.node())==null||u.appendChild(b),(m=d.node())==null||m.appendChild(T)}else{d=o.insert("g",":first-child");const f=d.insert("circle",":first-child"),y=d.insert("circle");d.attr("class","basic label-container").attr("style",i),f.attr("class","outer-circle").attr("style",i).attr("r",h).attr("cx",0).attr("cy",0),y.attr("class","inner-circle").attr("style",i).attr("r",c).attr("cx",0).attr("cy",0)}return K(t,d),t.intersect=function(f){return R.info("DoubleCircle intersect",t,h,f),Y.circle(t,h,f)},o}p(Qu,"doublecircle");function Ju(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:a}=X(t);t.label="",t.labelStyle=i;const s=e.insert("g").attr("class",rt(t)).attr("id",t.domId??t.id),l=7,{cssStyles:o}=t,n=U.svg(s),{nodeBorder:h}=r,c=G(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(c.roughness=0);const d=n.circle(0,0,l*2,c),g=s.insert(()=>d,":first-child");return g.selectAll("path").attr("style",`fill: ${h} !important;`),o&&o.length>0&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",o),a&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",a),K(t,g),t.intersect=function(u){return R.info("filledCircle intersect",t,{radius:l,point:u}),Y.circle(t,l,u)},s}p(Ju,"filledCircle");var Wn=10,zn=10;async function tg(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const a=t.padding??0,s=t.look==="neo"?a*2:a;(t.width||t.height)&&(t.height=(t==null?void 0:t.height)??0,t.height<Wn&&(t.height=Wn),t.width=((t==null?void 0:t.width)??0)-s-s/2,t.width<zn&&(t.width=zn));const{shapeSvg:l,bbox:o,label:n}=await at(e,t,rt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:o.width)+(s??0),c=t!=null&&t.height?t==null?void 0:t.height:h+o.height,d=c,g=[{x:0,y:-c},{x:d,y:-c},{x:d/2,y:0}],{cssStyles:u}=t,m=U.svg(l),f=G(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const y=gt(g),C=m.path(y,f),b=l.insert(()=>C,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`).attr("class","outer-path");return u&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",u),i&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",i),t.width=h,t.height=c,K(t,b),n.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-c/2+(t.padding??0)/2+(o.y-(o.top??0))})`),t.intersect=function(T){return R.info("Triangle intersect",t,g,T),Y.polygon(t,g,T)},l}p(tg,"flippedTriangle");function eg(e,t,{dir:r,config:{state:i,themeVariables:a}}){const{nodeStyles:s}=X(t);t.label="";const l=e.insert("g").attr("class",rt(t)).attr("id",t.domId??t.id),{cssStyles:o}=t;let n=Math.max(70,(t==null?void 0:t.width)??0),h=Math.max(10,(t==null?void 0:t.height)??0);r==="LR"&&(n=Math.max(10,(t==null?void 0:t.width)??0),h=Math.max(70,(t==null?void 0:t.height)??0));const c=-1*n/2,d=-1*h/2,g=U.svg(l),u=G(t,{stroke:a.lineColor,fill:a.lineColor});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const m=g.rectangle(c,d,n,h,u),f=l.insert(()=>m,":first-child");o&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",o),s&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",s),K(t,f);const y=(i==null?void 0:i.padding)??0;return t.width&&t.height&&(t.width+=y/2||0,t.height+=y/2||0),t.intersect=function(C){return Y.rect(t,C)},l}p(eg,"forkJoin");async function rg(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const a=15,s=10,l=t.look==="neo"?16:t.padding??0,o=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.height=((t==null?void 0:t.height)??0)-o*2,t.height<s&&(t.height=s),t.width=((t==null?void 0:t.width)??0)-l*2,t.width<a&&(t.width=a));const{shapeSvg:n,bbox:h}=await at(e,t,rt(t)),c=(t!=null&&t.width?t==null?void 0:t.width:Math.max(a,h.width))+l*2,d=(t!=null&&t.height?t==null?void 0:t.height:Math.max(s,h.height))+o*2,g=d/2,{cssStyles:u}=t,m=U.svg(n),f=G(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const y=[{x:-c/2,y:-d/2},{x:c/2-g,y:-d/2},...Ii(-c/2+g,0,g,50,90,270),{x:c/2-g,y:d/2},{x:-c/2,y:d/2}],C=gt(y),b=m.path(C,f),T=n.insert(()=>b,":first-child");return T.attr("class","basic label-container outer-path"),u&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",u),i&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",i),K(t,T),t.intersect=function(S){return R.info("Pill intersect",t,{radius:g,point:S}),Y.polygon(t,y,S)},n}p(rg,"halfRoundedRectangle");var Kk=p((e,t,r,i,a)=>[`M${e+a},${t}`,`L${e+r-a},${t}`,`L${e+r},${t-i/2}`,`L${e+r-a},${t-i}`,`L${e+a},${t-i}`,`L${e},${t-i/2}`,"Z"].join(" "),"createHexagonPathD");async function ig(e,t){const{labelStyles:r,nodeStyles:i}=X(t),a=t.look==="neo"?3.5:4;t.labelStyle=r;const s=t.padding??0,l=70,o=32,n=t.look==="neo"?l:s,h=t.look==="neo"?o:s;if(t.width||t.height){const T=(t.height??0)/a;t.width=((t==null?void 0:t.width)??0)-2*T-h,t.height=(t.height??0)-n}const{shapeSvg:c,bbox:d}=await at(e,t,rt(t)),g=(t!=null&&t.height?t==null?void 0:t.height:d.height)+n,u=g/a,m=(t!=null&&t.width?t==null?void 0:t.width:d.width)+2*u+h,f=[{x:u,y:0},{x:m-u,y:0},{x:m,y:-g/2},{x:m-u,y:-g},{x:u,y:-g},{x:0,y:-g/2}];let y;const{cssStyles:C}=t;if(t.look==="handDrawn"){const b=U.svg(c),T=G(t,{}),S=Kk(0,0,m,g,u),w=b.path(S,T);y=c.insert(()=>w,":first-child").attr("transform",`translate(${-m/2}, ${g/2})`),C&&y.attr("style",C)}else y=He(c,m,g,f);return i&&y.attr("style",i),t.width=m,t.height=g,K(t,y),t.intersect=function(b){return Y.polygon(t,f,b)},c}p(ig,"hexagon");async function ag(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.label="",t.labelStyle=r;const{shapeSvg:a}=await at(e,t,rt(t)),s=Math.max(30,(t==null?void 0:t.width)??0),l=Math.max(30,(t==null?void 0:t.height)??0),{cssStyles:o}=t,n=U.svg(a),h=G(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const c=[{x:0,y:0},{x:s,y:0},{x:0,y:l},{x:s,y:l}],d=gt(c),g=n.path(d,h),u=a.insert(()=>g,":first-child");return u.attr("class","basic label-container outer-path"),o&&t.look!=="handDrawn"&&u.selectChildren("path").attr("style",o),i&&t.look!=="handDrawn"&&u.selectChildren("path").attr("style",i),u.attr("transform",`translate(${-s/2}, ${-l/2})`),K(t,u),t.intersect=function(m){return R.info("Pill intersect",t,{points:c}),Y.polygon(t,c,m)},a}p(ag,"hourglass");
229async function sg(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:a}=X(t);t.labelStyle=a;const s=t.assetHeight??48,l=t.assetWidth??48,o=Math.max(s,l),n=i==null?void 0:i.wrappingWidth;t.width=Math.max(o,n??0);const{shapeSvg:h,bbox:c,label:d}=await at(e,t,"icon-shape default"),g=t.pos==="t",u=o,m=o,{nodeBorder:f}=r,{stylesMap:y}=ei(t),C=-m/2,b=-u/2,T=t.label?8:0,S=U.svg(h),w=G(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const v=S.rectangle(C,b,m,u,w),k=Math.max(m,c.width),_=u+c.height+T,q=S.rectangle(-k/2,-_/2,k,_,{...w,fill:"transparent",stroke:"none"}),P=h.insert(()=>v,":first-child"),E=h.insert(()=>q);if(t.icon){const j=h.append("g");j.html(`<g>${await ji(t.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const W=j.node().getBBox(),D=W.width,M=W.height,F=W.x,I=W.y;j.attr("transform",`translate(${-D/2-F},${g?c.height/2+T/2-M/2-I:-c.height/2-T/2-M/2-I})`),j.attr("style",`color: ${y.get("stroke")??f};`)}return d.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${g?-_/2:_/2-c.height})`),P.attr("transform",`translate(0,${g?c.height/2+T/2:-c.height/2-T/2})`),K(t,E),t.intersect=function(j){if(R.info("iconSquare intersect",t,j),!t.label)return Y.rect(t,j);const W=t.x??0,D=t.y??0,M=t.height??0;let F=[];return g?F=[{x:W-c.width/2,y:D-M/2},{x:W+c.width/2,y:D-M/2},{x:W+c.width/2,y:D-M/2+c.height+T},{x:W+m/2,y:D-M/2+c.height+T},{x:W+m/2,y:D+M/2},{x:W-m/2,y:D+M/2},{x:W-m/2,y:D-M/2+c.height+T},{x:W-c.width/2,y:D-M/2+c.height+T}]:F=[{x:W-m/2,y:D-M/2},{x:W+m/2,y:D-M/2},{x:W+m/2,y:D-M/2+u},{x:W+c.width/2,y:D-M/2+u},{x:W+c.width/2/2,y:D+M/2},{x:W-c.width/2,y:D+M/2},{x:W-c.width/2,y:D-M/2+u},{x:W-m/2,y:D-M/2+u}],Y.polygon(t,F,j)},h}p(sg,"icon");async function og(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:a}=X(t);t.labelStyle=a;const s=t.assetHeight??48,l=t.assetWidth??48,o=Math.max(s,l),n=i==null?void 0:i.wrappingWidth;t.width=Math.max(o,n??0);const{shapeSvg:h,bbox:c,label:d}=await at(e,t,"icon-shape default"),g=20,u=t.label?8:0,m=t.pos==="t",{nodeBorder:f,mainBkg:y}=r,{stylesMap:C}=ei(t),b=U.svg(h),T=G(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const S=C.get("fill");T.stroke=S??y;const w=h.append("g");t.icon&&w.html(`<g>${await ji(t.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const v=w.node().getBBox(),k=v.width,_=v.height,q=v.x,P=v.y,E=Math.max(k,_)*Math.SQRT2+g*2,j=b.circle(0,0,E,T),W=Math.max(E,c.width),D=E+c.height+u,M=b.rectangle(-W/2,-D/2,W,D,{...T,fill:"transparent",stroke:"none"}),F=h.insert(()=>j,":first-child"),I=h.insert(()=>M);return w.attr("transform",`translate(${-k/2-q},${m?c.height/2+u/2-_/2-P:-c.height/2-u/2-_/2-P})`),w.attr("style",`color: ${C.get("stroke")??f};`),d.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${m?-D/2:D/2-c.height})`),F.attr("transform",`translate(0,${m?c.height/2+u/2:-c.height/2-u/2})`),K(t,I),t.intersect=function(A){return R.info("iconSquare intersect",t,A),Y.rect(t,A)},h}p(og,"iconCircle");async function lg(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:a}=X(t);t.labelStyle=a;const s=t.assetHeight??48,l=t.assetWidth??48,o=Math.max(s,l),n=i==null?void 0:i.wrappingWidth;t.width=Math.max(o,n??0);const{shapeSvg:h,bbox:c,halfPadding:d,label:g}=await at(e,t,"icon-shape default"),u=t.pos==="t",m=o+d*2,f=o+d*2,{nodeBorder:y,mainBkg:C}=r,{stylesMap:b}=ei(t),T=-f/2,S=-m/2,w=t.label?8:0,v=U.svg(h),k=G(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const _=b.get("fill");k.stroke=_??C;const q=v.path(Je(T,S,f,m,5),k),P=Math.max(f,c.width),E=m+c.height+w,j=v.rectangle(-P/2,-E/2,P,E,{...k,fill:"transparent",stroke:"none"}),W=h.insert(()=>q,":first-child").attr("class","icon-shape2"),D=h.insert(()=>j);if(t.icon){const M=h.append("g");M.html(`<g>${await ji(t.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const F=M.node().getBBox(),I=F.width,A=F.height,z=F.x,H=F.y;M.attr("transform",`translate(${-I/2-z},${u?c.height/2+w/2-A/2-H:-c.height/2-w/2-A/2-H})`),M.attr("style",`color: ${b.get("stroke")??y};`)}return g.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${u?-E/2:E/2-c.height})`),W.attr("transform",`translate(0,${u?c.height/2+w/2:-c.height/2-w/2})`),K(t,D),t.intersect=function(M){if(R.info("iconSquare intersect",t,M),!t.label)return Y.rect(t,M);const F=t.x??0,I=t.y??0,A=t.height??0;let z=[];return u?z=[{x:F-c.width/2,y:I-A/2},{x:F+c.width/2,y:I-A/2},{x:F+c.width/2,y:I-A/2+c.height+w},{x:F+f/2,y:I-A/2+c.height+w},{x:F+f/2,y:I+A/2},{x:F-f/2,y:I+A/2},{x:F-f/2,y:I-A/2+c.height+w},{x:F-c.width/2,y:I-A/2+c.height+w}]:z=[{x:F-f/2,y:I-A/2},{x:F+f/2,y:I-A/2},{x:F+f/2,y:I-A/2+m},{x:F+c.width/2,y:I-A/2+m},{x:F+c.width/2/2,y:I+A/2},{x:F-c.width/2,y:I+A/2},{x:F-c.width/2,y:I-A/2+m},{x:F-f/2,y:I-A/2+m}],Y.polygon(t,z,M)},h}p(lg,"iconRounded");
229async function ng(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:a}=X(t);t.labelStyle=a;const s=t.assetHeight??48,l=t.assetWidth??48,o=Math.max(s,l),n=i==null?void 0:i.wrappingWidth;t.width=Math.max(o,n??0);const{shapeSvg:h,bbox:c,halfPadding:d,label:g}=await at(e,t,"icon-shape default"),u=t.pos==="t",m=o+d*2,f=o+d*2,{nodeBorder:y,mainBkg:C}=r,{stylesMap:b}=ei(t),T=-f/2,S=-m/2,w=t.label?8:0,v=U.svg(h),k=G(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const _=b.get("fill");k.stroke=_??C;const q=v.path(Je(T,S,f,m,.1),k),P=Math.max(f,c.width),E=m+c.height+w,j=v.rectangle(-P/2,-E/2,P,E,{...k,fill:"transparent",stroke:"none"}),W=h.insert(()=>q,":first-child"),D=h.insert(()=>j);if(t.icon){const M=h.append("g");M.html(`<g>${await ji(t.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const F=M.node().getBBox(),I=F.width,A=F.height,z=F.x,H=F.y;M.attr("transform",`translate(${-I/2-z},${u?c.height/2+w/2-A/2-H:-c.height/2-w/2-A/2-H})`),M.attr("style",`color: ${b.get("stroke")??y};`)}return g.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${u?-E/2:E/2-c.height})`),W.attr("transform",`translate(0,${u?c.height/2+w/2:-c.height/2-w/2})`),K(t,D),t.intersect=function(M){if(R.info("iconSquare intersect",t,M),!t.label)return Y.rect(t,M);const F=t.x??0,I=t.y??0,A=t.height??0;let z=[];return u?z=[{x:F-c.width/2,y:I-A/2},{x:F+c.width/2,y:I-A/2},{x:F+c.width/2,y:I-A/2+c.height+w},{x:F+f/2,y:I-A/2+c.height+w},{x:F+f/2,y:I+A/2},{x:F-f/2,y:I+A/2},{x:F-f/2,y:I-A/2+c.height+w},{x:F-c.width/2,y:I-A/2+c.height+w}]:z=[{x:F-f/2,y:I-A/2},{x:F+f/2,y:I-A/2},{x:F+f/2,y:I-A/2+m},{x:F+c.width/2,y:I-A/2+m},{x:F+c.width/2/2,y:I+A/2},{x:F-c.width/2,y:I+A/2},{x:F-c.width/2,y:I-A/2+m},{x:F-f/2,y:I-A/2+m}],Y.polygon(t,z,M)},h}p(ng,"iconSquare");async function hg(e,t,{config:{flowchart:r}}){const i=new Image;i.src=(t==null?void 0:t.img)??"",await i.decode();const a=Number(i.naturalWidth.toString().replace("px","")),s=Number(i.naturalHeight.toString().replace("px",""));t.imageAspectRatio=a/s;const{labelStyles:l}=X(t);t.labelStyle=l;const o=r==null?void 0:r.wrappingWidth;t.defaultWidth=r==null?void 0:r.wrappingWidth;const n=Math.max(t.label?o??0:0,(t==null?void 0:t.assetWidth)??a),h=t.constraint==="on"&&t!=null&&t.assetHeight?t.assetHeight*t.imageAspectRatio:n,c=t.constraint==="on"?h/t.imageAspectRatio:(t==null?void 0:t.assetHeight)??s;t.width=Math.max(h,o??0);const{shapeSvg:d,bbox:g,label:u}=await at(e,t,"image-shape default"),m=t.pos==="t",f=-h/2,y=-c/2,C=t.label?8:0,b=U.svg(d),T=G(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const S=b.rectangle(f,y,h,c,T),w=Math.max(h,g.width),v=c+g.height+C,k=b.rectangle(-w/2,-v/2,w,v,{...T,fill:"none",stroke:"none"}),_=d.insert(()=>S,":first-child"),q=d.insert(()=>k);if(t.img){const P=d.append("image");P.attr("href",t.img),P.attr("width",h),P.attr("height",c),P.attr("preserveAspectRatio","none"),P.attr("transform",`translate(${-h/2},${m?v/2-c:-v/2})`)}return u.attr("transform",`translate(${-g.width/2-(g.x-(g.left??0))},${m?-c/2-g.height/2-C/2:c/2-g.height/2+C/2})`),_.attr("transform",`translate(0,${m?g.height/2+C/2:-g.height/2-C/2})`),K(t,q),t.intersect=function(P){if(R.info("iconSquare intersect",t,P),!t.label)return Y.rect(t,P);const E=t.x??0,j=t.y??0,W=t.height??0;let D=[];return m?D=[{x:E-g.width/2,y:j-W/2},{x:E+g.width/2,y:j-W/2},{x:E+g.width/2,y:j-W/2+g.height+C},{x:E+h/2,y:j-W/2+g.height+C},{x:E+h/2,y:j+W/2},{x:E-h/2,y:j+W/2},{x:E-h/2,y:j-W/2+g.height+C},{x:E-g.width/2,y:j-W/2+g.height+C}]:D=[{x:E-h/2,y:j-W/2},{x:E+h/2,y:j-W/2},{x:E+h/2,y:j-W/2+c},{x:E+g.width/2,y:j-W/2+c},{x:E+g.width/2/2,y:j+W/2},{x:E-g.width/2,y:j+W/2},{x:E-g.width/2,y:j-W/2+c},{x:E-h/2,y:j-W/2+c}],Y.polygon(t,D,P)},d}p(hg,"imageSquare");async function cg(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const a=t.padding??0,s=a,l=t.look==="neo"?a*2:a,{shapeSvg:o,bbox:n}=await at(e,t,rt(t)),h=Math.max(n.width+(l??0)*2,(t==null?void 0:t.width)??0),c=Math.max(n.height+(s??0)*2,(t==null?void 0:t.height)??0),d=[{x:0,y:0},{x:h,y:0},{x:h+3*c/6,y:-c},{x:-3*c/6,y:-c}];let g;const{cssStyles:u}=t;if(t.look==="handDrawn"){const m=U.svg(o),f=G(t,{}),y=gt(d),C=m.path(y,f);g=o.insert(()=>C,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),u&&g.attr("style",u)}else g=He(o,h,c,d);return i&&g.attr("style",i),t.width=h,t.height=c,K(t,g),t.intersect=function(m){return Y.polygon(t,d,m)},o}p(cg,"inv_trapezoid");async function Ui(e,t,r){const{labelStyles:i,nodeStyles:a}=X(t);t.labelStyle=i;const{shapeSvg:s,bbox:l}=await at(e,t,rt(t)),o=Math.max(l.width+r.labelPaddingX*2,(t==null?void 0:t.width)||0),n=Math.max(l.height+r.labelPaddingY*2,(t==null?void 0:t.height)||0),h=-o/2,c=-n/2;let d,{rx:g,ry:u}=t;const{cssStyles:m}=t;if(r!=null&&r.rx&&r.ry&&(g=r.rx,u=r.ry),t.look==="handDrawn"){const f=U.svg(s),y=G(t,{}
229),C=g||u?f.path(Je(h,c,o,n,g||0),y):f.rectangle(h,c,o,n,y);d=s.insert(()=>C,":first-child"),d.attr("class","basic label-container").attr("style",Dt(m))}else d=s.insert("rect",":first-child"),d.attr("class","basic label-container").attr("style",a).attr("rx",Dt(g)).attr("ry",Dt(u)).attr("x",h).attr("y",c).attr("width",o).attr("height",n);return K(t,d),t.calcIntersect=function(f,y){return Y.rect(f,y)},t.intersect=function(f){return Y.rect(t,f)},s}p(Ui,"drawRect");async function dg(e,t){const{shapeSvg:r,bbox:i,label:a}=await at(e,t,"label"),s=r.insert("rect",":first-child");return s.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),a.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),K(t,s),t.intersect=function(n){return Y.rect(t,n)},r}p(dg,"labelRect");async function ug(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const a=t.padding??0,s=a,l=t.look==="neo"?a*2:a,{shapeSvg:o,bbox:n}=await at(e,t,rt(t)),h=((t==null?void 0:t.height)??n.height)+s,c=((t==null?void 0:t.width)??n.width)+l,d=[{x:0,y:0},{x:c+3*h/6,y:0},{x:c,y:-h},{x:-(3*h)/6,y:-h}];let g;const{cssStyles:u}=t;if(t.look==="handDrawn"){const m=U.svg(o),f=G(t,{}),y=gt(d),C=m.path(y,f);g=o.insert(()=>C,":first-child").attr("transform",`translate(${-c/2}, ${h/2})`),u&&g.attr("style",u)}else g=He(o,c,h,d);return i&&g.attr("style",i),t.width=c,t.height=h,K(t,g),t.intersect=function(m){return Y.polygon(t,d,m)},o}p(ug,"lean_left");async function gg(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const a=t.padding??0,s=a,l=t.look==="neo"?a*2:a,{shapeSvg:o,bbox:n}=await at(e,t,rt(t)),h=((t==null?void 0:t.height)??n.height)+s,c=((t==null?void 0:t.width)??n.width)+l,d=[{x:-3*h/6,y:0},{x:c,y:0},{x:c+3*h/6,y:-h},{x:0,y:-h}];let g;const{cssStyles:u}=t;if(t.look==="handDrawn"){const m=U.svg(o),f=G(t,{}),y=gt(d),C=m.path(y,f);g=o.insert(()=>C,":first-child").attr("transform",`translate(${-c/2}, ${h/2})`),u&&g.attr("style",u)}else g=He(o,c,h,d);return i&&g.attr("style",i),t.width=c,t.height=h,K(t,g),t.intersect=function(m){return Y.polygon(t,d,m)},o}p(gg,"lean_right");function pg(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.label="",t.labelStyle=r;const a=e.insert("g").attr("class",rt(t)).attr("id",t.domId??t.id),{cssStyles:s}=t,l=Math.max(35,(t==null?void 0:t.width)??0),o=Math.max(35,(t==null?void 0:t.height)??0),n=7,h=[{x:l,y:0},{x:0,y:o+n/2},{x:l-2*n,y:o+n/2},{x:0,y:2*o},{x:l,y:o-n/2},{x:2*n,y:o-n/2}],c=U.svg(a),d=G(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const g=gt(h),u=c.path(g,d),m=a.insert(()=>u,":first-child");return m.attr("class","outer-path"),s&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",s),i&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",i),m.attr("transform",`translate(-${l/2},${-o})`),K(t,m),t.intersect=function(f){return R.info("lightningBolt intersect",t,f),Y.polygon(t,h,f)},a}p(pg,"lightningBolt");var Qk=p((e,t,r,i,a,s,l)=>[`M${e},${t+s}`,`a${a},${s} 0,0,0 ${r},0`,`a${a},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${a},${s} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+s+l}`,`a${a},${s} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),Jk=p((e,t,r,i,a,s,l)=>[`M${e},${t+s}`,`M${e+r},${t+s}`,`a${a},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${a},${s} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+s+l}`,`a${a},${s} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),t1=p((e,t,r,i,a,s)=>[`M${e-r/2},${-i/2}`,`a${a},${s} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),Nn=10,Hn=10;async function fg(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const a=t.padding??0,s=t.look==="neo"?16:a,l=t.look==="neo"?24:a;if(t.width||t.height){const C=t.width??0;t.width=(t.width??0)-s,t.width<Hn&&(t.width=Hn);const T=C/2/(2.5+C/50);t.height=(t.height??0)-l-T*3,t.height<Nn&&(t.height=Nn)}const{shapeSvg:o,bbox:n,label:h}=await at(e,t,rt(t)),c=(t!=null&&t.width?t==null?void 0:t.width:n.width)+s*2,d=c/2,g=d/(2.5+c/50),u=(t!=null&&t.height?t==null?void 0:t.height:n.height)+g+l*2,m=u*.1;let f;const{cssStyles:y}=t;if(t.look==="handDrawn"){const C=U.svg(o),b=Jk(0,0,c,u,d,g,m),T=t1(0,g,c,u,d,g),S=G(t,{}),w=C.path(b,S),v=C.path(T,S);o.insert(()=>v,":first-child").attr("class","line"),f=o.insert(()=>w,":first-child"),f.attr("class","basic label-container"),y&&f.attr("style",y)}else{const C=Qk(0,0,c,u,d,g,m);f=o.insert("path",":first-child").attr("d",C).attr("class","basic label-container outer-path").attr("style",Dt(y)).attr("style",i)}return f.attr("label-offset-y",g),f.attr("transform",`translate(${-c/2}, ${-(u/2+g)})`),K(t,f),h.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${-(n.height/2)+g-(n.y-(n.top??0))})`),t.intersect=function(C){const b=Y.rect(t,C),T=b.x-(t.x??0);if(d!=0&&(Math.abs(T)<(t.width??0)/2||Math.abs(T)==(t.width??0)/2&&Math.abs(b.y-(t.y??0))>(t.height??0)/2-g)){let S=g*g*(1-T*T/(d*d));S>0&&(S=Math.sqrt(S)),S=g-S,C.y-(t.y??0)>0&&(S=-S),b.y+=S}return b},o}
229p(fg,"linedCylinder");async function mg(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const a=t.padding??0,s=t.look==="neo"?16:a,l=t.look==="neo"?12:a;if(t.width||t.height){const S=t.width;t.width=(S??0)*10/11-s*2,t.width<10&&(t.width=10),t.height=((t==null?void 0:t.height)??0)-l*2,t.height<10&&(t.height=10)}const{shapeSvg:o,bbox:n,label:h}=await at(e,t,rt(t)),c=(t!=null&&t.width?t==null?void 0:t.width:n.width)+(s??0)*2,d=(t!=null&&t.height?t==null?void 0:t.height:n.height)+(l??0)*2,g=t.look==="neo"?d/4:d/8,u=d+g,{cssStyles:m}=t,f=U.svg(o),y=G(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const C=[{x:-c/2-c/2*.1,y:-u/2},{x:-c/2-c/2*.1,y:u/2},...Ke(-c/2-c/2*.1,u/2,c/2+c/2*.1,u/2,g,.8),{x:c/2+c/2*.1,y:-u/2},{x:-c/2-c/2*.1,y:-u/2},{x:-c/2,y:-u/2},{x:-c/2,y:u/2*1.1},{x:-c/2,y:-u/2}],b=f.polygon(C.map(S=>[S.x,S.y]),y),T=o.insert(()=>b,":first-child");return T.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",i),T.attr("transform",`translate(0,${-g/2})`),h.attr("transform",`translate(${-c/2+(t.padding??0)+c/2*.1/2-(n.x-(n.left??0))},${-d/2+(t.padding??0)-g/2-(n.y-(n.top??0))})`),K(t,T),t.intersect=function(S){return Y.polygon(t,C,S)},o}p(mg,"linedWaveEdgedRect");async function yg(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const a=t.padding??0,s=t.look==="neo"?16:a,l=t.look==="neo"?12:a,o=t.look==="neo"?10:5;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-s*2-2*o,10),t.height=Math.max(((t==null?void 0:t.height)??0)-l*2-2*o,10));const{shapeSvg:n,bbox:h,label:c}=await at(e,t,rt(t)),d=(t!=null&&t.width?t==null?void 0:t.width:h.width)+s*2+2*o,g=(t!=null&&t.height?t==null?void 0:t.height:h.height)+l*2+2*o,u=d-2*o,m=g-2*o,f=-u/2,y=-m/2,{cssStyles:C}=t,b=U.svg(n),T=G(t,{}),S=[{x:f-o,y:y+o},{x:f-o,y:y+m+o},{x:f+u-o,y:y+m+o},{x:f+u-o,y:y+m},{x:f+u,y:y+m},{x:f+u,y:y+m-o},{x:f+u+o,y:y+m-o},{x:f+u+o,y:y-o},{x:f+o,y:y-o},{x:f+o,y},{x:f,y},{x:f,y:y+o}],w=[{x:f,y:y+o},{x:f+u-o,y:y+o},{x:f+u-o,y:y+m},{x:f+u,y:y+m},{x:f+u,y},{x:f,y}];t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const v=gt(S);let k=b.path(v,T);const _=gt(w);let q=b.path(_,T);t.look!=="handDrawn"&&(k=ko(k),q=ko(q));const P=n.insert("g",":first-child");return P.insert(()=>k),P.insert(()=>q),P.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",C),i&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",i),c.attr("transform",`translate(${-(h.width/2)-o-(h.x-(h.left??0))}, ${-(h.height/2)+o-(h.y-(h.top??0))})`),K(t,P),t.intersect=function(E){return Y.polygon(t,S,E)},n}p(yg,"multiRect");async function Cg(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const{shapeSvg:a,bbox:s,label:l}=await at(e,t,rt(t)),o=t.padding??0,n=t.look==="neo"?16:o,h=t.look==="neo"?12:o;let c=!0;(t.width||t.height)&&(c=!1,t.width=((t==null?void 0:t.width)??0)-n*2,t.height=((t==null?void 0:t.height)??0)-h*3);const d=Math.max(s.width,(t==null?void 0:t.width)??0)+n*2,g=Math.max(s.height,(t==null?void 0:t.height)??0)+h*3,u=t.look==="neo"?g/4:g/8,m=g+(c?u/2:-u/2),f=-d/2,y=-m/2,C=10,{cssStyles:b}=t,T=Ke(f-C,y+m+C,f+d-C,y+m+C,u,.8),S=T==null?void 0:T[T.length-1],w=[{x:f-C,y:y+C},{x:f-C,y:y+m+C},...T,{x:f+d-C,y:S.y-C},{x:f+d,y:S.y-C},{x:f+d,y:S.y-2*C},{x:f+d+C,y:S.y-2*C},{x:f+d+C,y:y-C},{x:f+C,y:y-C},{x:f+C,y},{x:f,y},{x:f,y:y+C}],v=[{x:f,y:y+C},{x:f+d-C,y:y+C},{x:f+d-C,y:S.y-C},{x:f+d,y:S.y-C},{x:f+d,y},{x:f,y}
229],k=U.svg(a),_=G(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const q=gt(w),P=k.path(q,_),E=gt(v),j=k.path(E,_),W=a.insert(()=>P,":first-child");return W.insert(()=>j),W.attr("class","basic label-container outer-path"),b&&t.look!=="handDrawn"&&W.selectAll("path").attr("style",b),i&&t.look!=="handDrawn"&&W.selectAll("path").attr("style",i),W.attr("transform",`translate(0,${-u/2})`),l.attr("transform",`translate(${-(s.width/2)-C-(s.x-(s.left??0))}, ${-(s.height/2)+C-u/2-(s.y-(s.top??0))})`),K(t,W),t.intersect=function(D){return Y.polygon(t,w,D)},a}p(Cg,"multiWaveEdgedRectangle");async function xg(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:a}=X(t);t.labelStyle=i,t.useHtmlLabels||Qt(Bt())||(t.centerLabel=!0);const{shapeSvg:l,bbox:o,label:n}=await at(e,t,rt(t)),h=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),d=-h/2,g=-c/2,{cssStyles:u}=t,m=U.svg(l),f=G(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const y=m.rectangle(d,g,h,c,f),C=l.insert(()=>y,":first-child");return C.attr("class","basic label-container outer-path"),n.attr("class","label noteLabel"),u&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",u),a&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",a),n.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),K(t,C),t.intersect=function(b){return Y.rect(t,b)},l}p(xg,"note");var e1=p((e,t,r)=>[`M${e+r/2},${t}`,`L${e+r},${t-r/2}`,`L${e+r/2},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function bg(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const{shapeSvg:a,bbox:s}=await at(e,t,rt(t)),l=s.width+(t.padding??0),o=s.height+(t.padding??0),n=l+o,h=.5,c=[{x:n/2,y:0},{x:n,y:-n/2},{x:n/2,y:-n},{x:0,y:-n/2}];let d;const{cssStyles:g}=t;if(t.look==="handDrawn"){const u=U.svg(a),m=G(t,{}),f=e1(0,0,n),y=u.path(f,m);d=a.insert(()=>y,":first-child").attr("transform",`translate(${-n/2+h}, ${n/2})`),g&&d.attr("style",g)}else d=He(a,n,n,c),d.attr("transform",`translate(${-n/2+h}, ${n/2})`);return i&&d.attr("style",i),K(t,d),t.calcIntersect=function(u,m){const f=u.width,y=[{x:f/2,y:0},{x:f,y:-f/2},{x:f/2,y:-f},{x:0,y:-f/2}],C=Y.polygon(u,y,m);return{x:C.x-.5,y:C.y-.5}},t.intersect=function(u){return this.calcIntersect(t,u)},a}p(bg,"question");async function kg(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const a=t.padding??0,s=t.look==="neo"?21:a??0,l=t.look==="neo"?12:a??0,{shapeSvg:o,bbox:n,label:h}=await at(e,t,rt(t)),c=((t==null?void 0:t.width)??n.width)+(t.look==="neo"?s*2:s),d=((t==null?void 0:t.height)??n.height)+(t.look==="neo"?l*2:l),g=-c/2,u=-d/2,m=u/2,f=[{x:g+m,y:u},{x:g,y:0},{x:g+m,y:-u},{x:-g,y:-u},{x:-g,y:u}],{cssStyles:y}=t,C=U.svg(o),b=G(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const T=gt(f),S=C.path(T,b),w=o.insert(()=>S,":first-child");return w.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",i),w.attr("transform",`translate(${-m/2},0)`),h.attr("transform",`translate(${-m/2-n.width/2-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),K(t,w),t.intersect=function(v){return Y.polygon(t,f,v)},o}p(kg,"rect_left_inv_arrow");async function Tg(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;let a;t.cssClasses?a="node "+t.cssClasses:a="node default";const s=e.insert("g").attr("class",a).attr("id",t.domId||t.id),l=s.insert("g"),o=s.insert("g").attr("class","label").attr("style",i),n=t.description,h=t.label,c=await Ye(o,h,t.labelStyle,!0,!0);let d={width:0,height:0};if(Qt(ft())){const _=c.children[0],q=ht(c);d=_.getBoundingClientRect(),q.attr("width",d.width),q.attr("height",d.height)}R.info("Text 2",n);const g=n||[],u=c.getBBox(),m=await Ye(o,Array.isArray(g)?g.join("<br/>"):g,t.labelStyle,!0,!0),f=m.children[0],y=ht(m);d=f.getBoundingClientRect(),y.attr("width",d.width),y.attr("height",d.height);const C=(t.padding||0)/2;ht(m).attr("transform","translate( "+(d.width>
229u.width?0:(u.width-d.width)/2)+", "+(u.height+C+5)+")"),ht(c).attr("transform","translate( "+(d.width<u.width?0:-(u.width-d.width)/2)+", 0)"),d=o.node().getBBox(),o.attr("transform","translate("+-d.width/2+", "+(-d.height/2-C+3)+")");const b=d.width+(t.padding||0),T=d.height+(t.padding||0),S=-d.width/2-C,w=-d.height/2-C;let v,k;if(t.look==="handDrawn"){const _=U.svg(s),q=G(t,{}),P=_.path(Je(S,w,b,T,t.rx||0),q),E=_.line(-d.width/2-C,-d.height/2-C+u.height+C,d.width/2+C,-d.height/2-C+u.height+C,q);k=s.insert(()=>(R.debug("Rough node insert CXC",P),E),":first-child"),v=s.insert(()=>(R.debug("Rough node insert CXC",P),P),":first-child")}else v=l.insert("rect",":first-child"),k=l.insert("line"),v.attr("class","outer title-state").attr("style",i).attr("x",-d.width/2-C).attr("y",-d.height/2-C).attr("width",d.width+(t.padding||0)).attr("height",d.height+(t.padding||0)),k.attr("class","divider").attr("x1",-d.width/2-C).attr("x2",d.width/2+C).attr("y1",-d.height/2-C+u.height+C).attr("y2",-d.height/2-C+u.height+C);return K(t,v),t.intersect=function(_){return Y.rect(t,_)},s}p(Tg,"rectWithTitle");async function Sg(e,t,{config:{themeVariables:r}}){const i=(r==null?void 0:r.radius)??5,a={rx:i,ry:i,labelPaddingX:((t==null?void 0:t.padding)??0)*1,labelPaddingY:((t==null?void 0:t.padding)??0)*1};return Ui(e,t,a)}p(Sg,"roundedRect");var rr=8;async function wg(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const a=t.look==="neo"?16:t.padding??0,s=t.look==="neo"?12:t.padding??0,{shapeSvg:l,bbox:o,label:n}=await at(e,t,rt(t)),h=((t==null?void 0:t.width)??o.width)+a*2+(t.look==="neo"?rr:rr*2),c=((t==null?void 0:t.height)??o.height)+s*2,d=h-rr,g=c,u=rr-h/2,m=-c/2,{cssStyles:f}=t,y=U.svg(l),C=G(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const b=[{x:u,y:m},{x:u+d,y:m},{x:u+d,y:m+g},{x:u-rr,y:m+g},{x:u-rr,y:m},{x:u,y:m},{x:u,y:m+g}],T=y.polygon(b.map(w=>[w.x,w.y]),C),S=l.insert(()=>T,":first-child");return S.attr("class","basic label-container outer-path").attr("style",Dt(f)),i&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),f&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),n.attr("transform",`translate(${rr/2-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),K(t,S),t.intersect=function(w){return Y.rect(t,w)},l}p(wg,"shadedProcess");async function Bg(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const a=t.padding??0,s=t.look==="neo"?16:a,l=t.look==="neo"?12:a;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-s*2,10),t.height=Math.max(((t==null?void 0:t.height)??0)/1.5-l*2,10));const{shapeSvg:o,bbox:n,label:h}=await at(e,t,rt(t)),c=(t!=null&&t.width?t==null?void 0:t.width:n.width)+s*2,d=((t!=null&&t.height?t==null?void 0:t.height:n.height)+l*2)*1.5,g=c,u=d/1.5,m=-g/2,f=-u/2,{cssStyles:y}=t,C=U.svg(o),b=G(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const T=[{x:m,y:f},{x:m,y:f+u},{x:m+g,y:f+u},{x:m+g,y:f-u/2}],S=gt(T),w=C.path(S,b),v=o.insert(()=>w,":first-child");return v.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",y),i&&t.look!=="handDrawn"&&v.selectChildren("path").attr("style",i),v.attr("transform",`translate(0, ${u/4})`),h.attr("transform",`translate(${-g/2+(t.padding??0)-(n.x-(n.left??0))}, ${-u/4+(t.padding??0)-(n.y-(n.top??0))})`),K(t,v),t.intersect=function(k){return Y.polygon(t,T,k)},o}p(Bg,"slopedRect");async function vg(e,t){const r=t.padding??0,i=t.look==="neo"?16:r*2,a=t.look==="neo"?12:r,s={rx:0,ry:0,labelPaddingX:t.labelPaddingX??i,labelPaddingY:a};return Ui(e,t,s)}p(vg,"squareRect");async function Lg(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const a=t.padding??0,s=t.look==="neo"?20:a,l=t.look==="neo"?12:a,{shapeSvg:o,bbox:n}=await at(e,t,rt(t)),h=n.height+(t.look==="neo"?l*2:l),c=n.width+h/4+(t.look==="neo"?s*2:s),d=h/2,{cssStyles:g}=t,u=U.svg(o),m=G(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const f=[{x:-c/2+d,y:-h/2},{x:c/2-d,y:-h/2},...Ii(-c/2+d,0,d,50,90,270),{x:c/2-d,y:h/2},...Ii(c/2-d,0,d,50,270,450)],y=gt(f),C=u.path(y,m),b=o.insert(()=>C,":first-child");return b.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",g),i&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",i),K(t,b),t.intersect=function(T){return Y.polygon(t,f,T)},o}p(Lg,"stadium");async function _g(e,t){const r={rx:t.look==="neo"?3:5,ry:t.look==="neo"?3:5};return Ui(e,t,r)}p(_g,"state");
229function Fg(e,t,{config:{themeVariables:r}}){var b,T;const{labelStyles:i,nodeStyles:a}=X(t);t.labelStyle=i;const{cssStyles:s}=t,{lineColor:l,stateBorder:o,nodeBorder:n,nodeShadow:h}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);const c=e.insert("g").attr("class","node default").attr("id",t.domId??t.id),d=U.svg(c),g=G(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const u=d.circle(0,0,t.width,{...g,stroke:l,strokeWidth:2}),m=o??n,f=(t.width??0)*5/14,y=d.circle(0,0,f,{...g,fill:m,stroke:m,strokeWidth:2,fillStyle:"solid"}),C=c.insert(()=>u,":first-child");if(C.insert(()=>y),t.look!=="handDrawn"&&C.attr("class","outer-path"),s&&C.selectAll("path").attr("style",s),a&&C.selectAll("path").attr("style",a),t.width<25&&h&&t.look!=="handDrawn"){const S=((T=(b=e.node())==null?void 0:b.ownerSVGElement)==null?void 0:T.id)??"",w=S?`${S}-drop-shadow-small`:"drop-shadow-small";C.attr("style",`filter:url(#${w})`)}return K(t,C),t.intersect=function(S){return Y.circle(t,(t.width??0)/2,S)},c}p(Fg,"stateEnd");function Ag(e,t,{config:{themeVariables:r}}){var o,n;const{lineColor:i,nodeShadow:a}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);const s=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let l;if(t.look==="handDrawn"){const c=U.svg(s).circle(0,0,t.width,cb(i));l=s.insert(()=>c),l.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14)}else l=s.insert("circle",":first-child"),l.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14);if(t.width<25&&a&&t.look!=="handDrawn"){const h=((n=(o=e.node())==null?void 0:o.ownerSVGElement)==null?void 0:n.id)??"",c=h?`${h}-drop-shadow-small`:"drop-shadow-small";l.attr("style",`filter:url(#${c})`)}return K(t,l),t.intersect=function(h){return Y.circle(t,(t.width??7)/2,h)},s}p(Ag,"stateStart");var vr=8;async function Mg(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const a=(t==null?void 0:t.padding)??8,s=t.look==="neo"?28:a,l=t.look==="neo"?12:a,{shapeSvg:o,bbox:n}=await at(e,t,rt(t)),h=((t==null?void 0:t.width)??n.width)+2*vr+s,
229c=((t==null?void 0:t.height)??n.height)+l,d=h-2*vr,g=c,u=-h/2,m=-c/2,f=[{x:0,y:0},{x:d,y:0},{x:d,y:-g},{x:0,y:-g},{x:0,y:0},{x:-8,y:0},{x:d+8,y:0},{x:d+8,y:-g},{x:-8,y:-g},{x:-8,y:0}];if(t.look==="handDrawn"){const y=U.svg(o),C=G(t,{}),b=y.rectangle(u,m,d+16,g,C),T=y.line(u+vr,m,u+vr,m+g,C),S=y.line(u+vr+d,m,u+vr+d,m+g,C);o.insert(()=>T,":first-child"),o.insert(()=>S,":first-child");const w=o.insert(()=>b,":first-child"),{cssStyles:v}=t;w.attr("class","basic label-container").attr("style",Dt(v)),K(t,w)}else{const y=He(o,d,g,f);i&&y.attr("style",i),K(t,y)}return t.intersect=function(y){return Y.polygon(t,f,y)},o}p(Mg,"subroutine");var Ps=.2;async function Eg(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const a=t.padding??0,s=t.look==="neo"?16:a,l=t.look==="neo"?12:a;(t.width||t.height)&&(t.height=Math.max(((t==null?void 0:t.height)??0)-l*2,10),t.width=Math.max(((t==null?void 0:t.width)??0)-s*2-Ps*(t.height+l*2),10));const{shapeSvg:o,bbox:n}=await at(e,t,rt(t)),h=(t!=null&&t.height?t==null?void 0:t.height:n.height)+l*2,c=Ps*h,d=Ps*h,u=(t!=null&&t.width?t==null?void 0:t.width:n.width)+s*2+c-c,m=h,f=-u/2,y=-m/2,{cssStyles:C}=t,b=U.svg(o),T=G(t,{}),S=[{x:f-c/2,y},{x:f+u+c/2,y},{x:f+u+c/2,y:y+m},{x:f-c/2,y:y+m}],w=[{x:f+u-c/2,y:y+m},{x:f+u+c/2,y:y+m},{x:f+u+c/2,y:y+m-d}];t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const v=gt(S),k=b.path(v,T),_=gt(w),q=b.path(_,{...T,fillStyle:"solid"}),P=o.insert(()=>q,":first-child");return P.insert(()=>k,":first-child"),P.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",C),i&&t.look!=="handDrawn"&&P.selectAll("path").attr("style",i),K(t,P),t.intersect=function(E){return Y.polygon(t,S,E)},o}p(Eg,"taggedRect");async function $g(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const{shapeSvg:a,bbox:s,label:l}=await at(e,t,rt(t)),o=Math.max(s.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),n=Math.max(s.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),h=n/8,c=.2*o,d=.2*n,g=n+h,{cssStyles:u}=t,m=U.svg(a),f=G(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const y=[{x:-o/2-o/2*.1,y:g/2},...Ke(-o/2-o/2*.1,g/2,o/2+o/2*.1,g/2,h,.8),{x:o/2+o/2*.1,y:-g/2},{x:-o/2-o/2*.1,y:-g/2}],C=-o/2+o/2*.1,b=-g/2-d*.4,T=[{x:C+o-c,y:(b+n)*1.3},{x:C+o,y:b+n-d},{x:C+o,y:(b+n)*.9},...Ke(C+o,(b+n)*1.25,C+o-c,(b+n)*1.3,-n*.02,.5)],S=gt(y),w=m.path(S,f),v=gt(T),k=m.path(v,{...f,fillStyle:"solid"}),_=a.insert(()=>k,":first-child");return _.insert(()=>w,":first-child"),_.attr("class","basic label-container outer-path"),u&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",u),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),_.attr("transform",`translate(0,${-h/2})`),l.attr("transform",`translate(${-o/2+(t.padding??0)-(s.x-(s.left??0))},${-n/2+(t.padding??0)-h/2-(s.y-(s.top??0))})`),K(t,_),t.intersect=function(q){return Y.polygon(t,y,q)},a}p($g,"taggedWaveEdgedRectangle");async function Og(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const{shapeSvg:a,bbox:s}=await at(e,t,rt(t)),l=Math.max(s.width+(t.padding??0),(t==null?void 0:t.width)||0),o=Math.max(s.height+(t.padding??0),(t==null?void 0:t.height)||0),n=-l/2,h=-o/2,c=a.insert("rect",":first-child");return c.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",n).attr("y",h).attr("width",l).attr("height",o),K(t,c),t.intersect=function(d){return Y.rect(t,d)},a}p(Og,"text");var r1=p((e,t,r,i,a,s)=>`M${e},${t} 230 a${a},${s} 0,0,1 0,${-i} 231 l${r},0 232 a${a},${s} 0,0,1 0,${i} 233 M${r},${-i} 234 a${a},${s} 0,0,0 0,${i} 235 l${-r},0`,"createCylinderPathD"),i1=p((e,t,r,i,a,s)=>[`M${e},${t}`,`M${e+r},${t}`,`a${a},${s} 0,0,0 0,${-i}`,`l${-r},0`,`a${a},${s} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),a1=p((e,t,r,i,a,s)=>[`M${e+r/2},${-i/2}`,`a${a},${s} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD"),jn=5,Yn=10;async function Ig(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const a=t.padding??0,s=t.look==="neo"?12:a/2;if(t.width||t.height){const f=t.height??0;t.height=(t.height??0)-s,t.height<jn&&(t.height=jn);const C=f/2/(2.5+f/50);t.width=(t.width??0)-s-C*3,t.width<Yn&&(t.width=Yn)}const{shapeSvg:l,bbox:o,label:n}=await at(e,t,rt(t)),h=(t.height?t.height:o.height)+s,c=h/2,d=c/(2.5+h/50),g=(t.width?t.width:o.width)+d+s,{cssStyles:u}=t;let m;if(t.look==="handDrawn"){const f=U.svg(l),y=i1(0,0,g,h,d,c),C=a1(0,0,g,h,d,c),b=f.path(y,G(t,{})),T=f.path(C,G(t,{fill:"none"}));m=l.insert(()=>T,":first-child"),m=l.insert(()=>b,":first-child"),m.attr("class","basic label-container"),u&&m.attr("style",u)}else{const f=r1(0,0,g,h,d,c);m=l.insert("path",":first-child").attr("d",f).attr("class","basic label-container").attr("style",Dt(u)).attr("style",i),m.attr("class","basic label-container outer-path"),u&&m.selectAll("path").attr("style",u),i&&m.selectAll("path").attr("style",i)}return m.attr("label-offset-x",d),m.attr("transform",`translate(${-g/2}, ${h/2} )`),n.attr("transform",`translate(${-(o.width/2)-d-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),K(t,m),t.intersect=function(f){const y=Y.rect(t,f),C=y.y-(t.y??0);if(c!=0&&(Math.abs(C)<(t.height??0)/2||Math.abs(C)==(t.height??0)/2&&Math.abs(y.x-(t.x??0))>(t.width??0)/2-d)){let b=d*d*(1-C*C/(c*c));b!=0&&(b=Math.sqrt(Math.abs(b))),b=d-b,f.x-(t.x??0)>0&&(b=-b),y.x+=b}return y},l}p(Ig,"tiltedCylinder");async function Dg(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const a=t.padding??0,s=(t.look==="neo",a),l=t.look==="neo"?a*2:a,{shapeSvg:o,bbox:n}=await at(e,t,rt(t)),h=((t==null?void 0:t.height)??n.height)+s,c=((t==null?void 0:t.width)??n.width)+l,d=[{x:-3*h/6,y:0},{x:c+3*h/6,y:0},{x:c,y:-h},{x:0,y:-h}];let g;const{cssStyles:u}=t;if(t.look==="handDrawn"){const m=U.svg(o),f=G(t,{}),y=gt(d),C=m.path(y,f);g=o.insert(()=>C,":first-child").attr("transform",`translate(${-c/2}, ${h/2})`),u&&g.attr("style",u)}else g=He(o,c,h,d);return i&&g.attr("style",i),t.width=c,t.height=h,K(t,g),t.intersect=function(m){return Y.polygon(t,d,m)},o}p(Dg,"trapezoid");async function Pg(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const a=t.padding??0,s=t.look==="neo"?16:a,l=t.look==="neo"?12:a,o=15,n=5;(t.width||t.height)&&(t.height=(t.height??0)-l*2,t.height<n&&(t.height=n),t.width=(t.width??0)-s*2,t.width<o&&(t.width=o));const{shapeSvg:h,bbox:c}=await at(e,t,rt(t)),d=(t!=null&&t.width?t==null?void 0:t.width:c.width)+s*2,g=(t!=null&&t.height?t==null?void 0:t.height:c.height)+l*2,{cssStyles:u}=t,m=U.svg(h),f=G(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const y=[{x:-d/2*.8,y:-g/2},{x:d/2*.8,y:-g/2},{x:d/2,y:-g/2*.6},{x:d/2,y:g/2},{x:-d/2,y:g/2},{x:-d/2,y:-g/2*.6}],C=gt(y),b=m.path(C,f),T=h.insert(()=>b,":first-child");return T.attr("class","basic label-container outer-path"),u&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",u),i&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",i),K(t,T),t.intersect=function(S){return Y.polygon(t,y,S)},h}p(Pg,"trapezoidalPentagon");var Un=10,Gn=10;async function Rg(e,t){var S;const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const a=t.padding??0,s=t.look==="neo"?a*2:a;(t.width||t.height)&&(t.width=(((t==null?void 0:t.width)??0)-s)/2,t.width<Gn&&(t.width=Gn),t.height=(t==null?void 0:t.height)??0,t.height<Un&&(t.height=Un));const{shapeSvg:l,bbox:o,label:n}=await at(e,t,rt(t)),h=We((S=ft().flowchart)==null?void 0:S.htmlLabels),c=(t!=null&&t.width?t==null?void 0:t.width:o.width)+s,d=t!=null&&t.height?t==null?void 0:t.height:c+o.height,g=d,u=[{x:0,y:0},{x:g,y:0},{x:g/2,y:-d}],{cssStyles:m}=t,f=U.svg(l),y=G(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const C=gt(u),b=f.path(C,y),T=l.insert(()=>b,":first-child").attr("transform",`translate(${-d/2}, ${d/2})`).attr("class","outer-path");return m&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",m),i&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",i),t.width=c,t.height=d,K(t,T),n.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}
235, ${d/2-(o.height+(t.padding??0)/(h?2:1)-(o.y-(o.top??0)))})`),t.intersect=function(w){return R.info("Triangle intersect",t,u,w),Y.polygon(t,u,w)},l}p(Rg,"triangle");async function qg(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const a=t.padding??0,s=t.look==="neo"?16:a,l=t.look==="neo"?12:a;let o=!0;(t.width||t.height)&&(o=!1,t.width=((t==null?void 0:t.width)??0)-s*2,t.width<10&&(t.width=10),t.height=((t==null?void 0:t.height)??0)-l*2,t.height<10&&(t.height=10));const{shapeSvg:n,bbox:h,label:c}=await at(e,t,rt(t)),d=(t!=null&&t.width?t==null?void 0:t.width:h.width)+(s??0)*2,g=(t!=null&&t.height?t==null?void 0:t.height:h.height)+(l??0)*2,u=t.look==="neo"?g/4:g/8,m=g+(o?u:-u),{cssStyles:f}=t,C=14-d,b=C>0?C/2:0,T=U.svg(n),S=G(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const w=[{x:-d/2-b,y:m/2},...Ke(-d/2-b,m/2,d/2+b,m/2,u,.8),{x:d/2+b,y:-m/2},{x:-d/2-b,y:-m/2}],v=gt(w),k=T.path(v,S),_=n.insert(()=>k,":first-child");return _.attr("class","basic label-container outer-path"),f&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),_.attr("transform",`translate(0,${-u/2})`),c.attr("transform",`translate(${-d/2+(t.padding??0)-(h.x-(h.left??0))},${-g/2+(t.padding??0)-u-(h.y-(h.top??0))})`),K(t,_),t.intersect=function(q){return Y.polygon(t,w,q)},n}p(qg,"waveEdgedRectangle");async function Wg(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const a=t.padding??0,s=t.look==="neo"?16:a,l=t.look==="neo"?20:a;if(t.width||t.height){t.width=(t==null?void 0:t.width)??0,t.width<20&&(t.width=20),t.height=(t==null?void 0:t.height)??0,t.height<10&&(t.height=10);const S=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-l-S*(20/9)),t.width=t.width-s*2}const{shapeSvg:o,bbox:n}=await at(e,t,rt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:n.width)+s*2,c=(t!=null&&t.height?t==null?void 0:t.height:n.height)+l,d=c/8,g=c+d*2,{cssStyles:u}=t,m=U.svg(o),f=G(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const y=[{x:-h/2,y:g/2},...Ke(-h/2,g/2,h/2,g/2,d,1),{x:h/2,y:-g/2},...Ke(h/2,-g/2,-h/2,-g/2,d,-1)],C=gt(y),b=m.path(C,f),T=o.insert(()=>b,":first-child");return T.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",u),i&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",i),K(t,T),t.intersect=function(S){return Y.polygon(t,y,S)},o}p(Wg,"waveRectangle");var vt=10;async function zg(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const a=t.look==="neo"?16:t.padding??0,s=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-a*2-vt,10),t.height=Math.max(((t==null?void 0:t.height)??0)-s*2-vt,10));const{shapeSvg:l,bbox:o,label:n}=await at(e,t,rt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:o.width)+a*2+vt,c=(t!=null&&t.height?t==null?void 0:t.height:o.height)+s*2+vt,d=h-vt,g=c-vt,u=-d/2,m=-g/2,{cssStyles:f}=t,y=U.svg(l),C=G(t,{}),b=[{x:u-vt,y:m-vt},{x:u-vt,y:m+g},{x:u+d,y:m+g},{x:u+d,y:m-vt}],T=`M${u-vt},${m-vt} L${u+d},${m-vt} L${u+d},${m+g} L${u-vt},${m+g} L${u-vt},${m-vt} 236 M${u-vt},${m} L${u+d},${m} 237 M${u},${m-vt} L${u},${m+g}`;t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const S=y.path(T,C),w=l.insert(()=>S,":first-child");return w.attr("transform",`translate(${vt/2}, ${vt/2})`),w.attr("class","basic label-container outer-path"),f&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",i),n.attr("transform",`translate(${-(o.width/2)+vt/2-(o.x-(o.left??0))}, ${-(o.height/2)+vt/2-(o.y-(o.top??0))})`),K(t,w),t.intersect=function(v){return Y.polygon(t,b,v)},l}p(zg,"windowPane");var Xn=new Set(["redux-color","redux-dark-color"]),s1=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function Cl(e,t){var bt,_t,Mt,ie;const r=t;r.alias&&(t.label=r.alias);const{theme:i,themeVariables:a}=Bt(),{rowEven:s,rowOdd:l,nodeBorder:o,borderColorArray:n}=a;if(t.look==="handDrawn"){const{themeVariables:Q}=Bt(),{background:nt}=Q,Ct={...t,id:t.id+"-background",domId:(t.domId||t.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${nt}`]};await Cl(e,Ct)}const h=Bt();t.useHtmlLabels=h.htmlLabels;let c=((bt=h.er)==null?void 0:bt.diagramPadding)??10,d=((_t=h.er)==null?void 0:_t.entityPadding)??6;const{cssStyles:g}=t,{labelStyles:u,nodeStyles:m}=X(t);if(r.attributes.length===0&&t.label){const Q={rx:0,ry:0,labelPaddingX:c,labelPaddingY:c*1.5};qe(t.label,h)+Q.labelPaddingX*2<h.er.minEntityWidth&&(t.width=h.er.minEntityWidth);const nt=await Ui(e,t,Q);if(i!=null&&Xn.has(i)){const Ct=r.colorIndex??0;nt.attr("data-color-id",`color-${Ct%n.length}`)}
237if(!We(h.htmlLabels)){const Ct=nt.select("text"),kt=(Mt=Ct.node())==null?void 0:Mt.getBBox();Ct.attr("transform",`translate(${-kt.width/2}, 0)`)}return nt}h.htmlLabels||(c*=1.25,d*=1.25);let f=rt(t);f||(f="node default");const y=e.insert("g").attr("class",f).attr("id",t.domId||t.id),C=await _r(y,t.label??"",h,0,0,["name"],u);C.height+=d;let b=0;const T=[],S=[];let w=0,v=0,k=0,_=0,q=!0,P=!0;for(const Q of r.attributes){const nt=await _r(y,Q.type,h,0,b,["attribute-type"],u);w=Math.max(w,nt.width+c);const Ct=await _r(y,Q.name,h,0,b,["attribute-name"],u);v=Math.max(v,Ct.width+c);const kt=await _r(y,Q.keys.join(),h,0,b,["attribute-keys"],u);k=Math.max(k,kt.width+c);const ne=await _r(y,Q.comment,h,0,b,["attribute-comment"],u);_=Math.max(_,ne.width+c);const Wt=Math.max(nt.height,Ct.height,kt.height,ne.height)+d;S.push({yOffset:b,rowHeight:Wt}),b+=Wt}let E=4;k<=c&&(q=!1,k=0,E--),_<=c&&(P=!1,_=0,E--);const j=y.node().getBBox();if(C.width+c*2-(w+v+k+_)>0){const Q=C.width+c*2-(w+v+k+_);w+=Q/E,v+=Q/E,k>0&&(k+=Q/E),_>0&&(_+=Q/E)}const W=w+v+k+_,D=U.svg(y),M=G(t,{});t.look!=="handDrawn"&&(M.roughness=0,M.fillStyle="solid");let F=0;S.length>0&&(F=S.reduce((Q,nt)=>Q+((nt==null?void 0:nt.rowHeight)??0),0));const I=Math.max(j.width+c*2,(t==null?void 0:t.width)||0,W),A=Math.max((F??0)+C.height,(t==null?void 0:t.height)||0),z=-I/2,H=-A/2;if(y.selectAll("g:not(:first-child)").each((Q,nt,Ct)=>{const kt=ht(Ct[nt]),ne=kt.attr("transform");let Wt=0,br=0;if(ne){const xe=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(ne);xe&&(Wt=parseFloat(xe[1]),br=parseFloat(xe[2]),kt.attr("class").includes("attribute-name")?Wt+=w:kt.attr("class").includes("attribute-keys")?Wt+=w+v:kt.attr("class").includes("attribute-comment")&&(Wt+=w+v+k))}kt.attr("transform",`translate(${z+c/2+Wt}, ${br+H+C.height+d/2})`)}),y.select(".name").attr("transform","translate("+-C.width/2+", "+(H+d/2)+")"),i!=null&&Xn.has(i)){const Q=r.colorIndex??0;y.attr("data-color-id",`color-${Q%n.length}`)}const V=D.rectangle(z,H,I,A,M),ct=y.insert(()=>V,":first-child").attr("class","outer-path").attr("style",g.join(""));T.push(0);for(const[Q,nt]of S.entries()){const kt=(Q+1)%2===0&&nt.yOffset!==0,ne=D.rectangle(z,C.height+H+(nt==null?void 0:nt.yOffset),I,nt==null?void 0:nt.rowHeight,{...M,fill:kt?s:l,stroke:o});y.insert(()=>ne,"g.label").attr("style",g.join("")).attr("class",`row-rect-${kt?"even":"odd"}`)}const it=1e-4;let ut=Fr(z,C.height+H,I+z,C.height+H,it),et=D.polygon(ut.map(Q=>[Q.x,Q.y]),M);if(y.insert(()=>et).attr("class","divider"),ut=Fr(w+z,C.height+H,w+z,A+H,it),et=D.polygon(ut.map(Q=>[Q.x,Q.y]),M),y.insert(()=>et).attr("class","divider"),q){const Q=w+v+z;ut=Fr(Q,C.height+H,Q,A+H,it),et=D.polygon(ut.map(nt=>[nt.x,nt.y]),M),y.insert(()=>et).attr("class","divider")}if(P){const Q=w+v+k+z;ut=Fr(Q,C.height+H,Q,A+H,it),et=D.polygon(ut.map(nt=>[nt.x,nt.y]),M),y.insert(()=>et).attr("class","divider")}for(const Q of T){const nt=C.height+H+Q;ut=Fr(z,nt,I+z,nt,it),et=D.polygon(ut.map(Ct=>[Ct.x,Ct.y]),M),y.insert(()=>et).attr("class","divider")}if(K(t,ct),m&&t.look!=="handDrawn")if(i!=null&&s1.has(i))y.selectAll("path").attr("style",m);else{const Q=m.split(";"),nt=(ie=Q==null?void 0:Q.filter(Ct=>Ct.includes("stroke")))==null?void 0:ie.map(Ct=>`${Ct}`).join("; ");y.selectAll("path").attr("style",nt??""),y.selectAll(".row-rect-even path").attr("style",m)}return t.intersect=function(Q){return Y.rect(t,Q)},y}p(Cl,"erBox");async function _r(e,t,r,i=0,a=0,s=[],l=""){const o=e.insert("g").attr("class",`label ${s.join(" ")}`).attr("transform",`translate(${i}, ${a})`).attr("style",l);t!==Zl(t)&&(t=Zl(t),t=t.replaceAll("<","<").replaceAll(">",">"));const n=o.node().appendChild(await Ne(o,t,{width:qe(t,r)+100,style:l,useHtmlLabels:r.htmlLabels},r));if(t.includes("<")||t.includes(">")){let c=n.children[0];for(c.textContent=c.textContent.replaceAll("<","<").replaceAll(">",">");c.childNodes[0];)c=c.childNodes[0],c.textContent=c.textContent.replaceAll("<","<").replaceAll(">",">")}let h=n.getBBox();if(We(r.htmlLabels)){const c=n.children[0];c.style.textAlign="start";const d=ht(n);h=c.getBoundingClientRect(),d.attr("width",h.width),d.attr("height",h.height)}return h}p(_r,"addText");function Fr(e,t,r,i,a){return e===r?[{x:e-a/2,y:t},{x:e+a/2,y:t},{x:r+a/2,y:i},{x:r-a/2,y:i}]:[{x:e,y:t-a/2},{x:e,y:t+a/2},{x:r,y:i+a/2},{x:r,y:i-a/2}]}p(Fr,"lineToPolygon");async function Ng(e,t,r,i,a=r.class.padding??12){const s=i?0:3,l=e.insert("g").attr("class",rt(t)).attr("id",t.domId||t.id);let o=null,n=null,h=null,c=null,d=0,g=0,u=0;if(o=l.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const b=t.annotations[0];await ki(o,{text:`«${b}»`},0),d=o.node().getBBox().height}n=l.insert("g").attr("class","label-group text"),await ki(n,t,0,["font-weight: bolder"]);const m=n.node().getBBox();g=m.height,h=l.insert("g").attr("class","members-group text");let f=0;for(const b of t.members){const T=await ki(h,b,f,[b.parseClassifier()]);f+=T+s}u=h.node().getBBox().height,u<=0&&(u=a/2),c=l.insert("g").attr("class","methods-group text");let y=0;for(const b of t.methods){const T=await ki(c,b,y,[b.parseClassifier()]);y+=T+s}let C=l.node().getBBox();if(o!==null){const b=o.node().getBBox();o.attr("transform",`translate(${-b.width/2})`)}return n.attr("transform",`translate(${-m.width/2}, ${d})`),C=l.node().getBBox(),h.attr("transform",`translate(0, ${d+g+a*2})`),C=l.node().getBBox(),c.attr("transform",`translate(0, ${d+g+(u?u+a*4:a*2)})`),C=l.node().getBBox(),{shapeSvg:l,bbox:C}}p(Ng,"textHelper");async function ki(e,t,r,i=[]){const a=e.insert("g").attr("class","label").attr("style",i.join(";
237 ")),s=Bt();let l="useHtmlLabels"in t?t.useHtmlLabels:We(s.htmlLabels)??!0,o="";"text"in t?o=t.text:o=t.label,!l&&o.startsWith("\\")&&(o=o.substring(1)),_i(o)&&(l=!0);const n=await Ne(a,qo(gr(o)),{width:qe(o,s)+50,classes:"markdown-node-label",useHtmlLabels:l},s);let h,c=1;if(l){const d=n.children[0],g=ht(n);c=d.innerHTML.split("<br>").length,d.innerHTML.includes("</math>")&&(c+=d.innerHTML.split("<mrow>").length-1);const u=d.getElementsByTagName("img");if(u){const m=o.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...u].map(f=>new Promise(y=>{function C(){var b;if(f.style.display="flex",f.style.flexDirection="column",m){const T=((b=s.fontSize)==null?void 0:b.toString())??window.getComputedStyle(document.body).fontSize,w=parseInt(T,10)*5+"px";f.style.minWidth=w,f.style.maxWidth=w}else f.style.width="100%";y(f)}p(C,"setupImage"),setTimeout(()=>{f.complete&&C()}),f.addEventListener("error",C),f.addEventListener("load",C)})))}h=d.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height)}else{i.includes("font-weight: bolder")&&ht(n).selectAll("tspan").attr("font-weight",""),c=n.children.length;const d=n.children[0];(n.textContent===""||n.textContent.includes(">"))&&(d.textContent=o[0]+o.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),o[1]===" "&&(d.textContent=d.textContent[0]+" "+d.textContent.substring(1))),d.textContent==="undefined"&&(d.textContent=""),h=n.getBBox()}return a.attr("transform","translate(0,"+(-h.height/(2*c)+r)+")"),h.height}p(ki,"addText");async function Hg(e,t){var D,M;const r=ft(),{themeVariables:i}=r,{useGradient:a}=i,s=r.class.padding??12,l=s,o=t.useHtmlLabels??We(r.htmlLabels)??!0,n=t;n.annotations=n.annotations??[],n.members=n.members??[],n.methods=n.methods??[];const{shapeSvg:h,bbox:c}=await Ng(e,t,r,o,l),{labelStyles:d,nodeStyles:g}=X(t);t.labelStyle=d,t.cssStyles=n.styles||"";const u=((D=n.styles)==null?void 0:D.join(";"))||g||"";t.cssStyles||(t.cssStyles=u.replaceAll("!important","").split(";"));const m=n.members.length===0&&n.methods.length===0&&!((M=r.class)!=null&&M.hideEmptyMembersBox),f=U.svg(h),y=G(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const C=Math.max(t.width??0,c.width);let b=Math.max(t.height??0,c.height);const T=(t.height??0)>c.height;n.members.length===0&&n.methods.length===0?b+=l:n.members.length>0&&n.methods.length===0&&(b+=l*2);const S=-C/2,w=-b/2;let v=m?s*2:n.members.length===0&&n.methods.length===0?-s:0;T&&(v=s*2);const k=f.rectangle(S-s,w-s-(m?s:n.members.length===0&&n.methods.length===0?-s/2:0),C+2*s,b+2*s+v,y),_=h.insert(()=>k,":first-child");_.attr("class","basic label-container outer-path");const q=_.node().getBBox(),P=h.select(".annotation-group").node().getBBox().height-(m?s/2:0)||0,E=h.select(".label-group").node().getBBox().height-(m?s/2:0)||0,j=h.select(".members-group").node().getBBox().height-(m?s/2:0)||0,W=(P+E+w+s-(w-s-(m?s:n.members.length===0&&n.methods.length===0?-s/2:0)))/2;if(h.selectAll(".text").each((F,I,A)=>{var ut,et;const z=ht(A[I]),H=z.attr("transform");let V=0;if(H){const _t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(H);_t&&(V=parseFloat(_t[2]))}let ct=V+w+s-(m?s:n.members.length===0&&n.methods.length===0?-s/2:0);if(z.attr("class").includes("methods-group")){const bt=Math.max(j,l/2);T?ct=Math.max(W,P+E+bt+w+l*2+s)+l*2:ct=P+E+bt+w+l*4+s}n.members.length===0&&n.methods.length===0&&((ut=r.class)!=null&&ut.hideEmptyMembersBox)&&(n.annotations.length>0?ct=V-l:ct=V),o||(ct-=4);let it=S;(z.attr("class").includes("label-group")||z.attr("class").includes("annotation-group"))&&(it=-((et=z.node())==null?void 0:et.getBBox().width)/2||0,h.selectAll("text").each(function(bt,_t,Mt){window.getComputedStyle(Mt[_t]).textAnchor==="middle"&&(it=0)})),z.attr("transform",`translate(${it}, ${ct})`)}),n.members.length>0||n.methods.length>0||m){const F=P+E+w+s,I=f.line(q.x,F,q.x+q.width,F+.001,y);h.insert(()=>I).attr("class",`divider${t.look==="neo"&&!a?" neo-line":""}`).attr("style",u)}if(m||n.members.length>0||n.methods.length>0){const F=P+E+j+w+l*2+s,I=f.line(q.x,T?Math.max(W,F):F,q.x+q.width,(T?Math.max(W,F):F)+.001,y);h.insert(()=>I).attr("class",`divider${t.look==="neo"&&!a?" neo-line":""}`).attr("style",u)}if(n.look!=="handDrawn"&&h.selectAll("path").attr("style",u),_.select(":nth-child(2)").attr("style",u),h.selectAll(".divider").select("path").attr("style",u),t.labelStyle?h.selectAll("span").attr("style",t.labelStyle):h.selectAll("span").attr("style",u),!o){const F=RegExp(/color\s*:\s*([^;]*)/),I=F.exec(u);if(I){const A=I[0].replace("color","fill");h.selectAll("tspan").attr("style",A)}else if(d){const A=F.exec(d);if(A){const z=A[0].replace("color","fill");h.selectAll("tspan").attr("style",z)}}}return K(t,_),t.intersect=function(F){return Y.rect(t,F)},h}
237p(Hg,"classBox");async function jg(e,t){var q,P;const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const a=t,s=t,l=20,o=20,n="verifyMethod"in t,h=rt(t),{themeVariables:c}=ft(),{borderColorArray:d,requirementEdgeLabelBackground:g}=c,u=e.insert("g").attr("class",h).attr("id",t.domId??t.id);let m;n?m=await we(u,`<<${a.type}>>`,0,t.labelStyle):m=await we(u,"<<Element>>",0,t.labelStyle);let f=m;const y=await we(u,a.name,f,t.labelStyle+"; font-weight: bold;");if(f+=y+o,n){const E=await we(u,`${a.requirementId?`ID: ${a.requirementId}`:""}`,f,t.labelStyle);f+=E;const j=await we(u,`${a.text?`Text: ${a.text}`:""}`,f,t.labelStyle);f+=j;const W=await we(u,`${a.risk?`Risk: ${a.risk}`:""}`,f,t.labelStyle);f+=W,await we(u,`${a.verifyMethod?`Verification: ${a.verifyMethod}`:""}`,f,t.labelStyle)}else{const E=await we(u,`${s.type?`Type: ${s.type}`:""}`,f,t.labelStyle);f+=E,await we(u,`${s.docRef?`Doc Ref: ${s.docRef}`:""}`,f,t.labelStyle)}const C=(((q=u.node())==null?void 0:q.getBBox().width)??200)+l,b=(((P=u.node())==null?void 0:P.getBBox().height)??200)+l,T=-C/2,S=-b/2,w=U.svg(u),v=G(t,{});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const k=w.rectangle(T,S,C,b,v),_=u.insert(()=>k,":first-child");if(_.attr("class","basic label-container outer-path").attr("style",i),d!=null&&d.length){const E=t.colorIndex??0;u.attr("data-color-id",`color-${E%d.length}`)}if(u.selectAll(".label").each((E,j,W)=>{const D=ht(W[j]),M=D.attr("transform");let F=0,I=0;if(M){const V=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(M);V&&(F=parseFloat(V[1]),I=parseFloat(V[2]))}const A=I-b/2;let z=T+l/2;(j===0||j===1)&&(z=F),D.attr("transform",`translate(${z}, ${A+l})`)}),f>m+y+o){const E=S+m+y+o;let j;if(t.look==="neo"){const M=[[T,E],[T+C,E],[T+C,E+.001],[T,E+.001]];j=w.polygon(M,v)}else j=w.line(T,E,T+C,E,v);u.insert(()=>j).attr("class","divider")}return K(t,_),t.intersect=function(E){return Y.rect(t,E)},i&&t.look!=="handDrawn"&&(g||d!=null&&d.length)&&u.selectAll("path").attr("style",i),u}p(jg,"requirementBox");async function we(e,t,r,i=""){if(t==="")return 0;const a=e.insert("g").attr("class","label").attr("style",i),s=ft(),l=s.htmlLabels??!0,o=await Ne(a,qo(gr(t)),{width:qe(t,s)+50,classes:"markdown-node-label",useHtmlLabels:l,style:i},s);let n;if(l){const h=o.children[0],c=ht(o);n=h.getBoundingClientRect(),c.attr("width",n.width),c.attr("height",n.height)}else{const h=o.children[0];for(const c of h.children)i&&c.setAttribute("style",i);n=o.getBBox(),n.height+=6}return a.attr("transform",`translate(${-n.width/2},${-n.height/2+r})`),n.height}p(we,"addText");var o1=p(e=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function Yg(e,t,{config:r}){var j,W;const{labelStyles:i,nodeStyles:a}=X(t);t.labelStyle=i||"";const s=10,l=t.width;t.width=(t.width??200)-10;const{shapeSvg:o,bbox:n,label:h}=await at(e,t,rt(t)),c=t.padding||10;let d="",g;"ticket"in t&&t.ticket&&((j=r==null?void 0:r.kanban)!=null&&j.ticketBaseUrl)&&(d=(W=r==null?void 0:r.kanban)==null?void 0:W.ticketBaseUrl.replace("#TICKET#",t.ticket),g=o.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",d).attr("target","_blank"));const u={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let m,f;g?{label:m,bbox:f}=await Ds(g,"ticket"in t&&t.ticket||"",u):{label:m,bbox:f}=await Ds(o,"ticket"in t&&t.ticket||"",u);const{label:y,bbox:C}=await Ds(o,"assigned"in t&&t.assigned||"",u);t.width=l;const b=10,T=(t==null?void 0:t.width)||0,S=Math.max(f.height,C.height)/2,w=Math.max(n.height+b*2,(t==null?void 0:t.height)||0)+S,v=-T/2,k=-w/2;h.attr("transform","translate("+(c-T/2)+", "+(-S-n.height/2)+")"),m.attr("transform","translate("+(c-T/2)+", "+(-S+n.height/2)+")"),y.attr("transform","translate("+(c+T/2-C.width-2*s)+", "+(-S+n.height/2)+")");let _;const{rx:q,ry:P}=t,{cssStyles:E}=t;if(t.look==="handDrawn"){const D=U.svg(o),M=G(t,{}),F=q||P?D.path(Je(v,k,T,w,q||0),M):D.rectangle(v,k,T,w,M);_=o.insert(()=>F,":first-child"),_.attr("class","basic label-container").attr("style",E||null)}else{_=o.insert("rect",":first-child"),_.attr("class","basic label-container __APA__").attr("style",a).attr("rx",q??5).attr("ry",P??5).attr("x",v).attr("y",k).attr("width",T).attr("height",w);const D="priority"in t&&t.priority;if(D){const M=o.append("line"),F=v+2,I=k+Math.floor((q??0)/2),A=k+w-Math.floor((q??0)/2);M.attr("x1",F).attr("y1",I).attr("x2",F).attr("y2",A).attr("stroke-width","4").attr("stroke",o1(D))}}return K(t,_),t.height=w,t.intersect=function(D){return Y.rect(t,D)},o}p(Yg,"kanbanItem");async function Ug(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const{shapeSvg:a,bbox:s,halfPadding:l,label:o}=await at(e,t,rt(t)),n=s.width+10*l,h=s.height+8*l,c=.15*n,{cssStyles:d}=t,g=s.width+20,u=s.height+20,m=Math.max(n,g),f=Math.max(h,u);o.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`);let y;const C=`M0 0 238 a${c},${c} 1 0,0 ${m*.25},${-1*f*.1} 239 a${c},${c} 1 0,0 ${m*.25},0 240 a${c},${c} 1 0,0 ${m*.25},0 241 a${c},${c} 1 0,0 ${m*.25},${f*.1} 242 243 a${c},${c} 1 0,0 ${m*.15},${f*.33} 244 a${c*.8},${c*.8} 1 0,0 0,${f*.34} 245 a${c},${c} 1 0,0 ${-1*m*.15},${f*.33} 246 247 a${c},${c} 1 0,0 ${-1*m*.25},${f*.15} 248 a${c},${c} 1 0,0 ${-1*m*.25},0 249 a${c},${c} 1 0,0 ${-1*m*.25},0 250 a${c},${c} 1 0,0 ${-1*m*.25},${-1*f*.15} 251 252 a${c},${c} 1 0,0 ${-1*m*.1},${-1*f*.33} 253 a${c*.8},${c*.8} 1 0,0 0,${-1*f*.34} 254 a${c},${c} 1 0,0 ${m*.1},${-1*f*.33} 255 H0 V0 Z`;if(t.look==="handDrawn"){const b=U.svg(a),T=G(t,{}),S=b.path(C,T);y=a.insert(()=>S,":first-child"),y.attr("class","basic label-container").attr("style",Dt(d))}else y=a.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",C);return y.attr("transform",`translate(${-m/2}, ${-f/2})`),K(t,y),t.calcIntersect=function(b,T){return Y.rect(b,T)},t.intersect=function(b){return R.info("Bang intersect",t,b),Y.re
255ct(t,b)},a}p(Ug,"bang");async function Gg(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const{shapeSvg:a,bbox:s,halfPadding:l,label:o}=await at(e,t,rt(t)),n=s.width+2*l,h=s.height+2*l,c=.15*n,d=.25*n,g=.35*n,u=.2*n,{cssStyles:m}=t;let f;const y=`M0 0 256 a${c},${c} 0 0,1 ${n*.25},${-1*n*.1} 257 a${g},${g} 1 0,1 ${n*.4},${-1*n*.1} 258 a${d},${d} 1 0,1 ${n*.35},${n*.2} 259 260 a${c},${c} 1 0,1 ${n*.15},${h*.35} 261 a${u},${u} 1 0,1 ${-1*n*.15},${h*.65} 262 263 a${d},${c} 1 0,1 ${-1*n*.25},${n*.15} 264 a${g},${g} 1 0,1 ${-1*n*.5},0 265 a${c},${c} 1 0,1 ${-1*n*.25},${-1*n*.15} 266 267 a${c},${c} 1 0,1 ${-1*n*.1},${-1*h*.35} 268 a${u},${u} 1 0,1 ${n*.1},${-1*h*.65} 269 H0 V0 Z`;if(t.look==="handDrawn"){const C=U.svg(a),b=G(t,{}),T=C.path(y,b);f=a.insert(()=>T,":first-child"),f.attr("class","basic label-container").attr("style",Dt(m))}else f=a.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",y);return o.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`),f.attr("transform",`translate(${-n/2}, ${-h/2})`),K(t,f),t.calcIntersect=function(C,b){return Y.rect(C,b)},t.intersect=function(C){return R.info("Cloud intersect",t,C),Y.rect(t,C)},a}p(Gg,"cloud");async function Xg(e,t){const{labelStyles:r,nodeStyles:i}=X(t);t.labelStyle=r;const{shapeSvg:a,bbox:s,halfPadding:l,label:o}=await at(e,t,rt(t)),n=s.width+8*l,h=s.height+2*l,c=5,d=t.look==="neo"?` 270 M${-n/2} ${h/2-c} 271 v${-h+2*c} 272 q0,-${c} ${c},-${c} 273 h${n-2*c} 274 q${c},0 ${c},${c} 275 v${h-c} 276 H${-n/2} 277 Z 278 `:` 279 M${-n/2} ${h/2-c} 280 v${-h+2*c} 281 q0,-${c} ${c},-${c} 282 h${n-2*c} 283 q${c},0 ${c},${c} 284 v${h-2*c} 285 q0,${c} ${-c},${c} 286 h${-(n-2*c)} 287 q${-c},0 ${-c},${-c} 288 Z 289 `;if(!t.domId)throw new Error(`defaultMindmapNode: node "${t.id}" is missing a domId — was render.ts domId prefixing skipped?`);const g=a.append("path").attr("id",t.domId).attr("class","node-bkg node-"+t.type).attr("style",i).attr("d",d);return a.append("line").attr("class","node-line-").attr("x1",-n/2).attr("y1",h/2).attr("x2",n/2).attr("y2",h/2),o.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`),a.append(()=>o.node()),K(t,g),t.calcIntersect=function(u,m){return Y.rect(u,m)},t.intersect=function(u){return Y.rect(t,u)},a}p(Xg,"defaultMindmapNode");async function Vg(e,t){const r={padding:t.padding??0};return yl(e,t,r)}p(Vg,"mindmapCircle");var l1=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:vg},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:Sg},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:Lg},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:Mg},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:Zu},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:yl},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:Ug},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:Gg}
289,{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:bg},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:ig},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:gg},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:ug},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:Dg},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:cg},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:Qu},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:Og}
289,{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:Nu},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:wg},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:Ag},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:Fg},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:eg},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:ag},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Uu},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:Gu},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:Xu},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:pg}
289,{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:qg},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:rg},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:Ig},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:fg},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Vu},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:Ku},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:Rg},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:zg},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:Ju},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:Pg},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:tg},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:Bg},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:Cg},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:yg},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:zu},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Yu},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:$g},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:Eg},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:Wg},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:kg},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:mg}],n1=p(()=>{const t=[...Object.entries({state:_g,choice:Hu,note:xg,rectWithTitle:Tg,labelRect:dg,iconSquare:ng,iconCircle:og,icon:sg,iconRounded:lg,imageSquare:hg,anchor:qu,kanbanItem:Yg,mindmapCircle:Vg,defaultMindmapNode:Xg,classBox:Hg,erBox:Cl,requirementBox:jg}),...l1.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(a=>[a,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),Zg=n1();function h1(e){return e in Zg}p(h1,"isValidShape");var hs=new Map;async function Kg(e,t,r){let i,a;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const s=t.shape?Zg[t.shape]:void 0;if(!s)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let l;r.config.securityLevel==="sandbox"?l="_top":t.linkTarget&&(l=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",l??null),a=await s(i,t,r)}else a=await s(e,t,r),i=a;return i.attr("data-look",Dt(t.look)),t.tooltip&&a.attr("title",t.tooltip),hs.set(t.id,i),t.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}
289p(Kg,"insertNode");var Dw=p((e,t)=>{hs.set(t.id,e)},"setNodeElem"),Pw=p(()=>{hs.clear()},"clear"),Rw=p(e=>{const t=hs.get(e.id);R.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const r=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},"positionNode"),c1=p((e,t,r,i,a,s=!1,l)=>{t.arrowTypeStart&&Vn(e,"start",t.arrowTypeStart,r,i,a,s,l),t.arrowTypeEnd&&Vn(e,"end",t.arrowTypeEnd,r,i,a,s,l)},"addEdgeMarkers"),d1={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},u1=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],Vn=p((e,t,r,i,a,s,l=!1,o)=>{var m;const n=d1[r],h=n&&u1.includes(n.type);if(!n){R.warn(`Unknown arrow type: ${r}`);return}const c=n.type,u=`${a}_${s}-${c}${t==="start"?"Start":"End"}${l&&h?"-margin":""}`;if(o&&o.trim()!==""){const f=o.replace(/[^\dA-Za-z]/g,"_"),y=`${u}_${f}`;if(!document.getElementById(y)){const C=document.getElementById(u);if(C){const b=C.cloneNode(!0);b.id=y,b.querySelectorAll("path, circle, line").forEach(S=>{S.setAttribute("stroke",o),n.fill&&S.setAttribute("fill",o)}),(m=C.parentNode)==null||m.appendChild(b)}}e.attr(`marker-${t}`,`url(${i}#${y})`)}else e.attr(`marker-${t}`,`url(${i}#${u})`)},"addEdgeMarker"),g1=p(e=>{var t,r;return typeof e=="string"?e:(r=(t=ft())==null?void 0:t.flowchart)==null?void 0:r.curve},"resolveEdgeCurveType"),Ua=new Map,qt=new Map,qw=p(()=>{Ua.clear(),qt.clear()},"clear"),yi=p(e=>e?typeof e=="string"?e:e.reduce((t,r)=>t+";"+r,""):"","getLabelStyles"),p1=p(async(e,t)=>{const r=ft();let i=Qt(r);const{labelStyles:a}=X(t);t.labelStyle=a;const s=e.insert("g").attr("class","edgeLabel"),l=s.insert("g").attr("class","label").attr("data-id",t.id),o=t.labelType==="markdown",h=await Ne(e,t.label,{style:yi(t.labelStyle),useHtmlLabels:i,addSvgBackground:!0,isNode:!1,markdown:o,width:o?void 0:void 0},r);l.node().appendChild(h),R.info("abc82",t,t.labelType);let c=h.getBBox(),d=c;if(i){const u=h.children[0],m=ht(h);c=u.getBoundingClientRect(),d=c,m.attr("width",c.width),m.attr("height",c.height)}else{const u=ht(h).select("text").node();u&&typeof u.getBBox=="function"&&(d=u.getBBox())}l.attr("transform",di(d,i)),Ua.set(t.id,s),t.width=c.width,t.height=c.height;let g;if(t.startLabelLeft){const u=e.insert("g").attr("class","edgeTerminals"),m=u.insert("g").attr("class","inner"),f=await Ye(m,t.startLabelLeft,yi(t.labelStyle)||"",!1,!1);g=f;let y=f.getBBox();if(i){const C=f.children[0],b=ht(f);y=C.getBoundingClientRect(),b.attr("width",y.width),b.attr("height",y.height)}m.attr("transform",di(y,i)),qt.get(t.id)||qt.set(t.id,{}),qt.get(t.id).startLeft=u,Ti(g,t.startLabelLeft)}if(t.startLabelRight){const u=e.insert("g").attr("class","edgeTerminals"),m=u.insert("g").attr("class","inner"),f=await Ye(m,t.startLabelRight,yi(t.labelStyle)||"",!1,!1);g=f,m.node().appendChild(f);let y=f.getBBox();if(i){const C=f.children[0],b=ht(f);y=C.getBoundingClientRect(),b.attr("width",y.width),b.attr("height",y.height)}m.attr("transform",di(y,i)),qt.get(t.id)||qt.set(t.id,{}),qt.get(t.id).startRight=u,Ti(g,t.startLabelRight)}if(t.endLabelLeft){const u=e.insert("g").attr("class","edgeTerminals"),m=u.insert("g").attr("class","inner"),f=await Ye(m,t.endLabelLeft,yi(t.labelStyle)||"",!1,!1);g=f;let y=f.getBBox();if(i){const C=f.children[0],b=ht(f);y=C.getBoundingClientRect(),b.attr("width",y.width),b.attr("height",y.height)}m.attr("transform",di(y,i)),u.node().appendChild(f),qt.get(t.id)||qt.set(t.i
289d,{}),qt.get(t.id).endLeft=u,Ti(g,t.endLabelLeft)}if(t.endLabelRight){const u=e.insert("g").attr("class","edgeTerminals"),m=u.insert("g").attr("class","inner"),f=await Ye(m,t.endLabelRight,yi(t.labelStyle)||"",!1,!1);g=f;let y=f.getBBox();if(i){const C=f.children[0],b=ht(f);y=C.getBoundingClientRect(),b.attr("width",y.width),b.attr("height",y.height)}m.attr("transform",di(y,i)),u.node().appendChild(f),qt.get(t.id)||qt.set(t.id,{}),qt.get(t.id).endRight=u,Ti(g,t.endLabelRight)}return h},"insertEdgeLabel");function Ti(e,t){Qt(ft())&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}p(Ti,"setTerminalWidth");var f1=p((e,t)=>{R.debug("Moving label abc88 ",e.id,e.label,Ua.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const i=ft(),{subGraphTitleTotalMargin:a}=al(i);if(e.label){const s=Ua.get(e.id);let l=e.x,o=e.y;if(r){const n=pe.calcLabelPosition(r);R.debug("Moving label "+e.label+" from (",l,",",o,") to (",n.x,",",n.y,") abc88"),t.updatedPath&&(l=n.x,o=n.y)}s.attr("transform",`translate(${l}, ${o+a/2})`)}if(e.startLabelLeft){const s=qt.get(e.id).startLeft;let l=e.x,o=e.y;if(r){const n=pe.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);l=n.x,o=n.y}s.attr("transform",`translate(${l}, ${o})`)}if(e.startLabelRight){const s=qt.get(e.id).startRight;let l=e.x,o=e.y;if(r){const n=pe.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);l=n.x,o=n.y}s.attr("transform",`translate(${l}, ${o})`)}if(e.endLabelLeft){const s=qt.get(e.id).endLeft;let l=e.x,o=e.y;if(r){const n=pe.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);l=n.x,o=n.y}s.attr("transform",`translate(${l}, ${o})`)}if(e.endLabelRight){const s=qt.get(e.id).endRight;let l=e.x,o=e.y;if(r){const n=pe.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);l=n.x,o=n.y}s.attr("transform",`translate(${l}, ${o})`)}},"positionEdgeLabel"),m1=p((e,t)=>{const r=e.x,i=e.y,a=Math.abs(t.x-r),s=Math.abs(t.y-i),l=e.width/2,o=e.height/2;return a>=l||s>=o},"outsideNode"),y1=p((e,t,r)=>{R.debug(`intersection calc abc89: 290 outsidePoint: ${JSON.stringify(t)} 291 insidePoint : ${JSON.stringify(r)} 292 node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,a=e.y,s=Math.abs(i-r.x),l=e.width/2;let o=r.x<t.x?l-s:l+s;const n=e.height/2,h=Math.abs(t.y-r.y),c=Math.abs(t.x-r.x);if(Math.abs(a-t.y)*l>Math.abs(i-t.x)*n){let d=r.y<t.y?t.y-n-a:a-n-t.y;o=c*d/h;const g={x:r.x<t.x?r.x+o:r.x-c+o,y:r.y<t.y?r.y+h-d:r.y-h+d};return o===0&&(g.x=t.x,g.y=t.y),c===0&&(g.x=t.x),h===0&&(g.y=t.y),R.debug(`abc89 top/bottom calc, Q ${h}, q ${d}, R ${c}, r ${o}`,g),g}else{r.x<t.x?o=t.x-l-i:o=i-l-t.x;let d=h*o/c,g=r.x<t.x?r.x+c-o:r.x-c+o,u=r.y<t.y?r.y+d:r.y-d;return R.debug(`sides calc abc89, Q ${h}, q ${d}, R ${c}, r ${o}`,{_x:g,_y:u}),o===0&&(g=t.x,u=t.y),c===0&&(g=t.x),h===0&&(u=t.y),{x:g,y:u}}},"intersection"),Zn=p((e,t)=>{R.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],a=!1;return e.forEach(s=>{if(R.info("abc88 checking point",s,t),!m1(t,s)&&!a){const l=y1(t,i,s);R.debug("abc88 inside",s,i,l),R.debug("abc88 intersection",l,t);let o=!1;r.forEach(n=>{o=o||n.x===l.x&&n.y===l.y}),r.some(n=>n.x===l.x&&n.y===l.y)?R.warn("abc88 no intersect",l,r):r.push(l),a=!0}else R.warn("abc88 outside",s,i),i=s,a||r.push(s)}),R.debug("returning points",r),r},"cutPathAtIntersect");function Qg(e){const t=[],r=[];for(let i=1;i<e.length-1;i++){const a=e[i-1],s=e[i],l=e[i+1];(a.x===s.x&&s.y===l.y&&Math.abs(s.x-l.x)>5&&Math.abs(s.y-a.y)>5||a.y===s.y&&s.x===l.x&&Math.abs(s.x-a.x)>5&&Math.abs(s.y-l.y)>5)&&(t.push(s),r.push(i))}return{cornerPoints:t,cornerPointPositions:r}}p(Qg,"extractCornerPoints");var Kn=p(function(e,t,r){const i=t.x-e.x,a=t.y-e.y,s=Math.sqrt(i*i+a*a),l=r/s;return{x:t.x-l*i,y:t.y-l*a}},"findAdjacentPoint"),C1=p(function(e){const{cornerPointPositions:t}=Qg(e),r=[];for(let i=0;i<e.length;i++)if(t.includes(i)){const a=e[i-1],s=e[i+1],l=e[i],o=Kn(a,l,5),n=Kn(s,l,5),h=n.x-o.x,c=n.y-o.y;r.push(o);const d=Math.sqrt(2)*2;let g={x:l.x,y:l.y};if(Math.abs(s.x-a.x)>10&&Math.abs(s.y-a.y)>=10){R.debug("Corner point fixing",Math.abs(s.x-a.x),Math.abs(s.y-a.y));const u=5;l.x===o.x?g={x:h<0?o.x-u+d:o.x+u-d,y:c<0?o.y-d:o.y+d}:g={x:h<0?o.x-d:o.x+d,y:c<0?o.y-u+d:o.y+u-d}}else R.debug("Corner point skipping fixing",Math.abs(s.x-a.x),Math.abs(s.y-a.y));r.push(g,n)}else r.push(e[i]);return r},"fixCorners"),x1=p((e,t,r)=>{const i=e-t-r,a=2,s=2,l=a+s,o=Math.floor(i/l),n=Array(o).fill(`${a} ${s}`).join(" ");return`0 ${t} ${n} ${r}`},"generateDashArray"),b1=p(function(e,t,r,i,a,s,l,o=!1){var I;if(!l)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" — edge IDs require a diagram prefix for uniqueness`);const{handDrawnSeed:n}=ft();let h=t.points,c=!1;const d=a;var g=s;const u=[];for(const A in t.cssCompiledStyles)Kd(A)||u.push(t.cssCompiledStyles[A]);R.debug("UIO intersect check",t.points,g.x,d.x),g.intersect&&d.intersect&&!o&&(h=h.slice(1,t.points.length-1),h.unshift(d.intersect(h[0])),R.debug("Last point UIO",t.start,"-->",t.end,h[h.length-1],g,g.intersect(h[h.length-1])),h.push(g.intersect(h[h.length-1])));const m=btoa(JSON.stringify(h));t.toCluster&&(R.info("to cluster abc88",r.get(t.toCluster)),h=Zn(t.points,r.get(t.toCluster).node),c=!0),t.fromCluster&&(R.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(h,null,2)),h=Zn(h.reverse(),r.get(t.fromCluster).node).reverse(),c=!0);let f=h.filter(A=>!Number.isNaN(A.y));const y=g1(t.curve);y!=="rounded"&&(f=C1(f));let C=ca;switch(y){case"linear":C=ca;break;case"basis":C=Ws;break;case"cardinal":C=yh;break;case"bumpX":C=xh;break;case"bumpY":C=Ch;break;case"catmullRom":C=mh;break;case"monotoneX":C=fh;break;case"monotoneY":C=ph;break;case"natural":C=gh;break;case"step":C=uh;break;case"stepAfter":C=dh;break;case"stepBefore":C=ch;break;case"rounded":C=ca;break;default:C=Ws}const{x:b,y:T}=uC(t),S=bf().x(b).y(T).curve(C);let w;switch(t.thickness){case"normal":w="edge-thickness-normal";break;case"thick":w="edge-thickness-thick";break;case"invisible":w="edge-thickness-invisible";break;default:w="edge-thickness-normal"}switch(t.pattern){case"solid":w+=" edge-pattern-solid";break;case"dotted":w+=" edge-pattern-dotted";break;case"dashed":w+=" edge-pattern-dashed";break;default:w+=" edge-pattern-solid"}let v,k=y==="rounded"?Jg(tp(f,t),5):S(f);const _=Array.isArray(t.style)?t.style:[t.style];let q=_.find(A=>A==null?void 0:A.startsWith("stroke:")),P="";t.animate&&(P="edge-animation-fast"),t.animation&&(P="edge-animation-"+t.animation);let E=!1;if(t.look==="handDrawn"){const A=U.svg(e);Object.assign([],f);const z=A.path(k,{roughness:.3,seed:n});w+=" transition",v=ht(z).select("path").attr("id",`${l}-${t.id}`).attr("class"," "+w+(t.classes?" "+t.classes:"")+(P?" "+P:"")).attr("style",_?_.reduce((V,ct)=>V+";"+ct,""):"");let H=v.attr("d");v.attr("d",H),e.node().appendChild(v.node())}else{const A=u.join(";"),z=_?_.reduce((et,bt)=>et+bt+";",""):"",H=(A?A+";"+z+";":z)+";"+(_?_.reduce((et,bt)=>et+";"+bt,""):"");v=e.append("path").attr("d",k).attr("id",`${l}-${t.id}`).attr("class"," "+w+(t.classes?" "+t.classes:"")+(P?" "+P:"")).attr("style",H),q=(I=H.match(/stroke:([^;
vendor: 10,248 bytes, line 292
292]+)/))==null?void 0:I[1],E=t.animate===!0||!!t.animation||A.includes("animation");const V=v.node(),ct=typeof V.getTotalLength=="function"?V.getTotalLength():0,it=en[t.arrowTypeStart]||0,ut=en[t.arrowTypeEnd]||0;if(t.look==="neo"&&!E){const bt=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?x1(ct,it,ut):`0 ${it} ${ct-it-ut} ${ut}`}; stroke-dashoffset: 0;`;v.attr("style",bt+v.attr("style"))}}v.attr("data-edge",!0),v.attr("data-et","edge"),v.attr("data-id",t.id),v.attr("data-points",m),v.attr("data-look",Dt(t.look)),t.showPoints&&f.forEach(A=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",A.x).attr("cy",A.y)});let j="";(ft().flowchart.arrowMarkerAbsolute||ft().state.arrowMarkerAbsolute)&&(j=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,j=j.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),R.info("arrowTypeStart",t.arrowTypeStart),R.info("arrowTypeEnd",t.arrowTypeEnd);const W=!E&&(t==null?void 0:t.look)==="neo";c1(v,t,j,l,i,W,q);const D=Math.floor(h.length/2),M=h[D];pe.isLabelCoordinateInPath(M,v.attr("d"))||(c=!0);let F={};return c&&(F.updatedPath=h),F.originalPath=t.points,F},"insertEdge");function Jg(e,t){if(e.length<2)return"";let r="";const i=e.length,a=1e-5;for(let s=0;s<i;s++){const l=e[s],o=e[s-1],n=e[s+1];if(s===0)r+=`M${l.x},${l.y}`;else if(s===i-1)r+=`L${l.x},${l.y}`;else{const h=l.x-o.x,c=l.y-o.y,d=n.x-l.x,g=n.y-l.y,u=Math.hypot(h,c),m=Math.hypot(d,g);if(u<a||m<a){r+=`L${l.x},${l.y}`;continue}const f=h/u,y=c/u,C=d/m,b=g/m,T=f*C+y*b,S=Math.max(-1,Math.min(1,T)),w=Math.acos(S);if(w<a||Math.abs(Math.PI-w)<a){r+=`L${l.x},${l.y}`;continue}const v=Math.min(t/Math.sin(w/2),u/2,m/2),k=l.x-f*v,_=l.y-y*v,q=l.x+C*v,P=l.y+b*v;r+=`L${k},${_}`,r+=`Q${l.x},${l.y} ${q},${P}`}}return r}p(Jg,"generateRoundedPath");function wo(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};const r=t.x-e.x,i=t.y-e.y;return{angle:Math.atan2(i,r),deltaX:r,deltaY:i}}p(wo,"calculateDeltaAndAngle");function tp(e,t){const r=e.map(a=>({...a}));if(e.length>=2&&jt[t.arrowTypeStart]){const a=jt[t.arrowTypeStart],s=e[0],l=e[1],{angle:o}=wo(s,l),n=a*Math.cos(o),h=a*Math.sin(o);r[0].x=s.x+n,r[0].y=s.y+h}const i=e.length;if(i>=2&&jt[t.arrowTypeEnd]){const a=jt[t.arrowTypeEnd],s=e[i-1],l=e[i-2],{angle:o}=wo(l,s),n=a*Math.cos(o),h=a*Math.sin(o);r[i-1].x=s.x-n,r[i-1].y=s.y-h}return r}p(tp,"applyMarkerOffsetsToPoints");var k1=p((e,t,r,i)=>{t.forEach(a=>{j1[a](e,r,i)})},"insertMarkers"),T1=p((e,t,r)=>{R.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),e.append("marker").attr("id",r+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),S1=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),w1=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),B1=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).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"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),v1=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),L1=p((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("pol
292ygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),_1=p((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),F1=p((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),e.append("marker").attr("id",r+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),A1=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),M1=p((e,t,r)=>{const i=Bt(),{themeVariables:a}=i,{transitionColor:s}=a;e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${s}`)},"barbNeo"),E1=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),$1=p((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");const a=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),a.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),O1=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),I1=p((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const a=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),a.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),D1=p((e,t,r)=>{const i=Bt(),{themeVariables:a}=i,{strokeWidth:s}=a;e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${s}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${s}`)},"only_one_neo"),P1=p((e,t,r)=>{const i=Bt(),{themeVariables:a}=i,{strokeWidth:s,mainBkg:l}=a,o=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");o.append("circle").attr("fill",l??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${s}`).attr("r",6),o.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${s}`);const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");n.append("circle").attr("fill",l??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${s}`).attr("r",6),n.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${s}`)},"zero_or_one_neo"),R1=p((e,t,r)=>{const i=Bt(),{themeVariables:a}=i,{strokeWidth:s}=a;e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${s}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${s}`)},"one_or_more_neo"),q1=p((e,t,r)=>{const i=Bt(),{themeVariables:a}=i,{strokeWidth:s,mainBkg:l}=a,o=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");o.append("circle").attr("fill",l??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${s}`),o.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${s}`);const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");n.append("circle").attr("fill",l??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${s}`),n.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${s}`)},"zero_or_more_neo"),W1=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0 293 L20,10 294 M20,10 295 L0,20`)},"requirement_arrow"),z1=p((e,t,r)=>{const i=Bt(),{themeVariables:a}=i,{strokeWidth:s}=a;e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${s}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0 296 L20,10 297 M20,10 298 L0,20`).attr("stroke-linejoin","miter")}
298,"requirement_arrow_neo"),N1=p((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),H1=p((e,t,r)=>{const i=Bt(),{themeVariables:a}=i,{strokeWidth:s}=a,l=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");l.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),l.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),l.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),l.selectAll("*").attr("stroke-width",`${s}`)},"requirement_contains_neo"),j1={extension:T1,composition:S1,aggregation:w1,dependency:B1,lollipop:v1,point:L1,circle:_1,cross:F1,barb:A1,barbNeo:M1,only_one:E1,zero_or_one:$1,one_or_more:O1,zero_or_more:I1,only_one_neo:D1,zero_or_one_neo:P1,one_or_more_neo:R1,zero_or_more_neo:q1,requirement_arrow:W1,requirement_contains:N1,requirement_arrow_neo:z1,requirement_contains_neo:H1},Y1=k1,U1={common:qi,getConfig:Bt,insertCluster:Hk,insertEdge:b1,insertEdgeLabel:p1,insertMarkers:Y1,insertNode:Kg,interpolateToCurve:Qo,labelHelper:at,log:R,positionEdgeLabel:f1},Di={},ep=p(e=>{for(const t of e)Di[t.name]=t},"registerLayoutLoaders"),G1=p(()=>{ep([{name:"dagre",loader:p(async()=>await pt(()=>import("./dagre-KV5264BT.fzEylaAb.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])),"loader")},{name:"cose-bilkent",loader:p(async()=>await pt(()=>import("./cose-bilkent-S5V4N54A.NHFaUIup.js"),__vite__mapDeps([11,12,7,6,8,9,10])),"loader")}])},"registerDefaultLayoutLoaders");G1();var Ww=p(async(e,t)=>{if(!(e.layoutAlgorithm in Di))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const c of e.nodes){const d=c.domId||c.id;c.domId=`${e.diagramId}-${d}`}const r=Di[e.layoutAlgorithm],i=await r.loader(),{theme:a,themeVariables:s}=e.config,{useGradient:l,gradientStart:o,gradientStop:n}=s,h=t.attr("id");if(t.append("defs").append("filter").attr("id",`${h}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${a!=null&&a.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${h}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${a!=null&&a.includes("dark")?"#FFFFFF":"#000000"}`),l){const c=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");c.append("svg:stop").attr("offset","0%").attr("stop-color",o).attr("stop-opacity",1),c.append("svg:stop").attr("offset","100%").attr("stop-color",n).attr("stop-opacity",1)}return i.render(e,t,U1,{algorithm:r.algorithm})},"render"),zw=p((e="",{fallback:t="dagre"}={})=>{if(e in Di)return e;if(t in Di)return R.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),rp="comm",ip="rule",ap="decl",X1="@import",V1="@namespace",Z1="@keyframes",K1="@layer",sp=Math.abs,xl=String.fromCharCode;function op(e){return e.trim()}function xa(e,t,r){return e.replace(t,r)}function Q1(e,t,r){return e.indexOf(t,r)}function Er(e,t){return e.charCodeAt(t)|0}function Kr(e,t,r){return e.slice(t,r)}function Be(e){return e.length}function J1(e){return e.length}function na(e,t){return t.push(e),e}var cs=1,Qr=1,lp=0,de=0,At=0,ii="";function bl(e,t,r,i,a,s,l,o){return{value:e,root:t,parent:r,type:i,props:a,children:s,line:cs,column:Qr,length:l,return:"",siblings:o}}function t2(){return At}function e2(){return At=de>0?Er(ii,--de):0,Qr--,At===10&&(Qr=1,cs--),At}function me(){return At=de<lp?Er(ii,de++):0,Qr++,At===10&&(Qr=1,cs++),At}function Ue(){return Er(ii,de)}function ba(){return de}function ds(e,t){return Kr(ii,e,t)}function Pi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function r2(e){return cs=Qr=1,lp=Be(ii=e),de=0,[]}function i2(e){return ii="",e}function Rs(e){return op(ds(de-1,Bo(e===91?e+2:e===40?e+1:e)))}function a2(e){for(;(At=Ue())&&At<33;)me();return Pi(e)>2||Pi(At)>3?"":" "}function s2(e,t){for(;--t&&me()&&!(At<48||At>102||At>57&&At<65||At>70&&At<97););return ds(e,ba()+(t<6&&Ue()==32&&me()==32))}function Bo(e){for(;me();)switch(At){case e:return de;case 34:case 39:e!==34&&e!==39&&Bo(At);break;case 40:e===41&&Bo(e);break;case 92:me();break}return de}function o2(e,t){for(;me()&&e+At!==57;)if(e+At===84&&Ue()===47)break;return"/*"+ds(t,de-1)+"*"+xl(e===47?e:me())}function l2(e){for(;!Pi(Ue());)me();return ds(e,de)}function n2(e){return i2(ka("",null,null,null,[""],e=r2(e),0,[0],e))}function ka(e,t,r,i,a,s,l,o,n){for(var h=0,c=0,d=l,g=0,u=0,m=0,f=1,y=1,C=1,b=0,T="",S=a,w=s,v=i,k=T;y;)switch(m=b,b=me()){case 40:if(m!=108&&Er(k,d-1)==58){Q1(k+=xa(Rs(b),"&","&\f"),"&\f",sp(h?o[h-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:k+=Rs(b);break;case 9:case 10:case 13:case 32:k+=a2(m);break;case 92:k+=s2(ba()-1,7);continue;case 47:switch(Ue()){case 42:case 47:na(h2(o2(me(),ba()),t,r,n),n),(Pi(m||1
298)==5||Pi(Ue()||1)==5)&&Be(k)&&Kr(k,-1,void 0)!==" "&&(k+=" ");break;default:k+="/"}break;case 123*f:o[h++]=Be(k)*C;case 125*f:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+c:C==-1&&(k=xa(k,/\f/g,"")),u>0&&(Be(k)-d||f===0&&m===47)&&na(u>32?Jn(k+";",i,r,d-1,n):Jn(xa(k," ","")+";",i,r,d-2,n),n);break;case 59:k+=";";default:if(na(v=Qn(k,t,r,h,c,a,o,T,S=[],w=[],d,s),s),b===123)if(c===0)ka(k,t,v,v,S,s,d,o,w);else{switch(g){case 99:if(Er(k,3)===110)break;case 108:if(Er(k,2)===97)break;default:c=0;case 100:case 109:case 115:}c?ka(e,v,v,i&&na(Qn(e,v,v,0,0,a,o,T,a,S=[],d,w),w),a,w,d,o,i?S:w):ka(k,v,v,v,[""],w,0,o,w)}}h=c=u=0,f=C=1,T=k="",d=l;break;case 58:d=1+Be(k),u=m;default:if(f<1){if(b==123)--f;else if(b==125&&f++==0&&e2()==125)continue}switch(k+=xl(b),b*f){case 38:C=c>0?1:(k+="\f",-1);break;case 44:o[h++]=(Be(k)-1)*C,C=1;break;case 64:Ue()===45&&(k+=Rs(me())),g=Ue(),c=d=Be(T=k+=l2(ba())),b++;break;case 45:m===45&&Be(k)==2&&(f=0)}}return s}function Qn(e,t,r,i,a,s,l,o,n,h,c,d){for(var g=a-1,u=a===0?s:[""],m=J1(u),f=0,y=0,C=0;f<i;++f)for(var b=0,T=Kr(e,g+1,g=sp(y=l[f])),S=e;b<m;++b)(S=op(y>0?u[b]+" "+T:xa(T,/&\f/g,u[b])))&&(n[C++]=S);return bl(e,t,r,a===0?ip:o,n,h,c,d)}function h2(e,t,r,i){return bl(e,t,r,rp,xl(t2()),Kr(e,2,-2),0,i)}function Jn(e,t,r,i,a){return bl(e,t,r,ap,Kr(e,0,i),Kr(e,i+1,-1),i,a)}function vo(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function c2(e,t,r,i){switch(e.type){case K1:if(e.children.length)break;case X1:case V1:case ap:return e.return=e.return||e.value;case rp:return"";case Z1:return e.return=e.value+"{"+vo(e.children,i)+"}";case ip:if(!Be(e.value=e.props.join(",")))return""}return Be(r=vo(e.children,i))?e.return=e.value+"{"+r+"}":""}var d2=Ad(Object.keys,Object),u2=Object.prototype,g2=u2.hasOwnProperty;function p2(e){if(!es(e))return d2(e);var t=[];for(var r in Object(e))g2.call(e,r)&&r!="constructor"&&t.push(r);return t}var Lo=Cr(Ae,"DataView"),_o=Cr(Ae,"Promise"),Fo=Cr(Ae,"Set"),Ao=Cr(Ae,"WeakMap"),th="[object Map]",f2="[object Object]",eh="[object Promise]",rh="[object Set]",ih="[object WeakMap]",ah="[object DataView]",m2=yr(Lo),y2=yr(Oi),C2=yr(_o),x2=yr(Fo),b2=yr(Ao),ar=Jr;(Lo&&ar(new Lo(new ArrayBuffer(1)))!=ah||Oi&&ar(new Oi)!=th||_o&&ar(_o.resolve())!=eh||Fo&&ar(new Fo)!=rh||Ao&&ar(new Ao)!=ih)&&(ar=function(e){var t=Jr(e),r=t==f2?e.constructor:void 0,i=r?yr(r):"";if(i)switch(i){case m2:return ah;case y2:return th;case C2:return eh;case x2:return rh;case b2:return ih}return t});var k2="[object Map]",T2="[object Set]",S2=Object.prototype,w2=S2.hasOwnProperty;function sh(e){if(e==null)return!0;if(rs(e)&&(Da(e)||typeof e=="string"||typeof e.splice=="function"||Zo(e)||Ko(e)||Ia(e)))return!e.length;var t=ar(e);if(t==k2||t==T2)return!e.size;if(es(e))return!p2(e).length;for(var r in e)if(w2.call(e,r))return!1;return!0}var np="c4",B2=p(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),v2=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./c4Diagram-AHTNJAMY.BCHm-V58.js");return{diagram:t}},__vite__mapDeps([13,14,10,6,7,8,9]));return{id:np,diagram:e}},"loader"),L2={id:np,detector:B2,loader:v2},_2=L2,hp="flowchart",F2=p((e,t)=>{var r,i;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),A2=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./flowDiagram-DWJPFMVM.D4ekQ-af.js");return{diagram:t}},__vite__mapDeps([15,16,14,10,17,18,19,6,7,8,9]));return{id:hp,diagram:e}},"loader"),M2={id:hp,detector:F2,loader:A2},E2=M2,cp="flowchart-v2",$2=p((e,t)=>{var r,i,a;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&((a=t==null?void 0:t.flowchart)==null?void 0:a.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),O2=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./flowDiagram-DWJPFMVM.D4ekQ-af.js");return{diagram:t}},__vite__mapDeps([15,16,14,10,17,18,19,6,7,8,9]));return{id:cp,diagram:e}},"loader"),I2={id:cp,detector:$2,loader:O2},D2=I2,dp="er",P2=p(e=>/^\s*erDiagram/.test(e),"detector"),R2=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./erDiagram-SMLLAGMA.D8n_MJ6X.js");return{diagram:t}},__vite__mapDeps([20,17,10,18,19,6,7,8,9]));return{id:dp,diagram:e}},"loader"),q2={id:dp,detector:P2,loader:R2},W2=q2,up="gitGraph",z2=p(e=>/^\s*gitGraph/.test(e),"detector"),N2=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./gitGraphDiagram-UUTBAWPF.BK6f8dU_.js");return{diagram:t}},__vite__mapDeps([21,22,23,24,6,4,2,7,8,9,10]));return{id:up,diagram:e}},"loader"),H2={id:up,detector:z2,loader:N2},j2=H2,gp="gantt",Y2=p(e=>/^\s*gantt/.test(e),"detector"),U2=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./ganttDiagram-T4ZO3ILL.K9YpzYTe.js");return{diagram:t}},__vite__mapDeps([25,7,6,8,9,10,26,27,28,29]));return{id:gp,diagram:e}}
298,"loader"),G2={id:gp,detector:Y2,loader:U2},X2=G2,pp="info",V2=p(e=>/^\s*info/.test(e),"detector"),Z2=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./infoDiagram-42DDH7IO.CcssmQ3U.js");return{diagram:t}},__vite__mapDeps([30,24,6,4,2,7,8,9,10]));return{id:pp,diagram:e}},"loader"),K2={id:pp,detector:V2,loader:Z2},fp="pie",Q2=p(e=>/^\s*pie/.test(e),"detector"),J2=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./pieDiagram-DEJITSTG.Bnt4V7Wo.js");return{diagram:t}},__vite__mapDeps([31,22,24,6,4,2,7,8,9,10,32,33,28,34]));return{id:fp,diagram:e}},"loader"),tT={id:fp,detector:Q2,loader:J2},mp="quadrantChart",eT=p(e=>/^\s*quadrantChart/.test(e),"detector"),rT=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./quadrantDiagram-34T5L4WZ.D27UZK-G.js");return{diagram:t}},__vite__mapDeps([35,10,27,28,29,6,7,8,9]));return{id:mp,diagram:e}},"loader"),iT={id:mp,detector:eT,loader:rT},aT=iT,yp="xychart",sT=p(e=>/^\s*xychart(-beta)?/.test(e),"detector"),oT=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./xychartDiagram-5P7HB3ND.fiJccDLt.js");return{diagram:t}},__vite__mapDeps([36,10,37,28,33,27,29,6,7,8,9]));return{id:yp,diagram:e}},"loader"),lT={id:yp,detector:sT,loader:oT},nT=lT,Cp="requirement",hT=p(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),cT=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./requirementDiagram-MS252O5E.WZmsuUTR.js");return{diagram:t}},__vite__mapDeps([38,17,10,18,6,7,8,9]));return{id:Cp,diagram:e}},"loader"),dT={id:Cp,detector:hT,loader:cT},uT=dT,xp="sequence",gT=p(e=>/^\s*sequenceDiagram/.test(e),"detector"),pT=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./sequenceDiagram-FGHM5R23.B1K6Uf4j.js");return{diagram:t}},__vite__mapDeps([39,14,10,23,6,7,8,9]));return{id:xp,diagram:e}},"loader"),fT={id:xp,detector:gT,loader:pT},mT=fT,bp="class",yT=p((e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),CT=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./classDiagram-6PBFFD2Q.DP2AfalV.js");return{diagram:t}},__vite__mapDeps([40,41,16,14,10,17,18,6,7,8,9]));return{id:bp,diagram:e}},"loader"),xT={id:bp,detector:yT,loader:CT},bT=xT,kp="classDiagram",kT=p((e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),TT=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./classDiagram-v2-HSJHXN6E.DP2AfalV.js");return{diagram:t}},__vite__mapDeps([42,41,16,14,10,17,18,6,7,8,9]));return{id:kp,diagram:e}},"loader"),ST={id:kp,detector:kT,loader:TT},wT=ST,Tp="state",BT=p((e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),vT=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./stateDiagram-FHFEXIEX.DHbMy8MX.js");return{diagram:t}},__vite__mapDeps([43,44,17,10,18,1,2,3,4,6,7,8,9]));return{id:Tp,diagram:e}},"loader"),LT={id:Tp,detector:BT,loader:vT},_T=LT,Sp="stateDiagram",FT=p((e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),AT=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./stateDiagram-v2-QKLJ7IA2.DM8ISsdn.js");return{diagram:t}},__vite__mapDeps([45,44,17,10,18,6,7,8,9]));return{id:Sp,diagram:e}},"loader"),MT={id:Sp,detector:FT,loader:AT},ET=MT,wp="journey",$T=p(e=>/^\s*journey/.test(e),"detector"),OT=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./journeyDiagram-VCZTEJTY.BF7NdU8L.js");return{diagram:t}},__vite__mapDeps([46,16,14,10,32,6,7,8,9]));return{id:wp,diagram:e}},"loader"),IT={id:wp,detector:$T,loader:OT},DT=IT,PT=p((e,t,r)=>{R.debug(`rendering svg for syntax error 299`);const i=ay(t),a=i.append("g");i.attr("viewBox","0 0 2412 512"),Hh(i,100,512,!0),a.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),a.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),a.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),a.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.
299164-16,16v32c0,8.836 7.156,16 16,16z"),a.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),a.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),Bp={draw:PT},RT=Bp,qT={db:{},renderer:Bp,parser:{parse:p(()=>{},"parse")}},WT=qT,vp="flowchart-elk",zT=p((e,t={})=>{var r;return/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(t.layout="elk",!0):!1},"detector"),NT=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./flowDiagram-DWJPFMVM.D4ekQ-af.js");return{diagram:t}},__vite__mapDeps([15,16,14,10,17,18,19,6,7,8,9]));return{id:vp,diagram:e}},"loader"),HT={id:vp,detector:zT,loader:NT},jT=HT,Lp="timeline",YT=p(e=>/^\s*timeline/.test(e),"detector"),UT=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./timeline-definition-GMOUNBTQ.Bxm4IfL0.js");return{diagram:t}},__vite__mapDeps([47,10,32,6,7,8,9]));return{id:Lp,diagram:e}},"loader"),GT={id:Lp,detector:YT,loader:UT},XT=GT,_p="mindmap",VT=p(e=>/^\s*mindmap/.test(e),"detector"),ZT=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./mindmap-definition-QFDTVHPH.DH6gzDip.js");return{diagram:t}},__vite__mapDeps([48,17,10,18,6,7,8,9]));return{id:_p,diagram:e}},"loader"),KT={id:_p,detector:VT,loader:ZT},QT=KT,Fp="kanban",JT=p(e=>/^\s*kanban/.test(e),"detector"),tS=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./kanban-definition-6JOO6SKY.B8XEAuFa.js");return{diagram:t}},__vite__mapDeps([49,16,6,7,8,9,10]));return{id:Fp,diagram:e}},"loader"),eS={id:Fp,detector:JT,loader:tS},rS=eS,Ap="sankey",iS=p(e=>/^\s*sankey(-beta)?/.test(e),"detector"),aS=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./sankeyDiagram-XADWPNL6.DryxaNSc.js");return{diagram:t}},__vite__mapDeps([50,10,33,28,51,6,7,8,9]));return{id:Ap,diagram:e}},"loader"),sS={id:Ap,detector:iS,loader:aS},oS=sS,Mp="packet",lS=p(e=>/^\s*packet(-beta)?/.test(e),"detector"),nS=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./diagram-TYMM5635.C2-Fq87K.js");return{diagram:t}},__vite__mapDeps([52,22,24,6,4,2,7,8,9,10]));return{id:Mp,diagram:e}},"loader"),hS={id:Mp,detector:lS,loader:nS},Ep="radar",cS=p(e=>/^\s*radar-beta/.test(e),"detector"),dS=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./diagram-MMDJMWI5.CZ1ru6Sr.js");return{diagram:t}},__vite__mapDeps([53,22,24,6,4,2,7,8,9,10]));return{id:Ep,diagram:e}},"loader"),uS={id:Ep,detector:cS,loader:dS},$p="block",gS=p(e=>/^\s*block(-beta)?/.test(e),"detector"),pS=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./blockDiagram-DXYQGD6D.Ckh86axQ.js");return{diagram:t}},__vite__mapDeps([54,16,5,1,2,10,19,6,7,8,9]));return{id:$p,diagram:e}},"loader"),fS={id:$p,detector:gS,loader:pS},mS=fS,Op="treeView",yS=p(e=>/^\s*treeView-beta/.test(e),"detector"),CS=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./diagram-5BDNPKRD.CuuWWgvs.js");return{diagram:t}},__vite__mapDeps([55,22,23,24,6,4,2,7,8,9,10]));return{id:Op,diagram:e}},"loader"),xS={id:Op,detector:yS,loader:CS},bS=xS,Ip="architecture",kS=p(e=>/^\s*architecture/.test(e),"detector"),TS=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./architectureDiagram-Q4EWVU46.Y9FK_nOB.js");return{diagram:t}},__vite__mapDeps([56,22,24,6,4,2,7,8,9,12,10]));return{id:Ip,diagram:e}},"loader"),SS={id:Ip,detector:kS,loader:TS},wS=SS,Dp="ishikawa",BS=p(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),vS=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./ishikawaDiagram-UXIWVN3A.CGOYtQ7K.js");return{diagram:t}},__vite__mapDeps([57,6,7,8,9,10]));return{id:Dp,diagram:e}},"loader"),LS={id:Dp,detector:BS,loader:vS},Pp="venn",_S=p(e=>/^\s*venn-beta/.test(e),"detector"),FS=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./vennDiagram-DHZGUBPP.RYg4-75w.js");return{diagram:t}},__vite__mapDeps([58,10,6,7,8,9]));return{id:Pp,diagram:e}},"loader"),AS={id:Pp,detector:_S,loader:FS}
299,MS=AS,Rp="treemap",ES=p(e=>/^\s*treemap/.test(e),"detector"),$S=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./diagram-G4DWMVQ6.DML2TpyM.js");return{diagram:t}},__vite__mapDeps([59,18,22,24,6,4,2,7,8,9,10,29,33,28,60]));return{id:Rp,diagram:e}},"loader"),OS={id:Rp,detector:ES,loader:$S},qp="wardley-beta",IS=p(e=>/^\s*wardley-beta/i.test(e),"detector"),DS=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./wardleyDiagram-NUSXRM2D.EtO1fQip.js");return{diagram:t}},__vite__mapDeps([61,22,24,6,4,2,7,8,9,10]));return{id:qp,diagram:e}},"loader"),PS={id:qp,detector:IS,loader:DS},RS=PS,oh=!1,us=p(()=>{oh||(oh=!0,va("error",WT,e=>e.toLowerCase().trim()==="error"),va("---",{db:{clear:p(()=>{},"clear")},styles:{},renderer:{draw:p(()=>{},"draw")},parser:{parse:p(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:p(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),Hs(jT,QT,wS),Hs(_2,rS,wT,bT,W2,X2,K2,tT,uT,mT,D2,E2,XT,j2,ET,_T,DT,aT,oS,hS,nT,mS,bS,uS,LS,OS,MS,RS))},"addDiagrams"),qS=p(async()=>{R.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(hr).map(async([r,{detector:i,loader:a}])=>{if(a)try{Gs(r)}catch{try{const{diagram:s,id:l}=await a();va(l,s,i)}catch(s){throw R.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete hr[r],s}}}))).filter(r=>r.status==="rejected");if(t.length>0){R.error(`Failed to load ${t.length} external diagrams`);for(const r of t)R.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),WS="graphics-document document";function Wp(e,t){e.attr("role",WS),t!==""&&e.attr("aria-roledescription",t)}p(Wp,"setA11yDiagramInfo");function zp(e,t,r,i){if(e.insert!==void 0){if(r){const a=`chart-desc-${i}`;e.attr("aria-describedby",a),e.insert("desc",":first-child").attr("id",a).text(r)}if(t){const a=`chart-title-${i}`;e.attr("aria-labelledby",a),e.insert("title",":first-child").attr("id",a).text(t)}}}p(zp,"addSVGa11yTitleDescription");var nr,Mo=(nr=class{constructor(t,r,i,a,s){this.type=t,this.text=r,this.db=i,this.parser=a,this.renderer=s}static async fromText(t,r={}){var h,c;const i=Bt(),a=Oo(t,i);t=hb(t)+` 300`;try{Gs(a)}catch{const d=Jf(a);if(!d)throw new Fh(`Diagram ${a} not found.`);const{id:g,diagram:u}=await d();va(g,u)}const{db:s,parser:l,renderer:o,init:n}=Gs(a);return l.parser&&(l.parser.yy=s),(h=s.clear)==null||h.call(s),n==null||n(i),r.title&&((c=s.setDiagramTitle)==null||c.call(s,r.title)),await l.parse(t),new nr(a,t,s,l,o)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},p(nr,"Diagram"),nr),lh=[],zS=p(()=>{lh.forEach(e=>{e()}),lh=[]},"attachFunctions"),NS=p(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Np(e){const t=e.match(_h);if(!t)return{text:e,metadata:{}};let r=dC(t[1],{schema:cC})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:e.slice(t[0].length),metadata:i}}p(Np,"extractFrontMatter");var HS=p(e=>e.replace(/\r\n?/g,` 301`).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),jS=p(e=>{const{text:t,metadata:r}=Np(e),{displayMode:i,title:a,config:s={}}=r;return i&&(s.gantt||(s.gantt={}),s.gantt.displayMode=i),{title:a,config:s,text:t}},"processFrontmatter"),YS=p(e=>{const t=pe.detectInit(e)??{},r=pe.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:i})=>i==="wrap"):(r==null?void 0:r.type)==="wrap"&&(t.wrap=!0),{text:Zx(e),directive:t}},"processDirectives");function kl(e){const t=HS(e),r=jS(t),i=YS(r.text),a=il(r.config,i.directive);return e=NS(i.text),{code:e,title:r.title,config:a}}p(kl,"preprocessDiagram");function Hp(e){const t=new TextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(r)}p(Hp,"toBase64");var US=5e4,GS="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",XS="sandbox",VS="loose",ZS="http://www.w3.org/2000/svg",KS="http://www.w3.org/1999/xlink",QS="http://www.w3.org/1999/xhtml",JS="100%",tw="100%",ew="border:0;margin:0;",rw="margin:0",iw="allow-top-navigation-by-user-activation allow-popups",aw='The "iframe" tag is not supported by your browser.',sw=["foreignobject"],ow=["dominant-baseline"];function Tl(e){const t=kl(e);return wa(),Lm(t.config??{}),t}p(Tl,"processAndSetConfigs");async function jp(e,t){us();try{const{code:r,config:i}=Tl(e);return{diagramType:(await Up(r)).type,config:i}}catch(r){if(t!=null&&t.suppressErrors)return!1;throw r}}p(jp,"parse");var nh=p((e,t,r=[])=>` 302.${e} ${t} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),lw=p((e,t=new Map)=>{let r="";if(e.themeCSS!==void 0&&(r+=` 303${e.themeCSS}`),e.fontFamily!==void 0&&(r+=` 304:root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(r+=` 305:root { --mermaid-alt-font-family: ${e.altFontFamily}}`),t instanceof Map){const l=Qt(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(o=>{sh(o.styles)||l.forEach(n=>{r+=nh(o.id,n,o.styles)}
305),sh(o.textStyles)||(r+=nh(o.id,"tspan",((o==null?void 0:o.textStyles)||[]).map(n=>n.replace("color","fill"))))})}return r},"createCssStyles"),nw=p((e,t,r,i)=>{const a=lw(e,r),s=Um(t,a,{...e.themeVariables,theme:e.theme,look:e.look},i);return vo(n2(`${i}{${s}}`),c2)},"createUserStyles"),hw=p((e="",t,r)=>{let i=e;return!r&&!t&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=gr(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),cw=p((e="",t)=>{var a,s;const r=(s=(a=t==null?void 0:t.viewBox)==null?void 0:a.baseVal)!=null&&s.height?t.viewBox.baseVal.height+"px":tw,i=Hp(`<body style="${rw}">${e}</body>`);return`<iframe style="width:${JS};height:${r};${ew}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${iw}"> 306 ${aw} 307</iframe>`},"putIntoIFrame"),hh=p((e,t,r,i,a)=>{const s=e.append("div");s.attr("id",r),i&&s.attr("style",i);const l=s.append("svg").attr("id",t).attr("width","100%").attr("xmlns",ZS);return a&&l.attr("xmlns:xlink",a),l.append("g"),e},"appendDivSvgG");function Eo(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}p(Eo,"sandboxedIframe");var dw=p((e,t,r,i)=>{var a,s,l;(a=e.getElementById(t))==null||a.remove(),(s=e.getElementById(r))==null||s.remove(),(l=e.getElementById(i))==null||l.remove()},"removeExistingElements"),uw=p(async function(e,t,r){var j,W,D,M,F,I;us();const i=Tl(t);t=i.code;const a=Bt();R.debug(a),t.length>((a==null?void 0:a.maxTextSize)??US)&&(t=GS);const s="#"+e,l="i"+e,o="#"+l,n="d"+e,h="#"+n,c=p(()=>{const z=ht(g?o:h).node();z&&"remove"in z&&z.remove()},"removeTempElements");let d=ht("body");const g=a.securityLevel===XS,u=a.securityLevel===VS,m=a.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),g){const A=Eo(ht(r),l);d=ht(A.nodes()[0].contentDocument.body),d.node().style.margin=0}else d=ht(r);hh(d,e,n,`font-family: ${m}
307`,KS)}else{if(dw(document,e,n,l),g){const A=Eo(ht("body"),l);d=ht(A.nodes()[0].contentDocument.body),d.node().style.margin=0}else d=ht("body");hh(d,e,n)}let f,y;try{f=await Mo.fromText(t,{title:i.title})}catch(A){if(a.suppressErrorRendering)throw c(),A;f=await Mo.fromText("error"),y=A}const C=d.select(h).node(),b=f.type,T=C.firstChild,S=T.firstChild,w=(W=(j=f.renderer).getClasses)==null?void 0:W.call(j,t,f),v=nw(a,b,w,s),k=document.createElement("style");k.innerHTML=v,T.insertBefore(k,S);try{await f.renderer.draw(t,e,"11.14.0",f)}catch(A){throw a.suppressErrorRendering?c():RT.draw(t,e,"11.14.0"),A}const _=d.select(`${h} svg`),q=(M=(D=f.db).getAccTitle)==null?void 0:M.call(D),P=(I=(F=f.db).getAccDescription)==null?void 0:I.call(F);Gp(b,_,q,P),d.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",QS);let E=d.select(h).node().innerHTML;if(R.debug("config.arrowMarkerAbsolute",a.arrowMarkerAbsolute),E=hw(E,g,We(a.arrowMarkerAbsolute)),g){const A=d.select(h+" svg").node();E=cw(E,A)}else u||(E=Gr.sanitize(E,{ADD_TAGS:sw,ADD_ATTR:ow,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(zS(),y)throw y;return c(),{diagramType:b,svg:E,bindFunctions:f.db.bindFunctions}},"render");function Yp(e={}){var i;const t=$t({},e);t!=null&&t.fontFamily&&!((i=t.themeVariables)!=null&&i.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),Bm(t),t!=null&&t.theme&&t.theme in Pe?t.themeVariables=Pe[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Pe.default.getThemeVariables(t.themeVariables));const r=typeof t=="object"?wm(t):Oh();$o(r.logLevel),us()}p(Yp,"initialize");var Up=p((e,t={})=>{const{code:r}=kl(e);return Mo.fromText(r,t)},"getDiagramFromText");function Gp(e,t,r,i){Wp(t,e),zp(t,r,i,t.attr("id"))}p(Gp,"addA11yInfo");var fr=Object.freeze({render:uw,parse:jp,getDiagramFromText:Up,initialize:Yp,getConfig:Bt,setConfig:Ih,getSiteConfig:Oh,updateSiteConfig:vm,reset:p(()=>{wa()},"reset"),globalReset:p(()=>{wa(Xr)},"globalReset"),defaultConfig:Xr});$o(Bt().logLevel);wa(Bt());var gw=p((e,t,r)=>{R.warn(e),rl(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),Xp=p(async function(e={querySelector:".mermaid"}){try{await pw(e)}catch(t){if(rl(t)&&R.error(t.str),le.parseError&&le.parseError(t),!e.suppressErrors)throw R.error("Use the suppressErrors option to suppress these errors"),t}},"run"),pw=p(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const i=fr.getConfig();R.debug(`${e?"":"No "}Callback function found`);let a;if(r)a=r;else if(t)a=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");R.debug(`Found ${a.length} diagrams`),(i==null?void 0:i.startOnLoad)!==void 0&&(R.debug("Start On Load: "+(i==null?void 0:i.startOnLoad)),fr.updateSiteConfig({startOnLoad:i==null?void 0:i.startOnLoad}));const s=new pe.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let l;const o=[];for(const n of Array.from(a)){if(R.info("Rendering diagram: "+n.id),n.getAttribute("data-processed"))continue;n.setAttribute("data-processed","true");const h=`mermaid-${s.next()}`;l=n.innerHTML,l=cu(pe.entityDecode(l)).trim().replace(/<br\s*\/?>/gi,"<br/>");const c=pe.detectInit(l);c&&R.debug("Detected early reinit: ",c);try{const{svg:d,bindFunctions:g}=await Qp(h,l,n);n.innerHTML=d,e&&await e(h),g&&g(n)}catch(d){gw(d,o,le.parseError)}}if(o.length>0)throw o[0]},"runThrowsErrors"),Vp=p(function(e){fr.initialize(e)},"initialize"),fw=p(async function(e,t,r){R.warn("mermaid.init is deprecated. Please use run instead."),e&&Vp(e);const i={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await Xp(i)},"init"),mw=p(async(e,{lazyLoad:t=!0}={})=>{us(),Hs(...e),t===!1&&await qS()},"registerExternalDiagrams"),Zp=p(function(){if(le.startOnLoad){const{startOnLoad:e}=fr.getConfig();e&&le.run().catch(t=>R.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",Zp,!1);var yw=p(function(e){le.parseError=e},"setParseErrorHandler"),Ga=[],qs=!1,Kp=p(async()=>
307{if(!qs){for(qs=!0;Ga.length>0;){const e=Ga.shift();if(e)try{await e()}catch(t){R.error("Error executing queue",t)}}qs=!1}},"executeQueue"),Cw=p(async(e,t)=>new Promise((r,i)=>{const a=p(()=>new Promise((s,l)=>{fr.parse(e,t).then(o=>{s(o),r(o)},o=>{var n;R.error("Error parsing",o),(n=le.parseError)==null||n.call(le,o),l(o),i(o)})}),"performCall");Ga.push(a),Kp().catch(i)}),"parse"),Qp=p((e,t,r)=>new Promise((i,a)=>{const s=p(()=>new Promise((l,o)=>{fr.render(e,t,r).then(n=>{l(n),i(n)},n=>{var h;R.error("Error parsing",n),(h=le.parseError)==null||h.call(le,n),o(n),a(n)})}),"performCall");Ga.push(s),Kp().catch(a)}),"render"),xw=p(()=>Object.keys(hr).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),le={startOnLoad:!0,mermaidAPI:fr,parse:Cw,render:Qp,init:fw,run:Xp,registerExternalDiagrams:mw,registerLayoutLoaders:ep,initialize:Vp,parseError:void 0,contentLoaded:Zp,setParseErrorHandler:yw,detectType:Oo,registerIconPacks:mk,getRegisteredDiagramsMetadata:xw},bw=le;/*! Check if previously processed *//*! 308 * Wait for document loaded before starting the execution 309 */const Nw=Object.freeze(Object.defineProperty({__proto__:null,default:bw},Symbol.toStringTag,{value:"Module"}));export{jh as $,_w as A,Ge as B,ve as C,Sf as D,Bt as E,ey as F,il as G,$h as H,eb as I,cC as J,ay as K,is as L,sm as M,Ck as N,_i as O,vw as P,Im as Q,Nh as R,Zl as S,tb as T,lt as U,Ce as V,O as W,$ as X,Hm as Y,Ux as Z,p as _,Vm as a,$d as a$,Hk as a0,Kg as a1,Rw as a2,uC as a3,Qt as a4,Ne as a5,di as a6,al as a7,Ud as a8,gr as a9,$a as aA,B0 as aB,Ni as aC,ar as aD,fx as aE,pn as aF,mr as aG,v0 as aH,Zo as aI,S0 as aJ,F0 as aK,ti as aL,xx as aM,Nx as aN,O0 as aO,Ix as aP,Xo as aQ,sh as aR,Jr as aS,vx as aT,p2 as aU,zi as aV,Ia as aW,Qe as aX,Qa as aY,hn as aZ,Ko as a_,Zd as aa,U as ab,X as ac,Kd as ad,Y1 as ae,Pw as af,qw as ag,Iw as ah,K as ai,Dw as aj,b1 as ak,f1 as al,p1 as am,Sh as an,Bw as ao,rs as ap,Da as aq,Wd as ar,ji as as,mk as at,fk as au,Tf as av,bx as aw,Rd as ax,Md as ay,w0 as az,Xm as b,Pd as b0,k0 as b1,Fo as b2,zx as b3,Ox as b4,Hx as b5,Vo as b6,Yx as b7,Nw as b8,ft as c,Hh as d,$t as e,qe as f,Km as g,ye as h,gC as i,qi as j,Xd as k,R as l,Ri as m,Lw as n,zw as o,Qm as p,Jm as q,Ww as r,Zm as s,dC as t,pe as u,h1 as v,ab as w,Fw as x,Gr as y,Gm as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.