@intent-hq/web 2.332.1 → 2.333.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{Cqn-1YSM.js → -Iq9nlAE.js} +1 -1
  3. package/web/app/immutable/chunks/{quL6pHxK.js → 31GDMDj9.js} +2 -2
  4. package/web/app/immutable/chunks/{BA5tpMka.js → 5BpiFfqe.js} +2 -2
  5. package/web/app/immutable/chunks/{D7VyNuwA.js → 60bkkSrP.js} +1 -1
  6. package/web/app/immutable/chunks/{C0mowKhJ.js → 9Hyeqhzq.js} +1 -1
  7. package/web/app/immutable/chunks/{DKDrWyIv.js → B3iZfhYu.js} +1 -1
  8. package/web/app/immutable/chunks/{Dr8wriKt.js → B4EyOcMP.js} +1 -1
  9. package/web/app/immutable/chunks/{CKDHxXsq.js → B56Mq91W.js} +1 -1
  10. package/web/app/immutable/chunks/{Dsnfh8nl.js → B7UFQMCa.js} +1 -1
  11. package/web/app/immutable/chunks/{DCmZzs_t.js → BB28H67K.js} +1 -1
  12. package/web/app/immutable/chunks/{CYgZakZC.js → BFjtbKU5.js} +1 -1
  13. package/web/app/immutable/chunks/{Dz_Si7JX.js → BIAzHfjL.js} +1 -1
  14. package/web/app/immutable/chunks/{BqzIXvAg.js → BJ8NXEMJ.js} +1 -1
  15. package/web/app/immutable/chunks/{BwHfUkOf.js → BKzrjZp1.js} +2 -2
  16. package/web/app/immutable/chunks/{NrjxMz2i.js → BP23sDOE.js} +1 -1
  17. package/web/app/immutable/chunks/{BL5Rh4Sz.js → BRzkxjZ7.js} +1 -1
  18. package/web/app/immutable/chunks/{CNf_ONa3.js → BSHExHmB.js} +1 -1
  19. package/web/app/immutable/chunks/{CHqSpAhM.js → BVV0KdYJ.js} +1 -1
  20. package/web/app/immutable/chunks/{jyWTS4lZ.js → BVlLHHIh.js} +2 -2
  21. package/web/app/immutable/chunks/{BaUPC41p.js → BWr9U17b.js} +1 -1
  22. package/web/app/immutable/chunks/{g2VxMEGm.js → BY6hRbJf.js} +1 -1
  23. package/web/app/immutable/chunks/{ZiiwkTV-.js → BZ3Ae-4U.js} +1 -1
  24. package/web/app/immutable/chunks/{DmihuZfS.js → BZCXNg5s.js} +1 -1
  25. package/web/app/immutable/chunks/{7usnYPNF.js → BaoulGHD.js} +1 -1
  26. package/web/app/immutable/chunks/{INGceerY.js → BcU-Zn0b.js} +3 -3
  27. package/web/app/immutable/chunks/{CFF4_0hC.js → BcgRdy5h.js} +1 -1
  28. package/web/app/immutable/chunks/{D10X859N.js → Bcxw4jL3.js} +1 -1
  29. package/web/app/immutable/chunks/{C0Tvtwp-.js → BfQcXH7l.js} +1 -1
  30. package/web/app/immutable/chunks/{BCJxSao_.js → Bfc3D5MS.js} +1 -1
  31. package/web/app/immutable/chunks/{CI8cTsXC.js → BfzrGa3A.js} +1 -1
  32. package/web/app/immutable/chunks/{IlWp1nGl.js → BirwNQi3.js} +4 -4
  33. package/web/app/immutable/chunks/{CdgAiqh6.js → Bk0QUQDW.js} +1 -1
  34. package/web/app/immutable/chunks/{BKjGGpm1.js → BkUS-e35.js} +4 -4
  35. package/web/app/immutable/chunks/{EnAyz2Ek.js → BlMN_W9c.js} +1 -1
  36. package/web/app/immutable/chunks/{BRc8KqQS.js → BqgLlXte.js} +1 -1
  37. package/web/app/immutable/chunks/{hgJz-lxL.js → BrgKUa-G.js} +1 -1
  38. package/web/app/immutable/chunks/{BwEg66U_.js → BsXH6ASx.js} +1 -1
  39. package/web/app/immutable/chunks/{Qj93naoS.js → BtQGF6MG.js} +1 -1
  40. package/web/app/immutable/chunks/{ClRyDWdo.js → C-hzwobp.js} +1 -1
  41. package/web/app/immutable/chunks/{Dl-ybQ3z.js → C0l2XLvP.js} +1 -1
  42. package/web/app/immutable/chunks/{-vn0_Dx_.js → C2q2h8LC.js} +1 -1
  43. package/web/app/immutable/chunks/{phDOGC4e.js → C4YSpHI_.js} +1 -1
  44. package/web/app/immutable/chunks/{Jr_-MnLx.js → C66LITAl.js} +1 -1
  45. package/web/app/immutable/chunks/C7ZRfZC1.js +2 -0
  46. package/web/app/immutable/chunks/{CY6Ad305.js → C7r-OuIg.js} +1 -1
  47. package/web/app/immutable/chunks/{CpxAEr5T.js → C8Ewc55B.js} +1 -1
  48. package/web/app/immutable/chunks/{ShdiMoFn.js → C8XfwzHP.js} +1 -1
  49. package/web/app/immutable/chunks/{BB1bdkKj.js → C92p6Xk1.js} +1 -1
  50. package/web/app/immutable/chunks/{CqCOQpit.js → CE3cTmuW.js} +1 -1
  51. package/web/app/immutable/chunks/{La4DuXBq.js → CFp19SMm.js} +1 -1
  52. package/web/app/immutable/chunks/{B4CT3ZnO.js → CH58YVSk.js} +1 -1
  53. package/web/app/immutable/chunks/{GLVkpxmO.js → CHjnK8eD.js} +1 -1
  54. package/web/app/immutable/chunks/{B9Yp_9YB.js → CJqmLHCx.js} +1 -1
  55. package/web/app/immutable/chunks/{eO-TU1Uq.js → CNKDyXfa.js} +2 -2
  56. package/web/app/immutable/chunks/{CYBP2kAe.js → COKOIhyC.js} +1 -1
  57. package/web/app/immutable/chunks/{zVHvgElF.js → COZF9anf.js} +1 -1
  58. package/web/app/immutable/chunks/{D-0JsOoD.js → CPYy7Bl8.js} +1 -1
  59. package/web/app/immutable/chunks/{BL_9_s5D.js → CVuCQwR4.js} +1 -1
  60. package/web/app/immutable/chunks/{BWcK5t6w.js → C_1dnC1X.js} +1 -1
  61. package/web/app/immutable/chunks/{CCXE6oHN.js → Cd6dNiWt.js} +1 -1
  62. package/web/app/immutable/chunks/{DEL8D3D_.js → CdxfWnwV.js} +1 -1
  63. package/web/app/immutable/chunks/{IqoI0Sop.js → Ce-iGpTr.js} +1 -1
  64. package/web/app/immutable/chunks/{rExovR4J.js → Ce6vcV0f.js} +1 -1
  65. package/web/app/immutable/chunks/{BLMF5IFF.js → Cf8id2rO.js} +1 -1
  66. package/web/app/immutable/chunks/{uc0NJTBD.js → CkyjResP.js} +1 -1
  67. package/web/app/immutable/chunks/{C7eDW7UL.js → ClAv9h9H.js} +1 -1
  68. package/web/app/immutable/chunks/{CA4-dLAB.js → ClouAezj.js} +3 -3
  69. package/web/app/immutable/chunks/{u6FKwXpA.js → CnivRSyI.js} +1 -1
  70. package/web/app/immutable/chunks/{VIhYvpCH.js → Coc7Z84W.js} +1 -1
  71. package/web/app/immutable/chunks/{wF4KE5sw.js → Coh-8FDf.js} +1 -1
  72. package/web/app/immutable/chunks/{CLMPxb4p.js → Cpr9mNUv.js} +1 -1
  73. package/web/app/immutable/chunks/{DO_AuT0X.js → Cr3SSyqj.js} +2 -2
  74. package/web/app/immutable/chunks/{DxhV3A5f.js → CwOQgsIB.js} +1 -1
  75. package/web/app/immutable/chunks/{DTmn8xTR.js → D0BCTOi7.js} +3 -3
  76. package/web/app/immutable/chunks/{o1Ob2Zjf.js → D6H9qMAI.js} +1 -1
  77. package/web/app/immutable/chunks/{XP2gV3S1.js → D9iOEcKX.js} +1 -1
  78. package/web/app/immutable/chunks/{dpdLxO6f.js → DBPvj7yj.js} +3 -3
  79. package/web/app/immutable/chunks/{D3hH9rNi.js → DFIsXmE_.js} +1 -1
  80. package/web/app/immutable/chunks/{C0y0G1dd.js → DJhmhU0F.js} +3 -3
  81. package/web/app/immutable/chunks/{RnZH5q_1.js → DJvRJQDF.js} +1 -1
  82. package/web/app/immutable/chunks/{DsAgoq4e.js → DKShYaIJ.js} +1 -1
  83. package/web/app/immutable/chunks/{DgyZN5lH.js → DM0_7KAa.js} +2 -2
  84. package/web/app/immutable/chunks/{Zi02dDqY.js → DNnl-ruw.js} +1 -1
  85. package/web/app/immutable/chunks/{Df2kEBtG.js → DOW78mrl.js} +1 -1
  86. package/web/app/immutable/chunks/{C9KtSy8M.js → DPgkHx8Z.js} +1 -1
  87. package/web/app/immutable/chunks/{DbZHCFkf.js → DR0muAaQ.js} +1 -1
  88. package/web/app/immutable/chunks/{Cc05Arx_.js → DVUO3Tx5.js} +1 -1
  89. package/web/app/immutable/chunks/{DJ54sSxs.js → DX3DcnUQ.js} +1 -1
  90. package/web/app/immutable/chunks/{Pd9lmiP5.js → DXKRxRra.js} +1 -1
  91. package/web/app/immutable/chunks/{C2aaRYxm.js → DYod7WBg.js} +1 -1
  92. package/web/app/immutable/chunks/{C1dnD04C.js → DZQgWgP1.js} +12 -12
  93. package/web/app/immutable/chunks/{DdkKMLjv.js → DeLyGL9g.js} +1 -1
  94. package/web/app/immutable/chunks/{D0WfEFI8.js → DhuL_LWc.js} +1 -1
  95. package/web/app/immutable/chunks/{Rni3zXxR.js → DlLRbNZR.js} +1 -1
  96. package/web/app/immutable/chunks/{DegFSSpo.js → DlMw3wRu.js} +1 -1
  97. package/web/app/immutable/chunks/{CS_bXQRj.js → Dnnm-5K1.js} +1 -1
  98. package/web/app/immutable/chunks/{BSQNx4Vk.js → Dogvt2Uo.js} +1 -1
  99. package/web/app/immutable/chunks/{DytZzUZT.js → DsuM61wf.js} +1 -1
  100. package/web/app/immutable/chunks/{9yLYut_f.js → DxnpD-Cb.js} +1 -1
  101. package/web/app/immutable/chunks/{AMuVbvNH.js → DyC0TlBU.js} +1 -1
  102. package/web/app/immutable/chunks/{BlieKkQ9.js → Dyx0lQpx.js} +1 -1
  103. package/web/app/immutable/chunks/{MbWbx059.js → Dzei16j2.js} +1 -1
  104. package/web/app/immutable/chunks/{CH1kO0eh.js → E1eRJOvk.js} +1 -1
  105. package/web/app/immutable/chunks/{a_UT53Db.js → F7DwQcta.js} +1 -1
  106. package/web/app/immutable/chunks/{BaodgUOU.js → K9qmyacm.js} +1 -1
  107. package/web/app/immutable/chunks/{Ci37X5fE.js → LD1u5ntr.js} +2 -2
  108. package/web/app/immutable/chunks/{L4diC29H.js → LTdieHUf.js} +4 -4
  109. package/web/app/immutable/chunks/{CInI0Sus.js → LU9o-VsR.js} +1 -1
  110. package/web/app/immutable/chunks/{DDNd0tnm.js → NmEpUrvw.js} +1 -1
  111. package/web/app/immutable/chunks/{BeZwt05v.js → QBrdUuj3.js} +1 -1
  112. package/web/app/immutable/chunks/{BdorRWAe.js → S8lIecOL.js} +1 -1
  113. package/web/app/immutable/chunks/{DsX0vSiK.js → So805CPS.js} +1 -1
  114. package/web/app/immutable/chunks/{vEgCNzPn.js → VzU2yQD-.js} +4 -4
  115. package/web/app/immutable/chunks/{CmtNfm_M.js → WOtBW7MG.js} +1 -1
  116. package/web/app/immutable/chunks/{FgsGgOBB.js → eE1Ik_Y8.js} +1 -1
  117. package/web/app/immutable/chunks/{D6dlkp5M.js → m9iBAChf.js} +1 -1
  118. package/web/app/immutable/chunks/{B6SFcGZ4.js → n9Al_b1R.js} +1 -1
  119. package/web/app/immutable/chunks/{B2Iig513.js → nISUgxKe.js} +1 -1
  120. package/web/app/immutable/chunks/{BzOYno2y.js → nfg7gMK0.js} +1 -1
  121. package/web/app/immutable/chunks/{DB6X5Jmb.js → rKfhSL2S.js} +1 -1
  122. package/web/app/immutable/chunks/{7ts4wsuO.js → uTT4_LLP.js} +1 -1
  123. package/web/app/immutable/chunks/{CdKj5L2M.js → yjIqqlQ2.js} +1 -1
  124. package/web/app/immutable/entry/{app.Btk0VZWt.js → app.BvRxV6R1.js} +2 -2
  125. package/web/app/immutable/entry/start.BrbYIb0p.js +1 -0
  126. package/web/app/immutable/nodes/{0.0HFA2uVE.js → 0.DlMK7EKt.js} +1 -1
  127. package/web/app/immutable/nodes/{1.CZQtUsls.js → 1.Bc43OCNt.js} +1 -1
  128. package/web/app/immutable/nodes/{10.MP2WoiSH.js → 10.CRW4MxVn.js} +1 -1
  129. package/web/app/immutable/nodes/{14.C9nz_rbo.js → 14.fcMbdu6Z.js} +1 -1
  130. package/web/app/immutable/nodes/{17.BIcZRnyp.js → 17.B3dCuKkH.js} +2 -2
  131. package/web/app/immutable/nodes/{2.B3TiYssM.js → 2.XomcwXea.js} +4 -4
  132. package/web/app/immutable/nodes/{3.Bi5S8K8Z.js → 3.tV7qLGeC.js} +1 -1
  133. package/web/app/immutable/nodes/{4.CtEWydTh.js → 4.CLfVtjCR.js} +1 -1
  134. package/web/app/immutable/nodes/{5.dqwJX5_j.js → 5.DcQbRELp.js} +1 -1
  135. package/web/app/immutable/nodes/{6.D2iLOyko.js → 6.CS7SDYA7.js} +1 -1
  136. package/web/app/immutable/nodes/{7.Ca_BtpTz.js → 7.D7iSydzH.js} +1 -1
  137. package/web/app/immutable/nodes/{8.BhbuK5L7.js → 8.C7yThhga.js} +4 -4
  138. package/web/app/immutable/nodes/{9.Db1dzGjG.js → 9.Daikd_tE.js} +4 -4
  139. package/web/app/version.json +1 -1
  140. package/web/index.html +9 -9
  141. package/web/app/immutable/chunks/D6WWKWsa.js +0 -2
  142. package/web/app/immutable/entry/start.atGTcU00.js +0 -1
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DdkKMLjv.js","/app/immutable/chunks/BKjGGpm1.js","/app/immutable/chunks/CXgKrD4b.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/Zi02dDqY.js","/app/immutable/chunks/HcYBxKPc.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/DenVKqrV.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DY2uGuix.js","/app/immutable/chunks/CHyKyUzM.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/Brb5mMFP.js","/app/immutable/chunks/D-Mv0NgR.js","/app/immutable/chunks/7vJjNlp5.js","/app/immutable/chunks/BEdXc2Cn.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/-svebp9s.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/BFLeHPtB.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BPe3vmZW.js","/app/immutable/chunks/NpJ_H_lL.js","/app/immutable/chunks/a_UT53Db.js","/app/immutable/chunks/5BjH__qw.js","/app/immutable/chunks/CpMi3Pqw.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/CglC4HOM.js","/app/immutable/chunks/01VYey36.js","/app/immutable/chunks/Bap15j_Q.js","/app/immutable/chunks/ChNKlZtm.js","/app/immutable/chunks/DLI1aSNH.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/DgyZN5lH.js","/app/immutable/chunks/R4bwBwT_.js","/app/immutable/chunks/C9Vu0azd.js","/app/immutable/chunks/BA5tpMka.js","/app/immutable/chunks/DHO1UrQa.js","/app/immutable/chunks/C9IQsGTN.js","/app/immutable/chunks/BYJTJW1o.js","/app/immutable/chunks/HSKzTsh4.js","/app/immutable/chunks/DX0DDRCM.js","/app/immutable/chunks/aA6XO7Z6.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/CeOYgNbD.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/1bpiYpBu.js","/app/immutable/chunks/Ct1y2X3-.js","/app/immutable/chunks/CKywtFzw.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/DQa6YuyW.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/DBwqw4Qu.js","/app/immutable/chunks/nhnbx7C0.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/CKDHxXsq.js","/app/immutable/chunks/BwHfUkOf.js","/app/immutable/chunks/ShdiMoFn.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/CLMPxb4p.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css","/app/immutable/chunks/L4diC29H.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/lkH5RFQO.js","/app/immutable/chunks/tE5q5HcJ.js","/app/immutable/assets/AttachmentPreview.BCSCCZGm.css","/app/immutable/chunks/IlWp1nGl.js","/app/immutable/chunks/CA4-dLAB.js","/app/immutable/chunks/BlieKkQ9.js","/app/immutable/assets/accessibility.CP-rioAF.css","/app/immutable/assets/DiagramPresentation.Bfi3xHm0.css"])))=>i.map(i=>d[i]);
2
- import{_ as Z}from"./CXgKrD4b.js";import{b as u,ay as o,aD as I,ah as ee,s as te,t as ne,u as se,aL as L,ad as re,ae as ie,a9 as D,Q as S,af as R,X as ae,W as oe,a4 as ce,aR as le,ba as ue,at as de,bh as fe}from"./BKjGGpm1.js";import{G as k}from"./-xK_vQQs.js";function P(e,{edgePathsClass:n="edges edgePaths"}={}){const t=e.insert("g").attr("class","root"),r=t.insert("g").attr("class","clusters"),s=t.insert("g").attr("class",n),i=t.insert("g").attr("class","edgeLabels"),c=t.insert("g").attr("class","nodes");return{clusters:r,edgePaths:s,edgeLabels:i,nodes:c,rootGroups:t}}u(P,"createLayoutElementGroups");async function T(e,n,t){if(n.label){const{shapeSvg:r,bbox:s}=await de(e,t===void 0?n:{...n,width:t});n.labelBBox={width:s.width,height:s.height},r.remove()}else n.labelBBox={width:0,height:0}}u(T,"measureGroupLabel");async function _(e,n,t){const r=await ee(e,n,t),s=r.node()?.getBBox()??{width:0,height:0};return n.width=s.width,n.height=s.height,r}u(_,"insertMeasuredNode");function B(e,n,t){let r=e;const s=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||s.has(r.parentId))break;s.add(r.parentId),r=n.get(r.parentId)}return t}u(B,"resolveNodeDir");async function M(e,n,t={}){const r=new k({multigraph:!0,compound:!0}),s=[...n.edges],i=ae(),c=P(e),{edgeLabels:f,nodes:a}=c,g=new Map,m=new Map(n.nodes.map(d=>[d.id,d])),C=n.direction,w=e.node()!=null;await Promise.all(n.nodes.map(async d=>{if(d.isGroup){if(w){const b=t.unwrapGroupLabels&&d.labelType!=="markdown";await T(a,d,b?Number.POSITIVE_INFINITY:void 0)}r.setNode(d.id,{...d})}else{if(w){const b=await _(a,d,{config:i,dir:B(d,m,C)});g.set(d.id,b)}r.setNode(d.id,{...d})}}));for(const d of s)w&&D(d)&&await R(f,d),r.setEdge(d.start,d.end,{...d},d.id),n.edges.some(E=>E.id===d.id)||n.edges.push(d);if(globalThis.mermaidCaptureSizes){const{captureNodeSizes:d}=await Z(async()=>{const{captureNodeSizes:b}=await import("./DdkKMLjv.js");return{captureNodeSizes:b}},__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,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]),import.meta.url);d(e,n)}return{graph:r,groups:c,nodeElements:g}}u(M,"createGraphWithElements");var l=new Map,h=new Map,A=new Map,ge=u(()=>{h.clear(),A.clear(),l.clear()},"clear"),v=u((e,n)=>{const t=h.get(n)||[];return o.trace("In isDescendant",n," ",e," = ",t.includes(e)),t.includes(e)},"isDescendant"),be=u((e,n)=>{const t=h.get(n)||[];return o.info("Descendants of ",n," is ",t),o.info("Edge is ",e),e.v===n||e.w===n?!1:t?t.includes(e.v)||v(e.v,n)||v(e.w,n)||t.includes(e.w):(o.debug("Tilt, ",n,",not in descendants"),!1)},"edgeInCluster"),X=u((e,n,t,r)=>{o.debug("Copying children of ",e,"root",r,"data",n.node(e),r);const s=n.children(e)||[];e!==r&&s.push(e),o.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach(i=>{if(n.children(i).length>0)X(i,n,t,r);else{const c=n.node(i);o.info("cp ",i," to ",r," with parent ",e),t.setNode(i,c),r!==n.parent(i)&&(o.debug("Setting parent",i,n.parent(i)),t.setParent(i,n.parent(i))),e!==r&&i!==e?(o.debug("Setting parent",i,e),t.setParent(i,e)):(o.info("In copy ",e,"root",r,"data",n.node(e),r),o.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==r,"node!==clusterId",i!==e));const f=n.edges(i);o.debug("Copying Edges",f),f.forEach(a=>{o.info("Edge",a);const g=n.edge(a.v,a.w,a.name);o.info("Edge data",g,r);try{be(a,r)?(o.info("Copying as ",a.v,a.w,g,a.name),t.setEdge(a.v,a.w,g,a.name),o.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]))):o.info("Skipping copy of edge ",a.v,"-->",a.w," rootId: ",r," clusterId:",e)}catch(m){o.error(m)}})}o.debug("Removing node",i),n.removeNode(i)})},"copy"),G=u((e,n)=>{const t=n.children(e);let r=[...t];for(const s of t)A.set(s,e),r=[...r,...G(s,n)];return r},"extractDescendants"),he=u((e,n,t)=>{const r=e.edges().filter(a=>a.v===n||a.w===n),s=e.edges().filter(a=>a.v===t||a.w===t),i=r.map(a=>({v:a.v===n?t:a.v,w:a.w===n?n:a.w})),c=s.map(a=>({v:a.v,w:a.w}));return i.filter(a=>c.some(g=>a.v===g.v&&a.w===g.w))},"findCommonEdges"),p=u((e,n,t)=>{const r=n.children(e);if(o.trace("Searching children of id ",e,r),r.length<1)return e;let s;for(const i of r){const c=p(i,n,t),f=he(n,t,c);if(c)if(f.length>0)s=c;else return c}return s},"findNonClusterChild"),x=u(e=>!l.has(e)||!l.get(e).externalConnections?e:l.has(e)?l.get(e).id:e,"getAnchorId"),Ne=u((e,n)=>{if(!e||n>10){o.debug("Opting out, no graph ");return}else o.debug("Opting in, graph ");e.nodes().forEach(function(t){e.children(t).length>0&&(o.debug("Cluster identified",t," Replacement id in edges: ",p(t,e,t)),h.set(t,G(t,e)),l.set(t,{id:p(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){const r=e.children(t),s=e.edges();r.length>0?(o.debug("Cluster identified",t,h),s.forEach(i=>{const c=v(i.v,t),f=v(i.w,t);c^f&&(o.debug("Edge: ",i," leaves cluster ",t),o.debug("Descendants of XXX ",t,": ",h.get(t)),l.get(t).externalConnections=!0)})):o.debug("Not a cluster ",t,h)});for(let t of l.keys()){const r=l.get(t).id,s=e.parent(r);s!==t&&l.has(s)&&!l.get(s).externalConnections&&(l.get(t).id=s);const i=e.edges().some(c=>c.v===t);if(r&&l.get(t)?.externalConnections&&i&&$(e,r,t)){const c=me(e,t,e.parent(r));c&&(l.get(t).id=c)}}e.edges().forEach(function(t){const r=e.edge(t);o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let s=t.v,i=t.w;if(o.debug("Fix XXX",l,"ids:",t.v,t.w,"Translating: ",l.get(t.v)," --- ",l.get(t.w)),l.get(t.v)||l.get(t.w)){if(o.debug("Fixing and trying - removing XXX",t.v,t.w,t.name),s=x(t.v),i=x(t.w),e.removeEdge(t.v,t.w,t.name),s!==t.v){const c=e.parent(s);l.get(c).externalConnections=!0,r.fromCluster=t.v}if(i!==t.w){const c=e.parent(i);l.get(c).externalConnections=!0,r.toCluster=t.w}o.debug("Fix Replacing with XXX",s,i,t.name),e.setEdge(s,i,r,t.name)}}),O(e,0),o.trace(l)},"adjustClustersAndEdges"),O=u((e,n)=>{if(n>10){o.error("Bailing out");return}let t=e.nodes(),r=!1;for(const s of t){const i=e.children(s);r=r||i.length>0}if(!r){o.debug("Done, no node has children",e.nodes());return}o.debug("Nodes = ",t,n);for(const s of t)if(o.debug("Extracting node",s,l,l.has(s)&&!l.get(s).externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",n),!l.has(s))o.debug("Not a cluster",s,n);else if(!l.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){o.debug("Cluster without external connections, without a parent and with children",s,n);let c=e.graph().rankdir==="TB"?"LR":"TB";l.get(s)?.clusterData?.dir&&(c=l.get(s).clusterData.dir,o.debug("Fixing dir",l.get(s).clusterData.dir,c));const f=new k({multigraph:!0,compound:!0}).setGraph({rankdir:c,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});X(s,e,f,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:l.get(s).clusterData,label:l.get(s).label,graph:f})}else o.debug("Cluster ** ",s," **not meeting the criteria !externalConnections:",!l.get(s).externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),n),o.debug(l);t=e.nodes(),o.debug("New list of nodes",t);for(const s of t){const i=e.node(s);o.debug(" Now next level",s,i),i?.clusterNode&&O(i.graph,n+1)}},"extractor"),F=u((e,n)=>{if(n.length===0)return[];let t=Object.assign([],n);return n.forEach(r=>{const s=e.children(r),i=F(e,s);t=[...t,...i]}),t},"sorter"),ye=u(e=>F(e,e.children()),"sortNodesByHierarchy"),$=u((e,n,t)=>{let r=e.parent(n);for(;r&&r!==t;){const s=l.get(r);if(s&&!s.externalConnections)return!0;r=e.parent(r)}return!1},"isNodeInExtractableCluster"),me=u((e,n,t)=>{const r=e.children(n)??[];for(const s of r){if(s===t||v(s,t))continue;const i=p(s,e,n);if(i&&!$(e,i,n))return i}return null},"findSafeAnchorNode");function we({prepareLayout:e,measureLayout:n,runLayoutCore:t,paintLayout:r,afterPaint:s,paintOptions:i}){const c=n??z;return u(async function(a,g,m,C){const w=g.select("g");(m?.insertMarkers??I)(w,a.markers,a.type,a.diagramId),j();const d={element:w,helpers:m,options:C};d.preparedLayout=await e?.(a,d);const b=await c(a,d),E=await t(a,d),N={...d,measure:b};r?await r(a,N,E):await H(a,N,i),await s?.(a,N,E)},"render")}u(we,"createCommonLayoutRenderer");function j(){te(),ne(),se(),ge()}u(j,"clearLayoutRenderState");async function z(e,{element:n},t){return await M(n,e,t)}u(z,"defaultMeasureLayout");async function H(e,n,t={}){const{measure:r}=n,{groups:s}=r;for(const c of t.getNodes?.(e,n)??e.nodes)t.skipNode?.(c,n)||await W(s,c,n,t);const i=V(e.nodes);for(const c of e.edges)Q(c,t)||await Y(s,c,i,e,t,n)}u(H,"paintLayoutData");async function W(e,n,t,r){n.clusterNode?L(n):J(n,t,r)?await re(e.clusters,n):L(n)}u(W,"paintLayoutNode");function J(e,n,t){return e.isGroup===!0&&(t.isCluster?.(e,n)??!0)}u(J,"shouldPaintAsCluster");function V(e){const n=new Map;for(const t of e)t?.id&&n.set(t.id,t);return n}u(V,"buildNodeLookup");function Q(e,n){return e.isLayoutOnly||!!n.skipEdge?.(e)}u(Q,"shouldSkipPaintEdge");async function Y(e,n,t,r,s,i){const c=ie(e.edgePaths,{...n},s.clusterDb??new Map,r.type,y(n.start,n,t,i,s),y(n.end,n,t,i,s),r.diagramId,q(n,s),r.layoutAlgorithm);D(n)&&(S.has(n.id)||await R(e.edgeLabels,n),K(n,c))}u(Y,"paintLayoutEdge");function y(e,n,t,r,s){return s.getEdgeNode?.(e,n,r)??(e?t.get(e)??{}:{})}u(y,"getRenderedNode");function q(e,n){return typeof n.skipIntersect=="function"?n.skipIntersect(e):n.skipIntersect??!1}u(q,"shouldSkipIntersect");function K(e,n){const t=n?.updatedPath??n?.originalPath,r=oe(),{subGraphTitleTotalMargin:s}=ce({flowchart:r.flowchart??{}});if(e.label){const i=S.get(e.id),{x:c,y:f}=le(e,n);i.attr("transform",`translate(${c}, ${f+s/2})`)}for(const[i,c]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(c){const{x:f,y:a}=U(e,i,t);ue.get(e.id)[i].attr("transform",`translate(${f}, ${a})`)}}u(K,"positionRenderedEdgeLabel");var ve={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function U(e,n,t){const r=e.terminalLabelCenters?.[n];if(r)return{...r};if(!t)return{x:e.x,y:e.y};const s=n.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return fe.calcTerminalLabelPosition(s?10:0,ve[n],t)}u(U,"terminalLabelTranslate");export{Ne as a,we as b,l as c,P as d,z as e,p as f,_ as i,ye as s};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DeLyGL9g.js","/app/immutable/chunks/BkUS-e35.js","/app/immutable/chunks/CXgKrD4b.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/DNnl-ruw.js","/app/immutable/chunks/HcYBxKPc.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/DenVKqrV.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DY2uGuix.js","/app/immutable/chunks/CHyKyUzM.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/Brb5mMFP.js","/app/immutable/chunks/D-Mv0NgR.js","/app/immutable/chunks/7vJjNlp5.js","/app/immutable/chunks/BEdXc2Cn.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/-svebp9s.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/BFLeHPtB.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BPe3vmZW.js","/app/immutable/chunks/NpJ_H_lL.js","/app/immutable/chunks/F7DwQcta.js","/app/immutable/chunks/5BjH__qw.js","/app/immutable/chunks/CpMi3Pqw.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/CglC4HOM.js","/app/immutable/chunks/01VYey36.js","/app/immutable/chunks/Bap15j_Q.js","/app/immutable/chunks/ChNKlZtm.js","/app/immutable/chunks/DLI1aSNH.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/DM0_7KAa.js","/app/immutable/chunks/R4bwBwT_.js","/app/immutable/chunks/C9Vu0azd.js","/app/immutable/chunks/5BpiFfqe.js","/app/immutable/chunks/DHO1UrQa.js","/app/immutable/chunks/C9IQsGTN.js","/app/immutable/chunks/BYJTJW1o.js","/app/immutable/chunks/HSKzTsh4.js","/app/immutable/chunks/DX0DDRCM.js","/app/immutable/chunks/aA6XO7Z6.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/CeOYgNbD.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/1bpiYpBu.js","/app/immutable/chunks/Ct1y2X3-.js","/app/immutable/chunks/CKywtFzw.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/DQa6YuyW.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/DBwqw4Qu.js","/app/immutable/chunks/nhnbx7C0.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/B56Mq91W.js","/app/immutable/chunks/BKzrjZp1.js","/app/immutable/chunks/C8XfwzHP.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/Cpr9mNUv.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css","/app/immutable/chunks/LTdieHUf.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/lkH5RFQO.js","/app/immutable/chunks/tE5q5HcJ.js","/app/immutable/assets/AttachmentPreview.BCSCCZGm.css","/app/immutable/chunks/BirwNQi3.js","/app/immutable/chunks/ClouAezj.js","/app/immutable/chunks/Dyx0lQpx.js","/app/immutable/assets/accessibility.CP-rioAF.css","/app/immutable/assets/DiagramPresentation.Bfi3xHm0.css"])))=>i.map(i=>d[i]);
2
+ import{_ as Z}from"./CXgKrD4b.js";import{b as u,ay as o,aD as I,ah as ee,s as te,t as ne,u as se,aL as L,ad as re,ae as ie,a9 as D,Q as S,af as R,X as ae,W as oe,a4 as ce,aR as le,ba as ue,at as de,bh as fe}from"./BkUS-e35.js";import{G as k}from"./-xK_vQQs.js";function P(e,{edgePathsClass:n="edges edgePaths"}={}){const t=e.insert("g").attr("class","root"),r=t.insert("g").attr("class","clusters"),s=t.insert("g").attr("class",n),i=t.insert("g").attr("class","edgeLabels"),c=t.insert("g").attr("class","nodes");return{clusters:r,edgePaths:s,edgeLabels:i,nodes:c,rootGroups:t}}u(P,"createLayoutElementGroups");async function T(e,n,t){if(n.label){const{shapeSvg:r,bbox:s}=await de(e,t===void 0?n:{...n,width:t});n.labelBBox={width:s.width,height:s.height},r.remove()}else n.labelBBox={width:0,height:0}}u(T,"measureGroupLabel");async function _(e,n,t){const r=await ee(e,n,t),s=r.node()?.getBBox()??{width:0,height:0};return n.width=s.width,n.height=s.height,r}u(_,"insertMeasuredNode");function B(e,n,t){let r=e;const s=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||s.has(r.parentId))break;s.add(r.parentId),r=n.get(r.parentId)}return t}u(B,"resolveNodeDir");async function M(e,n,t={}){const r=new k({multigraph:!0,compound:!0}),s=[...n.edges],i=ae(),c=P(e),{edgeLabels:f,nodes:a}=c,g=new Map,m=new Map(n.nodes.map(d=>[d.id,d])),C=n.direction,w=e.node()!=null;await Promise.all(n.nodes.map(async d=>{if(d.isGroup){if(w){const b=t.unwrapGroupLabels&&d.labelType!=="markdown";await T(a,d,b?Number.POSITIVE_INFINITY:void 0)}r.setNode(d.id,{...d})}else{if(w){const b=await _(a,d,{config:i,dir:B(d,m,C)});g.set(d.id,b)}r.setNode(d.id,{...d})}}));for(const d of s)w&&D(d)&&await R(f,d),r.setEdge(d.start,d.end,{...d},d.id),n.edges.some(E=>E.id===d.id)||n.edges.push(d);if(globalThis.mermaidCaptureSizes){const{captureNodeSizes:d}=await Z(async()=>{const{captureNodeSizes:b}=await import("./DeLyGL9g.js");return{captureNodeSizes:b}},__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,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80]),import.meta.url);d(e,n)}return{graph:r,groups:c,nodeElements:g}}u(M,"createGraphWithElements");var l=new Map,h=new Map,A=new Map,ge=u(()=>{h.clear(),A.clear(),l.clear()},"clear"),v=u((e,n)=>{const t=h.get(n)||[];return o.trace("In isDescendant",n," ",e," = ",t.includes(e)),t.includes(e)},"isDescendant"),be=u((e,n)=>{const t=h.get(n)||[];return o.info("Descendants of ",n," is ",t),o.info("Edge is ",e),e.v===n||e.w===n?!1:t?t.includes(e.v)||v(e.v,n)||v(e.w,n)||t.includes(e.w):(o.debug("Tilt, ",n,",not in descendants"),!1)},"edgeInCluster"),X=u((e,n,t,r)=>{o.debug("Copying children of ",e,"root",r,"data",n.node(e),r);const s=n.children(e)||[];e!==r&&s.push(e),o.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach(i=>{if(n.children(i).length>0)X(i,n,t,r);else{const c=n.node(i);o.info("cp ",i," to ",r," with parent ",e),t.setNode(i,c),r!==n.parent(i)&&(o.debug("Setting parent",i,n.parent(i)),t.setParent(i,n.parent(i))),e!==r&&i!==e?(o.debug("Setting parent",i,e),t.setParent(i,e)):(o.info("In copy ",e,"root",r,"data",n.node(e),r),o.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==r,"node!==clusterId",i!==e));const f=n.edges(i);o.debug("Copying Edges",f),f.forEach(a=>{o.info("Edge",a);const g=n.edge(a.v,a.w,a.name);o.info("Edge data",g,r);try{be(a,r)?(o.info("Copying as ",a.v,a.w,g,a.name),t.setEdge(a.v,a.w,g,a.name),o.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]))):o.info("Skipping copy of edge ",a.v,"-->",a.w," rootId: ",r," clusterId:",e)}catch(m){o.error(m)}})}o.debug("Removing node",i),n.removeNode(i)})},"copy"),G=u((e,n)=>{const t=n.children(e);let r=[...t];for(const s of t)A.set(s,e),r=[...r,...G(s,n)];return r},"extractDescendants"),he=u((e,n,t)=>{const r=e.edges().filter(a=>a.v===n||a.w===n),s=e.edges().filter(a=>a.v===t||a.w===t),i=r.map(a=>({v:a.v===n?t:a.v,w:a.w===n?n:a.w})),c=s.map(a=>({v:a.v,w:a.w}));return i.filter(a=>c.some(g=>a.v===g.v&&a.w===g.w))},"findCommonEdges"),p=u((e,n,t)=>{const r=n.children(e);if(o.trace("Searching children of id ",e,r),r.length<1)return e;let s;for(const i of r){const c=p(i,n,t),f=he(n,t,c);if(c)if(f.length>0)s=c;else return c}return s},"findNonClusterChild"),x=u(e=>!l.has(e)||!l.get(e).externalConnections?e:l.has(e)?l.get(e).id:e,"getAnchorId"),Ne=u((e,n)=>{if(!e||n>10){o.debug("Opting out, no graph ");return}else o.debug("Opting in, graph ");e.nodes().forEach(function(t){e.children(t).length>0&&(o.debug("Cluster identified",t," Replacement id in edges: ",p(t,e,t)),h.set(t,G(t,e)),l.set(t,{id:p(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){const r=e.children(t),s=e.edges();r.length>0?(o.debug("Cluster identified",t,h),s.forEach(i=>{const c=v(i.v,t),f=v(i.w,t);c^f&&(o.debug("Edge: ",i," leaves cluster ",t),o.debug("Descendants of XXX ",t,": ",h.get(t)),l.get(t).externalConnections=!0)})):o.debug("Not a cluster ",t,h)});for(let t of l.keys()){const r=l.get(t).id,s=e.parent(r);s!==t&&l.has(s)&&!l.get(s).externalConnections&&(l.get(t).id=s);const i=e.edges().some(c=>c.v===t);if(r&&l.get(t)?.externalConnections&&i&&$(e,r,t)){const c=me(e,t,e.parent(r));c&&(l.get(t).id=c)}}e.edges().forEach(function(t){const r=e.edge(t);o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let s=t.v,i=t.w;if(o.debug("Fix XXX",l,"ids:",t.v,t.w,"Translating: ",l.get(t.v)," --- ",l.get(t.w)),l.get(t.v)||l.get(t.w)){if(o.debug("Fixing and trying - removing XXX",t.v,t.w,t.name),s=x(t.v),i=x(t.w),e.removeEdge(t.v,t.w,t.name),s!==t.v){const c=e.parent(s);l.get(c).externalConnections=!0,r.fromCluster=t.v}if(i!==t.w){const c=e.parent(i);l.get(c).externalConnections=!0,r.toCluster=t.w}o.debug("Fix Replacing with XXX",s,i,t.name),e.setEdge(s,i,r,t.name)}}),O(e,0),o.trace(l)},"adjustClustersAndEdges"),O=u((e,n)=>{if(n>10){o.error("Bailing out");return}let t=e.nodes(),r=!1;for(const s of t){const i=e.children(s);r=r||i.length>0}if(!r){o.debug("Done, no node has children",e.nodes());return}o.debug("Nodes = ",t,n);for(const s of t)if(o.debug("Extracting node",s,l,l.has(s)&&!l.get(s).externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",n),!l.has(s))o.debug("Not a cluster",s,n);else if(!l.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){o.debug("Cluster without external connections, without a parent and with children",s,n);let c=e.graph().rankdir==="TB"?"LR":"TB";l.get(s)?.clusterData?.dir&&(c=l.get(s).clusterData.dir,o.debug("Fixing dir",l.get(s).clusterData.dir,c));const f=new k({multigraph:!0,compound:!0}).setGraph({rankdir:c,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});X(s,e,f,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:l.get(s).clusterData,label:l.get(s).label,graph:f})}else o.debug("Cluster ** ",s," **not meeting the criteria !externalConnections:",!l.get(s).externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),n),o.debug(l);t=e.nodes(),o.debug("New list of nodes",t);for(const s of t){const i=e.node(s);o.debug(" Now next level",s,i),i?.clusterNode&&O(i.graph,n+1)}},"extractor"),F=u((e,n)=>{if(n.length===0)return[];let t=Object.assign([],n);return n.forEach(r=>{const s=e.children(r),i=F(e,s);t=[...t,...i]}),t},"sorter"),ye=u(e=>F(e,e.children()),"sortNodesByHierarchy"),$=u((e,n,t)=>{let r=e.parent(n);for(;r&&r!==t;){const s=l.get(r);if(s&&!s.externalConnections)return!0;r=e.parent(r)}return!1},"isNodeInExtractableCluster"),me=u((e,n,t)=>{const r=e.children(n)??[];for(const s of r){if(s===t||v(s,t))continue;const i=p(s,e,n);if(i&&!$(e,i,n))return i}return null},"findSafeAnchorNode");function we({prepareLayout:e,measureLayout:n,runLayoutCore:t,paintLayout:r,afterPaint:s,paintOptions:i}){const c=n??z;return u(async function(a,g,m,C){const w=g.select("g");(m?.insertMarkers??I)(w,a.markers,a.type,a.diagramId),j();const d={element:w,helpers:m,options:C};d.preparedLayout=await e?.(a,d);const b=await c(a,d),E=await t(a,d),N={...d,measure:b};r?await r(a,N,E):await H(a,N,i),await s?.(a,N,E)},"render")}u(we,"createCommonLayoutRenderer");function j(){te(),ne(),se(),ge()}u(j,"clearLayoutRenderState");async function z(e,{element:n},t){return await M(n,e,t)}u(z,"defaultMeasureLayout");async function H(e,n,t={}){const{measure:r}=n,{groups:s}=r;for(const c of t.getNodes?.(e,n)??e.nodes)t.skipNode?.(c,n)||await W(s,c,n,t);const i=V(e.nodes);for(const c of e.edges)Q(c,t)||await Y(s,c,i,e,t,n)}u(H,"paintLayoutData");async function W(e,n,t,r){n.clusterNode?L(n):J(n,t,r)?await re(e.clusters,n):L(n)}u(W,"paintLayoutNode");function J(e,n,t){return e.isGroup===!0&&(t.isCluster?.(e,n)??!0)}u(J,"shouldPaintAsCluster");function V(e){const n=new Map;for(const t of e)t?.id&&n.set(t.id,t);return n}u(V,"buildNodeLookup");function Q(e,n){return e.isLayoutOnly||!!n.skipEdge?.(e)}u(Q,"shouldSkipPaintEdge");async function Y(e,n,t,r,s,i){const c=ie(e.edgePaths,{...n},s.clusterDb??new Map,r.type,y(n.start,n,t,i,s),y(n.end,n,t,i,s),r.diagramId,q(n,s),r.layoutAlgorithm);D(n)&&(S.has(n.id)||await R(e.edgeLabels,n),K(n,c))}u(Y,"paintLayoutEdge");function y(e,n,t,r,s){return s.getEdgeNode?.(e,n,r)??(e?t.get(e)??{}:{})}u(y,"getRenderedNode");function q(e,n){return typeof n.skipIntersect=="function"?n.skipIntersect(e):n.skipIntersect??!1}u(q,"shouldSkipIntersect");function K(e,n){const t=n?.updatedPath??n?.originalPath,r=oe(),{subGraphTitleTotalMargin:s}=ce({flowchart:r.flowchart??{}});if(e.label){const i=S.get(e.id),{x:c,y:f}=le(e,n);i.attr("transform",`translate(${c}, ${f+s/2})`)}for(const[i,c]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(c){const{x:f,y:a}=U(e,i,t);ue.get(e.id)[i].attr("transform",`translate(${f}, ${a})`)}}u(K,"positionRenderedEdgeLabel");var ve={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function U(e,n,t){const r=e.terminalLabelCenters?.[n];if(r)return{...r};if(!t)return{x:e.x,y:e.y};const s=n.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return fe.calcTerminalLabelPosition(s?10:0,ve[n],t)}u(U,"terminalLabelTranslate");export{Ne as a,we as b,l as c,P as d,z as e,p as f,_ as i,ye as s};