13 lines
28 KiB
JavaScript
Raw Permalink Normal View History

2026-05-31 13:21:13 +02:00
import{a as Zt}from"./chunks/mermaid.esm.min/chunk-LRIF4GLE.mjs";import{a as Wt,b as Kt}from"./chunks/mermaid.esm.min/chunk-7FYTHRHK.mjs";import{a as Qt}from"./chunks/mermaid.esm.min/chunk-VU6ZFW4Y.mjs";import"./chunks/mermaid.esm.min/chunk-7J6CGLKN.mjs";import"./chunks/mermaid.esm.min/chunk-KGFNY3KK.mjs";import"./chunks/mermaid.esm.min/chunk-5IMINLNL.mjs";import"./chunks/mermaid.esm.min/chunk-T2UQINTJ.mjs";import"./chunks/mermaid.esm.min/chunk-5VCL7Z4A.mjs";import"./chunks/mermaid.esm.min/chunk-UY5QBCOK.mjs";import{b as _t,d as Gt}from"./chunks/mermaid.esm.min/chunk-INKRHTLW.mjs";import{b as wt,d as Bt,m as Lt,o as Yt,p as $,q as qt,r as Xt}from"./chunks/mermaid.esm.min/chunk-QA3QBVWF.mjs";import"./chunks/mermaid.esm.min/chunk-KNLZD3CH.mjs";import{H as $t,J as Ht,K,L as at,M as Q,N as zt,O as Nt,Q as Et,R as Ut,a as Rt,da as G,ea as Z,i as et,l as Tt,m as xt,n as Ct,o as kt,p as jt,q as Ot,r as ht,s as It,t as _,u as Pt,v as W,x as Ft,y as Vt}from"./chunks/mermaid.esm.min/chunk-67TQ5CYL.mjs";import{b as f,c as yt,h as k}from"./chunks/mermaid.esm.min/chunk-7W6UQGC5.mjs";import{a as r}from"./chunks/mermaid.esm.min/chunk-AQ6EADP3.mjs";var Ke=r(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),Qe=r(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/c4Diagram-Y2BXMSZH.mjs");return{id:"c4",diagram:t}},"loader"),Ze={id:"c4",detector:Ke,loader:Qe},Jt=Ze;var tr="flowchart",Je=r((t,e)=>e?.flowchart?.defaultRenderer==="dagre-wrapper"||e?.flowchart?.defaultRenderer==="elk"?!1:/^\s*graph/.test(t),"detector"),ta=r(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/flowDiagram-H6V6AXG4.mjs");return{id:tr,diagram:t}},"loader"),ra={id:tr,detector:Je,loader:ta},rr=ra;var er="flowchart-v2",ea=r((t,e)=>e?.flowchart?.defaultRenderer==="dagre-d3"?!1:(e?.flowchart?.defaultRenderer==="elk"&&(e.layout="elk"),/^\s*graph/.test(t)&&e?.flowchart?.defaultRenderer==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)),"detector"),aa=r(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/flowDiagram-H6V6AXG4.mjs");return{id:er,diagram:t}},"loader"),ia={id:er,detector:ea,loader:aa},ar=ia;var oa=r(t=>/^\s*erDiagram/.test(t),"detector"),na=r(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/erDiagram-L5TCEMPS.mjs");return{id:"er",diagram:t}},"loader"),sa={id:"er",detector:oa,loader:na},ir=sa;var or="gitGraph",ca=r(t=>/^\s*gitGraph/.test(t),"detector"),ma=r(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/gitGraphDiagram-S2ZK5IYY.mjs");return{id:or,diagram:t}},"loader"),pa={id:or,detector:ca,loader:ma},nr=pa;var sr="gantt",da=r(t=>/^\s*gantt/.test(t),"detector"),fa=r(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/ganttDiagram-JCBTUEKG.mjs");return{id:sr,diagram:t}},"loader"),ga={id:sr,detector:da,loader:fa},cr=ga;var mr="info",la=r(t=>/^\s*info/.test(t),"detector"),ua=r(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/infoDiagram-3YFTVSEB.mjs");return{id:mr,diagram:t}},"loader"),pr={id:mr,detector:la,loader:ua};var Da=r(t=>/^\s*pie/.test(t),"detector"),ya=r(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/pieDiagram-CU6KROY3.mjs");return{id:"pie",diagram:t}},"loader"),dr={id:"pie",detector:Da,loader:ya};var fr="quadrantChart",xa=r(t=>/^\s*quadrantChart/.test(t),"detector"),ha=r(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/quadrantDiagram-VICAPDV7.mjs");return{id:fr,diagram:t}},"loader"),Ea={id:fr,detector:xa,loader:ha},gr=Ea;var lr="xychart",wa=r(t=>/^\s*xychart(-beta)?/.test(t),"detector"),La=r(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/xychartDiagram-N2JHSOCM.mjs");return{id:lr,diagram:t}},"loader"),Sa={id:lr,detector:wa,loader:La},ur=Sa;var Dr="requirement",ba=r(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),Ma=r(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/requirementDiagram-JXO7QTGE.mjs");return{id:Dr,diagram:t}},"loader"),va={id:Dr,detector:ba,loader:Ma},yr=va;var xr="sequence",Aa=r(t=>/^\s*sequenceDiagram/.test(t),"detector"),Ra=r(async()=>{let{dia
`);let i=Zt(e),o=i.append("g");i.attr("viewBox","0 0 2412 512"),Nt(i,100,512,!0),o.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"),o.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"),o.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"),o.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"),o.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"),o.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"),o.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"),o.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${a}`)},"draw"),St={draw:Ba},Cr=St;var Ya={db:{},renderer:St,parser:{parse:r(()=>{},"parse")}},kr=Ya;var jr="flowchart-elk",qa=r((t,e={})=>/^\s*flowchart-elk/.test(t)||/^\s*(flowchart|graph)/.test(t)&&e?.flowchart?.defaultRenderer==="elk"?(e.layout="elk",!0):!1,"detector"),Xa=r(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/flowDiagram-H6V6AXG4.mjs");return{id:jr,diagram:t}},"loader"),Wa={id:jr,detector:qa,loader:Xa},Or=Wa;var Ir="timeline",Ka=r(t=>/^\s*timeline/.test(t),"detector"),Qa=r(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/timeline-definition-O6YCAMPW.mjs");return{id:Ir,diagram:t}},"loader"),Za={id:Ir,detector:Ka,loader:Qa},Pr=Za;var Fr="mindmap",Ja=r(t=>/^\s*mindmap/.test(t),"detector"),ti=r(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/mindmap-definition-2TDM6QVE.mjs");return{id:Fr,diagram:t}},"loader"),ri={id:Fr,detector:Ja,loader:ti},Vr=ri;var _r="kanban",ei=r(t=>/^\s*kanban/.test(t),"detector"),ai=r(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/kanban-definition-75IXJCU3.mjs");return{id:_r,diagram:t}},"loader"),ii={id:_r,detector:ei,loader:ai},Gr=ii;var $r="sankey",oi=r(t=>/^\s*sankey(-beta)?/.test(t),"detector"),ni=r(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/sankeyDiagram-URQDO5SZ.mjs");return{id:$r,diagram:t}},"loader"),si={id:$r,detector:oi,loader:ni},Hr=si;var zr="packet",ci=r(t=>/^\s*packet(-beta)?/.test(t),"detector"),mi=r(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/diagram-QXG6HAR7.mjs");return{id:zr,diagram:t}},"loader"),Nr={id:zr,detector:ci,loader:mi};var Ur="radar",pi=r(t=>/^\s*radar-beta/.test(t),"detector"),di=r(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/diagram-3NCE3AQN.mjs");return{id:Ur,diagram:t}},"loader"),Br={id:Ur,detector:pi,loader:di};var Yr="block",fi=r(t=>/^\s*block(-beta)?/.test(t),"detector"),gi=r(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/blockDiagram-7IZFK4PR.mjs");
`;try{Z(o)}catch{let g=zt(o);if(!g)throw new Ht(`Diagram ${o} not found.`);let{id:y,diagram:p}=await g();G(y,p)}let{db:n,parser:m,renderer:s,init:c}=Z(o);return m.parser&&(m.parser.yy=n),n.clear?.(),c?.(i),a.title&&n.setDiagramTitle?.(a.title),await m.parse(e),new t(o,e,n,m,s)}async render(e,a){await this.renderer.draw(this.text,e,a,this)}getParser(){return this.parser}getType(){return this.type}};var je=[];var Oe=r(()=>{je.forEach(t=>{t()}),je=[]},"attachFunctions");var Ie=r(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Pe(t){let e=t.match($t);if(!e)return{text:t,metadata:{}};let a=Kt(e[1],{schema:Wt})??{};a=typeof a=="object"&&!Array.isArray(a)?a:{};let i={};return a.displayMode&&(i.displayMode=a.displayMode.toString()),a.title&&(i.title=a.title.toString()),a.config&&(i.config=a.config),{text:t.slice(e[0].length),metadata:i}}r(Pe,"extractFrontMatter");var _i=r(t=>t.replace(/\r\n?/g,`
`).replace(/<(\w+)([^>]*)>/g,(e,a,i)=>"<"+a+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),Gi=r(t=>{let{text:e,metadata:a}=Pe(t),{displayMode:i,title:o,config:n={}}=a;return i&&(n.gantt||(n.gantt={}),n.gantt.displayMode=i),{title:o,config:n,text:e}},"processFrontmatter"),$i=r(t=>{let e=$.detectInit(t)??{},a=$.detectDirective(t,"wrap");return Array.isArray(a)?e.wrap=a.some(({type:i})=>i==="wrap"):a?.type==="wrap"&&(e.wrap=!0),{text:Bt(t),directive:e}},"processDirectives");function vt(t){let e=_i(t),a=Gi(e),i=$i(a.text),o=Yt(a.config,i.directive);return t=Ie(i.text),{code:t,title:a.title,config:o}}r(vt,"preprocessDiagram");function Fe(t){let e=new TextEncoder().encode(t),a=Array.from(e,i=>String.fromCodePoint(i)).join("");return btoa(a)}r(Fe,"toBase64");var Hi=5e4,zi="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Ni="sandbox",Ui="loose",Bi="http://www.w3.org/2000/svg",Yi="http://www.w3.org/1999/xlink",qi="http://www.w3.org/1999/xhtml",Xi="100%",Wi="100%",Ki="border:0;margin:0;",Qi="margin:0",Zi="allow-top-navigation-by-user-activation allow-popups",Ji='The "iframe" tag is not supported by your browser.',to=["foreignobject"],ro=["dominant-baseline"];function $e(t){let e=vt(t);return W(),Pt(e.config??{}),e}r($e,"processAndSetConfigs");async function eo(t,e){H();try{let{code:a,config:i}=$e(t);return{diagramType:(await He(a)).type,config:i}}catch(a){if(e?.suppressErrors)return!1;throw a}}r(eo,"parse");var Ve=r((t,e,a=[])=>{let i=Tt(`{ ${a.join(" !important; ")} !important; }`);return`.${t} ${e} ${i}`},"cssImportantStyles"),ao=r((t,e=new Map)=>{let a=new CSSStyleSheet;if(t.fontFamily!==void 0&&a.insertRule(`:root { --mermaid-font-family: ${t.fontFamily}}`,a.cssRules.length),t.altFontFamily!==void 0&&a.insertRule(`:root { --mermaid-alt-font-family: ${t.altFontFamily}}`,a.cssRules.length),e instanceof Map){let s=Ft(t)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(c=>{wt(c.styles)||s.forEach(g=>{a.insertRule(Ve(c.id,g,c.styles),a.cssRules.length)}),wt(c.textStyles)||a.insertRule(Ve(c.id,"tspan",(c?.textStyles||[]).map(g=>g.replace("color","fill"))),a.cssRules.length)})}let i="";if(t.themeCSS!==void 0)if(typeof a.replaceSync=="function"){let o=new CSSStyleSheet;o.replaceSync(t.themeCSS),i=Et(o)+`
`}else i+=`${t.themeCSS}
`;return i+Et(a)},"createCssStyles"),io=r((t,e)=>lt(Ae(`${t}{${e}}`),Te([r(function(i,o,n,m){if(i.type==="rule"&&Array.isArray(i.props)){if(i.parent&&i.parent.type===J)return;i.props=i.props.map(s=>s.startsWith(t)?s:`${t} ${s}`)}else i.type.startsWith("@")&&([...[pe,fe,nt,le,"@container","@starting-style"],J].includes(i.type)||(f.warn(`Removing unsupported at-rule ${i.type} from CSS`),i.type=z))},"addNamespace"),Re])),"compileCSS"),oo=r((t,e,a,i)=>{let o=ao(t,a),n=Ut(e,o,{...t.themeVariables,theme:t.theme,look:t.look},i);return io(i,n)},"createUserStyles"),no=r((t="",e,a)=>{let i=t;return!a&&!e&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=Xt(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),so=r((t="",e)=>{let a=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":Wi,i=Fe(`<body style="${Qi}">${t}</body>`);return`<iframe style="width:${Xi};height:${a};${Ki}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${Zi}">
${Ji}
</iframe>`},"putIntoIFrame"),_e=r((t,e,a,i,o)=>{let n=t.append("div");n.attr("id",a),i&&n.attr("style",i);let m=n.append("svg").attr("id",e).attr("width","100%").attr("xmlns",Bi);return o&&m.attr("xmlns:xlink",o),m.append("g"),t},"appendDivSvgG");function Ge(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}r(Ge,"sandboxedIframe");var co=r((t,e,a,i)=>{t.getElementById(e)?.remove(),t.getElementById(a)?.remove(),t.getElementById(i)?.remove()},"removeExistingElements"),mo=r(async function(t,e,a){H();let i=$e(e);e=i.code;let o=_();f.debug(o),e.length>(o?.maxTextSize??Hi)&&(e=zi);let n=`#${t}`,m="i"+t,s="#"+m,c="d"+t,g="#"+c,y=r(()=>{let Dt=k(x?s:g).node();Dt&&"remove"in Dt&&Dt.remove()},"removeTempElements"),p=k(document.body),x=o.securityLevel===Ni,A=o.securityLevel===Ui,S=o.fontFamily;if(a!==void 0){if(a&&(a.innerHTML=""),x){let v=Ge(k(a),m);p=k(v.nodes()[0].contentDocument.body),p.node().style.margin="0"}else p=k(a);_e(p,t,c,`font-family: ${S}`,Yi)}else{if(co(document,t,c,m),x){let v=Ge(k(document.body),m);p=k(v.nodes()[0].contentDocument.body),p.node().style.margin="0"}else p=k("body");_e(p,t,c)}let l,T;try{l=await X.fromText(e,{title:i.title})}catch(v){if(o.suppressErrorRendering)throw y(),v;l=await X.fromText("error"),T=v}let b=p.select(g).node(),u=l.type,M=b.firstChild,C=M.firstChild,R=l.renderer.getClasses?.(e,l),E=oo(o,u,R,n),d=document.createElement("style");d.innerHTML=E,M.insertBefore(d,C);try{await l.renderer.draw(e,t,"11.15.0",l)}catch(v){throw o.suppressErrorRendering?y():Cr.draw(e,t,"11.15.0"),v}let qe=p.select(`${g} svg`),Xe=l.db.getAccTitle?.(),We=l.db.getAccDescription?.();fo(u,qe,Xe,We),p.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",qi);let V=p.select(g).node().innerHTML;if(f.debug("config.arrowMarkerAbsolute",o.arrowMarkerAbsolute),V=no(V,x,Ct(o.arrowMarkerAbsolute)),x){let v=p.select(g+" svg").node();V=so(V,v)}else A||(V=Vt.sanitize(V,{ADD_TAGS:to,ADD_ATTR:ro,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(Oe(),T)throw T;return y(),{diagramType:u,svg:V,bindFunctions:l.db.bindFunctions}},"render");function po(t={}){let e=Rt({},t);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),jt(e),e?.theme&&e.theme in et?e.themeVariables=et[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=et.default.getThemeVariables(e.themeVariables));let a=typeof e=="object"?kt(e):ht();yt(a.logLevel),H()}r(po,"initialize");var He=r((t,e={})=>{let{code:a}=vt(t);return X.fromText(a,e)},"getDiagramFromText");function fo(t,e,a,i){Ce(e,t),ke(e,a,i,e.attr("id"))}r(fo,"addA11yInfo");var F=Object.freeze({render:mo,parse:eo,getDiagramFromText:He,initialize:po,getConfig:_,setConfig:It,getSiteConfig:ht,updateSiteConfig:Ot,reset:r(()=>{W()},"reset"),globalReset:r(()=>{W(xt)},"globalReset"),defaultConfig:xt});yt(_().logLevel);W(_());var go=r((t,e,a)=>{f.warn(t),Lt(t)?(a&&a(t.str,t.hash),e.push({...t,message:t.str,error:t})):(a&&a(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError"),ze=r(async function(t={querySelector:".mermaid"}){try{await lo(t)}catch(e){if(Lt(e)&&f.error(e.str),P.parseError&&P.parseError(e),!t.suppressErrors)throw f.error("Use the suppressErrors option to suppress these errors"),e}},"run"),lo=r(async function({postRenderCallback:t,querySelector:e,nodes:a}={querySelector:".mermaid"}){let i=F.getConfig();f.debug(`${t?"":"No "}Callback function found`);let o;if(a)o=a;else if(e)o=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");f.debug(`Found ${o.length} diagrams`),i?.startOnLoad!==void 0&&(f.debug("Start On Load: "+i?.startOnLoad),F.updateSiteConfig({startOnLoad:i?.startOnLoad}));let n=new $.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed),m,s=[];for(let c of Array.from(o)){f.info("Rendering diagram: "+c.id);if(c.getAttribute("data-processed"))continue;c.setAttribute("data-processed","true");let g=`mermaid-${n.next()}`;m=c.innerHTML,m=Gt($.entityDecode(m
/*! Check if previously processed */
/*!
* Wait for document loaded before starting the execution
*/