vue-data-ui 3.23.0 → 3.23.2

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 (206) hide show
  1. package/dist/{Arrow-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
  2. package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
  3. package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
  4. package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
  5. package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
  6. package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
  7. package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
  8. package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
  9. package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
  11. package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-DXU7nRr9.js} +1 -1
  12. package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
  13. package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
  14. package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
  15. package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
  16. package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
  17. package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
  18. package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-mini-loader.js +1 -1
  51. package/dist/components/vue-ui-molecule.js +1 -1
  52. package/dist/components/vue-ui-mood-radar.js +1 -1
  53. package/dist/components/vue-ui-nested-donuts.js +1 -1
  54. package/dist/components/vue-ui-onion.js +1 -1
  55. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  56. package/dist/components/vue-ui-quadrant.js +1 -1
  57. package/dist/components/vue-ui-quick-chart.js +1 -1
  58. package/dist/components/vue-ui-radar.js +1 -1
  59. package/dist/components/vue-ui-rating.js +1 -1
  60. package/dist/components/vue-ui-relation-circle.js +1 -1
  61. package/dist/components/vue-ui-ridgeline.js +1 -1
  62. package/dist/components/vue-ui-rings.js +1 -1
  63. package/dist/components/vue-ui-scatter.js +1 -1
  64. package/dist/components/vue-ui-skeleton.js +1 -1
  65. package/dist/components/vue-ui-smiley.js +1 -1
  66. package/dist/components/vue-ui-spark-trend.js +1 -1
  67. package/dist/components/vue-ui-sparkbar.js +1 -1
  68. package/dist/components/vue-ui-sparkgauge.js +1 -1
  69. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  70. package/dist/components/vue-ui-sparkline.js +1 -1
  71. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  72. package/dist/components/vue-ui-stackbar.js +1 -1
  73. package/dist/components/vue-ui-stackline.js +1 -1
  74. package/dist/components/vue-ui-strip-plot.js +1 -1
  75. package/dist/components/vue-ui-table-heatmap.js +1 -1
  76. package/dist/components/vue-ui-table-sparkline.js +1 -1
  77. package/dist/components/vue-ui-table.js +1 -1
  78. package/dist/components/vue-ui-thermometer.js +1 -1
  79. package/dist/components/vue-ui-timer.js +1 -1
  80. package/dist/components/vue-ui-tiremarks.js +1 -1
  81. package/dist/components/vue-ui-treemap.js +1 -1
  82. package/dist/components/vue-ui-vertical-bar.js +1 -1
  83. package/dist/components/vue-ui-waffle.js +1 -1
  84. package/dist/components/vue-ui-wheel.js +1 -1
  85. package/dist/components/vue-ui-word-cloud.js +1 -1
  86. package/dist/components/vue-ui-world.js +1 -1
  87. package/dist/components/vue-ui-xy-canvas.js +1 -1
  88. package/dist/components/vue-ui-xy.js +1 -1
  89. package/dist/composables.js +1 -1
  90. package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
  91. package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
  92. package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
  93. package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
  94. package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
  95. package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
  96. package/dist/{package-BMc_ZieJ.js → package-bsfpO6y3.js} +1 -1
  97. package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
  98. package/dist/{render-common-Ktg2LZFG.js → render-common-C0PEe9so.js} +2 -2
  99. package/dist/ssr/vue-ui-donut.js +1 -1
  100. package/dist/ssr/vue-ui-xy.js +1 -1
  101. package/dist/ssr.js +2 -2
  102. package/dist/style.css +1 -1
  103. package/dist/types/vue-data-ui.d.ts +9 -0
  104. package/dist/{useSvgExport-Ba9qBr9M.js → useChartExport-DNiwdPmb.js} +48 -2
  105. package/dist/{useConfig-BilxnBNr.js → useConfig-DlNpz6P8.js} +13 -1
  106. package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
  107. package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-BeWS5v0i.js} +1 -1
  108. package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
  109. package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
  110. package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
  111. package/dist/utils.js +3 -3
  112. package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-BNxtW8pK.js} +69 -69
  113. package/dist/vue-data-ui.js +74 -74
  114. package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-BYumVxZG.js} +147 -165
  115. package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-DegI2lzR.js} +4 -4
  116. package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
  117. package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-DfG79D4r.js} +41 -68
  118. package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
  119. package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-mKysp0KO.js} +222 -272
  120. package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
  121. package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
  122. package/dist/{vue-ui-chestnut-ArloORzP.js → vue-ui-chestnut-Dpklo-VE.js} +311 -365
  123. package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
  124. package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
  125. package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-DIt7vOwc.js} +4 -4
  126. package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-Cl0WdSLb.js} +812 -840
  127. package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-BwxRLR4E.js} +70 -70
  128. package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Bp1OH_t1.js} +5 -5
  129. package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-BZUT7QYt.js} +352 -377
  130. package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
  131. package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-y6tOAVyY.js} +18 -17
  132. package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-BtKZcAOV.js} +370 -420
  133. package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-BF_cndsv.js} +191 -216
  134. package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
  135. package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-ClWaSOmM.js} +276 -302
  136. package/dist/vue-ui-gauge-CJstpakj.js +932 -0
  137. package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-B1tOD3HC.js} +398 -449
  138. package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-foatosAv.js} +4 -4
  139. package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-By33A9dZ.js} +479 -502
  140. package/dist/{vue-ui-hill-D7LYAgAL.js → vue-ui-hill-ewqkK9s5.js} +570 -593
  141. package/dist/vue-ui-history-plot-FEIwXlsz.js +1698 -0
  142. package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-D51sAeVu.js} +307 -332
  143. package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-y3EkgqJQ.js} +4 -4
  144. package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CtTewZJG.js} +3 -3
  145. package/dist/vue-ui-molecule-paWHp18h.js +935 -0
  146. package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-wBRTZI5k.js} +341 -390
  147. package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
  148. package/dist/vue-ui-onion-B2Q2n55x.js +1233 -0
  149. package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +189 -214
  150. package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-DOPuejDE.js} +254 -284
  151. package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-CgHX9njq.js} +108 -109
  152. package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-BLvG-_zE.js} +407 -434
  153. package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-BDVSVFA0.js} +10 -11
  154. package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
  155. package/dist/vue-ui-ridgeline-BbrnXvBo.js +1614 -0
  156. package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-B3cKfMWy.js} +419 -444
  157. package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
  158. package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-DwKxd7fk.js} +4 -4
  159. package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-5iHJeTPc.js} +64 -65
  160. package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-MpvrV5Wd.js} +11 -11
  161. package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
  162. package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-B-BYVv4p.js} +4 -4
  163. package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-D7D4NHdi.js} +18 -19
  164. package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-RbeYtLWp.js} +11 -11
  165. package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-ohN7mtbg.js} +194 -198
  166. package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-D2bpvQYt.js} +530 -552
  167. package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Bo1oE8yq.js} +592 -614
  168. package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
  169. package/dist/vue-ui-table-3PPiJPV6.js +1352 -0
  170. package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-D1bbPXKG.js} +56 -57
  171. package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-l1cUX3ny.js} +13 -15
  172. package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-DltAELO7.js} +240 -261
  173. package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-DWNdx47q.js} +6 -6
  174. package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
  175. package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-DjNlnOG5.js} +521 -547
  176. package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
  177. package/dist/vue-ui-wheel-DrefGLos.js +871 -0
  178. package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-CQZ8AyOi.js} +382 -405
  179. package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-Y7a3VEjq.js} +426 -451
  180. package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-CJcdttNL.js} +879 -905
  181. package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-DPxtkYGc.js} +329 -326
  182. package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-1rbwMA1m.js} +30 -27
  183. package/package.json +4 -4
  184. package/dist/Slicer-5yIrdoJv.js +0 -1149
  185. package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
  186. package/dist/vue-ui-age-pyramid-CgnPWA93.js +0 -1263
  187. package/dist/vue-ui-bullet-Bc3-WaN1.js +0 -724
  188. package/dist/vue-ui-candlestick-DvvsrIdp.js +0 -1864
  189. package/dist/vue-ui-carousel-table-DtsNVim8.js +0 -463
  190. package/dist/vue-ui-chord-xX5gWZy8.js +0 -1396
  191. package/dist/vue-ui-circle-pack-D8wykmqg.js +0 -1638
  192. package/dist/vue-ui-donut-evolution-D6vH_hfx.js +0 -1598
  193. package/dist/vue-ui-funnel-CjYosIik.js +0 -797
  194. package/dist/vue-ui-gauge-CByT0_vF.js +0 -953
  195. package/dist/vue-ui-history-plot-BhcU94Pt.js +0 -1722
  196. package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
  197. package/dist/vue-ui-nested-donuts-aS4YzaB3.js +0 -1528
  198. package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
  199. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +0 -925
  200. package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
  201. package/dist/vue-ui-scatter-CNA7jF-o.js +0 -2428
  202. package/dist/vue-ui-strip-plot-ACeYOoHj.js +0 -1757
  203. package/dist/vue-ui-table-rFy16bp0.js +0 -1347
  204. package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
  205. package/dist/vue-ui-waffle-iPpdk1Bm.js +0 -1412
  206. package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
@@ -1,25 +1,25 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
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-BuMGJ_a0.js";
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
3
  import { n as l, t as u } from "./useHints-Dq_w2E8B.js";
4
- import { t as d } from "./useConfig-BilxnBNr.js";
5
- import { t as f } from "./usePrinter-BFvi4jVy.js";
4
+ import { t as d } from "./useConfig-DlNpz6P8.js";
5
+ import { t as f } from "./usePrinter-DN5bYhTG.js";
6
6
  import { n as p, t as m } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as h } from "./useSvgExport-Ba9qBr9M.js";
8
- import { t as g } from "./useNestedProp--NSEmhOH.js";
9
- import { t as ee } from "./useThemeCheck-C43Tcqmk.js";
10
- import { t as te } from "./img-DIQG5q8T.js";
11
- import { n as ne } from "./Title-BODtwViI.js";
7
+ import { t as h } from "./useNestedProp-vPNvh7rV.js";
8
+ import { t as g } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as ee } from "./useChartExport-DNiwdPmb.js";
10
+ import { t as te } from "./img-Bnokohej.js";
11
+ import { n as ne } from "./Title-BE3qg9xl.js";
12
12
  import { t as re } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
13
  import { l as ie, t as ae } from "./useResponsive-ZtArZtUf.js";
14
14
  import { t as oe } from "./A11yDataTable-DdRsVULz.js";
15
15
  import { t as se } from "./useUserOptionState-DK-_1ddE.js";
16
16
  import { t as ce } from "./useChartAccessibility-DYqac8yF.js";
17
17
  import { t as le } from "./usePanZoom-CYU3B4T3.js";
18
- import { t as ue } from "./BaseZoomControls-rdzlicuz.js";
18
+ import { t as ue } from "./BaseZoomControls-BZvCnZEi.js";
19
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 he, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as ge, createTextVNode as _e, createVNode as ve, defineAsyncComponent as ye, guardReactiveProps as x, mergeProps as be, nextTick as xe, normalizeClass as Se, normalizeProps as S, normalizeStyle as Ce, onBeforeUnmount as we, onMounted as Te, openBlock as C, ref as w, renderList as Ee, renderSlot as T, toDisplayString as De, toRefs as Oe, unref as E, watch as ke, watchEffect as Ae, withCtx as D, withModifiers as je } from "vue";
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";
21
21
  //#region src/DAG/graph.js
22
- var Me = "\0", Ne = "\0", Pe = "", O = class {
22
+ var je = "\0", Me = "\0", Ne = "", k = class {
23
23
  _isDirected = !0;
24
24
  _isMultigraph = !1;
25
25
  _isCompound = !1;
@@ -38,7 +38,7 @@ var Me = "\0", Ne = "\0", Pe = "", O = class {
38
38
  _parent;
39
39
  _children;
40
40
  constructor(e) {
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[Ne] = {});
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] = {});
42
42
  }
43
43
  isDirected() {
44
44
  return this._isDirected;
@@ -79,7 +79,7 @@ var Me = "\0", Ne = "\0", Pe = "", O = class {
79
79
  }), this;
80
80
  }
81
81
  setNode(e, t) {
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] = Ne, this._children[e] = {}, this._children[Ne][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);
83
83
  }
84
84
  node(e) {
85
85
  return this._nodes[e];
@@ -99,7 +99,7 @@ var Me = "\0", Ne = "\0", Pe = "", O = class {
99
99
  }
100
100
  setParent(e, t) {
101
101
  if (!this._isCompound) throw Error("Cannot set parent in a non-compound graph");
102
- if (t === void 0) t = Ne;
102
+ if (t === void 0) t = Me;
103
103
  else {
104
104
  t += "";
105
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");
@@ -113,14 +113,14 @@ var Me = "\0", Ne = "\0", Pe = "", O = class {
113
113
  parent(e) {
114
114
  if (this._isCompound) {
115
115
  let t = this._parent[e];
116
- if (t !== Ne) return t;
116
+ if (t !== Me) return t;
117
117
  }
118
118
  }
119
- children(e = Ne) {
119
+ children(e = Me) {
120
120
  if (this._isCompound) {
121
121
  let t = this._children[e];
122
122
  if (t) return Object.keys(t);
123
- } else if (e === Ne) return this.nodes();
123
+ } else if (e === Me) return this.nodes();
124
124
  else if (this.hasNode(e)) return [];
125
125
  }
126
126
  predecessors(e) {
@@ -179,15 +179,15 @@ var Me = "\0", Ne = "\0", Pe = "", O = class {
179
179
  setEdge() {
180
180
  let e, t, n, r, i = !1, a = arguments[0];
181
181
  typeof a == "object" && a && "v" in a ? (e = a.v, t = a.w, n = a.name, arguments.length === 2 && (r = arguments[1], i = !0)) : (e = a, t = arguments[1], n = arguments[3], arguments.length > 2 && (r = arguments[2], i = !0)), e = "" + e, t = "" + t, n !== void 0 && (n = "" + n);
182
- let o = A(this._isDirected, e, t, n);
182
+ let o = j(this._isDirected, e, t, n);
183
183
  if (Object.hasOwn(this._edgeLabels, o)) return i && (this._edgeLabels[o] = r), this;
184
184
  if (n !== void 0 && !this._isMultigraph) throw Error("Cannot set a named edge when isMultigraph = false");
185
185
  this.setNode(e), this.setNode(t), this._edgeLabels[o] = i ? r : this._defaultEdgeLabelFn(e, t, n);
186
- let s = j(this._isDirected, e, t, n);
187
- return e = s.v, t = s.w, Object.freeze(s), this._edgeObjs[o] = s, Fe(this._preds[t], e), Fe(this._sucs[e], t), this._in[t][o] = s, this._out[e][o] = s, this._edgeCount++, this;
186
+ let s = M(this._isDirected, e, t, n);
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;
188
188
  }
189
189
  edge(e, t, n) {
190
- let r = arguments.length === 1 ? M(this._isDirected, arguments[0]) : A(this._isDirected, e, t, n);
190
+ let r = arguments.length === 1 ? N(this._isDirected, arguments[0]) : j(this._isDirected, e, t, n);
191
191
  return this._edgeLabels[r];
192
192
  }
193
193
  edgeAsObj() {
@@ -195,12 +195,12 @@ var Me = "\0", Ne = "\0", Pe = "", O = class {
195
195
  return typeof e == "object" ? e : { label: e };
196
196
  }
197
197
  hasEdge(e, t, n) {
198
- let r = arguments.length === 1 ? M(this._isDirected, arguments[0]) : A(this._isDirected, e, t, n);
198
+ let r = arguments.length === 1 ? N(this._isDirected, arguments[0]) : j(this._isDirected, e, t, n);
199
199
  return Object.hasOwn(this._edgeLabels, r);
200
200
  }
201
201
  removeEdge(e, t, n) {
202
- let r = arguments.length === 1 ? M(this._isDirected, arguments[0]) : A(this._isDirected, e, t, n), i = this._edgeObjs[r];
203
- return i && (e = i.v, t = i.w, delete this._edgeLabels[r], delete this._edgeObjs[r], k(this._preds[t], e), k(this._sucs[e], t), delete this._in[t][r], delete this._out[e][r], this._edgeCount--), this;
202
+ let r = arguments.length === 1 ? N(this._isDirected, arguments[0]) : j(this._isDirected, e, t, n), i = this._edgeObjs[r];
203
+ return i && (e = i.v, t = i.w, delete this._edgeLabels[r], delete this._edgeObjs[r], A(this._preds[t], e), A(this._sucs[e], t), delete this._in[t][r], delete this._out[e][r], this._edgeCount--), this;
204
204
  }
205
205
  inEdges(e, t) {
206
206
  let n = this._in[e];
@@ -221,21 +221,21 @@ var Me = "\0", Ne = "\0", Pe = "", O = class {
221
221
  if (n) return n.concat(this.outEdges(e, t));
222
222
  }
223
223
  };
224
- function Fe(e, t) {
224
+ function Pe(e, t) {
225
225
  e[t] ? e[t]++ : e[t] = 1;
226
226
  }
227
- function k(e, t) {
227
+ function A(e, t) {
228
228
  --e[t] || delete e[t];
229
229
  }
230
- function A(e, t, n, r) {
230
+ function j(e, t, n, r) {
231
231
  let i = "" + t, a = "" + n;
232
232
  if (!e && i > a) {
233
233
  let e = i;
234
234
  i = a, a = e;
235
235
  }
236
- return i + Pe + a + Pe + (r === void 0 ? Me : r);
236
+ return i + Ne + a + Ne + (r === void 0 ? je : r);
237
237
  }
238
- function j(e, t, n, r) {
238
+ function M(e, t, n, r) {
239
239
  let i = "" + t, a = "" + n;
240
240
  if (!e && i > a) {
241
241
  let e = i;
@@ -247,73 +247,73 @@ function j(e, t, n, r) {
247
247
  };
248
248
  return r && (o.name = r), o;
249
249
  }
250
- function M(e, t) {
251
- return A(e, t.v, t.w, t.name);
250
+ function N(e, t) {
251
+ return j(e, t.v, t.w, t.name);
252
252
  }
253
253
  //#endregion
254
254
  //#region src/DAG/data/list.js
255
- var Ie = class {
255
+ var Fe = class {
256
256
  constructor() {
257
257
  let e = {};
258
258
  e._next = e._prev = e, this._sentinel = e;
259
259
  }
260
260
  dequeue() {
261
261
  let e = this._sentinel, t = e._prev;
262
- if (t !== e) return Le(t), t;
262
+ if (t !== e) return Ie(t), t;
263
263
  }
264
264
  enqueue(e) {
265
265
  let t = this._sentinel;
266
- e._prev && e._next && Le(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;
267
267
  }
268
268
  toString() {
269
269
  let e = [], t = this._sentinel, n = t._prev;
270
- for (; n !== t;) e.push(JSON.stringify(n, Re)), n = n._prev;
270
+ for (; n !== t;) e.push(JSON.stringify(n, Le)), n = n._prev;
271
271
  return "[" + e.join(", ") + "]";
272
272
  }
273
273
  };
274
- function Le(e) {
274
+ function Ie(e) {
275
275
  e._prev._next = e._next, e._next._prev = e._prev, delete e._next, delete e._prev;
276
276
  }
277
- function Re(e, t) {
277
+ function Le(e, t) {
278
278
  if (e !== "_next" && e !== "_prev") return t;
279
279
  }
280
280
  //#endregion
281
281
  //#region src/DAG/greedy-fas.js
282
- var ze = () => 1;
283
- function Be(e, t) {
282
+ var Re = () => 1;
283
+ function ze(e, t) {
284
284
  if (e.nodeCount() <= 1) return [];
285
- let n = Ue(e, t || ze);
286
- return Ve(n.graph, n.buckets, n.zeroIndex).flatMap((t) => e.outEdges(t.v, t.w));
285
+ let n = P(e, t || Re);
286
+ return Be(n.graph, n.buckets, n.zeroIndex).flatMap((t) => e.outEdges(t.v, t.w));
287
287
  }
288
- function Ve(e, t, n) {
288
+ function Be(e, t, n) {
289
289
  let r = [], i = t[t.length - 1], a = t[0], o;
290
290
  for (; e.nodeCount();) {
291
- for (; o = a.dequeue();) He(e, t, n, o);
292
- for (; o = i.dequeue();) He(e, t, n, o);
291
+ for (; o = a.dequeue();) Ve(e, t, n, o);
292
+ for (; o = i.dequeue();) Ve(e, t, n, o);
293
293
  if (e.nodeCount()) {
294
294
  for (let i = t.length - 2; i > 0; --i) if (o = t[i].dequeue(), o) {
295
- r = r.concat(He(e, t, n, o, !0));
295
+ r = r.concat(Ve(e, t, n, o, !0));
296
296
  break;
297
297
  }
298
298
  }
299
299
  }
300
300
  return r;
301
301
  }
302
- function He(e, t, n, r, i) {
302
+ function Ve(e, t, n, r, i) {
303
303
  let a = i ? [] : void 0;
304
304
  return e.inEdges(r.v).forEach((r) => {
305
305
  let o = e.edge(r), s = e.node(r.v);
306
306
  i && a.push({
307
307
  v: r.v,
308
308
  w: r.w
309
- }), s.out -= o, We(t, n, s);
309
+ }), s.out -= o, F(t, n, s);
310
310
  }), e.outEdges(r.v).forEach((r) => {
311
311
  let i = e.edge(r), a = e.node(r.w);
312
- a.in -= i, We(t, n, a);
312
+ a.in -= i, F(t, n, a);
313
313
  }), e.removeNode(r.v), a;
314
314
  }
315
- function Ue(e, t) {
316
- let n = new O(), r = 0, i = 0;
315
+ function P(e, t) {
316
+ let n = new k(), r = 0, i = 0;
317
317
  e.nodes().forEach((e) => {
318
318
  n.setNode(e, {
319
319
  v: e,
@@ -324,32 +324,32 @@ function Ue(e, t) {
324
324
  let a = n.edge(e.v, e.w) || 0, o = t(e), s = a + o;
325
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);
326
326
  });
327
- let a = N(i + r + 3).map(() => new Ie()), o = r + 1;
327
+ let a = I(i + r + 3).map(() => new Fe()), o = r + 1;
328
328
  return n.nodes().forEach((e) => {
329
- We(a, o, n.node(e));
329
+ F(a, o, n.node(e));
330
330
  }), {
331
331
  graph: n,
332
332
  buckets: a,
333
333
  zeroIndex: o
334
334
  };
335
335
  }
336
- function We(e, t, n) {
336
+ function F(e, t, n) {
337
337
  n.out ? n.in ? e[n.out - n.in + t].enqueue(n) : e[e.length - 1].enqueue(n) : e[0].enqueue(n);
338
338
  }
339
- function N(e) {
339
+ function I(e) {
340
340
  let t = [];
341
341
  for (let n = 0; n < e; n++) t.push(n);
342
342
  return t;
343
343
  }
344
344
  //#endregion
345
345
  //#region src/DAG/util.js
346
- function P(e, t, n, r) {
346
+ function L(e, t, n, r) {
347
347
  let i = r;
348
- for (; e.hasNode(i);) i = V(r);
348
+ for (; e.hasNode(i);) i = tt(r);
349
349
  return n.dummy = t, e.setNode(i, n), i;
350
350
  }
351
- function F(e) {
352
- let t = new O().setGraph(e.graph());
351
+ function He(e) {
352
+ let t = new k().setGraph(e.graph());
353
353
  return e.nodes().forEach((n) => {
354
354
  t.setNode(n, e.node(n));
355
355
  }), e.edges().forEach((n) => {
@@ -363,33 +363,33 @@ function F(e) {
363
363
  });
364
364
  }), t;
365
365
  }
366
- function I(e) {
367
- let t = new O({ multigraph: e.isMultigraph() }).setGraph(e.graph());
366
+ function Ue(e) {
367
+ let t = new k({ multigraph: e.isMultigraph() }).setGraph(e.graph());
368
368
  return e.nodes().forEach((n) => {
369
369
  e.children(n).length || t.setNode(n, e.node(n));
370
370
  }), e.edges().forEach((n) => {
371
371
  t.setEdge(n, e.edge(n));
372
372
  }), t;
373
373
  }
374
- function Ge(e) {
374
+ function We(e) {
375
375
  let t = e.nodes().map((t) => {
376
376
  let n = {};
377
377
  return e.outEdges(t).forEach((t) => {
378
378
  n[t.w] = (n[t.w] || 0) + e.edge(t).weight;
379
379
  }), n;
380
380
  });
381
- return U(e.nodes(), t);
381
+ return W(e.nodes(), t);
382
382
  }
383
- function Ke(e) {
383
+ function R(e) {
384
384
  let t = e.nodes().map((t) => {
385
385
  let n = {};
386
386
  return e.inEdges(t).forEach((t) => {
387
387
  n[t.v] = (n[t.v] || 0) + e.edge(t).weight;
388
388
  }), n;
389
389
  });
390
- return U(e.nodes(), t);
390
+ return W(e.nodes(), t);
391
391
  }
392
- function qe(e, t) {
392
+ function Ge(e, t) {
393
393
  let n = e.x, r = e.y, i = t.x - n, a = t.y - r, o = e.width / 2, s = e.height / 2;
394
394
  if (!i && !a) throw Error("Not possible to find intersection inside of the rectangle");
395
395
  let c, l;
@@ -398,25 +398,25 @@ function qe(e, t) {
398
398
  y: r + l
399
399
  };
400
400
  }
401
- function L(e) {
402
- let t = H(Qe(e) + 1).map(() => []);
401
+ function Ke(e) {
402
+ let t = nt(V(e) + 1).map(() => []);
403
403
  return e.nodes().forEach((n) => {
404
404
  let r = e.node(n), i = r.rank;
405
405
  i !== void 0 && (t[i][r.order] = n);
406
406
  }), t;
407
407
  }
408
- function Je(e) {
408
+ function qe(e) {
409
409
  let t = e.nodes().map((t) => {
410
410
  let n = e.node(t).rank;
411
411
  return n === void 0 ? Number.MAX_VALUE : n;
412
- }), n = z(Math.min, t);
412
+ }), n = B(Math.min, t);
413
413
  e.nodes().forEach((t) => {
414
414
  let r = e.node(t);
415
415
  Object.hasOwn(r, "rank") && (r.rank -= n);
416
416
  });
417
417
  }
418
- function Ye(e) {
419
- let t = e.nodes().map((t) => e.node(t).rank).filter((e) => e !== void 0), n = z(Math.min, t), r = [];
418
+ function Je(e) {
419
+ let t = e.nodes().map((t) => e.node(t).rank).filter((e) => e !== void 0), n = B(Math.min, t), r = [];
420
420
  e.nodes().forEach((t) => {
421
421
  let i = e.node(t).rank - n;
422
422
  r[i] || (r[i] = []), r[i].push(t);
@@ -428,15 +428,15 @@ function Ye(e) {
428
428
  });
429
429
  });
430
430
  }
431
- function Xe(e, t, n, r) {
431
+ function z(e, t, n, r) {
432
432
  let i = {
433
433
  width: 0,
434
434
  height: 0
435
435
  };
436
- return arguments.length >= 4 && (i.rank = n, i.order = r), P(e, "border", i, t);
436
+ return arguments.length >= 4 && (i.rank = n, i.order = r), L(e, "border", i, t);
437
437
  }
438
- var Ze = 65535;
439
- function R(e, t = Ze) {
438
+ var Ye = 65535;
439
+ function Xe(e, t = Ye) {
440
440
  let n = [];
441
441
  for (let r = 0; r < e.length; r += t) {
442
442
  let i = e.slice(r, r + t);
@@ -444,20 +444,21 @@ function R(e, t = Ze) {
444
444
  }
445
445
  return n;
446
446
  }
447
- function z(e, t) {
448
- if (t.length > Ze) {
449
- let n = R(t);
447
+ function B(e, t) {
448
+ if (t.length > Ye) {
449
+ let n = Xe(t);
450
450
  return e.apply(null, n.map((t) => e.apply(null, t)));
451
- } else return e.apply(null, t);
451
+ }
452
+ return e.apply(null, t);
452
453
  }
453
- function Qe(e) {
454
+ function V(e) {
454
455
  let t = e.nodes().map((t) => {
455
456
  let n = e.node(t).rank;
456
457
  return n === void 0 ? Number.MIN_VALUE : n;
457
458
  });
458
- return z(Math.max, t);
459
+ return B(Math.max, t);
459
460
  }
460
- function $e(e, t) {
461
+ function Ze(e, t) {
461
462
  let n = {
462
463
  lhs: [],
463
464
  rhs: []
@@ -466,7 +467,7 @@ function $e(e, t) {
466
467
  t(e) ? n.lhs.push(e) : n.rhs.push(e);
467
468
  }), n;
468
469
  }
469
- function B(e, t) {
470
+ function Qe(e, t) {
470
471
  let n = Date.now();
471
472
  try {
472
473
  return t();
@@ -474,15 +475,15 @@ function B(e, t) {
474
475
  console.log(e + " time: " + (Date.now() - n) + "ms");
475
476
  }
476
477
  }
477
- function et(e, t) {
478
+ function $e(e, t) {
478
479
  return t();
479
480
  }
480
- var tt = 0;
481
- function V(e) {
482
- let t = ++tt;
481
+ var et = 0;
482
+ function tt(e) {
483
+ let t = ++et;
483
484
  return e + String(t);
484
485
  }
485
- function H(e, t, n = 1) {
486
+ function nt(e, t, n = 1) {
486
487
  t ?? (t = e, e = 0);
487
488
  let r = (e) => e < t;
488
489
  n < 0 && (r = (e) => t < e);
@@ -490,12 +491,12 @@ function H(e, t, n = 1) {
490
491
  for (let t = e; r(t); t += n) i.push(t);
491
492
  return i;
492
493
  }
493
- function nt(e, t) {
494
+ function H(e, t) {
494
495
  let n = {};
495
496
  for (let r of t) e[r] !== void 0 && (n[r] = e[r]);
496
497
  return n;
497
498
  }
498
- function rt(e, t) {
499
+ function U(e, t) {
499
500
  let n = t;
500
501
  if (typeof t == "string") {
501
502
  let e = t;
@@ -503,43 +504,43 @@ function rt(e, t) {
503
504
  }
504
505
  return Object.entries(e).reduce((e, [t, r]) => (e[t] = n(r, t), e), {});
505
506
  }
506
- function U(e, t) {
507
+ function W(e, t) {
507
508
  return e.reduce((e, n, r) => (e[n] = t[r], e), {});
508
509
  }
509
- var W = {
510
- addBorderNode: Xe,
511
- addDummyNode: P,
512
- applyWithChunking: z,
513
- asNonCompoundGraph: I,
514
- buildLayerMatrix: L,
515
- intersectRect: qe,
516
- mapValues: rt,
517
- maxRank: Qe,
518
- normalizeRanks: Je,
519
- notime: et,
520
- partition: $e,
521
- pick: nt,
522
- predecessorWeights: Ke,
523
- range: H,
524
- removeEmptyRanks: Ye,
525
- simplify: F,
526
- successorWeights: Ge,
527
- time: B,
528
- uniqueId: V,
529
- zipObject: U
510
+ var rt = {
511
+ addBorderNode: z,
512
+ addDummyNode: L,
513
+ applyWithChunking: B,
514
+ asNonCompoundGraph: Ue,
515
+ buildLayerMatrix: Ke,
516
+ intersectRect: Ge,
517
+ mapValues: U,
518
+ maxRank: V,
519
+ normalizeRanks: qe,
520
+ notime: $e,
521
+ partition: Ze,
522
+ pick: H,
523
+ predecessorWeights: R,
524
+ range: nt,
525
+ removeEmptyRanks: Je,
526
+ simplify: He,
527
+ successorWeights: We,
528
+ time: Qe,
529
+ uniqueId: tt,
530
+ zipObject: W
530
531
  };
531
532
  //#endregion
532
533
  //#region src/DAG/acyclic.js
533
- function G(e) {
534
- (e.graph().acyclicer === "greedy" ? Be(e, t(e)) : at(e)).forEach((t) => {
534
+ function it(e) {
535
+ (e.graph().acyclicer === "greedy" ? ze(e, t(e)) : G(e)).forEach((t) => {
535
536
  let n = e.edge(t);
536
- e.removeEdge(t), n.forwardName = t.name, n.reversed = !0, e.setEdge(t.w, t.v, n, V("rev"));
537
+ e.removeEdge(t), n.forwardName = t.name, n.reversed = !0, e.setEdge(t.w, t.v, n, tt("rev"));
537
538
  });
538
539
  function t(e) {
539
540
  return (t) => e.edge(t).weight;
540
541
  }
541
542
  }
542
- function it(e) {
543
+ function at(e) {
543
544
  e.edges().forEach((t) => {
544
545
  let n = e.edge(t);
545
546
  if (n.reversed) {
@@ -549,7 +550,7 @@ function it(e) {
549
550
  }
550
551
  });
551
552
  }
552
- function at(e) {
553
+ function G(e) {
553
554
  let t = [], n = {}, r = {};
554
555
  function i(a) {
555
556
  Object.hasOwn(r, a) || (r[a] = !0, n[a] = !0, e.outEdges(a).forEach((e) => {
@@ -561,9 +562,9 @@ function at(e) {
561
562
  //#endregion
562
563
  //#region src/DAG/normalize.js
563
564
  function ot(e) {
564
- e.graph().dummyChains = [], e.edges().forEach((t) => K(e, t));
565
+ e.graph().dummyChains = [], e.edges().forEach((t) => st(e, t));
565
566
  }
566
- function K(e, t) {
567
+ function st(e, t) {
567
568
  let n = t.v, r = e.node(n).rank, i = t.w, a = e.node(i).rank, o = t.name, s = e.edge(t), c = s.labelRank;
568
569
  if (a === r + 1) return;
569
570
  e.removeEdge(t);
@@ -574,10 +575,10 @@ function K(e, t) {
574
575
  edgeLabel: s,
575
576
  edgeObj: t,
576
577
  rank: r
577
- }, l = P(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;
578
+ }, l = L(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;
578
579
  e.setEdge(n, i, { weight: s.weight }, o);
579
580
  }
580
- function st(e) {
581
+ function ct(e) {
581
582
  e.graph().dummyChains.forEach((t) => {
582
583
  let n = e.node(t), r = n.edgeLabel;
583
584
  e.setEdge(n.edgeObj, r);
@@ -590,25 +591,25 @@ function st(e) {
590
591
  }
591
592
  //#endregion
592
593
  //#region src/DAG/rank/util.js
593
- function ct(e) {
594
+ function lt(e) {
594
595
  function t(n) {
595
596
  let r = e.node(n);
596
597
  if (r && Object.prototype.hasOwnProperty.call(r, "rank")) return r.rank;
597
598
  let i = e.outEdges(n) || [];
598
599
  if (!i.length) return r && (r.rank = 0), 0;
599
- let a = i.map((n) => e.node(n.w) ? t(n.w) - e.edge(n).minlen : Infinity), o = z(Math.min, a);
600
+ let a = i.map((n) => e.node(n.w) ? t(n.w) - e.edge(n).minlen : Infinity), o = B(Math.min, a);
600
601
  return o === Infinity && (o = 0), r && (r.rank = o), o;
601
602
  }
602
603
  (e.sources() || []).forEach(t);
603
604
  }
604
- function lt(e, t) {
605
+ function ut(e, t) {
605
606
  return e.node(t.w).rank - e.node(t.v).rank - e.edge(t).minlen;
606
607
  }
607
608
  //#endregion
608
609
  //#region src/DAG/rank/feasible-tree.js
609
- function ut(e) {
610
- dt(e);
611
- let t = new O();
610
+ function dt(e) {
611
+ ft(e);
612
+ let t = new k();
612
613
  e.nodes().forEach((e) => {
613
614
  t.setNode(e, {});
614
615
  });
@@ -616,29 +617,29 @@ function ut(e) {
616
617
  if (!n.length) return t;
617
618
  let r = n[0], i = /* @__PURE__ */ new Set([r]);
618
619
  for (; i.size < n.length;) {
619
- let r = ft(e, i);
620
+ let r = pt(e, i);
620
621
  if (!r) {
621
622
  let e = n.find((e) => !i.has(e));
622
623
  i.add(e), t.setNode(e, {});
623
624
  continue;
624
625
  }
625
626
  let { edgeObject: a, delta: o, attachFrom: s, attachTo: c } = r;
626
- pt(e, i, s, o), t.setEdge(a.v, a.w, {}), i.add(c);
627
+ mt(e, i, s, o), t.setEdge(a.v, a.w, {}), i.add(c);
627
628
  }
628
629
  return t;
629
630
  }
630
- function dt(e) {
631
+ function ft(e) {
631
632
  e.nodes().forEach((t) => {
632
633
  let n = e.node(t) || {};
633
634
  Object.prototype.hasOwnProperty.call(n, "rank") || (n.rank = 0, e.setNode(t, n));
634
635
  });
635
636
  }
636
- function ft(e, t) {
637
+ function pt(e, t) {
637
638
  let n = null;
638
639
  return e.edges().forEach((r) => {
639
640
  let i = t.has(r.v);
640
641
  if (i === t.has(r.w)) return;
641
- let a = lt(e, r), o = Math.abs(a);
642
+ let a = ut(e, r), o = Math.abs(a);
642
643
  if (!n || o < n.absoluteSlack) {
643
644
  let e = i ? r.v : r.w, t = i ? r.w : r.v;
644
645
  n = {
@@ -651,7 +652,7 @@ function ft(e, t) {
651
652
  }
652
653
  }), n;
653
654
  }
654
- function pt(e, t, n, r) {
655
+ function mt(e, t, n, r) {
655
656
  r && e.nodes().forEach((n) => {
656
657
  if (!t.has(n)) {
657
658
  let t = e.node(n);
@@ -661,58 +662,58 @@ function pt(e, t, n, r) {
661
662
  }
662
663
  //#endregion
663
664
  //#region src/DAG/rank/network-simplex.js
664
- function q(e) {
665
- let t = F(e);
666
- return ct(t), t.nodes().forEach((n) => {
665
+ function ht(e) {
666
+ let t = He(e);
667
+ return lt(t), t.nodes().forEach((n) => {
667
668
  let r = t.node(n), i = e.node(n) || {};
668
669
  i.rank = r.rank, e.setNode(n, i);
669
670
  }), e;
670
671
  }
671
- function mt(e, t) {}
672
- function ht(e, t) {}
673
- function gt(e, t, n) {
672
+ function gt(e, t) {}
673
+ function _t(e, t) {}
674
+ function vt(e, t, n) {
674
675
  return 0;
675
676
  }
676
- function _t(e) {
677
+ function yt(e) {
677
678
  return null;
678
679
  }
679
- function vt(e, t) {
680
+ function bt(e, t) {
680
681
  return null;
681
682
  }
682
- q.initLowLimValues = mt, q.initCutValues = ht, q.calcCutValue = gt, q.leaveEdge = _t, q.enterEdge = vt;
683
+ ht.initLowLimValues = gt, ht.initCutValues = _t, ht.calcCutValue = vt, ht.leaveEdge = yt, ht.enterEdge = bt;
683
684
  //#endregion
684
685
  //#region src/DAG/rank/index.js
685
- var yt = ct;
686
- function bt(e) {
686
+ var xt = lt;
687
+ function St(e) {
687
688
  let t = e.graph().ranker;
688
689
  if (t instanceof Function) return t(e);
689
690
  switch (e.graph().ranker) {
690
691
  case "network-simplex":
691
- J(e);
692
+ K(e);
692
693
  break;
693
694
  case "tight-tree":
694
- St(e);
695
+ wt(e);
695
696
  break;
696
697
  case "longest-path":
697
- xt(e);
698
+ Ct(e);
698
699
  break;
699
700
  case "none": break;
700
- default: J(e);
701
+ default: K(e);
701
702
  }
702
703
  }
703
- var xt = yt;
704
- function St(e) {
705
- yt(e), ut(e);
704
+ var Ct = xt;
705
+ function wt(e) {
706
+ xt(e), dt(e);
706
707
  }
707
- function J(e) {
708
- q(e);
708
+ function K(e) {
709
+ ht(e);
709
710
  }
710
711
  //#endregion
711
712
  //#region src/DAG/parent-dummy-chains.js
712
- function Ct(e) {
713
- let t = Y(e);
713
+ function Tt(e) {
714
+ let t = q(e);
714
715
  e.graph().dummyChains.forEach((n) => {
715
- let r = e.node(n), i = r.edgeObj, a = wt(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 = Et(e, t, i.v, i.w), o = a.path, s = a.lca, c = 0, l = o[c], u = !0, d = n;
716
717
  for (; d !== i.w;) {
717
718
  if (r = e.node(d), u) {
718
719
  for (; (l = o[c]) !== s && e.node(l).maxRank < r.rank;) c++;
@@ -726,7 +727,7 @@ function Ct(e) {
726
727
  }
727
728
  });
728
729
  }
729
- function wt(e, t, n, r) {
730
+ function Et(e, t, n, r) {
730
731
  let i = [], a = [], o = Math.min(t[n].low, t[r].low), s = Math.max(t[n].lim, t[r].lim), c, l;
731
732
  c = n;
732
733
  do
@@ -738,7 +739,7 @@ function wt(e, t, n, r) {
738
739
  lca: l
739
740
  };
740
741
  }
741
- function Y(e) {
742
+ function q(e) {
742
743
  let t = {}, n = 0;
743
744
  function r(i) {
744
745
  let a = n;
@@ -751,17 +752,17 @@ function Y(e) {
751
752
  }
752
753
  //#endregion
753
754
  //#region src/DAG/nested-graph.js
754
- function Tt(e) {
755
- let t = W.addDummyNode(e, "root", {}, "_root"), n = Dt(e), r = Object.values(n), i = W.applyWithChunking(Math.max, r) - 1, a = 2 * i + 1;
755
+ function Dt(e) {
756
+ let t = rt.addDummyNode(e, "root", {}, "_root"), n = kt(e), r = Object.values(n), i = rt.applyWithChunking(Math.max, r) - 1, a = 2 * i + 1;
756
757
  e.graph().nestingRoot = t, e.edges().forEach((t) => {
757
758
  e.edge(t).minlen *= a;
758
759
  });
759
- let o = Ot(e) + 1;
760
+ let o = At(e) + 1;
760
761
  e.children().forEach((r) => {
761
- Et(e, t, a, o, i, n, r);
762
+ Ot(e, t, a, o, i, n, r);
762
763
  }), e.graph().nodeRankFactor = a;
763
764
  }
764
- function Et(e, t, n, r, i, a, o) {
765
+ function Ot(e, t, n, r, i, a, o) {
765
766
  let s = e.children(o);
766
767
  if (!s.length) {
767
768
  o !== t && e.setEdge(t, o, {
@@ -770,9 +771,9 @@ function Et(e, t, n, r, i, a, o) {
770
771
  });
771
772
  return;
772
773
  }
773
- let c = W.addBorderNode(e, "_bt"), l = W.addBorderNode(e, "_bb"), u = e.node(o);
774
+ let c = rt.addBorderNode(e, "_bt"), l = rt.addBorderNode(e, "_bb"), u = e.node(o);
774
775
  e.setParent(c, o), u.borderTop = c, e.setParent(l, o), u.borderBottom = l, s.forEach((s) => {
775
- Et(e, t, n, r, i, a, s);
776
+ Ot(e, t, n, r, i, a, s);
776
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;
777
778
  e.setEdge(c, d, {
778
779
  weight: p,
@@ -788,7 +789,7 @@ function Et(e, t, n, r, i, a, o) {
788
789
  minlen: i + a[o]
789
790
  });
790
791
  }
791
- function Dt(e) {
792
+ function kt(e) {
792
793
  let t = {};
793
794
  function n(r, i) {
794
795
  let a = e.children(r);
@@ -796,10 +797,10 @@ function Dt(e) {
796
797
  }
797
798
  return e.children().forEach((e) => n(e, 1)), t;
798
799
  }
799
- function Ot(e) {
800
+ function At(e) {
800
801
  return e.edges().reduce((t, n) => t + e.edge(n).weight, 0);
801
802
  }
802
- function kt(e) {
803
+ function jt(e) {
803
804
  let t = e.graph();
804
805
  e.removeNode(t.nestingRoot), delete t.nestingRoot, e.edges().forEach((t) => {
805
806
  e.edge(t).nestingEdge && e.removeEdge(t);
@@ -807,77 +808,77 @@ function kt(e) {
807
808
  }
808
809
  //#endregion
809
810
  //#region src/DAG/add-border-segments.js
810
- function At(e) {
811
+ function Mt(e) {
811
812
  function t(n) {
812
813
  let r = e.children(n), i = e.node(n);
813
814
  if (r.length && r.forEach(t), Object.hasOwn(i, "minRank")) {
814
815
  i.borderLeft = [], i.borderRight = [];
815
- for (let t = i.minRank, r = i.maxRank + 1; t < r; ++t) jt(e, "borderLeft", "_bl", n, i, t), jt(e, "borderRight", "_br", n, i, t);
816
+ for (let t = i.minRank, r = i.maxRank + 1; t < r; ++t) Nt(e, "borderLeft", "_bl", n, i, t), Nt(e, "borderRight", "_br", n, i, t);
816
817
  }
817
818
  }
818
819
  e.children().forEach(t);
819
820
  }
820
- function jt(e, t, n, r, i, a) {
821
+ function Nt(e, t, n, r, i, a) {
821
822
  let o = {
822
823
  width: 0,
823
824
  height: 0,
824
825
  rank: a,
825
826
  borderType: t
826
- }, s = i[t][a - 1], c = P(e, "border", o, n);
827
+ }, s = i[t][a - 1], c = L(e, "border", o, n);
827
828
  i[t][a] = c, e.setParent(c, r), s && e.setEdge(s, c, { weight: 1 });
828
829
  }
829
830
  //#endregion
830
831
  //#region src/DAG/coordinate-system.js
831
- function Mt(e) {
832
+ function Pt(e) {
832
833
  let t = e.graph().rankdir.toLowerCase();
833
- (t === "lr" || t === "rl") && Pt(e);
834
+ (t === "lr" || t === "rl") && It(e);
834
835
  }
835
- function Nt(e) {
836
+ function Ft(e) {
836
837
  let t = e.graph().rankdir.toLowerCase();
837
- (t === "bt" || t === "rl") && Ft(e), (t === "lr" || t === "rl") && (Lt(e), Pt(e));
838
+ (t === "bt" || t === "rl") && Lt(e), (t === "lr" || t === "rl") && (zt(e), It(e));
838
839
  }
839
- function Pt(e) {
840
+ function It(e) {
840
841
  e.nodes().forEach((t) => {
841
- X(e.node(t));
842
+ J(e.node(t));
842
843
  }), e.edges().forEach((t) => {
843
- X(e.edge(t));
844
+ J(e.edge(t));
844
845
  });
845
846
  }
846
- function X(e) {
847
+ function J(e) {
847
848
  let t = e.width;
848
849
  e.width = e.height, e.height = t;
849
850
  }
850
- function Ft(e) {
851
+ function Lt(e) {
851
852
  e.nodes().forEach((t) => {
852
- It(e.node(t));
853
+ Rt(e.node(t));
853
854
  }), e.edges().forEach((t) => {
854
855
  let n = e.edge(t);
855
- n.points.forEach(It), Object.hasOwn(n, "y") && It(n);
856
+ n.points.forEach(Rt), Object.hasOwn(n, "y") && Rt(n);
856
857
  });
857
858
  }
858
- function It(e) {
859
+ function Rt(e) {
859
860
  e.y = -e.y;
860
861
  }
861
- function Lt(e) {
862
+ function zt(e) {
862
863
  e.nodes().forEach((t) => {
863
- Rt(e.node(t));
864
+ Bt(e.node(t));
864
865
  }), e.edges().forEach((t) => {
865
866
  let n = e.edge(t);
866
- n.points.forEach(Rt), Object.hasOwn(n, "x") && Rt(n);
867
+ n.points.forEach(Bt), Object.hasOwn(n, "x") && Bt(n);
867
868
  });
868
869
  }
869
- function Rt(e) {
870
+ function Bt(e) {
870
871
  let t = e.x;
871
872
  e.x = e.y, e.y = t;
872
873
  }
873
- var zt = {
874
- adjust: Mt,
875
- undo: Nt
874
+ var Vt = {
875
+ adjust: Pt,
876
+ undo: Ft
876
877
  };
877
878
  //#endregion
878
879
  //#region src/DAG/order/init-order.js
879
- function Bt(e) {
880
- let t = {}, n = e.nodes().filter((t) => e.children(t).length === 0), r = n.map((t) => e.node(t).rank), i = H(z(Math.max, r) + 1).map(() => []);
880
+ function Ht(e) {
881
+ let t = {}, n = e.nodes().filter((t) => e.children(t).length === 0), r = n.map((t) => e.node(t).rank), i = nt(B(Math.max, r) + 1).map(() => []);
881
882
  function a(n) {
882
883
  if (t[n]) return;
883
884
  t[n] = !0;
@@ -888,13 +889,13 @@ function Bt(e) {
888
889
  }
889
890
  //#endregion
890
891
  //#region src/DAG/order/cross-count.js
891
- function Vt(e, t) {
892
+ function Ut(e, t) {
892
893
  let n = 0;
893
- for (let r = 1; r < t.length; ++r) n += Ht(e, t[r - 1], t[r]);
894
+ for (let r = 1; r < t.length; ++r) n += Wt(e, t[r - 1], t[r]);
894
895
  return n;
895
896
  }
896
- function Ht(e, t, n) {
897
- let r = U(n, n.map((e, t) => t)), i = t.flatMap((t) => e.outEdges(t).map((t) => ({
897
+ function Wt(e, t, n) {
898
+ let r = W(n, n.map((e, t) => t)), i = t.flatMap((t) => e.outEdges(t).map((t) => ({
898
899
  pos: r[t.w],
899
900
  weight: e.edge(t).weight
900
901
  })).sort((e, t) => e.pos - t.pos)), a = 1;
@@ -912,7 +913,7 @@ function Ht(e, t, n) {
912
913
  }
913
914
  //#endregion
914
915
  //#region src/DAG/order/barycenter.js
915
- function Z(e, t = []) {
916
+ function Y(e, t = []) {
916
917
  return t.map((t) => {
917
918
  let n = e.inEdges(t);
918
919
  if (!n.length) return { v: t };
@@ -935,7 +936,7 @@ function Z(e, t = []) {
935
936
  }
936
937
  //#endregion
937
938
  //#region src/DAG/order/resolve-conflicts.js
938
- function Ut(e, t) {
939
+ function Gt(e, t) {
939
940
  let n = {};
940
941
  return e.forEach((e, t) => {
941
942
  let r = n[e.v] = {
@@ -949,13 +950,13 @@ function Ut(e, t) {
949
950
  }), t.edges().forEach((e) => {
950
951
  let t = n[e.v], r = n[e.w];
951
952
  t !== void 0 && r !== void 0 && (r.indegree++, t.out.push(r));
952
- }), Q(Object.values(n).filter((e) => !e.indegree));
953
+ }), X(Object.values(n).filter((e) => !e.indegree));
953
954
  }
954
- function Q(e) {
955
+ function X(e) {
955
956
  let t = [];
956
957
  function n(e) {
957
958
  return (t) => {
958
- t.merged || (t.barycenter === void 0 || e.barycenter === void 0 || t.barycenter >= e.barycenter) && Wt(e, t);
959
+ t.merged || (t.barycenter === void 0 || e.barycenter === void 0 || t.barycenter >= e.barycenter) && Kt(e, t);
959
960
  };
960
961
  }
961
962
  function r(t) {
@@ -967,50 +968,50 @@ function Q(e) {
967
968
  let i = e.pop();
968
969
  t.push(i), i.in.reverse().forEach(n(i)), i.out.forEach(r(i));
969
970
  }
970
- return t.filter((e) => !e.merged).map((e) => nt(e, [
971
+ return t.filter((e) => !e.merged).map((e) => H(e, [
971
972
  "vs",
972
973
  "i",
973
974
  "barycenter",
974
975
  "weight"
975
976
  ]));
976
977
  }
977
- function Wt(e, t) {
978
+ function Kt(e, t) {
978
979
  let n = 0, r = 0;
979
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;
980
981
  }
981
982
  //#endregion
982
983
  //#region src/DAG/order/sort.js
983
- function Gt(e, t) {
984
- let n = $e(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;
985
- r.sort(qt(!!t)), c = Kt(a, i, c), r.forEach((e) => {
986
- c += e.vs.length, a.push(e.vs), o += e.barycenter * e.weight, s += e.weight, c = Kt(a, i, c);
984
+ function qt(e, t) {
985
+ let n = Ze(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(Yt(!!t)), c = Jt(a, i, c), r.forEach((e) => {
987
+ c += e.vs.length, a.push(e.vs), o += e.barycenter * e.weight, s += e.weight, c = Jt(a, i, c);
987
988
  });
988
989
  let l = { vs: a.flat(!0) };
989
990
  return s && (l.barycenter = o / s, l.weight = s), l;
990
991
  }
991
- function Kt(e, t, n) {
992
+ function Jt(e, t, n) {
992
993
  let r;
993
994
  for (; t.length && (r = t[t.length - 1]).i <= n;) t.pop(), e.push(r.vs), n++;
994
995
  return n;
995
996
  }
996
- function qt(e) {
997
+ function Yt(e) {
997
998
  return (t, n) => t.barycenter < n.barycenter ? -1 : t.barycenter > n.barycenter ? 1 : e ? n.i - t.i : t.i - n.i;
998
999
  }
999
1000
  //#endregion
1000
1001
  //#region src/DAG/order/sort-subgraph.js
1001
- function Jt(e, t, n, r) {
1002
+ function Xt(e, t, n, r) {
1002
1003
  let i = e.children(t), a = e.node(t), o = a ? a.borderLeft : void 0, s = a ? a.borderRight : void 0, c = {};
1003
1004
  o && (i = i.filter((e) => e !== o && e !== s));
1004
- let l = Z(e, i);
1005
+ let l = Y(e, i);
1005
1006
  l.forEach((t) => {
1006
1007
  if (e.children(t.v).length) {
1007
- let i = Jt(e, t.v, n, r);
1008
- c[t.v] = i, Object.hasOwn(i, "barycenter") && Xt(t, i);
1008
+ let i = Xt(e, t.v, n, r);
1009
+ c[t.v] = i, Object.hasOwn(i, "barycenter") && Qt(t, i);
1009
1010
  }
1010
1011
  });
1011
- let u = Ut(l, n);
1012
- Yt(u, c);
1013
- let d = Gt(u, r);
1012
+ let u = Gt(l, n);
1013
+ Zt(u, c);
1014
+ let d = qt(u, r);
1014
1015
  if (o && (d.vs = [
1015
1016
  o,
1016
1017
  d.vs,
@@ -1021,19 +1022,19 @@ function Jt(e, t, n, r) {
1021
1022
  }
1022
1023
  return d;
1023
1024
  }
1024
- function Yt(e, t) {
1025
+ function Zt(e, t) {
1025
1026
  e.forEach((e) => {
1026
1027
  e.vs = e.vs.flatMap((e) => t[e] ? t[e].vs : e);
1027
1028
  });
1028
1029
  }
1029
- function Xt(e, t) {
1030
+ function Qt(e, t) {
1030
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);
1031
1032
  }
1032
1033
  //#endregion
1033
1034
  //#region src/DAG/order/build-layer-graph.js
1034
- function Zt(e, t, n, r) {
1035
+ function $t(e, t, n, r) {
1035
1036
  r ||= e.nodes();
1036
- let i = Qt(e), a = new O({ compound: !0 }).setGraph({ root: i }).setDefaultNodeLabel((t) => e.node(t));
1037
+ let i = en(e), a = new k({ compound: !0 }).setGraph({ root: i }).setDefaultNodeLabel((t) => e.node(t));
1037
1038
  return r.forEach((r) => {
1038
1039
  let o = e.node(r), s = e.parent(r);
1039
1040
  (o.rank === t || o.minRank <= t && t <= o.maxRank) && (a.setNode(r), a.setParent(r, s || i), e[n](r).forEach((t) => {
@@ -1045,14 +1046,14 @@ function Zt(e, t, n, r) {
1045
1046
  }));
1046
1047
  }), a;
1047
1048
  }
1048
- function Qt(e) {
1049
+ function en(e) {
1049
1050
  let t;
1050
- for (; e.hasNode(t = V("_root")););
1051
+ for (; e.hasNode(t = tt("_root")););
1051
1052
  return t;
1052
1053
  }
1053
1054
  //#endregion
1054
1055
  //#region src/DAG/order/add-subgraph-constraints.js
1055
- function $t(e, t, n) {
1056
+ function tn(e, t, n) {
1056
1057
  let r = {}, i;
1057
1058
  n.forEach((n) => {
1058
1059
  let a = e.parent(n), o, s;
@@ -1067,22 +1068,22 @@ function $t(e, t, n) {
1067
1068
  }
1068
1069
  //#endregion
1069
1070
  //#region src/DAG/order/index.js
1070
- function en(e, t = {}) {
1071
+ function Z(e, t = {}) {
1071
1072
  if (typeof t.customOrder == "function") {
1072
- t.customOrder(e, en);
1073
+ t.customOrder(e, Z);
1073
1074
  return;
1074
1075
  }
1075
- let n = Qe(e), r = tn(e, H(1, n + 1), "inEdges"), i = tn(e, H(n - 1, -1, -1), "outEdges"), a = Bt(e);
1076
- if (rn(e, a), t.disableOptimalOrderHeuristic) return;
1076
+ let n = V(e), r = nn(e, nt(1, n + 1), "inEdges"), i = nn(e, nt(n - 1, -1, -1), "outEdges"), a = Ht(e);
1077
+ if (an(e, a), t.disableOptimalOrderHeuristic) return;
1077
1078
  let o = Infinity, s, c = t.constraints || [];
1078
1079
  for (let t = 0, n = 0; n < 4; ++t, ++n) {
1079
- nn(t % 2 == 0 ? r : i, t % 4 >= 2, c), a = L(e);
1080
- let l = Vt(e, a);
1080
+ rn(t % 2 == 0 ? r : i, t % 4 >= 2, c), a = Ke(e);
1081
+ let l = Ut(e, a);
1081
1082
  l < o ? (o = l, n = 0, s = structuredClone(a)) : l === o && (s = structuredClone(a));
1082
1083
  }
1083
- rn(e, s);
1084
+ an(e, s);
1084
1085
  }
1085
- function tn(e, t, n) {
1086
+ function nn(e, t, n) {
1086
1087
  let r = /* @__PURE__ */ new Map();
1087
1088
  function i(e, t) {
1088
1089
  r.has(e) || r.set(e, []), r.get(e).push(t);
@@ -1091,19 +1092,19 @@ function tn(e, t, n) {
1091
1092
  let n = e.node(t);
1092
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);
1093
1094
  }
1094
- return t.map((t) => Zt(e, t, n, r.get(t) || []));
1095
+ return t.map((t) => $t(e, t, n, r.get(t) || []));
1095
1096
  }
1096
- function nn(e, t, n) {
1097
- let r = new O();
1097
+ function rn(e, t, n) {
1098
+ let r = new k();
1098
1099
  e.forEach((e) => {
1099
1100
  n.forEach((e) => r.setEdge(e.left, e.right));
1100
- let i = e.graph().root, a = Jt(e, i, r, t);
1101
+ let i = e.graph().root, a = Xt(e, i, r, t);
1101
1102
  a.vs.forEach((t, n) => {
1102
1103
  e.node(t).order = n;
1103
- }), $t(e, r, a.vs);
1104
+ }), tn(e, r, a.vs);
1104
1105
  });
1105
1106
  }
1106
- function rn(e, t) {
1107
+ function an(e, t) {
1107
1108
  Object.values(t).forEach((t) => {
1108
1109
  t.forEach((t, n) => {
1109
1110
  e.node(t).order = n;
@@ -1112,30 +1113,30 @@ function rn(e, t) {
1112
1113
  }
1113
1114
  //#endregion
1114
1115
  //#region src/DAG/position/bk.js
1115
- function $(e, t) {
1116
+ function Q(e, t) {
1116
1117
  let n = {};
1117
1118
  function r(t, r) {
1118
1119
  let i = 0, a = 0, o = t.length, s = r[r.length - 1];
1119
1120
  return r.forEach((t, c) => {
1120
- let l = on(e, t), u = l ? e.node(l).order : o;
1121
+ let l = sn(e, t), u = l ? e.node(l).order : o;
1121
1122
  (l || t === s) && (r.slice(a, c + 1).forEach((t) => {
1122
1123
  e.predecessors(t).forEach((r) => {
1123
1124
  let a = e.node(r), o = a.order;
1124
- (o < i || u < o) && !(a.dummy && e.node(t).dummy) && sn(n, r, t);
1125
+ (o < i || u < o) && !(a.dummy && e.node(t).dummy) && cn(n, r, t);
1125
1126
  });
1126
1127
  }), a = c + 1, i = u);
1127
1128
  }), r;
1128
1129
  }
1129
1130
  return t.length && t.reduce(r), n;
1130
1131
  }
1131
- function an(e, t) {
1132
+ function on(e, t) {
1132
1133
  let n = {};
1133
1134
  function r(t, r, i, a, o) {
1134
1135
  let s;
1135
- H(r, i).forEach((r) => {
1136
+ nt(r, i).forEach((r) => {
1136
1137
  s = t[r], e.node(s).dummy && e.predecessors(s).forEach((t) => {
1137
1138
  let r = e.node(t);
1138
- r.dummy && (r.order < a || r.order > o) && sn(n, t, s);
1139
+ r.dummy && (r.order < a || r.order > o) && cn(n, t, s);
1139
1140
  });
1140
1141
  });
1141
1142
  }
@@ -1151,10 +1152,10 @@ function an(e, t) {
1151
1152
  }
1152
1153
  return t.length && t.reduce(i), n;
1153
1154
  }
1154
- function on(e, t) {
1155
+ function sn(e, t) {
1155
1156
  if (e.node(t).dummy) return e.predecessors(t).find((t) => e.node(t).dummy);
1156
1157
  }
1157
- function sn(e, t, n) {
1158
+ function cn(e, t, n) {
1158
1159
  if (t > n) {
1159
1160
  let e = t;
1160
1161
  t = n, n = e;
@@ -1162,14 +1163,14 @@ function sn(e, t, n) {
1162
1163
  let r = e[t];
1163
1164
  r || (e[t] = r = {}), r[n] = !0;
1164
1165
  }
1165
- function cn(e, t, n) {
1166
+ function ln(e, t, n) {
1166
1167
  if (t > n) {
1167
1168
  let e = t;
1168
1169
  t = n, n = e;
1169
1170
  }
1170
1171
  return !!e[t] && Object.hasOwn(e[t], n);
1171
1172
  }
1172
- function ln(e, t, n, r) {
1173
+ function un(e, t, n, r) {
1173
1174
  let i = {}, a = {}, o = {};
1174
1175
  return t.forEach((e) => {
1175
1176
  e.forEach((e, t) => {
@@ -1184,7 +1185,7 @@ function ln(e, t, n, r) {
1184
1185
  let r = (s.length - 1) / 2;
1185
1186
  for (let c = Math.floor(r), l = Math.ceil(r); c <= l; ++c) {
1186
1187
  let r = s[c];
1187
- a[e] === e && t < o[r] && !cn(n, e, r) && (a[r] = e, a[e] = i[e] = i[r], t = o[r]);
1188
+ a[e] === e && t < o[r] && !ln(n, e, r) && (a[r] = e, a[e] = i[e] = i[r], t = o[r]);
1188
1189
  }
1189
1190
  }
1190
1191
  });
@@ -1193,8 +1194,8 @@ function ln(e, t, n, r) {
1193
1194
  align: a
1194
1195
  };
1195
1196
  }
1196
- function un(e, t, n, r, i) {
1197
- let a = {}, o = dn(e, t, n, i), s = i ? "borderLeft" : "borderRight";
1197
+ function dn(e, t, n, r, i) {
1198
+ let a = {}, o = fn(e, t, n, i), s = i ? "borderLeft" : "borderRight";
1198
1199
  function c(e, t) {
1199
1200
  let n = o.nodes().slice(), r = {}, i = n.pop();
1200
1201
  for (; i;) {
@@ -1217,8 +1218,8 @@ function un(e, t, n, r, i) {
1217
1218
  a[e] = a[n[e]];
1218
1219
  }), a;
1219
1220
  }
1220
- function dn(e, t, n, r) {
1221
- let i = new e.constructor(), a = e.graph(), o = gn(a.nodesep, a.edgesep, r);
1221
+ function fn(e, t, n, r) {
1222
+ let i = new e.constructor(), a = e.graph(), o = _n(a.nodesep, a.edgesep, r);
1222
1223
  return t.forEach((t) => {
1223
1224
  let r;
1224
1225
  t.forEach((t) => {
@@ -1231,83 +1232,79 @@ function dn(e, t, n, r) {
1231
1232
  });
1232
1233
  }), i;
1233
1234
  }
1234
- function fn(e, t) {
1235
+ function pn(e, t) {
1235
1236
  return Object.values(t).reduce((t, n) => {
1236
1237
  let r = -Infinity, i = Infinity;
1237
1238
  Object.entries(n).forEach(([t, n]) => {
1238
- let a = _n(e, t) / 2;
1239
+ let a = vn(e, t) / 2;
1239
1240
  r = Math.max(n + a, r), i = Math.min(n - a, i);
1240
1241
  });
1241
1242
  let a = r - i;
1242
1243
  return a < t[0] && (t = [a, n]), t;
1243
1244
  }, [Infinity, null])[1];
1244
1245
  }
1245
- function pn(e, t) {
1246
- let n = Object.values(t), r = z(Math.min, n), i = z(Math.max, n);
1246
+ function mn(e, t) {
1247
+ let n = Object.values(t), r = B(Math.min, n), i = B(Math.max, n);
1247
1248
  ["u", "d"].forEach((n) => {
1248
1249
  ["l", "r"].forEach((a) => {
1249
1250
  let o = n + a, s = e[o];
1250
1251
  if (s === t) return;
1251
- let c = Object.values(s), l = r - z(Math.min, c);
1252
- a !== "l" && (l = i - z(Math.max, c)), l && (s = rt(s, (e) => e + l), e[o] = s);
1252
+ let c = Object.values(s), l = r - B(Math.min, c);
1253
+ a !== "l" && (l = i - B(Math.max, c)), l && (s = U(s, (e) => e + l), e[o] = s);
1253
1254
  });
1254
1255
  });
1255
1256
  }
1256
- function mn(e, t) {
1257
- return rt(e.ul, (n, r) => {
1257
+ function hn(e, t) {
1258
+ return U(e.ul, (n, r) => {
1258
1259
  if (t) return e[t.toLowerCase()][r];
1259
1260
  let i = Object.values(e).map((e) => e[r]).sort((e, t) => e - t);
1260
1261
  return (i[1] + i[2]) / 2;
1261
1262
  });
1262
1263
  }
1263
- function hn(e) {
1264
- let t = L(e), n = Object.assign($(e, t), an(e, t)), r = {}, i;
1264
+ function gn(e) {
1265
+ let t = Ke(e), n = Object.assign(Q(e, t), on(e, t)), r = {}, i;
1265
1266
  return ["u", "d"].forEach((a) => {
1266
1267
  i = a === "u" ? t : Object.values(t).reverse(), ["l", "r"].forEach((t) => {
1267
1268
  let o = i;
1268
1269
  t === "r" && (o = o.map((e) => Object.values(e).reverse()));
1269
- 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");
1270
- t === "r" && (l = rt(l, (e) => -e)), r[a + t] = l;
1270
+ let s = (a === "u" ? e.predecessors : e.successors).bind(e), c = un(e, o, n, s), l = dn(e, o, c.root, c.align, t === "r");
1271
+ t === "r" && (l = U(l, (e) => -e)), r[a + t] = l;
1271
1272
  });
1272
- }), pn(r, fn(e, r)), mn(r, e.graph().align);
1273
+ }), mn(r, pn(e, r)), hn(r, e.graph().align);
1273
1274
  }
1274
- function gn(e, t, n) {
1275
+ function _n(e, t, n) {
1275
1276
  return (r, i, a) => {
1276
1277
  let o = r.node(i), s = r.node(a), c = 0, l;
1277
1278
  if (c += o.width / 2, Object.hasOwn(o, "labelpos")) switch (o.labelpos.toLowerCase()) {
1278
1279
  case "l":
1279
1280
  l = -o.width / 2;
1280
1281
  break;
1281
- case "r":
1282
- l = o.width / 2;
1283
- break;
1282
+ case "r": l = o.width / 2;
1284
1283
  }
1285
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()) {
1286
1285
  case "l":
1287
1286
  l = s.width / 2;
1288
1287
  break;
1289
- case "r":
1290
- l = -s.width / 2;
1291
- break;
1288
+ case "r": l = -s.width / 2;
1292
1289
  }
1293
1290
  return l && (c += n ? l : -l), l = 0, c;
1294
1291
  };
1295
1292
  }
1296
- function _n(e, t) {
1293
+ function vn(e, t) {
1297
1294
  return e.node(t).width;
1298
1295
  }
1299
1296
  //#endregion
1300
1297
  //#region src/DAG/position/index.js
1301
- function vn(e) {
1302
- let t = I(e);
1303
- yn(t);
1304
- let n = hn(t);
1298
+ function yn(e) {
1299
+ let t = Ue(e);
1300
+ bn(t);
1301
+ let n = gn(t);
1305
1302
  Object.entries(n).forEach(([t, n]) => {
1306
1303
  e.node(t).x = n;
1307
1304
  });
1308
1305
  }
1309
- function yn(e) {
1310
- let t = L(e), n = e.graph().ranksep, r = 0;
1306
+ function bn(e) {
1307
+ let t = Ke(e), n = e.graph().ranksep, r = 0;
1311
1308
  t.forEach((t) => {
1312
1309
  let i = t.reduce((t, n) => {
1313
1310
  let r = e.node(n).height;
@@ -1320,15 +1317,15 @@ function yn(e) {
1320
1317
  }
1321
1318
  //#endregion
1322
1319
  //#region src/DAG/layout.js
1323
- function bn(e, t = {}) {
1324
- let n = t.debugTiming ? B : et;
1320
+ function xn(e, t = {}) {
1321
+ let n = t.debugTiming ? Qe : $e;
1325
1322
  return n("layout", () => {
1326
1323
  let r = n(" buildLayoutGraph", () => jn(e));
1327
- return n(" runLayout", () => xn(r, n, t)), n(" updateInputGraph", () => Sn(e, r)), r;
1324
+ return n(" runLayout", () => $(r, n, t)), n(" updateInputGraph", () => Sn(e, r)), r;
1328
1325
  });
1329
1326
  }
1330
- function xn(e, t, n) {
1331
- t(" makeSpaceForEdgeLabels", () => Mn(e)), t(" removeSelfEdges", () => Hn(e)), t(" acyclic", () => G(e)), t(" nestingGraph.run", () => Tt(e)), t(" rank", () => bt(I(e))), t(" injectEdgeLabelProxies", () => Nn(e)), t(" removeEmptyRanks", () => Ye(e)), t(" nestingGraph.cleanup", () => kt(e)), t(" normalizeRanks", () => Je(e)), t(" assignRankMinMax", () => Pn(e)), t(" removeEdgeLabelProxies", () => Fn(e)), t(" normalize.run", () => ot(e)), t(" parentDummyChains", () => Ct(e)), t(" addBorderSegments", () => At(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", () => st(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", () => it(e));
1327
+ function $(e, t, n) {
1328
+ t(" makeSpaceForEdgeLabels", () => Mn(e)), t(" removeSelfEdges", () => Hn(e)), t(" acyclic", () => it(e)), t(" nestingGraph.run", () => Dt(e)), t(" rank", () => St(Ue(e))), t(" injectEdgeLabelProxies", () => Nn(e)), t(" removeEmptyRanks", () => Je(e)), t(" nestingGraph.cleanup", () => jt(e)), t(" normalizeRanks", () => qe(e)), t(" assignRankMinMax", () => Pn(e)), t(" removeEdgeLabelProxies", () => Fn(e)), t(" normalize.run", () => ot(e)), t(" parentDummyChains", () => Tt(e)), t(" addBorderSegments", () => Mt(e)), t(" order", () => Z(e, n)), t(" insertSelfEdges", () => Un(e)), t(" adjustCoordinateSystem", () => Vt.adjust(e)), t(" position", () => yn(e)), t(" positionSelfEdges", () => Wn(e)), t(" removeBorderNodes", () => Vn(e)), t(" normalize.undo", () => ct(e)), t(" fixupEdgeLabelCoords", () => zn(e)), t(" undoCoordinateSystem", () => Vt.undo(e)), t(" translateGraph", () => In(e)), t(" assignNodeIntersects", () => Rn(e)), t(" reversePoints", () => Bn(e)), t(" acyclic.undo", () => at(e));
1332
1329
  }
1333
1330
  function Sn(e, t) {
1334
1331
  e.nodes().forEach((n) => {
@@ -1382,8 +1379,8 @@ function jn(e) {
1382
1379
  let t = Kn(e.graph()), n = {
1383
1380
  ...wn,
1384
1381
  ...Gn(t, Cn),
1385
- ...nt(t, Tn)
1386
- }, r = new O({
1382
+ ...H(t, Tn)
1383
+ }, r = new k({
1387
1384
  multigraph: !0,
1388
1385
  compound: !0
1389
1386
  });
@@ -1397,7 +1394,7 @@ function jn(e) {
1397
1394
  r.setEdge(t, {
1398
1395
  ...kn,
1399
1396
  ...Gn(n, On),
1400
- ...nt(n, An)
1397
+ ...H(n, An)
1401
1398
  });
1402
1399
  }), r;
1403
1400
  }
@@ -1413,7 +1410,7 @@ function Nn(e) {
1413
1410
  let n = e.edge(t);
1414
1411
  if (n.width && n.height) {
1415
1412
  let n = e.node(t.v);
1416
- P(e, "edge-proxy", {
1413
+ L(e, "edge-proxy", {
1417
1414
  rank: (e.node(t.w).rank - n.rank) / 2 + n.rank,
1418
1415
  e: t
1419
1416
  }, "_ep");
@@ -1466,7 +1463,7 @@ function Rn(e) {
1466
1463
  e.edges().forEach((t) => {
1467
1464
  let n = e.edge(t), r = e.node(t.v), i = e.node(t.w), a, o;
1468
1465
  !n.points || !n.points.length ? (n.points = [], a = i, o = r) : (a = n.points[0], o = n.points[n.points.length - 1]);
1469
- let s = qe(r, a), c = qe(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;
1466
+ let s = Ge(r, a), c = Ge(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;
1470
1467
  f && (p ? m = Ln(s, l, 4) : h = Ln(c, u, 4)), n.points.unshift(m), n.points.push(h);
1471
1468
  });
1472
1469
  }
@@ -1477,9 +1474,7 @@ function zn(e) {
1477
1474
  case "l":
1478
1475
  n.x -= n.width / 2 + n.labeloffset;
1479
1476
  break;
1480
- case "r":
1481
- n.x += n.width / 2 + n.labeloffset;
1482
- break;
1477
+ case "r": n.x += n.width / 2 + n.labeloffset;
1483
1478
  }
1484
1479
  });
1485
1480
  }
@@ -1511,12 +1506,12 @@ function Hn(e) {
1511
1506
  });
1512
1507
  }
1513
1508
  function Un(e) {
1514
- L(e).forEach((t) => {
1509
+ Ke(e).forEach((t) => {
1515
1510
  let n = 0;
1516
1511
  t.forEach((t, r) => {
1517
1512
  let i = e.node(t);
1518
1513
  i.order = r + n, (i.selfEdges || []).forEach((t) => {
1519
- P(e, "selfedge", {
1514
+ L(e, "selfedge", {
1520
1515
  width: t.label.width,
1521
1516
  height: t.label.height,
1522
1517
  rank: i.rank,
@@ -1559,7 +1554,7 @@ function Wn(e) {
1559
1554
  });
1560
1555
  }
1561
1556
  function Gn(e, t) {
1562
- return rt(nt(e, t), Number);
1557
+ return U(H(e, t), Number);
1563
1558
  }
1564
1559
  function Kn(e) {
1565
1560
  let t = {};
@@ -1603,13 +1598,13 @@ function Yn(e) {
1603
1598
  return n += ` L ${r.x} ${r.y}`, n;
1604
1599
  }
1605
1600
  function Xn(e) {
1606
- let { nodes: t, edges: n, configuration: r } = e, a = w(null), s = w(null), c = `dag-arrow-${o()}`;
1601
+ let { nodes: t, edges: n, configuration: r } = e, a = T(null), s = T(null), c = `dag-arrow-${o()}`;
1607
1602
  function l(e, t, n) {
1608
1603
  s.value = null, a.value = null;
1609
1604
  let r = {
1610
1605
  ...qn,
1611
1606
  ...n
1612
- }, l = new O({
1607
+ }, l = new k({
1613
1608
  multigraph: !0,
1614
1609
  compound: !0
1615
1610
  });
@@ -1631,7 +1626,7 @@ function Xn(e) {
1631
1626
  minlen: e.minLength ?? 1,
1632
1627
  arrowShape: r.arrowShape ?? "normal"
1633
1628
  });
1634
- }), bn(l);
1629
+ }), xn(l);
1635
1630
  let u = e.map((e) => {
1636
1631
  let t = l.node(e.id);
1637
1632
  return {
@@ -1685,9 +1680,9 @@ function Xn(e) {
1685
1680
  arrowSize: r.arrowSize
1686
1681
  };
1687
1682
  }
1688
- return Ae(() => {
1683
+ return ke(() => {
1689
1684
  try {
1690
- l(E(t) || [], E(n) || [], E(r) || {});
1685
+ l(D(t) || [], D(n) || [], D(r) || {});
1691
1686
  } catch (e) {
1692
1687
  console.error("[useDag] layout error:", e), s.value = e, a.value = null;
1693
1688
  }
@@ -1696,7 +1691,7 @@ function Xn(e) {
1696
1691
  lastError: s,
1697
1692
  arrowMarkerIdentifier: c,
1698
1693
  recomputeLayout: () => {
1699
- l(E(t) || [], E(n) || [], E(r) || {});
1694
+ l(D(t) || [], D(n) || [], D(r) || {});
1700
1695
  }
1701
1696
  };
1702
1697
  }
@@ -1812,29 +1807,29 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
1812
1807
  "rotate"
1813
1808
  ],
1814
1809
  setup(e, { expose: i, emit: re }) {
1815
- let Ae = ye(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), Me = ye(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), Ne = ye(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), { vue_ui_dag: Pe } = d(), { isThemeValid: O, warnInvalidTheme: Fe } = ee(), k = e, A = re, j = w(null), M = w(o()), Ie = w(null), Le = w(null), Re = w(null), ze = w(0), Be = w(0), Ve = w(!1), He = w(!1), Ue = w(!1), We = w(!1), N = w(null), P = w(null), F = w(null), I = w(null), Ge = w(null), Ke = w("pointer"), qe = w(!1), L = w(dt());
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-DXU7nRr9.js").then((e) => e.t)), { vue_ui_dag: Ne } = d(), { isThemeValid: k, warnInvalidTheme: Pe } = g(), 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), P = T(null), F = T(null), I = T(null), L = T(null), He = T(null), Ue = T("pointer"), We = T(!1), R = T(ut());
1816
1811
  l({
1817
- config: () => L.value,
1818
- dataset: () => k.dataset,
1812
+ config: () => R.value,
1813
+ dataset: () => A.dataset,
1819
1814
  component: "VueUiDag",
1820
1815
  rules: [u.noHint]
1821
1816
  });
1822
- let Je = _(() => L.value.userOptions.useCursorPointer), Ye = w(L.value.style.chart.width), Xe = w(L.value.style.chart.height), Ze = w({
1817
+ let Ge = _(() => R.value.userOptions.useCursorPointer), Ke = T(R.value.style.chart.width), qe = T(R.value.style.chart.height), Je = T({
1823
1818
  x: 0,
1824
1819
  y: 0
1825
- }), R = w(null), z = w(null), Qe = w({
1820
+ }), z = T(null), Ye = T(null), Xe = T({
1826
1821
  left: "0px",
1827
1822
  top: "0px"
1828
- }), $e = w("top"), B = w(!1), et = w({
1823
+ }), B = T("top"), V = T(!1), Ze = T({
1829
1824
  x: 0,
1830
1825
  y: 0
1831
- }), tt = w({
1826
+ }), Qe = T({
1832
1827
  x: 0,
1833
1828
  y: 0
1834
- }), V = w(null), H = w(null), nt = w({
1829
+ }), $e = T(null), et = T(null), tt = T({
1835
1830
  left: "0px",
1836
1831
  top: "0px"
1837
- }), rt = w("top"), U = w(!1), W = w(!1), { svgRef: G } = ce({ config: L.value.style.chart.title }), { userOptionsVisible: it, setUserOptionsVisibility: at, keepUserOptionState: ot } = se({ config: L.value }), K = w(L.value.style.chart.layout.rankDirection), st = _(() => t({
1832
+ }), nt = T("top"), H = T(!1), U = T(!1), { svgRef: W } = ce({ config: R.value.style.chart.title }), { userOptionsVisible: rt, setUserOptionsVisibility: it, keepUserOptionState: at } = se({ config: R.value }), G = T(R.value.style.chart.layout.rankDirection), ot = _(() => t({
1838
1833
  defaultConfig: {
1839
1834
  userOptions: { show: !1 },
1840
1835
  style: { chart: {
@@ -1850,12 +1845,12 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
1850
1845
  }
1851
1846
  } }
1852
1847
  },
1853
- userConfig: L.value.skeletonConfig ?? {}
1854
- })), { loading: ct, FINAL_DATASET: lt, manualLoading: ut } = p({
1855
- ...Oe(k),
1856
- FINAL_CONFIG: L,
1857
- prepareConfig: dt,
1858
- skeletonDataset: k.config?.skeletonDataset ?? {
1848
+ userConfig: R.value.skeletonConfig ?? {}
1849
+ })), { loading: st, FINAL_DATASET: ct, manualLoading: lt } = p({
1850
+ ...De(A),
1851
+ FINAL_CONFIG: R,
1852
+ prepareConfig: ut,
1853
+ skeletonDataset: A.config?.skeletonDataset ?? {
1859
1854
  nodes: [
1860
1855
  {
1861
1856
  id: "A",
@@ -1879,76 +1874,62 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
1879
1874
  }]
1880
1875
  },
1881
1876
  skeletonConfig: t({
1882
- defaultConfig: L.value,
1883
- userConfig: st.value
1877
+ defaultConfig: R.value,
1878
+ userConfig: ot.value
1884
1879
  })
1885
1880
  });
1886
- function dt() {
1887
- let e = g({
1888
- userConfig: k.config,
1889
- defaultConfig: Pe
1881
+ function ut() {
1882
+ let e = h({
1883
+ userConfig: A.config,
1884
+ defaultConfig: Ne
1890
1885
  }), t = e.theme;
1891
1886
  if (!t) return e;
1892
- if (!O.value(e)) return Fe(e), e;
1893
- let n = g({
1894
- userConfig: de[t] || k.config,
1887
+ if (!k.value(e)) return Pe(e), e;
1888
+ let n = h({
1889
+ userConfig: de[t] || A.config,
1895
1890
  defaultConfig: e
1896
1891
  });
1897
- return g({
1898
- userConfig: k.config,
1892
+ return h({
1893
+ userConfig: A.config,
1899
1894
  defaultConfig: n
1900
1895
  });
1901
1896
  }
1902
- let ft = _(() => !!L.value.debug);
1903
- Te(async () => {
1904
- a(k.dataset) && (c({
1897
+ let dt = _(() => R.value.debug);
1898
+ we(async () => {
1899
+ a(A.dataset) && (c({
1905
1900
  componentName: "VueUiDag",
1906
1901
  type: "dataset",
1907
- debug: ft.value
1908
- }), He.value = !1, ut.value = !0), k.dataset.nodes || (c({
1902
+ debug: dt.value
1903
+ }), Ve.value = !1, lt.value = !0), (!A.dataset.nodes || A.dataset.nodes.length === 0) && (c({
1909
1904
  componentName: "VueUiDag",
1910
1905
  type: "datasetAttributeEmpty",
1911
1906
  property: "nodes",
1912
1907
  index: 0,
1913
- debug: ft.value
1914
- }), He.value = !1, ut.value = !0), He.value = !0, await xe(), Jt();
1915
- }), ke(() => k.config, async (e) => {
1916
- ct.value || (L.value = dt()), it.value = !L.value.userOptions.showOnChartHover, ze.value += 1, K.value = L.value.style.chart.layout.rankDirection, Ye.value = L.value.style.chart.width, Xe.value = L.value.style.chart.height, Et.value = L.value.style.chart.zoom.active, await xe(), Jt();
1908
+ debug: dt.value
1909
+ }), Ve.value = !1, lt.value = !0), Ve.value = !0, await be(), Xt();
1910
+ }), Oe(() => A.config, async (e) => {
1911
+ st.value || (R.value = ut()), rt.value = !R.value.userOptions.showOnChartHover, Re.value += 1, G.value = R.value.style.chart.layout.rankDirection, Ke.value = R.value.style.chart.width, qe.value = R.value.style.chart.height, Ot.value = R.value.style.chart.zoom.active, await be(), Xt();
1917
1912
  }, { deep: !0 });
1918
- let { isPrinting: pt, isImaging: q, generatePdf: mt, generateImage: ht } = f({
1919
- elementId: `dag_${M.value}`,
1920
- fileName: L.value.style.chart.title.text || "vue-ui-dag",
1921
- options: L.value.userOptions.print
1922
- }), gt = _(() => L.value.style.chart.backgroundColor), { exportSvg: _t, getSvg: vt } = h({
1923
- svg: G,
1924
- title: _(() => L.value.style.chart.title),
1925
- legend: void 0,
1926
- legendItems: void 0,
1927
- backgroundColor: gt
1913
+ let { isPrinting: ft, isImaging: pt, generatePdf: mt, generateImage: ht } = f({
1914
+ elementId: `dag_${N.value}`,
1915
+ fileName: R.value.style.chart.title.text || "vue-ui-dag",
1916
+ options: R.value.userOptions.print
1917
+ }), gt = _(() => R.value.style.chart.backgroundColor), _t = _(() => R.value.style.chart.title), { isCallbackImaging: vt, isCallbackSvg: yt, generateSvg: bt, onGenerateImage: xt } = ee({
1918
+ svg: W,
1919
+ title: _t,
1920
+ legend: null,
1921
+ legendItems: null,
1922
+ backgroundColor: gt,
1923
+ getSvgCallback: () => R.value.userOptions.callbacks.svg,
1924
+ generateImage: ht
1928
1925
  });
1929
- async function yt({ isCb: e }) {
1930
- We.value = !0, await xe();
1931
- try {
1932
- if (e) {
1933
- let { blob: e, url: t, text: n, dataUrl: r } = await vt();
1934
- await Promise.resolve(L.value.userOptions.callbacks.svg({
1935
- blob: e,
1936
- url: t,
1937
- text: n,
1938
- dataUrl: r
1939
- }));
1940
- } else await Promise.resolve(_t());
1941
- } finally {
1942
- We.value = !1;
1943
- }
1926
+ function St() {
1927
+ Be.value = !0, it(!0);
1944
1928
  }
1945
- function bt() {
1946
- Ve.value = !0, at(!0);
1929
+ function Ct() {
1930
+ it(!1), Be.value = !1;
1947
1931
  }
1948
- function xt() {
1949
- at(!1), Ve.value = !1;
1950
- }
1951
- function St({ tooltipRef: e, isVisibleRef: t, anchorRef: n, styleRef: r, placementRef: i, offsetRef: a, margin: o = 24 }) {
1932
+ function wt({ tooltipRef: e, isVisibleRef: t, anchorRef: n, styleRef: r, placementRef: i, offsetRef: a, margin: o = 24 }) {
1952
1933
  return function() {
1953
1934
  let s = e.value;
1954
1935
  if (!s || !t.value) return;
@@ -1969,25 +1950,25 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
1969
1950
  };
1970
1951
  };
1971
1952
  }
1972
- let { layoutData: J, lastError: Ct, arrowMarkerIdentifier: wt } = Xn({
1973
- nodes: _(() => lt.value.nodes.map((e) => ({
1953
+ let { layoutData: K, lastError: Tt, arrowMarkerIdentifier: Et } = Xn({
1954
+ nodes: _(() => ct.value.nodes.map((e) => ({
1974
1955
  ...e,
1975
- backgroundColor: e.backgroundColor ? r(e.backgroundColor) : L.value.style.chart.nodes.backgroundColor,
1976
- color: e.color ? r(e.color) : L.value.style.chart.nodes.labels.color
1956
+ backgroundColor: e.backgroundColor ? r(e.backgroundColor) : R.value.style.chart.nodes.backgroundColor,
1957
+ color: e.color ? r(e.color) : R.value.style.chart.nodes.labels.color
1977
1958
  }))),
1978
- edges: _(() => lt.value.edges),
1959
+ edges: _(() => ct.value.edges),
1979
1960
  configuration: _(() => ({
1980
- ...L.value.style.chart.layout,
1981
- rankDirection: K.value
1961
+ ...R.value.style.chart.layout,
1962
+ rankDirection: G.value
1982
1963
  }))
1983
1964
  });
1984
- function Y(e) {
1985
- return J.value ? J.value.nodes.find((t) => t.id === e) : null;
1965
+ function q(e) {
1966
+ return K.value ? K.value.nodes.find((t) => t.id === e) : null;
1986
1967
  }
1987
1968
  _(() => {
1988
- if (!J.value) return [];
1989
- let e = L.value.style.chart.edges.stroke, t = /* @__PURE__ */ new Set();
1990
- return J.value.edges.forEach((n) => {
1969
+ if (!K.value) return [];
1970
+ let e = R.value.style.chart.edges.stroke, t = /* @__PURE__ */ new Set();
1971
+ return K.value.edges.forEach((n) => {
1991
1972
  t.add({
1992
1973
  id: n.id,
1993
1974
  from: n.from,
@@ -1996,165 +1977,165 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
1996
1977
  });
1997
1978
  }), Array.from(t);
1998
1979
  });
1999
- let Tt = _(() => {
2000
- let e = Ye.value, t = Xe.value, n = Number(e), r = Number(t), i = Number.isFinite(n) && n > 0, a = Number.isFinite(r) && r > 0;
1980
+ let Dt = _(() => {
1981
+ 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;
2001
1982
  return !i && !a ? null : {
2002
1983
  width: i ? n : null,
2003
1984
  height: a ? r : null
2004
1985
  };
2005
- }), Et = w(L.value.style.chart.zoom.active), { viewBox: Dt, resetZoom: Ot, setInitialViewBox: kt, scale: At, zoomByFactor: jt } = le(G, {
1986
+ }), Ot = T(R.value.style.chart.zoom.active), { viewBox: kt, resetZoom: At, setInitialViewBox: jt, scale: Mt, zoomByFactor: Nt } = le(W, {
2006
1987
  x: 0,
2007
1988
  y: 0,
2008
1989
  width: 100,
2009
1990
  height: 100
2010
- }, 1, Et, () => {
2011
- B.value = !1;
1991
+ }, 1, Ot, () => {
1992
+ V.value = !1;
2012
1993
  });
2013
- function Mt() {
2014
- Et.value = !Et.value;
1994
+ function Pt() {
1995
+ Ot.value = !Ot.value;
2015
1996
  }
2016
- function Nt() {
2017
- let e = J.value && J.value.viewBox;
1997
+ function Ft() {
1998
+ let e = K.value && K.value.viewBox;
2018
1999
  if (!e) return;
2019
2000
  let t = String(e).split(" ").map(Number);
2020
2001
  if (t.length !== 4) return;
2021
2002
  let [n, r, i, a] = t;
2022
2003
  if (!Number.isFinite(n) || !Number.isFinite(r) || !Number.isFinite(i) || !Number.isFinite(a)) return;
2023
- let o = i, s = a, c = n, l = r, u = Tt.value;
2024
- u && (u.width !== null && (o = u.width), u.height !== null && (s = u.height), c = n - (o - i) / 2, l = r - (s - a) / 2), kt({
2004
+ let o = i, s = a, c = n, l = r, u = Dt.value;
2005
+ u && (u.width !== null && (o = u.width), u.height !== null && (s = u.height), c = n - (o - i) / 2, l = r - (s - a) / 2), jt({
2025
2006
  x: c,
2026
2007
  y: l,
2027
2008
  width: o,
2028
2009
  height: s
2029
2010
  }, { overwriteCurrentIfNotZoomed: !0 });
2030
2011
  }
2031
- ke(() => J.value && J.value.viewBox, () => {
2032
- Nt();
2033
- }, { immediate: !0 }), ke(() => Tt.value, () => {
2034
- Nt();
2035
- }), ke(() => W.value, (e) => {
2036
- Et.value = !e;
2012
+ Oe(() => K.value && K.value.viewBox, () => {
2013
+ Ft();
2014
+ }, { immediate: !0 }), Oe(() => Dt.value, () => {
2015
+ Ft();
2016
+ }), Oe(() => U.value, (e) => {
2017
+ Ot.value = !e;
2037
2018
  });
2038
- let Pt = _(() => {
2039
- let e = Dt.value;
2019
+ let It = _(() => {
2020
+ let e = kt.value;
2040
2021
  return e ? `${e.x} ${e.y} ${e.width} ${e.height}` : "0 0 0 0";
2041
- }), X = w(!1);
2042
- function Ft(e) {
2043
- X.value = e, Be.value += 1;
2022
+ }), J = T(!1);
2023
+ function Lt(e) {
2024
+ J.value = e, ze.value += 1;
2044
2025
  }
2045
- function It() {
2046
- W.value = !W.value;
2026
+ function Rt() {
2027
+ U.value = !U.value;
2047
2028
  }
2048
- function Lt() {
2049
- jt(Ar, !0);
2029
+ function zt() {
2030
+ Nt(Ar, !0);
2050
2031
  }
2051
- function Rt() {
2052
- jt(1 / Ar, !0);
2032
+ function Bt() {
2033
+ Nt(1 / Ar, !0);
2053
2034
  }
2054
- let zt = [
2035
+ let Vt = [
2055
2036
  "TB",
2056
2037
  "RL",
2057
2038
  "BT",
2058
2039
  "LR"
2059
2040
  ];
2060
- function Bt() {
2061
- K.value = zt[(zt.indexOf(K.value) + 1) % zt.length], Ot(), A("rotate", K.value);
2062
- }
2063
- let Vt = St({
2064
- tooltipRef: z,
2065
- isVisibleRef: U,
2066
- anchorRef: Ze,
2067
- styleRef: Qe,
2068
- placementRef: $e,
2041
+ function Ht() {
2042
+ G.value = Vt[(Vt.indexOf(G.value) + 1) % Vt.length], At(), j("rotate", G.value);
2043
+ }
2044
+ let Ut = wt({
2045
+ tooltipRef: Ye,
2046
+ isVisibleRef: H,
2047
+ anchorRef: Je,
2048
+ styleRef: Xe,
2049
+ placementRef: B,
2069
2050
  isNode: !1
2070
- }), Ht = St({
2071
- tooltipRef: H,
2072
- isVisibleRef: B,
2073
- anchorRef: et,
2074
- styleRef: nt,
2075
- placementRef: rt,
2076
- offsetRef: tt
2077
- }), Z = w(null);
2078
- async function Ut(e) {
2079
- A("onMidpointEnter", e);
2080
- let t = G.value;
2051
+ }), Wt = wt({
2052
+ tooltipRef: et,
2053
+ isVisibleRef: V,
2054
+ anchorRef: Ze,
2055
+ styleRef: tt,
2056
+ placementRef: nt,
2057
+ offsetRef: Qe
2058
+ }), Y = T(null);
2059
+ async function Gt(e) {
2060
+ j("onMidpointEnter", e);
2061
+ let t = W.value;
2081
2062
  if (!t || !e?.midpoint) return;
2082
2063
  let n = t.createSVGPoint();
2083
2064
  n.x = e.midpoint.x, n.y = e.midpoint.y;
2084
2065
  let r = t.getScreenCTM();
2085
2066
  if (!r) return;
2086
2067
  let i = n.matrixTransform(r);
2087
- Ze.value = {
2068
+ Je.value = {
2088
2069
  x: i.x,
2089
2070
  y: i.y
2090
- }, R.value = e, U.value = !0, L.value.style.chart.midpoints.selectedEdge.animated === !0 && (Z.value = e.id, en()), await xe(), Vt();
2071
+ }, z.value = e, H.value = !0, R.value.style.chart.midpoints.selectedEdge.animated === !0 && (Y.value = e.id, Z()), await be(), Ut();
2091
2072
  }
2092
- function Q() {
2093
- U.value = !1, R.value = null, A("onMidpointLeave"), L.value.style.chart.midpoints.selectedEdge.animated === !0 && (Z.value = null, en());
2073
+ function X() {
2074
+ H.value = !1, z.value = null, j("onMidpointLeave"), R.value.style.chart.midpoints.selectedEdge.animated === !0 && (Y.value = null, Z());
2094
2075
  }
2095
- async function Wt(e) {
2096
- if (A("onNodeClick", e), !L.value.style.chart.nodes.tooltip.showOnClick) return;
2097
- let t = G.value;
2076
+ async function Kt(e) {
2077
+ if (j("onNodeClick", e), !R.value.style.chart.nodes.tooltip.showOnClick) return;
2078
+ let t = W.value;
2098
2079
  if (!t) return;
2099
2080
  let n = t.createSVGPoint();
2100
2081
  n.x = e.x, n.y = e.y;
2101
2082
  let r = t.getScreenCTM();
2102
2083
  if (!r) return;
2103
- let i = n.matrixTransform(r), a = L.value.style.chart.layout.nodeWidth, o = L.value.style.chart.layout.nodeHeight, s = r.a, c = r.d, l = a * s, u = o * c;
2104
- tt.value = {
2084
+ 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;
2085
+ Qe.value = {
2105
2086
  x: l / 2,
2106
2087
  y: u / 2
2107
- }, et.value = {
2088
+ }, Ze.value = {
2108
2089
  x: i.x,
2109
2090
  y: i.y
2110
- }, V.value = e, B.value = !0, await xe(), Ht();
2091
+ }, $e.value = e, V.value = !0, await be(), Wt();
2111
2092
  }
2112
- function Gt() {
2113
- B.value = !1, V.value = null;
2093
+ function qt() {
2094
+ V.value = !1, $e.value = null;
2114
2095
  }
2115
- function Kt(e) {
2116
- if (!(B.value || U.value)) return;
2117
- let t = H.value;
2096
+ function Jt(e) {
2097
+ if (!(V.value || H.value)) return;
2098
+ let t = et.value;
2118
2099
  if (t && t.contains(e.target)) return;
2119
- let n = z.value;
2100
+ let n = Ye.value;
2120
2101
  if (n && n.contains(e.target)) return;
2121
- let r = G.value;
2102
+ let r = W.value;
2122
2103
  if (r && r.contains(e.target)) {
2123
2104
  let t = e.target.closest(".vue-ui-dag-node"), n = e.target.closest(".vue-ui-dag-edge-midpoint");
2124
2105
  if (t || n) return;
2125
2106
  }
2126
- Gt(), Q(), qe.value || kn();
2107
+ qt(), X(), We.value || On();
2127
2108
  }
2128
- function qt(e) {
2129
- e.key === "Escape" && (B.value && Gt(), U.value && Q());
2109
+ function Yt(e) {
2110
+ e.key === "Escape" && (V.value && qt(), H.value && X());
2130
2111
  }
2131
- Te(() => {
2132
- document.addEventListener("mousedown", Kt), document.addEventListener("keydown", qt);
2133
- }), we(() => {
2134
- document.removeEventListener("mousedown", Kt), document.removeEventListener("keydown", qt), N.value && (P.value && N.value.unobserve(P.value), N.value.disconnect());
2112
+ we(() => {
2113
+ document.addEventListener("mousedown", Jt), document.addEventListener("keydown", Yt);
2114
+ }), Ce(() => {
2115
+ document.removeEventListener("mousedown", Jt), document.removeEventListener("keydown", Yt), P.value && (F.value && P.value.unobserve(F.value), P.value.disconnect());
2135
2116
  });
2136
- function Jt() {
2137
- if (!L.value.responsive) {
2138
- N.value && (P.value && N.value.unobserve(P.value), N.value.disconnect(), N.value = null, P.value = null);
2117
+ function Xt() {
2118
+ if (!R.value.responsive) {
2119
+ P.value && (F.value && P.value.unobserve(F.value), P.value.disconnect(), P.value = null, F.value = null);
2139
2120
  return;
2140
2121
  }
2141
2122
  let e = ie(() => {
2142
- if (!j.value) return;
2123
+ if (!M.value) return;
2143
2124
  let { width: e, height: t } = ae({
2144
- chart: j.value,
2145
- title: L.value.style.chart.title.text ? Ie.value : null,
2146
- legend: L.value.style.chart.controls.show ? Re.value?.$el : null,
2147
- source: Le.value
2125
+ chart: M.value,
2126
+ title: R.value.style.chart.title.text ? Fe.value : null,
2127
+ legend: R.value.style.chart.controls.show ? Le.value?.$el : null,
2128
+ source: Ie.value
2148
2129
  });
2149
2130
  requestAnimationFrame(() => {
2150
- Ye.value = Math.max(.1, e), Xe.value = Math.max(.1, t - 12);
2131
+ Ke.value = Math.max(.1, e), qe.value = Math.max(.1, t - 12);
2151
2132
  });
2152
2133
  });
2153
- N.value && (P.value && N.value.unobserve(P.value), N.value.disconnect()), N.value = new ResizeObserver(e), P.value = j.value ? j.value.parentNode : null, P.value && N.value.observe(P.value), e();
2134
+ 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();
2154
2135
  }
2155
- function Yt(e, t = {}) {
2136
+ function Zt(e, t = {}) {
2156
2137
  let { direction: n = -1, mode: r = "oneLapNearest", dasharray: i = null } = t;
2157
- if (!e || typeof e.getTotalLength != "function") return ft.value && console.warn("VueUiDag @getIdealDashoffsetDelta: invalid path element", e), 0;
2138
+ if (!e || typeof e.getTotalLength != "function") return dt.value && console.warn("VueUiDag @getIdealDashoffsetDelta: invalid path element", e), 0;
2158
2139
  let a = e.getTotalLength(), o = d(i ?? e.getAttribute("stroke-dasharray") ?? (typeof getComputedStyle == "function" ? getComputedStyle(e).strokeDasharray : ""));
2159
2140
  if (!Number.isFinite(o) || o <= 0) return n * a;
2160
2141
  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;
@@ -2167,26 +2148,26 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
2167
2148
  return t.length % 2 == 1 ? n * 2 : n;
2168
2149
  }
2169
2150
  }
2170
- let Xt = w(/* @__PURE__ */ new Map()), Zt = w(/* @__PURE__ */ new Map());
2171
- function Qt(e) {
2151
+ let Qt = T(/* @__PURE__ */ new Map()), $t = T(/* @__PURE__ */ new Map());
2152
+ function en(e) {
2172
2153
  return function(t) {
2173
- t ? Xt.value.set(e, t) : Xt.value.delete(e);
2154
+ t ? Qt.value.set(e, t) : Qt.value.delete(e);
2174
2155
  };
2175
2156
  }
2176
- function $t() {
2177
- Zt.value.forEach((e) => {
2157
+ function tn() {
2158
+ $t.value.forEach((e) => {
2178
2159
  try {
2179
2160
  e.cancel();
2180
2161
  } catch {}
2181
- }), Zt.value.clear();
2162
+ }), $t.value.clear();
2182
2163
  }
2183
- function en() {
2184
- $t();
2185
- let e = J.value?.edges ?? [];
2164
+ function Z() {
2165
+ tn();
2166
+ let e = K.value?.edges ?? [];
2186
2167
  if (!e.length) return;
2187
- let t = L.value.style.chart.edges.animations, n = Number(t.referenceDistance) > 0 ? Number(t.referenceDistance) : 24;
2168
+ let t = R.value.style.chart.edges.animations, n = Number(t.referenceDistance) > 0 ? Number(t.referenceDistance) : 24;
2188
2169
  e.forEach((e) => {
2189
- let r = L.value.style.chart.midpoints.selectedEdge.animated === !0 && Z.value != null && e.id === Z.value, i = !!e?.original?.animated || !!e?.animated || r, a = Xt.value.get(e.id);
2170
+ let r = R.value.style.chart.midpoints.selectedEdge.animated === !0 && Y.value != null && e.id === Y.value, i = !!e?.original?.animated || !!e?.animated || r, a = Qt.value.get(e.id);
2190
2171
  if (!a) return;
2191
2172
  if (!i) {
2192
2173
  a.style.strokeDasharray = "0", a.style.strokeDashoffset = "0";
@@ -2194,7 +2175,7 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
2194
2175
  }
2195
2176
  let o = e?.original?.dasharray ?? t.dasharray;
2196
2177
  a.style.strokeDasharray = String(o), a.style.strokeDashoffset = "0";
2197
- let s = ![void 0, null].includes(e?.original?.animationDirection), c = ![void 0, null].includes(t.animationDirection), l = Yt(a, {
2178
+ let s = ![void 0, null].includes(e?.original?.animationDirection), c = ![void 0, null].includes(t.animationDirection), l = Zt(a, {
2198
2179
  direction: s ? Number(e.original.animationDirection) : c ? Number(t.animationDirection) : -1,
2199
2180
  mode: "oneLapNearest",
2200
2181
  dasharray: String(o)
@@ -2203,21 +2184,21 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
2203
2184
  iterations: Infinity,
2204
2185
  easing: "linear"
2205
2186
  });
2206
- Zt.value.set(e.id, m);
2187
+ $t.value.set(e.id, m);
2207
2188
  });
2208
2189
  }
2209
- ke(() => J.value && J.value.edges, async () => {
2210
- await xe(), en();
2190
+ Oe(() => K.value && K.value.edges, async () => {
2191
+ await be(), Z();
2211
2192
  }, {
2212
2193
  deep: !0,
2213
2194
  immediate: !0
2214
- }), we(() => {
2215
- $t();
2195
+ }), Ce(() => {
2196
+ tn();
2216
2197
  });
2217
- async function tn({ scale: e = 2 } = {}) {
2218
- if (!j.value) return;
2219
- let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await te({
2220
- domElement: j.value,
2198
+ async function nn({ scale: e = 2 } = {}) {
2199
+ if (!M.value) return;
2200
+ let { width: t, height: n } = M.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await te({
2201
+ domElement: M.value,
2221
2202
  base64: !0,
2222
2203
  img: !0,
2223
2204
  scale: e
@@ -2225,132 +2206,121 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
2225
2206
  return {
2226
2207
  imageUri: i,
2227
2208
  base64: a,
2228
- title: L.value.style.chart.title.text ?? "vue-ui-dag",
2209
+ title: R.value.style.chart.title.text ?? "vue-ui-dag",
2229
2210
  width: t,
2230
2211
  height: n,
2231
2212
  aspectRatio: r
2232
2213
  };
2233
2214
  }
2234
- let nn = _(() => {
2235
- let e = Number(L.value.style.chart.layout.nodeHeight);
2236
- return Number.isFinite(e) && e > 0 ? e / L.value.style.chart.backgroundPattern.spacingRatio : 12;
2237
- }), rn = _(() => nn.value * (L.value.style.chart.backgroundPattern.dotRadiusRatio / 100)), $ = w(null), an = null, on = 0;
2238
- function sn(e) {
2239
- an &&= (clearTimeout(an), null), $.value !== e && ($.value = e, (L.value.style.chart.nodes.selected.downstreamEdges.animated === !0 || L.value.style.chart.nodes.selected.upstreamEdges.animated === !0) && en());
2240
- }
2215
+ let rn = _(() => {
2216
+ let e = Number(R.value.style.chart.layout.nodeHeight);
2217
+ return Number.isFinite(e) && e > 0 ? e / R.value.style.chart.backgroundPattern.spacingRatio : 12;
2218
+ }), an = _(() => rn.value * (R.value.style.chart.backgroundPattern.dotRadiusRatio / 100)), Q = T(null), on = null, sn = 0;
2241
2219
  function cn(e) {
2242
- Ke.value = "pointer", Z.value = null, sn(e);
2220
+ on &&= (clearTimeout(on), null), Q.value !== e && (Q.value = e, (R.value.style.chart.nodes.selected.downstreamEdges.animated === !0 || R.value.style.chart.nodes.selected.upstreamEdges.animated === !0) && Z());
2243
2221
  }
2244
- async function ln(e) {
2245
- Ke.value = "pointer", $.value = null, await Ut(e);
2222
+ function ln(e) {
2223
+ Ue.value = "pointer", Y.value = null, cn(e);
2246
2224
  }
2247
- function un(e) {
2248
- let t = ++on;
2249
- an && clearTimeout(an), an = setTimeout(() => {
2250
- t === on && $.value === e && ($.value = null, (L.value.style.chart.nodes.selected.downstreamEdges.animated === !0 || L.value.style.chart.nodes.selected.upstreamEdges.animated === !0) && en());
2251
- }, 20);
2225
+ async function un(e) {
2226
+ Ue.value = "pointer", Q.value = null, await Gt(e);
2252
2227
  }
2253
2228
  function dn(e) {
2254
- let t = e.from === $.value, n = e.to === $.value, r = I.value === "midpoint" && F.value === e.id, i = Z.value === e.id || R.value?.id === e.id || r, a = e.original.color ?? L.value.style.chart.edges.stroke;
2255
- return i && L.value.style.chart.midpoints.selectedEdge.stroke != null ? a = L.value.style.chart.midpoints.selectedEdge.stroke : t && L.value.style.chart.nodes.selected.downstreamEdges.stroke != null ? a = L.value.style.chart.nodes.selected.downstreamEdges.stroke : n && L.value.style.chart.nodes.selected.upstreamEdges.stroke != null && (a = L.value.style.chart.nodes.selected.upstreamEdges.stroke), t && L.value.style.chart.nodes.selected.downstreamEdges.animated === !0 || n && L.value.style.chart.nodes.selected.upstreamEdges.animated === !0 || r && L.value.style.chart.midpoints.selectedEdge.animated === !0 ? e.animated = !0 : e.animated = (J.value?.edges.find((t) => t.id === e.id))?.original?.animated ?? !1, {
2229
+ let t = ++sn;
2230
+ on && clearTimeout(on), on = setTimeout(() => {
2231
+ t === sn && Q.value === e && (Q.value = null, (R.value.style.chart.nodes.selected.downstreamEdges.animated === !0 || R.value.style.chart.nodes.selected.upstreamEdges.animated === !0) && Z());
2232
+ }, 20);
2233
+ }
2234
+ function fn(e) {
2235
+ let t = e.from === Q.value, n = e.to === Q.value, r = L.value === "midpoint" && I.value === e.id, i = Y.value === e.id || z.value?.id === e.id || r, a = e.original.color ?? R.value.style.chart.edges.stroke;
2236
+ 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 : (K.value?.edges.find((t) => t.id === e.id))?.original?.animated ?? !1, {
2256
2237
  d: e.pathData,
2257
2238
  fill: "none",
2258
2239
  stroke: a,
2259
- "stroke-width": L.value.style.chart.edges.strokeWidth * (i || e.from === $.value ? 2 : 1),
2240
+ "stroke-width": R.value.style.chart.edges.strokeWidth * (i || e.from === Q.value ? 2 : 1),
2260
2241
  "stroke-linecap": "round",
2261
2242
  "stroke-linejoin": "round"
2262
2243
  };
2263
2244
  }
2264
- function fn(e) {
2265
- return I.value === "node" && F.value === e;
2266
- }
2267
2245
  function pn(e) {
2268
- let t = $.value === e.id, n = I.value === "node" && F.value === e.id, r = t || n, i = r && L.value.style.chart.nodes.selected.backgroundColor != null ? L.value.style.chart.nodes.selected.backgroundColor : e.original.backgroundColor, a = r && L.value.style.chart.nodes.selected.stroke != null ? L.value.style.chart.nodes.selected.stroke : L.value.style.chart.nodes.stroke, o = r && L.value.style.chart.nodes.selected.strokeWidth != null ? L.value.style.chart.nodes.selected.strokeWidth : L.value.style.chart.nodes.strokeWidth;
2246
+ return L.value === "node" && I.value === e;
2247
+ }
2248
+ function mn(e) {
2249
+ let t = Q.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;
2269
2250
  return {
2270
2251
  x: e.x - e.width / 2,
2271
2252
  y: e.y - e.height / 2,
2272
2253
  width: e.width,
2273
2254
  height: e.height,
2274
- rx: L.value.style.chart.nodes.borderRadius,
2255
+ rx: R.value.style.chart.nodes.borderRadius,
2275
2256
  fill: i,
2276
2257
  stroke: a,
2277
2258
  "stroke-width": o
2278
2259
  };
2279
2260
  }
2280
- function mn(e) {
2281
- let t = e.from === $.value, n = e.to === $.value, r = I.value === "midpoint" && F.value === e.id, i = Z.value === e.id || R.value?.id === e.id || r, a = e.original.color ?? L.value.style.chart.edges.stroke;
2282
- return i && L.value.style.chart.midpoints.selectedEdge.stroke != null ? a = L.value.style.chart.midpoints.selectedEdge.stroke : t && L.value.style.chart.nodes.selected.downstreamEdges.stroke != null ? a = L.value.style.chart.nodes.selected.downstreamEdges.stroke : n && L.value.style.chart.nodes.selected.upstreamEdges.stroke != null && (a = L.value.style.chart.nodes.selected.upstreamEdges.stroke), {
2283
- cx: e.midpoint.x,
2284
- cy: e.midpoint.y,
2285
- r: L.value.style.chart.midpoints.radius,
2286
- fill: r ? L.value.style.chart.midpoints.selectedEdge.stroke ?? L.value.style.chart.midpoints.fill : L.value.style.chart.midpoints.fill,
2261
+ function hn(e) {
2262
+ let t = e.from === Q.value, n = e.to === Q.value, r = L.value === "midpoint" && I.value === e.id, i = Y.value === e.id || z.value?.id === e.id || r, a = e.original.color ?? R.value.style.chart.edges.stroke;
2263
+ 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), {
2264
+ cx: e?.midpoint?.x,
2265
+ cy: e?.midpoint?.y,
2266
+ r: R.value.style.chart.midpoints.radius,
2267
+ fill: r ? R.value.style.chart.midpoints.selectedEdge.stroke ?? R.value.style.chart.midpoints.fill : R.value.style.chart.midpoints.fill,
2287
2268
  stroke: a,
2288
- "stroke-width": L.value.style.chart.edges.strokeWidth * (i || e.from === $.value ? 2 : 1)
2269
+ "stroke-width": R.value.style.chart.edges.strokeWidth * (i || e.from === Q.value ? 2 : 1)
2289
2270
  };
2290
2271
  }
2291
- function hn(e) {
2292
- let t = e.from === $.value, n = e.to === $.value, r = I.value === "midpoint" && F.value === e.id, i = Z.value === e.id || R.value?.id === e.id || r, a = e.color ?? e.original?.color ?? L.value.style.chart.edges.stroke;
2293
- return i && L.value.style.chart.midpoints.selectedEdge.stroke != null ? a = L.value.style.chart.midpoints.selectedEdge.stroke : t && L.value.style.chart.nodes.selected.downstreamEdges.stroke != null ? a = L.value.style.chart.nodes.selected.downstreamEdges.stroke : n && L.value.style.chart.nodes.selected.upstreamEdges.stroke != null && (a = L.value.style.chart.nodes.selected.upstreamEdges.stroke), a;
2294
- }
2295
2272
  function gn(e) {
2296
- return `${wt}-${String(e).replace(/[^a-zA-Z0-9_-]/g, "_")}`;
2273
+ let t = e.from === Q.value, n = e.to === Q.value, r = L.value === "midpoint" && I.value === e.id, i = Y.value === e.id || z.value?.id === e.id || r, a = e.color ?? e.original?.color ?? R.value.style.chart.edges.stroke;
2274
+ 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;
2297
2275
  }
2298
- function _n() {
2299
- return J.value;
2276
+ function _n(e) {
2277
+ return `${Et}-${String(e).replace(/[^a-zA-Z0-9_-]/g, "_")}`;
2300
2278
  }
2301
- function vn(e) {
2302
- if (e?.stage === "start") {
2303
- Ue.value = !0;
2304
- return;
2305
- }
2306
- if (e?.stage === "end") {
2307
- Ue.value = !1;
2308
- return;
2309
- }
2310
- ht();
2279
+ function vn() {
2280
+ return K.value;
2311
2281
  }
2312
2282
  async function yn() {
2313
- if (A("copyAlt", {
2314
- config: L.value,
2315
- dataset: lt.value
2316
- }), !L.value.userOptions.callbacks.altCopy) {
2283
+ if (j("copyAlt", {
2284
+ config: R.value,
2285
+ dataset: ct.value
2286
+ }), !R.value.userOptions.callbacks.altCopy) {
2317
2287
  console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
2318
2288
  return;
2319
2289
  }
2320
- await Promise.resolve(L.value.userOptions.callbacks.altCopy({
2321
- config: L.value,
2322
- dataset: lt.value
2290
+ await Promise.resolve(R.value.userOptions.callbacks.altCopy({
2291
+ config: R.value,
2292
+ dataset: ct.value
2323
2293
  }));
2324
2294
  }
2325
- let bn = _(() => (J.value?.nodes ?? []).map((e) => ({
2295
+ let bn = _(() => (K.value?.nodes ?? []).map((e) => ({
2326
2296
  id: e.id,
2327
2297
  type: "node",
2328
2298
  x: e.x,
2329
2299
  y: e.y,
2330
2300
  label: e.label ?? e.id,
2331
2301
  raw: e
2332
- }))), xn = _(() => L.value.style.chart.midpoints.show ? (J.value?.edges ?? []).filter((e) => e?.midpoint).map((e) => ({
2302
+ }))), xn = _(() => R.value.style.chart.midpoints.show ? (K.value?.edges ?? []).filter((e) => e?.midpoint).map((e) => ({
2333
2303
  id: e.id,
2334
2304
  type: "midpoint",
2335
2305
  x: e.midpoint.x,
2336
2306
  y: e.midpoint.y,
2337
- label: `${Y(e.from)?.label ?? e.from} → ${Y(e.to)?.label ?? e.to}`,
2307
+ label: `${q(e.from)?.label ?? e.from} → ${q(e.to)?.label ?? e.to}`,
2338
2308
  raw: e
2339
- })) : []), Sn = _(() => [...bn.value, ...xn.value].sort((e, t) => e.x === t.x ? e.y - t.y : e.x - t.x)), Cn = _(() => {
2309
+ })) : []), $ = _(() => [...bn.value, ...xn.value].sort((e, t) => e.x === t.x ? e.y - t.y : e.x - t.x)), Sn = _(() => {
2340
2310
  let e = /* @__PURE__ */ new Map();
2341
- return Sn.value.forEach((t, n) => {
2311
+ return $.value.forEach((t, n) => {
2342
2312
  e.set(`${t.type}:${t.id}`, n);
2343
2313
  }), e;
2344
- }), wn = _(() => {
2345
- let e = J.value?.nodes ?? [], t = J.value?.edges ?? [];
2314
+ }), Cn = _(() => {
2315
+ let e = K.value?.nodes ?? [], t = K.value?.edges ?? [];
2346
2316
  return {
2347
2317
  headers: [
2348
- L.value.a11y?.translations?.node ?? "Node",
2349
- L.value.a11y?.translations?.parents ?? "Parents",
2350
- L.value.a11y?.translations?.children ?? "Children"
2318
+ R.value.a11y?.translations?.node ?? "Node",
2319
+ R.value.a11y?.translations?.parents ?? "Parents",
2320
+ R.value.a11y?.translations?.children ?? "Children"
2351
2321
  ],
2352
2322
  rows: e.map((e) => {
2353
- let n = t.filter((t) => t.to === e.id).map((e) => Y(e.from)?.label ?? e.from).join(", "), r = t.filter((t) => t.from === e.id).map((e) => Y(e.to)?.label ?? e.to).join(", ");
2323
+ let n = t.filter((t) => t.to === e.id).map((e) => q(e.from)?.label ?? e.from).join(", "), r = t.filter((t) => t.from === e.id).map((e) => q(e.to)?.label ?? e.to).join(", ");
2354
2324
  return [
2355
2325
  e.label ?? e.id,
2356
2326
  n || "—",
@@ -2359,138 +2329,138 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
2359
2329
  })
2360
2330
  };
2361
2331
  });
2362
- function Tn(e) {
2332
+ function wn(e) {
2363
2333
  return `${e.type}:${e.id}`;
2364
2334
  }
2365
- function En() {
2366
- return F.value == null || I.value == null ? null : Sn.value.find((e) => e.id === F.value && e.type === I.value) ?? null;
2335
+ function Tn() {
2336
+ return I.value == null || L.value == null ? null : $.value.find((e) => e.id === I.value && e.type === L.value) ?? null;
2367
2337
  }
2368
- async function Dn(e) {
2338
+ async function En(e) {
2369
2339
  if (e) {
2370
2340
  if (e.type === "node") {
2371
- Q();
2341
+ X();
2372
2342
  return;
2373
2343
  }
2374
- e.type === "midpoint" && (Gt(), await Ut(e.raw));
2344
+ e.type === "midpoint" && (qt(), await Gt(e.raw));
2375
2345
  }
2376
2346
  }
2377
- function On(e) {
2347
+ function Dn(e) {
2378
2348
  if (e) {
2379
- if (F.value = e.id, I.value = e.type, Ge.value = Cn.value.get(Tn(e)) ?? null, e.type === "node") {
2380
- sn(e.id), Z.value = null;
2349
+ if (I.value = e.id, L.value = e.type, He.value = Sn.value.get(wn(e)) ?? null, e.type === "node") {
2350
+ cn(e.id), Y.value = null;
2381
2351
  return;
2382
2352
  }
2383
- e.type === "midpoint" && ($.value = null, Z.value = e.id, L.value.style.chart.midpoints.selectedEdge.animated === !0 && en());
2353
+ e.type === "midpoint" && (Q.value = null, Y.value = e.id, R.value.style.chart.midpoints.selectedEdge.animated === !0 && Z());
2384
2354
  }
2385
2355
  }
2356
+ function On() {
2357
+ I.value = null, L.value = null, He.value = null, V.value || (Q.value = null), H.value || (Y.value = null, R.value.style.chart.midpoints.selectedEdge.animated === !0 && Z());
2358
+ }
2386
2359
  function kn() {
2387
- F.value = null, I.value = null, Ge.value = null, B.value || ($.value = null), U.value || (Z.value = null, L.value.style.chart.midpoints.selectedEdge.animated === !0 && en());
2360
+ We.value = !0, On();
2388
2361
  }
2389
2362
  function An() {
2390
- qe.value = !0, kn();
2363
+ We.value = !1, qt(), X(), On();
2391
2364
  }
2392
- function jn() {
2393
- qe.value = !1, Gt(), Q(), kn();
2394
- }
2395
- function Mn(e, t, n) {
2365
+ function jn(e, t, n) {
2396
2366
  let r = t.x - e.x, i = t.y - e.y;
2397
2367
  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);
2398
2368
  }
2399
- function Nn(e, t) {
2400
- let n = Sn.value.filter((t) => Tn(t) !== Tn(e));
2369
+ function Mn(e, t) {
2370
+ let n = $.value.filter((t) => wn(t) !== wn(e));
2401
2371
  if (!n.length) return null;
2402
2372
  let r = null, i = Infinity;
2403
2373
  return n.forEach((n) => {
2404
- let a = Mn(e, n, t);
2374
+ let a = jn(e, n, t);
2405
2375
  a < i && (i = a, r = n);
2406
- }), r || (t === "right" || t === "down" ? Sn.value[0] ?? null : Sn.value[Sn.value.length - 1] ?? null);
2376
+ }), r || (t === "right" || t === "down" ? $.value[0] ?? null : $.value[$.value.length - 1] ?? null);
2407
2377
  }
2408
- async function Pn(e) {
2409
- e && (Ke.value = "keyboard", e.type === "node" && (Q(), await Wt(e.raw)));
2378
+ async function Nn(e) {
2379
+ e && (Ue.value = "keyboard", e.type === "node" && (X(), await Kt(e.raw)));
2410
2380
  }
2411
- async function Fn(e) {
2412
- if (!G.value || W.value || document.activeElement !== G.value || !Sn.value.length) return;
2381
+ async function Pn(e) {
2382
+ if (!W.value || U.value || document.activeElement !== W.value || !$.value.length) return;
2413
2383
  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";
2414
2384
  if (!t && !n && !r && !i && !a && !o) return;
2415
2385
  if (e.preventDefault(), e.stopPropagation(), o) {
2416
- Gt(), Q(), kn();
2386
+ qt(), X(), On();
2417
2387
  return;
2418
2388
  }
2419
- let s = En();
2389
+ let s = Tn();
2420
2390
  if (a) {
2421
2391
  if (!s) return;
2422
- s.type === "node" && await Pn(s);
2392
+ s.type === "node" && await Nn(s);
2423
2393
  return;
2424
2394
  }
2425
2395
  if (!s) {
2426
- let e = Sn.value[0];
2396
+ let e = $.value[0];
2427
2397
  if (!e) return;
2428
- On(e), await Dn(e);
2398
+ Dn(e), await En(e);
2429
2399
  return;
2430
2400
  }
2431
2401
  let c = null;
2432
- n ? c = Nn(s, "right") : t ? c = Nn(s, "left") : i ? c = Nn(s, "down") : r && (c = Nn(s, "up")), c && (Gt(), Q(), On(c), await Dn(c));
2402
+ n ? c = Mn(s, "right") : t ? c = Mn(s, "left") : i ? c = Mn(s, "down") : r && (c = Mn(s, "up")), c && (qt(), X(), Dn(c), await En(c));
2433
2403
  }
2434
2404
  return i({
2435
- getData: _n,
2436
- getImage: tn,
2405
+ getData: vn,
2406
+ getImage: nn,
2437
2407
  generatePdf: mt,
2438
- generateSvg: yt,
2408
+ generateSvg: bt,
2439
2409
  generateImage: ht,
2440
- toggleAnnotator: It,
2441
- toggleFullscreen: Ft,
2442
- zoomIn: Lt,
2443
- zoomOut: Rt,
2444
- resetZoom: Ot,
2445
- switchDirection: Bt,
2410
+ toggleAnnotator: Rt,
2411
+ toggleFullscreen: Lt,
2412
+ zoomIn: zt,
2413
+ zoomOut: Bt,
2414
+ resetZoom: At,
2415
+ switchDirection: Ht,
2446
2416
  copyAlt: yn
2447
- }), (e, t) => (C(), y("div", {
2448
- class: Se(`vue-data-ui-component vue-ui-dag ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${L.value.responsive ? "vue-ui-dag-responsive" : ""}`),
2449
- id: `dag_${M.value}`,
2417
+ }), (e, t) => (w(), b("div", {
2418
+ class: xe(`vue-data-ui-component vue-ui-dag ${J.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${R.value.responsive ? "vue-ui-dag-responsive" : ""}`),
2419
+ id: `dag_${N.value}`,
2450
2420
  ref_key: "dagChart",
2451
- ref: j,
2452
- style: Ce({
2453
- fontFamily: L.value.style.fontFamily,
2454
- backgroundColor: L.value.style.chart.backgroundColor,
2421
+ ref: M,
2422
+ style: Se({
2423
+ fontFamily: R.value.style.fontFamily,
2424
+ backgroundColor: R.value.style.chart.backgroundColor,
2455
2425
  padding: "0.5rem"
2456
2426
  }),
2457
- onMouseenter: bt,
2458
- onMouseleave: xt
2427
+ onMouseenter: St,
2428
+ onMouseleave: Ct
2459
2429
  }, [
2460
- b("div", {
2461
- id: `chart-instructions-${M.value}`,
2430
+ x("div", {
2431
+ id: `chart-instructions-${N.value}`,
2462
2432
  class: "sr-only"
2463
- }, [b("p", null, De(L.value.a11y.translations.keyboardNavigation), 1)], 8, $n),
2464
- wn.value?.rows?.length ? (C(), he(oe, {
2433
+ }, [x("p", null, Ee(R.value.a11y.translations.keyboardNavigation), 1)], 8, $n),
2434
+ Cn.value?.rows?.length ? (w(), v(oe, {
2465
2435
  key: 0,
2466
- uid: M.value,
2467
- head: wn.value.headers,
2468
- body: wn.value.rows,
2469
- notice: L.value.a11y.translations.tableAvailable,
2470
- caption: L.value.a11y.translations.tableCaption
2436
+ uid: N.value,
2437
+ head: Cn.value.headers,
2438
+ body: Cn.value.rows,
2439
+ notice: R.value.a11y.translations.tableAvailable,
2440
+ caption: R.value.a11y.translations.tableCaption
2471
2441
  }, null, 8, [
2472
2442
  "uid",
2473
2443
  "head",
2474
2444
  "body",
2475
2445
  "notice",
2476
2446
  "caption"
2477
- ])) : v("", !0),
2478
- E(Ct) ? (C(), y("div", er, De(String(E(Ct))), 1)) : v("", !0),
2479
- L.value.userOptions.buttons.annotator ? (C(), he(E(Ae), {
2447
+ ])) : y("", !0),
2448
+ D(Tt) ? (w(), b("div", er, Ee(String(D(Tt))), 1)) : y("", !0),
2449
+ R.value.userOptions.buttons.annotator ? (w(), v(D(ke), {
2480
2450
  key: 2,
2481
- svgRef: E(G),
2482
- backgroundColor: L.value.style.chart.backgroundColor,
2483
- color: L.value.style.chart.color,
2484
- active: W.value,
2485
- isCursorPointer: Je.value,
2486
- onClose: It
2451
+ svgRef: D(W),
2452
+ backgroundColor: R.value.style.chart.backgroundColor,
2453
+ color: R.value.style.chart.color,
2454
+ active: U.value,
2455
+ isCursorPointer: Ge.value,
2456
+ onClose: Rt
2487
2457
  }, {
2488
- "annotator-action-close": D(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
2489
- "annotator-action-color": D(({ color: t }) => [T(e.$slots, "annotator-action-color", S(x({ color: t })), void 0, !0)]),
2490
- "annotator-action-draw": D(({ mode: t }) => [T(e.$slots, "annotator-action-draw", S(x({ mode: t })), void 0, !0)]),
2491
- "annotator-action-undo": D(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", S(x({ disabled: t })), void 0, !0)]),
2492
- "annotator-action-redo": D(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", S(x({ disabled: t })), void 0, !0)]),
2493
- "annotator-action-delete": D(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", S(x({ disabled: t })), void 0, !0)]),
2458
+ "annotator-action-close": O(() => [E(e.$slots, "annotator-action-close", {}, void 0, !0)]),
2459
+ "annotator-action-color": O(({ color: t }) => [E(e.$slots, "annotator-action-color", C(S({ color: t })), void 0, !0)]),
2460
+ "annotator-action-draw": O(({ mode: t }) => [E(e.$slots, "annotator-action-draw", C(S({ mode: t })), void 0, !0)]),
2461
+ "annotator-action-undo": O(({ disabled: t }) => [E(e.$slots, "annotator-action-undo", C(S({ disabled: t })), void 0, !0)]),
2462
+ "annotator-action-redo": O(({ disabled: t }) => [E(e.$slots, "annotator-action-redo", C(S({ disabled: t })), void 0, !0)]),
2463
+ "annotator-action-delete": O(({ disabled: t }) => [E(e.$slots, "annotator-action-delete", C(S({ disabled: t })), void 0, !0)]),
2494
2464
  _: 3
2495
2465
  }, 8, [
2496
2466
  "svgRef",
@@ -2498,47 +2468,47 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
2498
2468
  "color",
2499
2469
  "active",
2500
2470
  "isCursorPointer"
2501
- ])) : v("", !0),
2502
- L.value.userOptions.show && He.value && (E(ot) || E(it)) ? (C(), he(E(Me), {
2471
+ ])) : y("", !0),
2472
+ R.value.userOptions.show && Ve.value && (D(at) || D(rt)) ? (w(), v(D(je), {
2503
2473
  ref: "userOptionsRef",
2504
- key: `user_option_${Be.value}`,
2505
- backgroundColor: L.value.style.chart.backgroundColor,
2506
- color: L.value.style.chart.color,
2507
- isPrinting: E(pt),
2508
- isImaging: E(q),
2509
- uid: M.value,
2474
+ key: `user_option_${ze.value}`,
2475
+ backgroundColor: R.value.style.chart.backgroundColor,
2476
+ color: R.value.style.chart.color,
2477
+ isPrinting: D(ft),
2478
+ isImaging: D(pt),
2479
+ uid: N.value,
2510
2480
  hasTooltip: !1,
2511
2481
  hasTable: !1,
2512
2482
  hasXls: !1,
2513
2483
  hasLabel: !1,
2514
- hasPdf: L.value.userOptions.buttons.pdf,
2515
- hasImg: L.value.userOptions.buttons.img,
2516
- hasSvg: L.value.userOptions.buttons.svg,
2517
- hasFullscreen: L.value.userOptions.buttons.fullscreen,
2518
- hasAltCopy: L.value.userOptions.buttons.altCopy,
2519
- isFullscreen: X.value,
2520
- chartElement: j.value,
2521
- position: L.value.userOptions.position,
2522
- titles: { ...L.value.userOptions.buttonTitles },
2523
- hasAnnotator: L.value.userOptions.buttons.annotator,
2524
- isAnnotation: W.value,
2525
- callbacks: L.value.userOptions.callbacks,
2526
- printScale: L.value.userOptions.print.scale,
2527
- hasZoom: L.value.userOptions.buttons.zoom,
2528
- isZoom: Et.value,
2529
- isCursorPointer: Je.value,
2530
- onToggleFullscreen: Ft,
2531
- onGeneratePdf: E(mt),
2532
- onGenerateImage: vn,
2533
- onGenerateSvg: yt,
2534
- onToggleAnnotator: It,
2535
- onToggleZoom: Mt,
2484
+ hasPdf: R.value.userOptions.buttons.pdf,
2485
+ hasImg: R.value.userOptions.buttons.img,
2486
+ hasSvg: R.value.userOptions.buttons.svg,
2487
+ hasFullscreen: R.value.userOptions.buttons.fullscreen,
2488
+ hasAltCopy: R.value.userOptions.buttons.altCopy,
2489
+ isFullscreen: J.value,
2490
+ chartElement: M.value,
2491
+ position: R.value.userOptions.position,
2492
+ titles: { ...R.value.userOptions.buttonTitles },
2493
+ hasAnnotator: R.value.userOptions.buttons.annotator,
2494
+ isAnnotation: U.value,
2495
+ callbacks: R.value.userOptions.callbacks,
2496
+ printScale: R.value.userOptions.print.scale,
2497
+ hasZoom: R.value.userOptions.buttons.zoom,
2498
+ isZoom: Ot.value,
2499
+ isCursorPointer: Ge.value,
2500
+ onToggleFullscreen: Lt,
2501
+ onGeneratePdf: D(mt),
2502
+ onGenerateImage: D(xt),
2503
+ onGenerateSvg: D(bt),
2504
+ onToggleAnnotator: Rt,
2505
+ onToggleZoom: Pt,
2536
2506
  onCopyAlt: yn,
2537
- style: Ce({ visibility: E(ot) ? E(it) ? "visible" : "hidden" : "visible" })
2538
- }, ge({ _: 2 }, [
2507
+ style: Se({ visibility: D(at) ? D(rt) ? "visible" : "hidden" : "visible" })
2508
+ }, he({ _: 2 }, [
2539
2509
  e.$slots.menuIcon ? {
2540
2510
  name: "menuIcon",
2541
- fn: D(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", S(x({
2511
+ fn: O(({ isOpen: t, color: n }) => [E(e.$slots, "menuIcon", C(S({
2542
2512
  isOpen: t,
2543
2513
  color: n
2544
2514
  })), void 0, !0)]),
@@ -2546,22 +2516,22 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
2546
2516
  } : void 0,
2547
2517
  e.$slots.optionPdf ? {
2548
2518
  name: "optionPdf",
2549
- fn: D(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
2519
+ fn: O(() => [E(e.$slots, "optionPdf", {}, void 0, !0)]),
2550
2520
  key: "1"
2551
2521
  } : void 0,
2552
2522
  e.$slots.optionImg ? {
2553
2523
  name: "optionImg",
2554
- fn: D(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
2524
+ fn: O(() => [E(e.$slots, "optionImg", {}, void 0, !0)]),
2555
2525
  key: "2"
2556
2526
  } : void 0,
2557
2527
  e.$slots.optionSvg ? {
2558
2528
  name: "optionSvg",
2559
- fn: D(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
2529
+ fn: O(() => [E(e.$slots, "optionSvg", {}, void 0, !0)]),
2560
2530
  key: "3"
2561
2531
  } : void 0,
2562
2532
  e.$slots.optionFullscreen ? {
2563
2533
  name: "optionFullscreen",
2564
- fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", S(x({
2534
+ fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [E(e.$slots, "optionFullscreen", C(S({
2565
2535
  toggleFullscreen: t,
2566
2536
  isFullscreen: n
2567
2537
  })), void 0, !0)]),
@@ -2569,7 +2539,7 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
2569
2539
  } : void 0,
2570
2540
  e.$slots.optionAnnotator ? {
2571
2541
  name: "optionAnnotator",
2572
- fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", S(x({
2542
+ fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [E(e.$slots, "optionAnnotator", C(S({
2573
2543
  toggleAnnotator: t,
2574
2544
  isAnnotator: n
2575
2545
  })), void 0, !0)]),
@@ -2577,7 +2547,7 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
2577
2547
  } : void 0,
2578
2548
  e.$slots.optionZoom ? {
2579
2549
  name: "optionZoom",
2580
- fn: D(({ toggleZoom: t, isZoomLocked: n }) => [T(e.$slots, "optionZoom", S(x({
2550
+ fn: O(({ toggleZoom: t, isZoomLocked: n }) => [E(e.$slots, "optionZoom", C(S({
2581
2551
  toggleZoom: t,
2582
2552
  isZoomLocked: n
2583
2553
  })), void 0, !0)]),
@@ -2585,17 +2555,17 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
2585
2555
  } : void 0,
2586
2556
  e.$slots.optionAltCopy ? {
2587
2557
  name: "optionAltCopy",
2588
- fn: D(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", S(x({ altCopy: t })), void 0, !0)]),
2558
+ fn: O(({ altCopy: t }) => [E(e.$slots, "optionAltCopy", C(S({ altCopy: t })), void 0, !0)]),
2589
2559
  key: "7"
2590
2560
  } : void 0,
2591
2561
  e.$slots["custom-menu-before"] ? {
2592
2562
  name: "custom-menu-before",
2593
- fn: D(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
2563
+ fn: O(() => [E(e.$slots, "custom-menu-before", {}, void 0, !0)]),
2594
2564
  key: "8"
2595
2565
  } : void 0,
2596
2566
  e.$slots["custom-menu-after"] ? {
2597
2567
  name: "custom-menu-after",
2598
- fn: D(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
2568
+ fn: O(() => [E(e.$slots, "custom-menu-after", {}, void 0, !0)]),
2599
2569
  key: "9"
2600
2570
  } : void 0
2601
2571
  ]), 1032, [
@@ -2621,299 +2591,301 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
2621
2591
  "isZoom",
2622
2592
  "isCursorPointer",
2623
2593
  "onGeneratePdf",
2594
+ "onGenerateImage",
2595
+ "onGenerateSvg",
2624
2596
  "style"
2625
- ])) : v("", !0),
2626
- L.value.style.chart.title.text ? (C(), y("div", {
2597
+ ])) : y("", !0),
2598
+ R.value.style.chart.title.text ? (w(), b("div", {
2627
2599
  key: 4,
2628
2600
  ref_key: "chartTitle",
2629
- ref: Ie,
2601
+ ref: Fe,
2630
2602
  style: "width:100%;background:transparent;"
2631
- }, [(C(), he(ne, {
2632
- key: `title_${ze.value}`,
2603
+ }, [(w(), v(ne, {
2604
+ key: `title_${Re.value}`,
2633
2605
  config: {
2634
2606
  title: {
2635
2607
  cy: "dag-title",
2636
- ...L.value.style.chart.title
2608
+ ...R.value.style.chart.title
2637
2609
  },
2638
2610
  subtitle: {
2639
2611
  cy: "dag-subtitle",
2640
- ...L.value.style.chart.title.subtitle
2612
+ ...R.value.style.chart.title.subtitle
2641
2613
  }
2642
2614
  }
2643
- }, null, 8, ["config"]))], 512)) : v("", !0),
2644
- L.value.style.chart.controls.position === "top" && !E(ct) && L.value.style.chart.controls.show ? (C(), he(ue, {
2615
+ }, null, 8, ["config"]))], 512)) : y("", !0),
2616
+ R.value.style.chart.controls.position === "top" && !D(st) && R.value.style.chart.controls.show ? (w(), v(ue, {
2645
2617
  key: 5,
2646
2618
  ref_key: "zoomControls",
2647
- ref: Re,
2648
- config: L.value,
2649
- scale: E(At),
2650
- isFullscreen: X.value,
2619
+ ref: Le,
2620
+ config: R.value,
2621
+ scale: D(Mt),
2622
+ isFullscreen: J.value,
2651
2623
  withDirection: "",
2652
- onZoomIn: Lt,
2653
- onZoomOut: Rt,
2654
- onResetZoom: t[0] ||= () => E(Ot)(!0),
2655
- onSwitchDirection: Bt
2624
+ onZoomIn: zt,
2625
+ onZoomOut: Bt,
2626
+ onResetZoom: t[0] ||= () => D(At)(!0),
2627
+ onSwitchDirection: Ht
2656
2628
  }, null, 8, [
2657
2629
  "config",
2658
2630
  "scale",
2659
2631
  "isFullscreen"
2660
- ])) : v("", !0),
2661
- b("div", tr, [E(J) ? (C(), y("svg", {
2632
+ ])) : y("", !0),
2633
+ x("div", tr, [D(K) ? (w(), b("svg", {
2662
2634
  key: 0,
2663
2635
  ref_key: "svgRef",
2664
- ref: G,
2665
- class: Se({
2636
+ ref: W,
2637
+ class: xe({
2666
2638
  "vue-ui-dag-svg": !0,
2667
- "vue-data-ui-loading": E(ct)
2639
+ "vue-data-ui-loading": D(st)
2668
2640
  }),
2669
- viewBox: Pt.value,
2670
- xmlns: E(s),
2671
- style: Ce({
2672
- backgroundColor: L.value.style.chart.backgroundColor,
2641
+ viewBox: It.value,
2642
+ xmlns: D(s),
2643
+ style: Se({
2644
+ backgroundColor: R.value.style.chart.backgroundColor,
2673
2645
  height: "100%",
2674
2646
  width: "100%"
2675
2647
  }),
2676
2648
  tabindex: "0",
2677
- "aria-describedby": `chart-instructions-${M.value}`,
2678
- onFocus: An,
2679
- onBlur: jn,
2680
- onKeydown: Fn
2649
+ "aria-describedby": `chart-instructions-${N.value}`,
2650
+ onFocus: kn,
2651
+ onBlur: An,
2652
+ onKeydown: Pn
2681
2653
  }, [
2682
- ve(E(Ne)),
2683
- L.value.style.chart.backgroundPattern.show ? (C(), y("defs", rr, [b("pattern", {
2684
- id: `dag_bg_pattern_${M.value}`,
2654
+ _e(D(Me)),
2655
+ R.value.style.chart.backgroundPattern.show ? (w(), b("defs", rr, [x("pattern", {
2656
+ id: `dag_bg_pattern_${N.value}`,
2685
2657
  patternUnits: "userSpaceOnUse",
2686
- width: nn.value,
2687
- height: nn.value
2688
- }, [T(e.$slots, "background-pattern", S(x({
2689
- x: nn.value / 2,
2690
- y: nn.value / 2,
2691
- color: L.value.style.chart.backgroundPattern.dotColor
2692
- })), () => [b("circle", {
2693
- cx: nn.value / 2,
2694
- cy: nn.value / 2,
2695
- r: rn.value,
2696
- fill: L.value.style.chart.backgroundPattern.dotColor
2697
- }, null, 8, ar)], !0)], 8, ir)])) : v("", !0),
2698
- L.value.style.chart.backgroundPattern.show ? (C(), y("rect", {
2658
+ width: rn.value,
2659
+ height: rn.value
2660
+ }, [E(e.$slots, "background-pattern", C(S({
2661
+ x: rn.value / 2,
2662
+ y: rn.value / 2,
2663
+ color: R.value.style.chart.backgroundPattern.dotColor
2664
+ })), () => [x("circle", {
2665
+ cx: rn.value / 2,
2666
+ cy: rn.value / 2,
2667
+ r: an.value,
2668
+ fill: R.value.style.chart.backgroundPattern.dotColor
2669
+ }, null, 8, ar)], !0)], 8, ir)])) : y("", !0),
2670
+ R.value.style.chart.backgroundPattern.show ? (w(), b("rect", {
2699
2671
  key: 1,
2700
- x: E(Dt)?.x ?? 0,
2701
- y: E(Dt)?.y ?? 0,
2702
- width: E(Dt)?.width ?? 0,
2703
- height: E(Dt)?.height ?? 0,
2704
- fill: `url(#dag_bg_pattern_${M.value})`,
2705
- style: Ce({
2672
+ x: D(kt)?.x ?? 0,
2673
+ y: D(kt)?.y ?? 0,
2674
+ width: D(kt)?.width ?? 0,
2675
+ height: D(kt)?.height ?? 0,
2676
+ fill: `url(#dag_bg_pattern_${N.value})`,
2677
+ style: Se({
2706
2678
  pointerEvents: "none",
2707
- opacity: L.value.style.chart.backgroundPattern.opacity
2679
+ opacity: R.value.style.chart.backgroundPattern.opacity
2708
2680
  })
2709
- }, null, 12, or)) : v("", !0),
2710
- E(J).arrowShape === "undirected" ? v("", !0) : (C(), y("defs", sr, [(C(!0), y(fe, null, Ee(E(J).edges, (e) => (C(), y("marker", {
2681
+ }, null, 12, or)) : y("", !0),
2682
+ D(K).arrowShape === "undirected" ? y("", !0) : (w(), b("defs", sr, [(w(!0), b(fe, null, Te(D(K).edges, (e) => (w(), b("marker", {
2711
2683
  key: `marker_${e.id}`,
2712
- id: gn(e.id),
2713
- markerWidth: E(J).arrowSize,
2714
- markerHeight: E(J).arrowSize,
2715
- refX: E(J).arrowSize - 3,
2716
- refY: E(J).arrowSize / 2,
2684
+ id: _n(e.id),
2685
+ markerWidth: D(K).arrowSize,
2686
+ markerHeight: D(K).arrowSize,
2687
+ refX: D(K).arrowSize - 3,
2688
+ refY: D(K).arrowSize / 2,
2717
2689
  orient: "auto",
2718
2690
  markerUnits: "strokeWidth"
2719
- }, [E(J).arrowShape === "normal" ? (C(), y("path", {
2691
+ }, [D(K).arrowShape === "normal" ? (w(), b("path", {
2720
2692
  key: 0,
2721
- d: `M 0 0 L ${E(J).arrowSize} ${E(J).arrowSize / 2} L 0 ${E(J).arrowSize} Z`,
2722
- fill: hn(e),
2723
- stroke: hn(e),
2693
+ d: `M 0 0 L ${D(K).arrowSize} ${D(K).arrowSize / 2} L 0 ${D(K).arrowSize} Z`,
2694
+ fill: gn(e),
2695
+ stroke: gn(e),
2724
2696
  "stroke-width": "0",
2725
2697
  style: { transition: "stroke 0.2s ease-in-out,\n fill 0.2s ease-in-out,\n stroke-width 0.2s ease-in-out" }
2726
- }, null, 8, lr)) : (C(), y("path", {
2698
+ }, null, 8, lr)) : (w(), b("path", {
2727
2699
  key: 1,
2728
- d: `M 0 0 L ${E(J).arrowSize} ${E(J).arrowSize / 2} L 0 ${E(J).arrowSize} L ${E(J).arrowSize / 3} ${E(J).arrowSize / 2} Z`,
2729
- fill: hn(e),
2730
- stroke: hn(e),
2700
+ d: `M 0 0 L ${D(K).arrowSize} ${D(K).arrowSize / 2} L 0 ${D(K).arrowSize} L ${D(K).arrowSize / 3} ${D(K).arrowSize / 2} Z`,
2701
+ fill: gn(e),
2702
+ stroke: gn(e),
2731
2703
  "stroke-width": "0",
2732
2704
  style: { transition: "stroke 0.2s ease-in-out,\n fill 0.2s ease-in-out,\n stroke-width 0.2s ease-in-out" }
2733
2705
  }, null, 8, ur))], 8, cr))), 128))])),
2734
- b("g", dr, [(C(!0), y(fe, null, Ee(E(J).edges, (e) => (C(), y(fe, { key: e.id }, [b("path", be({
2706
+ x("g", dr, [(w(!0), b(fe, null, Te(D(K).edges, (e) => (w(), b(fe, { key: e.id }, [x("path", ye({
2735
2707
  "data-cy-edge": "",
2736
2708
  ref_for: !0,
2737
- ref: Qt(e.id)
2738
- }, { ref_for: !0 }, dn(e), { style: {
2709
+ ref: en(e.id)
2710
+ }, { ref_for: !0 }, fn(e), { style: {
2739
2711
  "pointer-events": "none",
2740
2712
  transition: "stroke-width 0.2s ease-in-out,\n stroke 0.2s ease-in-out"
2741
- } }), null, 16), L.value.style.chart.midpoints.show ? (C(), y("circle", be({
2713
+ } }), null, 16), R.value.style.chart.midpoints.show ? (w(), b("circle", ye({
2742
2714
  key: 0,
2743
2715
  "data-cy-midpoint": "",
2744
2716
  class: "vue-ui-dag-edge-midpoint",
2745
2717
  "data-a11y-midpoint-id": e.id
2746
- }, { ref_for: !0 }, mn(e), {
2747
- "aria-label": `${Y(e.from)?.label ?? e.from} to ${Y(e.to)?.label ?? e.to}`,
2718
+ }, { ref_for: !0 }, hn(e), {
2719
+ "aria-label": `${q(e.from)?.label ?? e.from} to ${q(e.to)?.label ?? e.to}`,
2748
2720
  style: { transition: "stroke-width 0.2s ease-in-out,\n stroke 0.2s ease-in-out,\n fill 0.2s ease-in-out" },
2749
- onMouseenter: (t) => ln(e),
2750
- onMouseleave: Q
2751
- }), null, 16, fr)) : v("", !0)], 64))), 128))]),
2752
- b("g", pr, [(C(!0), y(fe, null, Ee(E(J).nodes, (t) => (C(), y("g", {
2721
+ onMouseenter: (t) => un(e),
2722
+ onMouseleave: X
2723
+ }), null, 16, fr)) : y("", !0)], 64))), 128))]),
2724
+ x("g", pr, [(w(!0), b(fe, null, Te(D(K).nodes, (t) => (w(), b("g", {
2753
2725
  key: t.id,
2754
2726
  class: "vue-ui-dag-node",
2755
- onClick: je((e) => L.value.style.chart.nodes.tooltip.showOnClick && Wt(t), ["stop"]),
2756
- onMouseenter: (e) => cn(t.id),
2757
- onMouseleave: (e) => un(t.id)
2758
- }, [e.$slots.node ? v("", !0) : (C(), y("rect", be({
2727
+ onClick: Ae((e) => R.value.style.chart.nodes.tooltip.showOnClick && Kt(t), ["stop"]),
2728
+ onMouseenter: (e) => ln(t.id),
2729
+ onMouseleave: (e) => dn(t.id)
2730
+ }, [e.$slots.node ? y("", !0) : (w(), b("rect", ye({
2759
2731
  key: 0,
2760
2732
  "data-cy-node": ""
2761
- }, { ref_for: !0 }, pn(t), {
2733
+ }, { ref_for: !0 }, mn(t), {
2762
2734
  "data-a11y-node-id": t.id,
2763
2735
  "aria-label": `${t.label ?? t.id}`,
2764
2736
  style: {
2765
- cursor: L.value.style.chart.nodes.tooltip.showOnClick && Je.value ? "pointer" : "default",
2737
+ cursor: R.value.style.chart.nodes.tooltip.showOnClick && Ge.value ? "pointer" : "default",
2766
2738
  transition: "stroke 0.2s ease-in-out, stroke-width 0.2s ease-in-out, fill 0.2s ease-in-out"
2767
2739
  }
2768
- }), null, 16, hr)), e.$slots.node ? (C(), y("foreignObject", {
2740
+ }), null, 16, hr)), e.$slots.node ? (w(), b("foreignObject", {
2769
2741
  key: 1,
2770
2742
  x: t.x - t.width / 2,
2771
2743
  y: t.y - t.height / 2,
2772
2744
  width: t.width,
2773
2745
  height: t.height,
2774
2746
  style: { overflow: "visible" }
2775
- }, [T(e.$slots, "node", be({ ref_for: !0 }, {
2747
+ }, [E(e.$slots, "node", ye({ ref_for: !0 }, {
2776
2748
  node: t,
2777
- orientation: K.value
2778
- }), void 0, !0)], 8, gr)) : v("", !0)], 40, mr))), 128))]),
2779
- b("g", _r, [(C(!0), y(fe, null, Ee(E(J).edges, (e) => (C(), y("path", {
2749
+ orientation: G.value
2750
+ }), void 0, !0)], 8, gr)) : y("", !0)], 40, mr))), 128))]),
2751
+ x("g", _r, [(w(!0), b(fe, null, Te(D(K).edges, (e) => (w(), b("path", {
2780
2752
  key: e.id,
2781
2753
  d: e.pathData,
2782
2754
  fill: "none",
2783
2755
  stroke: "transparent",
2784
- "stroke-width": L.value.style.chart.edges.strokeWidth * (e.from === $.value || e.id === R.value?.id ? 1.3 : 1),
2756
+ "stroke-width": R.value.style.chart.edges.strokeWidth * (e.from === Q.value || e.id === z.value?.id ? 1.3 : 1),
2785
2757
  "stroke-linecap": "round",
2786
2758
  "stroke-linejoin": "round",
2787
- "marker-end": E(J).arrowShape === "undirected" ? null : `url(#${gn(e.id)})`,
2759
+ "marker-end": D(K).arrowShape === "undirected" ? null : `url(#${_n(e.id)})`,
2788
2760
  style: {
2789
2761
  "pointer-events": "none",
2790
2762
  transition: "stroke-width 0.2s ease-in-out,\n stroke 0.2s ease-in-out"
2791
2763
  }
2792
2764
  }, null, 8, vr))), 128))]),
2793
- b("g", yr, [(C(!0), y(fe, null, Ee(E(J).nodes, (t) => (C(), y("g", {
2765
+ x("g", yr, [(w(!0), b(fe, null, Te(D(K).nodes, (t) => (w(), b("g", {
2794
2766
  key: t.id,
2795
- onClick: je((e) => L.value.style.chart.nodes.tooltip.showOnClick && Wt(t), ["stop"]),
2796
- onMouseenter: (e) => sn(t.id),
2797
- onMouseleave: (e) => un(t.id)
2798
- }, [e.$slots["free-node-label"] ? v("", !0) : (C(), y(fe, { key: 0 }, [e.$slots["node-label"] ? (C(), y("text", {
2767
+ onClick: Ae((e) => R.value.style.chart.nodes.tooltip.showOnClick && Kt(t), ["stop"]),
2768
+ onMouseenter: (e) => cn(t.id),
2769
+ onMouseleave: (e) => dn(t.id)
2770
+ }, [e.$slots["free-node-label"] ? y("", !0) : (w(), b(fe, { key: 0 }, [e.$slots["node-label"] ? (w(), b("text", {
2799
2771
  key: 0,
2800
2772
  x: t.x,
2801
- y: t.y + L.value.style.chart.nodes.labels.fontSize / 3,
2773
+ y: t.y + R.value.style.chart.nodes.labels.fontSize / 3,
2802
2774
  "text-anchor": "middle",
2803
- "font-size": L.value.style.chart.nodes.labels.fontSize,
2804
- fill: $.value === t.id && L.value.style.chart.nodes.selected.labelColor != null ? L.value.style.chart.nodes.selected.labelColor : t.original.color,
2805
- "font-weight": L.value.style.chart.nodes.labels.bold ? "bold" : "normal",
2775
+ "font-size": R.value.style.chart.nodes.labels.fontSize,
2776
+ fill: Q.value === t.id && R.value.style.chart.nodes.selected.labelColor != null ? R.value.style.chart.nodes.selected.labelColor : t.original.color,
2777
+ "font-weight": R.value.style.chart.nodes.labels.bold ? "bold" : "normal",
2806
2778
  style: { transition: "fill 0.2s ease-in-out" }
2807
- }, [T(e.$slots, "node-label", be({ ref_for: !0 }, {
2779
+ }, [E(e.$slots, "node-label", ye({ ref_for: !0 }, {
2808
2780
  node: t,
2809
- orientation: K.value
2810
- }), () => [_e(De(t.label), 1)], !0)], 8, xr)) : !e.$slots["free-node-label"] && !e.$slots.node ? (C(), y("text", {
2781
+ orientation: G.value
2782
+ }), () => [ge(Ee(t.label), 1)], !0)], 8, xr)) : !e.$slots["free-node-label"] && !e.$slots.node ? (w(), b("text", {
2811
2783
  key: 1,
2812
2784
  "data-cy-node-label": "",
2813
2785
  x: t.x,
2814
- y: t.y + L.value.style.chart.nodes.labels.fontSize / 3,
2786
+ y: t.y + R.value.style.chart.nodes.labels.fontSize / 3,
2815
2787
  "text-anchor": "middle",
2816
- "font-size": L.value.style.chart.nodes.labels.fontSize,
2817
- fill: ($.value === t.id || fn(t.id)) && L.value.style.chart.nodes.selected.labelColor != null ? L.value.style.chart.nodes.selected.labelColor : t.original.color,
2818
- "font-weight": L.value.style.chart.nodes.labels.bold ? "bold" : "normal",
2788
+ "font-size": R.value.style.chart.nodes.labels.fontSize,
2789
+ fill: (Q.value === t.id || pn(t.id)) && R.value.style.chart.nodes.selected.labelColor != null ? R.value.style.chart.nodes.selected.labelColor : t.original.color,
2790
+ "font-weight": R.value.style.chart.nodes.labels.bold ? "bold" : "normal",
2819
2791
  style: { transition: "fill 0.2s ease-in-out" },
2820
- innerHTML: E(n)({
2792
+ innerHTML: D(n)({
2821
2793
  content: t.label,
2822
- fontSize: L.value.style.chart.nodes.labels.fontSize,
2823
- fontWeight: L.value.style.chart.nodes.labels.bold ? "bold" : "normal",
2824
- fill: ($.value === t.id || fn(t.id)) && L.value.style.chart.nodes.selected.labelColor != null ? L.value.style.chart.nodes.selected.labelColor : t.original.color,
2794
+ fontSize: R.value.style.chart.nodes.labels.fontSize,
2795
+ fontWeight: R.value.style.chart.nodes.labels.bold ? "bold" : "normal",
2796
+ fill: (Q.value === t.id || pn(t.id)) && R.value.style.chart.nodes.selected.labelColor != null ? R.value.style.chart.nodes.selected.labelColor : t.original.color,
2825
2797
  x: t.x,
2826
2798
  y: t.y,
2827
2799
  autoOffset: !0
2828
2800
  })
2829
- }, null, 8, Sr)) : v("", !0)], 64)), e.$slots["free-node-label"] ? (C(), y("g", Cr, [T(e.$slots, "free-node-label", be({ ref_for: !0 }, {
2801
+ }, 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 }, {
2830
2802
  node: t,
2831
- layoutData: E(J),
2832
- orientation: K.value
2833
- }), void 0, !0)])) : v("", !0)], 40, br))), 128))]),
2834
- T(e.$slots, "svg", { svg: {
2835
- drawingArea: E(Dt),
2836
- data: E(J),
2837
- orientation: K.value,
2838
- isPrintingImg: E(pt) || E(q) || Ue.value,
2839
- isPrintingSvg: We.value
2803
+ layoutData: D(K),
2804
+ orientation: G.value
2805
+ }), void 0, !0)])) : y("", !0)], 40, br))), 128))]),
2806
+ E(e.$slots, "svg", { svg: {
2807
+ drawingArea: D(kt),
2808
+ data: D(K),
2809
+ orientation: G.value,
2810
+ isPrintingImg: D(ft) || D(pt) || D(vt),
2811
+ isPrintingSvg: D(yt)
2840
2812
  } }, void 0, !0)
2841
- ], 46, nr)) : v("", !0), e.$slots.hint ? (C(), y("div", wr, [T(e.$slots, "hint", S(x({
2842
- hint: L.value.a11y.translations.keyboardNavigation,
2843
- isVisible: qe.value
2844
- })), void 0, !0)])) : v("", !0)]),
2845
- e.$slots.watermark ? (C(), y("div", Tr, [T(e.$slots, "watermark", S(x({ isPrinting: E(pt) || E(q) || Ue.value || We.value })), void 0, !0)])) : v("", !0),
2846
- ve(me, { name: "fade" }, {
2847
- default: D(() => [U.value ? (C(), he(pe, {
2813
+ ], 46, nr)) : y("", !0), e.$slots.hint ? (w(), b("div", wr, [E(e.$slots, "hint", C(S({
2814
+ hint: R.value.a11y.translations.keyboardNavigation,
2815
+ isVisible: We.value
2816
+ })), void 0, !0)])) : y("", !0)]),
2817
+ e.$slots.watermark ? (w(), b("div", Tr, [E(e.$slots, "watermark", C(S({ isPrinting: D(ft) || D(pt) || D(vt) || D(yt) })), void 0, !0)])) : y("", !0),
2818
+ _e(me, { name: "fade" }, {
2819
+ default: O(() => [H.value ? (w(), v(pe, {
2848
2820
  key: 0,
2849
- to: X.value ? j.value : "body"
2850
- }, [b("div", {
2821
+ to: J.value ? M.value : "body"
2822
+ }, [x("div", {
2851
2823
  "data-cy-tooltip-midpoint": "",
2852
2824
  ref_key: "tooltipRef",
2853
- ref: z,
2825
+ ref: Ye,
2854
2826
  class: "vue-ui-dag-tooltip",
2855
- style: Ce({
2856
- ...Qe.value,
2857
- maxWidth: L.value.style.chart.midpoints.tooltip.maxWidth,
2858
- "--vue-data-ui-dag-tooltip-background": L.value.style.chart.midpoints.tooltip.backgroundColor,
2859
- "--vue-data-ui-dag-tooltip-color": L.value.style.chart.midpoints.tooltip.color
2827
+ style: Se({
2828
+ ...Xe.value,
2829
+ maxWidth: R.value.style.chart.midpoints.tooltip.maxWidth,
2830
+ "--vue-data-ui-dag-tooltip-background": R.value.style.chart.midpoints.tooltip.backgroundColor,
2831
+ "--vue-data-ui-dag-tooltip-color": R.value.style.chart.midpoints.tooltip.color
2860
2832
  }),
2861
- "data-position": $e.value
2862
- }, [T(e.$slots, "tooltip-midpoint", S(x({
2863
- edge: R.value,
2864
- layoutData: E(J)
2865
- })), () => [R.value ? (C(), y("div", Dr, De(Y(R.value.from)?.label ?? R.value.from) + " → " + De(Y(R.value.to)?.label ?? R.value.to), 1)) : v("", !0)], !0)], 12, Er)], 8, ["to"])) : v("", !0)]),
2833
+ "data-position": B.value
2834
+ }, [E(e.$slots, "tooltip-midpoint", C(S({
2835
+ edge: z.value,
2836
+ layoutData: D(K)
2837
+ })), () => [z.value ? (w(), b("div", Dr, Ee(q(z.value.from)?.label ?? z.value.from) + " → " + Ee(q(z.value.to)?.label ?? z.value.to), 1)) : y("", !0)], !0)], 12, Er)], 8, ["to"])) : y("", !0)]),
2866
2838
  _: 3
2867
2839
  }),
2868
- ve(me, { name: "fade" }, {
2869
- default: D(() => [B.value ? (C(), he(pe, {
2840
+ _e(me, { name: "fade" }, {
2841
+ default: O(() => [V.value ? (w(), v(pe, {
2870
2842
  key: 0,
2871
- to: X.value ? j.value : "body"
2872
- }, [b("div", {
2843
+ to: J.value ? M.value : "body"
2844
+ }, [x("div", {
2873
2845
  "data-cy-tooltip-node": "",
2874
2846
  ref_key: "nodeTooltipRef",
2875
- ref: H,
2847
+ ref: et,
2876
2848
  class: "vue-ui-dag-node-tooltip",
2877
- style: Ce({
2878
- maxWidth: L.value.style.chart.nodes.tooltip.maxWidth,
2879
- left: nt.value.left,
2880
- top: nt.value.top,
2881
- "--vue-data-ui-dag-node-tooltip-background": L.value.style.chart.nodes.tooltip.backgroundColor,
2882
- "--vue-data-ui-dag-node-tooltip-color": L.value.style.chart.nodes.tooltip.color
2849
+ style: Se({
2850
+ maxWidth: R.value.style.chart.nodes.tooltip.maxWidth,
2851
+ left: tt.value.left,
2852
+ top: tt.value.top,
2853
+ "--vue-data-ui-dag-node-tooltip-background": R.value.style.chart.nodes.tooltip.backgroundColor,
2854
+ "--vue-data-ui-dag-node-tooltip-color": R.value.style.chart.nodes.tooltip.color
2883
2855
  }),
2884
- "data-position": rt.value
2885
- }, [T(e.$slots, "tooltip-node", S(x({
2886
- node: V.value,
2887
- layoutData: E(J)
2888
- })), () => [V.value ? (C(), y("div", kr, De(V.value.label), 1)) : v("", !0)], !0)], 12, Or)], 8, ["to"])) : v("", !0)]),
2856
+ "data-position": nt.value
2857
+ }, [E(e.$slots, "tooltip-node", C(S({
2858
+ node: $e.value,
2859
+ layoutData: D(K)
2860
+ })), () => [$e.value ? (w(), b("div", kr, Ee($e.value.label), 1)) : y("", !0)], !0)], 12, Or)], 8, ["to"])) : y("", !0)]),
2889
2861
  _: 3
2890
2862
  }),
2891
- L.value.style.chart.controls.position === "bottom" && !E(ct) && L.value.style.chart.controls.show ? (C(), he(ue, {
2863
+ R.value.style.chart.controls.position === "bottom" && !D(st) && R.value.style.chart.controls.show ? (w(), v(ue, {
2892
2864
  key: 7,
2893
2865
  ref_key: "zoomControls",
2894
- ref: Re,
2895
- config: L.value,
2896
- scale: E(At),
2897
- isFullscreen: X.value,
2866
+ ref: Le,
2867
+ config: R.value,
2868
+ scale: D(Mt),
2869
+ isFullscreen: J.value,
2898
2870
  withDirection: "",
2899
- onZoomIn: Lt,
2900
- onZoomOut: Rt,
2901
- onResetZoom: t[1] ||= () => E(Ot)(!0),
2902
- onSwitchDirection: Bt
2871
+ onZoomIn: zt,
2872
+ onZoomOut: Bt,
2873
+ onResetZoom: t[1] ||= () => D(At)(!0),
2874
+ onSwitchDirection: Ht
2903
2875
  }, null, 8, [
2904
2876
  "config",
2905
2877
  "scale",
2906
2878
  "isFullscreen"
2907
- ])) : v("", !0),
2908
- e.$slots.source ? (C(), y("div", {
2879
+ ])) : y("", !0),
2880
+ e.$slots.source ? (w(), b("div", {
2909
2881
  key: 8,
2910
2882
  ref_key: "source",
2911
- ref: Le,
2883
+ ref: Ie,
2912
2884
  dir: "auto"
2913
- }, [T(e.$slots, "source", {}, void 0, !0)], 512)) : v("", !0),
2914
- T(e.$slots, "skeleton", {}, () => [E(ct) ? (C(), he(m, { key: 0 })) : v("", !0)], !0)
2885
+ }, [E(e.$slots, "source", {}, void 0, !0)], 512)) : y("", !0),
2886
+ E(e.$slots, "skeleton", {}, () => [D(st) ? (w(), v(m, { key: 0 })) : y("", !0)], !0)
2915
2887
  ], 46, Qn));
2916
2888
  }
2917
- }, [["__scopeId", "data-v-cceceb15"]]);
2889
+ }, [["__scopeId", "data-v-aed1b7b3"]]);
2918
2890
  //#endregion
2919
2891
  export { Zn as n, jr as t };