1
0
ultimatedocs/docs/.vitepress/dist/assets/app.CV7ObeM5.js

92 lines
255 KiB
JavaScript
Raw Normal View History

2024-07-27 13:25:59 +02:00
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/c4Diagram-ae766693.5zq8lNRz.js","assets/chunks/svgDrawCommon-5e1cfd1d.DXs4f8DI.js","assets/chunks/framework.DuA-ZlS8.js","assets/chunks/theme.B-IrzYt-.js","assets/chunks/flowDiagram-b222e15a.u5AVV-hs.js","assets/chunks/flowDb-c1833063.DvoUJcPW.js","assets/chunks/graph.kiq1lfdl.js","assets/chunks/layout.CGyoqY46.js","assets/chunks/styles-483fbfea.B1aiHS7-.js","assets/chunks/index-01f381cb.C7DEWKJL.js","assets/chunks/clone.DbtYtBgG.js","assets/chunks/edges-066a5561.ShgFzVAi.js","assets/chunks/createText-ca0c5216.CfRbav5E.js","assets/chunks/line.DlbMY8Uz.js","assets/chunks/array.BKyUJesY.js","assets/chunks/path.CbwjOpE9.js","assets/chunks/channel.hie1L93G.js","assets/chunks/flowDiagram-v2-13329dc7.MzkKFBua.js","assets/chunks/erDiagram-09d1c15f.nt4RMebt.js","assets/chunks/gitGraphDiagram-942e62fe.GaTrgGNF.js","assets/chunks/ganttDiagram-b62c793e.BQh2Y5Mm.js","assets/chunks/linear.BTr81f4m.js","assets/chunks/init.Gi6I4Gst.js","assets/chunks/infoDiagram-94cd232f.Byd6bx68.js","assets/chunks/pieDiagram-bb1d19e5.9eN9eF6r.js","assets/chunks/arc.BiEVnM6A.js","assets/chunks/ordinal.BYWQX77i.js","assets/chunks/quadrantDiagram-c759a472.BFrW3TVd.js","assets/chunks/xychartDiagram-f11f50a6.BQRBy1gR.js","assets/chunks/requirementDiagram-87253d64.B_dpYInn.js","assets/chunks/sequenceDiagram-6894f283.BDxPgqzG.js","assets/chunks/classDiagram-fb54d2a0.CGyvIBWD.js","assets/chunks/styles-b83b31c9.BgHlo92g.js","assets/chunks/classDiagram-v2-a2b738ad.DvyIbOUG.js","assets/chunks/stateDiagram-5dee940d.pJ0bb-t8.js","assets/chunks/styles-0784dbeb.DdBtIV0i.js","assets/chunks/stateDiagram-v2-1992cada.D30HA3w4.js","assets/chunks/journeyDiagram-6625b456.Cvg1HNyV.js","assets/chunks/flowchart-elk-definition-ae0efee6.DUjLe62V.js","assets/chunks/timeline-definition-bf702344.DWbs1z0u.js","assets/chunks/mindmap-definition-307c710a.MlW9Txbw.js","assets/chunks/sankeyDiagram-707fac0f.DFwNRdvL.js","assets/chunks/Tableau10.B-NsZVaP.js","assets/chunks/blockDiagram-9f4a6865.BtyFvzAC.js"])))=>i.map(i=>d[i]);
import{X as K,s as Lo,u as Ua,a6 as kc,y as Ya,z as Sc,o as wc,c as Bc,n as Ac,U as nn,a7 as Lc,a8 as Fc,a9 as Ec,aa as Oc,ab as Mc,ac as Ic,ad as $c,ae as Dc,af as Nc,ag as Rc,d as Pc,x as qc,ah as zc,ai as Wc,aj as Hc,ak as jc}from"./chunks/framework.DuA-ZlS8.js";import{R as Uc}from"./chunks/theme.B-IrzYt-.js";function Yc(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var r=Array.from(typeof t=="string"?[t]:t);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var n=r.reduce(function(s,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?s.concat(c.map(function(u){var f,h;return(h=(f=u.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&h!==void 0?h:0})):s},[]);if(n.length){var o=new RegExp(`
[ ]{`+Math.min.apply(Math,n)+"}","g");r=r.map(function(s){return s.replace(o,`
`)})}r[0]=r[0].replace(/^\r?\n/,"");var a=r[0];return e.forEach(function(s,l){var c=a.match(/(?:^|\n)( *)$/),u=c?c[1]:"",f=s;typeof s=="string"&&s.includes(`
`)&&(f=String(s).split(`
`).map(function(h,p){return p===0?h:""+u+h}).join(`
`)),a+=f+r[l+1]}),a}var Vc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Va={exports:{}};(function(t,e){(function(i,r){t.exports=r()})(Vc,function(){var i=1e3,r=6e4,n=36e5,o="millisecond",a="second",s="minute",l="hour",c="day",u="week",f="month",h="quarter",p="year",m="date",b="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,P=/\[([^\]]+)]|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,v={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(M){var T=["th","st","nd","rd"],y=M%100;return"["+M+(T[(y-20)%10]||T[y]||T[0])+"]"}},U=function(M,T,y){var w=String(M);return!w||w.length>=T?M:""+Array(T+1-w.length).join(y)+M},N={s:U,z:function(M){var T=-M.utcOffset(),y=Math.abs(T),w=Math.floor(y/60),x=y%60;return(T<=0?"+":"-")+U(w,2,"0")+":"+U(x,2,"0")},m:function M(T,y){if(T.date()<y.date())return-M(y,T);var w=12*(y.year()-T.year())+(y.month()-T.month()),x=T.clone().add(w,f),F=y-x<0,D=T.clone().add(w+(F?-1:1),f);return+(-(w+(y-x)/(F?x-D:D-x))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:f,y:p,w:u,d:c,D:m,h:l,m:s,s:a,ms:o,Q:h}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},j="en",G={};G[j]=v;var H="$isDayjsObject",Jt=function(M){return M instanceof wt||!(!M||!M[H])},Qt=function M(T,y,w){var x;if(!T)return j;if(typeof T=="string"){var F=T.toLowerCase();G[F]&&(x=F),y&&(G[F]=y,x=F);var D=T.split("-");if(!x&&D.length>1)return M(D[0])}else{var $=T.name;G[$]=T,x=$}return!w&&x&&(j=x),x||!w&&j},Z=function(M,T){if(Jt(M))return M.clone();var y=typeof T=="object"?T:{};return y.date=M,y.args=arguments,new wt(y)},R=N;R.l=Qt,R.i=Jt,R.w=function(M,T){return Z(M,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var wt=function(){function M(y){this.$L=Qt(y.locale,null,!0),this.parse(y),this.$x=this.$x||y.x||{},this[H]=!0}var T=M.prototype;return T.parse=function(y){this.$d=function(w){var x=w.date,F=w.utc;if(x===null)return new Date(NaN);if(R.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var D=x.match(k);if(D){var $=D[2]-1||0,X=(D[7]||"0").substring(0,3);return F?new Date(Date.UTC(D[1],$,D[3]||1,D[4]||0,D[5]||0,D[6]||0,X)):new Date(D[1],$,D[3]||1,D[4]||0,D[5]||0,D[6]||0,X)}}return new Date(x)}(y),this.init()},T.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},T.$utils=function(){return R},T.isValid=function(){return this.$d.toString()!==b},T.isSame=function(y,w){var x=Z(y);return this.startOf(w)<=x&&x<=this.endOf(w)},T.isAfter=function(y,w){return Z(y)<this.startOf(w)},T.isBefore=function(y,w){return this.endOf(w)<Z(y)},T.$g=function(y,w,x){return R.u(y)?this[w]:this.set(x,y)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(y,w){var x=this,F=!!R.u(w)||w,D=R.p(y),$=function(At,it){var Lt=R.w(x.$u?Date.UTC(x.$y,it,At):new Date(x.$y,it,At),x);return F?Lt:Lt.endOf(c)},X=function(At,it){return R.w(x.toDate()[At].apply(x.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(it)),x)},q=this.$W,tt=this.$M,W=this.$D,xt="set"+(this.$u?"UTC":"");switch(D){case p:return F?$(1,0):$(31,11);case f:return F?$(1,tt):$(0,tt+1);case u:var Bt=this.$locale().weekStart||0,ee=(q<Bt?q+7:q)-Bt;return $(F?W-ee:W+(6-ee),tt);case c:case m:return X(xt+"Hours",0);case l:return X(xt+"Minutes",1);case s:return X(xt+"Seconds",2);case a:return X(xt+"Milliseconds",3);default:return this.clone()}},T.endOf=function(y){return this.startOf(y,!1)},T.$set=function(y,w){var x,F=R.p(y),D="set"+(this.$u?"UTC":""),$=(x={},x[c]=D+"Date",
`+dt),bt&&$i([wt,te,M],$t=>{dt=Ke(dt,$t," ")}),N&&Ai?N.createHTML(dt):dt},e.setConfig=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};qr(B),Ir=!0},e.clearConfig=function(){Be=null,Ir=!1},e.isValidAttribute=function(B,d,_){Be||qr({});const S=et(B),Y=et(d);return ko(S,Y,_)},e.addHook=function(B,d){typeof d=="function"&&(R[B]=R[B]||[],Xe(R[B],d))},e.removeHook=function(B){if(R[B])return Qo(R[B])},e.removeHooks=function(B){R[B]&&(R[B]=[])},e.removeAllHooks=function(){R={}},e}var De=Ns();const Hi={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:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t),hsl2rgb:({h:t,s:e,l:i},r)=>{if(!e)return i*2.55;t/=360,e/=100,i/=100;const n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;switch(r){case"r":return Hi.hue2rgb(o,n,t+1/3)*255;case"g":return Hi.hue2rgb(o,n,t)*255;case"b":return Hi.hue2rgb(o,n,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:i},r)=>{t/=255,e/=255,i/=255;const n=Math.max(t,e,i),o=Math.min(t,e,i),a=(n+o)/2;if(r==="l")return a*100;if(n===o)return 0;const s=n-o,l=a>.5?s/(2-n-o):s/(n+o);if(r==="s")return l*100;switch(n){case t:return((e-i)/s+(e<i?6:0))*60;case e:return((i-t)/s+2)*60;case i:return((t-e)/s+4)*60;default:return-1}}},Zd={clamp:(t,e,i)=>e>i?Math.min(e,Math.max(i,t)):Math.min(i,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},Jd={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},I={channel:Hi,lang:Zd,unit:Jd},re={};for(let t=0;t<=255;t++)re[t]=I.unit.dec2hex(t);const ot={ALL:0,RGB:1,HSL:2};class Qd{constructor(){this.type=ot.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=ot.ALL}is(e){return this.type===e}}class tp{constructor(e,i){this.color=i,this.changed=!1,this.data=e,this.type=new Qd}set(e,i){return this.color=i,this.changed=!1,this.data=e,this.type.type=ot.ALL,this}_ensureHSL(){const e=this.data,{h:i,s:r,l:n}=e;i===void 0&&(e.h=I.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=I.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=I.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:i,g:r,b:n}=e;i===void 0&&(e.r=I.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=I.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=I.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,i=e.r;return!this.type.is(ot.HSL)&&i!==void 0?i:(this._ensureHSL(),I.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,i=e.g;return!this.type.is(ot.HSL)&&i!==void 0?i:(this._ensureHSL(),I.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,i=e.b;return!this.type.is(ot.HSL)&&i!==void 0?i:(this._ensureHSL(),I.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,i=e.h;return!this.type.is(ot.RGB)&&i!==void 0?i:(this._ensureRGB(),I.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,i=e.s;return!this.type.is(ot.RGB)&&i!==void 0?i:(this._ensureRGB(),I.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,i=e.l;return!this.type.is(ot.RGB)&&i!==void 0?i:(this._ensureRGB(),I.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(ot.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(ot.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(ot.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(ot.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(ot.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(ot.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const br=new tp({r:0,g:0,b:0,a:0},"transparent"),Oe={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(Oe.re);if(!e)return;const i=e[1],r=parseInt(i,16),n=i.length,o=n%4===0,a=n>4,s=a?1:17,l=a?8:4,c=o?0:-1,u=a?255:15;return br.set({r:(r>>l*(c+3)&u)*s,g:(r>>l*(c+2)&u)*s,b:(r>>l*(c+1)&u)*s,a:o?(r&u)*s/255:1},t)},stringify:t=>{const{r:e,
<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">
${r}
</div>
`:`<div>${r}</div>`).join("").replace(kn,(r,n)=>i.renderToString(n,{throwOnError:!0,displayMode:!0,output:Ba()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},Yn={getRows:l0,sanitizeText:Ci,sanitizeTextOrArray:u0,hasBreaks:f0,splitBreaks:d0,lineBreakRegex:wi,removeScript:al,getUrl:g0,evaluate:ll,getMax:m0,getMin:_0},ut=(t,e)=>e?g(t,{s:-40,l:10}):g(t,{s:-40,l:-10}),Lr="#ffffff",Fr="#f2f2f2";let b0=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var e,i,r,n,o,a,s,l,c,u,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||g(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||g(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ut(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ut(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||C(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||C(this.tertiaryColor),this.lineColor=this.lineColor||C(this.background),this.arrowheadColor=this.arrowheadColor||C(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?O(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||"grey",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||O(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||C(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||A(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=
`);for(const[i,{detector:r}]of Object.entries(Re))if(r(t,e))return i;throw new fl(`No diagram type detected matching given configuration for text: ${t}`)},dl=(...t)=>{for(const{id:e,detector:i,loader:r}of t)pl(e,i,r)},pl=(t,e,i)=>{Re[t]?E.error(`Detector with key ${t} already exists`):Re[t]={detector:e,loader:i},E.debug(`Detector with key ${t} added${i?" with loader":""}`)},$0=t=>Re[t].loader,Sn=(t,e,{depth:i=2,clobber:r=!1}={})=>{const n={depth:i,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(o=>Sn(t,o,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(o=>{t.includes(o)||t.push(o)}),t):t===void 0||i<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(o=>{typeof e[o]=="object"&&(t[o]===void 0||typeof t[o]=="object")?(t[o]===void 0&&(t[o]=Array.isArray(e[o])?[]:{}),t[o]=Sn(t[o],e[o],{depth:i-1,clobber:r})):(r||typeof t[o]!="object"&&typeof e[o]!="object")&&(t[o]=e[o])}),t)},at=Sn,D0="",N0={curveBasis:gd,curveBasisClosed:md,curveBasisOpen:_d,curveBumpX:dd,curveBumpY:pd,curveBundle:yd,curveCardinalClosed:xd,curveCardinalOpen:bd,curveCardinal:Cd,curveCatmullRomClosed:vd,curveCatmullRomOpen:kd,curveCatmullRom:Td,curveLinear:fd,curveLinearClosed:Sd,curveMonotoneX:wd,curveMonotoneY:Bd,curveNatural:Ad,curveStep:Ld,curveStepAfter:Ed,curveStepBefore:Fd},R0=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,P0=function(t,e){const i=gl(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const a=i.map(s=>s.args);sr(a),r=at(r,[...a])}else r=i.args;if(!r)return;let n=Er(t,e);const o="config";return r[o]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),r[n]=r[o],delete r[o]),r},gl=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${R0.source})(?=[}][%]{2}).*
`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),E.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=li.exec(t))!==null;)if(r.index===li.lastIndex&&li.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],a=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:a})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return E.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},q0=function(t){return t.replace(li,"")},z0=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function W0(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return N0[i]??e}function H0(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Ga.sanitizeUrl(i):i}const j0=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let a=0;a<r;a++)if(o=o[i[a]],!o){E.error(`Function name: ${t} not found in window`);return}o[n](...e)};function ml(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function U0(t){let e,i=0;t.forEach(n=>{i+=ml(n,e),e=n});const r=i/2;return Vn(t,r)}function Y0(t){return t.length===1?t[0]:U0(t)}const La=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},Vn=(t,e)=>{let i,r=e;for(const n of t){if(i){const o=ml(n,i);if(o<r)r-=o;else{const a=r/o;if(a<=0)return i;if(a>=1)return{x:n.x,y:n.y};if(a>0&&a<1)return{x:La((1-a)*i.x+a*n.x,5),y:La((1-a)*i.y+a*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},V0=(t,e,i)=>{E.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=Vn(e,25),o=t?10:5,a=Math.atan2(e[0].y-n.y,e[0].x-n.x),s={x:0,y:0};return s.x=Math.sin(a)*o+(e[0].x+n.x)/2,s.y=-Math.cos(a)*o+(e[0].y+n.y)/2,s};function G0(t,e,i){const r=structuredClone(i);E.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,o=Vn(r,n),a=10+t*.5,s=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(s+Math.PI)*a+(r[0].x+o.x)/2,l.y=-Math.cos(s+Math.PI)*a+(r[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(s-Math.PI)*a+(r[0].x+o.x)/2-5,l.y=-Math.cos(s-Math.PI)*a+(r[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(s)*a+(r[0].x+o.x)/2-5,l.y=-Math.cos(s)*a+(r[0].y+o.y)/2-5):(l.x=Math.sin(s)*a+(r[0].x+o.x)/2,l.y=-Math.cos(s)*a+(r[0].y+o.y)/2),l}function X0(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let Fa=0;const K0=()=>(Fa++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Fa);function Z0(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;n<t;n++)e+=i.charAt(Math.floor(Math.random()*r));return e}const J0=t=>Z0(t.length),Q0=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:""}},t_=function(t,e){const i=e.text.replace(Yn.lineBreakRegex," "),[,r]=Xn(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},e_=ki((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),Yn.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((a,s)=>{const l=lr(`${a} `,i),c=lr(o,i);if(l>e){const{hyphenatedStrings:h,remainingWord:p}=i_(a,e,"-",i);n.push(o,...h),o=p}else c+l>=e?(n.push(o),o=a):o=[o,a].filter(Boolean).join(" ");s+1===r.length&&n.push(o)}),n.filter(a=>a!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),i_=ki((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let a="";return n.forEach((s,l)=>{const c=`${a}${
font-family: ${i.fontFamily};
font-size: ${i.fontSize};
fill: ${i.textColor}
}
/* Classes common for multiple diagrams */
& .error-icon {
fill: ${i.errorBkgColor};
}
& .error-text {
fill: ${i.errorTextColor};
stroke: ${i.errorTextColor};
}
& .edge-thickness-normal {
stroke-width: 2px;
}
& .edge-thickness-thick {
stroke-width: 3.5px
}
& .edge-pattern-solid {
stroke-dasharray: 0;
}
& .edge-pattern-dashed{
stroke-dasharray: 3;
}
.edge-pattern-dotted {
stroke-dasharray: 2;
}
& .marker {
fill: ${i.lineColor};
stroke: ${i.lineColor};
}
& .marker.cross {
stroke: ${i.lineColor};
}
& svg {
font-family: ${i.fontFamily};
font-size: ${i.fontSize};
}
${r}
${e}
`},Ey=(t,e)=>{e!==void 0&&(Vi[t]=e)},Oy=Fy;let Kn="",Zn="",Jn="";const Qn=t=>Ci(t,Pt()),My=()=>{Kn="",Jn="",Zn=""},Iy=t=>{Kn=Qn(t).replace(/^\s+/g,"")},$y=()=>Kn,Dy=t=>{Jn=Qn(t).replace(/\n\s+/g,`
`)},Ny=()=>Jn,Ry=t=>{Zn=Qn(t)},Py=()=>Zn,qy=Object.freeze(Object.defineProperty({__proto__:null,clear:My,getAccDescription:Ny,getAccTitle:$y,getDiagramTitle:Py,setAccDescription:Dy,setAccTitle:Iy,setDiagramTitle:Ry},Symbol.toStringTag,{value:"Module"})),zy=E,Wy=Un,to=Pt,b1=bl,T1=Pe,Hy=t=>Ci(t,to()),jy=Ly,Uy=()=>qy,hr={},ur=(t,e,i)=>{var r;if(hr[t])throw new Error(`Diagram ${t} already registered.`);hr[t]=e,i&&pl(t,i),Ey(t,e.styles),(r=e.injectUtils)==null||r.call(e,zy,Wy,to,Hy,jy,Uy(),()=>{})},eo=t=>{if(t in hr)return hr[t];throw new Yy(t)};class Yy extends Error{constructor(e){super(`Diagram ${e} not found.`)}}const Vy=t=>{var e;const{securityLevel:i}=to();let r=vt("body");if(i==="sandbox"){const a=((e=vt(`#i${t}`).node())==null?void 0:e.contentDocument)??document;r=vt(a.body)}return r.select(`#${t}`)},Gy=(t,e,i)=>{E.debug(`rendering svg for syntax error
`);const r=Vy(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),zl(r,100,512,!0),n.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"),n.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"),n.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"),n.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.164-16,16v32c0,8.836 7.156,16 16,16z"),n.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"),n.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"),n.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"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},Wl={draw:Gy},Xy=Wl,Ky={db:{},renderer:Wl,parser:{parser:{yy:{}},parse:()=>{}}},Zy=Ky,Hl="flowchart-elk",Jy=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},Qy=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./chunks/flowchart-elk-definition-ae0efee6.DUjLe62V.js");return{diagram:e}},__vite__mapDeps([38,5,11,12,13,14,15,2,3]));return{id:Hl,diagram:t}},tC={id:Hl,detector:Jy,loader:Qy},eC=tC,jl="timeline",iC=t=>/^\s*timeline/.test(t),rC=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./chunks/timeline-definition-bf702344.DWbs1z0u.js");return{diagram:e}},__vite__mapDeps([39,25,15,2,3]));return{id:jl,diagram:t}},nC={id:jl,detector:iC,loader:rC},oC=nC,Ul="mindmap",aC=t=>/^\s*mindmap/.test(t),sC=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./chunks/mindmap-definition-307c710a.MlW9Txbw.js");return{diagram:e}},__vite__mapDeps([40,12,2,3]));return{id:Ul,diagram:t}},lC={id:Ul,detector:aC,loader:sC},cC=lC,Yl="sankey",hC=t=>/^\s*sankey-beta/.test(t),uC=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./chunks/sankeyDiagram-707fac0f.DFwNRdvL.js");return{diagram:e}},__vite__mapDeps([41,26,22,42,2,3]));return{id:Yl,diagram:t}},fC={id:Yl,detector:hC,loader:uC},dC=fC,Vl="block",pC=t=>/^\s*block-beta/.test(t),gC=async()=>{const{diagram:t}=await K(async()=>{const{diagram:e}=await import("./chunks/blockDiagram-9f4a6865.BtyFvzAC.js");return{diagram:e}},__vite__mapDeps([43,10,6,11,12,13,14,15,26,22,16,42,2,3]));return{id:Vl,diagram:t}},mC={id:Vl,detector:pC,loader:gC},_C=mC;let Ma=!1;const io=()=>{Ma||(Ma=!0,ur("error",Zy,t=>t.toLowerCase().trim()==="error"),ur("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter,
`;const r=Pt();try{this.type=Er(e,r)}catch(o){this.type="error",this.detectError=o}const n=eo(this.type);E.debug("Type "+this.type),this.db=n.db,this.renderer=n.renderer,this.parser=n.parser,this.parser.parser.yy=this.db,this.init=n.init,this.parse()}parse(){var e,i,r,n,o;if(this.detectError)throw this.detectError;(i=(e=this.db).clear)==null||i.call(e);const a=Pt();(r=this.init)==null||r.call(this,a),this.metadata.title&&((o=(n=this.db).setDiagramTitle)==null||o.call(n,this.metadata.title)),this.parser.parse(this.text)}async render(e,i){await this.renderer.draw(this.text,e,i,this)}getParser(){return this.parser}getType(){return this.type}}const yC=async(t,e={})=>{const i=Er(t,Pt());try{eo(i)}catch{const n=$0(i);if(!n)throw new fl(`Diagram ${i} not found.`);const{id:o,diagram:a}=await n();ur(o,a)}return new Gl(t,e)};let Ia=[];const CC=()=>{Ia.forEach(t=>{t()}),Ia=[]},xC="graphics-document document";function bC(t,e){t.attr("role",xC),e!==""&&t.attr("aria-roledescription",e)}function TC(t,e,i,r){if(t.insert!==void 0){if(i){const n=`chart-desc-${r}`;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(i)}if(e){const n=`chart-title-${r}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}const vC=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Xl(t){return typeof t>"u"||t===null}function kC(t){return typeof t=="object"&&t!==null}function SC(t){return Array.isArray(t)?t:Xl(t)?[]:[t]}function wC(t,e){var i,r,n,o;if(e)for(o=Object.keys(e),i=0,r=o.length;i<r;i+=1)n=o[i],t[n]=e[n];return t}function BC(t,e){var i="",r;for(r=0;r<e;r+=1)i+=t;return i}function AC(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var LC=Xl,FC=kC,EC=SC,OC=BC,MC=AC,IC=wC,ht={isNothing:LC,isObject:FC,toArray:EC,repeat:OC,isNegativeZero:MC,extend:IC};function Kl(t,e){var i="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(i+='in "'+t.mark.name+'" '),i+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(i+=`
`+t.mark.snippet),r+" "+i):r}function xi(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Kl(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}xi.prototype=Object.create(Error.prototype);xi.prototype.constructor=xi;xi.prototype.toString=function(e){return this.name+": "+Kl(this,e)};var Gt=xi;function Qr(t,e,i,r,n){var o="",a="",s=Math.floor(n/2)-1;return r-e>s&&(o=" ... ",e=r-s+o.length),i-r>s&&(a=" ...",i=r+s-a.length),{str:o+t.slice(e,i).replace(/\t/g,"→")+a,pos:r-e+o.length}}function tn(t,e){return ht.repeat(" ",e-t.length)+t}function $C(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var i=/\r?\n|\r|\0/g,r=[0],n=[],o,a=-1;o=i.exec(t.buffer);)n.push(o.index),r.push(o.index+o[0].length),t.position<=o.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var s="",l,c,u=Math.min(t.line+e.linesAfter,n.length).toString().length,f=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(a-l<0);l++)c=Qr(t.buffer,r[a-l],n[a-l],t.position-(r[a]-r[a-l]),f),s=ht.repeat(" ",e.indent)+tn((t.line-l+1).toString(),u)+" | "+c.str+`
`+s;for(c=Qr(t.buffer,r[a],n[a],t.position,f),s+=ht.repeat(" ",e.indent)+tn((t.line+1).toString(),u)+" | "+c.str+`
`,s+=ht.repeat("-",e.indent+u+3+c.pos)+`^
`,l=1;l<=e.linesAfter&&!(a+l>=n.length);l++)c=Qr(t.buffer,r[a+l],n[a+l],t.position-(r[a]-r[a+l]),f),s+=ht.repeat(" ",e.indent)+tn((t.line+l+1).toString(),u)+" | "+c.str+`
`;return s.replace(/\n$/,"")}var DC=$C,NC=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],RC=["scalar","sequence","mapping"];function PC(t){var e={};return t!==null&&Object.keys(t).forEach(function(i){t[i].forEach(function(r){e[String(r)]=i})}),e}function qC(t,e){if(e=e||{},Object.keys(e).forEach(function(i){if(NC.indexOf(i)===-1)throw new Gt('Unknown option "'+i+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(i){return i},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=PC(e.styleAliases||null),RC.indexOf(this.kind)===-1)throw new Gt('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var st=qC;function $a(t,e){var i=[];return t[e].forEach(function(r){var n=i.length;i.forEach(function(o,a){o.tag===r.tag&&o.kind===r.kind&&o.multi===r.multi&&(n=a)}),i[n]=r}),i}function zC(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,i;function r(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,i=arguments.length;e<i;e+=1)arguments[e].forEach(r);return t}function wn(t){return this.extend(t)}wn.prototype.extend=function(e){var i=[],r=[];if(e instanceof st)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(i=i.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new Gt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(o){if(!(o instanceof st))throw new Gt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new Gt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new Gt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(o){if(!(o instanceof st))throw new Gt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(wn.prototype);return n.implicit=(this.implicit||[]).concat(i),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=$a(n,"implicit"),n.compiledExplicit=$a(n,"explicit"),n.compiledTypeMap=zC(n.compiledImplicit,n.compiledExplicit),n};var WC=wn,HC=new st("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),jC=new st("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),UC=new st("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),YC=new WC({explicit:[HC,jC,UC]});function VC(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function GC(){return null}function XC(t){return t===null}var KC=new st("tag:yaml.org,2002:null",{kind:"scalar",resolve:VC,construct:GC,predicate:XC,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function ZC(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function JC(t){return t==="true"||t==="True"||t==="TRUE"}function QC(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var tx=new st("tag:yaml.org,2002:bool",{kind:"scalar",resolve:ZC,construct:JC,predicate:QC,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});functio
\r`;function Tx(t){if(t===null)return!1;var e,i,r=0,n=t.length,o=ro;for(i=0;i<n;i++)if(e=o.indexOf(t.charAt(i)),!(e>64)){if(e<0)return!1;r+=6}return r%8===0}function vx(t){var e,i,r=t.replace(/[\r\n=]/g,""),n=r.length,o=ro,a=0,s=[];for(e=0;e<n;e++)e%4===0&&e&&(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)),a=a<<6|o.indexOf(r.charAt(e));return i=n%4*6,i===0?(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)):i===18?(s.push(a>>10&255),s.push(a>>2&255)):i===12&&s.push(a>>4&255),new Uint8Array(s)}function kx(t){var e="",i=0,r,n,o=t.length,a=ro;for(r=0;r<o;r++)r%3===0&&r&&(e+=a[i>>18&63],e+=a[i>>12&63],e+=a[i>>6&63],e+=a[i&63]),i=(i<<8)+t[r];return n=o%3,n===0?(e+=a[i>>18&63],e+=a[i>>12&63],e+=a[i>>6&63],e+=a[i&63]):n===2?(e+=a[i>>10&63],e+=a[i>>4&63],e+=a[i<<2&63],e+=a[64]):n===1&&(e+=a[i>>2&63],e+=a[i<<4&63],e+=a[64],e+=a[64]),e}function Sx(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var wx=new st("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Tx,construct:vx,predicate:Sx,represent:kx}),Bx=Object.prototype.hasOwnProperty,Ax=Object.prototype.toString;function Lx(t){if(t===null)return!0;var e=[],i,r,n,o,a,s=t;for(i=0,r=s.length;i<r;i+=1){if(n=s[i],a=!1,Ax.call(n)!=="[object Object]")return!1;for(o in n)if(Bx.call(n,o))if(!a)a=!0;else return!1;if(!a)return!1;if(e.indexOf(o)===-1)e.push(o);else return!1}return!0}function Fx(t){return t!==null?t:[]}var Ex=new st("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Lx,construct:Fx}),Ox=Object.prototype.toString;function Mx(t){if(t===null)return!0;var e,i,r,n,o,a=t;for(o=new Array(a.length),e=0,i=a.length;e<i;e+=1){if(r=a[e],Ox.call(r)!=="[object Object]"||(n=Object.keys(r),n.length!==1))return!1;o[e]=[n[0],r[n[0]]]}return!0}function Ix(t){if(t===null)return[];var e,i,r,n,o,a=t;for(o=new Array(a.length),e=0,i=a.length;e<i;e+=1)r=a[e],n=Object.keys(r),o[e]=[n[0],r[n[0]]];return o}var $x=new st("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Mx,construct:Ix}),Dx=Object.prototype.hasOwnProperty;function Nx(t){if(t===null)return!0;var e,i=t;for(e in i)if(Dx.call(i,e)&&i[e]!==null)return!1;return!0}function Rx(t){return t!==null?t:{}}var Px=new st("tag:yaml.org,2002:set",{kind:"mapping",resolve:Nx,construct:Rx}),qx=gx.extend({implicit:[Cx,bx],explicit:[wx,Ex,$x,Px]}),se=Object.prototype.hasOwnProperty,fr=1,tc=2,ec=3,dr=4,en=1,zx=2,Da=3,Wx=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Hx=/[\x85\u2028\u2029]/,jx=/[,\[\]\{\}]/,ic=/^(?:!|!!|![a-z\-]+!)$/i,rc=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Na(t){return Object.prototype.toString.call(t)}function Nt(t){return t===10||t===13}function me(t){return t===9||t===32}function mt(t){return t===9||t===32||t===10||t===13}function Le(t){return t===44||t===91||t===93||t===123||t===125}function Ux(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function Yx(t){return t===120?2:t===117?4:t===85?8:0}function Vx(t){return 48<=t&&t<=57?t-48:-1}function Ra(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"…":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}function Gx(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var nc=new Array(256),oc=new Array(256);for(var Ae=0;Ae<256;Ae++)nc[Ae]=Ra(Ae)?1:0,oc[Ae]=Ra(Ae);function Xx(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||qx,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function ac(t,e){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=DC(i),new Gt(e,i)}function L(t,e){throw ac(t,e)}function pr(t,e){t.onWarning&&t.onWarning.call(null,ac(t,e))}var Pa={YAML:function(e,i,r){var n,o,a;e.version!==null&&L(e,"duplication of %YAML directive"),r.length!==1&&L(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),n===null&&L(e,"ill-formed argument of the YAML directive"),o=parseInt(n[1],10),a=parseInt(n[2],10),o!==1&&L(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&pr(e,"unsupported YAML version of the document")},TAG:function(e,i,r){var n,o;r.length!==2&&L(e,"TAG directive accepts exactly two arguments"),n=r[0],o=r[1],ic.test(n)||L(e,"ill-formed tag handle (first argument) of the TAG directive"),se.call(e.tagMap,n)&&L(e,'there is a previously declared suffix for "'+n+'" tag handle'),rc.test(o)||L(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{L(e,"tag prefix is malformed: "+o)}e.tagMap[n]=o}};function oe(t,e,i,r){var n,o,a,s;if(e<i){if(s=t.input.slice(e,i),r)for(n=0,o=s.length;n<o;n+=1)a=s.charCodeAt(n),a===9||32<=a&&a<=1114111||L(t,"expected valid JSON character");else Wx.test(s)&&L(t,"the stream contains non-printable characters");t.result+=s}}function qa(t,e,i,r){var n,o,a,s;for(ht.isObject(i)||L(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(i),a=0,s=n.length;a<s;a+=1)o=n[a],se.call(e,o)||(e[o]=i[o],r[o]=!0)}function Fe(t,e,i,r,n,o,a,s,l){var c,u;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,u=n.length;c<u;c+=1)Array.isArray(n[c])&&L(t,"nested arrays are not supported inside keys"),typeof n=="object"&&Na(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&Na(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,u=o.length;c<u;c+=1)qa(t,e,o[c],i);else qa(t,e,o,i);else!t.json&&!se.call(i,n)&&se.call(e,n)&&(t.line=a||t.line,t.lineStart=s||t.lineStart,t.position=l||t.position,L(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:o}):e[n]=o,delete i[n];return e}function no(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):L(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Q(t,e,i){for(var r=0,n=t.input.charCodeAt(t.position);n!==0;){for(;me(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(Nt(n))for(no(t),n=t.input.charCodeAt(t.position),r++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return i!==-1&&r!==0&&t.lineIndent<i&&pr(t,"deficient indentation"),r}function Mr(t){var e=t.position,i;return i=t.input.charCodeAt(e),!!((i===45||i===46)&&i===t.input.charCodeAt(e+1)&&i===t.input.charCodeAt(e+2)&&(e+=3,i=t.input.charCodeAt(e),i===0||mt(i)))}function oo(t,e){e===1?t.result+=" ":e>1&&(t.result+=ht.repeat(`
`,e-1))}function Kx(t,e,i){var r,n,o,a,s,l,c,u,f=t.kind,h=t.result,p;if(p=t.input.charCodeAt(t.position),mt(p)||Le(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(n=t.input.charCodeAt(t.position+1),mt(n)||i&&Le(n)))return!1;for(t.kind="scalar",t.result="",o=a=t.position,s=!1;p!==0;){if(p===58){if(n=t.input.charCodeAt(t.position+1),mt(n)||i&&Le(n))break}else if(p===35){if(r=t.input.charCodeAt(t.position-1),mt(r))break}else{if(t.position===t.lineStart&&Mr(t)||i&&Le(p))break;if(Nt(p))if(l=t.line,c=t.lineStart,u=t.lineIndent,Q(t,!1,-1),t.lineIndent>=e){s=!0,p=t.input.charCodeAt(t.position);continue}else{t.position=a,t.line=l,t.lineStart=c,t.lineIndent=u;break}}s&&(oe(t,o,a,!1),oo(t,t.line-l),o=a=t.position,s=!1),me(p)||(a=t.position+1),p=t.input.charCodeAt(++t.position)}return oe(t,o,a,!1),t.result?!0:(t.kind=f,t.result=h,!1)}function Zx(t,e){var i,r,n;if(i=t.input.charCodeAt(t.position),i!==39)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(i=t.input.charCodeAt(t.position))!==0;)if(i===39)if(oe(t,r,t.position,!0),i=t.input.charCodeAt(++t.position),i===39)r=t.position,t.position++,n=t.position;else return!0;else Nt(i)?(oe(t,r,n,!0),oo(t,Q(t,!1,e)),r=n=t.position):t.position===t.lineStart&&Mr(t)?L(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);L(t,"unexpected end of the stream within a single quoted scalar")}function Jx(t,e){var i,r,n,o,a,s;if(s=t.input.charCodeAt(t.position),s!==34)return!1;for(t.kind="scalar",t.result="",t.position++,i=r=t.position;(s=t.input.charCodeAt(t.position))!==0;){if(s===34)return oe(t,i,t.position,!0),t.position++,!0;if(s===92){if(oe(t,i,t.position,!0),s=t.input.charCodeAt(++t.position),Nt(s))Q(t,!1,e);else if(s<256&&nc[s])t.result+=oc[s],t.position++;else if((a=Yx(s))>0){for(n=a,o=0;n>0;n--)s=t.input.charCodeAt(++t.position),(a=Ux(s))>=0?o=(o<<4)+a:L(t,"expected hexadecimal character");t.result+=Gx(o),t.position++}else L(t,"unknown escape sequence");i=r=t.position}else Nt(s)?(oe(t,i,r,!0),oo(t,Q(t,!1,e)),i=r=t.position):t.position===t.lineStart&&Mr(t)?L(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}L(t,"unexpected end of the stream within a double quoted scalar")}function Qx(t,e){var i=!0,r,n,o,a=t.tag,s,l=t.anchor,c,u,f,h,p,m=Object.create(null),b,k,P,v;if(v=t.input.charCodeAt(t.position),v===91)u=93,p=!1,s=[];else if(v===123)u=125,p=!0,s={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),v=t.input.charCodeAt(++t.position);v!==0;){if(Q(t,!0,e),v=t.input.charCodeAt(t.position),v===u)return t.position++,t.tag=a,t.anchor=l,t.kind=p?"mapping":"sequence",t.result=s,!0;i?v===44&&L(t,"expected the node content, but found ','"):L(t,"missed comma between flow collection entries"),k=b=P=null,f=h=!1,v===63&&(c=t.input.charCodeAt(t.position+1),mt(c)&&(f=h=!0,t.position++,Q(t,!0,e))),r=t.line,n=t.lineStart,o=t.position,ze(t,e,fr,!1,!0),k=t.tag,b=t.result,Q(t,!0,e),v=t.input.charCodeAt(t.position),(h||t.line===r)&&v===58&&(f=!0,v=t.input.charCodeAt(++t.position),Q(t,!0,e),ze(t,e,fr,!1,!0),P=t.result),p?Fe(t,s,m,k,b,P,r,n,o):f?s.push(Fe(t,null,m,k,b,P,r,n,o)):s.push(b),Q(t,!0,e),v=t.input.charCodeAt(t.position),v===44?(i=!0,v=t.input.charCodeAt(++t.position)):i=!1}L(t,"unexpected end of the stream within a flow collection")}function tb(t,e){var i,r,n=en,o=!1,a=!1,s=e,l=0,c=!1,u,f;if(f=t.input.charCodeAt(t.position),f===124)r=!1;else if(f===62)r=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)en===n?n=f===43?Da:zx:L(t,"repeat of a chomping mode identifier");else if((u=Vx(f))>=0)u===0?L(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?L(t,"repeat of an indentation width identifier"):(s=e+u-1,a=!0);else break;if(me(f)){do f=t.input.charCodeAt(++t.position);while(me(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!Nt(f)&&f!==0)}for(;f!==0;){for(no(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!a||t.lineIndent<s)&&
`,o?1+l:l):n===en&&o&&(t.result+=`
`);break}for(r?me(f)?(c=!0,t.result+=ht.repeat(`
`,o?1+l:l)):c?(c=!1,t.result+=ht.repeat(`
`,l+1)):l===0?o&&(t.result+=" "):t.result+=ht.repeat(`
`,l):t.result+=ht.repeat(`
`,o?1+l:l),o=!0,a=!0,l=0,i=t.position;!Nt(f)&&f!==0;)f=t.input.charCodeAt(++t.position);oe(t,i,t.position,!1)}return!0}function za(t,e){var i,r=t.tag,n=t.anchor,o=[],a,s=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,L(t,"tab characters must not be used in indentation")),!(l!==45||(a=t.input.charCodeAt(t.position+1),!mt(a))));){if(s=!0,t.position++,Q(t,!0,-1)&&t.lineIndent<=e){o.push(null),l=t.input.charCodeAt(t.position);continue}if(i=t.line,ze(t,e,ec,!1,!0),o.push(t.result),Q(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===i||t.lineIndent>e)&&l!==0)L(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return s?(t.tag=r,t.anchor=n,t.kind="sequence",t.result=o,!0):!1}function eb(t,e,i){var r,n,o,a,s,l,c=t.tag,u=t.anchor,f={},h=Object.create(null),p=null,m=null,b=null,k=!1,P=!1,v;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=f),v=t.input.charCodeAt(t.position);v!==0;){if(!k&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,L(t,"tab characters must not be used in indentation")),r=t.input.charCodeAt(t.position+1),o=t.line,(v===63||v===58)&&mt(r))v===63?(k&&(Fe(t,f,h,p,m,null,a,s,l),p=m=b=null),P=!0,k=!0,n=!0):k?(k=!1,n=!0):L(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,v=r;else{if(a=t.line,s=t.lineStart,l=t.position,!ze(t,i,tc,!1,!0))break;if(t.line===o){for(v=t.input.charCodeAt(t.position);me(v);)v=t.input.charCodeAt(++t.position);if(v===58)v=t.input.charCodeAt(++t.position),mt(v)||L(t,"a whitespace character is expected after the key-value separator within a block mapping"),k&&(Fe(t,f,h,p,m,null,a,s,l),p=m=b=null),P=!0,k=!1,n=!1,p=t.tag,m=t.result;else if(P)L(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=u,!0}else if(P)L(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=u,!0}if((t.line===o||t.lineIndent>e)&&(k&&(a=t.line,s=t.lineStart,l=t.position),ze(t,e,dr,!0,n)&&(k?m=t.result:b=t.result),k||(Fe(t,f,h,p,m,b,a,s,l),p=m=b=null),Q(t,!0,-1),v=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&v!==0)L(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return k&&Fe(t,f,h,p,m,null,a,s,l),P&&(t.tag=c,t.anchor=u,t.kind="mapping",t.result=f),P}function ib(t){var e,i=!1,r=!1,n,o,a;if(a=t.input.charCodeAt(t.position),a!==33)return!1;if(t.tag!==null&&L(t,"duplication of a tag property"),a=t.input.charCodeAt(++t.position),a===60?(i=!0,a=t.input.charCodeAt(++t.position)):a===33?(r=!0,n="!!",a=t.input.charCodeAt(++t.position)):n="!",e=t.position,i){do a=t.input.charCodeAt(++t.position);while(a!==0&&a!==62);t.position<t.length?(o=t.input.slice(e,t.position),a=t.input.charCodeAt(++t.position)):L(t,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!mt(a);)a===33&&(r?L(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),ic.test(n)||L(t,"named tag handle cannot contain such characters"),r=!0,e=t.position+1)),a=t.input.charCodeAt(++t.position);o=t.input.slice(e,t.position),jx.test(o)&&L(t,"tag suffix cannot contain flow indicator characters")}o&&!rc.test(o)&&L(t,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{L(t,"tag name is malformed: "+o)}return i?t.tag=o:se.call(t.tagMap,n)?t.tag=t.tagMap[n]+o:n==="!"?t.tag="!"+o:n==="!!"?t.tag="tag:yaml.org,2002:"+o:L(t,'undeclared tag handle "'+n+'"'),!0}function rb(t){var e,i;if(i=t.input.charCodeAt(t.position),i!==38)return!1;for(t.anchor!==null&&L(t,"duplication of an anchor property"),i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!mt(i)&&!Le(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&L(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function nb(t){var e,i,r;if(r=t.input.charCodeAt(t.position),r!==42)return!1;for(r=t.input.charCodeAt(++t.pos
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var i=new Xx(t,e),r=t.indexOf("\0");for(r!==-1&&(i.position=r,L(i,"null byte is not allowed in input")),i.input+="\0";i.input.charCodeAt(i.position)===32;)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)ob(i);return i.documents}function ab(t,e,i){e!==null&&typeof e=="object"&&typeof i>"u"&&(i=e,e=null);var r=sc(t,i);if(typeof e!="function")return r;for(var n=0,o=r.length;n<o;n+=1)e(r[n])}function sb(t,e){var i=sc(t,e);if(i.length!==0){if(i.length===1)return i[0];throw new Gt("expected a single document in the stream, but found more")}}var lb=ab,cb=sb,hb={loadAll:lb,load:cb},ub=Zl,fb=hb.load;function db(t){const e=t.match(ul);if(!e)return{text:t,metadata:{}};let i=fb(e[1],{schema:ub})??{};i=typeof i=="object"&&!Array.isArray(i)?i:{};const r={};return i.displayMode&&(r.displayMode=i.displayMode.toString()),i.title&&(r.title=i.title.toString()),i.config&&(r.config=i.config),{text:t.slice(e[0].length),metadata:r}}const pb=t=>t.replace(/\r\n?/g,`
`).replace(/<(\w+)([^>]*)>/g,(e,i,r)=>"<"+i+r.replace(/="([^"]*)"/g,"='$1'")+">"),gb=t=>{const{text:e,metadata:i}=db(t),{displayMode:r,title:n,config:o={}}=i;return r&&(o.gantt||(o.gantt={}),o.gantt.displayMode=r),{title:n,config:o,text:e}},mb=t=>{const e=ci.detectInit(t)??{},i=ci.detectDirective(t,"wrap");return Array.isArray(i)?e.wrap=i.some(({type:r})=>{}):(i==null?void 0:i.type)==="wrap"&&(e.wrap=!0),{text:q0(t),directive:e}};function lc(t){const e=pb(t),i=gb(e),r=mb(i.text),n=yl(i.config,r.directive);return t=vC(r.text),{code:t,title:i.title,config:n}}const _b=5e4,yb="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Cb="sandbox",xb="loose",bb="http://www.w3.org/2000/svg",Tb="http://www.w3.org/1999/xlink",vb="http://www.w3.org/1999/xhtml",kb="100%",Sb="100%",wb="border:0;margin:0;",Bb="margin:0",Ab="allow-top-navigation-by-user-activation allow-popups",Lb='The "iframe" tag is not supported by your browser.',Fb=["foreignobject"],Eb=["dominant-baseline"];function cc(t){const e=lc(t);return cr(),f_(e.config??{}),e}async function Ob(t,e){io(),t=cc(t).code;try{await ao(t)}catch(i){if(e!=null&&e.suppressErrors)return!1;throw i}return!0}const Wa=(t,e,i=[])=>`
.${t} ${e} { ${i.join(" !important; ")} !important; }`,Mb=(t,e={})=>{var i;let r="";if(t.themeCSS!==void 0&&(r+=`
${t.themeCSS}`),t.fontFamily!==void 0&&(r+=`
:root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(r+=`
:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!Jr(e)){const s=t.htmlLabels||((i=t.flowchart)==null?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const l in e){const c=e[l];Jr(c.styles)||s.forEach(u=>{r+=Wa(c.id,u,c.styles)}),Jr(c.textStyles)||(r+=Wa(c.id,"tspan",c.textStyles))}}return r},Ib=(t,e,i,r)=>{const n=Mb(t,i),o=Oy(e,n,t.themeVariables);return yn(Um(`${r}{${o}}`),Vm)},$b=(t="",e,i)=>{let r=t;return!i&&!e&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=l_(r),r=r.replace(/<br>/g,"<br/>"),r},Db=(t="",e)=>{var i,r;const n=(r=(i=e==null?void 0:e.viewBox)==null?void 0:i.baseVal)!=null&&r.height?e.viewBox.baseVal.height+"px":Sb,o=btoa('<body style="'+Bb+'">'+t+"</body>");return`<iframe style="width:${kb};height:${n};${wb}" src="data:text/html;base64,${o}" sandbox="${Ab}">
${Lb}
</iframe>`},Ha=(t,e,i,r,n)=>{const o=t.append("div");o.attr("id",i),r&&o.attr("style",r);const a=o.append("svg").attr("id",e).attr("width","100%").attr("xmlns",bb);return n&&a.attr("xmlns:xlink",n),a.append("g"),t};function ja(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const Nb=(t,e,i,r)=>{var n,o,a;(n=t.getElementById(e))==null||n.remove(),(o=t.getElementById(i))==null||o.remove(),(a=t.getElementById(r))==null||a.remove()},Rb=async function(t,e,i){var r,n,o,a,s,l;io();const c=cc(e);e=c.code;const u=Pt();E.debug(u),e.length>((u==null?void 0:u.maxTextSize)??_b)&&(e=yb);const f="#"+t,h="i"+t,p="#"+h,m="d"+t,b="#"+m;let k=vt("body");const P=u.securityLevel===Cb,v=u.securityLevel===xb,U=u.fontFamily;if(i!==void 0){if(i&&(i.innerHTML=""),P){const F=ja(vt(i),h);k=vt(F.nodes()[0].contentDocument.body),k.node().style.margin=0}else k=vt(i);Ha(k,t,m,`font-family: ${U}`,Tb)}else{if(Nb(document,t,m,h),P){const F=ja(vt("body"),h);k=vt(F.nodes()[0].contentDocument.body),k.node().style.margin=0}else k=vt("body");Ha(k,t,m)}let N,j;try{N=await ao(e,{title:c.title})}catch(F){N=new Gl("error"),j=F}const G=k.select(b).node(),H=N.type,Jt=G.firstChild,Qt=Jt.firstChild,Z=(n=(r=N.renderer).getClasses)==null?void 0:n.call(r,e,N),R=Ib(u,H,Z,f),wt=document.createElement("style");wt.innerHTML=R,Jt.insertBefore(wt,Qt);try{await N.renderer.draw(e,t,Ea,N)}catch(F){throw Xy.draw(e,t,Ea),F}const te=k.select(`${b} svg`),M=(a=(o=N.db).getAccTitle)==null?void 0:a.call(o),T=(l=(s=N.db).getAccDescription)==null?void 0:l.call(s);qb(H,te,M,T),k.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",vb);let y=k.select(b).node().innerHTML;if(E.debug("config.arrowMarkerAbsolute",u.arrowMarkerAbsolute),y=$b(y,P,ll(u.arrowMarkerAbsolute)),P){const F=k.select(b+" svg").node();y=Db(y,F)}else v||(y=De.sanitize(y,{ADD_TAGS:Fb,ADD_ATTR:Eb}));if(CC(),j)throw j;const x=vt(P?p:b).node();return x&&"remove"in x&&x.remove(),{svg:y,bindFunctions:N.db.bindFunctions}};function Pb(t={}){var e;t!=null&&t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),h_(t),t!=null&&t.theme&&t.theme in Xt?t.themeVariables=Xt[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Xt.default.getThemeVariables(t.themeVariables));const i=typeof t=="object"?c_(t):xl();Un(i.logLevel),io()}const ao=(t,e={})=>{const{code:i}=lc(t);return yC(i,e)};function qb(t,e,i,r){bC(e,t),TC(e,i,r,e.attr("id"))}const Ce=Object.freeze({render:Rb,parse:Ob,getDiagramFromText:ao,initialize:Pb,getConfig:Pt,setConfig:bl,getSiteConfig:xl,updateSiteConfig:u_,reset:()=>{cr()},globalReset:()=>{cr(Pe)},defaultConfig:Pe});Un(Pt().logLevel);cr(Pt());const zb=async()=>{E.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(Re).map(async([i,{detector:r,loader:n}])=>{if(n)try{eo(i)}catch{try{const{diagram:a,id:s}=await n();ur(s,a,r)}catch(a){throw E.error(`Failed to load external diagram with key ${i}. Removing from detectors.`),delete Re[i],a}}}))).filter(i=>i.status==="rejected");if(e.length>0){E.error(`Failed to load ${e.length} external diagrams`);for(const i of e)E.error(i);throw new Error(`Failed to load ${e.length} external diagrams`)}},Wb=(t,e,i)=>{E.warn(t),_l(t)?(i&&i(t.str,t.hash),e.push({...t,message:t.str,error:t})):(i&&i(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},hc=async function(t={querySelector:".mermaid"}){try{await Hb(t)}catch(e){if(_l(e)&&E.error(e.str),_t.parseError&&_t.parseError(e),!t.suppressErrors)throw E.error("Use the suppressErrors option to suppress these errors"),e}},Hb=async function({postRenderCallback:t,querySelector:e,nodes:i}={querySelector:".mermaid"}){const r=Ce.getConfig();E.debug(`${t?"":"No "}Callback function found`);let n;if(i)n=i;else if(e)n=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");E.debug(`Found ${n.length} diagrams`),(r==null?void 0:r.startOnLoad)!==void 0&&(E.debug("Start On Load: "+(r=
* Wait for document loaded before starting the execution
*/window.addEventListener("load",fc,!1)}const Yb=function(t){_t.parseError=t},gr=[];let rn=!1;const dc=async()=>{if(!rn){for(rn=!0;gr.length>0;){const t=gr.shift();if(t)try{await t()}catch(e){E.error("Error executing queue",e)}}rn=!1}},Vb=async(t,e)=>new Promise((i,r)=>{const n=()=>new Promise((o,a)=>{Ce.parse(t,e).then(s=>{o(s),i(s)},s=>{var l;E.error("Error parsing",s),(l=_t.parseError)==null||l.call(_t,s),a(s),r(s)})});gr.push(n),dc().catch(r)}),pc=(t,e,i)=>new Promise((r,n)=>{const o=()=>new Promise((a,s)=>{Ce.render(t,e,i).then(l=>{a(l),r(l)},l=>{var c;E.error("Error parsing",l),(c=_t.parseError)==null||c.call(_t,l),s(l),n(l)})});gr.push(o),dc().catch(n)}),_t={startOnLoad:!0,mermaidAPI:Ce,parse:Vb,render:pc,init:jb,run:hc,registerExternalDiagrams:Ub,initialize:uc,parseError:void 0,contentLoaded:fc,setParseErrorHandler:Yb,detectType:Er},Gb=async t=>{try{_t.registerExternalDiagrams&&await _t.registerExternalDiagrams(t)}catch(e){console.error(e)}},Xb=async(t,e,i)=>{_t.initialize(i);const{svg:r}=await _t.render(t,e);return r},Kb=["innerHTML"],Zb={__name:"Mermaid",props:{graph:{type:String,required:!0},id:{type:String,required:!0},class:{type:String,required:!1,default:"mermaid"}},setup(t){const e=Lo({securityLevel:"loose",startOnLoad:!1,externalDiagrams:[]}),{page:i}=Ua(),{frontmatter:r}=kc(i.value),n=r.mermaidTheme||"",o=t,a=Lo(null);let s=null;Ya(async()=>{var f;await Gb(e.value.externalDiagrams);let c=await K(()=>import("./chunks/virtual_mermaid-config.DDnGl6nM.js"),[]);c!=null&&c.default&&(e.value=c.default),s=new MutationObserver(async()=>await l()),s.observe(document.documentElement,{attributes:!0}),await l(),((f=/<img([\w\W]+?)>/.exec(decodeURIComponent(o.graph)))==null?void 0:f.length)>0&&setTimeout(()=>{let h=document.getElementsByTagName("img"),p=Array.from(h);p.length&&Promise.all(p.filter(m=>!m.complete).map(m=>new Promise(b=>{m.onload=m.onerror=b}))).then(async()=>{await l()})},100)}),Sc(()=>s.disconnect());const l=async()=>{const c=document.documentElement.classList.contains("dark");let u={...e.value};n&&(u.theme=n),c&&(u.theme="dark");let f=await Xb(o.id,decodeURIComponent(o.graph),u);const h=Math.random().toString(36).substring(7);a.value=`${f} <span style="display: none">${h}</span>`};return(c,u)=>(wc(),Bc("div",{innerHTML:a.value,class:Ac(o.class)},null,10,Kb))}};function gc(t){if(t.extends){const e=gc(t.extends);return{...e,...t,async enhanceApp(i){e.enhanceApp&&await e.enhanceApp(i),t.enhanceApp&&await t.enhanceApp(i)}}}return t}const Me=gc(Uc),Jb=Pc({name:"VitePressApp",setup(){const{site:t,lang:e,dir:i}=Ua();return Ya(()=>{qc(()=>{document.documentElement.lang=e.value,document.documentElement.dir=i.value})}),t.value.router.prefetchLinks&&zc(),Wc(),Hc(),Me.setup&&Me.setup(),()=>jc(Me.Layout)}});async function Qb(){globalThis.__VITEPRESS__=!0;const t=e1(),e=t1();e.provide(Fc,t);const i=Ec(t.route);return e.provide(Oc,i),e.component("Mermaid",Zb),e.component("Content",Mc),e.component("ClientOnly",Ic),Object.defineProperties(e.config.globalProperties,{$frontmatter:{get(){return i.frontmatter.value}},$params:{get(){return i.page.value.params}}}),Me.enhanceApp&&await Me.enhanceApp({app:e,router:t,siteData:$c}),{app:e,router:t,data:i}}function t1(){return Dc(Jb)}function e1(){let t=nn,e;return Nc(i=>{let r=Rc(i),n=null;return r&&(t&&(e=r),(t||e===r)&&(r=r.replace(/\.js$/,".lean.js")),n=import(r)),nn&&(t=!1),n},Me.NotFound)}nn&&Qb().then(({app:t,router:e,data:i})=>{e.go().then(()=>{Lc(e.route,i.site),t.mount("#app")})});export{ua as $,My as A,Si as B,We as C,ar as D,wr as E,fm as F,Zm as G,ki as H,or as I,am as J,Zs as K,js as L,hg as M,ug as N,ue as O,ma as P,em as Q,xe as R,rr as S,fg as T,zn as U,cg as V,gg as W,He as X,om as Y,le as Z,Tr as _,Ny as a,m1 as a$,Wn as a0,Ys as a1,Ks as a2,Qs as a3,sg as a4,bn as a5,Am as a6,xg as a7,bm as a8,Pn as a9,n1 as aA,Kc as aB,Fn as aC,ne as aD,di as aE,qo as aF,Gu as aG,Vy as aH,f1 as aI,O0 as aJ,yl as aK,Xn as aL,In as aM,s1 as aN,h1 as aO,Vo as aP,Yo as aQ,u1 as aR,c1 as aS,o1 as aT,a1 as aU,p1 as aV,d1 as aW,l1 as aX,w0 as aY,Pt as aZ,Aa as a_,Jr as aa,yt as