const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/1.65.0DIqteWu.js","assets/1.65.0BRrx9tN.js","assets/1.65.0D30ErdP.js","assets/1.65.0BLiDuAP.js","assets/12.65.0xvgZHJf.js","assets/1.65.0B4HNwzT.js","assets/1.65.0VazlANq.js","assets/1.65.0CUhUs_L.js","assets/1.65.0Bf0sjxI.js","assets/1.65.0B5PW3ps.js","assets/12.65.0DxHgbn-.js","assets/12.65.0pHtk-yj.js","assets/12.65.0Bmy3XUk.js","assets/1.65.0PFNSDYy.js","assets/12.65.0CQj31DM.js","assets/1.65.07mj4sRc.js","assets/1.65.0DZqgO0C.js","assets/12.65.0CJBKsPO.js","assets/1.65.0CxgGB0p.js","assets/12.65.0XU95P2S.js","assets/1.65.0YhxMm5n.js","assets/1.65.0TVryqG4.js","assets/1.65.0BwlMPGk.js","assets/1.65.02UsGBNf.js","assets/1.65.0UhZyUjd.js"])))=>i.map(i=>d[i]);
import{g as e,h as t}from"./1.65.0D30ErdP.js";import{Z as n,s as r,y as i}from"./1.65.0BRrx9tN.js";import{u as a}from"./1.65.0B4HNwzT.js";import{a as o,i as s,s as c}from"./12.65.0CQj31DM.js";import{a as l,i as u,n as d,r as f}from"./12.65.0XU95P2S.js";var p={common:r,getConfig:i,insertCluster:s,insertEdge:d,insertEdgeLabel:f,insertMarkers:u,insertNode:o,interpolateToCurve:a,labelHelper:c,log:e,positionEdgeLabel:l},m={},h=t(e=>{for(let t of e)m[t.name]=t},`registerLayoutLoaders`);t(()=>{h([{name:`dagre`,loader:t(async()=>await n(()=>import(`./1.65.0DIqteWu.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22])),`loader`)},...[{name:`cose-bilkent`,loader:t(async()=>await n(()=>import(`./1.65.02UsGBNf.js`),__vite__mapDeps([23,3,24,2])),`loader`)}]])},`registerDefaultLayoutLoaders`)();var g=t(async(e,t)=>{if(!(e.layoutAlgorithm in m))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let t of e.nodes){let n=t.domId||t.id;t.domId=`${e.diagramId}-${n}`}let n=m[e.layoutAlgorithm],r=await n.loader(),{theme:i,themeVariables:a}=e.config,{useGradient:o,gradientStart:s,gradientStop:c}=a,l=t.attr(`id`);if(t.append(`defs`).append(`filter`).attr(`id`,`${l}-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`,`${i?.includes(`dark`)?`#FFFFFF`:`#000000`}`),t.append(`defs`).append(`filter`).attr(`id`,`${l}-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`,`${i?.includes(`dark`)?`#FFFFFF`:`#000000`}`),o){let e=t.append(`linearGradient`).attr(`id`,t.attr(`id`)+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);e.append(`svg:stop`).attr(`offset`,`0%`).attr(`stop-color`,s).attr(`stop-opacity`,1),e.append(`svg:stop`).attr(`offset`,`100%`).attr(`stop-color`,c).attr(`stop-opacity`,1)}return r.render(e,t,p,{algorithm:n.algorithm})},`render`),_=t((t=``,{fallback:n=`dagre`}={})=>{if(t in m)return t;if(n in m)return e.warn(`Layout algorithm ${t} is not registered. Using ${n} as fallback.`),n;throw Error(`Both layout algorithms ${t} and ${n} are not registered.`)},`getRegisteredLayoutAlgorithm`);export{h as n,g as r,_ as t};