vue-data-ui 3.22.14 → 3.23.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 (229) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +13 -1
  3. package/dist/{Arrow-Ci7Burxz.js → Arrow-CF0VFcBH.js} +1 -1
  4. package/dist/{BaseDraggableDialog-hyW32gLf.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
  5. package/dist/{BaseIcon-DJbOzCDs.js → BaseIcon-BfndwIWE.js} +4 -3
  6. package/dist/{BaseLegendToggle-DJU4VsLO.js → BaseLegendToggle-DZVucLnv.js} +1 -1
  7. package/dist/{BaseZoomControls-CwhpsHIL.js → BaseZoomControls-BZvCnZEi.js} +2 -2
  8. package/dist/{ColorPicker-BVWrKEQl.js → ColorPicker--ayG2YHf.js} +2 -2
  9. package/dist/{DataTable-rIsBpJMt.js → DataTable-BbKgJ5UI.js} +2 -2
  10. package/dist/HillActions-BD9j_sOU.js +187 -0
  11. package/dist/{Legend-DSPDFP3n.js → Legend-CQxUgOd-.js} +2 -2
  12. package/dist/{NonSvgPenAndPaper-DZyYthbM.js → NonSvgPenAndPaper-4ypecDg1.js} +22 -22
  13. package/dist/{PackageVersion-BUmadjVO.js → PackageVersion-D6d8SCp9.js} +1 -1
  14. package/dist/{PenAndPaper-D--sbRMA.js → PenAndPaper-DAE-tnEQ.js} +14 -14
  15. package/dist/{Shape-Dmh9jBFh.js → Shape-C21CMlWS.js} +3 -3
  16. package/dist/Slicer-CIk57nL4.js +1163 -0
  17. package/dist/{SlicerPreview-CCIb3v8u.js → SlicerPreview-wUw1hFwe.js} +384 -370
  18. package/dist/{SparkTooltip-GjWLZ39s.js → SparkTooltip-CjsbIhzi.js} +6 -6
  19. package/dist/Title-BE3qg9xl.js +87 -0
  20. package/dist/{Tooltip-CEbqzIhL.js → Tooltip-DhjyfHwz.js} +2 -2
  21. package/dist/{UserOptions-BknvMNU1.js → UserOptions-Dt98of5H.js} +2 -2
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-hill.js +2 -0
  49. package/dist/components/vue-ui-history-plot.js +1 -1
  50. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  51. package/dist/components/vue-ui-icon.js +1 -1
  52. package/dist/components/vue-ui-kpi.js +1 -1
  53. package/dist/components/vue-ui-mini-loader.js +1 -1
  54. package/dist/components/vue-ui-molecule.js +1 -1
  55. package/dist/components/vue-ui-mood-radar.js +1 -1
  56. package/dist/components/vue-ui-nested-donuts.js +1 -1
  57. package/dist/components/vue-ui-onion.js +1 -1
  58. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  59. package/dist/components/vue-ui-quadrant.js +1 -1
  60. package/dist/components/vue-ui-quick-chart.js +1 -1
  61. package/dist/components/vue-ui-radar.js +1 -1
  62. package/dist/components/vue-ui-rating.js +1 -1
  63. package/dist/components/vue-ui-relation-circle.js +1 -1
  64. package/dist/components/vue-ui-ridgeline.js +1 -1
  65. package/dist/components/vue-ui-rings.js +1 -1
  66. package/dist/components/vue-ui-scatter.js +1 -1
  67. package/dist/components/vue-ui-skeleton.js +1 -1
  68. package/dist/components/vue-ui-smiley.js +1 -1
  69. package/dist/components/vue-ui-spark-trend.js +1 -1
  70. package/dist/components/vue-ui-sparkbar.js +1 -1
  71. package/dist/components/vue-ui-sparkgauge.js +1 -1
  72. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  73. package/dist/components/vue-ui-sparkline.js +1 -1
  74. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  75. package/dist/components/vue-ui-stackbar.js +1 -1
  76. package/dist/components/vue-ui-stackline.js +1 -1
  77. package/dist/components/vue-ui-strip-plot.js +1 -1
  78. package/dist/components/vue-ui-table-heatmap.js +1 -1
  79. package/dist/components/vue-ui-table-sparkline.js +1 -1
  80. package/dist/components/vue-ui-table.js +1 -1
  81. package/dist/components/vue-ui-thermometer.js +1 -1
  82. package/dist/components/vue-ui-timer.js +1 -1
  83. package/dist/components/vue-ui-tiremarks.js +1 -1
  84. package/dist/components/vue-ui-treemap.js +1 -1
  85. package/dist/components/vue-ui-vertical-bar.js +1 -1
  86. package/dist/components/vue-ui-waffle.js +1 -1
  87. package/dist/components/vue-ui-wheel.js +1 -1
  88. package/dist/components/vue-ui-word-cloud.js +1 -1
  89. package/dist/components/vue-ui-world.js +1 -1
  90. package/dist/components/vue-ui-xy-canvas.js +1 -1
  91. package/dist/components/vue-ui-xy.js +1 -1
  92. package/dist/composables.js +1 -1
  93. package/dist/{dom-to-png-BbPRUKX6.js → dom-to-png-BYIvdTe8.js} +1 -1
  94. package/dist/exposedLib-C0DPCgFj.js +28 -0
  95. package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
  96. package/dist/{img-zY7_pJz1.js → img-Bnokohej.js} +1 -1
  97. package/dist/{labelUtils-DYdYmN_Q.js → labelUtils-BeVpDvTJ.js} +1 -1
  98. package/dist/{lib-C-QGo8GG.js → lib-Bttd6u5E.js} +27 -12
  99. package/dist/{package-QmuZcjWs.js → package-KvlL5CqE.js} +1 -1
  100. package/dist/{pdf-CuSS-5_j.js → pdf-CVIDfCrS.js} +1 -1
  101. package/dist/{render-common-DasqIYp9.js → render-common-oDYGTc5P.js} +21 -21
  102. package/dist/ssr/vue-ui-donut.js +1 -1
  103. package/dist/ssr/vue-ui-xy.js +1 -1
  104. package/dist/ssr.js +2 -2
  105. package/dist/style.css +1 -1
  106. package/dist/types/vue-data-ui.d.ts +496 -0
  107. package/dist/types/vue-ui-hill.d.ts +90 -0
  108. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
  109. package/dist/{useConfig-C0V0eG7L.js → useConfig-D3scuR88.js} +774 -477
  110. package/dist/useHints-Dq_w2E8B.js +66 -0
  111. package/dist/{useNestedProp-BYfiWVP8.js → useNestedProp-vPNvh7rV.js} +5 -3
  112. package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Brg8mm5J.js} +3 -2
  113. package/dist/{usePrinter-C5ordS-4.js → usePrinter-DN5bYhTG.js} +2 -2
  114. package/dist/{useSvgExport-Ba9qBr9M.js → useSvgExport-DH-FfcqQ.js} +1 -1
  115. package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
  116. package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
  117. package/dist/useTransitions-g_zBREk2.js +39 -0
  118. package/dist/utils.js +14 -14
  119. package/dist/{vue-data-ui-D3jZ4lg1.js → vue-data-ui-DGWDPCwC.js} +85 -81
  120. package/dist/vue-data-ui.js +77 -76
  121. package/dist/vue-ui-3d-bar-C_Su9fve.js +1849 -0
  122. package/dist/{vue-ui-accordion-FimGHtuy.js → vue-ui-accordion-BxGriZik.js} +4 -4
  123. package/dist/vue-ui-age-pyramid-D4k1MkAL.js +1264 -0
  124. package/dist/vue-ui-annotator-CCtnM8Rv.js +2886 -0
  125. package/dist/vue-ui-bullet-DLZr2Uk8.js +724 -0
  126. package/dist/{vue-ui-bump-CG3WTTFy.js → vue-ui-bump-CcdzJZ9n.js} +334 -297
  127. package/dist/{vue-ui-candlestick-C3smYvQA.js → vue-ui-candlestick-EEEt7ORC.js} +468 -442
  128. package/dist/vue-ui-carousel-table-BicIpNAD.js +463 -0
  129. package/dist/{vue-ui-chestnut-i7FYoqi8.js → vue-ui-chestnut-BI7mC5dd.js} +523 -497
  130. package/dist/{vue-ui-chord-DCZo55QA.js → vue-ui-chord-DXaq8ZMu.js} +432 -426
  131. package/dist/vue-ui-circle-pack-XHJBMG51.js +1659 -0
  132. package/dist/{vue-ui-cursor-DEf_l0Xc.js → vue-ui-cursor-BqHr0n1Z.js} +61 -61
  133. package/dist/{vue-ui-dag-beo3-quD.js → vue-ui-dag-jMLVoQkb.js} +677 -674
  134. package/dist/vue-ui-dashboard-DVAUFETR.js +520 -0
  135. package/dist/{vue-ui-digits-BnMqGAhl.js → vue-ui-digits-Dy4gG6qm.js} +59 -51
  136. package/dist/vue-ui-donut-C0cWRLbU.js +2441 -0
  137. package/dist/{vue-ui-donut-Cr0uTWGk.js → vue-ui-donut-CYpxGBhl.js} +117 -116
  138. package/dist/{vue-ui-donut-evolution-D54NP3FP.js → vue-ui-donut-evolution-DwR47A2r.js} +534 -448
  139. package/dist/vue-ui-dumbbell-DxVbRjKR.js +1582 -0
  140. package/dist/{vue-ui-flow-CnateJjc.js → vue-ui-flow-DWaZF4FS.js} +415 -407
  141. package/dist/vue-ui-funnel-Bmpx5GHR.js +797 -0
  142. package/dist/vue-ui-galaxy-CWBP9oH9.js +1111 -0
  143. package/dist/vue-ui-gauge-ByE_txav.js +953 -0
  144. package/dist/{vue-ui-geo-DnO1RIFR.js → vue-ui-geo-ZA7CBy8f.js} +372 -357
  145. package/dist/{vue-ui-gizmo-DyxeSKIk.js → vue-ui-gizmo-SQCou0bQ.js} +57 -49
  146. package/dist/{vue-ui-heatmap-6Ja5LKYE.js → vue-ui-heatmap-CHd9gs_p.js} +473 -465
  147. package/dist/vue-ui-hill-BT183G-_.js +1768 -0
  148. package/dist/vue-ui-history-plot-BwnlC1mx.js +1723 -0
  149. package/dist/vue-ui-horizontal-bar-BUar2HUH.js +1733 -0
  150. package/dist/vue-ui-kpi-BF_9WWoo.js +104 -0
  151. package/dist/vue-ui-mini-loader-CvfukjXi.js +133 -0
  152. package/dist/vue-ui-molecule-Bi2CKHer.js +958 -0
  153. package/dist/{vue-ui-mood-radar-TWo57SKD.js → vue-ui-mood-radar-_zpbmvJs.js} +349 -341
  154. package/dist/{vue-ui-nested-donuts-W0TpPXIQ.js → vue-ui-nested-donuts-qHZAJ70u.js} +452 -416
  155. package/dist/vue-ui-onion-CB5RYIy5.js +1258 -0
  156. package/dist/vue-ui-parallel-coordinate-plot-BUwt-apg.js +1455 -0
  157. package/dist/{vue-ui-quadrant-BM9VLDcC.js → vue-ui-quadrant-CoROD3er.js} +636 -628
  158. package/dist/vue-ui-quick-chart-BcH7eY4-.js +2397 -0
  159. package/dist/{vue-ui-radar-BVz6Uq2k.js → vue-ui-radar-DGbaXGme.js} +380 -334
  160. package/dist/vue-ui-rating-Bo3zD3yW.js +360 -0
  161. package/dist/vue-ui-relation-circle-DaU1eTsG.js +925 -0
  162. package/dist/vue-ui-ridgeline-BCaGcyfk.js +1664 -0
  163. package/dist/{vue-ui-rings-DEZrfBYX.js → vue-ui-rings-BJUBn8_b.js} +450 -424
  164. package/dist/{vue-ui-scatter-owaIOpD0.js → vue-ui-scatter-Pcft1bUt.js} +721 -702
  165. package/dist/{vue-ui-skeleton-Cxszgax7.js → vue-ui-skeleton-EeJcGbCo.js} +395 -387
  166. package/dist/{vue-ui-smiley-DZBPvVeN.js → vue-ui-smiley-D0gibt5c.js} +128 -120
  167. package/dist/{vue-ui-spark-trend-CW4cLUqP.js → vue-ui-spark-trend-BRoQ7JpQ.js} +132 -117
  168. package/dist/{vue-ui-sparkbar-DeSSqv4v.js → vue-ui-sparkbar-DFp2k7-7.js} +119 -111
  169. package/dist/{vue-ui-sparkgauge-VSiPVgUQ.js → vue-ui-sparkgauge-D0Bq85Hs.js} +76 -68
  170. package/dist/vue-ui-sparkhistogram-BPln7v63.js +590 -0
  171. package/dist/{vue-ui-sparkline-DyZdAQMl.js → vue-ui-sparkline-C6Q45Dqp.js} +391 -365
  172. package/dist/vue-ui-sparkstackbar-CjK4bcQg.js +692 -0
  173. package/dist/vue-ui-stackbar-Ca8EPf3e.js +2353 -0
  174. package/dist/vue-ui-stackline-Pz5WWlWT.js +2467 -0
  175. package/dist/{vue-ui-strip-plot-BquHFKHA.js → vue-ui-strip-plot-Dw4MGDSO.js} +508 -487
  176. package/dist/vue-ui-table-Bjg-ujJu.js +1352 -0
  177. package/dist/vue-ui-table-heatmap-ljeYW8Wc.js +364 -0
  178. package/dist/{vue-ui-table-sparkline-CyGqW88t.js → vue-ui-table-sparkline-iRFmtK5S.js} +207 -181
  179. package/dist/vue-ui-thermometer-D8uiOaeA.js +777 -0
  180. package/dist/{vue-ui-timer-BVjydam-.js → vue-ui-timer-CYw983oL.js} +66 -58
  181. package/dist/vue-ui-tiremarks-CekiW2Ru.js +559 -0
  182. package/dist/vue-ui-treemap-h4VbnqPA.js +1760 -0
  183. package/dist/vue-ui-waffle-cu0w_s6L.js +1412 -0
  184. package/dist/{vue-ui-wheel-D-VVxvxY.js → vue-ui-wheel-tLvJadk5.js} +225 -217
  185. package/dist/{vue-ui-word-cloud-CcRch2t2.js → vue-ui-word-cloud-BjpGSsod.js} +440 -432
  186. package/dist/{vue-ui-world-BJq4PZqF.js → vue-ui-world-B4fCS3jN.js} +350 -342
  187. package/dist/{vue-ui-xy-D64AB5Qy.js → vue-ui-xy-7ZT9IRD8.js} +1639 -1595
  188. package/dist/{vue-ui-xy-canvas-mDqjPtxh.js → vue-ui-xy-canvas-BnLEwBpi.js} +459 -431
  189. package/dist/{vue-ui-xy-B8XBn08L.js → vue-ui-xy-gyNS0yH0.js} +216 -213
  190. package/dist/vue_ui_hill-dnltu0L-.js +368 -0
  191. package/package.json +4 -4
  192. package/dist/Slicer-JdCzBeYM.js +0 -1149
  193. package/dist/Title-Thf71-8D.js +0 -87
  194. package/dist/exposedLib-CfZhN94x.js +0 -25
  195. package/dist/useAutoSizeLabelsInsideViewbox-CSzmRywi.js +0 -50
  196. package/dist/useMountedDelay-BAjrhRJb.js +0 -14
  197. package/dist/vue-ui-3d-bar-D9-jAA5Z.js +0 -1824
  198. package/dist/vue-ui-age-pyramid-D4f-Agb7.js +0 -1246
  199. package/dist/vue-ui-annotator-P9E8hpJl.js +0 -2905
  200. package/dist/vue-ui-bullet-CKg0bShN.js +0 -709
  201. package/dist/vue-ui-carousel-table-BD_fxykj.js +0 -455
  202. package/dist/vue-ui-circle-pack--DUVDQx3.js +0 -1610
  203. package/dist/vue-ui-dashboard-mGLvP0UA.js +0 -512
  204. package/dist/vue-ui-donut-BCLG16Vb.js +0 -2418
  205. package/dist/vue-ui-dumbbell-DZ78WASa.js +0 -1564
  206. package/dist/vue-ui-funnel-DSpUMyDO.js +0 -781
  207. package/dist/vue-ui-galaxy-CxKafV1X.js +0 -1076
  208. package/dist/vue-ui-gauge-CegUK3FD.js +0 -925
  209. package/dist/vue-ui-history-plot-XOexkxeI.js +0 -1725
  210. package/dist/vue-ui-horizontal-bar-BCTdLxjK.js +0 -1689
  211. package/dist/vue-ui-kpi-EenGDZ-l.js +0 -96
  212. package/dist/vue-ui-mini-loader-CA7XxPk7.js +0 -125
  213. package/dist/vue-ui-molecule-5rpD2mlK.js +0 -932
  214. package/dist/vue-ui-onion-CDC9AGh1.js +0 -1199
  215. package/dist/vue-ui-parallel-coordinate-plot-DUOI7HoD.js +0 -1412
  216. package/dist/vue-ui-quick-chart-B8XCKef-.js +0 -2443
  217. package/dist/vue-ui-rating-B7ApWpIJ.js +0 -352
  218. package/dist/vue-ui-relation-circle-LVOR5VZ6.js +0 -917
  219. package/dist/vue-ui-ridgeline-BlyzSJHc.js +0 -1627
  220. package/dist/vue-ui-sparkhistogram-B5252IVr.js +0 -575
  221. package/dist/vue-ui-sparkstackbar-CiLgNzaI.js +0 -674
  222. package/dist/vue-ui-stackbar-Bwz6Z7M4.js +0 -2322
  223. package/dist/vue-ui-stackline-DX3YDRSg.js +0 -2427
  224. package/dist/vue-ui-table-DEhy61ln.js +0 -1339
  225. package/dist/vue-ui-table-heatmap-1LTxQfQX.js +0 -338
  226. package/dist/vue-ui-thermometer-CNvTQJUq.js +0 -769
  227. package/dist/vue-ui-tiremarks-3ZBAE8SA.js +0 -551
  228. package/dist/vue-ui-treemap-FqqXQvZw.js +0 -1727
  229. package/dist/vue-ui-waffle-B37Yx9uw.js +0 -1367
@@ -1,24 +1,25 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { At as t, G as n, K as r, et as i, ht as a, qt as o, t as s, x as c } from "./lib-C-QGo8GG.js";
3
- import { t as l } from "./useConfig-C0V0eG7L.js";
4
- import { t as u } from "./usePrinter-C5ordS-4.js";
5
- import { n as d, t as f } from "./BaseScanner-DZvpgOjM.js";
6
- import { t as p } from "./useSvgExport-Ba9qBr9M.js";
7
- import { t as m } from "./useNestedProp-BYfiWVP8.js";
8
- import { t as h } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as g } from "./img-zY7_pJz1.js";
10
- import { n as ee } from "./Title-Thf71-8D.js";
11
- import { t as te } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
- import { l as ne, t as re } from "./useResponsive-ZtArZtUf.js";
13
- import { t as ie } from "./A11yDataTable-DdRsVULz.js";
14
- import { t as ae } from "./useUserOptionState-DK-_1ddE.js";
15
- import { t as oe } from "./useChartAccessibility-DYqac8yF.js";
16
- import { t as se } from "./usePanZoom-CYU3B4T3.js";
17
- import { t as ce } from "./BaseZoomControls-CwhpsHIL.js";
18
- import { t as le } from "./vue_ui_dag-TsJ_azQq.js";
19
- import { Fragment as ue, Teleport as de, Transition as fe, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as pe, createTextVNode as me, createVNode as he, defineAsyncComponent as ge, guardReactiveProps as S, mergeProps as _e, nextTick as ve, normalizeClass as ye, normalizeProps as C, normalizeStyle as be, onBeforeUnmount as xe, onMounted as Se, openBlock as w, ref as T, renderList as Ce, renderSlot as E, toDisplayString as we, toRefs as Te, unref as D, watch as Ee, watchEffect as De, withCtx as O, withModifiers as Oe } from "vue";
2
+ import { Jt as t, K as n, S as r, gt as i, jt as a, q as o, t as s, tt as c } from "./lib-Bttd6u5E.js";
3
+ import { n as l, t as u } from "./useHints-Dq_w2E8B.js";
4
+ import { t as d } from "./useConfig-D3scuR88.js";
5
+ import { t as f } from "./usePrinter-DN5bYhTG.js";
6
+ import { n as p, t as m } from "./BaseScanner-DZvpgOjM.js";
7
+ import { t as h } from "./useSvgExport-DH-FfcqQ.js";
8
+ import { t as g } from "./useNestedProp-vPNvh7rV.js";
9
+ import { t as ee } from "./useThemeCheck-C43Tcqmk.js";
10
+ import { t as te } from "./img-Bnokohej.js";
11
+ import { n as ne } from "./Title-BE3qg9xl.js";
12
+ import { t as re } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
+ import { l as ie, t as ae } from "./useResponsive-ZtArZtUf.js";
14
+ import { t as oe } from "./A11yDataTable-DdRsVULz.js";
15
+ import { t as se } from "./useUserOptionState-DK-_1ddE.js";
16
+ import { t as ce } from "./useChartAccessibility-DYqac8yF.js";
17
+ import { t as le } from "./usePanZoom-CYU3B4T3.js";
18
+ import { t as ue } from "./BaseZoomControls-BZvCnZEi.js";
19
+ import { t as de } from "./vue_ui_dag-TsJ_azQq.js";
20
+ import { Fragment as fe, Teleport as pe, Transition as me, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as he, createTextVNode as ge, createVNode as _e, defineAsyncComponent as ve, guardReactiveProps as S, mergeProps as ye, nextTick as be, normalizeClass as xe, normalizeProps as C, normalizeStyle as Se, onBeforeUnmount as Ce, onMounted as we, openBlock as w, ref as T, renderList as Te, renderSlot as E, toDisplayString as Ee, toRefs as De, unref as D, watch as Oe, watchEffect as ke, withCtx as O, withModifiers as Ae } from "vue";
20
21
  //#region src/DAG/graph.js
21
- var ke = "\0", Ae = "\0", je = "", k = class {
22
+ var je = "\0", Me = "\0", Ne = "", k = class {
22
23
  _isDirected = !0;
23
24
  _isMultigraph = !1;
24
25
  _isCompound = !1;
@@ -37,7 +38,7 @@ var ke = "\0", Ae = "\0", je = "", k = class {
37
38
  _parent;
38
39
  _children;
39
40
  constructor(e) {
40
- e && (this._isDirected = !Object.hasOwn(e, "directed") || e.directed, this._isMultigraph = Object.hasOwn(e, "multigraph") ? e.multigraph : !1, this._isCompound = Object.hasOwn(e, "compound") ? e.compound : !1), this._isCompound && (this._parent = {}, this._children = {}, this._children[Ae] = {});
41
+ e && (this._isDirected = !Object.hasOwn(e, "directed") || e.directed, this._isMultigraph = Object.hasOwn(e, "multigraph") ? e.multigraph : !1, this._isCompound = Object.hasOwn(e, "compound") ? e.compound : !1), this._isCompound && (this._parent = {}, this._children = {}, this._children[Me] = {});
41
42
  }
42
43
  isDirected() {
43
44
  return this._isDirected;
@@ -78,7 +79,7 @@ var ke = "\0", Ae = "\0", je = "", k = class {
78
79
  }), this;
79
80
  }
80
81
  setNode(e, t) {
81
- return Object.hasOwn(this._nodes, e) ? (arguments.length > 1 && (this._nodes[e] = t), this) : (this._nodes[e] = arguments.length > 1 ? t : this._defaultNodeLabelFn(e), this._isCompound && (this._parent[e] = Ae, this._children[e] = {}, this._children[Ae][e] = !0), this._in[e] = {}, this._preds[e] = {}, this._out[e] = {}, this._sucs[e] = {}, ++this._nodeCount, this);
82
+ return Object.hasOwn(this._nodes, e) ? (arguments.length > 1 && (this._nodes[e] = t), this) : (this._nodes[e] = arguments.length > 1 ? t : this._defaultNodeLabelFn(e), this._isCompound && (this._parent[e] = Me, this._children[e] = {}, this._children[Me][e] = !0), this._in[e] = {}, this._preds[e] = {}, this._out[e] = {}, this._sucs[e] = {}, ++this._nodeCount, this);
82
83
  }
83
84
  node(e) {
84
85
  return this._nodes[e];
@@ -98,7 +99,7 @@ var ke = "\0", Ae = "\0", je = "", k = class {
98
99
  }
99
100
  setParent(e, t) {
100
101
  if (!this._isCompound) throw Error("Cannot set parent in a non-compound graph");
101
- if (t === void 0) t = Ae;
102
+ if (t === void 0) t = Me;
102
103
  else {
103
104
  t += "";
104
105
  for (let n = t; n !== void 0; n = this.parent(n)) if (n === e) throw Error("Setting " + t + " as parent of " + e + " would create a cycle");
@@ -112,14 +113,14 @@ var ke = "\0", Ae = "\0", je = "", k = class {
112
113
  parent(e) {
113
114
  if (this._isCompound) {
114
115
  let t = this._parent[e];
115
- if (t !== Ae) return t;
116
+ if (t !== Me) return t;
116
117
  }
117
118
  }
118
- children(e = Ae) {
119
+ children(e = Me) {
119
120
  if (this._isCompound) {
120
121
  let t = this._children[e];
121
122
  if (t) return Object.keys(t);
122
- } else if (e === Ae) return this.nodes();
123
+ } else if (e === Me) return this.nodes();
123
124
  else if (this.hasNode(e)) return [];
124
125
  }
125
126
  predecessors(e) {
@@ -183,7 +184,7 @@ var ke = "\0", Ae = "\0", je = "", k = class {
183
184
  if (n !== void 0 && !this._isMultigraph) throw Error("Cannot set a named edge when isMultigraph = false");
184
185
  this.setNode(e), this.setNode(t), this._edgeLabels[o] = i ? r : this._defaultEdgeLabelFn(e, t, n);
185
186
  let s = M(this._isDirected, e, t, n);
186
- return e = s.v, t = s.w, Object.freeze(s), this._edgeObjs[o] = s, Me(this._preds[t], e), Me(this._sucs[e], t), this._in[t][o] = s, this._out[e][o] = s, this._edgeCount++, this;
187
+ return e = s.v, t = s.w, Object.freeze(s), this._edgeObjs[o] = s, Pe(this._preds[t], e), Pe(this._sucs[e], t), this._in[t][o] = s, this._out[e][o] = s, this._edgeCount++, this;
187
188
  }
188
189
  edge(e, t, n) {
189
190
  let r = arguments.length === 1 ? N(this._isDirected, arguments[0]) : j(this._isDirected, e, t, n);
@@ -220,7 +221,7 @@ var ke = "\0", Ae = "\0", je = "", k = class {
220
221
  if (n) return n.concat(this.outEdges(e, t));
221
222
  }
222
223
  };
223
- function Me(e, t) {
224
+ function Pe(e, t) {
224
225
  e[t] ? e[t]++ : e[t] = 1;
225
226
  }
226
227
  function A(e, t) {
@@ -232,7 +233,7 @@ function j(e, t, n, r) {
232
233
  let e = i;
233
234
  i = a, a = e;
234
235
  }
235
- return i + je + a + je + (r === void 0 ? ke : r);
236
+ return i + Ne + a + Ne + (r === void 0 ? je : r);
236
237
  }
237
238
  function M(e, t, n, r) {
238
239
  let i = "" + t, a = "" + n;
@@ -251,67 +252,67 @@ function N(e, t) {
251
252
  }
252
253
  //#endregion
253
254
  //#region src/DAG/data/list.js
254
- var Ne = class {
255
+ var Fe = class {
255
256
  constructor() {
256
257
  let e = {};
257
258
  e._next = e._prev = e, this._sentinel = e;
258
259
  }
259
260
  dequeue() {
260
261
  let e = this._sentinel, t = e._prev;
261
- if (t !== e) return Pe(t), t;
262
+ if (t !== e) return Ie(t), t;
262
263
  }
263
264
  enqueue(e) {
264
265
  let t = this._sentinel;
265
- e._prev && e._next && Pe(e), e._next = t._next, t._next._prev = e, t._next = e, e._prev = t;
266
+ e._prev && e._next && Ie(e), e._next = t._next, t._next._prev = e, t._next = e, e._prev = t;
266
267
  }
267
268
  toString() {
268
269
  let e = [], t = this._sentinel, n = t._prev;
269
- for (; n !== t;) e.push(JSON.stringify(n, Fe)), n = n._prev;
270
+ for (; n !== t;) e.push(JSON.stringify(n, Le)), n = n._prev;
270
271
  return "[" + e.join(", ") + "]";
271
272
  }
272
273
  };
273
- function Pe(e) {
274
+ function Ie(e) {
274
275
  e._prev._next = e._next, e._next._prev = e._prev, delete e._next, delete e._prev;
275
276
  }
276
- function Fe(e, t) {
277
+ function Le(e, t) {
277
278
  if (e !== "_next" && e !== "_prev") return t;
278
279
  }
279
280
  //#endregion
280
281
  //#region src/DAG/greedy-fas.js
281
- var Ie = () => 1;
282
- function Le(e, t) {
282
+ var Re = () => 1;
283
+ function ze(e, t) {
283
284
  if (e.nodeCount() <= 1) return [];
284
- let n = Be(e, t || Ie);
285
- return Re(n.graph, n.buckets, n.zeroIndex).flatMap((t) => e.outEdges(t.v, t.w));
285
+ let n = He(e, t || Re);
286
+ return Be(n.graph, n.buckets, n.zeroIndex).flatMap((t) => e.outEdges(t.v, t.w));
286
287
  }
287
- function Re(e, t, n) {
288
+ function Be(e, t, n) {
288
289
  let r = [], i = t[t.length - 1], a = t[0], o;
289
290
  for (; e.nodeCount();) {
290
- for (; o = a.dequeue();) ze(e, t, n, o);
291
- for (; o = i.dequeue();) ze(e, t, n, o);
291
+ for (; o = a.dequeue();) Ve(e, t, n, o);
292
+ for (; o = i.dequeue();) Ve(e, t, n, o);
292
293
  if (e.nodeCount()) {
293
294
  for (let i = t.length - 2; i > 0; --i) if (o = t[i].dequeue(), o) {
294
- r = r.concat(ze(e, t, n, o, !0));
295
+ r = r.concat(Ve(e, t, n, o, !0));
295
296
  break;
296
297
  }
297
298
  }
298
299
  }
299
300
  return r;
300
301
  }
301
- function ze(e, t, n, r, i) {
302
+ function Ve(e, t, n, r, i) {
302
303
  let a = i ? [] : void 0;
303
304
  return e.inEdges(r.v).forEach((r) => {
304
305
  let o = e.edge(r), s = e.node(r.v);
305
306
  i && a.push({
306
307
  v: r.v,
307
308
  w: r.w
308
- }), s.out -= o, Ve(t, n, s);
309
+ }), s.out -= o, Ue(t, n, s);
309
310
  }), e.outEdges(r.v).forEach((r) => {
310
311
  let i = e.edge(r), a = e.node(r.w);
311
- a.in -= i, Ve(t, n, a);
312
+ a.in -= i, Ue(t, n, a);
312
313
  }), e.removeNode(r.v), a;
313
314
  }
314
- function Be(e, t) {
315
+ function He(e, t) {
315
316
  let n = new k(), r = 0, i = 0;
316
317
  e.nodes().forEach((e) => {
317
318
  n.setNode(e, {
@@ -323,16 +324,16 @@ function Be(e, t) {
323
324
  let a = n.edge(e.v, e.w) || 0, o = t(e), s = a + o;
324
325
  n.setEdge(e.v, e.w, s), i = Math.max(i, n.node(e.v).out += o), r = Math.max(r, n.node(e.w).in += o);
325
326
  });
326
- let a = P(i + r + 3).map(() => new Ne()), o = r + 1;
327
+ let a = P(i + r + 3).map(() => new Fe()), o = r + 1;
327
328
  return n.nodes().forEach((e) => {
328
- Ve(a, o, n.node(e));
329
+ Ue(a, o, n.node(e));
329
330
  }), {
330
331
  graph: n,
331
332
  buckets: a,
332
333
  zeroIndex: o
333
334
  };
334
335
  }
335
- function Ve(e, t, n) {
336
+ function Ue(e, t, n) {
336
337
  n.out ? n.in ? e[n.out - n.in + t].enqueue(n) : e[e.length - 1].enqueue(n) : e[0].enqueue(n);
337
338
  }
338
339
  function P(e) {
@@ -370,7 +371,7 @@ function L(e) {
370
371
  t.setEdge(n, e.edge(n));
371
372
  }), t;
372
373
  }
373
- function He(e) {
374
+ function We(e) {
374
375
  let t = e.nodes().map((t) => {
375
376
  let n = {};
376
377
  return e.outEdges(t).forEach((t) => {
@@ -379,7 +380,7 @@ function He(e) {
379
380
  });
380
381
  return W(e.nodes(), t);
381
382
  }
382
- function Ue(e) {
383
+ function Ge(e) {
383
384
  let t = e.nodes().map((t) => {
384
385
  let n = {};
385
386
  return e.inEdges(t).forEach((t) => {
@@ -388,7 +389,7 @@ function Ue(e) {
388
389
  });
389
390
  return W(e.nodes(), t);
390
391
  }
391
- function We(e, t) {
392
+ function Ke(e, t) {
392
393
  let n = e.x, r = e.y, i = t.x - n, a = t.y - r, o = e.width / 2, s = e.height / 2;
393
394
  if (!i && !a) throw Error("Not possible to find intersection inside of the rectangle");
394
395
  let c, l;
@@ -398,13 +399,13 @@ function We(e, t) {
398
399
  };
399
400
  }
400
401
  function R(e) {
401
- let t = U(Ye(e) + 1).map(() => []);
402
+ let t = U(Ze(e) + 1).map(() => []);
402
403
  return e.nodes().forEach((n) => {
403
404
  let r = e.node(n), i = r.rank;
404
405
  i !== void 0 && (t[i][r.order] = n);
405
406
  }), t;
406
407
  }
407
- function Ge(e) {
408
+ function qe(e) {
408
409
  let t = e.nodes().map((t) => {
409
410
  let n = e.node(t).rank;
410
411
  return n === void 0 ? Number.MAX_VALUE : n;
@@ -414,7 +415,7 @@ function Ge(e) {
414
415
  Object.hasOwn(r, "rank") && (r.rank -= n);
415
416
  });
416
417
  }
417
- function Ke(e) {
418
+ function Je(e) {
418
419
  let t = e.nodes().map((t) => e.node(t).rank).filter((e) => e !== void 0), n = B(Math.min, t), r = [];
419
420
  e.nodes().forEach((t) => {
420
421
  let i = e.node(t).rank - n;
@@ -427,15 +428,15 @@ function Ke(e) {
427
428
  });
428
429
  });
429
430
  }
430
- function qe(e, t, n, r) {
431
+ function Ye(e, t, n, r) {
431
432
  let i = {
432
433
  width: 0,
433
434
  height: 0
434
435
  };
435
436
  return arguments.length >= 4 && (i.rank = n, i.order = r), F(e, "border", i, t);
436
437
  }
437
- var Je = 65535;
438
- function z(e, t = Je) {
438
+ var Xe = 65535;
439
+ function z(e, t = Xe) {
439
440
  let n = [];
440
441
  for (let r = 0; r < e.length; r += t) {
441
442
  let i = e.slice(r, r + t);
@@ -444,19 +445,20 @@ function z(e, t = Je) {
444
445
  return n;
445
446
  }
446
447
  function B(e, t) {
447
- if (t.length > Je) {
448
+ if (t.length > Xe) {
448
449
  let n = z(t);
449
450
  return e.apply(null, n.map((t) => e.apply(null, t)));
450
- } else return e.apply(null, t);
451
+ }
452
+ return e.apply(null, t);
451
453
  }
452
- function Ye(e) {
454
+ function Ze(e) {
453
455
  let t = e.nodes().map((t) => {
454
456
  let n = e.node(t).rank;
455
457
  return n === void 0 ? Number.MIN_VALUE : n;
456
458
  });
457
459
  return B(Math.max, t);
458
460
  }
459
- function Xe(e, t) {
461
+ function Qe(e, t) {
460
462
  let n = {
461
463
  lhs: [],
462
464
  rhs: []
@@ -473,12 +475,12 @@ function V(e, t) {
473
475
  console.log(e + " time: " + (Date.now() - n) + "ms");
474
476
  }
475
477
  }
476
- function Ze(e, t) {
478
+ function $e(e, t) {
477
479
  return t();
478
480
  }
479
- var Qe = 0;
481
+ var et = 0;
480
482
  function H(e) {
481
- let t = ++Qe;
483
+ let t = ++et;
482
484
  return e + String(t);
483
485
  }
484
486
  function U(e, t, n = 1) {
@@ -489,12 +491,12 @@ function U(e, t, n = 1) {
489
491
  for (let t = e; r(t); t += n) i.push(t);
490
492
  return i;
491
493
  }
492
- function $e(e, t) {
494
+ function tt(e, t) {
493
495
  let n = {};
494
496
  for (let r of t) e[r] !== void 0 && (n[r] = e[r]);
495
497
  return n;
496
498
  }
497
- function et(e, t) {
499
+ function nt(e, t) {
498
500
  let n = t;
499
501
  if (typeof t == "string") {
500
502
  let e = t;
@@ -506,23 +508,23 @@ function W(e, t) {
506
508
  return e.reduce((e, n, r) => (e[n] = t[r], e), {});
507
509
  }
508
510
  var G = {
509
- addBorderNode: qe,
511
+ addBorderNode: Ye,
510
512
  addDummyNode: F,
511
513
  applyWithChunking: B,
512
514
  asNonCompoundGraph: L,
513
515
  buildLayerMatrix: R,
514
- intersectRect: We,
515
- mapValues: et,
516
- maxRank: Ye,
517
- normalizeRanks: Ge,
518
- notime: Ze,
519
- partition: Xe,
520
- pick: $e,
521
- predecessorWeights: Ue,
516
+ intersectRect: Ke,
517
+ mapValues: nt,
518
+ maxRank: Ze,
519
+ normalizeRanks: qe,
520
+ notime: $e,
521
+ partition: Qe,
522
+ pick: tt,
523
+ predecessorWeights: Ge,
522
524
  range: U,
523
- removeEmptyRanks: Ke,
525
+ removeEmptyRanks: Je,
524
526
  simplify: I,
525
- successorWeights: He,
527
+ successorWeights: We,
526
528
  time: V,
527
529
  uniqueId: H,
528
530
  zipObject: W
@@ -530,7 +532,7 @@ var G = {
530
532
  //#endregion
531
533
  //#region src/DAG/acyclic.js
532
534
  function K(e) {
533
- (e.graph().acyclicer === "greedy" ? Le(e, t(e)) : nt(e)).forEach((t) => {
535
+ (e.graph().acyclicer === "greedy" ? ze(e, t(e)) : it(e)).forEach((t) => {
534
536
  let n = e.edge(t);
535
537
  e.removeEdge(t), n.forwardName = t.name, n.reversed = !0, e.setEdge(t.w, t.v, n, H("rev"));
536
538
  });
@@ -538,7 +540,7 @@ function K(e) {
538
540
  return (t) => e.edge(t).weight;
539
541
  }
540
542
  }
541
- function tt(e) {
543
+ function rt(e) {
542
544
  e.edges().forEach((t) => {
543
545
  let n = e.edge(t);
544
546
  if (n.reversed) {
@@ -548,7 +550,7 @@ function tt(e) {
548
550
  }
549
551
  });
550
552
  }
551
- function nt(e) {
553
+ function it(e) {
552
554
  let t = [], n = {}, r = {};
553
555
  function i(a) {
554
556
  Object.hasOwn(r, a) || (r[a] = !0, n[a] = !0, e.outEdges(a).forEach((e) => {
@@ -559,7 +561,7 @@ function nt(e) {
559
561
  }
560
562
  //#endregion
561
563
  //#region src/DAG/normalize.js
562
- function rt(e) {
564
+ function at(e) {
563
565
  e.graph().dummyChains = [], e.edges().forEach((t) => q(e, t));
564
566
  }
565
567
  function q(e, t) {
@@ -576,7 +578,7 @@ function q(e, t) {
576
578
  }, l = F(e, "edge", u, "_d"), r === c && (u.width = s.width, u.height = s.height, u.dummy = "edge-label", u.labelpos = s.labelpos), e.setEdge(n, l, { weight: s.weight }, o), d === 0 && e.graph().dummyChains.push(l), n = l;
577
579
  e.setEdge(n, i, { weight: s.weight }, o);
578
580
  }
579
- function it(e) {
581
+ function ot(e) {
580
582
  e.graph().dummyChains.forEach((t) => {
581
583
  let n = e.node(t), r = n.edgeLabel;
582
584
  e.setEdge(n.edgeObj, r);
@@ -589,7 +591,7 @@ function it(e) {
589
591
  }
590
592
  //#endregion
591
593
  //#region src/DAG/rank/util.js
592
- function at(e) {
594
+ function st(e) {
593
595
  function t(n) {
594
596
  let r = e.node(n);
595
597
  if (r && Object.prototype.hasOwnProperty.call(r, "rank")) return r.rank;
@@ -600,13 +602,13 @@ function at(e) {
600
602
  }
601
603
  (e.sources() || []).forEach(t);
602
604
  }
603
- function ot(e, t) {
605
+ function ct(e, t) {
604
606
  return e.node(t.w).rank - e.node(t.v).rank - e.edge(t).minlen;
605
607
  }
606
608
  //#endregion
607
609
  //#region src/DAG/rank/feasible-tree.js
608
- function st(e) {
609
- ct(e);
610
+ function lt(e) {
611
+ ut(e);
610
612
  let t = new k();
611
613
  e.nodes().forEach((e) => {
612
614
  t.setNode(e, {});
@@ -615,29 +617,29 @@ function st(e) {
615
617
  if (!n.length) return t;
616
618
  let r = n[0], i = /* @__PURE__ */ new Set([r]);
617
619
  for (; i.size < n.length;) {
618
- let r = lt(e, i);
620
+ let r = dt(e, i);
619
621
  if (!r) {
620
622
  let e = n.find((e) => !i.has(e));
621
623
  i.add(e), t.setNode(e, {});
622
624
  continue;
623
625
  }
624
626
  let { edgeObject: a, delta: o, attachFrom: s, attachTo: c } = r;
625
- ut(e, i, s, o), t.setEdge(a.v, a.w, {}), i.add(c);
627
+ ft(e, i, s, o), t.setEdge(a.v, a.w, {}), i.add(c);
626
628
  }
627
629
  return t;
628
630
  }
629
- function ct(e) {
631
+ function ut(e) {
630
632
  e.nodes().forEach((t) => {
631
633
  let n = e.node(t) || {};
632
634
  Object.prototype.hasOwnProperty.call(n, "rank") || (n.rank = 0, e.setNode(t, n));
633
635
  });
634
636
  }
635
- function lt(e, t) {
637
+ function dt(e, t) {
636
638
  let n = null;
637
639
  return e.edges().forEach((r) => {
638
640
  let i = t.has(r.v);
639
641
  if (i === t.has(r.w)) return;
640
- let a = ot(e, r), o = Math.abs(a);
642
+ let a = ct(e, r), o = Math.abs(a);
641
643
  if (!n || o < n.absoluteSlack) {
642
644
  let e = i ? r.v : r.w, t = i ? r.w : r.v;
643
645
  n = {
@@ -650,7 +652,7 @@ function lt(e, t) {
650
652
  }
651
653
  }), n;
652
654
  }
653
- function ut(e, t, n, r) {
655
+ function ft(e, t, n, r) {
654
656
  r && e.nodes().forEach((n) => {
655
657
  if (!t.has(n)) {
656
658
  let t = e.node(n);
@@ -662,56 +664,56 @@ function ut(e, t, n, r) {
662
664
  //#region src/DAG/rank/network-simplex.js
663
665
  function J(e) {
664
666
  let t = I(e);
665
- return at(t), t.nodes().forEach((n) => {
667
+ return st(t), t.nodes().forEach((n) => {
666
668
  let r = t.node(n), i = e.node(n) || {};
667
669
  i.rank = r.rank, e.setNode(n, i);
668
670
  }), e;
669
671
  }
670
- function dt(e, t) {}
671
- function ft(e, t) {}
672
- function pt(e, t, n) {
672
+ function pt(e, t) {}
673
+ function mt(e, t) {}
674
+ function ht(e, t, n) {
673
675
  return 0;
674
676
  }
675
- function mt(e) {
677
+ function gt(e) {
676
678
  return null;
677
679
  }
678
- function ht(e, t) {
680
+ function _t(e, t) {
679
681
  return null;
680
682
  }
681
- J.initLowLimValues = dt, J.initCutValues = ft, J.calcCutValue = pt, J.leaveEdge = mt, J.enterEdge = ht;
683
+ J.initLowLimValues = pt, J.initCutValues = mt, J.calcCutValue = ht, J.leaveEdge = gt, J.enterEdge = _t;
682
684
  //#endregion
683
685
  //#region src/DAG/rank/index.js
684
- var gt = at;
685
- function _t(e) {
686
+ var vt = st;
687
+ function yt(e) {
686
688
  let t = e.graph().ranker;
687
689
  if (t instanceof Function) return t(e);
688
690
  switch (e.graph().ranker) {
689
691
  case "network-simplex":
690
- Y(e);
692
+ St(e);
691
693
  break;
692
694
  case "tight-tree":
693
- yt(e);
695
+ xt(e);
694
696
  break;
695
697
  case "longest-path":
696
- vt(e);
698
+ bt(e);
697
699
  break;
698
700
  case "none": break;
699
- default: Y(e);
701
+ default: St(e);
700
702
  }
701
703
  }
702
- var vt = gt;
703
- function yt(e) {
704
- gt(e), st(e);
704
+ var bt = vt;
705
+ function xt(e) {
706
+ vt(e), lt(e);
705
707
  }
706
- function Y(e) {
708
+ function St(e) {
707
709
  J(e);
708
710
  }
709
711
  //#endregion
710
712
  //#region src/DAG/parent-dummy-chains.js
711
- function bt(e) {
712
- let t = X(e);
713
+ function Y(e) {
714
+ let t = wt(e);
713
715
  e.graph().dummyChains.forEach((n) => {
714
- let r = e.node(n), i = r.edgeObj, a = xt(e, t, i.v, i.w), o = a.path, s = a.lca, c = 0, l = o[c], u = !0, d = n;
716
+ let r = e.node(n), i = r.edgeObj, a = Ct(e, t, i.v, i.w), o = a.path, s = a.lca, c = 0, l = o[c], u = !0, d = n;
715
717
  for (; d !== i.w;) {
716
718
  if (r = e.node(d), u) {
717
719
  for (; (l = o[c]) !== s && e.node(l).maxRank < r.rank;) c++;
@@ -725,7 +727,7 @@ function bt(e) {
725
727
  }
726
728
  });
727
729
  }
728
- function xt(e, t, n, r) {
730
+ function Ct(e, t, n, r) {
729
731
  let i = [], a = [], o = Math.min(t[n].low, t[r].low), s = Math.max(t[n].lim, t[r].lim), c, l;
730
732
  c = n;
731
733
  do
@@ -737,7 +739,7 @@ function xt(e, t, n, r) {
737
739
  lca: l
738
740
  };
739
741
  }
740
- function X(e) {
742
+ function wt(e) {
741
743
  let t = {}, n = 0;
742
744
  function r(i) {
743
745
  let a = n;
@@ -750,17 +752,17 @@ function X(e) {
750
752
  }
751
753
  //#endregion
752
754
  //#region src/DAG/nested-graph.js
753
- function St(e) {
754
- let t = G.addDummyNode(e, "root", {}, "_root"), n = wt(e), r = Object.values(n), i = G.applyWithChunking(Math.max, r) - 1, a = 2 * i + 1;
755
+ function X(e) {
756
+ let t = G.addDummyNode(e, "root", {}, "_root"), n = Et(e), r = Object.values(n), i = G.applyWithChunking(Math.max, r) - 1, a = 2 * i + 1;
755
757
  e.graph().nestingRoot = t, e.edges().forEach((t) => {
756
758
  e.edge(t).minlen *= a;
757
759
  });
758
- let o = Tt(e) + 1;
760
+ let o = Dt(e) + 1;
759
761
  e.children().forEach((r) => {
760
- Ct(e, t, a, o, i, n, r);
762
+ Tt(e, t, a, o, i, n, r);
761
763
  }), e.graph().nodeRankFactor = a;
762
764
  }
763
- function Ct(e, t, n, r, i, a, o) {
765
+ function Tt(e, t, n, r, i, a, o) {
764
766
  let s = e.children(o);
765
767
  if (!s.length) {
766
768
  o !== t && e.setEdge(t, o, {
@@ -771,7 +773,7 @@ function Ct(e, t, n, r, i, a, o) {
771
773
  }
772
774
  let c = G.addBorderNode(e, "_bt"), l = G.addBorderNode(e, "_bb"), u = e.node(o);
773
775
  e.setParent(c, o), u.borderTop = c, e.setParent(l, o), u.borderBottom = l, s.forEach((s) => {
774
- Ct(e, t, n, r, i, a, s);
776
+ Tt(e, t, n, r, i, a, s);
775
777
  let u = e.node(s), d = u.borderTop ? u.borderTop : s, f = u.borderBottom ? u.borderBottom : s, p = u.borderTop ? r : 2 * r, m = d === f ? i - a[o] + 1 : 1;
776
778
  e.setEdge(c, d, {
777
779
  weight: p,
@@ -787,7 +789,7 @@ function Ct(e, t, n, r, i, a, o) {
787
789
  minlen: i + a[o]
788
790
  });
789
791
  }
790
- function wt(e) {
792
+ function Et(e) {
791
793
  let t = {};
792
794
  function n(r, i) {
793
795
  let a = e.children(r);
@@ -795,10 +797,10 @@ function wt(e) {
795
797
  }
796
798
  return e.children().forEach((e) => n(e, 1)), t;
797
799
  }
798
- function Tt(e) {
800
+ function Dt(e) {
799
801
  return e.edges().reduce((t, n) => t + e.edge(n).weight, 0);
800
802
  }
801
- function Et(e) {
803
+ function Ot(e) {
802
804
  let t = e.graph();
803
805
  e.removeNode(t.nestingRoot), delete t.nestingRoot, e.edges().forEach((t) => {
804
806
  e.edge(t).nestingEdge && e.removeEdge(t);
@@ -806,17 +808,17 @@ function Et(e) {
806
808
  }
807
809
  //#endregion
808
810
  //#region src/DAG/add-border-segments.js
809
- function Dt(e) {
811
+ function kt(e) {
810
812
  function t(n) {
811
813
  let r = e.children(n), i = e.node(n);
812
814
  if (r.length && r.forEach(t), Object.hasOwn(i, "minRank")) {
813
815
  i.borderLeft = [], i.borderRight = [];
814
- for (let t = i.minRank, r = i.maxRank + 1; t < r; ++t) Ot(e, "borderLeft", "_bl", n, i, t), Ot(e, "borderRight", "_br", n, i, t);
816
+ for (let t = i.minRank, r = i.maxRank + 1; t < r; ++t) At(e, "borderLeft", "_bl", n, i, t), At(e, "borderRight", "_br", n, i, t);
815
817
  }
816
818
  }
817
819
  e.children().forEach(t);
818
820
  }
819
- function Ot(e, t, n, r, i, a) {
821
+ function At(e, t, n, r, i, a) {
820
822
  let o = {
821
823
  width: 0,
822
824
  height: 0,
@@ -827,55 +829,55 @@ function Ot(e, t, n, r, i, a) {
827
829
  }
828
830
  //#endregion
829
831
  //#region src/DAG/coordinate-system.js
830
- function kt(e) {
832
+ function jt(e) {
831
833
  let t = e.graph().rankdir.toLowerCase();
832
- (t === "lr" || t === "rl") && jt(e);
834
+ (t === "lr" || t === "rl") && Nt(e);
833
835
  }
834
- function At(e) {
836
+ function Mt(e) {
835
837
  let t = e.graph().rankdir.toLowerCase();
836
- (t === "bt" || t === "rl") && Mt(e), (t === "lr" || t === "rl") && (Pt(e), jt(e));
838
+ (t === "bt" || t === "rl") && Ft(e), (t === "lr" || t === "rl") && (Lt(e), Nt(e));
837
839
  }
838
- function jt(e) {
840
+ function Nt(e) {
839
841
  e.nodes().forEach((t) => {
840
- Z(e.node(t));
842
+ Pt(e.node(t));
841
843
  }), e.edges().forEach((t) => {
842
- Z(e.edge(t));
844
+ Pt(e.edge(t));
843
845
  });
844
846
  }
845
- function Z(e) {
847
+ function Pt(e) {
846
848
  let t = e.width;
847
849
  e.width = e.height, e.height = t;
848
850
  }
849
- function Mt(e) {
851
+ function Ft(e) {
850
852
  e.nodes().forEach((t) => {
851
- Nt(e.node(t));
853
+ It(e.node(t));
852
854
  }), e.edges().forEach((t) => {
853
855
  let n = e.edge(t);
854
- n.points.forEach(Nt), Object.hasOwn(n, "y") && Nt(n);
856
+ n.points.forEach(It), Object.hasOwn(n, "y") && It(n);
855
857
  });
856
858
  }
857
- function Nt(e) {
859
+ function It(e) {
858
860
  e.y = -e.y;
859
861
  }
860
- function Pt(e) {
862
+ function Lt(e) {
861
863
  e.nodes().forEach((t) => {
862
- Ft(e.node(t));
864
+ Rt(e.node(t));
863
865
  }), e.edges().forEach((t) => {
864
866
  let n = e.edge(t);
865
- n.points.forEach(Ft), Object.hasOwn(n, "x") && Ft(n);
867
+ n.points.forEach(Rt), Object.hasOwn(n, "x") && Rt(n);
866
868
  });
867
869
  }
868
- function Ft(e) {
870
+ function Rt(e) {
869
871
  let t = e.x;
870
872
  e.x = e.y, e.y = t;
871
873
  }
872
- var It = {
873
- adjust: kt,
874
- undo: At
874
+ var zt = {
875
+ adjust: jt,
876
+ undo: Mt
875
877
  };
876
878
  //#endregion
877
879
  //#region src/DAG/order/init-order.js
878
- function Lt(e) {
880
+ function Bt(e) {
879
881
  let t = {}, n = e.nodes().filter((t) => e.children(t).length === 0), r = n.map((t) => e.node(t).rank), i = U(B(Math.max, r) + 1).map(() => []);
880
882
  function a(n) {
881
883
  if (t[n]) return;
@@ -887,12 +889,12 @@ function Lt(e) {
887
889
  }
888
890
  //#endregion
889
891
  //#region src/DAG/order/cross-count.js
890
- function Rt(e, t) {
892
+ function Vt(e, t) {
891
893
  let n = 0;
892
- for (let r = 1; r < t.length; ++r) n += zt(e, t[r - 1], t[r]);
894
+ for (let r = 1; r < t.length; ++r) n += Ht(e, t[r - 1], t[r]);
893
895
  return n;
894
896
  }
895
- function zt(e, t, n) {
897
+ function Ht(e, t, n) {
896
898
  let r = W(n, n.map((e, t) => t)), i = t.flatMap((t) => e.outEdges(t).map((t) => ({
897
899
  pos: r[t.w],
898
900
  weight: e.edge(t).weight
@@ -911,7 +913,7 @@ function zt(e, t, n) {
911
913
  }
912
914
  //#endregion
913
915
  //#region src/DAG/order/barycenter.js
914
- function Q(e, t = []) {
916
+ function Ut(e, t = []) {
915
917
  return t.map((t) => {
916
918
  let n = e.inEdges(t);
917
919
  if (!n.length) return { v: t };
@@ -934,7 +936,7 @@ function Q(e, t = []) {
934
936
  }
935
937
  //#endregion
936
938
  //#region src/DAG/order/resolve-conflicts.js
937
- function Bt(e, t) {
939
+ function Z(e, t) {
938
940
  let n = {};
939
941
  return e.forEach((e, t) => {
940
942
  let r = n[e.v] = {
@@ -948,13 +950,13 @@ function Bt(e, t) {
948
950
  }), t.edges().forEach((e) => {
949
951
  let t = n[e.v], r = n[e.w];
950
952
  t !== void 0 && r !== void 0 && (r.indegree++, t.out.push(r));
951
- }), Vt(Object.values(n).filter((e) => !e.indegree));
953
+ }), Wt(Object.values(n).filter((e) => !e.indegree));
952
954
  }
953
- function Vt(e) {
955
+ function Wt(e) {
954
956
  let t = [];
955
957
  function n(e) {
956
958
  return (t) => {
957
- t.merged || (t.barycenter === void 0 || e.barycenter === void 0 || t.barycenter >= e.barycenter) && Ht(e, t);
959
+ t.merged || (t.barycenter === void 0 || e.barycenter === void 0 || t.barycenter >= e.barycenter) && Q(e, t);
958
960
  };
959
961
  }
960
962
  function r(t) {
@@ -966,50 +968,50 @@ function Vt(e) {
966
968
  let i = e.pop();
967
969
  t.push(i), i.in.reverse().forEach(n(i)), i.out.forEach(r(i));
968
970
  }
969
- return t.filter((e) => !e.merged).map((e) => $e(e, [
971
+ return t.filter((e) => !e.merged).map((e) => tt(e, [
970
972
  "vs",
971
973
  "i",
972
974
  "barycenter",
973
975
  "weight"
974
976
  ]));
975
977
  }
976
- function Ht(e, t) {
978
+ function Q(e, t) {
977
979
  let n = 0, r = 0;
978
980
  e.weight && (n += e.barycenter * e.weight, r += e.weight), t.weight && (n += t.barycenter * t.weight, r += t.weight), e.vs = t.vs.concat(e.vs), e.barycenter = n / r, e.weight = r, e.i = Math.min(t.i, e.i), t.merged = !0;
979
981
  }
980
982
  //#endregion
981
983
  //#region src/DAG/order/sort.js
982
- function Ut(e, t) {
983
- let n = Xe(e, (e) => Object.hasOwn(e, "barycenter")), r = n.lhs, i = n.rhs.sort((e, t) => t.i - e.i), a = [], o = 0, s = 0, c = 0;
984
- r.sort(Gt(!!t)), c = Wt(a, i, c), r.forEach((e) => {
985
- c += e.vs.length, a.push(e.vs), o += e.barycenter * e.weight, s += e.weight, c = Wt(a, i, c);
984
+ function Gt(e, t) {
985
+ let n = Qe(e, (e) => Object.hasOwn(e, "barycenter")), r = n.lhs, i = n.rhs.sort((e, t) => t.i - e.i), a = [], o = 0, s = 0, c = 0;
986
+ r.sort(qt(!!t)), c = Kt(a, i, c), r.forEach((e) => {
987
+ c += e.vs.length, a.push(e.vs), o += e.barycenter * e.weight, s += e.weight, c = Kt(a, i, c);
986
988
  });
987
989
  let l = { vs: a.flat(!0) };
988
990
  return s && (l.barycenter = o / s, l.weight = s), l;
989
991
  }
990
- function Wt(e, t, n) {
992
+ function Kt(e, t, n) {
991
993
  let r;
992
994
  for (; t.length && (r = t[t.length - 1]).i <= n;) t.pop(), e.push(r.vs), n++;
993
995
  return n;
994
996
  }
995
- function Gt(e) {
997
+ function qt(e) {
996
998
  return (t, n) => t.barycenter < n.barycenter ? -1 : t.barycenter > n.barycenter ? 1 : e ? n.i - t.i : t.i - n.i;
997
999
  }
998
1000
  //#endregion
999
1001
  //#region src/DAG/order/sort-subgraph.js
1000
- function Kt(e, t, n, r) {
1002
+ function Jt(e, t, n, r) {
1001
1003
  let i = e.children(t), a = e.node(t), o = a ? a.borderLeft : void 0, s = a ? a.borderRight : void 0, c = {};
1002
1004
  o && (i = i.filter((e) => e !== o && e !== s));
1003
- let l = Q(e, i);
1005
+ let l = Ut(e, i);
1004
1006
  l.forEach((t) => {
1005
1007
  if (e.children(t.v).length) {
1006
- let i = Kt(e, t.v, n, r);
1007
- c[t.v] = i, Object.hasOwn(i, "barycenter") && Jt(t, i);
1008
+ let i = Jt(e, t.v, n, r);
1009
+ c[t.v] = i, Object.hasOwn(i, "barycenter") && Xt(t, i);
1008
1010
  }
1009
1011
  });
1010
- let u = Bt(l, n);
1011
- qt(u, c);
1012
- let d = Ut(u, r);
1012
+ let u = Z(l, n);
1013
+ Yt(u, c);
1014
+ let d = Gt(u, r);
1013
1015
  if (o && (d.vs = [
1014
1016
  o,
1015
1017
  d.vs,
@@ -1020,19 +1022,19 @@ function Kt(e, t, n, r) {
1020
1022
  }
1021
1023
  return d;
1022
1024
  }
1023
- function qt(e, t) {
1025
+ function Yt(e, t) {
1024
1026
  e.forEach((e) => {
1025
1027
  e.vs = e.vs.flatMap((e) => t[e] ? t[e].vs : e);
1026
1028
  });
1027
1029
  }
1028
- function Jt(e, t) {
1030
+ function Xt(e, t) {
1029
1031
  e.barycenter === void 0 ? (e.barycenter = t.barycenter, e.weight = t.weight) : (e.barycenter = (e.barycenter * e.weight + t.barycenter * t.weight) / (e.weight + t.weight), e.weight += t.weight);
1030
1032
  }
1031
1033
  //#endregion
1032
1034
  //#region src/DAG/order/build-layer-graph.js
1033
- function Yt(e, t, n, r) {
1035
+ function Zt(e, t, n, r) {
1034
1036
  r ||= e.nodes();
1035
- let i = Xt(e), a = new k({ compound: !0 }).setGraph({ root: i }).setDefaultNodeLabel((t) => e.node(t));
1037
+ let i = Qt(e), a = new k({ compound: !0 }).setGraph({ root: i }).setDefaultNodeLabel((t) => e.node(t));
1036
1038
  return r.forEach((r) => {
1037
1039
  let o = e.node(r), s = e.parent(r);
1038
1040
  (o.rank === t || o.minRank <= t && t <= o.maxRank) && (a.setNode(r), a.setParent(r, s || i), e[n](r).forEach((t) => {
@@ -1044,14 +1046,14 @@ function Yt(e, t, n, r) {
1044
1046
  }));
1045
1047
  }), a;
1046
1048
  }
1047
- function Xt(e) {
1049
+ function Qt(e) {
1048
1050
  let t;
1049
1051
  for (; e.hasNode(t = H("_root")););
1050
1052
  return t;
1051
1053
  }
1052
1054
  //#endregion
1053
1055
  //#region src/DAG/order/add-subgraph-constraints.js
1054
- function Zt(e, t, n) {
1056
+ function $t(e, t, n) {
1055
1057
  let r = {}, i;
1056
1058
  n.forEach((n) => {
1057
1059
  let a = e.parent(n), o, s;
@@ -1066,22 +1068,22 @@ function Zt(e, t, n) {
1066
1068
  }
1067
1069
  //#endregion
1068
1070
  //#region src/DAG/order/index.js
1069
- function Qt(e, t = {}) {
1071
+ function en(e, t = {}) {
1070
1072
  if (typeof t.customOrder == "function") {
1071
- t.customOrder(e, Qt);
1073
+ t.customOrder(e, en);
1072
1074
  return;
1073
1075
  }
1074
- let n = Ye(e), r = $t(e, U(1, n + 1), "inEdges"), i = $t(e, U(n - 1, -1, -1), "outEdges"), a = Lt(e);
1075
- if (tn(e, a), t.disableOptimalOrderHeuristic) return;
1076
+ let n = Ze(e), r = tn(e, U(1, n + 1), "inEdges"), i = tn(e, U(n - 1, -1, -1), "outEdges"), a = Bt(e);
1077
+ if (rn(e, a), t.disableOptimalOrderHeuristic) return;
1076
1078
  let o = Infinity, s, c = t.constraints || [];
1077
1079
  for (let t = 0, n = 0; n < 4; ++t, ++n) {
1078
- en(t % 2 == 0 ? r : i, t % 4 >= 2, c), a = R(e);
1079
- let l = Rt(e, a);
1080
+ nn(t % 2 == 0 ? r : i, t % 4 >= 2, c), a = R(e);
1081
+ let l = Vt(e, a);
1080
1082
  l < o ? (o = l, n = 0, s = structuredClone(a)) : l === o && (s = structuredClone(a));
1081
1083
  }
1082
- tn(e, s);
1084
+ rn(e, s);
1083
1085
  }
1084
- function $t(e, t, n) {
1086
+ function tn(e, t, n) {
1085
1087
  let r = /* @__PURE__ */ new Map();
1086
1088
  function i(e, t) {
1087
1089
  r.has(e) || r.set(e, []), r.get(e).push(t);
@@ -1090,19 +1092,19 @@ function $t(e, t, n) {
1090
1092
  let n = e.node(t);
1091
1093
  if (typeof n.rank == "number" && i(n.rank, t), typeof n.minRank == "number" && typeof n.maxRank == "number") for (let e = n.minRank; e <= n.maxRank; e++) e !== n.rank && i(e, t);
1092
1094
  }
1093
- return t.map((t) => Yt(e, t, n, r.get(t) || []));
1095
+ return t.map((t) => Zt(e, t, n, r.get(t) || []));
1094
1096
  }
1095
- function en(e, t, n) {
1097
+ function nn(e, t, n) {
1096
1098
  let r = new k();
1097
1099
  e.forEach((e) => {
1098
1100
  n.forEach((e) => r.setEdge(e.left, e.right));
1099
- let i = e.graph().root, a = Kt(e, i, r, t);
1101
+ let i = e.graph().root, a = Jt(e, i, r, t);
1100
1102
  a.vs.forEach((t, n) => {
1101
1103
  e.node(t).order = n;
1102
- }), Zt(e, r, a.vs);
1104
+ }), $t(e, r, a.vs);
1103
1105
  });
1104
1106
  }
1105
- function tn(e, t) {
1107
+ function rn(e, t) {
1106
1108
  Object.values(t).forEach((t) => {
1107
1109
  t.forEach((t, n) => {
1108
1110
  e.node(t).order = n;
@@ -1111,30 +1113,30 @@ function tn(e, t) {
1111
1113
  }
1112
1114
  //#endregion
1113
1115
  //#region src/DAG/position/bk.js
1114
- function $(e, t) {
1116
+ function an(e, t) {
1115
1117
  let n = {};
1116
1118
  function r(t, r) {
1117
1119
  let i = 0, a = 0, o = t.length, s = r[r.length - 1];
1118
1120
  return r.forEach((t, c) => {
1119
- let l = rn(e, t), u = l ? e.node(l).order : o;
1121
+ let l = on(e, t), u = l ? e.node(l).order : o;
1120
1122
  (l || t === s) && (r.slice(a, c + 1).forEach((t) => {
1121
1123
  e.predecessors(t).forEach((r) => {
1122
1124
  let a = e.node(r), o = a.order;
1123
- (o < i || u < o) && !(a.dummy && e.node(t).dummy) && an(n, r, t);
1125
+ (o < i || u < o) && !(a.dummy && e.node(t).dummy) && sn(n, r, t);
1124
1126
  });
1125
1127
  }), a = c + 1, i = u);
1126
1128
  }), r;
1127
1129
  }
1128
1130
  return t.length && t.reduce(r), n;
1129
1131
  }
1130
- function nn(e, t) {
1132
+ function $(e, t) {
1131
1133
  let n = {};
1132
1134
  function r(t, r, i, a, o) {
1133
1135
  let s;
1134
1136
  U(r, i).forEach((r) => {
1135
1137
  s = t[r], e.node(s).dummy && e.predecessors(s).forEach((t) => {
1136
1138
  let r = e.node(t);
1137
- r.dummy && (r.order < a || r.order > o) && an(n, t, s);
1139
+ r.dummy && (r.order < a || r.order > o) && sn(n, t, s);
1138
1140
  });
1139
1141
  });
1140
1142
  }
@@ -1150,10 +1152,10 @@ function nn(e, t) {
1150
1152
  }
1151
1153
  return t.length && t.reduce(i), n;
1152
1154
  }
1153
- function rn(e, t) {
1155
+ function on(e, t) {
1154
1156
  if (e.node(t).dummy) return e.predecessors(t).find((t) => e.node(t).dummy);
1155
1157
  }
1156
- function an(e, t, n) {
1158
+ function sn(e, t, n) {
1157
1159
  if (t > n) {
1158
1160
  let e = t;
1159
1161
  t = n, n = e;
@@ -1161,14 +1163,14 @@ function an(e, t, n) {
1161
1163
  let r = e[t];
1162
1164
  r || (e[t] = r = {}), r[n] = !0;
1163
1165
  }
1164
- function on(e, t, n) {
1166
+ function cn(e, t, n) {
1165
1167
  if (t > n) {
1166
1168
  let e = t;
1167
1169
  t = n, n = e;
1168
1170
  }
1169
1171
  return !!e[t] && Object.hasOwn(e[t], n);
1170
1172
  }
1171
- function sn(e, t, n, r) {
1173
+ function ln(e, t, n, r) {
1172
1174
  let i = {}, a = {}, o = {};
1173
1175
  return t.forEach((e) => {
1174
1176
  e.forEach((e, t) => {
@@ -1183,7 +1185,7 @@ function sn(e, t, n, r) {
1183
1185
  let r = (s.length - 1) / 2;
1184
1186
  for (let c = Math.floor(r), l = Math.ceil(r); c <= l; ++c) {
1185
1187
  let r = s[c];
1186
- a[e] === e && t < o[r] && !on(n, e, r) && (a[r] = e, a[e] = i[e] = i[r], t = o[r]);
1188
+ a[e] === e && t < o[r] && !cn(n, e, r) && (a[r] = e, a[e] = i[e] = i[r], t = o[r]);
1187
1189
  }
1188
1190
  }
1189
1191
  });
@@ -1192,8 +1194,8 @@ function sn(e, t, n, r) {
1192
1194
  align: a
1193
1195
  };
1194
1196
  }
1195
- function cn(e, t, n, r, i) {
1196
- let a = {}, o = ln(e, t, n, i), s = i ? "borderLeft" : "borderRight";
1197
+ function un(e, t, n, r, i) {
1198
+ let a = {}, o = dn(e, t, n, i), s = i ? "borderLeft" : "borderRight";
1197
1199
  function c(e, t) {
1198
1200
  let n = o.nodes().slice(), r = {}, i = n.pop();
1199
1201
  for (; i;) {
@@ -1216,8 +1218,8 @@ function cn(e, t, n, r, i) {
1216
1218
  a[e] = a[n[e]];
1217
1219
  }), a;
1218
1220
  }
1219
- function ln(e, t, n, r) {
1220
- let i = new e.constructor(), a = e.graph(), o = mn(a.nodesep, a.edgesep, r);
1221
+ function dn(e, t, n, r) {
1222
+ let i = new e.constructor(), a = e.graph(), o = gn(a.nodesep, a.edgesep, r);
1221
1223
  return t.forEach((t) => {
1222
1224
  let r;
1223
1225
  t.forEach((t) => {
@@ -1230,82 +1232,78 @@ function ln(e, t, n, r) {
1230
1232
  });
1231
1233
  }), i;
1232
1234
  }
1233
- function un(e, t) {
1235
+ function fn(e, t) {
1234
1236
  return Object.values(t).reduce((t, n) => {
1235
1237
  let r = -Infinity, i = Infinity;
1236
1238
  Object.entries(n).forEach(([t, n]) => {
1237
- let a = hn(e, t) / 2;
1239
+ let a = _n(e, t) / 2;
1238
1240
  r = Math.max(n + a, r), i = Math.min(n - a, i);
1239
1241
  });
1240
1242
  let a = r - i;
1241
1243
  return a < t[0] && (t = [a, n]), t;
1242
1244
  }, [Infinity, null])[1];
1243
1245
  }
1244
- function dn(e, t) {
1246
+ function pn(e, t) {
1245
1247
  let n = Object.values(t), r = B(Math.min, n), i = B(Math.max, n);
1246
1248
  ["u", "d"].forEach((n) => {
1247
1249
  ["l", "r"].forEach((a) => {
1248
1250
  let o = n + a, s = e[o];
1249
1251
  if (s === t) return;
1250
1252
  let c = Object.values(s), l = r - B(Math.min, c);
1251
- a !== "l" && (l = i - B(Math.max, c)), l && (s = et(s, (e) => e + l), e[o] = s);
1253
+ a !== "l" && (l = i - B(Math.max, c)), l && (s = nt(s, (e) => e + l), e[o] = s);
1252
1254
  });
1253
1255
  });
1254
1256
  }
1255
- function fn(e, t) {
1256
- return et(e.ul, (n, r) => {
1257
+ function mn(e, t) {
1258
+ return nt(e.ul, (n, r) => {
1257
1259
  if (t) return e[t.toLowerCase()][r];
1258
1260
  let i = Object.values(e).map((e) => e[r]).sort((e, t) => e - t);
1259
1261
  return (i[1] + i[2]) / 2;
1260
1262
  });
1261
1263
  }
1262
- function pn(e) {
1263
- let t = R(e), n = Object.assign($(e, t), nn(e, t)), r = {}, i;
1264
+ function hn(e) {
1265
+ let t = R(e), n = Object.assign(an(e, t), $(e, t)), r = {}, i;
1264
1266
  return ["u", "d"].forEach((a) => {
1265
1267
  i = a === "u" ? t : Object.values(t).reverse(), ["l", "r"].forEach((t) => {
1266
1268
  let o = i;
1267
1269
  t === "r" && (o = o.map((e) => Object.values(e).reverse()));
1268
- let s = (a === "u" ? e.predecessors : e.successors).bind(e), c = sn(e, o, n, s), l = cn(e, o, c.root, c.align, t === "r");
1269
- t === "r" && (l = et(l, (e) => -e)), r[a + t] = l;
1270
+ let s = (a === "u" ? e.predecessors : e.successors).bind(e), c = ln(e, o, n, s), l = un(e, o, c.root, c.align, t === "r");
1271
+ t === "r" && (l = nt(l, (e) => -e)), r[a + t] = l;
1270
1272
  });
1271
- }), dn(r, un(e, r)), fn(r, e.graph().align);
1273
+ }), pn(r, fn(e, r)), mn(r, e.graph().align);
1272
1274
  }
1273
- function mn(e, t, n) {
1275
+ function gn(e, t, n) {
1274
1276
  return (r, i, a) => {
1275
1277
  let o = r.node(i), s = r.node(a), c = 0, l;
1276
1278
  if (c += o.width / 2, Object.hasOwn(o, "labelpos")) switch (o.labelpos.toLowerCase()) {
1277
1279
  case "l":
1278
1280
  l = -o.width / 2;
1279
1281
  break;
1280
- case "r":
1281
- l = o.width / 2;
1282
- break;
1282
+ case "r": l = o.width / 2;
1283
1283
  }
1284
1284
  if (l && (c += n ? l : -l), l = 0, c += (o.dummy ? t : e) / 2, c += (s.dummy ? t : e) / 2, c += s.width / 2, Object.hasOwn(s, "labelpos")) switch (s.labelpos.toLowerCase()) {
1285
1285
  case "l":
1286
1286
  l = s.width / 2;
1287
1287
  break;
1288
- case "r":
1289
- l = -s.width / 2;
1290
- break;
1288
+ case "r": l = -s.width / 2;
1291
1289
  }
1292
1290
  return l && (c += n ? l : -l), l = 0, c;
1293
1291
  };
1294
1292
  }
1295
- function hn(e, t) {
1293
+ function _n(e, t) {
1296
1294
  return e.node(t).width;
1297
1295
  }
1298
1296
  //#endregion
1299
1297
  //#region src/DAG/position/index.js
1300
- function gn(e) {
1298
+ function vn(e) {
1301
1299
  let t = L(e);
1302
- _n(t);
1303
- let n = pn(t);
1300
+ yn(t);
1301
+ let n = hn(t);
1304
1302
  Object.entries(n).forEach(([t, n]) => {
1305
1303
  e.node(t).x = n;
1306
1304
  });
1307
1305
  }
1308
- function _n(e) {
1306
+ function yn(e) {
1309
1307
  let t = R(e), n = e.graph().ranksep, r = 0;
1310
1308
  t.forEach((t) => {
1311
1309
  let i = t.reduce((t, n) => {
@@ -1319,17 +1317,17 @@ function _n(e) {
1319
1317
  }
1320
1318
  //#endregion
1321
1319
  //#region src/DAG/layout.js
1322
- function vn(e, t = {}) {
1323
- let n = t.debugTiming ? V : Ze;
1320
+ function bn(e, t = {}) {
1321
+ let n = t.debugTiming ? V : $e;
1324
1322
  return n("layout", () => {
1325
- let r = n(" buildLayoutGraph", () => kn(e));
1326
- return n(" runLayout", () => yn(r, n, t)), n(" updateInputGraph", () => bn(e, r)), r;
1323
+ let r = n(" buildLayoutGraph", () => jn(e));
1324
+ return n(" runLayout", () => xn(r, n, t)), n(" updateInputGraph", () => Sn(e, r)), r;
1327
1325
  });
1328
1326
  }
1329
- function yn(e, t, n) {
1330
- t(" makeSpaceForEdgeLabels", () => An(e)), t(" removeSelfEdges", () => Bn(e)), t(" acyclic", () => K(e)), t(" nestingGraph.run", () => St(e)), t(" rank", () => _t(L(e))), t(" injectEdgeLabelProxies", () => jn(e)), t(" removeEmptyRanks", () => Ke(e)), t(" nestingGraph.cleanup", () => Et(e)), t(" normalizeRanks", () => Ge(e)), t(" assignRankMinMax", () => Mn(e)), t(" removeEdgeLabelProxies", () => Nn(e)), t(" normalize.run", () => rt(e)), t(" parentDummyChains", () => bt(e)), t(" addBorderSegments", () => Dt(e)), t(" order", () => Qt(e, n)), t(" insertSelfEdges", () => Vn(e)), t(" adjustCoordinateSystem", () => It.adjust(e)), t(" position", () => gn(e)), t(" positionSelfEdges", () => Hn(e)), t(" removeBorderNodes", () => zn(e)), t(" normalize.undo", () => it(e)), t(" fixupEdgeLabelCoords", () => Ln(e)), t(" undoCoordinateSystem", () => It.undo(e)), t(" translateGraph", () => Pn(e)), t(" assignNodeIntersects", () => In(e)), t(" reversePoints", () => Rn(e)), t(" acyclic.undo", () => tt(e));
1327
+ function xn(e, t, n) {
1328
+ t(" makeSpaceForEdgeLabels", () => Mn(e)), t(" removeSelfEdges", () => Hn(e)), t(" acyclic", () => K(e)), t(" nestingGraph.run", () => X(e)), t(" rank", () => yt(L(e))), t(" injectEdgeLabelProxies", () => Nn(e)), t(" removeEmptyRanks", () => Je(e)), t(" nestingGraph.cleanup", () => Ot(e)), t(" normalizeRanks", () => qe(e)), t(" assignRankMinMax", () => Pn(e)), t(" removeEdgeLabelProxies", () => Fn(e)), t(" normalize.run", () => at(e)), t(" parentDummyChains", () => Y(e)), t(" addBorderSegments", () => kt(e)), t(" order", () => en(e, n)), t(" insertSelfEdges", () => Un(e)), t(" adjustCoordinateSystem", () => zt.adjust(e)), t(" position", () => vn(e)), t(" positionSelfEdges", () => Wn(e)), t(" removeBorderNodes", () => Vn(e)), t(" normalize.undo", () => ot(e)), t(" fixupEdgeLabelCoords", () => zn(e)), t(" undoCoordinateSystem", () => zt.undo(e)), t(" translateGraph", () => In(e)), t(" assignNodeIntersects", () => Rn(e)), t(" reversePoints", () => Bn(e)), t(" acyclic.undo", () => rt(e));
1331
1329
  }
1332
- function bn(e, t) {
1330
+ function Sn(e, t) {
1333
1331
  e.nodes().forEach((n) => {
1334
1332
  let r = e.node(n), i = t.node(n);
1335
1333
  r && (r.x = i.x, r.y = i.y, r.order = i.order, r.rank = i.rank, t.children(n).length && (r.width = i.width, r.height = i.height));
@@ -1340,74 +1338,74 @@ function bn(e, t) {
1340
1338
  let n = t.graph(), r = e.graph();
1341
1339
  r.width = n.width, r.height = n.height;
1342
1340
  }
1343
- var xn = [
1341
+ var Cn = [
1344
1342
  "nodesep",
1345
1343
  "edgesep",
1346
1344
  "ranksep",
1347
1345
  "marginx",
1348
1346
  "marginy"
1349
- ], Sn = {
1347
+ ], wn = {
1350
1348
  ranksep: 50,
1351
1349
  edgesep: 20,
1352
1350
  nodesep: 50,
1353
1351
  rankdir: "tb"
1354
- }, Cn = [
1352
+ }, Tn = [
1355
1353
  "acyclicer",
1356
1354
  "ranker",
1357
1355
  "rankdir",
1358
1356
  "align"
1359
- ], wn = [
1357
+ ], En = [
1360
1358
  "width",
1361
1359
  "height",
1362
1360
  "rank"
1363
- ], Tn = {
1361
+ ], Dn = {
1364
1362
  width: 0,
1365
1363
  height: 0
1366
- }, En = [
1364
+ }, On = [
1367
1365
  "minlen",
1368
1366
  "weight",
1369
1367
  "width",
1370
1368
  "height",
1371
1369
  "labeloffset"
1372
- ], Dn = {
1370
+ ], kn = {
1373
1371
  minlen: 1,
1374
1372
  weight: 1,
1375
1373
  width: 0,
1376
1374
  height: 0,
1377
1375
  labeloffset: 10,
1378
1376
  labelpos: "r"
1379
- }, On = ["labelpos", "arrowshape"];
1380
- function kn(e) {
1381
- let t = Wn(e.graph()), n = {
1382
- ...Sn,
1383
- ...Un(t, xn),
1384
- ...$e(t, Cn)
1377
+ }, An = ["labelpos", "arrowshape"];
1378
+ function jn(e) {
1379
+ let t = Kn(e.graph()), n = {
1380
+ ...wn,
1381
+ ...Gn(t, Cn),
1382
+ ...tt(t, Tn)
1385
1383
  }, r = new k({
1386
1384
  multigraph: !0,
1387
1385
  compound: !0
1388
1386
  });
1389
1387
  return r.setGraph(n), e.nodes().forEach((t) => {
1390
- let n = Un(Wn(e.node(t)), wn);
1391
- Object.keys(Tn).forEach((e) => {
1392
- n[e] === void 0 && (n[e] = Tn[e]);
1388
+ let n = Gn(Kn(e.node(t)), En);
1389
+ Object.keys(Dn).forEach((e) => {
1390
+ n[e] === void 0 && (n[e] = Dn[e]);
1393
1391
  }), r.setNode(t, n), r.setParent(t, e.parent(t));
1394
1392
  }), e.edges().forEach((t) => {
1395
- let n = Wn(e.edge(t));
1393
+ let n = Kn(e.edge(t));
1396
1394
  r.setEdge(t, {
1397
- ...Dn,
1398
- ...Un(n, En),
1399
- ...$e(n, On)
1395
+ ...kn,
1396
+ ...Gn(n, On),
1397
+ ...tt(n, An)
1400
1398
  });
1401
1399
  }), r;
1402
1400
  }
1403
- function An(e) {
1401
+ function Mn(e) {
1404
1402
  let t = e.graph();
1405
1403
  t.ranksep /= 2, e.edges().forEach((n) => {
1406
1404
  let r = e.edge(n);
1407
1405
  r.minlen *= 2, r.labelpos.toLowerCase() !== "c" && (t.rankdir === "TB" || t.rankdir === "BT" ? r.width += r.labeloffset : r.height += r.labeloffset);
1408
1406
  });
1409
1407
  }
1410
- function jn(e) {
1408
+ function Nn(e) {
1411
1409
  e.edges().forEach((t) => {
1412
1410
  let n = e.edge(t);
1413
1411
  if (n.width && n.height) {
@@ -1419,20 +1417,20 @@ function jn(e) {
1419
1417
  }
1420
1418
  });
1421
1419
  }
1422
- function Mn(e) {
1420
+ function Pn(e) {
1423
1421
  let t = 0;
1424
1422
  e.nodes().forEach((n) => {
1425
1423
  let r = e.node(n);
1426
1424
  r.borderTop && (r.minRank = e.node(r.borderTop).rank, r.maxRank = e.node(r.borderBottom).rank, t = Math.max(t, r.maxRank));
1427
1425
  }), e.graph().maxRank = t;
1428
1426
  }
1429
- function Nn(e) {
1427
+ function Fn(e) {
1430
1428
  e.nodes().forEach((t) => {
1431
1429
  let n = e.node(t);
1432
1430
  n.dummy === "edge-proxy" && (e.edge(n.e).labelRank = n.rank, e.removeNode(t));
1433
1431
  });
1434
1432
  }
1435
- function Pn(e) {
1433
+ function In(e) {
1436
1434
  let t = Infinity, n = 0, r = Infinity, i = 0, a = e.graph(), o = a.marginx || 0, s = a.marginy || 0;
1437
1435
  function c(e) {
1438
1436
  let a = e.x, o = e.y, s = e.width, c = e.height;
@@ -1451,7 +1449,7 @@ function Pn(e) {
1451
1449
  }), Object.hasOwn(i, "x") && (i.x -= t), Object.hasOwn(i, "y") && (i.y -= r);
1452
1450
  }), a.width = n - t + o, a.height = i - r + s;
1453
1451
  }
1454
- function Fn(e, t, n) {
1452
+ function Ln(e, t, n) {
1455
1453
  if (!n || !t) return e;
1456
1454
  let r = t.x - e.x, i = t.y - e.y, a = Math.sqrt(r * r + i * i);
1457
1455
  if (!a || a <= n) return e;
@@ -1461,34 +1459,32 @@ function Fn(e, t, n) {
1461
1459
  y: e.y + i * o
1462
1460
  };
1463
1461
  }
1464
- function In(e) {
1462
+ function Rn(e) {
1465
1463
  e.edges().forEach((t) => {
1466
1464
  let n = e.edge(t), r = e.node(t.v), i = e.node(t.w), a, o;
1467
1465
  !n.points || !n.points.length ? (n.points = [], a = i, o = r) : (a = n.points[0], o = n.points[n.points.length - 1]);
1468
- let s = We(r, a), c = We(i, o), l = n.points.length ? n.points[0] : a, u = n.points.length ? n.points[n.points.length - 1] : o, d = n.arrowshape, f = d === "normal" || d === "vee", p = !!n.reversed, m = s, h = c;
1469
- f && (p ? m = Fn(s, l, 4) : h = Fn(c, u, 4)), n.points.unshift(m), n.points.push(h);
1466
+ let s = Ke(r, a), c = Ke(i, o), l = n.points.length ? n.points[0] : a, u = n.points.length ? n.points[n.points.length - 1] : o, d = n.arrowshape, f = d === "normal" || d === "vee", p = !!n.reversed, m = s, h = c;
1467
+ f && (p ? m = Ln(s, l, 4) : h = Ln(c, u, 4)), n.points.unshift(m), n.points.push(h);
1470
1468
  });
1471
1469
  }
1472
- function Ln(e) {
1470
+ function zn(e) {
1473
1471
  e.edges().forEach((t) => {
1474
1472
  let n = e.edge(t);
1475
1473
  if (Object.hasOwn(n, "x")) switch ((n.labelpos === "l" || n.labelpos === "r") && (n.width -= n.labeloffset), n.labelpos) {
1476
1474
  case "l":
1477
1475
  n.x -= n.width / 2 + n.labeloffset;
1478
1476
  break;
1479
- case "r":
1480
- n.x += n.width / 2 + n.labeloffset;
1481
- break;
1477
+ case "r": n.x += n.width / 2 + n.labeloffset;
1482
1478
  }
1483
1479
  });
1484
1480
  }
1485
- function Rn(e) {
1481
+ function Bn(e) {
1486
1482
  e.edges().forEach((t) => {
1487
1483
  let n = e.edge(t);
1488
1484
  n.reversed && n.points.reverse();
1489
1485
  });
1490
1486
  }
1491
- function zn(e) {
1487
+ function Vn(e) {
1492
1488
  e.nodes().forEach((t) => {
1493
1489
  if (e.children(t).length) {
1494
1490
  let n = e.node(t), r = e.node(n.borderTop), i = e.node(n.borderBottom), a = e.node(n.borderLeft[n.borderLeft.length - 1]), o = e.node(n.borderRight[n.borderRight.length - 1]);
@@ -1498,7 +1494,7 @@ function zn(e) {
1498
1494
  e.node(t).dummy === "border" && e.removeNode(t);
1499
1495
  });
1500
1496
  }
1501
- function Bn(e) {
1497
+ function Hn(e) {
1502
1498
  e.edges().forEach((t) => {
1503
1499
  if (t.v === t.w) {
1504
1500
  let n = e.node(t.v);
@@ -1509,7 +1505,7 @@ function Bn(e) {
1509
1505
  }
1510
1506
  });
1511
1507
  }
1512
- function Vn(e) {
1508
+ function Un(e) {
1513
1509
  R(e).forEach((t) => {
1514
1510
  let n = 0;
1515
1511
  t.forEach((t, r) => {
@@ -1527,7 +1523,7 @@ function Vn(e) {
1527
1523
  });
1528
1524
  });
1529
1525
  }
1530
- function Hn(e) {
1526
+ function Wn(e) {
1531
1527
  e.nodes().forEach((t) => {
1532
1528
  let n = e.node(t);
1533
1529
  if (n.dummy === "selfedge") {
@@ -1557,10 +1553,10 @@ function Hn(e) {
1557
1553
  }
1558
1554
  });
1559
1555
  }
1560
- function Un(e, t) {
1561
- return et($e(e, t), Number);
1556
+ function Gn(e, t) {
1557
+ return nt(tt(e, t), Number);
1562
1558
  }
1563
- function Wn(e) {
1559
+ function Kn(e) {
1564
1560
  let t = {};
1565
1561
  return e && Object.entries(e).forEach(([e, n]) => {
1566
1562
  let r = e;
@@ -1569,7 +1565,7 @@ function Wn(e) {
1569
1565
  }
1570
1566
  //#endregion
1571
1567
  //#region src/useDag.js
1572
- var Gn = {
1568
+ var qn = {
1573
1569
  rankDirection: "TB",
1574
1570
  nodeSeparation: 50,
1575
1571
  rankSeparation: 50,
@@ -1582,10 +1578,10 @@ var Gn = {
1582
1578
  arrowShape: "normal",
1583
1579
  arrowSize: 10
1584
1580
  };
1585
- function Kn(e) {
1581
+ function Jn(e) {
1586
1582
  return e.length ? e.map((e, t) => `${t === 0 ? "M" : "L"} ${e.x} ${e.y}`).join(" ") : "";
1587
1583
  }
1588
- function qn(e) {
1584
+ function Yn(e) {
1589
1585
  if (!e.length) return "";
1590
1586
  if (e.length === 1) {
1591
1587
  let t = e[0];
@@ -1601,36 +1597,36 @@ function qn(e) {
1601
1597
  let r = e[e.length - 1];
1602
1598
  return n += ` L ${r.x} ${r.y}`, n;
1603
1599
  }
1604
- function Jn(e) {
1605
- let { nodes: t, edges: n, configuration: i } = e, o = T(null), s = T(null), c = `dag-arrow-${r()}`;
1600
+ function Xn(e) {
1601
+ let { nodes: t, edges: n, configuration: r } = e, a = T(null), s = T(null), c = `dag-arrow-${o()}`;
1606
1602
  function l(e, t, n) {
1607
- s.value = null, o.value = null;
1608
- let i = {
1609
- ...Gn,
1603
+ s.value = null, a.value = null;
1604
+ let r = {
1605
+ ...qn,
1610
1606
  ...n
1611
1607
  }, l = new k({
1612
1608
  multigraph: !0,
1613
1609
  compound: !0
1614
1610
  });
1615
1611
  l.setGraph({
1616
- rankdir: i.rankDirection,
1617
- nodesep: i.nodeSeparation,
1618
- ranksep: i.rankSeparation,
1619
- edgesep: i.edgeSeparation,
1620
- align: i.align
1612
+ rankdir: r.rankDirection,
1613
+ nodesep: r.nodeSeparation,
1614
+ ranksep: r.rankSeparation,
1615
+ edgesep: r.edgeSeparation,
1616
+ align: r.align
1621
1617
  }), e.forEach((e) => {
1622
1618
  l.setNode(e.id, {
1623
1619
  label: e.label,
1624
- width: e.width ?? i.nodeWidth,
1625
- height: e.height ?? i.nodeHeight
1620
+ width: e.width ?? r.nodeWidth,
1621
+ height: e.height ?? r.nodeHeight
1626
1622
  });
1627
1623
  }), t.forEach((e) => {
1628
1624
  l.setEdge(e.from, e.to, {
1629
1625
  weight: e.weight ?? 1,
1630
1626
  minlen: e.minLength ?? 1,
1631
- arrowShape: i.arrowShape ?? "normal"
1627
+ arrowShape: r.arrowShape ?? "normal"
1632
1628
  });
1633
- }), vn(l);
1629
+ }), bn(l);
1634
1630
  let u = e.map((e) => {
1635
1631
  let t = l.node(e.id);
1636
1632
  return {
@@ -1643,135 +1639,135 @@ function Jn(e) {
1643
1639
  original: e
1644
1640
  };
1645
1641
  }), d = l.edges().map((e) => {
1646
- let n = l.edge(e), a = n.points || [];
1647
- if (!a.length) return null;
1648
- let o = i.curvedEdges ? qn(a) : Kn(a), s = i.arrowShape === "undirected" ? null : `url(#${c})`, u = t.find((t) => t?.from === e.v && t?.to === e.w);
1642
+ let n = l.edge(e), i = n.points || [];
1643
+ if (!i.length) return null;
1644
+ let a = r.curvedEdges ? Yn(i) : Jn(i), s = r.arrowShape === "undirected" ? null : `url(#${c})`, u = t.find((t) => t?.from === e.v && t?.to === e.w);
1649
1645
  return {
1650
- id: `${e.v}->${e.w}->${r()}`,
1646
+ id: `${e.v}->${e.w}->${o()}`,
1651
1647
  from: e.v,
1652
1648
  to: e.w,
1653
- points: a,
1654
- pathData: o,
1649
+ points: i,
1650
+ pathData: a,
1655
1651
  markerEnd: s,
1656
1652
  original: {
1657
1653
  ...u,
1658
1654
  ...n
1659
1655
  }
1660
1656
  };
1661
- }).filter(Boolean), f = i.padding;
1657
+ }).filter(Boolean), f = r.padding;
1662
1658
  if (!u.length) {
1663
- o.value = {
1659
+ a.value = {
1664
1660
  nodes: [],
1665
1661
  edges: d,
1666
1662
  viewBox: "0 0 0 0",
1667
- arrowShape: i.arrowShape,
1668
- arrowSize: i.arrowSize
1663
+ arrowShape: r.arrowShape,
1664
+ arrowSize: r.arrowSize
1669
1665
  };
1670
1666
  return;
1671
1667
  }
1672
1668
  let p = u.flatMap((e) => [e.x - e.width / 2, e.x + e.width / 2]), m = u.flatMap((e) => [e.y - e.height / 2, e.y + e.height / 2]), h = Math.min(...p) - f, g = Math.max(...p) + f, ee = Math.min(...m) - f, te = Math.max(...m) + f;
1673
- o.value = {
1669
+ a.value = {
1674
1670
  nodes: u,
1675
1671
  edges: d.map((e) => ({
1676
1672
  ...e,
1677
- midpoint: e.pathData ? a(e.pathData) : {
1673
+ midpoint: e.pathData ? i(e.pathData) : {
1678
1674
  x: 0,
1679
1675
  y: 0
1680
1676
  }
1681
1677
  })),
1682
1678
  viewBox: `${h} ${ee} ${g - h} ${te - ee}`,
1683
- arrowShape: i.arrowShape,
1684
- arrowSize: i.arrowSize
1679
+ arrowShape: r.arrowShape,
1680
+ arrowSize: r.arrowSize
1685
1681
  };
1686
1682
  }
1687
- return De(() => {
1683
+ return ke(() => {
1688
1684
  try {
1689
- l(D(t) || [], D(n) || [], D(i) || {});
1685
+ l(D(t) || [], D(n) || [], D(r) || {});
1690
1686
  } catch (e) {
1691
- console.error("[useDag] layout error:", e), s.value = e, o.value = null;
1687
+ console.error("[useDag] layout error:", e), s.value = e, a.value = null;
1692
1688
  }
1693
1689
  }), {
1694
- layoutData: o,
1690
+ layoutData: a,
1695
1691
  lastError: s,
1696
1692
  arrowMarkerIdentifier: c,
1697
1693
  recomputeLayout: () => {
1698
- l(D(t) || [], D(n) || [], D(i) || {});
1694
+ l(D(t) || [], D(n) || [], D(r) || {});
1699
1695
  }
1700
1696
  };
1701
1697
  }
1702
1698
  //#endregion
1703
1699
  //#region src/components/vue-ui-dag.vue
1704
- var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn = {
1700
+ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er = {
1705
1701
  key: 1,
1706
1702
  class: "dag-chart-error"
1707
- }, $n = { style: { position: "relative" } }, er = [
1703
+ }, tr = { style: { position: "relative" } }, nr = [
1708
1704
  "viewBox",
1709
1705
  "xmlns",
1710
1706
  "aria-describedby"
1711
- ], tr = { key: 0 }, nr = [
1707
+ ], rr = { key: 0 }, ir = [
1712
1708
  "id",
1713
1709
  "width",
1714
1710
  "height"
1715
- ], rr = [
1711
+ ], ar = [
1716
1712
  "cx",
1717
1713
  "cy",
1718
1714
  "r",
1719
1715
  "fill"
1720
- ], ir = [
1716
+ ], or = [
1721
1717
  "x",
1722
1718
  "y",
1723
1719
  "width",
1724
1720
  "height",
1725
1721
  "fill"
1726
- ], ar = { key: 2 }, or = [
1722
+ ], sr = { key: 2 }, cr = [
1727
1723
  "id",
1728
1724
  "markerWidth",
1729
1725
  "markerHeight",
1730
1726
  "refX",
1731
1727
  "refY"
1732
- ], sr = [
1728
+ ], lr = [
1733
1729
  "d",
1734
1730
  "fill",
1735
1731
  "stroke"
1736
- ], cr = [
1732
+ ], ur = [
1737
1733
  "d",
1738
1734
  "fill",
1739
1735
  "stroke"
1740
- ], lr = { class: "vue-ui-dag-edges" }, ur = [
1736
+ ], dr = { class: "vue-ui-dag-edges" }, fr = [
1741
1737
  "data-a11y-midpoint-id",
1742
1738
  "aria-label",
1743
1739
  "onMouseenter"
1744
- ], dr = { class: "vue-ui-dag-nodes" }, fr = [
1740
+ ], pr = { class: "vue-ui-dag-nodes" }, mr = [
1745
1741
  "onClick",
1746
1742
  "onMouseenter",
1747
1743
  "onMouseleave"
1748
- ], pr = ["data-a11y-node-id", "aria-label"], mr = [
1744
+ ], hr = ["data-a11y-node-id", "aria-label"], gr = [
1749
1745
  "x",
1750
1746
  "y",
1751
1747
  "width",
1752
1748
  "height"
1753
- ], hr = { class: "vue-ui-dag-edges" }, gr = [
1749
+ ], _r = { class: "vue-ui-dag-edges" }, vr = [
1754
1750
  "d",
1755
1751
  "stroke-width",
1756
1752
  "marker-end"
1757
- ], _r = { class: "vue-ui-dag-node-labels" }, vr = [
1753
+ ], yr = { class: "vue-ui-dag-node-labels" }, br = [
1758
1754
  "onClick",
1759
1755
  "onMouseenter",
1760
1756
  "onMouseleave"
1761
- ], yr = [
1757
+ ], xr = [
1762
1758
  "x",
1763
1759
  "y",
1764
1760
  "font-size",
1765
1761
  "fill",
1766
1762
  "font-weight"
1767
- ], br = [
1763
+ ], Sr = [
1768
1764
  "x",
1769
1765
  "y",
1770
1766
  "font-size",
1771
1767
  "fill",
1772
1768
  "font-weight",
1773
1769
  "innerHTML"
1774
- ], xr = { key: 1 }, Sr = {
1770
+ ], Cr = { key: 1 }, wr = {
1775
1771
  key: 1,
1776
1772
  style: {
1777
1773
  position: "absolute",
@@ -1781,10 +1777,10 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
1781
1777
  },
1782
1778
  "data-dom-to-png-ignore": "",
1783
1779
  "aria-hidden": "true"
1784
- }, Cr = {
1780
+ }, Tr = {
1785
1781
  key: 6,
1786
1782
  class: "vue-data-ui-watermark"
1787
- }, wr = ["data-position"], Tr = { key: 0 }, Er = ["data-position"], Dr = { key: 0 }, Or = 1.5, kr = /*#__PURE__*/ te({
1783
+ }, Er = ["data-position"], Dr = { key: 0 }, Or = ["data-position"], kr = { key: 0 }, Ar = 1.5, jr = /*#__PURE__*/ re({
1788
1784
  __name: "vue-ui-dag",
1789
1785
  props: {
1790
1786
  dataset: {
@@ -1810,23 +1806,30 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
1810
1806
  "copyAlt",
1811
1807
  "rotate"
1812
1808
  ],
1813
- setup(e, { expose: a, emit: te }) {
1814
- let De = ge(() => import("./PenAndPaper-D--sbRMA.js").then((e) => e.t)), ke = ge(() => import("./UserOptions-BknvMNU1.js").then((e) => e.n)), Ae = ge(() => import("./PackageVersion-BUmadjVO.js").then((e) => e.t)), { vue_ui_dag: je } = l(), { isThemeValid: k, warnInvalidTheme: Me } = h(), A = e, j = te, M = T(null), N = T(r()), Ne = T(null), Pe = T(null), Fe = T(null), Ie = T(0), Le = T(0), Re = T(!1), ze = T(!1), Be = T(!1), Ve = T(!1), P = T(null), F = T(null), I = T(null), L = T(null), He = T(null), Ue = T("pointer"), We = T(!1), R = T(ct()), Ge = _(() => R.value.userOptions.useCursorPointer), Ke = T(R.value.style.chart.width), qe = T(R.value.style.chart.height), Je = T({
1809
+ setup(e, { expose: i, emit: re }) {
1810
+ let ke = ve(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), je = ve(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), Me = ve(() => import("./PackageVersion-D6d8SCp9.js").then((e) => e.t)), { vue_ui_dag: Ne } = d(), { isThemeValid: k, warnInvalidTheme: Pe } = ee(), A = e, j = re, M = T(null), N = T(o()), Fe = T(null), Ie = T(null), Le = T(null), Re = T(0), ze = T(0), Be = T(!1), Ve = T(!1), He = T(!1), Ue = T(!1), P = T(null), F = T(null), I = T(null), L = T(null), We = T(null), Ge = T("pointer"), Ke = T(!1), R = T(ut());
1811
+ l({
1812
+ config: () => R.value,
1813
+ dataset: () => A.dataset,
1814
+ component: "VueUiDag",
1815
+ rules: [u.noHint]
1816
+ });
1817
+ let qe = _(() => R.value.userOptions.useCursorPointer), Je = T(R.value.style.chart.width), Ye = T(R.value.style.chart.height), Xe = T({
1815
1818
  x: 0,
1816
1819
  y: 0
1817
- }), z = T(null), B = T(null), Ye = T({
1820
+ }), z = T(null), B = T(null), Ze = T({
1818
1821
  left: "0px",
1819
1822
  top: "0px"
1820
- }), Xe = T("top"), V = T(!1), Ze = T({
1823
+ }), Qe = T("top"), V = T(!1), $e = T({
1821
1824
  x: 0,
1822
1825
  y: 0
1823
- }), Qe = T({
1826
+ }), et = T({
1824
1827
  x: 0,
1825
1828
  y: 0
1826
- }), H = T(null), U = T(null), $e = T({
1829
+ }), H = T(null), U = T(null), tt = T({
1827
1830
  left: "0px",
1828
1831
  top: "0px"
1829
- }), et = T("top"), W = T(!1), G = T(!1), { svgRef: K } = oe({ config: R.value.style.chart.title }), { userOptionsVisible: tt, setUserOptionsVisibility: nt, keepUserOptionState: rt } = ae({ config: R.value }), q = T(R.value.style.chart.layout.rankDirection), it = _(() => o({
1832
+ }), nt = T("top"), W = T(!1), G = T(!1), { svgRef: K } = ce({ config: R.value.style.chart.title }), { userOptionsVisible: rt, setUserOptionsVisibility: it, keepUserOptionState: at } = se({ config: R.value }), q = T(R.value.style.chart.layout.rankDirection), ot = _(() => t({
1830
1833
  defaultConfig: {
1831
1834
  userOptions: { show: !1 },
1832
1835
  style: { chart: {
@@ -1843,10 +1846,10 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
1843
1846
  } }
1844
1847
  },
1845
1848
  userConfig: R.value.skeletonConfig ?? {}
1846
- })), { loading: at, FINAL_DATASET: ot, manualLoading: st } = d({
1847
- ...Te(A),
1849
+ })), { loading: st, FINAL_DATASET: ct, manualLoading: lt } = p({
1850
+ ...De(A),
1848
1851
  FINAL_CONFIG: R,
1849
- prepareConfig: ct,
1852
+ prepareConfig: ut,
1850
1853
  skeletonDataset: A.config?.skeletonDataset ?? {
1851
1854
  nodes: [
1852
1855
  {
@@ -1870,77 +1873,77 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
1870
1873
  to: "C"
1871
1874
  }]
1872
1875
  },
1873
- skeletonConfig: o({
1876
+ skeletonConfig: t({
1874
1877
  defaultConfig: R.value,
1875
- userConfig: it.value
1878
+ userConfig: ot.value
1876
1879
  })
1877
1880
  });
1878
- function ct() {
1879
- let e = m({
1881
+ function ut() {
1882
+ let e = g({
1880
1883
  userConfig: A.config,
1881
- defaultConfig: je
1884
+ defaultConfig: Ne
1882
1885
  }), t = e.theme;
1883
1886
  if (!t) return e;
1884
- if (!k.value(e)) return Me(e), e;
1885
- let n = m({
1886
- userConfig: le[t] || A.config,
1887
+ if (!k.value(e)) return Pe(e), e;
1888
+ let n = g({
1889
+ userConfig: de[t] || A.config,
1887
1890
  defaultConfig: e
1888
1891
  });
1889
- return m({
1892
+ return g({
1890
1893
  userConfig: A.config,
1891
1894
  defaultConfig: n
1892
1895
  });
1893
1896
  }
1894
- let lt = _(() => !!R.value.debug);
1895
- Se(async () => {
1896
- t(A.dataset) && (i({
1897
+ let dt = _(() => !!R.value.debug);
1898
+ we(async () => {
1899
+ a(A.dataset) && (c({
1897
1900
  componentName: "VueUiDag",
1898
1901
  type: "dataset",
1899
- debug: lt.value
1900
- }), ze.value = !1, st.value = !0), A.dataset.nodes || (i({
1902
+ debug: dt.value
1903
+ }), Ve.value = !1, lt.value = !0), A.dataset.nodes || (c({
1901
1904
  componentName: "VueUiDag",
1902
1905
  type: "datasetAttributeEmpty",
1903
1906
  property: "nodes",
1904
1907
  index: 0,
1905
- debug: lt.value
1906
- }), ze.value = !1, st.value = !0), ze.value = !0, await ve(), Kt();
1907
- }), Ee(() => A.config, async (e) => {
1908
- at.value || (R.value = ct()), tt.value = !R.value.userOptions.showOnChartHover, Ie.value += 1, q.value = R.value.style.chart.layout.rankDirection, Ke.value = R.value.style.chart.width, qe.value = R.value.style.chart.height, Ct.value = R.value.style.chart.zoom.active, await ve(), Kt();
1908
+ debug: dt.value
1909
+ }), Ve.value = !1, lt.value = !0), Ve.value = !0, await be(), Yt();
1910
+ }), Oe(() => A.config, async (e) => {
1911
+ st.value || (R.value = ut()), rt.value = !R.value.userOptions.showOnChartHover, Re.value += 1, q.value = R.value.style.chart.layout.rankDirection, Je.value = R.value.style.chart.width, Ye.value = R.value.style.chart.height, Et.value = R.value.style.chart.zoom.active, await be(), Yt();
1909
1912
  }, { deep: !0 });
1910
- let { isPrinting: ut, isImaging: J, generatePdf: dt, generateImage: ft } = u({
1913
+ let { isPrinting: ft, isImaging: J, generatePdf: pt, generateImage: mt } = f({
1911
1914
  elementId: `dag_${N.value}`,
1912
1915
  fileName: R.value.style.chart.title.text || "vue-ui-dag",
1913
1916
  options: R.value.userOptions.print
1914
- }), pt = _(() => R.value.style.chart.backgroundColor), { exportSvg: mt, getSvg: ht } = p({
1917
+ }), ht = _(() => R.value.style.chart.backgroundColor), gt = _(() => R.value.style.chart.title), { exportSvg: _t, getSvg: vt } = h({
1915
1918
  svg: K,
1916
- title: _(() => R.value.style.chart.title),
1919
+ title: gt,
1917
1920
  legend: void 0,
1918
1921
  legendItems: void 0,
1919
- backgroundColor: pt
1922
+ backgroundColor: ht
1920
1923
  });
1921
- async function gt({ isCb: e }) {
1922
- Ve.value = !0, await ve();
1924
+ async function yt({ isCb: e }) {
1925
+ Ue.value = !0, await be();
1923
1926
  try {
1924
1927
  if (e) {
1925
- let { blob: e, url: t, text: n, dataUrl: r } = await ht();
1928
+ let { blob: e, url: t, text: n, dataUrl: r } = await vt();
1926
1929
  await Promise.resolve(R.value.userOptions.callbacks.svg({
1927
1930
  blob: e,
1928
1931
  url: t,
1929
1932
  text: n,
1930
1933
  dataUrl: r
1931
1934
  }));
1932
- } else await Promise.resolve(mt());
1935
+ } else await Promise.resolve(_t());
1933
1936
  } finally {
1934
- Ve.value = !1;
1937
+ Ue.value = !1;
1935
1938
  }
1936
1939
  }
1937
- function _t() {
1938
- Re.value = !0, nt(!0);
1940
+ function bt() {
1941
+ Be.value = !0, it(!0);
1939
1942
  }
1940
- function vt() {
1941
- nt(!1), Re.value = !1;
1943
+ function xt() {
1944
+ it(!1), Be.value = !1;
1942
1945
  }
1943
- function yt({ tooltipRef: e, isVisibleRef: t, anchorRef: n, styleRef: r, placementRef: i, offsetRef: a, margin: o = 24 }) {
1946
+ function St({ tooltipRef: e, isVisibleRef: t, anchorRef: n, styleRef: r, placementRef: i, offsetRef: a, margin: o = 24 }) {
1944
1947
  return function() {
1945
1948
  let s = e.value;
1946
1949
  if (!s || !t.value) return;
@@ -1961,13 +1964,13 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
1961
1964
  };
1962
1965
  };
1963
1966
  }
1964
- let { layoutData: Y, lastError: bt, arrowMarkerIdentifier: xt } = Jn({
1965
- nodes: _(() => ot.value.nodes.map((e) => ({
1967
+ let { layoutData: Y, lastError: Ct, arrowMarkerIdentifier: wt } = Xn({
1968
+ nodes: _(() => ct.value.nodes.map((e) => ({
1966
1969
  ...e,
1967
- backgroundColor: e.backgroundColor ? c(e.backgroundColor) : R.value.style.chart.nodes.backgroundColor,
1968
- color: e.color ? c(e.color) : R.value.style.chart.nodes.labels.color
1970
+ backgroundColor: e.backgroundColor ? r(e.backgroundColor) : R.value.style.chart.nodes.backgroundColor,
1971
+ color: e.color ? r(e.color) : R.value.style.chart.nodes.labels.color
1969
1972
  }))),
1970
- edges: _(() => ot.value.edges),
1973
+ edges: _(() => ct.value.edges),
1971
1974
  configuration: _(() => ({
1972
1975
  ...R.value.style.chart.layout,
1973
1976
  rankDirection: q.value
@@ -1988,86 +1991,86 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
1988
1991
  });
1989
1992
  }), Array.from(t);
1990
1993
  });
1991
- let St = _(() => {
1992
- let e = Ke.value, t = qe.value, n = Number(e), r = Number(t), i = Number.isFinite(n) && n > 0, a = Number.isFinite(r) && r > 0;
1994
+ let Tt = _(() => {
1995
+ let e = Je.value, t = Ye.value, n = Number(e), r = Number(t), i = Number.isFinite(n) && n > 0, a = Number.isFinite(r) && r > 0;
1993
1996
  return !i && !a ? null : {
1994
1997
  width: i ? n : null,
1995
1998
  height: a ? r : null
1996
1999
  };
1997
- }), Ct = T(R.value.style.chart.zoom.active), { viewBox: wt, resetZoom: Tt, setInitialViewBox: Et, scale: Dt, zoomByFactor: Ot } = se(K, {
2000
+ }), Et = T(R.value.style.chart.zoom.active), { viewBox: Dt, resetZoom: Ot, setInitialViewBox: kt, scale: At, zoomByFactor: jt } = le(K, {
1998
2001
  x: 0,
1999
2002
  y: 0,
2000
2003
  width: 100,
2001
2004
  height: 100
2002
- }, 1, Ct, () => {
2005
+ }, 1, Et, () => {
2003
2006
  V.value = !1;
2004
2007
  });
2005
- function kt() {
2006
- Ct.value = !Ct.value;
2008
+ function Mt() {
2009
+ Et.value = !Et.value;
2007
2010
  }
2008
- function At() {
2011
+ function Nt() {
2009
2012
  let e = Y.value && Y.value.viewBox;
2010
2013
  if (!e) return;
2011
2014
  let t = String(e).split(" ").map(Number);
2012
2015
  if (t.length !== 4) return;
2013
2016
  let [n, r, i, a] = t;
2014
2017
  if (!Number.isFinite(n) || !Number.isFinite(r) || !Number.isFinite(i) || !Number.isFinite(a)) return;
2015
- let o = i, s = a, c = n, l = r, u = St.value;
2016
- u && (u.width !== null && (o = u.width), u.height !== null && (s = u.height), c = n - (o - i) / 2, l = r - (s - a) / 2), Et({
2018
+ let o = i, s = a, c = n, l = r, u = Tt.value;
2019
+ u && (u.width !== null && (o = u.width), u.height !== null && (s = u.height), c = n - (o - i) / 2, l = r - (s - a) / 2), kt({
2017
2020
  x: c,
2018
2021
  y: l,
2019
2022
  width: o,
2020
2023
  height: s
2021
2024
  }, { overwriteCurrentIfNotZoomed: !0 });
2022
2025
  }
2023
- Ee(() => Y.value && Y.value.viewBox, () => {
2024
- At();
2025
- }, { immediate: !0 }), Ee(() => St.value, () => {
2026
- At();
2027
- }), Ee(() => G.value, (e) => {
2028
- Ct.value = !e;
2026
+ Oe(() => Y.value && Y.value.viewBox, () => {
2027
+ Nt();
2028
+ }, { immediate: !0 }), Oe(() => Tt.value, () => {
2029
+ Nt();
2030
+ }), Oe(() => G.value, (e) => {
2031
+ Et.value = !e;
2029
2032
  });
2030
- let jt = _(() => {
2031
- let e = wt.value;
2033
+ let Pt = _(() => {
2034
+ let e = Dt.value;
2032
2035
  return e ? `${e.x} ${e.y} ${e.width} ${e.height}` : "0 0 0 0";
2033
- }), Z = T(!1);
2034
- function Mt(e) {
2035
- Z.value = e, Le.value += 1;
2036
+ }), Ft = T(!1);
2037
+ function It(e) {
2038
+ Ft.value = e, ze.value += 1;
2036
2039
  }
2037
- function Nt() {
2040
+ function Lt() {
2038
2041
  G.value = !G.value;
2039
2042
  }
2040
- function Pt() {
2041
- Ot(Or, !0);
2043
+ function Rt() {
2044
+ jt(Ar, !0);
2042
2045
  }
2043
- function Ft() {
2044
- Ot(1 / Or, !0);
2046
+ function zt() {
2047
+ jt(1 / Ar, !0);
2045
2048
  }
2046
- let It = [
2049
+ let Bt = [
2047
2050
  "TB",
2048
2051
  "RL",
2049
2052
  "BT",
2050
2053
  "LR"
2051
2054
  ];
2052
- function Lt() {
2053
- q.value = It[(It.indexOf(q.value) + 1) % It.length], Tt(), j("rotate", q.value);
2055
+ function Vt() {
2056
+ q.value = Bt[(Bt.indexOf(q.value) + 1) % Bt.length], Ot(), j("rotate", q.value);
2054
2057
  }
2055
- let Rt = yt({
2058
+ let Ht = St({
2056
2059
  tooltipRef: B,
2057
2060
  isVisibleRef: W,
2058
- anchorRef: Je,
2059
- styleRef: Ye,
2060
- placementRef: Xe,
2061
+ anchorRef: Xe,
2062
+ styleRef: Ze,
2063
+ placementRef: Qe,
2061
2064
  isNode: !1
2062
- }), zt = yt({
2065
+ }), Ut = St({
2063
2066
  tooltipRef: U,
2064
2067
  isVisibleRef: V,
2065
- anchorRef: Ze,
2066
- styleRef: $e,
2067
- placementRef: et,
2068
- offsetRef: Qe
2069
- }), Q = T(null);
2070
- async function Bt(e) {
2068
+ anchorRef: $e,
2069
+ styleRef: tt,
2070
+ placementRef: nt,
2071
+ offsetRef: et
2072
+ }), Z = T(null);
2073
+ async function Wt(e) {
2071
2074
  j("onMidpointEnter", e);
2072
2075
  let t = K.value;
2073
2076
  if (!t || !e?.midpoint) return;
@@ -2076,15 +2079,15 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
2076
2079
  let r = t.getScreenCTM();
2077
2080
  if (!r) return;
2078
2081
  let i = n.matrixTransform(r);
2079
- Je.value = {
2082
+ Xe.value = {
2080
2083
  x: i.x,
2081
2084
  y: i.y
2082
- }, z.value = e, W.value = !0, R.value.style.chart.midpoints.selectedEdge.animated === !0 && (Q.value = e.id, Qt()), await ve(), Rt();
2085
+ }, z.value = e, W.value = !0, R.value.style.chart.midpoints.selectedEdge.animated === !0 && (Z.value = e.id, tn()), await be(), Ht();
2083
2086
  }
2084
- function Vt() {
2085
- W.value = !1, z.value = null, j("onMidpointLeave"), R.value.style.chart.midpoints.selectedEdge.animated === !0 && (Q.value = null, Qt());
2087
+ function Q() {
2088
+ W.value = !1, z.value = null, j("onMidpointLeave"), R.value.style.chart.midpoints.selectedEdge.animated === !0 && (Z.value = null, tn());
2086
2089
  }
2087
- async function Ht(e) {
2090
+ async function Gt(e) {
2088
2091
  if (j("onNodeClick", e), !R.value.style.chart.nodes.tooltip.showOnClick) return;
2089
2092
  let t = K.value;
2090
2093
  if (!t) return;
@@ -2093,18 +2096,18 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
2093
2096
  let r = t.getScreenCTM();
2094
2097
  if (!r) return;
2095
2098
  let i = n.matrixTransform(r), a = R.value.style.chart.layout.nodeWidth, o = R.value.style.chart.layout.nodeHeight, s = r.a, c = r.d, l = a * s, u = o * c;
2096
- Qe.value = {
2099
+ et.value = {
2097
2100
  x: l / 2,
2098
2101
  y: u / 2
2099
- }, Ze.value = {
2102
+ }, $e.value = {
2100
2103
  x: i.x,
2101
2104
  y: i.y
2102
- }, H.value = e, V.value = !0, await ve(), zt();
2105
+ }, H.value = e, V.value = !0, await be(), Ut();
2103
2106
  }
2104
- function Ut() {
2107
+ function Kt() {
2105
2108
  V.value = !1, H.value = null;
2106
2109
  }
2107
- function Wt(e) {
2110
+ function qt(e) {
2108
2111
  if (!(V.value || W.value)) return;
2109
2112
  let t = U.value;
2110
2113
  if (t && t.contains(e.target)) return;
@@ -2115,38 +2118,38 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
2115
2118
  let t = e.target.closest(".vue-ui-dag-node"), n = e.target.closest(".vue-ui-dag-edge-midpoint");
2116
2119
  if (t || n) return;
2117
2120
  }
2118
- Ut(), Vt(), We.value || Dn();
2121
+ Kt(), Q(), Ke.value || An();
2119
2122
  }
2120
- function Gt(e) {
2121
- e.key === "Escape" && (V.value && Ut(), W.value && Vt());
2123
+ function Jt(e) {
2124
+ e.key === "Escape" && (V.value && Kt(), W.value && Q());
2122
2125
  }
2123
- Se(() => {
2124
- document.addEventListener("mousedown", Wt), document.addEventListener("keydown", Gt);
2125
- }), xe(() => {
2126
- document.removeEventListener("mousedown", Wt), document.removeEventListener("keydown", Gt), P.value && (F.value && P.value.unobserve(F.value), P.value.disconnect());
2126
+ we(() => {
2127
+ document.addEventListener("mousedown", qt), document.addEventListener("keydown", Jt);
2128
+ }), Ce(() => {
2129
+ document.removeEventListener("mousedown", qt), document.removeEventListener("keydown", Jt), P.value && (F.value && P.value.unobserve(F.value), P.value.disconnect());
2127
2130
  });
2128
- function Kt() {
2131
+ function Yt() {
2129
2132
  if (!R.value.responsive) {
2130
2133
  P.value && (F.value && P.value.unobserve(F.value), P.value.disconnect(), P.value = null, F.value = null);
2131
2134
  return;
2132
2135
  }
2133
- let e = ne(() => {
2136
+ let e = ie(() => {
2134
2137
  if (!M.value) return;
2135
- let { width: e, height: t } = re({
2138
+ let { width: e, height: t } = ae({
2136
2139
  chart: M.value,
2137
- title: R.value.style.chart.title.text ? Ne.value : null,
2138
- legend: R.value.style.chart.controls.show ? Fe.value?.$el : null,
2139
- source: Pe.value
2140
+ title: R.value.style.chart.title.text ? Fe.value : null,
2141
+ legend: R.value.style.chart.controls.show ? Le.value?.$el : null,
2142
+ source: Ie.value
2140
2143
  });
2141
2144
  requestAnimationFrame(() => {
2142
- Ke.value = Math.max(.1, e), qe.value = Math.max(.1, t - 12);
2145
+ Je.value = Math.max(.1, e), Ye.value = Math.max(.1, t - 12);
2143
2146
  });
2144
2147
  });
2145
2148
  P.value && (F.value && P.value.unobserve(F.value), P.value.disconnect()), P.value = new ResizeObserver(e), F.value = M.value ? M.value.parentNode : null, F.value && P.value.observe(F.value), e();
2146
2149
  }
2147
- function qt(e, t = {}) {
2150
+ function Xt(e, t = {}) {
2148
2151
  let { direction: n = -1, mode: r = "oneLapNearest", dasharray: i = null } = t;
2149
- if (!e || typeof e.getTotalLength != "function") return lt.value && console.warn("VueUiDag @getIdealDashoffsetDelta: invalid path element", e), 0;
2152
+ if (!e || typeof e.getTotalLength != "function") return dt.value && console.warn("VueUiDag @getIdealDashoffsetDelta: invalid path element", e), 0;
2150
2153
  let a = e.getTotalLength(), o = d(i ?? e.getAttribute("stroke-dasharray") ?? (typeof getComputedStyle == "function" ? getComputedStyle(e).strokeDasharray : ""));
2151
2154
  if (!Number.isFinite(o) || o <= 0) return n * a;
2152
2155
  let s = Math.max(1, Math.round(a / o)), c = Math.max(1, Math.ceil(a / o)), l = Math.max(1, Math.floor(a / o)), u;
@@ -2159,26 +2162,26 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
2159
2162
  return t.length % 2 == 1 ? n * 2 : n;
2160
2163
  }
2161
2164
  }
2162
- let Jt = T(/* @__PURE__ */ new Map()), Yt = T(/* @__PURE__ */ new Map());
2163
- function Xt(e) {
2165
+ let Zt = T(/* @__PURE__ */ new Map()), Qt = T(/* @__PURE__ */ new Map());
2166
+ function $t(e) {
2164
2167
  return function(t) {
2165
- t ? Jt.value.set(e, t) : Jt.value.delete(e);
2168
+ t ? Zt.value.set(e, t) : Zt.value.delete(e);
2166
2169
  };
2167
2170
  }
2168
- function Zt() {
2169
- Yt.value.forEach((e) => {
2171
+ function en() {
2172
+ Qt.value.forEach((e) => {
2170
2173
  try {
2171
2174
  e.cancel();
2172
2175
  } catch {}
2173
- }), Yt.value.clear();
2176
+ }), Qt.value.clear();
2174
2177
  }
2175
- function Qt() {
2176
- Zt();
2178
+ function tn() {
2179
+ en();
2177
2180
  let e = Y.value?.edges ?? [];
2178
2181
  if (!e.length) return;
2179
2182
  let t = R.value.style.chart.edges.animations, n = Number(t.referenceDistance) > 0 ? Number(t.referenceDistance) : 24;
2180
2183
  e.forEach((e) => {
2181
- let r = R.value.style.chart.midpoints.selectedEdge.animated === !0 && Q.value != null && e.id === Q.value, i = !!e?.original?.animated || !!e?.animated || r, a = Jt.value.get(e.id);
2184
+ let r = R.value.style.chart.midpoints.selectedEdge.animated === !0 && Z.value != null && e.id === Z.value, i = !!e?.original?.animated || !!e?.animated || r, a = Zt.value.get(e.id);
2182
2185
  if (!a) return;
2183
2186
  if (!i) {
2184
2187
  a.style.strokeDasharray = "0", a.style.strokeDashoffset = "0";
@@ -2186,7 +2189,7 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
2186
2189
  }
2187
2190
  let o = e?.original?.dasharray ?? t.dasharray;
2188
2191
  a.style.strokeDasharray = String(o), a.style.strokeDashoffset = "0";
2189
- let s = ![void 0, null].includes(e?.original?.animationDirection), c = ![void 0, null].includes(t.animationDirection), l = qt(a, {
2192
+ let s = ![void 0, null].includes(e?.original?.animationDirection), c = ![void 0, null].includes(t.animationDirection), l = Xt(a, {
2190
2193
  direction: s ? Number(e.original.animationDirection) : c ? Number(t.animationDirection) : -1,
2191
2194
  mode: "oneLapNearest",
2192
2195
  dasharray: String(o)
@@ -2195,20 +2198,20 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
2195
2198
  iterations: Infinity,
2196
2199
  easing: "linear"
2197
2200
  });
2198
- Yt.value.set(e.id, m);
2201
+ Qt.value.set(e.id, m);
2199
2202
  });
2200
2203
  }
2201
- Ee(() => Y.value && Y.value.edges, async () => {
2202
- await ve(), Qt();
2204
+ Oe(() => Y.value && Y.value.edges, async () => {
2205
+ await be(), tn();
2203
2206
  }, {
2204
2207
  deep: !0,
2205
2208
  immediate: !0
2206
- }), xe(() => {
2207
- Zt();
2209
+ }), Ce(() => {
2210
+ en();
2208
2211
  });
2209
- async function $t({ scale: e = 2 } = {}) {
2212
+ async function nn({ scale: e = 2 } = {}) {
2210
2213
  if (!M.value) return;
2211
- let { width: t, height: n } = M.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await g({
2214
+ let { width: t, height: n } = M.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await te({
2212
2215
  domElement: M.value,
2213
2216
  base64: !0,
2214
2217
  img: !0,
@@ -2223,28 +2226,28 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
2223
2226
  aspectRatio: r
2224
2227
  };
2225
2228
  }
2226
- let en = _(() => {
2229
+ let rn = _(() => {
2227
2230
  let e = Number(R.value.style.chart.layout.nodeHeight);
2228
2231
  return Number.isFinite(e) && e > 0 ? e / R.value.style.chart.backgroundPattern.spacingRatio : 12;
2229
- }), tn = _(() => en.value * (R.value.style.chart.backgroundPattern.dotRadiusRatio / 100)), $ = T(null), nn = null, rn = 0;
2230
- function an(e) {
2231
- nn &&= (clearTimeout(nn), null), $.value !== e && ($.value = e, (R.value.style.chart.nodes.selected.downstreamEdges.animated === !0 || R.value.style.chart.nodes.selected.upstreamEdges.animated === !0) && Qt());
2232
+ }), an = _(() => rn.value * (R.value.style.chart.backgroundPattern.dotRadiusRatio / 100)), $ = T(null), on = null, sn = 0;
2233
+ function cn(e) {
2234
+ on &&= (clearTimeout(on), null), $.value !== e && ($.value = e, (R.value.style.chart.nodes.selected.downstreamEdges.animated === !0 || R.value.style.chart.nodes.selected.upstreamEdges.animated === !0) && tn());
2232
2235
  }
2233
- function on(e) {
2234
- Ue.value = "pointer", Q.value = null, an(e);
2236
+ function ln(e) {
2237
+ Ge.value = "pointer", Z.value = null, cn(e);
2235
2238
  }
2236
- async function sn(e) {
2237
- Ue.value = "pointer", $.value = null, await Bt(e);
2239
+ async function un(e) {
2240
+ Ge.value = "pointer", $.value = null, await Wt(e);
2238
2241
  }
2239
- function cn(e) {
2240
- let t = ++rn;
2241
- nn && clearTimeout(nn), nn = setTimeout(() => {
2242
- t === rn && $.value === e && ($.value = null, (R.value.style.chart.nodes.selected.downstreamEdges.animated === !0 || R.value.style.chart.nodes.selected.upstreamEdges.animated === !0) && Qt());
2242
+ function dn(e) {
2243
+ let t = ++sn;
2244
+ on && clearTimeout(on), on = setTimeout(() => {
2245
+ t === sn && $.value === e && ($.value = null, (R.value.style.chart.nodes.selected.downstreamEdges.animated === !0 || R.value.style.chart.nodes.selected.upstreamEdges.animated === !0) && tn());
2243
2246
  }, 20);
2244
2247
  }
2245
- function ln(e) {
2246
- let t = e.from === $.value, n = e.to === $.value, r = L.value === "midpoint" && I.value === e.id, i = Q.value === e.id || z.value?.id === e.id || r, a = e.original.color ?? R.value.style.chart.edges.stroke;
2247
- return i && R.value.style.chart.midpoints.selectedEdge.stroke != null ? a = R.value.style.chart.midpoints.selectedEdge.stroke : t && R.value.style.chart.nodes.selected.downstreamEdges.stroke != null ? a = R.value.style.chart.nodes.selected.downstreamEdges.stroke : n && R.value.style.chart.nodes.selected.upstreamEdges.stroke != null && (a = R.value.style.chart.nodes.selected.upstreamEdges.stroke), t && R.value.style.chart.nodes.selected.downstreamEdges.animated === !0 || n && R.value.style.chart.nodes.selected.upstreamEdges.animated === !0 || r && R.value.style.chart.midpoints.selectedEdge.animated === !0 ? e.animated = !0 : e.animated = (Y.value?.edges.find((t) => t.id === e.id))?.original?.animated ?? !1, {
2248
+ function fn(e) {
2249
+ let t = e.from === $.value, n = e.to === $.value, r = L.value === "midpoint" && I.value === e.id, i = Z.value === e.id || z.value?.id === e.id || r, a = e.original.color ?? R.value.style.chart.edges.stroke;
2250
+ return i && R.value.style.chart.midpoints.selectedEdge.stroke != null ? a = R.value.style.chart.midpoints.selectedEdge.stroke : t && R.value.style.chart.nodes.selected.downstreamEdges.stroke != null ? a = R.value.style.chart.nodes.selected.downstreamEdges.stroke : n && R.value.style.chart.nodes.selected.upstreamEdges.stroke != null && (a = R.value.style.chart.nodes.selected.upstreamEdges.stroke), e.animated = t && R.value.style.chart.nodes.selected.downstreamEdges.animated === !0 || n && R.value.style.chart.nodes.selected.upstreamEdges.animated === !0 || r && R.value.style.chart.midpoints.selectedEdge.animated === !0 ? !0 : (Y.value?.edges.find((t) => t.id === e.id))?.original?.animated ?? !1, {
2248
2251
  d: e.pathData,
2249
2252
  fill: "none",
2250
2253
  stroke: a,
@@ -2253,10 +2256,10 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
2253
2256
  "stroke-linejoin": "round"
2254
2257
  };
2255
2258
  }
2256
- function un(e) {
2259
+ function pn(e) {
2257
2260
  return L.value === "node" && I.value === e;
2258
2261
  }
2259
- function dn(e) {
2262
+ function mn(e) {
2260
2263
  let t = $.value === e.id, n = L.value === "node" && I.value === e.id, r = t || n, i = r && R.value.style.chart.nodes.selected.backgroundColor != null ? R.value.style.chart.nodes.selected.backgroundColor : e.original.backgroundColor, a = r && R.value.style.chart.nodes.selected.stroke != null ? R.value.style.chart.nodes.selected.stroke : R.value.style.chart.nodes.stroke, o = r && R.value.style.chart.nodes.selected.strokeWidth != null ? R.value.style.chart.nodes.selected.strokeWidth : R.value.style.chart.nodes.strokeWidth;
2261
2264
  return {
2262
2265
  x: e.x - e.width / 2,
@@ -2269,8 +2272,8 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
2269
2272
  "stroke-width": o
2270
2273
  };
2271
2274
  }
2272
- function fn(e) {
2273
- let t = e.from === $.value, n = e.to === $.value, r = L.value === "midpoint" && I.value === e.id, i = Q.value === e.id || z.value?.id === e.id || r, a = e.original.color ?? R.value.style.chart.edges.stroke;
2275
+ function hn(e) {
2276
+ let t = e.from === $.value, n = e.to === $.value, r = L.value === "midpoint" && I.value === e.id, i = Z.value === e.id || z.value?.id === e.id || r, a = e.original.color ?? R.value.style.chart.edges.stroke;
2274
2277
  return i && R.value.style.chart.midpoints.selectedEdge.stroke != null ? a = R.value.style.chart.midpoints.selectedEdge.stroke : t && R.value.style.chart.nodes.selected.downstreamEdges.stroke != null ? a = R.value.style.chart.nodes.selected.downstreamEdges.stroke : n && R.value.style.chart.nodes.selected.upstreamEdges.stroke != null && (a = R.value.style.chart.nodes.selected.upstreamEdges.stroke), {
2275
2278
  cx: e.midpoint.x,
2276
2279
  cy: e.midpoint.y,
@@ -2280,60 +2283,60 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
2280
2283
  "stroke-width": R.value.style.chart.edges.strokeWidth * (i || e.from === $.value ? 2 : 1)
2281
2284
  };
2282
2285
  }
2283
- function pn(e) {
2284
- let t = e.from === $.value, n = e.to === $.value, r = L.value === "midpoint" && I.value === e.id, i = Q.value === e.id || z.value?.id === e.id || r, a = e.color ?? e.original?.color ?? R.value.style.chart.edges.stroke;
2286
+ function gn(e) {
2287
+ let t = e.from === $.value, n = e.to === $.value, r = L.value === "midpoint" && I.value === e.id, i = Z.value === e.id || z.value?.id === e.id || r, a = e.color ?? e.original?.color ?? R.value.style.chart.edges.stroke;
2285
2288
  return i && R.value.style.chart.midpoints.selectedEdge.stroke != null ? a = R.value.style.chart.midpoints.selectedEdge.stroke : t && R.value.style.chart.nodes.selected.downstreamEdges.stroke != null ? a = R.value.style.chart.nodes.selected.downstreamEdges.stroke : n && R.value.style.chart.nodes.selected.upstreamEdges.stroke != null && (a = R.value.style.chart.nodes.selected.upstreamEdges.stroke), a;
2286
2289
  }
2287
- function mn(e) {
2288
- return `${xt}-${String(e).replace(/[^a-zA-Z0-9_-]/g, "_")}`;
2290
+ function _n(e) {
2291
+ return `${wt}-${String(e).replace(/[^a-zA-Z0-9_-]/g, "_")}`;
2289
2292
  }
2290
- function hn() {
2293
+ function vn() {
2291
2294
  return Y.value;
2292
2295
  }
2293
- function gn(e) {
2296
+ function yn(e) {
2294
2297
  if (e?.stage === "start") {
2295
- Be.value = !0;
2298
+ He.value = !0;
2296
2299
  return;
2297
2300
  }
2298
2301
  if (e?.stage === "end") {
2299
- Be.value = !1;
2302
+ He.value = !1;
2300
2303
  return;
2301
2304
  }
2302
- ft();
2305
+ mt();
2303
2306
  }
2304
- async function _n() {
2307
+ async function bn() {
2305
2308
  if (j("copyAlt", {
2306
2309
  config: R.value,
2307
- dataset: ot.value
2310
+ dataset: ct.value
2308
2311
  }), !R.value.userOptions.callbacks.altCopy) {
2309
2312
  console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
2310
2313
  return;
2311
2314
  }
2312
2315
  await Promise.resolve(R.value.userOptions.callbacks.altCopy({
2313
2316
  config: R.value,
2314
- dataset: ot.value
2317
+ dataset: ct.value
2315
2318
  }));
2316
2319
  }
2317
- let vn = _(() => (Y.value?.nodes ?? []).map((e) => ({
2320
+ let xn = _(() => (Y.value?.nodes ?? []).map((e) => ({
2318
2321
  id: e.id,
2319
2322
  type: "node",
2320
2323
  x: e.x,
2321
2324
  y: e.y,
2322
2325
  label: e.label ?? e.id,
2323
2326
  raw: e
2324
- }))), yn = _(() => R.value.style.chart.midpoints.show ? (Y.value?.edges ?? []).filter((e) => e?.midpoint).map((e) => ({
2327
+ }))), Sn = _(() => R.value.style.chart.midpoints.show ? (Y.value?.edges ?? []).filter((e) => e?.midpoint).map((e) => ({
2325
2328
  id: e.id,
2326
2329
  type: "midpoint",
2327
2330
  x: e.midpoint.x,
2328
2331
  y: e.midpoint.y,
2329
2332
  label: `${X(e.from)?.label ?? e.from} → ${X(e.to)?.label ?? e.to}`,
2330
2333
  raw: e
2331
- })) : []), bn = _(() => [...vn.value, ...yn.value].sort((e, t) => e.x === t.x ? e.y - t.y : e.x - t.x)), xn = _(() => {
2334
+ })) : []), Cn = _(() => [...xn.value, ...Sn.value].sort((e, t) => e.x === t.x ? e.y - t.y : e.x - t.x)), wn = _(() => {
2332
2335
  let e = /* @__PURE__ */ new Map();
2333
- return bn.value.forEach((t, n) => {
2336
+ return Cn.value.forEach((t, n) => {
2334
2337
  e.set(`${t.type}:${t.id}`, n);
2335
2338
  }), e;
2336
- }), Sn = _(() => {
2339
+ }), Tn = _(() => {
2337
2340
  let e = Y.value?.nodes ?? [], t = Y.value?.edges ?? [];
2338
2341
  return {
2339
2342
  headers: [
@@ -2351,113 +2354,113 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
2351
2354
  })
2352
2355
  };
2353
2356
  });
2354
- function Cn(e) {
2357
+ function En(e) {
2355
2358
  return `${e.type}:${e.id}`;
2356
2359
  }
2357
- function wn() {
2358
- return I.value == null || L.value == null ? null : bn.value.find((e) => e.id === I.value && e.type === L.value) ?? null;
2360
+ function Dn() {
2361
+ return I.value == null || L.value == null ? null : Cn.value.find((e) => e.id === I.value && e.type === L.value) ?? null;
2359
2362
  }
2360
- async function Tn(e) {
2363
+ async function On(e) {
2361
2364
  if (e) {
2362
2365
  if (e.type === "node") {
2363
- Vt();
2366
+ Q();
2364
2367
  return;
2365
2368
  }
2366
- e.type === "midpoint" && (Ut(), await Bt(e.raw));
2369
+ e.type === "midpoint" && (Kt(), await Wt(e.raw));
2367
2370
  }
2368
2371
  }
2369
- function En(e) {
2372
+ function kn(e) {
2370
2373
  if (e) {
2371
- if (I.value = e.id, L.value = e.type, He.value = xn.value.get(Cn(e)) ?? null, e.type === "node") {
2372
- an(e.id), Q.value = null;
2374
+ if (I.value = e.id, L.value = e.type, We.value = wn.value.get(En(e)) ?? null, e.type === "node") {
2375
+ cn(e.id), Z.value = null;
2373
2376
  return;
2374
2377
  }
2375
- e.type === "midpoint" && ($.value = null, Q.value = e.id, R.value.style.chart.midpoints.selectedEdge.animated === !0 && Qt());
2378
+ e.type === "midpoint" && ($.value = null, Z.value = e.id, R.value.style.chart.midpoints.selectedEdge.animated === !0 && tn());
2376
2379
  }
2377
2380
  }
2378
- function Dn() {
2379
- I.value = null, L.value = null, He.value = null, V.value || ($.value = null), W.value || (Q.value = null, R.value.style.chart.midpoints.selectedEdge.animated === !0 && Qt());
2381
+ function An() {
2382
+ I.value = null, L.value = null, We.value = null, V.value || ($.value = null), W.value || (Z.value = null, R.value.style.chart.midpoints.selectedEdge.animated === !0 && tn());
2380
2383
  }
2381
- function On() {
2382
- We.value = !0, Dn();
2384
+ function jn() {
2385
+ Ke.value = !0, An();
2383
2386
  }
2384
- function kn() {
2385
- We.value = !1, Ut(), Vt(), Dn();
2387
+ function Mn() {
2388
+ Ke.value = !1, Kt(), Q(), An();
2386
2389
  }
2387
- function An(e, t, n) {
2390
+ function Nn(e, t, n) {
2388
2391
  let r = t.x - e.x, i = t.y - e.y;
2389
2392
  return n === "right" && r <= 0 || n === "left" && r >= 0 || n === "down" && i <= 0 || n === "up" && i >= 0 ? Infinity : n === "right" || n === "left" ? Math.abs(r) * 1e3 + Math.abs(i) : Math.abs(i) * 1e3 + Math.abs(r);
2390
2393
  }
2391
- function jn(e, t) {
2392
- let n = bn.value.filter((t) => Cn(t) !== Cn(e));
2394
+ function Pn(e, t) {
2395
+ let n = Cn.value.filter((t) => En(t) !== En(e));
2393
2396
  if (!n.length) return null;
2394
2397
  let r = null, i = Infinity;
2395
2398
  return n.forEach((n) => {
2396
- let a = An(e, n, t);
2399
+ let a = Nn(e, n, t);
2397
2400
  a < i && (i = a, r = n);
2398
- }), r || (t === "right" || t === "down" ? bn.value[0] ?? null : bn.value[bn.value.length - 1] ?? null);
2401
+ }), r || (t === "right" || t === "down" ? Cn.value[0] ?? null : Cn.value[Cn.value.length - 1] ?? null);
2399
2402
  }
2400
- async function Mn(e) {
2401
- e && (Ue.value = "keyboard", e.type === "node" && (Vt(), await Ht(e.raw)));
2403
+ async function Fn(e) {
2404
+ e && (Ge.value = "keyboard", e.type === "node" && (Q(), await Gt(e.raw)));
2402
2405
  }
2403
- async function Nn(e) {
2404
- if (!K.value || G.value || document.activeElement !== K.value || !bn.value.length) return;
2406
+ async function In(e) {
2407
+ if (!K.value || G.value || document.activeElement !== K.value || !Cn.value.length) return;
2405
2408
  let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
2406
2409
  if (!t && !n && !r && !i && !a && !o) return;
2407
2410
  if (e.preventDefault(), e.stopPropagation(), o) {
2408
- Ut(), Vt(), Dn();
2411
+ Kt(), Q(), An();
2409
2412
  return;
2410
2413
  }
2411
- let s = wn();
2414
+ let s = Dn();
2412
2415
  if (a) {
2413
2416
  if (!s) return;
2414
- s.type === "node" && await Mn(s);
2417
+ s.type === "node" && await Fn(s);
2415
2418
  return;
2416
2419
  }
2417
2420
  if (!s) {
2418
- let e = bn.value[0];
2421
+ let e = Cn.value[0];
2419
2422
  if (!e) return;
2420
- En(e), await Tn(e);
2423
+ kn(e), await On(e);
2421
2424
  return;
2422
2425
  }
2423
2426
  let c = null;
2424
- n ? c = jn(s, "right") : t ? c = jn(s, "left") : i ? c = jn(s, "down") : r && (c = jn(s, "up")), c && (Ut(), Vt(), En(c), await Tn(c));
2425
- }
2426
- return a({
2427
- getData: hn,
2428
- getImage: $t,
2429
- generatePdf: dt,
2430
- generateSvg: gt,
2431
- generateImage: ft,
2432
- toggleAnnotator: Nt,
2433
- toggleFullscreen: Mt,
2434
- zoomIn: Pt,
2435
- zoomOut: Ft,
2436
- resetZoom: Tt,
2437
- switchDirection: Lt,
2438
- copyAlt: _n
2427
+ n ? c = Pn(s, "right") : t ? c = Pn(s, "left") : i ? c = Pn(s, "down") : r && (c = Pn(s, "up")), c && (Kt(), Q(), kn(c), await On(c));
2428
+ }
2429
+ return i({
2430
+ getData: vn,
2431
+ getImage: nn,
2432
+ generatePdf: pt,
2433
+ generateSvg: yt,
2434
+ generateImage: mt,
2435
+ toggleAnnotator: Lt,
2436
+ toggleFullscreen: It,
2437
+ zoomIn: Rt,
2438
+ zoomOut: zt,
2439
+ resetZoom: Ot,
2440
+ switchDirection: Vt,
2441
+ copyAlt: bn
2439
2442
  }), (e, t) => (w(), b("div", {
2440
- class: ye(`vue-data-ui-component vue-ui-dag ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${R.value.responsive ? "vue-ui-dag-responsive" : ""}`),
2443
+ class: xe(`vue-data-ui-component vue-ui-dag ${Ft.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${R.value.responsive ? "vue-ui-dag-responsive" : ""}`),
2441
2444
  id: `dag_${N.value}`,
2442
2445
  ref_key: "dagChart",
2443
2446
  ref: M,
2444
- style: be({
2447
+ style: Se({
2445
2448
  fontFamily: R.value.style.fontFamily,
2446
2449
  backgroundColor: R.value.style.chart.backgroundColor,
2447
2450
  padding: "0.5rem"
2448
2451
  }),
2449
- onMouseenter: _t,
2450
- onMouseleave: vt
2452
+ onMouseenter: bt,
2453
+ onMouseleave: xt
2451
2454
  }, [
2452
2455
  x("div", {
2453
2456
  id: `chart-instructions-${N.value}`,
2454
2457
  class: "sr-only"
2455
- }, [x("p", null, we(R.value.a11y.translations.keyboardNavigation), 1)], 8, Zn),
2456
- Sn.value?.rows?.length ? (w(), v(ie, {
2458
+ }, [x("p", null, Ee(R.value.a11y.translations.keyboardNavigation), 1)], 8, $n),
2459
+ Tn.value?.rows?.length ? (w(), v(oe, {
2457
2460
  key: 0,
2458
2461
  uid: N.value,
2459
- head: Sn.value.headers,
2460
- body: Sn.value.rows,
2462
+ head: Tn.value.headers,
2463
+ body: Tn.value.rows,
2461
2464
  notice: R.value.a11y.translations.tableAvailable,
2462
2465
  caption: R.value.a11y.translations.tableCaption
2463
2466
  }, null, 8, [
@@ -2467,15 +2470,15 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
2467
2470
  "notice",
2468
2471
  "caption"
2469
2472
  ])) : y("", !0),
2470
- D(bt) ? (w(), b("div", Qn, we(String(D(bt))), 1)) : y("", !0),
2471
- R.value.userOptions.buttons.annotator ? (w(), v(D(De), {
2473
+ D(Ct) ? (w(), b("div", er, Ee(String(D(Ct))), 1)) : y("", !0),
2474
+ R.value.userOptions.buttons.annotator ? (w(), v(D(ke), {
2472
2475
  key: 2,
2473
2476
  svgRef: D(K),
2474
2477
  backgroundColor: R.value.style.chart.backgroundColor,
2475
2478
  color: R.value.style.chart.color,
2476
2479
  active: G.value,
2477
- isCursorPointer: Ge.value,
2478
- onClose: Nt
2480
+ isCursorPointer: qe.value,
2481
+ onClose: Lt
2479
2482
  }, {
2480
2483
  "annotator-action-close": O(() => [E(e.$slots, "annotator-action-close", {}, void 0, !0)]),
2481
2484
  "annotator-action-color": O(({ color: t }) => [E(e.$slots, "annotator-action-color", C(S({ color: t })), void 0, !0)]),
@@ -2491,12 +2494,12 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
2491
2494
  "active",
2492
2495
  "isCursorPointer"
2493
2496
  ])) : y("", !0),
2494
- R.value.userOptions.show && ze.value && (D(rt) || D(tt)) ? (w(), v(D(ke), {
2497
+ R.value.userOptions.show && Ve.value && (D(at) || D(rt)) ? (w(), v(D(je), {
2495
2498
  ref: "userOptionsRef",
2496
- key: `user_option_${Le.value}`,
2499
+ key: `user_option_${ze.value}`,
2497
2500
  backgroundColor: R.value.style.chart.backgroundColor,
2498
2501
  color: R.value.style.chart.color,
2499
- isPrinting: D(ut),
2502
+ isPrinting: D(ft),
2500
2503
  isImaging: D(J),
2501
2504
  uid: N.value,
2502
2505
  hasTooltip: !1,
@@ -2508,7 +2511,7 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
2508
2511
  hasSvg: R.value.userOptions.buttons.svg,
2509
2512
  hasFullscreen: R.value.userOptions.buttons.fullscreen,
2510
2513
  hasAltCopy: R.value.userOptions.buttons.altCopy,
2511
- isFullscreen: Z.value,
2514
+ isFullscreen: Ft.value,
2512
2515
  chartElement: M.value,
2513
2516
  position: R.value.userOptions.position,
2514
2517
  titles: { ...R.value.userOptions.buttonTitles },
@@ -2517,17 +2520,17 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
2517
2520
  callbacks: R.value.userOptions.callbacks,
2518
2521
  printScale: R.value.userOptions.print.scale,
2519
2522
  hasZoom: R.value.userOptions.buttons.zoom,
2520
- isZoom: Ct.value,
2521
- isCursorPointer: Ge.value,
2522
- onToggleFullscreen: Mt,
2523
- onGeneratePdf: D(dt),
2524
- onGenerateImage: gn,
2525
- onGenerateSvg: gt,
2526
- onToggleAnnotator: Nt,
2527
- onToggleZoom: kt,
2528
- onCopyAlt: _n,
2529
- style: be({ visibility: D(rt) ? D(tt) ? "visible" : "hidden" : "visible" })
2530
- }, pe({ _: 2 }, [
2523
+ isZoom: Et.value,
2524
+ isCursorPointer: qe.value,
2525
+ onToggleFullscreen: It,
2526
+ onGeneratePdf: D(pt),
2527
+ onGenerateImage: yn,
2528
+ onGenerateSvg: yt,
2529
+ onToggleAnnotator: Lt,
2530
+ onToggleZoom: Mt,
2531
+ onCopyAlt: bn,
2532
+ style: Se({ visibility: D(at) ? D(rt) ? "visible" : "hidden" : "visible" })
2533
+ }, he({ _: 2 }, [
2531
2534
  e.$slots.menuIcon ? {
2532
2535
  name: "menuIcon",
2533
2536
  fn: O(({ isOpen: t, color: n }) => [E(e.$slots, "menuIcon", C(S({
@@ -2618,10 +2621,10 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
2618
2621
  R.value.style.chart.title.text ? (w(), b("div", {
2619
2622
  key: 4,
2620
2623
  ref_key: "chartTitle",
2621
- ref: Ne,
2624
+ ref: Fe,
2622
2625
  style: "width:100%;background:transparent;"
2623
- }, [(w(), v(ee, {
2624
- key: `title_${Ie.value}`,
2626
+ }, [(w(), v(ne, {
2627
+ key: `title_${Re.value}`,
2625
2628
  config: {
2626
2629
  title: {
2627
2630
  cy: "dag-title",
@@ -2633,75 +2636,75 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
2633
2636
  }
2634
2637
  }
2635
2638
  }, null, 8, ["config"]))], 512)) : y("", !0),
2636
- R.value.style.chart.controls.position === "top" && !D(at) && R.value.style.chart.controls.show ? (w(), v(ce, {
2639
+ R.value.style.chart.controls.position === "top" && !D(st) && R.value.style.chart.controls.show ? (w(), v(ue, {
2637
2640
  key: 5,
2638
2641
  ref_key: "zoomControls",
2639
- ref: Fe,
2642
+ ref: Le,
2640
2643
  config: R.value,
2641
- scale: D(Dt),
2642
- isFullscreen: Z.value,
2644
+ scale: D(At),
2645
+ isFullscreen: Ft.value,
2643
2646
  withDirection: "",
2644
- onZoomIn: Pt,
2645
- onZoomOut: Ft,
2646
- onResetZoom: t[0] ||= () => D(Tt)(!0),
2647
- onSwitchDirection: Lt
2647
+ onZoomIn: Rt,
2648
+ onZoomOut: zt,
2649
+ onResetZoom: t[0] ||= () => D(Ot)(!0),
2650
+ onSwitchDirection: Vt
2648
2651
  }, null, 8, [
2649
2652
  "config",
2650
2653
  "scale",
2651
2654
  "isFullscreen"
2652
2655
  ])) : y("", !0),
2653
- x("div", $n, [D(Y) ? (w(), b("svg", {
2656
+ x("div", tr, [D(Y) ? (w(), b("svg", {
2654
2657
  key: 0,
2655
2658
  ref_key: "svgRef",
2656
2659
  ref: K,
2657
- class: ye({
2660
+ class: xe({
2658
2661
  "vue-ui-dag-svg": !0,
2659
- "vue-data-ui-loading": D(at)
2662
+ "vue-data-ui-loading": D(st)
2660
2663
  }),
2661
- viewBox: jt.value,
2664
+ viewBox: Pt.value,
2662
2665
  xmlns: D(s),
2663
- style: be({
2666
+ style: Se({
2664
2667
  backgroundColor: R.value.style.chart.backgroundColor,
2665
2668
  height: "100%",
2666
2669
  width: "100%"
2667
2670
  }),
2668
2671
  tabindex: "0",
2669
2672
  "aria-describedby": `chart-instructions-${N.value}`,
2670
- onFocus: On,
2671
- onBlur: kn,
2672
- onKeydown: Nn
2673
+ onFocus: jn,
2674
+ onBlur: Mn,
2675
+ onKeydown: In
2673
2676
  }, [
2674
- he(D(Ae)),
2675
- R.value.style.chart.backgroundPattern.show ? (w(), b("defs", tr, [x("pattern", {
2677
+ _e(D(Me)),
2678
+ R.value.style.chart.backgroundPattern.show ? (w(), b("defs", rr, [x("pattern", {
2676
2679
  id: `dag_bg_pattern_${N.value}`,
2677
2680
  patternUnits: "userSpaceOnUse",
2678
- width: en.value,
2679
- height: en.value
2681
+ width: rn.value,
2682
+ height: rn.value
2680
2683
  }, [E(e.$slots, "background-pattern", C(S({
2681
- x: en.value / 2,
2682
- y: en.value / 2,
2684
+ x: rn.value / 2,
2685
+ y: rn.value / 2,
2683
2686
  color: R.value.style.chart.backgroundPattern.dotColor
2684
2687
  })), () => [x("circle", {
2685
- cx: en.value / 2,
2686
- cy: en.value / 2,
2687
- r: tn.value,
2688
+ cx: rn.value / 2,
2689
+ cy: rn.value / 2,
2690
+ r: an.value,
2688
2691
  fill: R.value.style.chart.backgroundPattern.dotColor
2689
- }, null, 8, rr)], !0)], 8, nr)])) : y("", !0),
2692
+ }, null, 8, ar)], !0)], 8, ir)])) : y("", !0),
2690
2693
  R.value.style.chart.backgroundPattern.show ? (w(), b("rect", {
2691
2694
  key: 1,
2692
- x: D(wt)?.x ?? 0,
2693
- y: D(wt)?.y ?? 0,
2694
- width: D(wt)?.width ?? 0,
2695
- height: D(wt)?.height ?? 0,
2695
+ x: D(Dt)?.x ?? 0,
2696
+ y: D(Dt)?.y ?? 0,
2697
+ width: D(Dt)?.width ?? 0,
2698
+ height: D(Dt)?.height ?? 0,
2696
2699
  fill: `url(#dag_bg_pattern_${N.value})`,
2697
- style: be({
2700
+ style: Se({
2698
2701
  pointerEvents: "none",
2699
2702
  opacity: R.value.style.chart.backgroundPattern.opacity
2700
2703
  })
2701
- }, null, 12, ir)) : y("", !0),
2702
- D(Y).arrowShape === "undirected" ? y("", !0) : (w(), b("defs", ar, [(w(!0), b(ue, null, Ce(D(Y).edges, (e) => (w(), b("marker", {
2704
+ }, null, 12, or)) : y("", !0),
2705
+ D(Y).arrowShape === "undirected" ? y("", !0) : (w(), b("defs", sr, [(w(!0), b(fe, null, Te(D(Y).edges, (e) => (w(), b("marker", {
2703
2706
  key: `marker_${e.id}`,
2704
- id: mn(e.id),
2707
+ id: _n(e.id),
2705
2708
  markerWidth: D(Y).arrowSize,
2706
2709
  markerHeight: D(Y).arrowSize,
2707
2710
  refX: D(Y).arrowSize - 3,
@@ -2711,64 +2714,64 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
2711
2714
  }, [D(Y).arrowShape === "normal" ? (w(), b("path", {
2712
2715
  key: 0,
2713
2716
  d: `M 0 0 L ${D(Y).arrowSize} ${D(Y).arrowSize / 2} L 0 ${D(Y).arrowSize} Z`,
2714
- fill: pn(e),
2715
- stroke: pn(e),
2717
+ fill: gn(e),
2718
+ stroke: gn(e),
2716
2719
  "stroke-width": "0",
2717
2720
  style: { transition: "stroke 0.2s ease-in-out,\n fill 0.2s ease-in-out,\n stroke-width 0.2s ease-in-out" }
2718
- }, null, 8, sr)) : (w(), b("path", {
2721
+ }, null, 8, lr)) : (w(), b("path", {
2719
2722
  key: 1,
2720
2723
  d: `M 0 0 L ${D(Y).arrowSize} ${D(Y).arrowSize / 2} L 0 ${D(Y).arrowSize} L ${D(Y).arrowSize / 3} ${D(Y).arrowSize / 2} Z`,
2721
- fill: pn(e),
2722
- stroke: pn(e),
2724
+ fill: gn(e),
2725
+ stroke: gn(e),
2723
2726
  "stroke-width": "0",
2724
2727
  style: { transition: "stroke 0.2s ease-in-out,\n fill 0.2s ease-in-out,\n stroke-width 0.2s ease-in-out" }
2725
- }, null, 8, cr))], 8, or))), 128))])),
2726
- x("g", lr, [(w(!0), b(ue, null, Ce(D(Y).edges, (e) => (w(), b(ue, { key: e.id }, [x("path", _e({
2728
+ }, null, 8, ur))], 8, cr))), 128))])),
2729
+ x("g", dr, [(w(!0), b(fe, null, Te(D(Y).edges, (e) => (w(), b(fe, { key: e.id }, [x("path", ye({
2727
2730
  "data-cy-edge": "",
2728
2731
  ref_for: !0,
2729
- ref: Xt(e.id)
2730
- }, { ref_for: !0 }, ln(e), { style: {
2732
+ ref: $t(e.id)
2733
+ }, { ref_for: !0 }, fn(e), { style: {
2731
2734
  "pointer-events": "none",
2732
2735
  transition: "stroke-width 0.2s ease-in-out,\n stroke 0.2s ease-in-out"
2733
- } }), null, 16), R.value.style.chart.midpoints.show ? (w(), b("circle", _e({
2736
+ } }), null, 16), R.value.style.chart.midpoints.show ? (w(), b("circle", ye({
2734
2737
  key: 0,
2735
2738
  "data-cy-midpoint": "",
2736
2739
  class: "vue-ui-dag-edge-midpoint",
2737
2740
  "data-a11y-midpoint-id": e.id
2738
- }, { ref_for: !0 }, fn(e), {
2741
+ }, { ref_for: !0 }, hn(e), {
2739
2742
  "aria-label": `${X(e.from)?.label ?? e.from} to ${X(e.to)?.label ?? e.to}`,
2740
2743
  style: { transition: "stroke-width 0.2s ease-in-out,\n stroke 0.2s ease-in-out,\n fill 0.2s ease-in-out" },
2741
- onMouseenter: (t) => sn(e),
2742
- onMouseleave: Vt
2743
- }), null, 16, ur)) : y("", !0)], 64))), 128))]),
2744
- x("g", dr, [(w(!0), b(ue, null, Ce(D(Y).nodes, (t) => (w(), b("g", {
2744
+ onMouseenter: (t) => un(e),
2745
+ onMouseleave: Q
2746
+ }), null, 16, fr)) : y("", !0)], 64))), 128))]),
2747
+ x("g", pr, [(w(!0), b(fe, null, Te(D(Y).nodes, (t) => (w(), b("g", {
2745
2748
  key: t.id,
2746
2749
  class: "vue-ui-dag-node",
2747
- onClick: Oe((e) => R.value.style.chart.nodes.tooltip.showOnClick && Ht(t), ["stop"]),
2748
- onMouseenter: (e) => on(t.id),
2749
- onMouseleave: (e) => cn(t.id)
2750
- }, [e.$slots.node ? y("", !0) : (w(), b("rect", _e({
2750
+ onClick: Ae((e) => R.value.style.chart.nodes.tooltip.showOnClick && Gt(t), ["stop"]),
2751
+ onMouseenter: (e) => ln(t.id),
2752
+ onMouseleave: (e) => dn(t.id)
2753
+ }, [e.$slots.node ? y("", !0) : (w(), b("rect", ye({
2751
2754
  key: 0,
2752
2755
  "data-cy-node": ""
2753
- }, { ref_for: !0 }, dn(t), {
2756
+ }, { ref_for: !0 }, mn(t), {
2754
2757
  "data-a11y-node-id": t.id,
2755
2758
  "aria-label": `${t.label ?? t.id}`,
2756
2759
  style: {
2757
- cursor: R.value.style.chart.nodes.tooltip.showOnClick && Ge.value ? "pointer" : "default",
2760
+ cursor: R.value.style.chart.nodes.tooltip.showOnClick && qe.value ? "pointer" : "default",
2758
2761
  transition: "stroke 0.2s ease-in-out, stroke-width 0.2s ease-in-out, fill 0.2s ease-in-out"
2759
2762
  }
2760
- }), null, 16, pr)), e.$slots.node ? (w(), b("foreignObject", {
2763
+ }), null, 16, hr)), e.$slots.node ? (w(), b("foreignObject", {
2761
2764
  key: 1,
2762
2765
  x: t.x - t.width / 2,
2763
2766
  y: t.y - t.height / 2,
2764
2767
  width: t.width,
2765
2768
  height: t.height,
2766
2769
  style: { overflow: "visible" }
2767
- }, [E(e.$slots, "node", _e({ ref_for: !0 }, {
2770
+ }, [E(e.$slots, "node", ye({ ref_for: !0 }, {
2768
2771
  node: t,
2769
2772
  orientation: q.value
2770
- }), void 0, !0)], 8, mr)) : y("", !0)], 40, fr))), 128))]),
2771
- x("g", hr, [(w(!0), b(ue, null, Ce(D(Y).edges, (e) => (w(), b("path", {
2773
+ }), void 0, !0)], 8, gr)) : y("", !0)], 40, mr))), 128))]),
2774
+ x("g", _r, [(w(!0), b(fe, null, Te(D(Y).edges, (e) => (w(), b("path", {
2772
2775
  key: e.id,
2773
2776
  d: e.pathData,
2774
2777
  fill: "none",
@@ -2776,18 +2779,18 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
2776
2779
  "stroke-width": R.value.style.chart.edges.strokeWidth * (e.from === $.value || e.id === z.value?.id ? 1.3 : 1),
2777
2780
  "stroke-linecap": "round",
2778
2781
  "stroke-linejoin": "round",
2779
- "marker-end": D(Y).arrowShape === "undirected" ? null : `url(#${mn(e.id)})`,
2782
+ "marker-end": D(Y).arrowShape === "undirected" ? null : `url(#${_n(e.id)})`,
2780
2783
  style: {
2781
2784
  "pointer-events": "none",
2782
2785
  transition: "stroke-width 0.2s ease-in-out,\n stroke 0.2s ease-in-out"
2783
2786
  }
2784
- }, null, 8, gr))), 128))]),
2785
- x("g", _r, [(w(!0), b(ue, null, Ce(D(Y).nodes, (t) => (w(), b("g", {
2787
+ }, null, 8, vr))), 128))]),
2788
+ x("g", yr, [(w(!0), b(fe, null, Te(D(Y).nodes, (t) => (w(), b("g", {
2786
2789
  key: t.id,
2787
- onClick: Oe((e) => R.value.style.chart.nodes.tooltip.showOnClick && Ht(t), ["stop"]),
2788
- onMouseenter: (e) => an(t.id),
2789
- onMouseleave: (e) => cn(t.id)
2790
- }, [e.$slots["free-node-label"] ? y("", !0) : (w(), b(ue, { key: 0 }, [e.$slots["node-label"] ? (w(), b("text", {
2790
+ onClick: Ae((e) => R.value.style.chart.nodes.tooltip.showOnClick && Gt(t), ["stop"]),
2791
+ onMouseenter: (e) => cn(t.id),
2792
+ onMouseleave: (e) => dn(t.id)
2793
+ }, [e.$slots["free-node-label"] ? y("", !0) : (w(), b(fe, { key: 0 }, [e.$slots["node-label"] ? (w(), b("text", {
2791
2794
  key: 0,
2792
2795
  x: t.x,
2793
2796
  y: t.y + R.value.style.chart.nodes.labels.fontSize / 3,
@@ -2796,102 +2799,102 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
2796
2799
  fill: $.value === t.id && R.value.style.chart.nodes.selected.labelColor != null ? R.value.style.chart.nodes.selected.labelColor : t.original.color,
2797
2800
  "font-weight": R.value.style.chart.nodes.labels.bold ? "bold" : "normal",
2798
2801
  style: { transition: "fill 0.2s ease-in-out" }
2799
- }, [E(e.$slots, "node-label", _e({ ref_for: !0 }, {
2802
+ }, [E(e.$slots, "node-label", ye({ ref_for: !0 }, {
2800
2803
  node: t,
2801
2804
  orientation: q.value
2802
- }), () => [me(we(t.label), 1)], !0)], 8, yr)) : !e.$slots["free-node-label"] && !e.$slots.node ? (w(), b("text", {
2805
+ }), () => [ge(Ee(t.label), 1)], !0)], 8, xr)) : !e.$slots["free-node-label"] && !e.$slots.node ? (w(), b("text", {
2803
2806
  key: 1,
2804
2807
  "data-cy-node-label": "",
2805
2808
  x: t.x,
2806
2809
  y: t.y + R.value.style.chart.nodes.labels.fontSize / 3,
2807
2810
  "text-anchor": "middle",
2808
2811
  "font-size": R.value.style.chart.nodes.labels.fontSize,
2809
- fill: ($.value === t.id || un(t.id)) && R.value.style.chart.nodes.selected.labelColor != null ? R.value.style.chart.nodes.selected.labelColor : t.original.color,
2812
+ fill: ($.value === t.id || pn(t.id)) && R.value.style.chart.nodes.selected.labelColor != null ? R.value.style.chart.nodes.selected.labelColor : t.original.color,
2810
2813
  "font-weight": R.value.style.chart.nodes.labels.bold ? "bold" : "normal",
2811
2814
  style: { transition: "fill 0.2s ease-in-out" },
2812
2815
  innerHTML: D(n)({
2813
2816
  content: t.label,
2814
2817
  fontSize: R.value.style.chart.nodes.labels.fontSize,
2815
2818
  fontWeight: R.value.style.chart.nodes.labels.bold ? "bold" : "normal",
2816
- fill: ($.value === t.id || un(t.id)) && R.value.style.chart.nodes.selected.labelColor != null ? R.value.style.chart.nodes.selected.labelColor : t.original.color,
2819
+ fill: ($.value === t.id || pn(t.id)) && R.value.style.chart.nodes.selected.labelColor != null ? R.value.style.chart.nodes.selected.labelColor : t.original.color,
2817
2820
  x: t.x,
2818
2821
  y: t.y,
2819
2822
  autoOffset: !0
2820
2823
  })
2821
- }, null, 8, br)) : y("", !0)], 64)), e.$slots["free-node-label"] ? (w(), b("g", xr, [E(e.$slots, "free-node-label", _e({ ref_for: !0 }, {
2824
+ }, null, 8, Sr)) : y("", !0)], 64)), e.$slots["free-node-label"] ? (w(), b("g", Cr, [E(e.$slots, "free-node-label", ye({ ref_for: !0 }, {
2822
2825
  node: t,
2823
2826
  layoutData: D(Y),
2824
2827
  orientation: q.value
2825
- }), void 0, !0)])) : y("", !0)], 40, vr))), 128))]),
2828
+ }), void 0, !0)])) : y("", !0)], 40, br))), 128))]),
2826
2829
  E(e.$slots, "svg", { svg: {
2827
- drawingArea: D(wt),
2830
+ drawingArea: D(Dt),
2828
2831
  data: D(Y),
2829
2832
  orientation: q.value,
2830
- isPrintingImg: D(ut) || D(J) || Be.value,
2831
- isPrintingSvg: Ve.value
2833
+ isPrintingImg: D(ft) || D(J) || He.value,
2834
+ isPrintingSvg: Ue.value
2832
2835
  } }, void 0, !0)
2833
- ], 46, er)) : y("", !0), e.$slots.hint ? (w(), b("div", Sr, [E(e.$slots, "hint", C(S({
2836
+ ], 46, nr)) : y("", !0), e.$slots.hint ? (w(), b("div", wr, [E(e.$slots, "hint", C(S({
2834
2837
  hint: R.value.a11y.translations.keyboardNavigation,
2835
- isVisible: We.value
2838
+ isVisible: Ke.value
2836
2839
  })), void 0, !0)])) : y("", !0)]),
2837
- e.$slots.watermark ? (w(), b("div", Cr, [E(e.$slots, "watermark", C(S({ isPrinting: D(ut) || D(J) || Be.value || Ve.value })), void 0, !0)])) : y("", !0),
2838
- he(fe, { name: "fade" }, {
2839
- default: O(() => [W.value ? (w(), v(de, {
2840
+ e.$slots.watermark ? (w(), b("div", Tr, [E(e.$slots, "watermark", C(S({ isPrinting: D(ft) || D(J) || He.value || Ue.value })), void 0, !0)])) : y("", !0),
2841
+ _e(me, { name: "fade" }, {
2842
+ default: O(() => [W.value ? (w(), v(pe, {
2840
2843
  key: 0,
2841
- to: Z.value ? M.value : "body"
2844
+ to: Ft.value ? M.value : "body"
2842
2845
  }, [x("div", {
2843
2846
  "data-cy-tooltip-midpoint": "",
2844
2847
  ref_key: "tooltipRef",
2845
2848
  ref: B,
2846
2849
  class: "vue-ui-dag-tooltip",
2847
- style: be({
2848
- ...Ye.value,
2850
+ style: Se({
2851
+ ...Ze.value,
2849
2852
  maxWidth: R.value.style.chart.midpoints.tooltip.maxWidth,
2850
2853
  "--vue-data-ui-dag-tooltip-background": R.value.style.chart.midpoints.tooltip.backgroundColor,
2851
2854
  "--vue-data-ui-dag-tooltip-color": R.value.style.chart.midpoints.tooltip.color
2852
2855
  }),
2853
- "data-position": Xe.value
2856
+ "data-position": Qe.value
2854
2857
  }, [E(e.$slots, "tooltip-midpoint", C(S({
2855
2858
  edge: z.value,
2856
2859
  layoutData: D(Y)
2857
- })), () => [z.value ? (w(), b("div", Tr, we(X(z.value.from)?.label ?? z.value.from) + " → " + we(X(z.value.to)?.label ?? z.value.to), 1)) : y("", !0)], !0)], 12, wr)], 8, ["to"])) : y("", !0)]),
2860
+ })), () => [z.value ? (w(), b("div", Dr, Ee(X(z.value.from)?.label ?? z.value.from) + " → " + Ee(X(z.value.to)?.label ?? z.value.to), 1)) : y("", !0)], !0)], 12, Er)], 8, ["to"])) : y("", !0)]),
2858
2861
  _: 3
2859
2862
  }),
2860
- he(fe, { name: "fade" }, {
2861
- default: O(() => [V.value ? (w(), v(de, {
2863
+ _e(me, { name: "fade" }, {
2864
+ default: O(() => [V.value ? (w(), v(pe, {
2862
2865
  key: 0,
2863
- to: Z.value ? M.value : "body"
2866
+ to: Ft.value ? M.value : "body"
2864
2867
  }, [x("div", {
2865
2868
  "data-cy-tooltip-node": "",
2866
2869
  ref_key: "nodeTooltipRef",
2867
2870
  ref: U,
2868
2871
  class: "vue-ui-dag-node-tooltip",
2869
- style: be({
2872
+ style: Se({
2870
2873
  maxWidth: R.value.style.chart.nodes.tooltip.maxWidth,
2871
- left: $e.value.left,
2872
- top: $e.value.top,
2874
+ left: tt.value.left,
2875
+ top: tt.value.top,
2873
2876
  "--vue-data-ui-dag-node-tooltip-background": R.value.style.chart.nodes.tooltip.backgroundColor,
2874
2877
  "--vue-data-ui-dag-node-tooltip-color": R.value.style.chart.nodes.tooltip.color
2875
2878
  }),
2876
- "data-position": et.value
2879
+ "data-position": nt.value
2877
2880
  }, [E(e.$slots, "tooltip-node", C(S({
2878
2881
  node: H.value,
2879
2882
  layoutData: D(Y)
2880
- })), () => [H.value ? (w(), b("div", Dr, we(H.value.label), 1)) : y("", !0)], !0)], 12, Er)], 8, ["to"])) : y("", !0)]),
2883
+ })), () => [H.value ? (w(), b("div", kr, Ee(H.value.label), 1)) : y("", !0)], !0)], 12, Or)], 8, ["to"])) : y("", !0)]),
2881
2884
  _: 3
2882
2885
  }),
2883
- R.value.style.chart.controls.position === "bottom" && !D(at) && R.value.style.chart.controls.show ? (w(), v(ce, {
2886
+ R.value.style.chart.controls.position === "bottom" && !D(st) && R.value.style.chart.controls.show ? (w(), v(ue, {
2884
2887
  key: 7,
2885
2888
  ref_key: "zoomControls",
2886
- ref: Fe,
2889
+ ref: Le,
2887
2890
  config: R.value,
2888
- scale: D(Dt),
2889
- isFullscreen: Z.value,
2891
+ scale: D(At),
2892
+ isFullscreen: Ft.value,
2890
2893
  withDirection: "",
2891
- onZoomIn: Pt,
2892
- onZoomOut: Ft,
2893
- onResetZoom: t[1] ||= () => D(Tt)(!0),
2894
- onSwitchDirection: Lt
2894
+ onZoomIn: Rt,
2895
+ onZoomOut: zt,
2896
+ onResetZoom: t[1] ||= () => D(Ot)(!0),
2897
+ onSwitchDirection: Vt
2895
2898
  }, null, 8, [
2896
2899
  "config",
2897
2900
  "scale",
@@ -2900,12 +2903,12 @@ var Yn = /* @__PURE__ */ e({ default: () => kr }), Xn = ["id"], Zn = ["id"], Qn
2900
2903
  e.$slots.source ? (w(), b("div", {
2901
2904
  key: 8,
2902
2905
  ref_key: "source",
2903
- ref: Pe,
2906
+ ref: Ie,
2904
2907
  dir: "auto"
2905
2908
  }, [E(e.$slots, "source", {}, void 0, !0)], 512)) : y("", !0),
2906
- E(e.$slots, "skeleton", {}, () => [D(at) ? (w(), v(f, { key: 0 })) : y("", !0)], !0)
2907
- ], 46, Xn));
2909
+ E(e.$slots, "skeleton", {}, () => [D(st) ? (w(), v(m, { key: 0 })) : y("", !0)], !0)
2910
+ ], 46, Qn));
2908
2911
  }
2909
- }, [["__scopeId", "data-v-3de9c8da"]]);
2912
+ }, [["__scopeId", "data-v-cceceb15"]]);
2910
2913
  //#endregion
2911
- export { Yn as n, kr as t };
2914
+ export { Zn as n, jr as t };