"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[83561],{83561:(e,t,a)=>{a.r(t),a.d(t,{default:()=>o});var i=a(26885);let n=!1;async function l(){if(n)return;let{default:e}=await Promise.all([a.e(93151),a.e(41752),a.e(16551)]).then(a.bind(a,71352));e.initialize({startOnLoad:!1,theme:"default"}),n=!0}let r=0;async function d(e){try{await l();let{default:i}=await Promise.all([a.e(93151),a.e(41752),a.e(16551)]).then(a.bind(a,71352)),{toPng:n}=await a.e(10667).then(a.bind(a,10667)),d="mermaid-export-".concat(r++),{svg:o}=await i.render(d,e),s=document.createElement("div");s.style.position="fixed",s.style.top="0",s.style.left="0",s.style.background="white",s.style.zIndex="99999",s.style.pointerEvents="none",s.innerHTML=o,document.body.appendChild(s),await new Promise(e=>requestAnimationFrame(()=>requestAnimationFrame(e)));try{let e=s.querySelector("svg"),a=window.devicePixelRatio||2;if(e){var t;let i=null==(t=e.viewBox)?void 0:t.baseVal,n=(i&&i.width>0?i.width:0)||parseFloat(e.style.maxWidth)||parseFloat(e.getAttribute("width")||"0"),l=s.offsetWidth;n>0&&l>0&&(a=Math.max(a,n/l*1.5))}return a=Math.min(a,8),await n(s,{backgroundColor:"#ffffff",pixelRatio:a})}finally{document.body.removeChild(s)}}catch(e){return null}}let o=function(){return async e=>{let t=[];for(let{node:a,index:n,parent:l}of((0,i.YR)(e,"code",(e,a,i)=>{"mermaid"===e.lang&&void 0!==a&&i&&t.push({node:e,index:a,parent:i})}),t)){let e=await d(a.value);e&&l.children&&(l.children[n]={type:"paragraph",children:[{type:"image",url:e,alt:"Mermaid diagram"}]})}}}}}]);