const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-VZM6K2ZE-5CAQBCM3.js","assets/chunk-Y2CYZVJY-DsF7k-Jl.js","assets/src-BY_WSiz7.js","assets/rolldown-runtime-B0Z9INg1.js","assets/chunk-I66GZJ75-DyIufBk3.js","assets/preload-helper-BGRGm2aY.js","assets/chunk-NSK5VX7P-C5rgTOqf.js","assets/dist-BDCdLWk4.js","assets/chunk-4I5QYGJK-CqcwRbfk.js","assets/chunk-WRU74C26-BTfK14t9.js","assets/chunk-7BUUIJ7U-Bb538aSH.js","assets/chunk-UBXNYLIW-D4IRhP65.js","assets/graphlib-DS17s2tU.js","assets/dagre-Buvkdvvj.js","assets/map-BaFkSB1l.js","assets/chunk-RYQCIY6F-DCAUdfJM.js","assets/chunk-W5SLKNZC-Bwa0Erac.js","assets/chunk-QR6OTTB3-Gf6zEt7G.js","assets/rough.esm-Dy-Kn_BL.js","assets/chunk-7Z6QIM7H-C8-Xmgc1.js","assets/line-C3peQHkb.js","assets/path-fybaL0A-.js","assets/array-BifhSqXX.js","assets/swimlanes-SLNWSIFB-BlynRk4a.js","assets/cose-bilkent-JH36ORCC-C2z-I-lM.js","assets/cytoscape.esm-B-NFISlW.js"])))=>i.map(i=>d[i]);
import{t as e}from"./preload-helper-BGRGm2aY.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as n}from"./src-BY_WSiz7.js";import{b as r,s as i}from"./chunk-I66GZJ75-DyIufBk3.js";import{d as a}from"./chunk-NSK5VX7P-C5rgTOqf.js";import{a as o,i as s,s as c}from"./chunk-QR6OTTB3-Gf6zEt7G.js";import{a as l,i as u,o as d,r as f}from"./chunk-7Z6QIM7H-C8-Xmgc1.js";var p={common:i,getConfig:r,insertCluster:s,insertEdge:f,insertEdgeLabel:u,insertMarkers:l,insertNode:o,interpolateToCurve:a,labelHelper:c,log:n,positionEdgeLabel:d},m={},h=t(e=>{for(let t of e)m[t.name]=t},`registerLayoutLoaders`);t(()=>{h([{name:`dagre`,loader:t(async()=>await e(()=>import(`./dagre-VZM6K2ZE-5CAQBCM3.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:`swimlane`,loader:t(async()=>await e(()=>import(`./swimlanes-SLNWSIFB-BlynRk4a.js`),__vite__mapDeps([23,5,1,2,3,4,6,7,8,9,10,11,12,15,14,16,17,18,19,20,21,22])),`loader`)},{name:`cose-bilkent`,loader:t(async()=>await e(()=>import(`./cose-bilkent-JH36ORCC-C2z-I-lM.js`),__vite__mapDeps([24,3,1,2,25])),`loader`)}])},`registerDefaultLayoutLoaders`)();var g=t(async(e,t,n)=>{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 r=m[e.layoutAlgorithm],i=await r.loader(),{theme:a,themeVariables:o}=e.config,{useGradient:s,gradientStart:c,gradientStop:l}=o,u=t.attr(`id`);if(t.append(`defs`).append(`filter`).attr(`id`,`${u}-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?.includes(`dark`)?`#FFFFFF`:`#000000`}`),t.append(`defs`).append(`filter`).attr(`id`,`${u}-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?.includes(`dark`)?`#FFFFFF`:`#000000`}`),s){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`,c).attr(`stop-opacity`,1),e.append(`svg:stop`).attr(`offset`,`100%`).attr(`stop-color`,l).attr(`stop-opacity`,1)}return i.render(e,t,p,{algorithm:r.algorithm},n)},`render`),_=t((e=``,{fallback:t=`dagre`}={})=>{if(e in m)return e;if(t in m)return n.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw Error(`Both layout algorithms ${e} and ${t} are not registered.`)},`getRegisteredLayoutAlgorithm`);export{h as n,g as r,_ as t};