@layers-app/editor 0.3.0 → 0.3.1

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 (228) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/layers.-OFHX18B.js +1 -0
  4. package/dist/{layers.B88Tq9fq.js → layers.0SH7L8mO.js} +1 -1
  5. package/dist/{layers.BrwveTp_.js → layers.3GwrPaZO.js} +18 -19
  6. package/dist/{layers.BT47r9lw.js → layers.3a-Q5eGZ.js} +1 -1
  7. package/dist/{layers.DhVu4iGF.js → layers.48I9suCn.js} +6525 -6523
  8. package/dist/{layers.DEj_-Grg.js → layers.7VVd4tP6.js} +1 -1
  9. package/dist/{layers.D-ai8yBe.js → layers.9Yn7opmg.js} +8 -9
  10. package/dist/{layers.DGBJxH-i.js → layers.9Yq4SYpr.js} +1 -1
  11. package/dist/{layers.BXcxE02s.js → layers.9qBnCDzZ.js} +1 -1
  12. package/dist/{layers.2sOFsgpt.js → layers.B-6ntVZv.js} +33 -33
  13. package/dist/{layers.DzLp1nNI.js → layers.B-_EI2NU.js} +1 -1
  14. package/dist/{layers.D_7_4U6H.js → layers.B0CIcvyl.js} +1 -1
  15. package/dist/{layers.9tX9hjoM.js → layers.B2AGu32C.js} +61 -61
  16. package/dist/{layers.xuA-KjdM.js → layers.B2iZKl7a.js} +9 -10
  17. package/dist/{layers.rXaivo1G.js → layers.B3mWbsYz.js} +10 -11
  18. package/dist/{layers.Dc17KGUJ.js → layers.B3oab57P.js} +1 -1
  19. package/dist/{layers.BfgAhPID.js → layers.B4edIPhh.js} +1 -1
  20. package/dist/{layers.D_duxQPK.js → layers.B5HfO3V6.js} +1 -1
  21. package/dist/{layers.Dz3X0MlG.js → layers.B5JSV7em.js} +57 -57
  22. package/dist/{layers.DuEB1Y-T.js → layers.B6NJ6ccg.js} +1 -1
  23. package/dist/{layers.CmjlfzqR.js → layers.B7SdSCSK.js} +1 -1
  24. package/dist/{layers.CXh6lA3a.js → layers.BAzHt1-K.js} +3 -3
  25. package/dist/{layers.CJEJ4X7s.js → layers.BDSdHwxq.js} +1 -1
  26. package/dist/{layers.CIkLs05n.js → layers.BEjPybmC.js} +1 -1
  27. package/dist/{layers.BuJcmKuG.js → layers.BH5Zo2E5.js} +1 -1
  28. package/dist/{layers.CPtyJjDZ.js → layers.BHQ_DVN2.js} +1 -1
  29. package/dist/{layers.7tkYogen.js → layers.BJ55htmW.js} +1 -1
  30. package/dist/{layers._mYyPoAM.js → layers.BKbwal2S.js} +1 -1
  31. package/dist/{layers.CxGQnE2E.js → layers.BKzpK190.js} +1 -1
  32. package/dist/{layers.D0mYhnD_.js → layers.BLA49Uxv.js} +1 -1
  33. package/dist/layers.BLmU0KXd.js +10 -0
  34. package/dist/{layers.iSI2Ixu0.js → layers.BOhRJ2O7.js} +1 -1
  35. package/dist/{layers.DclYra1-.js → layers.BPS0vWZM.js} +1 -1
  36. package/dist/{layers.CLAkkTQF.js → layers.BQQthCA6.js} +1 -1
  37. package/dist/{layers.BRg8Z6Fg.js → layers.BRKlq7jj.js} +2 -2
  38. package/dist/layers.BRhQ1w-K.js +96 -0
  39. package/dist/{layers.CkEhdEMJ.js → layers.BS2w4lr6.js} +1 -1
  40. package/dist/{layers.C__5h4aS.js → layers.BS9nCPMs.js} +1 -1
  41. package/dist/{layers.BFT6OtgR.js → layers.BXmhh7b0.js} +1 -1
  42. package/dist/{layers.C-JonM7I.js → layers.BXz0HxFb.js} +1 -1
  43. package/dist/{layers.CPJF7wyf.js → layers.B_fwh454.js} +1 -1
  44. package/dist/{layers.5Fc-eDz_.js → layers.BaICHlB8.js} +1 -1
  45. package/dist/{layers.Btw6v4iY.js → layers.BaLCIMM8.js} +1 -1
  46. package/dist/layers.BcE-rdq0.js +1 -0
  47. package/dist/{layers.BnB_ZCKf.js → layers.BcLslZVY.js} +1 -1
  48. package/dist/{layers.xrnbA0Hx.js → layers.Be1IMgFf.js} +1 -1
  49. package/dist/{layers.KB-lMlC4.js → layers.BeSH60au.js} +1 -1
  50. package/dist/{layers.CMsdH6MZ.js → layers.Bel31pZo.js} +1 -1
  51. package/dist/{layers.DJ29FJsN.js → layers.Bgh_aa4B.js} +1 -1
  52. package/dist/{layers.XPl1C4Xv.js → layers.BhFwDmEi.js} +1 -1
  53. package/dist/{layers.BZKrOb4j.js → layers.BhyRsUUP.js} +1 -1
  54. package/dist/{layers.Bs80VeaG.js → layers.BiQxhxnG.js} +38 -38
  55. package/dist/{layers.BYJgHe0j.js → layers.BkpoZP5j.js} +1 -1
  56. package/dist/{layers.BAAAIQgL.js → layers.BkzTxi7n.js} +54 -55
  57. package/dist/{layers.BudVqxFc.js → layers.Blb1SJbF.js} +1 -1
  58. package/dist/{layers.DMfyflRv.js → layers.BlpEVEZQ.js} +307 -312
  59. package/dist/{layers.D48A_dlx.js → layers.BmKXu2hq.js} +37 -38
  60. package/dist/{layers.CpcqVX72.js → layers.Buk0Fw_r.js} +1 -1
  61. package/dist/{layers.BEKEkSeG.js → layers.Bygo74zU.js} +8541 -8843
  62. package/dist/layers.Bzjuw56r.js +4 -0
  63. package/dist/{layers.BoWIpGHq.js → layers.C-dzC33p.js} +1 -1
  64. package/dist/layers.C-gj1rq0.js +64 -0
  65. package/dist/{layers.DWjc_eMo.js → layers.C0-A7eRM.js} +1 -1
  66. package/dist/{layers.NWZBwKEK.js → layers.C2J-9t4F.js} +1 -1
  67. package/dist/{layers.BlFR1qtc.js → layers.C2lCyyCZ.js} +1 -1
  68. package/dist/{layers.Biiuyvk3.js → layers.C3WQ9FB9.js} +1 -1
  69. package/dist/{layers.Dngs5OpP.js → layers.C5JGtTwP.js} +1 -1
  70. package/dist/{layers.62fLihH9.js → layers.C6rX4i15.js} +1 -1
  71. package/dist/{layers.BD5cjyof.js → layers.C7xf3nZE.js} +1 -1
  72. package/dist/{layers.R_5lXX8D.js → layers.C9Wj3En2.js} +1 -1
  73. package/dist/{layers.C07EEzls.js → layers.C9n_72fo.js} +1 -1
  74. package/dist/{layers.Dcv9yczD.js → layers.CA4DyArn.js} +1 -1
  75. package/dist/{layers.C1VtSMXU.js → layers.CAqeoIhq.js} +240 -243
  76. package/dist/{layers.Cwwx9dqL.js → layers.CBwJFvR2.js} +1 -1
  77. package/dist/{layers.rD_yeisW.js → layers.CCKbbpP_.js} +1 -1
  78. package/dist/{layers.Bipv0RrA.js → layers.CEhLVWVr.js} +1 -1
  79. package/dist/layers.CHCM_M7u.js +1 -0
  80. package/dist/{layers.BwSoDZk1.js → layers.CJ2wXM1J.js} +1 -1
  81. package/dist/{layers.CDdlABmL.js → layers.CKwrGZha.js} +1 -1
  82. package/dist/{layers.DzOX-fH0.js → layers.CLq_gjkT.js} +1 -1
  83. package/dist/{layers.DGE3E7fO.js → layers.CLrT_kEd.js} +1 -1
  84. package/dist/{layers.DS9XrncL.js → layers.CM09dSjO.js} +1 -1
  85. package/dist/{layers.CAf30VQc.js → layers.CNSM6wNt.js} +1 -1
  86. package/dist/{layers.CWSqO_Rm.js → layers.CNi2XH-e.js} +1 -1
  87. package/dist/{layers.Cy9Nv6Fr.js → layers.CQ9mG0cW.js} +1 -1
  88. package/dist/{layers.CIBcP2_G.js → layers.CSdBXHWj.js} +1 -1
  89. package/dist/{layers.pL-8PKFv.js → layers.CVpWQln7.js} +2 -2
  90. package/dist/{layers.C23xliFJ.js → layers.CWSgM_kw.js} +1 -1
  91. package/dist/{layers.DPJYTRtA.js → layers.CWkN7sKt.js} +1 -1
  92. package/dist/{layers.DdJlEJId.js → layers.CXTZloQF.js} +1 -1
  93. package/dist/{layers.B9QOa-CF.js → layers.CYDe1VkW.js} +1 -1
  94. package/dist/{layers.oTwVbcUa.js → layers.CZ4FZo4I.js} +2 -2
  95. package/dist/{layers.BnRpAAlF.js → layers.C_AfKjTB.js} +1 -1
  96. package/dist/{layers.D6a0mAc6.js → layers.CaTJnQ9u.js} +1 -1
  97. package/dist/{layers.CuVGCSqO.js → layers.CakuyGCQ.js} +1 -1
  98. package/dist/{layers.5h2RcPii.js → layers.CbmxJEUV.js} +130 -130
  99. package/dist/{layers.BwDZF6jP.js → layers.CcsWrdTv.js} +1 -1
  100. package/dist/{layers.u7Ns5vGH.js → layers.CczDjU9N.js} +56 -56
  101. package/dist/layers.CdbF8xYj.js +8 -0
  102. package/dist/layers.ChFAeZ6n.js +2 -0
  103. package/dist/{layers.DIinupg_.js → layers.ChyiO7W2.js} +89 -90
  104. package/dist/{layers.XcKE2JQ1.js → layers.Ci0fy6mm.js} +1 -1
  105. package/dist/{layers.UJU8qQAn.js → layers.CinKDuBS.js} +1 -1
  106. package/dist/{layers.BM0PIwPm.js → layers.CjfXghGO.js} +1 -1
  107. package/dist/{layers.BaHA4Shj.js → layers.CkHkzjP7.js} +1 -1
  108. package/dist/{layers.BXD95e_q.js → layers.ClovUFct.js} +14 -15
  109. package/dist/{layers.ijvnT6-f.js → layers.Cmzu43i4.js} +34 -34
  110. package/dist/{layers.DUt_7Rf9.js → layers.Cs24L6er.js} +6 -6
  111. package/dist/{layers.D12qRcsu.js → layers.CtE1xXZh.js} +1 -1
  112. package/dist/{layers.sDmQeN5H.js → layers.CtUY0ri3.js} +590 -591
  113. package/dist/{layers.Bzzte71n.js → layers.CuC5nLW8.js} +1 -1
  114. package/dist/{layers.BkDTMrUN.js → layers.CuDNx9A1.js} +1 -1
  115. package/dist/{layers.BE9kQeZe.js → layers.CugRvVGY.js} +1 -1
  116. package/dist/{layers.Dql9KEZr.js → layers.CwFOQcrb.js} +4 -5
  117. package/dist/{layers.DuiJZjBm.js → layers.CyH2JHOr.js} +1 -1
  118. package/dist/{layers.dFLqx2yF.js → layers.CzEbMWGx.js} +1 -1
  119. package/dist/{layers.DYKoL1v7.js → layers.D0W9WciE.js} +40 -41
  120. package/dist/{layers.CYBOlxgn.js → layers.D1j5HCgS.js} +7 -8
  121. package/dist/{layers.BD0kudED.js → layers.D29gtt0H.js} +1 -1
  122. package/dist/{layers._VwDTgZW.js → layers.D2Kx1511.js} +1 -1
  123. package/dist/{layers.CG8R0qJB.js → layers.D3U9SdgE.js} +1 -1
  124. package/dist/{layers.CKILpQg6.js → layers.D3aDob9Z.js} +1 -1
  125. package/dist/{layers.Y_OQ_zog.js → layers.D4A3yxw0.js} +1 -1
  126. package/dist/{layers.hXK5MQUI.js → layers.D4XVPZpA.js} +1 -1
  127. package/dist/{layers.DQAUau8M.js → layers.D7APxkZ4.js} +1 -1
  128. package/dist/{layers.C8YnAQyz.js → layers.D7yG1HEx.js} +1 -1
  129. package/dist/{layers.B1WO8gEK.js → layers.D9vlbJdq.js} +80 -81
  130. package/dist/{layers.AZC4YUu_.js → layers.DBbMzX3L.js} +1 -1
  131. package/dist/{layers.B3eNZiVS.js → layers.DBd1ZxHp.js} +1 -1
  132. package/dist/{layers.COzBijJ2.js → layers.DDbaPvpM.js} +1 -1
  133. package/dist/{layers.CC0Hhj9e.js → layers.DDwqLeSC.js} +1 -1
  134. package/dist/{layers.DooAEuei.js → layers.DEJLw5pD.js} +1 -1
  135. package/dist/{layers.BjA5a3oW.js → layers.DFUTFOcc.js} +1 -1
  136. package/dist/{layers.CmU-4IOd.js → layers.DGNpEhCF.js} +1 -1
  137. package/dist/layers.DGt5eZsp.js +2 -0
  138. package/dist/{layers.Bne778y0.js → layers.DI85re_s.js} +1 -1
  139. package/dist/{layers.CEF0QmMB.js → layers.DJUAT4C2.js} +1 -1
  140. package/dist/{layers.x9pj1ZgJ.js → layers.DK9jGMtC.js} +1 -1
  141. package/dist/{layers.CzRAqMwS.js → layers.DLCTcxL1.js} +1 -1
  142. package/dist/{layers.BNkMUXgY.js → layers.DNpJjBUJ.js} +1 -1
  143. package/dist/{layers.8HVSVFE-.js → layers.DOWkTN19.js} +4 -4
  144. package/dist/{layers.Cy6OFGbS.js → layers.DOsKyasI.js} +1 -1
  145. package/dist/{layers.CyEIletN.js → layers.DP03vw0i.js} +1 -1
  146. package/dist/{layers.Bs3nM_3m.js → layers.DP62iSBu.js} +1 -1
  147. package/dist/{layers.Be-cU_ws.js → layers.DQtWLaX5.js} +1 -1
  148. package/dist/{layers.D4T2Soqk.js → layers.DRx6fpU-.js} +1 -1
  149. package/dist/{layers.K2uXkFD_.js → layers.DVASDwnU.js} +1 -1
  150. package/dist/{layers.F84K5xXI.js → layers.DW88x7MD.js} +1 -1
  151. package/dist/{layers.Bx1ePve8.js → layers.DY33k0DK.js} +1 -1
  152. package/dist/{layers.BSij2zBh.js → layers.DYEd0u9z.js} +31 -32
  153. package/dist/{layers.aZknhRkQ.js → layers.DZ3T1MOr.js} +1 -1
  154. package/dist/{layers.CeEElame.js → layers.D_ERA5Eg.js} +1 -1
  155. package/dist/{layers.B4pYlpG5.js → layers.DazxntKQ.js} +6 -7
  156. package/dist/layers.DcLjb1VI.js +6 -0
  157. package/dist/{layers.C1mH2Dk9.js → layers.DdZQdfst.js} +1 -1
  158. package/dist/{layers.D0snKWX1.js → layers.Df9wCGO4.js} +1 -1
  159. package/dist/{layers.kb3mM5t_.js → layers.DgHnZEoL.js} +1 -1
  160. package/dist/layers.Dl7BTVgv.js +1 -0
  161. package/dist/{layers.DQDnK58Z.js → layers.DpVMkxT_.js} +1 -1
  162. package/dist/{layers.BIj1UrA0.js → layers.DqJ4YLRH.js} +1 -1
  163. package/dist/layers.DrdNodqe.js +282 -0
  164. package/dist/{layers.CzAXXTsc.js → layers.DunslCYq.js} +1 -1
  165. package/dist/{layers.Brjl1KT8.js → layers.DuqCxozN.js} +1 -1
  166. package/dist/{layers.By1Q71yL.js → layers.DvFoHZK-.js} +1 -1
  167. package/dist/{layers.BL-Apcgs.js → layers.Dvrki03a.js} +37 -38
  168. package/dist/{layers.BxzIRQ9I.js → layers.DwGsA97C.js} +1 -1
  169. package/dist/{layers.BfBuL2KB.js → layers.Dz9flu9L.js} +1 -1
  170. package/dist/{layers.5VVP7KN3.js → layers.EEZOfKqy.js} +11 -12
  171. package/dist/{layers.CsJaFpQS.js → layers.F7xHDD6v.js} +1 -1
  172. package/dist/{layers.C7hSyuhy.js → layers.IF5vNpDk.js} +1 -1
  173. package/dist/{layers.DzrKg1RQ.js → layers.KlMi93Ei.js} +1 -1
  174. package/dist/layers.Km1Ud22C.js +257 -0
  175. package/dist/{layers.DWkisZo-.js → layers.MTRKGDa2.js} +1 -1
  176. package/dist/{layers.tAblKoS0.js → layers.MV17d6Mx.js} +1 -1
  177. package/dist/{layers.Cct8dVnE.js → layers.MoTyg_20.js} +16 -16
  178. package/dist/{layers.CLf-0Sch.js → layers.Otjc68EQ.js} +1 -1
  179. package/dist/layers.P3AQhXRL.js +8 -0
  180. package/dist/{layers.DqNkUvmt.js → layers.PGw1DVB5.js} +1 -1
  181. package/dist/{layers.46Oaqi6S.js → layers.TnYc2d7k.js} +1 -1
  182. package/dist/{layers.Bh65sv3c.js → layers.UAUOxFCw.js} +1 -1
  183. package/dist/{layers.BH4W4xK9.js → layers.UFaXcVX-.js} +1 -1
  184. package/dist/{layers.D-Q4XxS7.js → layers.UFuuJbTe.js} +2520 -2502
  185. package/dist/{layers.dk1FdSQs.js → layers.VYHrW5HF.js} +1 -1
  186. package/dist/layers.XuOcZ2YD.js +1 -0
  187. package/dist/{layers.MOxoSbw2.js → layers.XzjaNKF4.js} +1 -1
  188. package/dist/{layers.DDZEzjTB.js → layers.YIcMqcyp.js} +1 -1
  189. package/dist/layers._Qb0PjpM.js +1 -0
  190. package/dist/layers._d3cgXev.js +1 -0
  191. package/dist/{layers.n7qcjq92.js → layers._rLtEprV.js} +1 -1
  192. package/dist/layers.b-LTJte2.js +59 -0
  193. package/dist/layers.binJQZ6L.js +122 -0
  194. package/dist/{layers.BUQI8TYR.js → layers.gEwF8vUu.js} +20 -23
  195. package/dist/{layers.DONU4DiH.js → layers.iCxIdCf4.js} +13 -14
  196. package/dist/{layers.CI3uwpYk.js → layers.j2m1V3h_.js} +1 -1
  197. package/dist/{layers.4wMwkbzz.js → layers.o15MC5m1.js} +5 -5
  198. package/dist/layers.oPCvx-2P.js +1 -0
  199. package/dist/{layers.B6FBBhIq.js → layers.pWLA6ZDi.js} +20 -21
  200. package/dist/{layers.DPj1fZP9.js → layers.sd-cXx8M.js} +18 -19
  201. package/dist/{layers.iuKQqbaH.js → layers.w-DSpxnL.js} +7 -8
  202. package/dist/{layers.BZyLsPlK.js → layers.wMGES0RI.js} +7 -8
  203. package/dist/{layers.DAwYVZQ2.js → layers.wfJtLKCx.js} +1 -1
  204. package/dist/{layers.5Tm9dPWa.js → layers.xVBO5Ikf.js} +1 -1
  205. package/dist/{layers.lmIdYb5_.js → layers.z4rFqQ1E.js} +1 -1
  206. package/dist/{layers.DJw4J3iL.js → layers.zR0cTXnd.js} +1 -1
  207. package/package.json +1 -1
  208. package/dist/layers.B2tTj5km.js +0 -8
  209. package/dist/layers.B9ZnHHGd.js +0 -244
  210. package/dist/layers.BDUl16pn.js +0 -1
  211. package/dist/layers.BKytuiiB.js +0 -65
  212. package/dist/layers.BZsELoBg.js +0 -2
  213. package/dist/layers.BehKr7r4.js +0 -1
  214. package/dist/layers.BubVFU4w.js +0 -1
  215. package/dist/layers.C6an3iNY.js +0 -8
  216. package/dist/layers.CXeLnAYi.js +0 -1
  217. package/dist/layers.DPJY4HYM.js +0 -1
  218. package/dist/layers.DWJeFUzg.js +0 -4
  219. package/dist/layers.DjOFnT8v.js +0 -1
  220. package/dist/layers.DzVuFvx3.js +0 -2
  221. package/dist/layers.LQullGbk.js +0 -1
  222. package/dist/layers.O0NSmzEc.js +0 -73
  223. package/dist/layers.YXQx_NJy.js +0 -122
  224. package/dist/layers.Z4o2OOf5.js +0 -10
  225. package/dist/layers.mwHjQPRu.js +0 -257
  226. package/dist/layers.s7jiwsxb.js +0 -96
  227. package/dist/layers.xKmy9hl8.js +0 -6
  228. package/dist/layers.xSKkAVrl.js +0 -1
@@ -1,28 +1,28 @@
1
- import { l as g, r as lt, g as b, t as H, d as E, u as j, i as Q, v as V } from "./layers.D-Q4XxS7.js";
2
- import { c as st } from "./layers.C1VtSMXU.js";
3
- import { l as ct } from "./layers.D6a0mAc6.js";
4
- const ht = (a, t, e, i) => {
1
+ import { l as g, t as lt, g as b, v as H, d as E, u as j, i as q, x as Q } from "./layers.UFuuJbTe.js";
2
+ import { c as st } from "./layers.CAqeoIhq.js";
3
+ import { l as ct } from "./layers.CaTJnQ9u.js";
4
+ const ht = (e, t, a, i) => {
5
5
  t.forEach((l) => {
6
- wt[l](a, e, i);
6
+ wt[l](e, a, i);
7
7
  });
8
- }, ot = (a, t, e) => {
9
- g.trace("Making markers for ", e), a.append("defs").append("marker").attr("id", e + "_" + t + "-extensionStart").attr("class", "marker extension " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), a.append("defs").append("marker").attr("id", e + "_" + t + "-extensionEnd").attr("class", "marker extension " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
10
- }, yt = (a, t, e) => {
11
- a.append("defs").append("marker").attr("id", e + "_" + t + "-compositionStart").attr("class", "marker composition " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), a.append("defs").append("marker").attr("id", e + "_" + t + "-compositionEnd").attr("class", "marker composition " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
12
- }, pt = (a, t, e) => {
13
- a.append("defs").append("marker").attr("id", e + "_" + t + "-aggregationStart").attr("class", "marker aggregation " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), a.append("defs").append("marker").attr("id", e + "_" + t + "-aggregationEnd").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
14
- }, ft = (a, t, e) => {
15
- a.append("defs").append("marker").attr("id", e + "_" + t + "-dependencyStart").attr("class", "marker dependency " + t).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), a.append("defs").append("marker").attr("id", e + "_" + t + "-dependencyEnd").attr("class", "marker dependency " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
16
- }, xt = (a, t, e) => {
17
- a.append("defs").append("marker").attr("id", e + "_" + t + "-lollipopStart").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), a.append("defs").append("marker").attr("id", e + "_" + t + "-lollipopEnd").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
18
- }, dt = (a, t, e) => {
19
- a.append("marker").attr("id", e + "_" + t + "-pointEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 6).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), a.append("marker").attr("id", e + "_" + t + "-pointStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
20
- }, gt = (a, t, e) => {
21
- a.append("marker").attr("id", e + "_" + t + "-circleEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), a.append("marker").attr("id", e + "_" + t + "-circleStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
22
- }, ut = (a, t, e) => {
23
- a.append("marker").attr("id", e + "_" + t + "-crossEnd").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), a.append("marker").attr("id", e + "_" + t + "-crossStart").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
24
- }, bt = (a, t, e) => {
25
- a.append("defs").append("marker").attr("id", e + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
8
+ }, ot = (e, t, a) => {
9
+ g.trace("Making markers for ", a), e.append("defs").append("marker").attr("id", a + "_" + t + "-extensionStart").attr("class", "marker extension " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.append("defs").append("marker").attr("id", a + "_" + t + "-extensionEnd").attr("class", "marker extension " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
10
+ }, yt = (e, t, a) => {
11
+ e.append("defs").append("marker").attr("id", a + "_" + t + "-compositionStart").attr("class", "marker composition " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", a + "_" + t + "-compositionEnd").attr("class", "marker composition " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
12
+ }, pt = (e, t, a) => {
13
+ e.append("defs").append("marker").attr("id", a + "_" + t + "-aggregationStart").attr("class", "marker aggregation " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", a + "_" + t + "-aggregationEnd").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
14
+ }, ft = (e, t, a) => {
15
+ e.append("defs").append("marker").attr("id", a + "_" + t + "-dependencyStart").attr("class", "marker dependency " + t).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", a + "_" + t + "-dependencyEnd").attr("class", "marker dependency " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
16
+ }, xt = (e, t, a) => {
17
+ e.append("defs").append("marker").attr("id", a + "_" + t + "-lollipopStart").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", a + "_" + t + "-lollipopEnd").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
18
+ }, dt = (e, t, a) => {
19
+ e.append("marker").attr("id", a + "_" + t + "-pointEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 6).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", a + "_" + t + "-pointStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
20
+ }, gt = (e, t, a) => {
21
+ e.append("marker").attr("id", a + "_" + t + "-circleEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", a + "_" + t + "-circleStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
22
+ }, ut = (e, t, a) => {
23
+ e.append("marker").attr("id", a + "_" + t + "-crossEnd").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", a + "_" + t + "-crossStart").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
24
+ }, bt = (e, t, a) => {
25
+ e.append("defs").append("marker").attr("id", a + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
26
26
  }, wt = {
27
27
  extension: ot,
28
28
  composition: yt,
@@ -34,61 +34,56 @@ const ht = (a, t, e, i) => {
34
34
  cross: ut,
35
35
  barb: bt
36
36
  }, hr = ht;
37
- function mt(a, t) {
38
- t && a.attr("style", t);
37
+ function mt(e, t) {
38
+ t && e.attr("style", t);
39
39
  }
40
- function kt(a, t) {
41
- const e = E(document.createElementNS("http://www.w3.org/2000/svg", "foreignObject")), i = e.append("xhtml:div"), l = a.label, r = a.isNode ? "nodeLabel" : "edgeLabel";
42
- return i.html(
43
- Q(
44
- '<span class="' + r + '" ' + (a.labelStyle ? 'style="' + a.labelStyle + '"' : "") + ">" + l + "</span>",
45
- t
46
- )
47
- ), mt(i, a.labelStyle), i.style("display", "inline-block"), i.style("white-space", "nowrap"), i.attr("xmlns", "http://www.w3.org/1999/xhtml"), e.node();
40
+ function kt(e) {
41
+ const t = E(document.createElementNS("http://www.w3.org/2000/svg", "foreignObject")), a = t.append("xhtml:div"), i = e.label, l = e.isNode ? "nodeLabel" : "edgeLabel";
42
+ return a.html(
43
+ '<span class="' + l + '" ' + (e.labelStyle ? 'style="' + e.labelStyle + '"' : "") + ">" + i + "</span>"
44
+ ), mt(a, e.labelStyle), a.style("display", "inline-block"), a.style("white-space", "nowrap"), a.attr("xmlns", "http://www.w3.org/1999/xhtml"), t.node();
48
45
  }
49
- const vt = (a, t, e, i) => {
50
- let l = a || "";
51
- typeof l == "object" && (l = l[0]);
52
- const r = b();
53
- if (H(r.flowchart.htmlLabels)) {
46
+ const vt = (e, t, a, i) => {
47
+ let l = e || "";
48
+ if (typeof l == "object" && (l = l[0]), H(b().flowchart.htmlLabels)) {
54
49
  l = l.replace(/\\n|\n/g, "<br />"), g.debug("vertexText" + l);
55
- const s = {
50
+ const r = {
56
51
  isNode: i,
57
- label: V(l).replace(
52
+ label: Q(l).replace(
58
53
  /fa[blrs]?:fa-[\w-]+/g,
59
54
  // cspell: disable-line
60
- (c) => `<i class='${c.replace(":", " ")}'></i>`
55
+ (n) => `<i class='${n.replace(":", " ")}'></i>`
61
56
  ),
62
57
  labelStyle: t.replace("fill:", "color:")
63
58
  };
64
- return kt(s, r);
59
+ return kt(r);
65
60
  } else {
66
- const s = document.createElementNS("http://www.w3.org/2000/svg", "text");
67
- s.setAttribute("style", t.replace("color:", "fill:"));
68
- let n = [];
69
- typeof l == "string" ? n = l.split(/\\n|\n|<br\s*\/?>/gi) : Array.isArray(l) ? n = l : n = [];
70
- for (const c of n) {
71
- const o = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
72
- o.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), o.setAttribute("dy", "1em"), o.setAttribute("x", "0"), e ? o.setAttribute("class", "title-row") : o.setAttribute("class", "row"), o.textContent = c.trim(), s.appendChild(o);
61
+ const r = document.createElementNS("http://www.w3.org/2000/svg", "text");
62
+ r.setAttribute("style", t.replace("color:", "fill:"));
63
+ let s = [];
64
+ typeof l == "string" ? s = l.split(/\\n|\n|<br\s*\/?>/gi) : Array.isArray(l) ? s = l : s = [];
65
+ for (const n of s) {
66
+ const c = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
67
+ c.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), c.setAttribute("dy", "1em"), c.setAttribute("x", "0"), a ? c.setAttribute("class", "title-row") : c.setAttribute("class", "row"), c.textContent = n.trim(), r.appendChild(c);
73
68
  }
74
- return s;
69
+ return r;
75
70
  }
76
- }, R = vt, M = async (a, t, e, i) => {
71
+ }, R = vt, M = async (e, t, a, i) => {
77
72
  let l;
78
73
  const r = t.useHtmlLabels || H(b().flowchart.htmlLabels);
79
- e ? l = e : l = "node default";
80
- const s = a.insert("g").attr("class", l).attr("id", t.domId || t.id), n = s.insert("g").attr("class", "label").attr("style", t.labelStyle);
74
+ a ? l = a : l = "node default";
75
+ const s = e.insert("g").attr("class", l).attr("id", t.domId || t.id), n = s.insert("g").attr("class", "label").attr("style", t.labelStyle);
81
76
  let c;
82
77
  t.labelText === void 0 ? c = "" : c = typeof t.labelText == "string" ? t.labelText : t.labelText[0];
83
78
  const o = n.node();
84
79
  let h;
85
- t.labelType === "markdown" ? h = st(n, Q(V(c), b()), {
80
+ t.labelType === "markdown" ? h = st(n, q(Q(c), b()), {
86
81
  useHtmlLabels: r,
87
82
  width: t.width || b().flowchart.wrappingWidth,
88
83
  classes: "markdown-node-label"
89
84
  }) : h = o.appendChild(
90
85
  R(
91
- Q(V(c), b()),
86
+ q(Q(c), b()),
92
87
  t.labelStyle,
93
88
  !1,
94
89
  i
@@ -121,70 +116,70 @@ const vt = (a, t, e, i) => {
121
116
  y = p.getBoundingClientRect(), d.attr("width", y.width), d.attr("height", y.height);
122
117
  }
123
118
  return r ? n.attr("transform", "translate(" + -y.width / 2 + ", " + -y.height / 2 + ")") : n.attr("transform", "translate(0, " + -y.height / 2 + ")"), t.centerLabel && n.attr("transform", "translate(" + -y.width / 2 + ", " + -y.height / 2 + ")"), n.insert("rect", ":first-child"), { shapeSvg: s, bbox: y, halfPadding: f, label: n };
124
- }, m = (a, t) => {
125
- const e = t.node().getBBox();
126
- a.width = e.width, a.height = e.height;
119
+ }, m = (e, t) => {
120
+ const a = t.node().getBBox();
121
+ e.width = a.width, e.height = a.height;
127
122
  };
128
- function I(a, t, e, i) {
129
- return a.insert("polygon", ":first-child").attr(
123
+ function I(e, t, a, i) {
124
+ return e.insert("polygon", ":first-child").attr(
130
125
  "points",
131
126
  i.map(function(l) {
132
127
  return l.x + "," + l.y;
133
128
  }).join(" ")
134
- ).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," + e / 2 + ")");
129
+ ).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," + a / 2 + ")");
135
130
  }
136
- function Lt(a, t) {
137
- return a.intersect(t);
131
+ function Lt(e, t) {
132
+ return e.intersect(t);
138
133
  }
139
- function it(a, t, e, i) {
140
- var l = a.x, r = a.y, s = l - i.x, n = r - i.y, c = Math.sqrt(t * t * n * n + e * e * s * s), o = Math.abs(t * e * s / c);
134
+ function it(e, t, a, i) {
135
+ var l = e.x, r = e.y, s = l - i.x, n = r - i.y, c = Math.sqrt(t * t * n * n + a * a * s * s), o = Math.abs(t * a * s / c);
141
136
  i.x < l && (o = -o);
142
- var h = Math.abs(t * e * n / c);
137
+ var h = Math.abs(t * a * n / c);
143
138
  return i.y < r && (h = -h), { x: l + o, y: r + h };
144
139
  }
145
- function St(a, t, e) {
146
- return it(a, t, t, e);
140
+ function St(e, t, a) {
141
+ return it(e, t, t, a);
147
142
  }
148
- function Mt(a, t, e, i) {
143
+ function Mt(e, t, a, i) {
149
144
  var l, r, s, n, c, o, h, y, f, p, d, k, x, u, S;
150
- if (l = t.y - a.y, s = a.x - t.x, c = t.x * a.y - a.x * t.y, f = l * e.x + s * e.y + c, p = l * i.x + s * i.y + c, !(f !== 0 && p !== 0 && J(f, p)) && (r = i.y - e.y, n = e.x - i.x, o = i.x * e.y - e.x * i.y, h = r * a.x + n * a.y + o, y = r * t.x + n * t.y + o, !(h !== 0 && y !== 0 && J(h, y)) && (d = l * n - r * s, d !== 0)))
145
+ if (l = t.y - e.y, s = e.x - t.x, c = t.x * e.y - e.x * t.y, f = l * a.x + s * a.y + c, p = l * i.x + s * i.y + c, !(f !== 0 && p !== 0 && J(f, p)) && (r = i.y - a.y, n = a.x - i.x, o = i.x * a.y - a.x * i.y, h = r * e.x + n * e.y + o, y = r * t.x + n * t.y + o, !(h !== 0 && y !== 0 && J(h, y)) && (d = l * n - r * s, d !== 0)))
151
146
  return k = Math.abs(d / 2), x = s * o - n * c, u = x < 0 ? (x - k) / d : (x + k) / d, x = r * c - l * o, S = x < 0 ? (x - k) / d : (x + k) / d, { x: u, y: S };
152
147
  }
153
- function J(a, t) {
154
- return a * t > 0;
148
+ function J(e, t) {
149
+ return e * t > 0;
155
150
  }
156
- function Tt(a, t, e) {
157
- var i = a.x, l = a.y, r = [], s = Number.POSITIVE_INFINITY, n = Number.POSITIVE_INFINITY;
151
+ function Tt(e, t, a) {
152
+ var i = e.x, l = e.y, r = [], s = Number.POSITIVE_INFINITY, n = Number.POSITIVE_INFINITY;
158
153
  typeof t.forEach == "function" ? t.forEach(function(d) {
159
154
  s = Math.min(s, d.x), n = Math.min(n, d.y);
160
155
  }) : (s = Math.min(s, t.x), n = Math.min(n, t.y));
161
- for (var c = i - a.width / 2 - s, o = l - a.height / 2 - n, h = 0; h < t.length; h++) {
156
+ for (var c = i - e.width / 2 - s, o = l - e.height / 2 - n, h = 0; h < t.length; h++) {
162
157
  var y = t[h], f = t[h < t.length - 1 ? h + 1 : 0], p = Mt(
163
- a,
164
158
  e,
159
+ a,
165
160
  { x: c + y.x, y: o + y.y },
166
161
  { x: c + f.x, y: o + f.y }
167
162
  );
168
163
  p && r.push(p);
169
164
  }
170
165
  return r.length ? (r.length > 1 && r.sort(function(d, k) {
171
- var x = d.x - e.x, u = d.y - e.y, S = Math.sqrt(x * x + u * u), B = k.x - e.x, C = k.y - e.y, X = Math.sqrt(B * B + C * C);
166
+ var x = d.x - a.x, u = d.y - a.y, S = Math.sqrt(x * x + u * u), B = k.x - a.x, C = k.y - a.y, X = Math.sqrt(B * B + C * C);
172
167
  return S < X ? -1 : S === X ? 0 : 1;
173
- }), r[0]) : a;
168
+ }), r[0]) : e;
174
169
  }
175
- const Bt = (a, t) => {
176
- var e = a.x, i = a.y, l = t.x - e, r = t.y - i, s = a.width / 2, n = a.height / 2, c, o;
177
- return Math.abs(r) * s > Math.abs(l) * n ? (r < 0 && (n = -n), c = r === 0 ? 0 : n * l / r, o = n) : (l < 0 && (s = -s), c = s, o = l === 0 ? 0 : s * r / l), { x: e + c, y: i + o };
170
+ const Bt = (e, t) => {
171
+ var a = e.x, i = e.y, l = t.x - a, r = t.y - i, s = e.width / 2, n = e.height / 2, c, o;
172
+ return Math.abs(r) * s > Math.abs(l) * n ? (r < 0 && (n = -n), c = r === 0 ? 0 : n * l / r, o = n) : (l < 0 && (s = -s), c = s, o = l === 0 ? 0 : s * r / l), { x: a + c, y: i + o };
178
173
  }, Et = Bt, w = {
179
174
  node: Lt,
180
175
  circle: St,
181
176
  ellipse: it,
182
177
  polygon: Tt,
183
178
  rect: Et
184
- }, Ct = async (a, t) => {
179
+ }, Ct = async (e, t) => {
185
180
  t.useHtmlLabels || b().flowchart.htmlLabels || (t.centerLabel = !0);
186
181
  const { shapeSvg: i, bbox: l, halfPadding: r } = await M(
187
- a,
182
+ e,
188
183
  t,
189
184
  "node " + t.classes,
190
185
  !0
@@ -194,10 +189,10 @@ const Bt = (a, t) => {
194
189
  return s.attr("rx", t.rx).attr("ry", t.ry).attr("x", -l.width / 2 - r).attr("y", -l.height / 2 - r).attr("width", l.width + t.padding).attr("height", l.height + t.padding), m(t, s), t.intersect = function(n) {
195
190
  return w.rect(t, n);
196
191
  }, i;
197
- }, $t = Ct, _t = (a) => {
192
+ }, $t = Ct, _t = (e) => {
198
193
  const t = /* @__PURE__ */ new Set();
199
- for (const e of a)
200
- switch (e) {
194
+ for (const a of e)
195
+ switch (a) {
201
196
  case "x":
202
197
  t.add("right"), t.add("left");
203
198
  break;
@@ -205,12 +200,12 @@ const Bt = (a, t) => {
205
200
  t.add("up"), t.add("down");
206
201
  break;
207
202
  default:
208
- t.add(e);
203
+ t.add(a);
209
204
  break;
210
205
  }
211
206
  return t;
212
- }, Rt = (a, t, e) => {
213
- const i = _t(a), l = 2, r = t.height + 2 * e.padding, s = r / l, n = t.width + 2 * s + e.padding, c = e.padding / 2;
207
+ }, Rt = (e, t, a) => {
208
+ const i = _t(e), l = 2, r = t.height + 2 * a.padding, s = r / l, n = t.width + 2 * s + a.padding, c = a.padding / 2;
214
209
  return i.has("right") && i.has("left") && i.has("up") && i.has("down") ? [
215
210
  // Bottom
216
211
  { x: 0, y: 0 },
@@ -341,11 +336,11 @@ const Bt = (a, t) => {
341
336
  { x: n - s, y: -c },
342
337
  { x: n, y: -c }
343
338
  ] : [{ x: 0, y: 0 }];
344
- }, K = (a) => a ? " " + a : "", _ = (a, t) => `node default${K(a.classes)} ${K(
345
- a.class
346
- )}`, P = async (a, t) => {
347
- const { shapeSvg: e, bbox: i } = await M(
348
- a,
339
+ }, K = (e) => e ? " " + e : "", _ = (e, t) => `node default${K(e.classes)} ${K(
340
+ e.class
341
+ )}`, P = async (e, t) => {
342
+ const { shapeSvg: a, bbox: i } = await M(
343
+ e,
349
344
  t,
350
345
  _(t),
351
346
  !0
@@ -356,28 +351,28 @@ const Bt = (a, t) => {
356
351
  { x: 0, y: -s / 2 }
357
352
  ];
358
353
  g.info("Question main (Circle)");
359
- const c = I(e, s, s, n);
354
+ const c = I(a, s, s, n);
360
355
  return c.attr("style", t.style), m(t, c), t.intersect = function(o) {
361
356
  return g.warn("Intersect called"), w.polygon(t, n, o);
362
- }, e;
363
- }, Ht = (a, t) => {
364
- const e = a.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = 28, l = [
357
+ }, a;
358
+ }, Ht = (e, t) => {
359
+ const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = 28, l = [
365
360
  { x: 0, y: i / 2 },
366
361
  { x: i / 2, y: 0 },
367
362
  { x: 0, y: -i / 2 },
368
363
  { x: -i / 2, y: 0 }
369
364
  ];
370
- return e.insert("polygon", ":first-child").attr(
365
+ return a.insert("polygon", ":first-child").attr(
371
366
  "points",
372
367
  l.map(function(s) {
373
368
  return s.x + "," + s.y;
374
369
  }).join(" ")
375
370
  ).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28), t.width = 28, t.height = 28, t.intersect = function(s) {
376
371
  return w.circle(t, 14, s);
377
- }, e;
378
- }, It = async (a, t) => {
379
- const { shapeSvg: e, bbox: i } = await M(
380
- a,
372
+ }, a;
373
+ }, It = async (e, t) => {
374
+ const { shapeSvg: a, bbox: i } = await M(
375
+ e,
381
376
  t,
382
377
  _(t),
383
378
  !0
@@ -388,18 +383,18 @@ const Bt = (a, t) => {
388
383
  { x: n - s, y: -r },
389
384
  { x: s, y: -r },
390
385
  { x: 0, y: -r / 2 }
391
- ], o = I(e, n, r, c);
386
+ ], o = I(a, n, r, c);
392
387
  return o.attr("style", t.style), m(t, o), t.intersect = function(h) {
393
388
  return w.polygon(t, c, h);
394
- }, e;
395
- }, Nt = async (a, t) => {
396
- const { shapeSvg: e, bbox: i } = await M(a, t, void 0, !0), l = 2, r = i.height + 2 * t.padding, s = r / l, n = i.width + 2 * s + t.padding, c = Rt(t.directions, i, t), o = I(e, n, r, c);
389
+ }, a;
390
+ }, Nt = async (e, t) => {
391
+ const { shapeSvg: a, bbox: i } = await M(e, t, void 0, !0), l = 2, r = i.height + 2 * t.padding, s = r / l, n = i.width + 2 * s + t.padding, c = Rt(t.directions, i, t), o = I(a, n, r, c);
397
392
  return o.attr("style", t.style), m(t, o), t.intersect = function(h) {
398
393
  return w.polygon(t, c, h);
399
- }, e;
400
- }, Ot = async (a, t) => {
401
- const { shapeSvg: e, bbox: i } = await M(
402
- a,
394
+ }, a;
395
+ }, Ot = async (e, t) => {
396
+ const { shapeSvg: a, bbox: i } = await M(
397
+ e,
403
398
  t,
404
399
  _(t),
405
400
  !0
@@ -410,22 +405,22 @@ const Bt = (a, t) => {
410
405
  { x: -r / 2, y: -r },
411
406
  { x: 0, y: -r / 2 }
412
407
  ];
413
- return I(e, l, r, s).attr("style", t.style), t.width = l + r, t.height = r, t.intersect = function(c) {
408
+ return I(a, l, r, s).attr("style", t.style), t.width = l + r, t.height = r, t.intersect = function(c) {
414
409
  return w.polygon(t, s, c);
415
- }, e;
416
- }, Wt = async (a, t) => {
417
- const { shapeSvg: e, bbox: i } = await M(a, t, _(t), !0), l = i.width + t.padding, r = i.height + t.padding, s = [
410
+ }, a;
411
+ }, Wt = async (e, t) => {
412
+ const { shapeSvg: a, bbox: i } = await M(e, t, _(t), !0), l = i.width + t.padding, r = i.height + t.padding, s = [
418
413
  { x: -2 * r / 6, y: 0 },
419
414
  { x: l - r / 6, y: 0 },
420
415
  { x: l + 2 * r / 6, y: -r },
421
416
  { x: r / 6, y: -r }
422
- ], n = I(e, l, r, s);
417
+ ], n = I(a, l, r, s);
423
418
  return n.attr("style", t.style), m(t, n), t.intersect = function(c) {
424
419
  return w.polygon(t, s, c);
425
- }, e;
426
- }, Xt = async (a, t) => {
427
- const { shapeSvg: e, bbox: i } = await M(
428
- a,
420
+ }, a;
421
+ }, Xt = async (e, t) => {
422
+ const { shapeSvg: a, bbox: i } = await M(
423
+ e,
429
424
  t,
430
425
  _(t),
431
426
  !0
@@ -434,13 +429,13 @@ const Bt = (a, t) => {
434
429
  { x: l + r / 6, y: 0 },
435
430
  { x: l - 2 * r / 6, y: -r },
436
431
  { x: -r / 6, y: -r }
437
- ], n = I(e, l, r, s);
432
+ ], n = I(a, l, r, s);
438
433
  return n.attr("style", t.style), m(t, n), t.intersect = function(c) {
439
434
  return w.polygon(t, s, c);
440
- }, e;
441
- }, Yt = async (a, t) => {
442
- const { shapeSvg: e, bbox: i } = await M(
443
- a,
435
+ }, a;
436
+ }, Yt = async (e, t) => {
437
+ const { shapeSvg: a, bbox: i } = await M(
438
+ e,
444
439
  t,
445
440
  _(t),
446
441
  !0
@@ -449,13 +444,13 @@ const Bt = (a, t) => {
449
444
  { x: l + 2 * r / 6, y: 0 },
450
445
  { x: l - r / 6, y: -r },
451
446
  { x: r / 6, y: -r }
452
- ], n = I(e, l, r, s);
447
+ ], n = I(a, l, r, s);
453
448
  return n.attr("style", t.style), m(t, n), t.intersect = function(c) {
454
449
  return w.polygon(t, s, c);
455
- }, e;
456
- }, Dt = async (a, t) => {
457
- const { shapeSvg: e, bbox: i } = await M(
458
- a,
450
+ }, a;
451
+ }, Dt = async (e, t) => {
452
+ const { shapeSvg: a, bbox: i } = await M(
453
+ e,
459
454
  t,
460
455
  _(t),
461
456
  !0
@@ -464,13 +459,13 @@ const Bt = (a, t) => {
464
459
  { x: l - r / 6, y: 0 },
465
460
  { x: l + 2 * r / 6, y: -r },
466
461
  { x: -2 * r / 6, y: -r }
467
- ], n = I(e, l, r, s);
462
+ ], n = I(a, l, r, s);
468
463
  return n.attr("style", t.style), m(t, n), t.intersect = function(c) {
469
464
  return w.polygon(t, s, c);
470
- }, e;
471
- }, At = async (a, t) => {
472
- const { shapeSvg: e, bbox: i } = await M(
473
- a,
465
+ }, a;
466
+ }, At = async (e, t) => {
467
+ const { shapeSvg: a, bbox: i } = await M(
468
+ e,
474
469
  t,
475
470
  _(t),
476
471
  !0
@@ -480,17 +475,17 @@ const Bt = (a, t) => {
480
475
  { x: l, y: -r / 2 },
481
476
  { x: l + r / 2, y: -r },
482
477
  { x: 0, y: -r }
483
- ], n = I(e, l, r, s);
478
+ ], n = I(a, l, r, s);
484
479
  return n.attr("style", t.style), m(t, n), t.intersect = function(c) {
485
480
  return w.polygon(t, s, c);
486
- }, e;
487
- }, jt = async (a, t) => {
488
- const { shapeSvg: e, bbox: i } = await M(
489
- a,
481
+ }, a;
482
+ }, jt = async (e, t) => {
483
+ const { shapeSvg: a, bbox: i } = await M(
484
+ e,
490
485
  t,
491
486
  _(t),
492
487
  !0
493
- ), l = i.width + t.padding, r = l / 2, s = r / (2.5 + l / 50), n = i.height + s + t.padding, c = "M 0," + s + " a " + r + "," + s + " 0,0,0 " + l + " 0 a " + r + "," + s + " 0,0,0 " + -l + " 0 l 0," + n + " a " + r + "," + s + " 0,0,0 " + l + " 0 l 0," + -n, o = e.attr("label-offset-y", s).insert("path", ":first-child").attr("style", t.style).attr("d", c).attr("transform", "translate(" + -l / 2 + "," + -(n / 2 + s) + ")");
488
+ ), l = i.width + t.padding, r = l / 2, s = r / (2.5 + l / 50), n = i.height + s + t.padding, c = "M 0," + s + " a " + r + "," + s + " 0,0,0 " + l + " 0 a " + r + "," + s + " 0,0,0 " + -l + " 0 l 0," + n + " a " + r + "," + s + " 0,0,0 " + l + " 0 l 0," + -n, o = a.attr("label-offset-y", s).insert("path", ":first-child").attr("style", t.style).attr("d", c).attr("transform", "translate(" + -l / 2 + "," + -(n / 2 + s) + ")");
494
489
  return m(t, o), t.intersect = function(h) {
495
490
  const y = w.rect(t, h), f = y.x - t.x;
496
491
  if (r != 0 && (Math.abs(f) < t.width / 2 || Math.abs(f) == t.width / 2 && Math.abs(y.y - t.y) > t.height / 2 - s)) {
@@ -498,65 +493,65 @@ const Bt = (a, t) => {
498
493
  p != 0 && (p = Math.sqrt(p)), p = s - p, h.y - t.y > 0 && (p = -p), y.y += p;
499
494
  }
500
495
  return y;
501
- }, e;
502
- }, Ut = async (a, t) => {
503
- const { shapeSvg: e, bbox: i, halfPadding: l } = await M(
504
- a,
496
+ }, a;
497
+ }, Ut = async (e, t) => {
498
+ const { shapeSvg: a, bbox: i, halfPadding: l } = await M(
499
+ e,
505
500
  t,
506
501
  "node " + t.classes + " " + t.class,
507
502
  !0
508
- ), r = e.insert("rect", ":first-child"), s = t.positioned ? t.width : i.width + t.padding, n = t.positioned ? t.height : i.height + t.padding, c = t.positioned ? -s / 2 : -i.width / 2 - l, o = t.positioned ? -n / 2 : -i.height / 2 - l;
503
+ ), r = a.insert("rect", ":first-child"), s = t.positioned ? t.width : i.width + t.padding, n = t.positioned ? t.height : i.height + t.padding, c = t.positioned ? -s / 2 : -i.width / 2 - l, o = t.positioned ? -n / 2 : -i.height / 2 - l;
509
504
  if (r.attr("class", "basic label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", c).attr("y", o).attr("width", s).attr("height", n), t.props) {
510
505
  const h = new Set(Object.keys(t.props));
511
- t.props.borders && (q(r, t.props.borders, s, n), h.delete("borders")), h.forEach((y) => {
506
+ t.props.borders && (V(r, t.props.borders, s, n), h.delete("borders")), h.forEach((y) => {
512
507
  g.warn(`Unknown node property ${y}`);
513
508
  });
514
509
  }
515
510
  return m(t, r), t.intersect = function(h) {
516
511
  return w.rect(t, h);
517
- }, e;
518
- }, zt = async (a, t) => {
519
- const { shapeSvg: e, bbox: i, halfPadding: l } = await M(
520
- a,
512
+ }, a;
513
+ }, zt = async (e, t) => {
514
+ const { shapeSvg: a, bbox: i, halfPadding: l } = await M(
515
+ e,
521
516
  t,
522
517
  "node " + t.classes,
523
518
  !0
524
- ), r = e.insert("rect", ":first-child"), s = t.positioned ? t.width : i.width + t.padding, n = t.positioned ? t.height : i.height + t.padding, c = t.positioned ? -s / 2 : -i.width / 2 - l, o = t.positioned ? -n / 2 : -i.height / 2 - l;
519
+ ), r = a.insert("rect", ":first-child"), s = t.positioned ? t.width : i.width + t.padding, n = t.positioned ? t.height : i.height + t.padding, c = t.positioned ? -s / 2 : -i.width / 2 - l, o = t.positioned ? -n / 2 : -i.height / 2 - l;
525
520
  if (r.attr("class", "basic cluster composite label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", c).attr("y", o).attr("width", s).attr("height", n), t.props) {
526
521
  const h = new Set(Object.keys(t.props));
527
- t.props.borders && (q(r, t.props.borders, s, n), h.delete("borders")), h.forEach((y) => {
522
+ t.props.borders && (V(r, t.props.borders, s, n), h.delete("borders")), h.forEach((y) => {
528
523
  g.warn(`Unknown node property ${y}`);
529
524
  });
530
525
  }
531
526
  return m(t, r), t.intersect = function(h) {
532
527
  return w.rect(t, h);
533
- }, e;
534
- }, Zt = async (a, t) => {
535
- const { shapeSvg: e } = await M(a, t, "label", !0);
528
+ }, a;
529
+ }, Zt = async (e, t) => {
530
+ const { shapeSvg: a } = await M(e, t, "label", !0);
536
531
  g.trace("Classes = ", t.class);
537
- const i = e.insert("rect", ":first-child"), l = 0, r = 0;
538
- if (i.attr("width", l).attr("height", r), e.attr("class", "label edgeLabel"), t.props) {
532
+ const i = a.insert("rect", ":first-child"), l = 0, r = 0;
533
+ if (i.attr("width", l).attr("height", r), a.attr("class", "label edgeLabel"), t.props) {
539
534
  const s = new Set(Object.keys(t.props));
540
- t.props.borders && (q(i, t.props.borders, l, r), s.delete("borders")), s.forEach((n) => {
535
+ t.props.borders && (V(i, t.props.borders, l, r), s.delete("borders")), s.forEach((n) => {
541
536
  g.warn(`Unknown node property ${n}`);
542
537
  });
543
538
  }
544
539
  return m(t, i), t.intersect = function(s) {
545
540
  return w.rect(t, s);
546
- }, e;
541
+ }, a;
547
542
  };
548
- function q(a, t, e, i) {
543
+ function V(e, t, a, i) {
549
544
  const l = [], r = (n) => {
550
545
  l.push(n, 0);
551
546
  }, s = (n) => {
552
547
  l.push(0, n);
553
548
  };
554
- t.includes("t") ? (g.debug("add top border"), r(e)) : s(e), t.includes("r") ? (g.debug("add right border"), r(i)) : s(i), t.includes("b") ? (g.debug("add bottom border"), r(e)) : s(e), t.includes("l") ? (g.debug("add left border"), r(i)) : s(i), a.attr("stroke-dasharray", l.join(" "));
549
+ t.includes("t") ? (g.debug("add top border"), r(a)) : s(a), t.includes("r") ? (g.debug("add right border"), r(i)) : s(i), t.includes("b") ? (g.debug("add bottom border"), r(a)) : s(a), t.includes("l") ? (g.debug("add left border"), r(i)) : s(i), e.attr("stroke-dasharray", l.join(" "));
555
550
  }
556
- const Gt = (a, t) => {
557
- let e;
558
- t.classes ? e = "node " + t.classes : e = "node default";
559
- const i = a.insert("g").attr("class", e).attr("id", t.domId || t.id), l = i.insert("rect", ":first-child"), r = i.insert("line"), s = i.insert("g").attr("class", "label"), n = t.labelText.flat ? t.labelText.flat() : t.labelText;
551
+ const Gt = (e, t) => {
552
+ let a;
553
+ t.classes ? a = "node " + t.classes : a = "node default";
554
+ const i = e.insert("g").attr("class", a).attr("id", t.domId || t.id), l = i.insert("rect", ":first-child"), r = i.insert("line"), s = i.insert("g").attr("class", "label"), n = t.labelText.flat ? t.labelText.flat() : t.labelText;
560
555
  let c = "";
561
556
  typeof n == "object" ? c = n[0] : c = n, g.info("Label text abc79", c, n, typeof n == "object");
562
557
  const o = s.node().appendChild(R(c, t.labelStyle, !0, !0));
@@ -590,39 +585,39 @@ const Gt = (a, t) => {
590
585
  ), l.attr("class", "outer title-state").attr("x", -h.width / 2 - d).attr("y", -h.height / 2 - d).attr("width", h.width + t.padding).attr("height", h.height + t.padding), r.attr("class", "divider").attr("x1", -h.width / 2 - d).attr("x2", h.width / 2 + d).attr("y1", -h.height / 2 - d + f.height + d).attr("y2", -h.height / 2 - d + f.height + d), m(t, l), t.intersect = function(k) {
591
586
  return w.rect(t, k);
592
587
  }, i;
593
- }, Ft = async (a, t) => {
594
- const { shapeSvg: e, bbox: i } = await M(
595
- a,
588
+ }, Ft = async (e, t) => {
589
+ const { shapeSvg: a, bbox: i } = await M(
590
+ e,
596
591
  t,
597
592
  _(t),
598
593
  !0
599
- ), l = i.height + t.padding, r = i.width + l / 4 + t.padding, s = e.insert("rect", ":first-child").attr("style", t.style).attr("rx", l / 2).attr("ry", l / 2).attr("x", -r / 2).attr("y", -l / 2).attr("width", r).attr("height", l);
594
+ ), l = i.height + t.padding, r = i.width + l / 4 + t.padding, s = a.insert("rect", ":first-child").attr("style", t.style).attr("rx", l / 2).attr("ry", l / 2).attr("x", -r / 2).attr("y", -l / 2).attr("width", r).attr("height", l);
600
595
  return m(t, s), t.intersect = function(n) {
601
596
  return w.rect(t, n);
602
- }, e;
603
- }, Qt = async (a, t) => {
604
- const { shapeSvg: e, bbox: i, halfPadding: l } = await M(
605
- a,
597
+ }, a;
598
+ }, Qt = async (e, t) => {
599
+ const { shapeSvg: a, bbox: i, halfPadding: l } = await M(
600
+ e,
606
601
  t,
607
602
  _(t),
608
603
  !0
609
- ), r = e.insert("circle", ":first-child");
604
+ ), r = a.insert("circle", ":first-child");
610
605
  return r.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + l).attr("width", i.width + t.padding).attr("height", i.height + t.padding), g.info("Circle main"), m(t, r), t.intersect = function(s) {
611
606
  return g.info("Circle intersect", t, i.width / 2 + l, s), w.circle(t, i.width / 2 + l, s);
612
- }, e;
613
- }, Vt = async (a, t) => {
614
- const { shapeSvg: e, bbox: i, halfPadding: l } = await M(
615
- a,
607
+ }, a;
608
+ }, Vt = async (e, t) => {
609
+ const { shapeSvg: a, bbox: i, halfPadding: l } = await M(
610
+ e,
616
611
  t,
617
612
  _(t),
618
613
  !0
619
- ), r = 5, s = e.insert("g", ":first-child"), n = s.insert("circle"), c = s.insert("circle");
614
+ ), r = 5, s = a.insert("g", ":first-child"), n = s.insert("circle"), c = s.insert("circle");
620
615
  return s.attr("class", t.class), n.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + l + r).attr("width", i.width + t.padding + r * 2).attr("height", i.height + t.padding + r * 2), c.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + l).attr("width", i.width + t.padding).attr("height", i.height + t.padding), g.info("DoubleCircle main"), m(t, n), t.intersect = function(o) {
621
616
  return g.info("DoubleCircle intersect", t, i.width / 2 + l + r, o), w.circle(t, i.width / 2 + l + r, o);
622
- }, e;
623
- }, qt = async (a, t) => {
624
- const { shapeSvg: e, bbox: i } = await M(
625
- a,
617
+ }, a;
618
+ }, qt = async (e, t) => {
619
+ const { shapeSvg: a, bbox: i } = await M(
620
+ e,
626
621
  t,
627
622
  _(t),
628
623
  !0
@@ -637,33 +632,33 @@ const Gt = (a, t) => {
637
632
  { x: l + 8, y: -r },
638
633
  { x: -8, y: -r },
639
634
  { x: -8, y: 0 }
640
- ], n = I(e, l, r, s);
635
+ ], n = I(a, l, r, s);
641
636
  return n.attr("style", t.style), m(t, n), t.intersect = function(c) {
642
637
  return w.polygon(t, s, c);
643
- }, e;
644
- }, Jt = (a, t) => {
645
- const e = a.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = e.insert("circle", ":first-child");
638
+ }, a;
639
+ }, Jt = (e, t) => {
640
+ const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = a.insert("circle", ":first-child");
646
641
  return i.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), m(t, i), t.intersect = function(l) {
647
642
  return w.circle(t, 7, l);
648
- }, e;
649
- }, tt = (a, t, e) => {
650
- const i = a.insert("g").attr("class", "node default").attr("id", t.domId || t.id);
643
+ }, a;
644
+ }, tt = (e, t, a) => {
645
+ const i = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id);
651
646
  let l = 70, r = 10;
652
- e === "LR" && (l = 10, r = 70);
647
+ a === "LR" && (l = 10, r = 70);
653
648
  const s = i.append("rect").attr("x", -1 * l / 2).attr("y", -1 * r / 2).attr("width", l).attr("height", r).attr("class", "fork-join");
654
649
  return m(t, s), t.height = t.height + t.padding / 2, t.width = t.width + t.padding / 2, t.intersect = function(n) {
655
650
  return w.rect(t, n);
656
651
  }, i;
657
- }, Kt = (a, t) => {
658
- const e = a.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = e.insert("circle", ":first-child"), l = e.insert("circle", ":first-child");
652
+ }, Kt = (e, t) => {
653
+ const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = a.insert("circle", ":first-child"), l = a.insert("circle", ":first-child");
659
654
  return l.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), i.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10), m(t, l), t.intersect = function(r) {
660
655
  return w.circle(t, 7, r);
661
- }, e;
662
- }, Pt = (a, t) => {
663
- const e = t.padding / 2, i = 4, l = 8;
656
+ }, a;
657
+ }, Pt = (e, t) => {
658
+ const a = t.padding / 2, i = 4, l = 8;
664
659
  let r;
665
660
  t.classes ? r = "node " + t.classes : r = "node default";
666
- const s = a.insert("g").attr("class", r).attr("id", t.domId || t.id), n = s.insert("rect", ":first-child"), c = s.insert("line"), o = s.insert("line");
661
+ const s = e.insert("g").attr("class", r).attr("id", t.domId || t.id), n = s.insert("rect", ":first-child"), c = s.insert("line"), o = s.insert("line");
667
662
  let h = 0, y = i;
668
663
  const f = s.insert("g").attr("class", "label");
669
664
  let p = 0;
@@ -734,21 +729,21 @@ const Gt = (a, t) => {
734
729
  return E(B).attr(
735
730
  "transform",
736
731
  "translate( " + (-1 * h / 2 + nt) + ", " + (-1 * y / 2 + p) + ")"
737
- ), p += C.height + i, c.attr("class", "divider").attr("x1", -h / 2 - e).attr("x2", h / 2 + e).attr("y1", -y / 2 - e + l + p).attr("y2", -y / 2 - e + l + p), p += l, X.forEach((v) => {
732
+ ), p += C.height + i, c.attr("class", "divider").attr("x1", -h / 2 - a).attr("x2", h / 2 + a).attr("y1", -y / 2 - a + l + p).attr("y2", -y / 2 - a + l + p), p += l, X.forEach((v) => {
738
733
  E(v).attr(
739
734
  "transform",
740
735
  "translate( " + -h / 2 + ", " + (-1 * y / 2 + p + l / 2) + ")"
741
736
  );
742
737
  const L = v == null ? void 0 : v.getBBox();
743
738
  p += ((L == null ? void 0 : L.height) ?? 0) + i;
744
- }), p += l, o.attr("class", "divider").attr("x1", -h / 2 - e).attr("x2", h / 2 + e).attr("y1", -y / 2 - e + l + p).attr("y2", -y / 2 - e + l + p), p += l, D.forEach((v) => {
739
+ }), p += l, o.attr("class", "divider").attr("x1", -h / 2 - a).attr("x2", h / 2 + a).attr("y1", -y / 2 - a + l + p).attr("y2", -y / 2 - a + l + p), p += l, D.forEach((v) => {
745
740
  E(v).attr(
746
741
  "transform",
747
742
  "translate( " + -h / 2 + ", " + (-1 * y / 2 + p) + ")"
748
743
  );
749
744
  const L = v == null ? void 0 : v.getBBox();
750
745
  p += ((L == null ? void 0 : L.height) ?? 0) + i;
751
- }), n.attr("style", t.style).attr("class", "outer title-state").attr("x", -h / 2 - e).attr("y", -(y / 2) - e).attr("width", h + t.padding).attr("height", y + t.padding), m(t, n), t.intersect = function(v) {
746
+ }), n.attr("style", t.style).attr("class", "outer title-state").attr("x", -h / 2 - a).attr("y", -(y / 2) - a).attr("width", h + t.padding).attr("height", y + t.padding), m(t, n), t.intersect = function(v) {
752
747
  return w.rect(t, v);
753
748
  }, s;
754
749
  }, rt = {
@@ -780,36 +775,36 @@ const Gt = (a, t) => {
780
775
  class_box: Pt
781
776
  };
782
777
  let Y = {};
783
- const or = async (a, t, e) => {
778
+ const or = async (e, t, a) => {
784
779
  let i, l;
785
780
  if (t.link) {
786
781
  let r;
787
- b().securityLevel === "sandbox" ? r = "_top" : t.linkTarget && (r = t.linkTarget || "_blank"), i = a.insert("svg:a").attr("xlink:href", t.link).attr("target", r), l = await rt[t.shape](i, t, e);
782
+ b().securityLevel === "sandbox" ? r = "_top" : t.linkTarget && (r = t.linkTarget || "_blank"), i = e.insert("svg:a").attr("xlink:href", t.link).attr("target", r), l = await rt[t.shape](i, t, a);
788
783
  } else
789
- l = await rt[t.shape](a, t, e), i = l;
784
+ l = await rt[t.shape](e, t, a), i = l;
790
785
  return t.tooltip && l.attr("title", t.tooltip), t.class && l.attr("class", "node default " + t.class), i.attr("data-node", "true"), i.attr("data-id", t.id), Y[t.id] = i, t.haveCallback && Y[t.id].attr("class", Y[t.id].attr("class") + " clickable"), i;
791
- }, yr = (a, t) => {
792
- Y[t.id] = a;
786
+ }, yr = (e, t) => {
787
+ Y[t.id] = e;
793
788
  }, pr = () => {
794
789
  Y = {};
795
- }, fr = (a) => {
796
- const t = Y[a.id];
790
+ }, fr = (e) => {
791
+ const t = Y[e.id];
797
792
  g.trace(
798
793
  "Transforming node",
799
- a.diff,
800
- a,
801
- "translate(" + (a.x - a.width / 2 - 5) + ", " + a.width / 2 + ")"
794
+ e.diff,
795
+ e,
796
+ "translate(" + (e.x - e.width / 2 - 5) + ", " + e.width / 2 + ")"
802
797
  );
803
- const e = 8, i = a.diff || 0;
804
- return a.clusterNode ? t.attr(
798
+ const a = 8, i = e.diff || 0;
799
+ return e.clusterNode ? t.attr(
805
800
  "transform",
806
- "translate(" + (a.x + i - a.width / 2) + ", " + (a.y - a.height / 2 - e) + ")"
807
- ) : t.attr("transform", "translate(" + a.x + ", " + a.y + ")"), i;
801
+ "translate(" + (e.x + i - e.width / 2) + ", " + (e.y - e.height / 2 - a) + ")"
802
+ ) : t.attr("transform", "translate(" + e.x + ", " + e.y + ")"), i;
808
803
  }, tr = ({
809
- flowchart: a
804
+ flowchart: e
810
805
  }) => {
811
- var t, e;
812
- const i = ((t = a == null ? void 0 : a.subGraphTitleMargin) == null ? void 0 : t.top) ?? 0, l = ((e = a == null ? void 0 : a.subGraphTitleMargin) == null ? void 0 : e.bottom) ?? 0, r = i + l;
806
+ var t, a;
807
+ const i = ((t = e == null ? void 0 : e.subGraphTitleMargin) == null ? void 0 : t.top) ?? 0, l = ((a = e == null ? void 0 : e.subGraphTitleMargin) == null ? void 0 : a.bottom) ?? 0, r = i + l;
813
808
  return {
814
809
  subGraphTitleTopMargin: i,
815
810
  subGraphTitleBottomMargin: l,
@@ -823,44 +818,44 @@ const or = async (a, t, e) => {
823
818
  lollipop: 13.5,
824
819
  arrow_point: 5.3
825
820
  };
826
- function U(a, t) {
827
- if (a === void 0 || t === void 0)
821
+ function U(e, t) {
822
+ if (e === void 0 || t === void 0)
828
823
  return { angle: 0, deltaX: 0, deltaY: 0 };
829
- a = Z(a), t = Z(t);
830
- const [e, i] = [a.x, a.y], [l, r] = [t.x, t.y], s = l - e, n = r - i;
824
+ e = Z(e), t = Z(t);
825
+ const [a, i] = [e.x, e.y], [l, r] = [t.x, t.y], s = l - a, n = r - i;
831
826
  return { angle: Math.atan(n / s), deltaX: s, deltaY: n };
832
827
  }
833
- const Z = (a) => Array.isArray(a) ? { x: a[0], y: a[1] } : a, rr = (a) => ({
834
- x: function(t, e, i) {
828
+ const Z = (e) => Array.isArray(e) ? { x: e[0], y: e[1] } : e, rr = (e) => ({
829
+ x: function(t, a, i) {
835
830
  let l = 0;
836
- if (e === 0 && Object.hasOwn(O, a.arrowTypeStart)) {
831
+ if (a === 0 && Object.hasOwn(O, e.arrowTypeStart)) {
837
832
  const { angle: r, deltaX: s } = U(i[0], i[1]);
838
- l = O[a.arrowTypeStart] * Math.cos(r) * (s >= 0 ? 1 : -1);
839
- } else if (e === i.length - 1 && Object.hasOwn(O, a.arrowTypeEnd)) {
833
+ l = O[e.arrowTypeStart] * Math.cos(r) * (s >= 0 ? 1 : -1);
834
+ } else if (a === i.length - 1 && Object.hasOwn(O, e.arrowTypeEnd)) {
840
835
  const { angle: r, deltaX: s } = U(
841
836
  i[i.length - 1],
842
837
  i[i.length - 2]
843
838
  );
844
- l = O[a.arrowTypeEnd] * Math.cos(r) * (s >= 0 ? 1 : -1);
839
+ l = O[e.arrowTypeEnd] * Math.cos(r) * (s >= 0 ? 1 : -1);
845
840
  }
846
841
  return Z(t).x + l;
847
842
  },
848
- y: function(t, e, i) {
843
+ y: function(t, a, i) {
849
844
  let l = 0;
850
- if (e === 0 && Object.hasOwn(O, a.arrowTypeStart)) {
845
+ if (a === 0 && Object.hasOwn(O, e.arrowTypeStart)) {
851
846
  const { angle: r, deltaY: s } = U(i[0], i[1]);
852
- l = O[a.arrowTypeStart] * Math.abs(Math.sin(r)) * (s >= 0 ? 1 : -1);
853
- } else if (e === i.length - 1 && Object.hasOwn(O, a.arrowTypeEnd)) {
847
+ l = O[e.arrowTypeStart] * Math.abs(Math.sin(r)) * (s >= 0 ? 1 : -1);
848
+ } else if (a === i.length - 1 && Object.hasOwn(O, e.arrowTypeEnd)) {
854
849
  const { angle: r, deltaY: s } = U(
855
850
  i[i.length - 1],
856
851
  i[i.length - 2]
857
852
  );
858
- l = O[a.arrowTypeEnd] * Math.abs(Math.sin(r)) * (s >= 0 ? 1 : -1);
853
+ l = O[e.arrowTypeEnd] * Math.abs(Math.sin(r)) * (s >= 0 ? 1 : -1);
859
854
  }
860
855
  return Z(t).y + l;
861
856
  }
862
- }), ar = (a, t, e, i, l) => {
863
- t.arrowTypeStart && at(a, "start", t.arrowTypeStart, e, i, l), t.arrowTypeEnd && at(a, "end", t.arrowTypeEnd, e, i, l);
857
+ }), ar = (e, t, a, i, l) => {
858
+ t.arrowTypeStart && at(e, "start", t.arrowTypeStart, a, i, l), t.arrowTypeEnd && at(e, "end", t.arrowTypeEnd, a, i, l);
864
859
  }, er = {
865
860
  arrow_cross: "cross",
866
861
  arrow_point: "point",
@@ -871,72 +866,72 @@ const Z = (a) => Array.isArray(a) ? { x: a[0], y: a[1] } : a, rr = (a) => ({
871
866
  composition: "composition",
872
867
  dependency: "dependency",
873
868
  lollipop: "lollipop"
874
- }, at = (a, t, e, i, l, r) => {
875
- const s = er[e];
869
+ }, at = (e, t, a, i, l, r) => {
870
+ const s = er[a];
876
871
  if (!s) {
877
- g.warn(`Unknown arrow type: ${e}`);
872
+ g.warn(`Unknown arrow type: ${a}`);
878
873
  return;
879
874
  }
880
875
  const n = t === "start" ? "Start" : "End";
881
- a.attr(`marker-${t}`, `url(${i}#${l}_${r}-${s}${n})`);
876
+ e.attr(`marker-${t}`, `url(${i}#${l}_${r}-${s}${n})`);
882
877
  };
883
878
  let G = {}, T = {};
884
879
  const xr = () => {
885
880
  G = {}, T = {};
886
- }, dr = (a, t) => {
887
- const e = H(b().flowchart.htmlLabels), i = t.labelType === "markdown" ? st(a, t.label, {
881
+ }, dr = (e, t) => {
882
+ const a = H(b().flowchart.htmlLabels), i = t.labelType === "markdown" ? st(e, t.label, {
888
883
  style: t.labelStyle,
889
- useHtmlLabels: e,
884
+ useHtmlLabels: a,
890
885
  addSvgBackground: !0
891
- }) : R(t.label, t.labelStyle), l = a.insert("g").attr("class", "edgeLabel"), r = l.insert("g").attr("class", "label");
886
+ }) : R(t.label, t.labelStyle), l = e.insert("g").attr("class", "edgeLabel"), r = l.insert("g").attr("class", "label");
892
887
  r.node().appendChild(i);
893
888
  let s = i.getBBox();
894
- if (e) {
889
+ if (a) {
895
890
  const c = i.children[0], o = E(i);
896
891
  s = c.getBoundingClientRect(), o.attr("width", s.width), o.attr("height", s.height);
897
892
  }
898
893
  r.attr("transform", "translate(" + -s.width / 2 + ", " + -s.height / 2 + ")"), G[t.id] = l, t.width = s.width, t.height = s.height;
899
894
  let n;
900
895
  if (t.startLabelLeft) {
901
- const c = R(t.startLabelLeft, t.labelStyle), o = a.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
896
+ const c = R(t.startLabelLeft, t.labelStyle), o = e.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
902
897
  n = h.node().appendChild(c);
903
898
  const y = c.getBBox();
904
899
  h.attr("transform", "translate(" + -y.width / 2 + ", " + -y.height / 2 + ")"), T[t.id] || (T[t.id] = {}), T[t.id].startLeft = o, z(n, t.startLabelLeft);
905
900
  }
906
901
  if (t.startLabelRight) {
907
- const c = R(t.startLabelRight, t.labelStyle), o = a.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
902
+ const c = R(t.startLabelRight, t.labelStyle), o = e.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
908
903
  n = o.node().appendChild(c), h.node().appendChild(c);
909
904
  const y = c.getBBox();
910
905
  h.attr("transform", "translate(" + -y.width / 2 + ", " + -y.height / 2 + ")"), T[t.id] || (T[t.id] = {}), T[t.id].startRight = o, z(n, t.startLabelRight);
911
906
  }
912
907
  if (t.endLabelLeft) {
913
- const c = R(t.endLabelLeft, t.labelStyle), o = a.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
908
+ const c = R(t.endLabelLeft, t.labelStyle), o = e.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
914
909
  n = h.node().appendChild(c);
915
910
  const y = c.getBBox();
916
911
  h.attr("transform", "translate(" + -y.width / 2 + ", " + -y.height / 2 + ")"), o.node().appendChild(c), T[t.id] || (T[t.id] = {}), T[t.id].endLeft = o, z(n, t.endLabelLeft);
917
912
  }
918
913
  if (t.endLabelRight) {
919
- const c = R(t.endLabelRight, t.labelStyle), o = a.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
914
+ const c = R(t.endLabelRight, t.labelStyle), o = e.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
920
915
  n = h.node().appendChild(c);
921
916
  const y = c.getBBox();
922
917
  h.attr("transform", "translate(" + -y.width / 2 + ", " + -y.height / 2 + ")"), o.node().appendChild(c), T[t.id] || (T[t.id] = {}), T[t.id].endRight = o, z(n, t.endLabelRight);
923
918
  }
924
919
  return i;
925
920
  };
926
- function z(a, t) {
927
- b().flowchart.htmlLabels && a && (a.style.width = t.length * 9 + "px", a.style.height = "12px");
921
+ function z(e, t) {
922
+ b().flowchart.htmlLabels && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
928
923
  }
929
- const gr = (a, t) => {
930
- g.debug("Moving label abc88 ", a.id, a.label, G[a.id], t);
931
- let e = t.updatedPath ? t.updatedPath : t.originalPath;
924
+ const gr = (e, t) => {
925
+ g.debug("Moving label abc88 ", e.id, e.label, G[e.id], t);
926
+ let a = t.updatedPath ? t.updatedPath : t.originalPath;
932
927
  const i = b(), { subGraphTitleTotalMargin: l } = tr(i);
933
- if (a.label) {
934
- const r = G[a.id];
935
- let s = a.x, n = a.y;
936
- if (e) {
937
- const c = j.calcLabelPosition(e);
928
+ if (e.label) {
929
+ const r = G[e.id];
930
+ let s = e.x, n = e.y;
931
+ if (a) {
932
+ const c = j.calcLabelPosition(a);
938
933
  g.debug(
939
- "Moving label " + a.label + " from (",
934
+ "Moving label " + e.label + " from (",
940
935
  s,
941
936
  ",",
942
937
  n,
@@ -949,96 +944,96 @@ const gr = (a, t) => {
949
944
  }
950
945
  r.attr("transform", `translate(${s}, ${n + l / 2})`);
951
946
  }
952
- if (a.startLabelLeft) {
953
- const r = T[a.id].startLeft;
954
- let s = a.x, n = a.y;
955
- if (e) {
956
- const c = j.calcTerminalLabelPosition(a.arrowTypeStart ? 10 : 0, "start_left", e);
947
+ if (e.startLabelLeft) {
948
+ const r = T[e.id].startLeft;
949
+ let s = e.x, n = e.y;
950
+ if (a) {
951
+ const c = j.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", a);
957
952
  s = c.x, n = c.y;
958
953
  }
959
954
  r.attr("transform", `translate(${s}, ${n})`);
960
955
  }
961
- if (a.startLabelRight) {
962
- const r = T[a.id].startRight;
963
- let s = a.x, n = a.y;
964
- if (e) {
956
+ if (e.startLabelRight) {
957
+ const r = T[e.id].startRight;
958
+ let s = e.x, n = e.y;
959
+ if (a) {
965
960
  const c = j.calcTerminalLabelPosition(
966
- a.arrowTypeStart ? 10 : 0,
961
+ e.arrowTypeStart ? 10 : 0,
967
962
  "start_right",
968
- e
963
+ a
969
964
  );
970
965
  s = c.x, n = c.y;
971
966
  }
972
967
  r.attr("transform", `translate(${s}, ${n})`);
973
968
  }
974
- if (a.endLabelLeft) {
975
- const r = T[a.id].endLeft;
976
- let s = a.x, n = a.y;
977
- if (e) {
978
- const c = j.calcTerminalLabelPosition(a.arrowTypeEnd ? 10 : 0, "end_left", e);
969
+ if (e.endLabelLeft) {
970
+ const r = T[e.id].endLeft;
971
+ let s = e.x, n = e.y;
972
+ if (a) {
973
+ const c = j.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", a);
979
974
  s = c.x, n = c.y;
980
975
  }
981
976
  r.attr("transform", `translate(${s}, ${n})`);
982
977
  }
983
- if (a.endLabelRight) {
984
- const r = T[a.id].endRight;
985
- let s = a.x, n = a.y;
986
- if (e) {
987
- const c = j.calcTerminalLabelPosition(a.arrowTypeEnd ? 10 : 0, "end_right", e);
978
+ if (e.endLabelRight) {
979
+ const r = T[e.id].endRight;
980
+ let s = e.x, n = e.y;
981
+ if (a) {
982
+ const c = j.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", a);
988
983
  s = c.x, n = c.y;
989
984
  }
990
985
  r.attr("transform", `translate(${s}, ${n})`);
991
986
  }
992
- }, sr = (a, t) => {
993
- const e = a.x, i = a.y, l = Math.abs(t.x - e), r = Math.abs(t.y - i), s = a.width / 2, n = a.height / 2;
987
+ }, sr = (e, t) => {
988
+ const a = e.x, i = e.y, l = Math.abs(t.x - a), r = Math.abs(t.y - i), s = e.width / 2, n = e.height / 2;
994
989
  return l >= s || r >= n;
995
- }, ir = (a, t, e) => {
990
+ }, ir = (e, t, a) => {
996
991
  g.debug(`intersection calc abc89:
997
992
  outsidePoint: ${JSON.stringify(t)}
998
- insidePoint : ${JSON.stringify(e)}
999
- node : x:${a.x} y:${a.y} w:${a.width} h:${a.height}`);
1000
- const i = a.x, l = a.y, r = Math.abs(i - e.x), s = a.width / 2;
1001
- let n = e.x < t.x ? s - r : s + r;
1002
- const c = a.height / 2, o = Math.abs(t.y - e.y), h = Math.abs(t.x - e.x);
993
+ insidePoint : ${JSON.stringify(a)}
994
+ node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);
995
+ const i = e.x, l = e.y, r = Math.abs(i - a.x), s = e.width / 2;
996
+ let n = a.x < t.x ? s - r : s + r;
997
+ const c = e.height / 2, o = Math.abs(t.y - a.y), h = Math.abs(t.x - a.x);
1003
998
  if (Math.abs(l - t.y) * s > Math.abs(i - t.x) * c) {
1004
- let y = e.y < t.y ? t.y - c - l : l - c - t.y;
999
+ let y = a.y < t.y ? t.y - c - l : l - c - t.y;
1005
1000
  n = h * y / o;
1006
1001
  const f = {
1007
- x: e.x < t.x ? e.x + n : e.x - h + n,
1008
- y: e.y < t.y ? e.y + o - y : e.y - o + y
1002
+ x: a.x < t.x ? a.x + n : a.x - h + n,
1003
+ y: a.y < t.y ? a.y + o - y : a.y - o + y
1009
1004
  };
1010
1005
  return n === 0 && (f.x = t.x, f.y = t.y), h === 0 && (f.x = t.x), o === 0 && (f.y = t.y), g.debug(`abc89 topp/bott calc, Q ${o}, q ${y}, R ${h}, r ${n}`, f), f;
1011
1006
  } else {
1012
- e.x < t.x ? n = t.x - s - i : n = i - s - t.x;
1013
- let y = o * n / h, f = e.x < t.x ? e.x + h - n : e.x - h + n, p = e.y < t.y ? e.y + y : e.y - y;
1007
+ a.x < t.x ? n = t.x - s - i : n = i - s - t.x;
1008
+ let y = o * n / h, f = a.x < t.x ? a.x + h - n : a.x - h + n, p = a.y < t.y ? a.y + y : a.y - y;
1014
1009
  return g.debug(`sides calc abc89, Q ${o}, q ${y}, R ${h}, r ${n}`, { _x: f, _y: p }), n === 0 && (f = t.x, p = t.y), h === 0 && (f = t.x), o === 0 && (p = t.y), { x: f, y: p };
1015
1010
  }
1016
- }, et = (a, t) => {
1017
- g.debug("abc88 cutPathAtIntersect", a, t);
1018
- let e = [], i = a[0], l = !1;
1019
- return a.forEach((r) => {
1011
+ }, et = (e, t) => {
1012
+ g.debug("abc88 cutPathAtIntersect", e, t);
1013
+ let a = [], i = e[0], l = !1;
1014
+ return e.forEach((r) => {
1020
1015
  if (!sr(t, r) && !l) {
1021
1016
  const s = ir(t, i, r);
1022
1017
  let n = !1;
1023
- e.forEach((c) => {
1018
+ a.forEach((c) => {
1024
1019
  n = n || c.x === s.x && c.y === s.y;
1025
- }), e.some((c) => c.x === s.x && c.y === s.y) || e.push(s), l = !0;
1020
+ }), a.some((c) => c.x === s.x && c.y === s.y) || a.push(s), l = !0;
1026
1021
  } else
1027
- i = r, l || e.push(r);
1028
- }), e;
1029
- }, ur = function(a, t, e, i, l, r, s) {
1030
- let n = e.points;
1031
- g.debug("abc88 InsertEdge: edge=", e, "e=", t);
1022
+ i = r, l || a.push(r);
1023
+ }), a;
1024
+ }, ur = function(e, t, a, i, l, r, s) {
1025
+ let n = a.points;
1026
+ g.debug("abc88 InsertEdge: edge=", a, "e=", t);
1032
1027
  let c = !1;
1033
1028
  const o = r.node(t.v);
1034
1029
  var h = r.node(t.w);
1035
- h != null && h.intersect && (o != null && o.intersect) && (n = n.slice(1, e.points.length - 1), n.unshift(o.intersect(n[0])), n.push(h.intersect(n[n.length - 1]))), e.toCluster && (g.debug("to cluster abc88", i[e.toCluster]), n = et(e.points, i[e.toCluster].node), c = !0), e.fromCluster && (g.debug("from cluster abc88", i[e.fromCluster]), n = et(n.reverse(), i[e.fromCluster].node).reverse(), c = !0);
1030
+ h != null && h.intersect && (o != null && o.intersect) && (n = n.slice(1, a.points.length - 1), n.unshift(o.intersect(n[0])), n.push(h.intersect(n[n.length - 1]))), a.toCluster && (g.debug("to cluster abc88", i[a.toCluster]), n = et(a.points, i[a.toCluster].node), c = !0), a.fromCluster && (g.debug("from cluster abc88", i[a.fromCluster]), n = et(n.reverse(), i[a.fromCluster].node).reverse(), c = !0);
1036
1031
  const y = n.filter((C) => !Number.isNaN(C.y));
1037
1032
  let f = lt;
1038
- e.curve && (l === "graph" || l === "flowchart") && (f = e.curve);
1039
- const { x: p, y: d } = rr(e), k = ct().x(p).y(d).curve(f);
1033
+ a.curve && (l === "graph" || l === "flowchart") && (f = a.curve);
1034
+ const { x: p, y: d } = rr(a), k = ct().x(p).y(d).curve(f);
1040
1035
  let x;
1041
- switch (e.thickness) {
1036
+ switch (a.thickness) {
1042
1037
  case "normal":
1043
1038
  x = "edge-thickness-normal";
1044
1039
  break;
@@ -1051,7 +1046,7 @@ const gr = (a, t) => {
1051
1046
  default:
1052
1047
  x = "";
1053
1048
  }
1054
- switch (e.pattern) {
1049
+ switch (a.pattern) {
1055
1050
  case "solid":
1056
1051
  x += " edge-pattern-solid";
1057
1052
  break;
@@ -1062,11 +1057,11 @@ const gr = (a, t) => {
1062
1057
  x += " edge-pattern-dashed";
1063
1058
  break;
1064
1059
  }
1065
- const u = a.append("path").attr("d", k(y)).attr("id", e.id).attr("class", " " + x + (e.classes ? " " + e.classes : "")).attr("style", e.style);
1060
+ const u = e.append("path").attr("d", k(y)).attr("id", a.id).attr("class", " " + x + (a.classes ? " " + a.classes : "")).attr("style", a.style);
1066
1061
  let S = "";
1067
- (b().flowchart.arrowMarkerAbsolute || b().state.arrowMarkerAbsolute) && (S = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, S = S.replace(/\(/g, "\\("), S = S.replace(/\)/g, "\\)")), ar(u, e, S, s, l);
1062
+ (b().flowchart.arrowMarkerAbsolute || b().state.arrowMarkerAbsolute) && (S = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, S = S.replace(/\(/g, "\\("), S = S.replace(/\)/g, "\\)")), ar(u, a, S, s, l);
1068
1063
  let B = {};
1069
- return c && (B.updatedPath = n), B.originalPath = e.points, B;
1064
+ return c && (B.updatedPath = n), B.originalPath = a.points, B;
1070
1065
  };
1071
1066
  export {
1072
1067
  or as a,