vue-data-ui 3.23.0 → 3.23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) 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-D6d8SCp9.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/Slicer-CIk57nL4.js +1163 -0
  15. package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
  16. package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
  17. package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
  18. package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
  19. package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.js} +2 -2
  20. package/dist/components/arrow.js +1 -1
  21. package/dist/components/vue-ui-3d-bar.js +1 -1
  22. package/dist/components/vue-ui-accordion.js +1 -1
  23. package/dist/components/vue-ui-age-pyramid.js +1 -1
  24. package/dist/components/vue-ui-annotator.js +1 -1
  25. package/dist/components/vue-ui-bullet.js +1 -1
  26. package/dist/components/vue-ui-bump.js +1 -1
  27. package/dist/components/vue-ui-candlestick.js +1 -1
  28. package/dist/components/vue-ui-carousel-table.js +1 -1
  29. package/dist/components/vue-ui-chestnut.js +1 -1
  30. package/dist/components/vue-ui-chord.js +1 -1
  31. package/dist/components/vue-ui-circle-pack.js +1 -1
  32. package/dist/components/vue-ui-cursor.js +1 -1
  33. package/dist/components/vue-ui-dag.js +1 -1
  34. package/dist/components/vue-ui-dashboard.js +1 -1
  35. package/dist/components/vue-ui-digits.js +1 -1
  36. package/dist/components/vue-ui-donut-evolution.js +1 -1
  37. package/dist/components/vue-ui-donut.js +1 -1
  38. package/dist/components/vue-ui-dumbbell.js +1 -1
  39. package/dist/components/vue-ui-flow.js +1 -1
  40. package/dist/components/vue-ui-funnel.js +1 -1
  41. package/dist/components/vue-ui-galaxy.js +1 -1
  42. package/dist/components/vue-ui-gauge.js +1 -1
  43. package/dist/components/vue-ui-geo.js +1 -1
  44. package/dist/components/vue-ui-gizmo.js +1 -1
  45. package/dist/components/vue-ui-heatmap.js +1 -1
  46. package/dist/components/vue-ui-hill.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/composables.js +1 -1
  91. package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
  92. package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
  93. package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
  94. package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
  95. package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
  96. package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
  97. package/dist/{package-BMc_ZieJ.js → package-KvlL5CqE.js} +1 -1
  98. package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
  99. package/dist/{render-common-Ktg2LZFG.js → render-common-oDYGTc5P.js} +2 -2
  100. package/dist/ssr/vue-ui-donut.js +1 -1
  101. package/dist/ssr/vue-ui-xy.js +1 -1
  102. package/dist/ssr.js +2 -2
  103. package/dist/style.css +1 -1
  104. package/dist/types/vue-data-ui.d.ts +3 -0
  105. package/dist/{useConfig-BilxnBNr.js → useConfig-D3scuR88.js} +7 -1
  106. package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
  107. package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-Brg8mm5J.js} +1 -1
  108. package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
  109. package/dist/{useSvgExport-Ba9qBr9M.js → useSvgExport-DH-FfcqQ.js} +1 -1
  110. package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
  111. package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
  112. package/dist/utils.js +3 -3
  113. package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-DGWDPCwC.js} +69 -69
  114. package/dist/vue-data-ui.js +74 -74
  115. package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-C_Su9fve.js} +45 -45
  116. package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-BxGriZik.js} +4 -4
  117. package/dist/{vue-ui-age-pyramid-CgnPWA93.js → vue-ui-age-pyramid-D4k1MkAL.js} +41 -40
  118. package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-CCtnM8Rv.js} +41 -68
  119. package/dist/{vue-ui-bullet-Bc3-WaN1.js → vue-ui-bullet-DLZr2Uk8.js} +21 -21
  120. package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-CcdzJZ9n.js} +32 -32
  121. package/dist/{vue-ui-candlestick-DvvsrIdp.js → vue-ui-candlestick-EEEt7ORC.js} +50 -48
  122. package/dist/{vue-ui-carousel-table-DtsNVim8.js → vue-ui-carousel-table-BicIpNAD.js} +8 -8
  123. package/dist/vue-ui-chestnut-BI7mC5dd.js +2068 -0
  124. package/dist/{vue-ui-chord-xX5gWZy8.js → vue-ui-chord-DXaq8ZMu.js} +46 -46
  125. package/dist/{vue-ui-circle-pack-D8wykmqg.js → vue-ui-circle-pack-XHJBMG51.js} +362 -341
  126. package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-BqHr0n1Z.js} +4 -4
  127. package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-jMLVoQkb.js} +715 -720
  128. package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-DVAUFETR.js} +70 -70
  129. package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Dy4gG6qm.js} +5 -5
  130. package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-C0cWRLbU.js} +48 -47
  131. package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-CYpxGBhl.js} +18 -17
  132. package/dist/{vue-ui-donut-evolution-D6vH_hfx.js → vue-ui-donut-evolution-DwR47A2r.js} +58 -53
  133. package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-DxVbRjKR.js} +85 -85
  134. package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-DWaZF4FS.js} +37 -37
  135. package/dist/{vue-ui-funnel-CjYosIik.js → vue-ui-funnel-Bmpx5GHR.js} +24 -24
  136. package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-CWBP9oH9.js} +151 -151
  137. package/dist/{vue-ui-gauge-CByT0_vF.js → vue-ui-gauge-ByE_txav.js} +20 -20
  138. package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-ZA7CBy8f.js} +186 -186
  139. package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-SQCou0bQ.js} +4 -4
  140. package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-CHd9gs_p.js} +385 -385
  141. package/dist/vue-ui-hill-BT183G-_.js +1768 -0
  142. package/dist/{vue-ui-history-plot-BhcU94Pt.js → vue-ui-history-plot-BwnlC1mx.js} +511 -510
  143. package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-BUar2HUH.js} +235 -235
  144. package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-BF_9WWoo.js} +4 -4
  145. package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CvfukjXi.js} +3 -3
  146. package/dist/vue-ui-molecule-Bi2CKHer.js +958 -0
  147. package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-_zpbmvJs.js} +50 -50
  148. package/dist/{vue-ui-nested-donuts-aS4YzaB3.js → vue-ui-nested-donuts-qHZAJ70u.js} +43 -43
  149. package/dist/vue-ui-onion-CB5RYIy5.js +1258 -0
  150. package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-BUwt-apg.js} +54 -54
  151. package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-CoROD3er.js} +74 -74
  152. package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-BcH7eY4-.js} +96 -88
  153. package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-DGbaXGme.js} +191 -191
  154. package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-Bo3zD3yW.js} +3 -3
  155. package/dist/{vue-ui-relation-circle-FLs8vOxQ.js → vue-ui-relation-circle-DaU1eTsG.js} +32 -32
  156. package/dist/vue-ui-ridgeline-BCaGcyfk.js +1664 -0
  157. package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-BJUBn8_b.js} +40 -40
  158. package/dist/{vue-ui-scatter-CNA7jF-o.js → vue-ui-scatter-Pcft1bUt.js} +50 -50
  159. package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-EeJcGbCo.js} +4 -4
  160. package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-D0gibt5c.js} +3 -3
  161. package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-BRoQ7JpQ.js} +11 -11
  162. package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-DFp2k7-7.js} +4 -4
  163. package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-D0Bq85Hs.js} +4 -4
  164. package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-BPln7v63.js} +13 -13
  165. package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-C6Q45Dqp.js} +7 -6
  166. package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-CjK4bcQg.js} +5 -5
  167. package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-Ca8EPf3e.js} +83 -80
  168. package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Pz5WWlWT.js} +189 -186
  169. package/dist/{vue-ui-strip-plot-ACeYOoHj.js → vue-ui-strip-plot-Dw4MGDSO.js} +66 -66
  170. package/dist/vue-ui-table-Bjg-ujJu.js +1352 -0
  171. package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-ljeYW8Wc.js} +10 -10
  172. package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-iRFmtK5S.js} +8 -8
  173. package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-D8uiOaeA.js} +26 -26
  174. package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-CYw983oL.js} +6 -6
  175. package/dist/vue-ui-tiremarks-CekiW2Ru.js +559 -0
  176. package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-h4VbnqPA.js} +77 -77
  177. package/dist/{vue-ui-waffle-iPpdk1Bm.js → vue-ui-waffle-cu0w_s6L.js} +41 -41
  178. package/dist/vue-ui-wheel-tLvJadk5.js +892 -0
  179. package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-BjpGSsod.js} +68 -68
  180. package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-B4fCS3jN.js} +184 -184
  181. package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-7ZT9IRD8.js} +60 -60
  182. package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-BnLEwBpi.js} +20 -18
  183. package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-gyNS0yH0.js} +329 -326
  184. package/package.json +4 -4
  185. package/dist/Slicer-5yIrdoJv.js +0 -1149
  186. package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
  187. package/dist/vue-ui-chestnut-ArloORzP.js +0 -2068
  188. package/dist/vue-ui-hill-D7LYAgAL.js +0 -1768
  189. package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
  190. package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
  191. package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
  192. package/dist/vue-ui-table-rFy16bp0.js +0 -1347
  193. package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
  194. 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-D3scuR88.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";
7
+ import { t as h } from "./useSvgExport-DH-FfcqQ.js";
8
+ import { t as g } from "./useNestedProp-vPNvh7rV.js";
9
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";
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 = He(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, Ue(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, Ue(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 He(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 = P(i + r + 3).map(() => new Fe()), o = r + 1;
328
328
  return n.nodes().forEach((e) => {
329
- We(a, o, n.node(e));
329
+ Ue(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 Ue(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 P(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 F(e, t, n, r) {
347
347
  let i = r;
348
- for (; e.hasNode(i);) i = V(r);
348
+ for (; e.hasNode(i);) i = H(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 I(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 L(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 Ge(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 Ke(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 R(e) {
402
+ let t = U(Ze(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 Ye(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), F(e, "border", i, t);
437
437
  }
438
- var Ze = 65535;
439
- function R(e, t = Ze) {
438
+ var Xe = 65535;
439
+ function z(e, t = Xe) {
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 > Xe) {
449
+ let n = z(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 Ze(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 Qe(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 V(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 H(e) {
483
+ let t = ++et;
483
484
  return e + String(t);
484
485
  }
485
- function H(e, t, n = 1) {
486
+ function U(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 tt(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 nt(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 G = {
511
+ addBorderNode: Ye,
512
+ addDummyNode: F,
513
+ applyWithChunking: B,
514
+ asNonCompoundGraph: L,
515
+ buildLayerMatrix: R,
516
+ intersectRect: Ke,
517
+ mapValues: nt,
518
+ maxRank: Ze,
519
+ normalizeRanks: qe,
520
+ notime: $e,
521
+ partition: Qe,
522
+ pick: tt,
523
+ predecessorWeights: Ge,
524
+ range: U,
525
+ removeEmptyRanks: Je,
526
+ simplify: I,
527
+ successorWeights: We,
528
+ time: V,
529
+ uniqueId: H,
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 K(e) {
535
+ (e.graph().acyclicer === "greedy" ? ze(e, t(e)) : it(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, H("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 rt(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 it(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) => {
@@ -560,10 +561,10 @@ function at(e) {
560
561
  }
561
562
  //#endregion
562
563
  //#region src/DAG/normalize.js
563
- function ot(e) {
564
- e.graph().dummyChains = [], e.edges().forEach((t) => K(e, t));
564
+ function at(e) {
565
+ e.graph().dummyChains = [], e.edges().forEach((t) => q(e, t));
565
566
  }
566
- function K(e, t) {
567
+ function q(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 = F(e, "edge", u, "_d"), r === c && (u.width = s.width, u.height = s.height, u.dummy = "edge-label", u.labelpos = s.labelpos), e.setEdge(n, l, { weight: s.weight }, o), d === 0 && e.graph().dummyChains.push(l), n = l;
578
579
  e.setEdge(n, i, { weight: s.weight }, o);
579
580
  }
580
- function st(e) {
581
+ function ot(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 st(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 ct(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 lt(e) {
611
+ ut(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 = dt(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
+ ft(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 ut(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 dt(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 = ct(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 ft(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 J(e) {
666
+ let t = I(e);
667
+ return st(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
  }
672
+ function pt(e, t) {}
671
673
  function mt(e, t) {}
672
- function ht(e, t) {}
673
- function gt(e, t, n) {
674
+ function ht(e, t, n) {
674
675
  return 0;
675
676
  }
676
- function _t(e) {
677
+ function gt(e) {
677
678
  return null;
678
679
  }
679
- function vt(e, t) {
680
+ function _t(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
+ J.initLowLimValues = pt, J.initCutValues = mt, J.calcCutValue = ht, J.leaveEdge = gt, J.enterEdge = _t;
683
684
  //#endregion
684
685
  //#region src/DAG/rank/index.js
685
- var yt = ct;
686
- function bt(e) {
686
+ var vt = st;
687
+ function yt(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
+ St(e);
692
693
  break;
693
694
  case "tight-tree":
694
- St(e);
695
+ xt(e);
695
696
  break;
696
697
  case "longest-path":
697
- xt(e);
698
+ bt(e);
698
699
  break;
699
700
  case "none": break;
700
- default: J(e);
701
+ default: St(e);
701
702
  }
702
703
  }
703
- var xt = yt;
704
- function St(e) {
705
- yt(e), ut(e);
704
+ var bt = vt;
705
+ function xt(e) {
706
+ vt(e), lt(e);
706
707
  }
707
- function J(e) {
708
- q(e);
708
+ function St(e) {
709
+ J(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 Y(e) {
714
+ let t = wt(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 = Ct(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 Ct(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 wt(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 X(e) {
756
+ let t = G.addDummyNode(e, "root", {}, "_root"), n = Et(e), r = Object.values(n), i = G.applyWithChunking(Math.max, r) - 1, a = 2 * i + 1;
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 = Dt(e) + 1;
760
761
  e.children().forEach((r) => {
761
- Et(e, t, a, o, i, n, r);
762
+ Tt(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 Tt(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 = G.addBorderNode(e, "_bt"), l = G.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
+ Tt(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 Et(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 Dt(e) {
800
801
  return e.edges().reduce((t, n) => t + e.edge(n).weight, 0);
801
802
  }
802
- function kt(e) {
803
+ function Ot(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,43 +808,43 @@ function kt(e) {
807
808
  }
808
809
  //#endregion
809
810
  //#region src/DAG/add-border-segments.js
810
- function At(e) {
811
+ function kt(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) At(e, "borderLeft", "_bl", n, i, t), At(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 At(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 = F(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 jt(e) {
832
833
  let t = e.graph().rankdir.toLowerCase();
833
- (t === "lr" || t === "rl") && Pt(e);
834
+ (t === "lr" || t === "rl") && Nt(e);
834
835
  }
835
- function Nt(e) {
836
+ function Mt(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") && Ft(e), (t === "lr" || t === "rl") && (Lt(e), Nt(e));
838
839
  }
839
- function Pt(e) {
840
+ function Nt(e) {
840
841
  e.nodes().forEach((t) => {
841
- X(e.node(t));
842
+ Pt(e.node(t));
842
843
  }), e.edges().forEach((t) => {
843
- X(e.edge(t));
844
+ Pt(e.edge(t));
844
845
  });
845
846
  }
846
- function X(e) {
847
+ function Pt(e) {
847
848
  let t = e.width;
848
849
  e.width = e.height, e.height = t;
849
850
  }
@@ -871,13 +872,13 @@ function Rt(e) {
871
872
  e.x = e.y, e.y = t;
872
873
  }
873
874
  var zt = {
874
- adjust: Mt,
875
- undo: Nt
875
+ adjust: jt,
876
+ undo: Mt
876
877
  };
877
878
  //#endregion
878
879
  //#region src/DAG/order/init-order.js
879
880
  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(() => []);
881
+ let t = {}, n = e.nodes().filter((t) => e.children(t).length === 0), r = n.map((t) => e.node(t).rank), i = U(B(Math.max, r) + 1).map(() => []);
881
882
  function a(n) {
882
883
  if (t[n]) return;
883
884
  t[n] = !0;
@@ -894,7 +895,7 @@ function Vt(e, t) {
894
895
  return n;
895
896
  }
896
897
  function Ht(e, t, n) {
897
- let r = U(n, n.map((e, t) => t)), i = t.flatMap((t) => e.outEdges(t).map((t) => ({
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 Ut(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 Z(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
+ }), Wt(Object.values(n).filter((e) => !e.indegree));
953
954
  }
954
- function Q(e) {
955
+ function Wt(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) && Q(e, t);
959
960
  };
960
961
  }
961
962
  function r(t) {
@@ -967,21 +968,21 @@ 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) => tt(e, [
971
972
  "vs",
972
973
  "i",
973
974
  "barycenter",
974
975
  "weight"
975
976
  ]));
976
977
  }
977
- function Wt(e, t) {
978
+ function Q(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
984
  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
+ let n = Qe(e, (e) => Object.hasOwn(e, "barycenter")), r = n.lhs, i = n.rhs.sort((e, t) => t.i - e.i), a = [], o = 0, s = 0, c = 0;
985
986
  r.sort(qt(!!t)), c = Kt(a, i, c), r.forEach((e) => {
986
987
  c += e.vs.length, a.push(e.vs), o += e.barycenter * e.weight, s += e.weight, c = Kt(a, i, c);
987
988
  });
@@ -1001,14 +1002,14 @@ function qt(e) {
1001
1002
  function Jt(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 = Ut(e, i);
1005
1006
  l.forEach((t) => {
1006
1007
  if (e.children(t.v).length) {
1007
1008
  let i = Jt(e, t.v, n, r);
1008
1009
  c[t.v] = i, Object.hasOwn(i, "barycenter") && Xt(t, i);
1009
1010
  }
1010
1011
  });
1011
- let u = Ut(l, n);
1012
+ let u = Z(l, n);
1012
1013
  Yt(u, c);
1013
1014
  let d = Gt(u, r);
1014
1015
  if (o && (d.vs = [
@@ -1033,7 +1034,7 @@ function Xt(e, t) {
1033
1034
  //#region src/DAG/order/build-layer-graph.js
1034
1035
  function Zt(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 = Qt(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) => {
@@ -1047,7 +1048,7 @@ function Zt(e, t, n, r) {
1047
1048
  }
1048
1049
  function Qt(e) {
1049
1050
  let t;
1050
- for (; e.hasNode(t = V("_root")););
1051
+ for (; e.hasNode(t = H("_root")););
1051
1052
  return t;
1052
1053
  }
1053
1054
  //#endregion
@@ -1072,11 +1073,11 @@ function en(e, t = {}) {
1072
1073
  t.customOrder(e, en);
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
+ let n = Ze(e), r = tn(e, U(1, n + 1), "inEdges"), i = tn(e, U(n - 1, -1, -1), "outEdges"), a = Bt(e);
1076
1077
  if (rn(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
+ nn(t % 2 == 0 ? r : i, t % 4 >= 2, c), a = R(e);
1080
1081
  let l = Vt(e, a);
1081
1082
  l < o ? (o = l, n = 0, s = structuredClone(a)) : l === o && (s = structuredClone(a));
1082
1083
  }
@@ -1094,7 +1095,7 @@ function tn(e, t, n) {
1094
1095
  return t.map((t) => Zt(e, t, n, r.get(t) || []));
1095
1096
  }
1096
1097
  function nn(e, t, n) {
1097
- let r = new O();
1098
+ let r = new k();
1098
1099
  e.forEach((e) => {
1099
1100
  n.forEach((e) => r.setEdge(e.left, e.right));
1100
1101
  let i = e.graph().root, a = Jt(e, i, r, t);
@@ -1112,7 +1113,7 @@ function rn(e, t) {
1112
1113
  }
1113
1114
  //#endregion
1114
1115
  //#region src/DAG/position/bk.js
1115
- function $(e, t) {
1116
+ function an(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];
@@ -1128,11 +1129,11 @@ function $(e, t) {
1128
1129
  }
1129
1130
  return t.length && t.reduce(r), n;
1130
1131
  }
1131
- function an(e, t) {
1132
+ function $(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
+ U(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
1139
  r.dummy && (r.order < a || r.order > o) && sn(n, t, s);
@@ -1243,31 +1244,31 @@ function fn(e, t) {
1243
1244
  }, [Infinity, null])[1];
1244
1245
  }
1245
1246
  function pn(e, t) {
1246
- let n = Object.values(t), r = z(Math.min, n), i = z(Math.max, n);
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 = nt(s, (e) => e + l), e[o] = s);
1253
1254
  });
1254
1255
  });
1255
1256
  }
1256
1257
  function mn(e, t) {
1257
- return rt(e.ul, (n, r) => {
1258
+ return nt(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
1264
  function hn(e) {
1264
- let t = L(e), n = Object.assign($(e, t), an(e, t)), r = {}, i;
1265
+ let t = R(e), n = Object.assign(an(e, t), $(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
1270
  let s = (a === "u" ? e.predecessors : e.successors).bind(e), c = ln(e, o, n, s), l = un(e, o, c.root, c.align, t === "r");
1270
- t === "r" && (l = rt(l, (e) => -e)), r[a + t] = l;
1271
+ t === "r" && (l = nt(l, (e) => -e)), r[a + t] = l;
1271
1272
  });
1272
1273
  }), pn(r, fn(e, r)), mn(r, e.graph().align);
1273
1274
  }
@@ -1278,17 +1279,13 @@ function gn(e, t, n) {
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
  };
@@ -1299,7 +1296,7 @@ function _n(e, t) {
1299
1296
  //#endregion
1300
1297
  //#region src/DAG/position/index.js
1301
1298
  function vn(e) {
1302
- let t = I(e);
1299
+ let t = L(e);
1303
1300
  yn(t);
1304
1301
  let n = hn(t);
1305
1302
  Object.entries(n).forEach(([t, n]) => {
@@ -1307,7 +1304,7 @@ function vn(e) {
1307
1304
  });
1308
1305
  }
1309
1306
  function yn(e) {
1310
- let t = L(e), n = e.graph().ranksep, r = 0;
1307
+ let t = R(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;
@@ -1321,14 +1318,14 @@ function yn(e) {
1321
1318
  //#endregion
1322
1319
  //#region src/DAG/layout.js
1323
1320
  function bn(e, t = {}) {
1324
- let n = t.debugTiming ? B : et;
1321
+ let n = t.debugTiming ? V : $e;
1325
1322
  return n("layout", () => {
1326
1323
  let r = n(" buildLayoutGraph", () => jn(e));
1327
1324
  return n(" runLayout", () => xn(r, n, t)), n(" updateInputGraph", () => Sn(e, r)), r;
1328
1325
  });
1329
1326
  }
1330
1327
  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));
1328
+ t(" makeSpaceForEdgeLabels", () => Mn(e)), t(" removeSelfEdges", () => Hn(e)), t(" acyclic", () => K(e)), t(" nestingGraph.run", () => X(e)), t(" rank", () => yt(L(e))), t(" injectEdgeLabelProxies", () => Nn(e)), t(" removeEmptyRanks", () => Je(e)), t(" nestingGraph.cleanup", () => Ot(e)), t(" normalizeRanks", () => qe(e)), t(" assignRankMinMax", () => Pn(e)), t(" removeEdgeLabelProxies", () => Fn(e)), t(" normalize.run", () => at(e)), t(" parentDummyChains", () => Y(e)), t(" addBorderSegments", () => kt(e)), t(" order", () => en(e, n)), t(" insertSelfEdges", () => Un(e)), t(" adjustCoordinateSystem", () => zt.adjust(e)), t(" position", () => vn(e)), t(" positionSelfEdges", () => Wn(e)), t(" removeBorderNodes", () => Vn(e)), t(" normalize.undo", () => ot(e)), t(" fixupEdgeLabelCoords", () => zn(e)), t(" undoCoordinateSystem", () => zt.undo(e)), t(" translateGraph", () => In(e)), t(" assignNodeIntersects", () => Rn(e)), t(" reversePoints", () => Bn(e)), t(" acyclic.undo", () => rt(e));
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
+ ...tt(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
+ ...tt(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
+ F(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 = Ke(r, a), c = Ke(i, o), l = n.points.length ? n.points[0] : a, u = n.points.length ? n.points[n.points.length - 1] : o, d = n.arrowshape, f = d === "normal" || d === "vee", p = !!n.reversed, m = s, h = c;
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
+ R(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
+ F(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 nt(tt(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
  });
@@ -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-D6d8SCp9.js").then((e) => e.t)), { vue_ui_dag: Ne } = d(), { isThemeValid: k, warnInvalidTheme: Pe } = ee(), A = e, j = re, M = T(null), N = T(o()), Fe = T(null), Ie = T(null), Le = T(null), Re = T(0), ze = T(0), Be = T(!1), Ve = T(!1), He = T(!1), Ue = T(!1), P = T(null), F = T(null), I = T(null), L = T(null), We = T(null), Ge = T("pointer"), Ke = T(!1), R = T(ut());
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 qe = _(() => R.value.userOptions.useCursorPointer), Je = T(R.value.style.chart.width), Ye = T(R.value.style.chart.height), Xe = T({
1823
1818
  x: 0,
1824
1819
  y: 0
1825
- }), R = w(null), z = w(null), Qe = w({
1820
+ }), z = T(null), B = T(null), Ze = T({
1826
1821
  left: "0px",
1827
1822
  top: "0px"
1828
- }), $e = w("top"), B = w(!1), et = w({
1823
+ }), Qe = T("top"), V = T(!1), $e = T({
1829
1824
  x: 0,
1830
1825
  y: 0
1831
- }), tt = w({
1826
+ }), et = T({
1832
1827
  x: 0,
1833
1828
  y: 0
1834
- }), V = w(null), H = w(null), nt = w({
1829
+ }), H = T(null), U = 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"), W = T(!1), G = T(!1), { svgRef: K } = ce({ config: R.value.style.chart.title }), { userOptionsVisible: rt, setUserOptionsVisibility: it, keepUserOptionState: at } = se({ config: R.value }), q = T(R.value.style.chart.layout.rankDirection), ot = _(() => t({
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,59 +1874,59 @@ 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() {
1881
+ function ut() {
1887
1882
  let e = g({
1888
- userConfig: k.config,
1889
- defaultConfig: Pe
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;
1887
+ if (!k.value(e)) return Pe(e), e;
1893
1888
  let n = g({
1894
- userConfig: de[t] || k.config,
1889
+ userConfig: de[t] || A.config,
1895
1890
  defaultConfig: e
1896
1891
  });
1897
1892
  return g({
1898
- userConfig: k.config,
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 || (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(), Yt();
1910
+ }), Oe(() => A.config, async (e) => {
1911
+ st.value || (R.value = ut()), rt.value = !R.value.userOptions.showOnChartHover, Re.value += 1, q.value = R.value.style.chart.layout.rankDirection, Je.value = R.value.style.chart.width, Ye.value = R.value.style.chart.height, Et.value = R.value.style.chart.zoom.active, await be(), Yt();
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),
1913
+ let { isPrinting: ft, isImaging: J, generatePdf: pt, generateImage: mt } = f({
1914
+ elementId: `dag_${N.value}`,
1915
+ fileName: R.value.style.chart.title.text || "vue-ui-dag",
1916
+ options: R.value.userOptions.print
1917
+ }), ht = _(() => R.value.style.chart.backgroundColor), gt = _(() => R.value.style.chart.title), { exportSvg: _t, getSvg: vt } = h({
1918
+ svg: K,
1919
+ title: gt,
1925
1920
  legend: void 0,
1926
1921
  legendItems: void 0,
1927
- backgroundColor: gt
1922
+ backgroundColor: ht
1928
1923
  });
1929
1924
  async function yt({ isCb: e }) {
1930
- We.value = !0, await xe();
1925
+ Ue.value = !0, await be();
1931
1926
  try {
1932
1927
  if (e) {
1933
1928
  let { blob: e, url: t, text: n, dataUrl: r } = await vt();
1934
- await Promise.resolve(L.value.userOptions.callbacks.svg({
1929
+ await Promise.resolve(R.value.userOptions.callbacks.svg({
1935
1930
  blob: e,
1936
1931
  url: t,
1937
1932
  text: n,
@@ -1939,14 +1934,14 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
1939
1934
  }));
1940
1935
  } else await Promise.resolve(_t());
1941
1936
  } finally {
1942
- We.value = !1;
1937
+ Ue.value = !1;
1943
1938
  }
1944
1939
  }
1945
1940
  function bt() {
1946
- Ve.value = !0, at(!0);
1941
+ Be.value = !0, it(!0);
1947
1942
  }
1948
1943
  function xt() {
1949
- at(!1), Ve.value = !1;
1944
+ it(!1), Be.value = !1;
1950
1945
  }
1951
1946
  function St({ tooltipRef: e, isVisibleRef: t, anchorRef: n, styleRef: r, placementRef: i, offsetRef: a, margin: o = 24 }) {
1952
1947
  return function() {
@@ -1969,25 +1964,25 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
1969
1964
  };
1970
1965
  };
1971
1966
  }
1972
- let { layoutData: J, lastError: Ct, arrowMarkerIdentifier: wt } = Xn({
1973
- nodes: _(() => lt.value.nodes.map((e) => ({
1967
+ let { layoutData: Y, lastError: Ct, arrowMarkerIdentifier: wt } = Xn({
1968
+ nodes: _(() => ct.value.nodes.map((e) => ({
1974
1969
  ...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
1970
+ backgroundColor: e.backgroundColor ? r(e.backgroundColor) : R.value.style.chart.nodes.backgroundColor,
1971
+ color: e.color ? r(e.color) : R.value.style.chart.nodes.labels.color
1977
1972
  }))),
1978
- edges: _(() => lt.value.edges),
1973
+ edges: _(() => ct.value.edges),
1979
1974
  configuration: _(() => ({
1980
- ...L.value.style.chart.layout,
1981
- rankDirection: K.value
1975
+ ...R.value.style.chart.layout,
1976
+ rankDirection: q.value
1982
1977
  }))
1983
1978
  });
1984
- function Y(e) {
1985
- return J.value ? J.value.nodes.find((t) => t.id === e) : null;
1979
+ function X(e) {
1980
+ return Y.value ? Y.value.nodes.find((t) => t.id === e) : null;
1986
1981
  }
1987
1982
  _(() => {
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) => {
1983
+ if (!Y.value) return [];
1984
+ let e = R.value.style.chart.edges.stroke, t = /* @__PURE__ */ new Set();
1985
+ return Y.value.edges.forEach((n) => {
1991
1986
  t.add({
1992
1987
  id: n.id,
1993
1988
  from: n.from,
@@ -1997,24 +1992,24 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
1997
1992
  }), Array.from(t);
1998
1993
  });
1999
1994
  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;
1995
+ let e = Je.value, t = Ye.value, n = Number(e), r = Number(t), i = Number.isFinite(n) && n > 0, a = Number.isFinite(r) && r > 0;
2001
1996
  return !i && !a ? null : {
2002
1997
  width: i ? n : null,
2003
1998
  height: a ? r : null
2004
1999
  };
2005
- }), Et = w(L.value.style.chart.zoom.active), { viewBox: Dt, resetZoom: Ot, setInitialViewBox: kt, scale: At, zoomByFactor: jt } = le(G, {
2000
+ }), Et = T(R.value.style.chart.zoom.active), { viewBox: Dt, resetZoom: Ot, setInitialViewBox: kt, scale: At, zoomByFactor: jt } = le(K, {
2006
2001
  x: 0,
2007
2002
  y: 0,
2008
2003
  width: 100,
2009
2004
  height: 100
2010
2005
  }, 1, Et, () => {
2011
- B.value = !1;
2006
+ V.value = !1;
2012
2007
  });
2013
2008
  function Mt() {
2014
2009
  Et.value = !Et.value;
2015
2010
  }
2016
2011
  function Nt() {
2017
- let e = J.value && J.value.viewBox;
2012
+ let e = Y.value && Y.value.viewBox;
2018
2013
  if (!e) return;
2019
2014
  let t = String(e).split(" ").map(Number);
2020
2015
  if (t.length !== 4) return;
@@ -2028,133 +2023,133 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
2028
2023
  height: s
2029
2024
  }, { overwriteCurrentIfNotZoomed: !0 });
2030
2025
  }
2031
- ke(() => J.value && J.value.viewBox, () => {
2026
+ Oe(() => Y.value && Y.value.viewBox, () => {
2032
2027
  Nt();
2033
- }, { immediate: !0 }), ke(() => Tt.value, () => {
2028
+ }, { immediate: !0 }), Oe(() => Tt.value, () => {
2034
2029
  Nt();
2035
- }), ke(() => W.value, (e) => {
2030
+ }), Oe(() => G.value, (e) => {
2036
2031
  Et.value = !e;
2037
2032
  });
2038
2033
  let Pt = _(() => {
2039
2034
  let e = Dt.value;
2040
2035
  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;
2044
- }
2045
- function It() {
2046
- W.value = !W.value;
2036
+ }), Ft = T(!1);
2037
+ function It(e) {
2038
+ Ft.value = e, ze.value += 1;
2047
2039
  }
2048
2040
  function Lt() {
2049
- jt(Ar, !0);
2041
+ G.value = !G.value;
2050
2042
  }
2051
2043
  function Rt() {
2044
+ jt(Ar, !0);
2045
+ }
2046
+ function zt() {
2052
2047
  jt(1 / Ar, !0);
2053
2048
  }
2054
- let zt = [
2049
+ let Bt = [
2055
2050
  "TB",
2056
2051
  "RL",
2057
2052
  "BT",
2058
2053
  "LR"
2059
2054
  ];
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,
2055
+ function Vt() {
2056
+ q.value = Bt[(Bt.indexOf(q.value) + 1) % Bt.length], Ot(), j("rotate", q.value);
2057
+ }
2058
+ let Ht = St({
2059
+ tooltipRef: B,
2060
+ isVisibleRef: W,
2061
+ anchorRef: Xe,
2062
+ styleRef: Ze,
2063
+ placementRef: Qe,
2069
2064
  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;
2065
+ }), Ut = St({
2066
+ tooltipRef: U,
2067
+ isVisibleRef: V,
2068
+ anchorRef: $e,
2069
+ styleRef: tt,
2070
+ placementRef: nt,
2071
+ offsetRef: et
2072
+ }), Z = T(null);
2073
+ async function Wt(e) {
2074
+ j("onMidpointEnter", e);
2075
+ let t = K.value;
2081
2076
  if (!t || !e?.midpoint) return;
2082
2077
  let n = t.createSVGPoint();
2083
2078
  n.x = e.midpoint.x, n.y = e.midpoint.y;
2084
2079
  let r = t.getScreenCTM();
2085
2080
  if (!r) return;
2086
2081
  let i = n.matrixTransform(r);
2087
- Ze.value = {
2082
+ Xe.value = {
2088
2083
  x: i.x,
2089
2084
  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();
2085
+ }, z.value = e, W.value = !0, R.value.style.chart.midpoints.selectedEdge.animated === !0 && (Z.value = e.id, tn()), await be(), Ht();
2091
2086
  }
2092
2087
  function Q() {
2093
- U.value = !1, R.value = null, A("onMidpointLeave"), L.value.style.chart.midpoints.selectedEdge.animated === !0 && (Z.value = null, en());
2088
+ W.value = !1, z.value = null, j("onMidpointLeave"), R.value.style.chart.midpoints.selectedEdge.animated === !0 && (Z.value = null, tn());
2094
2089
  }
2095
- async function Wt(e) {
2096
- if (A("onNodeClick", e), !L.value.style.chart.nodes.tooltip.showOnClick) return;
2097
- let t = G.value;
2090
+ async function Gt(e) {
2091
+ if (j("onNodeClick", e), !R.value.style.chart.nodes.tooltip.showOnClick) return;
2092
+ let t = K.value;
2098
2093
  if (!t) return;
2099
2094
  let n = t.createSVGPoint();
2100
2095
  n.x = e.x, n.y = e.y;
2101
2096
  let r = t.getScreenCTM();
2102
2097
  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 = {
2098
+ let i = n.matrixTransform(r), a = R.value.style.chart.layout.nodeWidth, o = R.value.style.chart.layout.nodeHeight, s = r.a, c = r.d, l = a * s, u = o * c;
2099
+ et.value = {
2105
2100
  x: l / 2,
2106
2101
  y: u / 2
2107
- }, et.value = {
2102
+ }, $e.value = {
2108
2103
  x: i.x,
2109
2104
  y: i.y
2110
- }, V.value = e, B.value = !0, await xe(), Ht();
2105
+ }, H.value = e, V.value = !0, await be(), Ut();
2111
2106
  }
2112
- function Gt() {
2113
- B.value = !1, V.value = null;
2107
+ function Kt() {
2108
+ V.value = !1, H.value = null;
2114
2109
  }
2115
- function Kt(e) {
2116
- if (!(B.value || U.value)) return;
2117
- let t = H.value;
2110
+ function qt(e) {
2111
+ if (!(V.value || W.value)) return;
2112
+ let t = U.value;
2118
2113
  if (t && t.contains(e.target)) return;
2119
- let n = z.value;
2114
+ let n = B.value;
2120
2115
  if (n && n.contains(e.target)) return;
2121
- let r = G.value;
2116
+ let r = K.value;
2122
2117
  if (r && r.contains(e.target)) {
2123
2118
  let t = e.target.closest(".vue-ui-dag-node"), n = e.target.closest(".vue-ui-dag-edge-midpoint");
2124
2119
  if (t || n) return;
2125
2120
  }
2126
- Gt(), Q(), qe.value || kn();
2121
+ Kt(), Q(), Ke.value || An();
2127
2122
  }
2128
- function qt(e) {
2129
- e.key === "Escape" && (B.value && Gt(), U.value && Q());
2123
+ function Jt(e) {
2124
+ e.key === "Escape" && (V.value && Kt(), W.value && Q());
2130
2125
  }
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());
2126
+ we(() => {
2127
+ document.addEventListener("mousedown", qt), document.addEventListener("keydown", Jt);
2128
+ }), Ce(() => {
2129
+ document.removeEventListener("mousedown", qt), document.removeEventListener("keydown", Jt), P.value && (F.value && P.value.unobserve(F.value), P.value.disconnect());
2135
2130
  });
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);
2131
+ function Yt() {
2132
+ if (!R.value.responsive) {
2133
+ P.value && (F.value && P.value.unobserve(F.value), P.value.disconnect(), P.value = null, F.value = null);
2139
2134
  return;
2140
2135
  }
2141
2136
  let e = ie(() => {
2142
- if (!j.value) return;
2137
+ if (!M.value) return;
2143
2138
  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
2139
+ chart: M.value,
2140
+ title: R.value.style.chart.title.text ? Fe.value : null,
2141
+ legend: R.value.style.chart.controls.show ? Le.value?.$el : null,
2142
+ source: Ie.value
2148
2143
  });
2149
2144
  requestAnimationFrame(() => {
2150
- Ye.value = Math.max(.1, e), Xe.value = Math.max(.1, t - 12);
2145
+ Je.value = Math.max(.1, e), Ye.value = Math.max(.1, t - 12);
2151
2146
  });
2152
2147
  });
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();
2148
+ P.value && (F.value && P.value.unobserve(F.value), P.value.disconnect()), P.value = new ResizeObserver(e), F.value = M.value ? M.value.parentNode : null, F.value && P.value.observe(F.value), e();
2154
2149
  }
2155
- function Yt(e, t = {}) {
2150
+ function Xt(e, t = {}) {
2156
2151
  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;
2152
+ if (!e || typeof e.getTotalLength != "function") return dt.value && console.warn("VueUiDag @getIdealDashoffsetDelta: invalid path element", e), 0;
2158
2153
  let a = e.getTotalLength(), o = d(i ?? e.getAttribute("stroke-dasharray") ?? (typeof getComputedStyle == "function" ? getComputedStyle(e).strokeDasharray : ""));
2159
2154
  if (!Number.isFinite(o) || o <= 0) return n * a;
2160
2155
  let s = Math.max(1, Math.round(a / o)), c = Math.max(1, Math.ceil(a / o)), l = Math.max(1, Math.floor(a / o)), u;
@@ -2167,26 +2162,26 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
2167
2162
  return t.length % 2 == 1 ? n * 2 : n;
2168
2163
  }
2169
2164
  }
2170
- let Xt = w(/* @__PURE__ */ new Map()), Zt = w(/* @__PURE__ */ new Map());
2171
- function Qt(e) {
2165
+ let Zt = T(/* @__PURE__ */ new Map()), Qt = T(/* @__PURE__ */ new Map());
2166
+ function $t(e) {
2172
2167
  return function(t) {
2173
- t ? Xt.value.set(e, t) : Xt.value.delete(e);
2168
+ t ? Zt.value.set(e, t) : Zt.value.delete(e);
2174
2169
  };
2175
2170
  }
2176
- function $t() {
2177
- Zt.value.forEach((e) => {
2171
+ function en() {
2172
+ Qt.value.forEach((e) => {
2178
2173
  try {
2179
2174
  e.cancel();
2180
2175
  } catch {}
2181
- }), Zt.value.clear();
2176
+ }), Qt.value.clear();
2182
2177
  }
2183
- function en() {
2184
- $t();
2185
- let e = J.value?.edges ?? [];
2178
+ function tn() {
2179
+ en();
2180
+ let e = Y.value?.edges ?? [];
2186
2181
  if (!e.length) return;
2187
- let t = L.value.style.chart.edges.animations, n = Number(t.referenceDistance) > 0 ? Number(t.referenceDistance) : 24;
2182
+ let t = R.value.style.chart.edges.animations, n = Number(t.referenceDistance) > 0 ? Number(t.referenceDistance) : 24;
2188
2183
  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);
2184
+ let r = R.value.style.chart.midpoints.selectedEdge.animated === !0 && Z.value != null && e.id === Z.value, i = !!e?.original?.animated || !!e?.animated || r, a = Zt.value.get(e.id);
2190
2185
  if (!a) return;
2191
2186
  if (!i) {
2192
2187
  a.style.strokeDasharray = "0", a.style.strokeDashoffset = "0";
@@ -2194,7 +2189,7 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
2194
2189
  }
2195
2190
  let o = e?.original?.dasharray ?? t.dasharray;
2196
2191
  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, {
2192
+ let s = ![void 0, null].includes(e?.original?.animationDirection), c = ![void 0, null].includes(t.animationDirection), l = Xt(a, {
2198
2193
  direction: s ? Number(e.original.animationDirection) : c ? Number(t.animationDirection) : -1,
2199
2194
  mode: "oneLapNearest",
2200
2195
  dasharray: String(o)
@@ -2203,21 +2198,21 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
2203
2198
  iterations: Infinity,
2204
2199
  easing: "linear"
2205
2200
  });
2206
- Zt.value.set(e.id, m);
2201
+ Qt.value.set(e.id, m);
2207
2202
  });
2208
2203
  }
2209
- ke(() => J.value && J.value.edges, async () => {
2210
- await xe(), en();
2204
+ Oe(() => Y.value && Y.value.edges, async () => {
2205
+ await be(), tn();
2211
2206
  }, {
2212
2207
  deep: !0,
2213
2208
  immediate: !0
2214
- }), we(() => {
2215
- $t();
2209
+ }), Ce(() => {
2210
+ en();
2216
2211
  });
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,
2212
+ async function nn({ scale: e = 2 } = {}) {
2213
+ if (!M.value) return;
2214
+ let { width: t, height: n } = M.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await te({
2215
+ domElement: M.value,
2221
2216
  base64: !0,
2222
2217
  img: !0,
2223
2218
  scale: e
@@ -2225,132 +2220,132 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
2225
2220
  return {
2226
2221
  imageUri: i,
2227
2222
  base64: a,
2228
- title: L.value.style.chart.title.text ?? "vue-ui-dag",
2223
+ title: R.value.style.chart.title.text ?? "vue-ui-dag",
2229
2224
  width: t,
2230
2225
  height: n,
2231
2226
  aspectRatio: r
2232
2227
  };
2233
2228
  }
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
- }
2229
+ let rn = _(() => {
2230
+ let e = Number(R.value.style.chart.layout.nodeHeight);
2231
+ return Number.isFinite(e) && e > 0 ? e / R.value.style.chart.backgroundPattern.spacingRatio : 12;
2232
+ }), an = _(() => rn.value * (R.value.style.chart.backgroundPattern.dotRadiusRatio / 100)), $ = T(null), on = null, sn = 0;
2241
2233
  function cn(e) {
2242
- Ke.value = "pointer", Z.value = null, sn(e);
2234
+ on &&= (clearTimeout(on), null), $.value !== e && ($.value = e, (R.value.style.chart.nodes.selected.downstreamEdges.animated === !0 || R.value.style.chart.nodes.selected.upstreamEdges.animated === !0) && tn());
2243
2235
  }
2244
- async function ln(e) {
2245
- Ke.value = "pointer", $.value = null, await Ut(e);
2236
+ function ln(e) {
2237
+ Ge.value = "pointer", Z.value = null, cn(e);
2246
2238
  }
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);
2239
+ async function un(e) {
2240
+ Ge.value = "pointer", $.value = null, await Wt(e);
2252
2241
  }
2253
2242
  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, {
2243
+ let t = ++sn;
2244
+ on && clearTimeout(on), on = setTimeout(() => {
2245
+ t === sn && $.value === e && ($.value = null, (R.value.style.chart.nodes.selected.downstreamEdges.animated === !0 || R.value.style.chart.nodes.selected.upstreamEdges.animated === !0) && tn());
2246
+ }, 20);
2247
+ }
2248
+ function fn(e) {
2249
+ let t = e.from === $.value, n = e.to === $.value, r = L.value === "midpoint" && I.value === e.id, i = Z.value === e.id || z.value?.id === e.id || r, a = e.original.color ?? R.value.style.chart.edges.stroke;
2250
+ return i && R.value.style.chart.midpoints.selectedEdge.stroke != null ? a = R.value.style.chart.midpoints.selectedEdge.stroke : t && R.value.style.chart.nodes.selected.downstreamEdges.stroke != null ? a = R.value.style.chart.nodes.selected.downstreamEdges.stroke : n && R.value.style.chart.nodes.selected.upstreamEdges.stroke != null && (a = R.value.style.chart.nodes.selected.upstreamEdges.stroke), e.animated = t && R.value.style.chart.nodes.selected.downstreamEdges.animated === !0 || n && R.value.style.chart.nodes.selected.upstreamEdges.animated === !0 || r && R.value.style.chart.midpoints.selectedEdge.animated === !0 ? !0 : (Y.value?.edges.find((t) => t.id === e.id))?.original?.animated ?? !1, {
2256
2251
  d: e.pathData,
2257
2252
  fill: "none",
2258
2253
  stroke: a,
2259
- "stroke-width": L.value.style.chart.edges.strokeWidth * (i || e.from === $.value ? 2 : 1),
2254
+ "stroke-width": R.value.style.chart.edges.strokeWidth * (i || e.from === $.value ? 2 : 1),
2260
2255
  "stroke-linecap": "round",
2261
2256
  "stroke-linejoin": "round"
2262
2257
  };
2263
2258
  }
2264
- function fn(e) {
2265
- return I.value === "node" && F.value === e;
2266
- }
2267
2259
  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;
2260
+ return L.value === "node" && I.value === e;
2261
+ }
2262
+ function mn(e) {
2263
+ let t = $.value === e.id, n = L.value === "node" && I.value === e.id, r = t || n, i = r && R.value.style.chart.nodes.selected.backgroundColor != null ? R.value.style.chart.nodes.selected.backgroundColor : e.original.backgroundColor, a = r && R.value.style.chart.nodes.selected.stroke != null ? R.value.style.chart.nodes.selected.stroke : R.value.style.chart.nodes.stroke, o = r && R.value.style.chart.nodes.selected.strokeWidth != null ? R.value.style.chart.nodes.selected.strokeWidth : R.value.style.chart.nodes.strokeWidth;
2269
2264
  return {
2270
2265
  x: e.x - e.width / 2,
2271
2266
  y: e.y - e.height / 2,
2272
2267
  width: e.width,
2273
2268
  height: e.height,
2274
- rx: L.value.style.chart.nodes.borderRadius,
2269
+ rx: R.value.style.chart.nodes.borderRadius,
2275
2270
  fill: i,
2276
2271
  stroke: a,
2277
2272
  "stroke-width": o
2278
2273
  };
2279
2274
  }
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), {
2275
+ function hn(e) {
2276
+ let t = e.from === $.value, n = e.to === $.value, r = L.value === "midpoint" && I.value === e.id, i = Z.value === e.id || z.value?.id === e.id || r, a = e.original.color ?? R.value.style.chart.edges.stroke;
2277
+ return i && R.value.style.chart.midpoints.selectedEdge.stroke != null ? a = R.value.style.chart.midpoints.selectedEdge.stroke : t && R.value.style.chart.nodes.selected.downstreamEdges.stroke != null ? a = R.value.style.chart.nodes.selected.downstreamEdges.stroke : n && R.value.style.chart.nodes.selected.upstreamEdges.stroke != null && (a = R.value.style.chart.nodes.selected.upstreamEdges.stroke), {
2283
2278
  cx: e.midpoint.x,
2284
2279
  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,
2280
+ r: R.value.style.chart.midpoints.radius,
2281
+ fill: r ? R.value.style.chart.midpoints.selectedEdge.stroke ?? R.value.style.chart.midpoints.fill : R.value.style.chart.midpoints.fill,
2287
2282
  stroke: a,
2288
- "stroke-width": L.value.style.chart.edges.strokeWidth * (i || e.from === $.value ? 2 : 1)
2283
+ "stroke-width": R.value.style.chart.edges.strokeWidth * (i || e.from === $.value ? 2 : 1)
2289
2284
  };
2290
2285
  }
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
2286
  function gn(e) {
2287
+ let t = e.from === $.value, n = e.to === $.value, r = L.value === "midpoint" && I.value === e.id, i = Z.value === e.id || z.value?.id === e.id || r, a = e.color ?? e.original?.color ?? R.value.style.chart.edges.stroke;
2288
+ return i && R.value.style.chart.midpoints.selectedEdge.stroke != null ? a = R.value.style.chart.midpoints.selectedEdge.stroke : t && R.value.style.chart.nodes.selected.downstreamEdges.stroke != null ? a = R.value.style.chart.nodes.selected.downstreamEdges.stroke : n && R.value.style.chart.nodes.selected.upstreamEdges.stroke != null && (a = R.value.style.chart.nodes.selected.upstreamEdges.stroke), a;
2289
+ }
2290
+ function _n(e) {
2296
2291
  return `${wt}-${String(e).replace(/[^a-zA-Z0-9_-]/g, "_")}`;
2297
2292
  }
2298
- function _n() {
2299
- return J.value;
2293
+ function vn() {
2294
+ return Y.value;
2300
2295
  }
2301
- function vn(e) {
2296
+ function yn(e) {
2302
2297
  if (e?.stage === "start") {
2303
- Ue.value = !0;
2298
+ He.value = !0;
2304
2299
  return;
2305
2300
  }
2306
2301
  if (e?.stage === "end") {
2307
- Ue.value = !1;
2302
+ He.value = !1;
2308
2303
  return;
2309
2304
  }
2310
- ht();
2305
+ mt();
2311
2306
  }
2312
- async function yn() {
2313
- if (A("copyAlt", {
2314
- config: L.value,
2315
- dataset: lt.value
2316
- }), !L.value.userOptions.callbacks.altCopy) {
2307
+ async function bn() {
2308
+ if (j("copyAlt", {
2309
+ config: R.value,
2310
+ dataset: ct.value
2311
+ }), !R.value.userOptions.callbacks.altCopy) {
2317
2312
  console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
2318
2313
  return;
2319
2314
  }
2320
- await Promise.resolve(L.value.userOptions.callbacks.altCopy({
2321
- config: L.value,
2322
- dataset: lt.value
2315
+ await Promise.resolve(R.value.userOptions.callbacks.altCopy({
2316
+ config: R.value,
2317
+ dataset: ct.value
2323
2318
  }));
2324
2319
  }
2325
- let bn = _(() => (J.value?.nodes ?? []).map((e) => ({
2320
+ let xn = _(() => (Y.value?.nodes ?? []).map((e) => ({
2326
2321
  id: e.id,
2327
2322
  type: "node",
2328
2323
  x: e.x,
2329
2324
  y: e.y,
2330
2325
  label: e.label ?? e.id,
2331
2326
  raw: e
2332
- }))), xn = _(() => L.value.style.chart.midpoints.show ? (J.value?.edges ?? []).filter((e) => e?.midpoint).map((e) => ({
2327
+ }))), Sn = _(() => R.value.style.chart.midpoints.show ? (Y.value?.edges ?? []).filter((e) => e?.midpoint).map((e) => ({
2333
2328
  id: e.id,
2334
2329
  type: "midpoint",
2335
2330
  x: e.midpoint.x,
2336
2331
  y: e.midpoint.y,
2337
- label: `${Y(e.from)?.label ?? e.from} → ${Y(e.to)?.label ?? e.to}`,
2332
+ label: `${X(e.from)?.label ?? e.from} → ${X(e.to)?.label ?? e.to}`,
2338
2333
  raw: e
2339
- })) : []), Sn = _(() => [...bn.value, ...xn.value].sort((e, t) => e.x === t.x ? e.y - t.y : e.x - t.x)), Cn = _(() => {
2334
+ })) : []), Cn = _(() => [...xn.value, ...Sn.value].sort((e, t) => e.x === t.x ? e.y - t.y : e.x - t.x)), wn = _(() => {
2340
2335
  let e = /* @__PURE__ */ new Map();
2341
- return Sn.value.forEach((t, n) => {
2336
+ return Cn.value.forEach((t, n) => {
2342
2337
  e.set(`${t.type}:${t.id}`, n);
2343
2338
  }), e;
2344
- }), wn = _(() => {
2345
- let e = J.value?.nodes ?? [], t = J.value?.edges ?? [];
2339
+ }), Tn = _(() => {
2340
+ let e = Y.value?.nodes ?? [], t = Y.value?.edges ?? [];
2346
2341
  return {
2347
2342
  headers: [
2348
- L.value.a11y?.translations?.node ?? "Node",
2349
- L.value.a11y?.translations?.parents ?? "Parents",
2350
- L.value.a11y?.translations?.children ?? "Children"
2343
+ R.value.a11y?.translations?.node ?? "Node",
2344
+ R.value.a11y?.translations?.parents ?? "Parents",
2345
+ R.value.a11y?.translations?.children ?? "Children"
2351
2346
  ],
2352
2347
  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(", ");
2348
+ let n = t.filter((t) => t.to === e.id).map((e) => X(e.from)?.label ?? e.from).join(", "), r = t.filter((t) => t.from === e.id).map((e) => X(e.to)?.label ?? e.to).join(", ");
2354
2349
  return [
2355
2350
  e.label ?? e.id,
2356
2351
  n || "—",
@@ -2359,138 +2354,138 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
2359
2354
  })
2360
2355
  };
2361
2356
  });
2362
- function Tn(e) {
2357
+ function En(e) {
2363
2358
  return `${e.type}:${e.id}`;
2364
2359
  }
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;
2360
+ function Dn() {
2361
+ return I.value == null || L.value == null ? null : Cn.value.find((e) => e.id === I.value && e.type === L.value) ?? null;
2367
2362
  }
2368
- async function Dn(e) {
2363
+ async function On(e) {
2369
2364
  if (e) {
2370
2365
  if (e.type === "node") {
2371
2366
  Q();
2372
2367
  return;
2373
2368
  }
2374
- e.type === "midpoint" && (Gt(), await Ut(e.raw));
2369
+ e.type === "midpoint" && (Kt(), await Wt(e.raw));
2375
2370
  }
2376
2371
  }
2377
- function On(e) {
2372
+ function kn(e) {
2378
2373
  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;
2374
+ if (I.value = e.id, L.value = e.type, We.value = wn.value.get(En(e)) ?? null, e.type === "node") {
2375
+ cn(e.id), Z.value = null;
2381
2376
  return;
2382
2377
  }
2383
- e.type === "midpoint" && ($.value = null, Z.value = e.id, L.value.style.chart.midpoints.selectedEdge.animated === !0 && en());
2378
+ e.type === "midpoint" && ($.value = null, Z.value = e.id, R.value.style.chart.midpoints.selectedEdge.animated === !0 && tn());
2384
2379
  }
2385
2380
  }
2386
- 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());
2388
- }
2389
2381
  function An() {
2390
- qe.value = !0, kn();
2382
+ I.value = null, L.value = null, We.value = null, V.value || ($.value = null), W.value || (Z.value = null, R.value.style.chart.midpoints.selectedEdge.animated === !0 && tn());
2391
2383
  }
2392
2384
  function jn() {
2393
- qe.value = !1, Gt(), Q(), kn();
2385
+ Ke.value = !0, An();
2386
+ }
2387
+ function Mn() {
2388
+ Ke.value = !1, Kt(), Q(), An();
2394
2389
  }
2395
- function Mn(e, t, n) {
2390
+ function Nn(e, t, n) {
2396
2391
  let r = t.x - e.x, i = t.y - e.y;
2397
2392
  return n === "right" && r <= 0 || n === "left" && r >= 0 || n === "down" && i <= 0 || n === "up" && i >= 0 ? Infinity : n === "right" || n === "left" ? Math.abs(r) * 1e3 + Math.abs(i) : Math.abs(i) * 1e3 + Math.abs(r);
2398
2393
  }
2399
- function Nn(e, t) {
2400
- let n = Sn.value.filter((t) => Tn(t) !== Tn(e));
2394
+ function Pn(e, t) {
2395
+ let n = Cn.value.filter((t) => En(t) !== En(e));
2401
2396
  if (!n.length) return null;
2402
2397
  let r = null, i = Infinity;
2403
2398
  return n.forEach((n) => {
2404
- let a = Mn(e, n, t);
2399
+ let a = Nn(e, n, t);
2405
2400
  a < i && (i = a, r = n);
2406
- }), r || (t === "right" || t === "down" ? Sn.value[0] ?? null : Sn.value[Sn.value.length - 1] ?? null);
2407
- }
2408
- async function Pn(e) {
2409
- e && (Ke.value = "keyboard", e.type === "node" && (Q(), await Wt(e.raw)));
2401
+ }), r || (t === "right" || t === "down" ? Cn.value[0] ?? null : Cn.value[Cn.value.length - 1] ?? null);
2410
2402
  }
2411
2403
  async function Fn(e) {
2412
- if (!G.value || W.value || document.activeElement !== G.value || !Sn.value.length) return;
2404
+ e && (Ge.value = "keyboard", e.type === "node" && (Q(), await Gt(e.raw)));
2405
+ }
2406
+ async function In(e) {
2407
+ if (!K.value || G.value || document.activeElement !== K.value || !Cn.value.length) return;
2413
2408
  let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
2414
2409
  if (!t && !n && !r && !i && !a && !o) return;
2415
2410
  if (e.preventDefault(), e.stopPropagation(), o) {
2416
- Gt(), Q(), kn();
2411
+ Kt(), Q(), An();
2417
2412
  return;
2418
2413
  }
2419
- let s = En();
2414
+ let s = Dn();
2420
2415
  if (a) {
2421
2416
  if (!s) return;
2422
- s.type === "node" && await Pn(s);
2417
+ s.type === "node" && await Fn(s);
2423
2418
  return;
2424
2419
  }
2425
2420
  if (!s) {
2426
- let e = Sn.value[0];
2421
+ let e = Cn.value[0];
2427
2422
  if (!e) return;
2428
- On(e), await Dn(e);
2423
+ kn(e), await On(e);
2429
2424
  return;
2430
2425
  }
2431
2426
  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));
2427
+ n ? c = Pn(s, "right") : t ? c = Pn(s, "left") : i ? c = Pn(s, "down") : r && (c = Pn(s, "up")), c && (Kt(), Q(), kn(c), await On(c));
2433
2428
  }
2434
2429
  return i({
2435
- getData: _n,
2436
- getImage: tn,
2437
- generatePdf: mt,
2430
+ getData: vn,
2431
+ getImage: nn,
2432
+ generatePdf: pt,
2438
2433
  generateSvg: yt,
2439
- generateImage: ht,
2440
- toggleAnnotator: It,
2441
- toggleFullscreen: Ft,
2442
- zoomIn: Lt,
2443
- zoomOut: Rt,
2434
+ generateImage: mt,
2435
+ toggleAnnotator: Lt,
2436
+ toggleFullscreen: It,
2437
+ zoomIn: Rt,
2438
+ zoomOut: zt,
2444
2439
  resetZoom: Ot,
2445
- switchDirection: Bt,
2446
- 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}`,
2440
+ switchDirection: Vt,
2441
+ copyAlt: bn
2442
+ }), (e, t) => (w(), b("div", {
2443
+ class: xe(`vue-data-ui-component vue-ui-dag ${Ft.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${R.value.responsive ? "vue-ui-dag-responsive" : ""}`),
2444
+ id: `dag_${N.value}`,
2450
2445
  ref_key: "dagChart",
2451
- ref: j,
2452
- style: Ce({
2453
- fontFamily: L.value.style.fontFamily,
2454
- backgroundColor: L.value.style.chart.backgroundColor,
2446
+ ref: M,
2447
+ style: Se({
2448
+ fontFamily: R.value.style.fontFamily,
2449
+ backgroundColor: R.value.style.chart.backgroundColor,
2455
2450
  padding: "0.5rem"
2456
2451
  }),
2457
2452
  onMouseenter: bt,
2458
2453
  onMouseleave: xt
2459
2454
  }, [
2460
- b("div", {
2461
- id: `chart-instructions-${M.value}`,
2455
+ x("div", {
2456
+ id: `chart-instructions-${N.value}`,
2462
2457
  class: "sr-only"
2463
- }, [b("p", null, De(L.value.a11y.translations.keyboardNavigation), 1)], 8, $n),
2464
- wn.value?.rows?.length ? (C(), he(oe, {
2458
+ }, [x("p", null, Ee(R.value.a11y.translations.keyboardNavigation), 1)], 8, $n),
2459
+ Tn.value?.rows?.length ? (w(), v(oe, {
2465
2460
  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
2461
+ uid: N.value,
2462
+ head: Tn.value.headers,
2463
+ body: Tn.value.rows,
2464
+ notice: R.value.a11y.translations.tableAvailable,
2465
+ caption: R.value.a11y.translations.tableCaption
2471
2466
  }, null, 8, [
2472
2467
  "uid",
2473
2468
  "head",
2474
2469
  "body",
2475
2470
  "notice",
2476
2471
  "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), {
2472
+ ])) : y("", !0),
2473
+ D(Ct) ? (w(), b("div", er, Ee(String(D(Ct))), 1)) : y("", !0),
2474
+ R.value.userOptions.buttons.annotator ? (w(), v(D(ke), {
2480
2475
  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
2476
+ svgRef: D(K),
2477
+ backgroundColor: R.value.style.chart.backgroundColor,
2478
+ color: R.value.style.chart.color,
2479
+ active: G.value,
2480
+ isCursorPointer: qe.value,
2481
+ onClose: Lt
2487
2482
  }, {
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)]),
2483
+ "annotator-action-close": O(() => [E(e.$slots, "annotator-action-close", {}, void 0, !0)]),
2484
+ "annotator-action-color": O(({ color: t }) => [E(e.$slots, "annotator-action-color", C(S({ color: t })), void 0, !0)]),
2485
+ "annotator-action-draw": O(({ mode: t }) => [E(e.$slots, "annotator-action-draw", C(S({ mode: t })), void 0, !0)]),
2486
+ "annotator-action-undo": O(({ disabled: t }) => [E(e.$slots, "annotator-action-undo", C(S({ disabled: t })), void 0, !0)]),
2487
+ "annotator-action-redo": O(({ disabled: t }) => [E(e.$slots, "annotator-action-redo", C(S({ disabled: t })), void 0, !0)]),
2488
+ "annotator-action-delete": O(({ disabled: t }) => [E(e.$slots, "annotator-action-delete", C(S({ disabled: t })), void 0, !0)]),
2494
2489
  _: 3
2495
2490
  }, 8, [
2496
2491
  "svgRef",
@@ -2498,47 +2493,47 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
2498
2493
  "color",
2499
2494
  "active",
2500
2495
  "isCursorPointer"
2501
- ])) : v("", !0),
2502
- L.value.userOptions.show && He.value && (E(ot) || E(it)) ? (C(), he(E(Me), {
2496
+ ])) : y("", !0),
2497
+ R.value.userOptions.show && Ve.value && (D(at) || D(rt)) ? (w(), v(D(je), {
2503
2498
  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,
2499
+ key: `user_option_${ze.value}`,
2500
+ backgroundColor: R.value.style.chart.backgroundColor,
2501
+ color: R.value.style.chart.color,
2502
+ isPrinting: D(ft),
2503
+ isImaging: D(J),
2504
+ uid: N.value,
2510
2505
  hasTooltip: !1,
2511
2506
  hasTable: !1,
2512
2507
  hasXls: !1,
2513
2508
  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,
2509
+ hasPdf: R.value.userOptions.buttons.pdf,
2510
+ hasImg: R.value.userOptions.buttons.img,
2511
+ hasSvg: R.value.userOptions.buttons.svg,
2512
+ hasFullscreen: R.value.userOptions.buttons.fullscreen,
2513
+ hasAltCopy: R.value.userOptions.buttons.altCopy,
2514
+ isFullscreen: Ft.value,
2515
+ chartElement: M.value,
2516
+ position: R.value.userOptions.position,
2517
+ titles: { ...R.value.userOptions.buttonTitles },
2518
+ hasAnnotator: R.value.userOptions.buttons.annotator,
2519
+ isAnnotation: G.value,
2520
+ callbacks: R.value.userOptions.callbacks,
2521
+ printScale: R.value.userOptions.print.scale,
2522
+ hasZoom: R.value.userOptions.buttons.zoom,
2528
2523
  isZoom: Et.value,
2529
- isCursorPointer: Je.value,
2530
- onToggleFullscreen: Ft,
2531
- onGeneratePdf: E(mt),
2532
- onGenerateImage: vn,
2524
+ isCursorPointer: qe.value,
2525
+ onToggleFullscreen: It,
2526
+ onGeneratePdf: D(pt),
2527
+ onGenerateImage: yn,
2533
2528
  onGenerateSvg: yt,
2534
- onToggleAnnotator: It,
2529
+ onToggleAnnotator: Lt,
2535
2530
  onToggleZoom: Mt,
2536
- onCopyAlt: yn,
2537
- style: Ce({ visibility: E(ot) ? E(it) ? "visible" : "hidden" : "visible" })
2538
- }, ge({ _: 2 }, [
2531
+ onCopyAlt: bn,
2532
+ style: Se({ visibility: D(at) ? D(rt) ? "visible" : "hidden" : "visible" })
2533
+ }, he({ _: 2 }, [
2539
2534
  e.$slots.menuIcon ? {
2540
2535
  name: "menuIcon",
2541
- fn: D(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", S(x({
2536
+ fn: O(({ isOpen: t, color: n }) => [E(e.$slots, "menuIcon", C(S({
2542
2537
  isOpen: t,
2543
2538
  color: n
2544
2539
  })), void 0, !0)]),
@@ -2546,22 +2541,22 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
2546
2541
  } : void 0,
2547
2542
  e.$slots.optionPdf ? {
2548
2543
  name: "optionPdf",
2549
- fn: D(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
2544
+ fn: O(() => [E(e.$slots, "optionPdf", {}, void 0, !0)]),
2550
2545
  key: "1"
2551
2546
  } : void 0,
2552
2547
  e.$slots.optionImg ? {
2553
2548
  name: "optionImg",
2554
- fn: D(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
2549
+ fn: O(() => [E(e.$slots, "optionImg", {}, void 0, !0)]),
2555
2550
  key: "2"
2556
2551
  } : void 0,
2557
2552
  e.$slots.optionSvg ? {
2558
2553
  name: "optionSvg",
2559
- fn: D(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
2554
+ fn: O(() => [E(e.$slots, "optionSvg", {}, void 0, !0)]),
2560
2555
  key: "3"
2561
2556
  } : void 0,
2562
2557
  e.$slots.optionFullscreen ? {
2563
2558
  name: "optionFullscreen",
2564
- fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", S(x({
2559
+ fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [E(e.$slots, "optionFullscreen", C(S({
2565
2560
  toggleFullscreen: t,
2566
2561
  isFullscreen: n
2567
2562
  })), void 0, !0)]),
@@ -2569,7 +2564,7 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
2569
2564
  } : void 0,
2570
2565
  e.$slots.optionAnnotator ? {
2571
2566
  name: "optionAnnotator",
2572
- fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", S(x({
2567
+ fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [E(e.$slots, "optionAnnotator", C(S({
2573
2568
  toggleAnnotator: t,
2574
2569
  isAnnotator: n
2575
2570
  })), void 0, !0)]),
@@ -2577,7 +2572,7 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
2577
2572
  } : void 0,
2578
2573
  e.$slots.optionZoom ? {
2579
2574
  name: "optionZoom",
2580
- fn: D(({ toggleZoom: t, isZoomLocked: n }) => [T(e.$slots, "optionZoom", S(x({
2575
+ fn: O(({ toggleZoom: t, isZoomLocked: n }) => [E(e.$slots, "optionZoom", C(S({
2581
2576
  toggleZoom: t,
2582
2577
  isZoomLocked: n
2583
2578
  })), void 0, !0)]),
@@ -2585,17 +2580,17 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
2585
2580
  } : void 0,
2586
2581
  e.$slots.optionAltCopy ? {
2587
2582
  name: "optionAltCopy",
2588
- fn: D(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", S(x({ altCopy: t })), void 0, !0)]),
2583
+ fn: O(({ altCopy: t }) => [E(e.$slots, "optionAltCopy", C(S({ altCopy: t })), void 0, !0)]),
2589
2584
  key: "7"
2590
2585
  } : void 0,
2591
2586
  e.$slots["custom-menu-before"] ? {
2592
2587
  name: "custom-menu-before",
2593
- fn: D(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
2588
+ fn: O(() => [E(e.$slots, "custom-menu-before", {}, void 0, !0)]),
2594
2589
  key: "8"
2595
2590
  } : void 0,
2596
2591
  e.$slots["custom-menu-after"] ? {
2597
2592
  name: "custom-menu-after",
2598
- fn: D(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
2593
+ fn: O(() => [E(e.$slots, "custom-menu-after", {}, void 0, !0)]),
2599
2594
  key: "9"
2600
2595
  } : void 0
2601
2596
  ]), 1032, [
@@ -2622,296 +2617,296 @@ var Zn = /* @__PURE__ */ e({ default: () => jr }), Qn = ["id"], $n = ["id"], er
2622
2617
  "isCursorPointer",
2623
2618
  "onGeneratePdf",
2624
2619
  "style"
2625
- ])) : v("", !0),
2626
- L.value.style.chart.title.text ? (C(), y("div", {
2620
+ ])) : y("", !0),
2621
+ R.value.style.chart.title.text ? (w(), b("div", {
2627
2622
  key: 4,
2628
2623
  ref_key: "chartTitle",
2629
- ref: Ie,
2624
+ ref: Fe,
2630
2625
  style: "width:100%;background:transparent;"
2631
- }, [(C(), he(ne, {
2632
- key: `title_${ze.value}`,
2626
+ }, [(w(), v(ne, {
2627
+ key: `title_${Re.value}`,
2633
2628
  config: {
2634
2629
  title: {
2635
2630
  cy: "dag-title",
2636
- ...L.value.style.chart.title
2631
+ ...R.value.style.chart.title
2637
2632
  },
2638
2633
  subtitle: {
2639
2634
  cy: "dag-subtitle",
2640
- ...L.value.style.chart.title.subtitle
2635
+ ...R.value.style.chart.title.subtitle
2641
2636
  }
2642
2637
  }
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, {
2638
+ }, null, 8, ["config"]))], 512)) : y("", !0),
2639
+ R.value.style.chart.controls.position === "top" && !D(st) && R.value.style.chart.controls.show ? (w(), v(ue, {
2645
2640
  key: 5,
2646
2641
  ref_key: "zoomControls",
2647
- ref: Re,
2648
- config: L.value,
2649
- scale: E(At),
2650
- isFullscreen: X.value,
2642
+ ref: Le,
2643
+ config: R.value,
2644
+ scale: D(At),
2645
+ isFullscreen: Ft.value,
2651
2646
  withDirection: "",
2652
- onZoomIn: Lt,
2653
- onZoomOut: Rt,
2654
- onResetZoom: t[0] ||= () => E(Ot)(!0),
2655
- onSwitchDirection: Bt
2647
+ onZoomIn: Rt,
2648
+ onZoomOut: zt,
2649
+ onResetZoom: t[0] ||= () => D(Ot)(!0),
2650
+ onSwitchDirection: Vt
2656
2651
  }, null, 8, [
2657
2652
  "config",
2658
2653
  "scale",
2659
2654
  "isFullscreen"
2660
- ])) : v("", !0),
2661
- b("div", tr, [E(J) ? (C(), y("svg", {
2655
+ ])) : y("", !0),
2656
+ x("div", tr, [D(Y) ? (w(), b("svg", {
2662
2657
  key: 0,
2663
2658
  ref_key: "svgRef",
2664
- ref: G,
2665
- class: Se({
2659
+ ref: K,
2660
+ class: xe({
2666
2661
  "vue-ui-dag-svg": !0,
2667
- "vue-data-ui-loading": E(ct)
2662
+ "vue-data-ui-loading": D(st)
2668
2663
  }),
2669
2664
  viewBox: Pt.value,
2670
- xmlns: E(s),
2671
- style: Ce({
2672
- backgroundColor: L.value.style.chart.backgroundColor,
2665
+ xmlns: D(s),
2666
+ style: Se({
2667
+ backgroundColor: R.value.style.chart.backgroundColor,
2673
2668
  height: "100%",
2674
2669
  width: "100%"
2675
2670
  }),
2676
2671
  tabindex: "0",
2677
- "aria-describedby": `chart-instructions-${M.value}`,
2678
- onFocus: An,
2679
- onBlur: jn,
2680
- onKeydown: Fn
2672
+ "aria-describedby": `chart-instructions-${N.value}`,
2673
+ onFocus: jn,
2674
+ onBlur: Mn,
2675
+ onKeydown: In
2681
2676
  }, [
2682
- ve(E(Ne)),
2683
- L.value.style.chart.backgroundPattern.show ? (C(), y("defs", rr, [b("pattern", {
2684
- id: `dag_bg_pattern_${M.value}`,
2677
+ _e(D(Me)),
2678
+ R.value.style.chart.backgroundPattern.show ? (w(), b("defs", rr, [x("pattern", {
2679
+ id: `dag_bg_pattern_${N.value}`,
2685
2680
  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", {
2681
+ width: rn.value,
2682
+ height: rn.value
2683
+ }, [E(e.$slots, "background-pattern", C(S({
2684
+ x: rn.value / 2,
2685
+ y: rn.value / 2,
2686
+ color: R.value.style.chart.backgroundPattern.dotColor
2687
+ })), () => [x("circle", {
2688
+ cx: rn.value / 2,
2689
+ cy: rn.value / 2,
2690
+ r: an.value,
2691
+ fill: R.value.style.chart.backgroundPattern.dotColor
2692
+ }, null, 8, ar)], !0)], 8, ir)])) : y("", !0),
2693
+ R.value.style.chart.backgroundPattern.show ? (w(), b("rect", {
2699
2694
  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({
2695
+ x: D(Dt)?.x ?? 0,
2696
+ y: D(Dt)?.y ?? 0,
2697
+ width: D(Dt)?.width ?? 0,
2698
+ height: D(Dt)?.height ?? 0,
2699
+ fill: `url(#dag_bg_pattern_${N.value})`,
2700
+ style: Se({
2706
2701
  pointerEvents: "none",
2707
- opacity: L.value.style.chart.backgroundPattern.opacity
2702
+ opacity: R.value.style.chart.backgroundPattern.opacity
2708
2703
  })
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", {
2704
+ }, null, 12, or)) : y("", !0),
2705
+ D(Y).arrowShape === "undirected" ? y("", !0) : (w(), b("defs", sr, [(w(!0), b(fe, null, Te(D(Y).edges, (e) => (w(), b("marker", {
2711
2706
  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,
2707
+ id: _n(e.id),
2708
+ markerWidth: D(Y).arrowSize,
2709
+ markerHeight: D(Y).arrowSize,
2710
+ refX: D(Y).arrowSize - 3,
2711
+ refY: D(Y).arrowSize / 2,
2717
2712
  orient: "auto",
2718
2713
  markerUnits: "strokeWidth"
2719
- }, [E(J).arrowShape === "normal" ? (C(), y("path", {
2714
+ }, [D(Y).arrowShape === "normal" ? (w(), b("path", {
2720
2715
  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),
2716
+ d: `M 0 0 L ${D(Y).arrowSize} ${D(Y).arrowSize / 2} L 0 ${D(Y).arrowSize} Z`,
2717
+ fill: gn(e),
2718
+ stroke: gn(e),
2724
2719
  "stroke-width": "0",
2725
2720
  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", {
2721
+ }, null, 8, lr)) : (w(), b("path", {
2727
2722
  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),
2723
+ d: `M 0 0 L ${D(Y).arrowSize} ${D(Y).arrowSize / 2} L 0 ${D(Y).arrowSize} L ${D(Y).arrowSize / 3} ${D(Y).arrowSize / 2} Z`,
2724
+ fill: gn(e),
2725
+ stroke: gn(e),
2731
2726
  "stroke-width": "0",
2732
2727
  style: { transition: "stroke 0.2s ease-in-out,\n fill 0.2s ease-in-out,\n stroke-width 0.2s ease-in-out" }
2733
2728
  }, 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({
2729
+ x("g", dr, [(w(!0), b(fe, null, Te(D(Y).edges, (e) => (w(), b(fe, { key: e.id }, [x("path", ye({
2735
2730
  "data-cy-edge": "",
2736
2731
  ref_for: !0,
2737
- ref: Qt(e.id)
2738
- }, { ref_for: !0 }, dn(e), { style: {
2732
+ ref: $t(e.id)
2733
+ }, { ref_for: !0 }, fn(e), { style: {
2739
2734
  "pointer-events": "none",
2740
2735
  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({
2736
+ } }), null, 16), R.value.style.chart.midpoints.show ? (w(), b("circle", ye({
2742
2737
  key: 0,
2743
2738
  "data-cy-midpoint": "",
2744
2739
  class: "vue-ui-dag-edge-midpoint",
2745
2740
  "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}`,
2741
+ }, { ref_for: !0 }, hn(e), {
2742
+ "aria-label": `${X(e.from)?.label ?? e.from} to ${X(e.to)?.label ?? e.to}`,
2748
2743
  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),
2744
+ onMouseenter: (t) => un(e),
2750
2745
  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", {
2746
+ }), null, 16, fr)) : y("", !0)], 64))), 128))]),
2747
+ x("g", pr, [(w(!0), b(fe, null, Te(D(Y).nodes, (t) => (w(), b("g", {
2753
2748
  key: t.id,
2754
2749
  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({
2750
+ onClick: Ae((e) => R.value.style.chart.nodes.tooltip.showOnClick && Gt(t), ["stop"]),
2751
+ onMouseenter: (e) => ln(t.id),
2752
+ onMouseleave: (e) => dn(t.id)
2753
+ }, [e.$slots.node ? y("", !0) : (w(), b("rect", ye({
2759
2754
  key: 0,
2760
2755
  "data-cy-node": ""
2761
- }, { ref_for: !0 }, pn(t), {
2756
+ }, { ref_for: !0 }, mn(t), {
2762
2757
  "data-a11y-node-id": t.id,
2763
2758
  "aria-label": `${t.label ?? t.id}`,
2764
2759
  style: {
2765
- cursor: L.value.style.chart.nodes.tooltip.showOnClick && Je.value ? "pointer" : "default",
2760
+ cursor: R.value.style.chart.nodes.tooltip.showOnClick && qe.value ? "pointer" : "default",
2766
2761
  transition: "stroke 0.2s ease-in-out, stroke-width 0.2s ease-in-out, fill 0.2s ease-in-out"
2767
2762
  }
2768
- }), null, 16, hr)), e.$slots.node ? (C(), y("foreignObject", {
2763
+ }), null, 16, hr)), e.$slots.node ? (w(), b("foreignObject", {
2769
2764
  key: 1,
2770
2765
  x: t.x - t.width / 2,
2771
2766
  y: t.y - t.height / 2,
2772
2767
  width: t.width,
2773
2768
  height: t.height,
2774
2769
  style: { overflow: "visible" }
2775
- }, [T(e.$slots, "node", be({ ref_for: !0 }, {
2770
+ }, [E(e.$slots, "node", ye({ ref_for: !0 }, {
2776
2771
  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", {
2772
+ orientation: q.value
2773
+ }), void 0, !0)], 8, gr)) : y("", !0)], 40, mr))), 128))]),
2774
+ x("g", _r, [(w(!0), b(fe, null, Te(D(Y).edges, (e) => (w(), b("path", {
2780
2775
  key: e.id,
2781
2776
  d: e.pathData,
2782
2777
  fill: "none",
2783
2778
  stroke: "transparent",
2784
- "stroke-width": L.value.style.chart.edges.strokeWidth * (e.from === $.value || e.id === R.value?.id ? 1.3 : 1),
2779
+ "stroke-width": R.value.style.chart.edges.strokeWidth * (e.from === $.value || e.id === z.value?.id ? 1.3 : 1),
2785
2780
  "stroke-linecap": "round",
2786
2781
  "stroke-linejoin": "round",
2787
- "marker-end": E(J).arrowShape === "undirected" ? null : `url(#${gn(e.id)})`,
2782
+ "marker-end": D(Y).arrowShape === "undirected" ? null : `url(#${_n(e.id)})`,
2788
2783
  style: {
2789
2784
  "pointer-events": "none",
2790
2785
  transition: "stroke-width 0.2s ease-in-out,\n stroke 0.2s ease-in-out"
2791
2786
  }
2792
2787
  }, null, 8, vr))), 128))]),
2793
- b("g", yr, [(C(!0), y(fe, null, Ee(E(J).nodes, (t) => (C(), y("g", {
2788
+ x("g", yr, [(w(!0), b(fe, null, Te(D(Y).nodes, (t) => (w(), b("g", {
2794
2789
  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", {
2790
+ onClick: Ae((e) => R.value.style.chart.nodes.tooltip.showOnClick && Gt(t), ["stop"]),
2791
+ onMouseenter: (e) => cn(t.id),
2792
+ onMouseleave: (e) => dn(t.id)
2793
+ }, [e.$slots["free-node-label"] ? y("", !0) : (w(), b(fe, { key: 0 }, [e.$slots["node-label"] ? (w(), b("text", {
2799
2794
  key: 0,
2800
2795
  x: t.x,
2801
- y: t.y + L.value.style.chart.nodes.labels.fontSize / 3,
2796
+ y: t.y + R.value.style.chart.nodes.labels.fontSize / 3,
2802
2797
  "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",
2798
+ "font-size": R.value.style.chart.nodes.labels.fontSize,
2799
+ fill: $.value === t.id && R.value.style.chart.nodes.selected.labelColor != null ? R.value.style.chart.nodes.selected.labelColor : t.original.color,
2800
+ "font-weight": R.value.style.chart.nodes.labels.bold ? "bold" : "normal",
2806
2801
  style: { transition: "fill 0.2s ease-in-out" }
2807
- }, [T(e.$slots, "node-label", be({ ref_for: !0 }, {
2802
+ }, [E(e.$slots, "node-label", ye({ ref_for: !0 }, {
2808
2803
  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", {
2804
+ orientation: q.value
2805
+ }), () => [ge(Ee(t.label), 1)], !0)], 8, xr)) : !e.$slots["free-node-label"] && !e.$slots.node ? (w(), b("text", {
2811
2806
  key: 1,
2812
2807
  "data-cy-node-label": "",
2813
2808
  x: t.x,
2814
- y: t.y + L.value.style.chart.nodes.labels.fontSize / 3,
2809
+ y: t.y + R.value.style.chart.nodes.labels.fontSize / 3,
2815
2810
  "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",
2811
+ "font-size": R.value.style.chart.nodes.labels.fontSize,
2812
+ fill: ($.value === t.id || pn(t.id)) && R.value.style.chart.nodes.selected.labelColor != null ? R.value.style.chart.nodes.selected.labelColor : t.original.color,
2813
+ "font-weight": R.value.style.chart.nodes.labels.bold ? "bold" : "normal",
2819
2814
  style: { transition: "fill 0.2s ease-in-out" },
2820
- innerHTML: E(n)({
2815
+ innerHTML: D(n)({
2821
2816
  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,
2817
+ fontSize: R.value.style.chart.nodes.labels.fontSize,
2818
+ fontWeight: R.value.style.chart.nodes.labels.bold ? "bold" : "normal",
2819
+ fill: ($.value === t.id || pn(t.id)) && R.value.style.chart.nodes.selected.labelColor != null ? R.value.style.chart.nodes.selected.labelColor : t.original.color,
2825
2820
  x: t.x,
2826
2821
  y: t.y,
2827
2822
  autoOffset: !0
2828
2823
  })
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 }, {
2824
+ }, null, 8, Sr)) : y("", !0)], 64)), e.$slots["free-node-label"] ? (w(), b("g", Cr, [E(e.$slots, "free-node-label", ye({ ref_for: !0 }, {
2830
2825
  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
2826
+ layoutData: D(Y),
2827
+ orientation: q.value
2828
+ }), void 0, !0)])) : y("", !0)], 40, br))), 128))]),
2829
+ E(e.$slots, "svg", { svg: {
2830
+ drawingArea: D(Dt),
2831
+ data: D(Y),
2832
+ orientation: q.value,
2833
+ isPrintingImg: D(ft) || D(J) || He.value,
2834
+ isPrintingSvg: Ue.value
2840
2835
  } }, 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, {
2836
+ ], 46, nr)) : y("", !0), e.$slots.hint ? (w(), b("div", wr, [E(e.$slots, "hint", C(S({
2837
+ hint: R.value.a11y.translations.keyboardNavigation,
2838
+ isVisible: Ke.value
2839
+ })), void 0, !0)])) : y("", !0)]),
2840
+ e.$slots.watermark ? (w(), b("div", Tr, [E(e.$slots, "watermark", C(S({ isPrinting: D(ft) || D(J) || He.value || Ue.value })), void 0, !0)])) : y("", !0),
2841
+ _e(me, { name: "fade" }, {
2842
+ default: O(() => [W.value ? (w(), v(pe, {
2848
2843
  key: 0,
2849
- to: X.value ? j.value : "body"
2850
- }, [b("div", {
2844
+ to: Ft.value ? M.value : "body"
2845
+ }, [x("div", {
2851
2846
  "data-cy-tooltip-midpoint": "",
2852
2847
  ref_key: "tooltipRef",
2853
- ref: z,
2848
+ ref: B,
2854
2849
  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
2850
+ style: Se({
2851
+ ...Ze.value,
2852
+ maxWidth: R.value.style.chart.midpoints.tooltip.maxWidth,
2853
+ "--vue-data-ui-dag-tooltip-background": R.value.style.chart.midpoints.tooltip.backgroundColor,
2854
+ "--vue-data-ui-dag-tooltip-color": R.value.style.chart.midpoints.tooltip.color
2860
2855
  }),
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)]),
2856
+ "data-position": Qe.value
2857
+ }, [E(e.$slots, "tooltip-midpoint", C(S({
2858
+ edge: z.value,
2859
+ layoutData: D(Y)
2860
+ })), () => [z.value ? (w(), b("div", Dr, Ee(X(z.value.from)?.label ?? z.value.from) + " → " + Ee(X(z.value.to)?.label ?? z.value.to), 1)) : y("", !0)], !0)], 12, Er)], 8, ["to"])) : y("", !0)]),
2866
2861
  _: 3
2867
2862
  }),
2868
- ve(me, { name: "fade" }, {
2869
- default: D(() => [B.value ? (C(), he(pe, {
2863
+ _e(me, { name: "fade" }, {
2864
+ default: O(() => [V.value ? (w(), v(pe, {
2870
2865
  key: 0,
2871
- to: X.value ? j.value : "body"
2872
- }, [b("div", {
2866
+ to: Ft.value ? M.value : "body"
2867
+ }, [x("div", {
2873
2868
  "data-cy-tooltip-node": "",
2874
2869
  ref_key: "nodeTooltipRef",
2875
- ref: H,
2870
+ ref: U,
2876
2871
  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
2872
+ style: Se({
2873
+ maxWidth: R.value.style.chart.nodes.tooltip.maxWidth,
2874
+ left: tt.value.left,
2875
+ top: tt.value.top,
2876
+ "--vue-data-ui-dag-node-tooltip-background": R.value.style.chart.nodes.tooltip.backgroundColor,
2877
+ "--vue-data-ui-dag-node-tooltip-color": R.value.style.chart.nodes.tooltip.color
2883
2878
  }),
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)]),
2879
+ "data-position": nt.value
2880
+ }, [E(e.$slots, "tooltip-node", C(S({
2881
+ node: H.value,
2882
+ layoutData: D(Y)
2883
+ })), () => [H.value ? (w(), b("div", kr, Ee(H.value.label), 1)) : y("", !0)], !0)], 12, Or)], 8, ["to"])) : y("", !0)]),
2889
2884
  _: 3
2890
2885
  }),
2891
- L.value.style.chart.controls.position === "bottom" && !E(ct) && L.value.style.chart.controls.show ? (C(), he(ue, {
2886
+ R.value.style.chart.controls.position === "bottom" && !D(st) && R.value.style.chart.controls.show ? (w(), v(ue, {
2892
2887
  key: 7,
2893
2888
  ref_key: "zoomControls",
2894
- ref: Re,
2895
- config: L.value,
2896
- scale: E(At),
2897
- isFullscreen: X.value,
2889
+ ref: Le,
2890
+ config: R.value,
2891
+ scale: D(At),
2892
+ isFullscreen: Ft.value,
2898
2893
  withDirection: "",
2899
- onZoomIn: Lt,
2900
- onZoomOut: Rt,
2901
- onResetZoom: t[1] ||= () => E(Ot)(!0),
2902
- onSwitchDirection: Bt
2894
+ onZoomIn: Rt,
2895
+ onZoomOut: zt,
2896
+ onResetZoom: t[1] ||= () => D(Ot)(!0),
2897
+ onSwitchDirection: Vt
2903
2898
  }, null, 8, [
2904
2899
  "config",
2905
2900
  "scale",
2906
2901
  "isFullscreen"
2907
- ])) : v("", !0),
2908
- e.$slots.source ? (C(), y("div", {
2902
+ ])) : y("", !0),
2903
+ e.$slots.source ? (w(), b("div", {
2909
2904
  key: 8,
2910
2905
  ref_key: "source",
2911
- ref: Le,
2906
+ ref: Ie,
2912
2907
  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)
2908
+ }, [E(e.$slots, "source", {}, void 0, !0)], 512)) : y("", !0),
2909
+ E(e.$slots, "skeleton", {}, () => [D(st) ? (w(), v(m, { key: 0 })) : y("", !0)], !0)
2915
2910
  ], 46, Qn));
2916
2911
  }
2917
2912
  }, [["__scopeId", "data-v-cceceb15"]]);