const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./dagre-VZM6K2ZE.DyEdtCQD.js","./graphlib.D9QTypQK.js","./toString.tRXNBxtF.js","./isSymbol.CmW3dkoN.js","./isArrayLike.Crw2F5li.js","./isArrayLikeObject.B3Zf3PTL.js","./_baseIndexOf.CYLdY-L6.js","./_baseFlatten.IOj0lc7G.js","./_arrayReduce.CiwPAjrV.js","./_baseIsEqual.sdZCjgvS.js","./_baseEach.PLhpSRgM.js","./_baseProperty.BV6HSwpm.js","./isUndefined.Dk8JX1dj.js","./isEmpty.DjruDP6v.js","./chunk-RYQCIY6F.CLMTjyXb.js","./_baseClone.Bcnb-YL-.js","./map.CsK82nE3.js","./_baseMap.OhVc4KF-.js","./chunk-Y2CYZVJY.DsF7k-Jl.js","./src.DMVfaFne.js","./rolldown-runtime.C0FnF6B9.js","./src.CE7XIH0z.js","./string.2gFcx07-.js","./timer.BMV81txb.js","./dagre.DGETeYl4.js","./_isIterateeCall.BUStsXAd.js","./merge.CV9itYNj.js","./last.DfjdtCRp.js","./_hasUnicode.Cp9Achgk.js","./now.BzMxC3T_.js","./pick.CbtWtxHL.js","./sortBy.BN5z75-Y.js","./range.DL19EGGd.js","./chunk-I66GZJ75.DE9AwV3O.js","./preload-helper.HclGiUj8.js","./purify.es.DrVcFY1Q.js","./chunk-NSK5VX7P.Bdf5aQAc.js","./dist.DPZoeJz9.js","./chunk-4I5QYGJK.hg4ofZMO.js","./chunk-WRU74C26.mA3yoLIh.js","./chunk-7BUUIJ7U.CAhmNhj7.js","./chunk-UBXNYLIW.BHK08rsA.js","./chunk-W5SLKNZC.NO1AxUsq.js","./chunk-QR6OTTB3.DsE7Dzlj.js","./rough.esm.Dy-Kn_BL.js","./chunk-7Z6QIM7H.BtklZ3Wo.js","./line.Cax62ATD.js","./path.BQ6dpWew.js","./path.C_SyPjZC.js","./array.BifhSqXX.js","./swimlanes-SLNWSIFB.r-Yo0Tvj.js","./cose-bilkent-JH36ORCC.uJRp_ix_.js","./cytoscape.esm.B-NFISlW.js"])))=>i.map(i=>d[i]);
import{t as e}from"./preload-helper.HclGiUj8.js";import{n as t}from"./chunk-Y2CYZVJY.DsF7k-Jl.js";import{t as n}from"./src.DMVfaFne.js";import{b as r,s as i}from"./chunk-I66GZJ75.DE9AwV3O.js";import{d as a}from"./chunk-NSK5VX7P.Bdf5aQAc.js";import{a as o,i as s,s as c}from"./chunk-QR6OTTB3.DsE7Dzlj.js";import{a as l,i as u,o as d,r as f}from"./chunk-7Z6QIM7H.BtklZ3Wo.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.DyEdtCQD.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,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49]),import.meta.url),`loader`)},{name:`swimlane`,loader:t(async()=>await e(()=>import(`./swimlanes-SLNWSIFB.r-Yo0Tvj.js`),__vite__mapDeps([50,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,34,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49]),import.meta.url),`loader`)},{name:`cose-bilkent`,loader:t(async()=>await e(()=>import(`./cose-bilkent-JH36ORCC.uJRp_ix_.js`),__vite__mapDeps([51,20,21,22,23,18,19,52]),import.meta.url),`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};