@sme.up/ketchup2 2.0.0-SNAPSHOT-20250910135224 → 2.0.0-SNAPSHOT-20250910142858

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 (117) hide show
  1. package/dist/{_basePickBy-C8wdmwXA.cjs → _basePickBy-WgGhNsxf.cjs} +1 -1
  2. package/dist/{_basePickBy-DVGfj-F8.js → _basePickBy-ibOE9F0g.js} +2 -2
  3. package/dist/{_baseUniq-BEiQ_n6X.cjs → _baseUniq-Bnp2e6Ic.cjs} +1 -1
  4. package/dist/{_baseUniq-Be6GNF27.js → _baseUniq-DAC4RmJj.js} +1 -1
  5. package/dist/{arc-CKYRQMzm.js → arc-CACqAXKQ.js} +1 -1
  6. package/dist/{arc-CnPg_S9J.cjs → arc-CihmFE_w.cjs} +1 -1
  7. package/dist/{architecture-O4VJ6CD3-Cu_3Nwp4.cjs → architecture-O4VJ6CD3-D4cEUijc.cjs} +1 -1
  8. package/dist/{architecture-O4VJ6CD3-zkc0qgRE.js → architecture-O4VJ6CD3-DyuNxgEW.js} +1 -1
  9. package/dist/{architectureDiagram-W76B3OCA-C6f4_SiL.cjs → architectureDiagram-W76B3OCA-CT6eeGFK.cjs} +1 -1
  10. package/dist/{architectureDiagram-W76B3OCA-CSrAerVq.js → architectureDiagram-W76B3OCA-DqCIavYp.js} +3 -3
  11. package/dist/basic-components/typography/typography.d.ts.map +1 -1
  12. package/dist/{blockDiagram-QIGZ2CNN-B084cYon.cjs → blockDiagram-QIGZ2CNN-Bo13J-98.cjs} +1 -1
  13. package/dist/{blockDiagram-QIGZ2CNN-BdLGE8U6.js → blockDiagram-QIGZ2CNN-G-EShfHs.js} +5 -5
  14. package/dist/{c4Diagram-FPNF74CW-COSc4Hjh.js → c4Diagram-FPNF74CW-DIAc_51j.js} +2 -2
  15. package/dist/{c4Diagram-FPNF74CW-CRUbEzew.cjs → c4Diagram-FPNF74CW-DjNsQ_5L.cjs} +1 -1
  16. package/dist/channel-BQL2pZL_.cjs +1 -0
  17. package/dist/{channel-CQTqYexY.js → channel-CACiRMTJ.js} +1 -1
  18. package/dist/{chunk-4BX2VUAB-ZXxvF_O_.cjs → chunk-4BX2VUAB-AYyLVU7G.cjs} +1 -1
  19. package/dist/{chunk-4BX2VUAB-X6T7WU4Q.js → chunk-4BX2VUAB-Dh834YFJ.js} +1 -1
  20. package/dist/{chunk-55IACEB6-BalehsR7.js → chunk-55IACEB6-BrdqgFRg.js} +1 -1
  21. package/dist/{chunk-55IACEB6-BXU0Qpk6.cjs → chunk-55IACEB6-CczW-Ly9.cjs} +1 -1
  22. package/dist/{chunk-FMBD7UC4-Br99Xgyk.js → chunk-FMBD7UC4-BxwAsaoR.js} +1 -1
  23. package/dist/{chunk-FMBD7UC4-DFEb3Xo0.cjs → chunk-FMBD7UC4-CEFAPDCS.cjs} +1 -1
  24. package/dist/{chunk-K7UQS3LO-7JsF6CDK.js → chunk-K7UQS3LO-CRlSgTPQ.js} +4 -4
  25. package/dist/{chunk-K7UQS3LO-e7KAsG6R.cjs → chunk-K7UQS3LO-iOGUioOK.cjs} +1 -1
  26. package/dist/{chunk-QN33PNHL-BmprB0Wc.cjs → chunk-QN33PNHL-CzYEbfW0.cjs} +1 -1
  27. package/dist/{chunk-QN33PNHL-CBc8Ucfs.js → chunk-QN33PNHL-DmRyFgfo.js} +1 -1
  28. package/dist/{chunk-QZHKN3VN-GslM48tg.js → chunk-QZHKN3VN-Dwu3diZb.js} +1 -1
  29. package/dist/{chunk-QZHKN3VN-B1GW3co8.cjs → chunk-QZHKN3VN-hlyoyB1c.cjs} +1 -1
  30. package/dist/{chunk-TVAH2DTR-dAUXQJkf.cjs → chunk-TVAH2DTR-CVJrgRnB.cjs} +1 -1
  31. package/dist/{chunk-TVAH2DTR-BjbVO3sU.js → chunk-TVAH2DTR-Cn42fYx-.js} +3 -3
  32. package/dist/{chunk-TZMSLE5B-UoVHODJd.js → chunk-TZMSLE5B-ZswEneRP.js} +1 -1
  33. package/dist/{chunk-TZMSLE5B-CkYk0xJ7.cjs → chunk-TZMSLE5B-mYNJDYOh.cjs} +1 -1
  34. package/dist/{classDiagram-v2-RKCZMP56-yKr2ZVVL.js → classDiagram-KNZD7YFC-BzT8H7WT.js} +2 -2
  35. package/dist/{classDiagram-KNZD7YFC-CrgIj_JE.cjs → classDiagram-KNZD7YFC-c5ZB5mUY.cjs} +1 -1
  36. package/dist/{classDiagram-KNZD7YFC-yKr2ZVVL.js → classDiagram-v2-RKCZMP56-BzT8H7WT.js} +2 -2
  37. package/dist/{classDiagram-v2-RKCZMP56-CrgIj_JE.cjs → classDiagram-v2-RKCZMP56-c5ZB5mUY.cjs} +1 -1
  38. package/dist/clone-CarKwQV1.cjs +1 -0
  39. package/dist/{clone-Bq-2MXD_.js → clone-LWvZ-NuM.js} +1 -1
  40. package/dist/components/toolbar/toolbar-types.d.ts +2 -1
  41. package/dist/components/toolbar/toolbar-types.d.ts.map +1 -1
  42. package/dist/components/toolbar/toolbar.d.ts.map +1 -1
  43. package/dist/{cose-bilkent-S5V4N54A-zVbEqBbY.cjs → cose-bilkent-S5V4N54A-BGEQ4ft4.cjs} +1 -1
  44. package/dist/{cose-bilkent-S5V4N54A-BEcJjG5J.js → cose-bilkent-S5V4N54A-Bdej0eOn.js} +1 -1
  45. package/dist/{dagre-5GWH7T2D-BXl-H0VL.cjs → dagre-5GWH7T2D-C4Xw6Igd.cjs} +1 -1
  46. package/dist/{dagre-5GWH7T2D-B5ML3qQ1.js → dagre-5GWH7T2D-CufXqSXY.js} +6 -6
  47. package/dist/{diagram-N5W7TBWH-CsHnzgvl.cjs → diagram-N5W7TBWH-BE14a8vw.cjs} +1 -1
  48. package/dist/{diagram-N5W7TBWH-DyXNRCUu.js → diagram-N5W7TBWH-C_EBEExC.js} +4 -4
  49. package/dist/{diagram-QEK2KX5R-Bi5hURJZ.cjs → diagram-QEK2KX5R-CGn-quiD.cjs} +1 -1
  50. package/dist/{diagram-QEK2KX5R-B2ksetiV.js → diagram-QEK2KX5R-DpHtlQAQ.js} +3 -3
  51. package/dist/{diagram-S2PKOQOG-CZJRECy8.cjs → diagram-S2PKOQOG-Ban1tpT_.cjs} +1 -1
  52. package/dist/{diagram-S2PKOQOG-B49P4Ayf.js → diagram-S2PKOQOG-DJQbEAj2.js} +3 -3
  53. package/dist/{erDiagram-AWTI2OKA-CsAl1M8J.js → erDiagram-AWTI2OKA-71SqvKbR.js} +4 -4
  54. package/dist/{erDiagram-AWTI2OKA-BlND1fTU.cjs → erDiagram-AWTI2OKA-B7k69U46.cjs} +1 -1
  55. package/dist/{flowDiagram-PVAE7QVJ-W7VJHYxF.js → flowDiagram-PVAE7QVJ-BcIeLAS5.js} +5 -5
  56. package/dist/{flowDiagram-PVAE7QVJ-vG4uALEf.cjs → flowDiagram-PVAE7QVJ-DmWqMeWc.cjs} +1 -1
  57. package/dist/{ganttDiagram-OWAHRB6G-BR-PkY7Q.js → ganttDiagram-OWAHRB6G-Bj8WgUSO.js} +2 -2
  58. package/dist/{ganttDiagram-OWAHRB6G-Di3iung-.cjs → ganttDiagram-OWAHRB6G-Dh1P_u9W.cjs} +1 -1
  59. package/dist/{gitGraph-ZV4HHKMB-5ae-0Ra3.js → gitGraph-ZV4HHKMB-Benl-Li0.js} +1 -1
  60. package/dist/{gitGraph-ZV4HHKMB-DRZNB0Ko.cjs → gitGraph-ZV4HHKMB-By34JqjI.cjs} +1 -1
  61. package/dist/{gitGraphDiagram-NY62KEGX-rRmM5Vva.js → gitGraphDiagram-NY62KEGX-BUSA-d6e.js} +4 -4
  62. package/dist/{gitGraphDiagram-NY62KEGX-D08uO8e-.cjs → gitGraphDiagram-NY62KEGX-CrKHXP3r.cjs} +1 -1
  63. package/dist/{graph-G21WTV6o.cjs → graph-BeiyUV_a.cjs} +1 -1
  64. package/dist/{graph-7MitnCL5.js → graph-Doii6qNT.js} +2 -2
  65. package/dist/{index-Uroq8C7z.cjs → index-DP5D6ipx.cjs} +14 -14
  66. package/dist/{index-BVVhGIZS.js → index-UUUTu1nP.js} +260 -248
  67. package/dist/info-63CPKGFF-BKn5Nwis.js +5 -0
  68. package/dist/{info-63CPKGFF-BDB1pKgt.cjs → info-63CPKGFF-Dj6V8EAy.cjs} +1 -1
  69. package/dist/{infoDiagram-STP46IZ2-D6xJZ5O0.js → infoDiagram-STP46IZ2-CdUpe2hf.js} +2 -2
  70. package/dist/{infoDiagram-STP46IZ2-BYSNoOw2.cjs → infoDiagram-STP46IZ2-MAOAb1gO.cjs} +1 -1
  71. package/dist/{journeyDiagram-BIP6EPQ6-D-nDy66w.js → journeyDiagram-BIP6EPQ6-BJGpBbde.js} +4 -4
  72. package/dist/{journeyDiagram-BIP6EPQ6-BKTGKn5U.cjs → journeyDiagram-BIP6EPQ6-sHmCsYkb.cjs} +1 -1
  73. package/dist/{kanban-definition-6OIFK2YF-CM7-qUn4.cjs → kanban-definition-6OIFK2YF-C0rIjDBo.cjs} +1 -1
  74. package/dist/{kanban-definition-6OIFK2YF-KwKp7VEr.js → kanban-definition-6OIFK2YF-fnqIxqd4.js} +2 -2
  75. package/dist/ketchup2.cjs.js +1 -1
  76. package/dist/ketchup2.css +1 -1
  77. package/dist/ketchup2.es.js +1 -1
  78. package/dist/{layout-CEvCx3U8.cjs → layout-DzVzVF-c.cjs} +1 -1
  79. package/dist/{layout-CotxTLyK.js → layout-ikhQg4E3.js} +4 -4
  80. package/dist/{linear-CPPGtAf3.js → linear-CFF2PVMB.js} +1 -1
  81. package/dist/{linear-B7OlpdIy.cjs → linear-RlmmWmic.cjs} +1 -1
  82. package/dist/{mermaid-parser.core-CEQy4iEm.cjs → mermaid-parser.core-BudXq4c4.cjs} +2 -2
  83. package/dist/{mermaid-parser.core-CDecL3CG.js → mermaid-parser.core-Dq_Ra9Q8.js} +11 -11
  84. package/dist/{mindmap-definition-Q6HEUPPD-N3YWjLyR.cjs → mindmap-definition-Q6HEUPPD-BKK5gDW8.cjs} +1 -1
  85. package/dist/{mindmap-definition-Q6HEUPPD-C6O_Fb_j.js → mindmap-definition-Q6HEUPPD-B_Zb16pm.js} +3 -3
  86. package/dist/{packet-HUATNLJX-B2Uu4jN-.cjs → packet-HUATNLJX-poS0aWfw.cjs} +1 -1
  87. package/dist/{packet-HUATNLJX-Bn2ScGAy.js → packet-HUATNLJX-wuQinHL1.js} +1 -1
  88. package/dist/{pie-WTHONI2E-MPZwbhxu.cjs → pie-WTHONI2E-BKViC8Oy.cjs} +1 -1
  89. package/dist/pie-WTHONI2E-BzrcbUMH.js +5 -0
  90. package/dist/{pieDiagram-ADFJNKIX-B8ZlC2R5.cjs → pieDiagram-ADFJNKIX-B8Y2xwGV.cjs} +1 -1
  91. package/dist/{pieDiagram-ADFJNKIX-DPWD7HXY.js → pieDiagram-ADFJNKIX-CuqoMrzq.js} +4 -4
  92. package/dist/{quadrantDiagram-LMRXKWRM-C52Hm7pa.cjs → quadrantDiagram-LMRXKWRM-ClLjVp4G.cjs} +1 -1
  93. package/dist/{quadrantDiagram-LMRXKWRM-Cbz7AkYQ.js → quadrantDiagram-LMRXKWRM-VuvJ3dQN.js} +2 -2
  94. package/dist/radar-NJJJXTRR-D4Sf5GA7.js +5 -0
  95. package/dist/{radar-NJJJXTRR-Sja2oqqm.cjs → radar-NJJJXTRR-I-cNILd_.cjs} +1 -1
  96. package/dist/{requirementDiagram-4UW4RH46-DQquxWj0.cjs → requirementDiagram-4UW4RH46-CPnlXixu.cjs} +1 -1
  97. package/dist/{requirementDiagram-4UW4RH46-DrIi5EEk.js → requirementDiagram-4UW4RH46-ChTupQzv.js} +3 -3
  98. package/dist/{sankeyDiagram-GR3RE2ED-KgxYyjy9.cjs → sankeyDiagram-GR3RE2ED-BEm5ol2v.cjs} +1 -1
  99. package/dist/{sankeyDiagram-GR3RE2ED-Cq_DEnTE.js → sankeyDiagram-GR3RE2ED-CH1Ve8aH.js} +1 -1
  100. package/dist/{sequenceDiagram-C3RYC4MD-Dzav7nSf.cjs → sequenceDiagram-C3RYC4MD-CaEerMcs.cjs} +1 -1
  101. package/dist/{sequenceDiagram-C3RYC4MD-o2An7wPv.js → sequenceDiagram-C3RYC4MD-qQRk3REZ.js} +3 -3
  102. package/dist/{stateDiagram-KXAO66HF-ZIFRlglv.cjs → stateDiagram-KXAO66HF--GNj8xxo.cjs} +1 -1
  103. package/dist/{stateDiagram-KXAO66HF-oliVsJZ1.js → stateDiagram-KXAO66HF-BiPArlXy.js} +4 -4
  104. package/dist/{stateDiagram-v2-UMBNRL4Z-eFJRn_OR.cjs → stateDiagram-v2-UMBNRL4Z-C-_SFRdp.cjs} +1 -1
  105. package/dist/{stateDiagram-v2-UMBNRL4Z-Ca9Q0pmC.js → stateDiagram-v2-UMBNRL4Z-Cmxz9RK4.js} +2 -2
  106. package/dist/{timeline-definition-XQNQX7LJ-Cy9jvtBJ.js → timeline-definition-XQNQX7LJ-BuSCZHs1.js} +2 -2
  107. package/dist/{timeline-definition-XQNQX7LJ-D7JZ8b7s.cjs → timeline-definition-XQNQX7LJ-CKRjz0KY.cjs} +1 -1
  108. package/dist/{treemap-75Q7IDZK-Cb_nNueQ.js → treemap-75Q7IDZK-BNArOQRm.js} +1 -1
  109. package/dist/{treemap-75Q7IDZK-CDZ38-5A.cjs → treemap-75Q7IDZK-DShKvZtb.cjs} +1 -1
  110. package/dist/{xychartDiagram-6GGTOJPD-BJx0oVUp.js → xychartDiagram-6GGTOJPD-DnrWFRq1.js} +2 -2
  111. package/dist/{xychartDiagram-6GGTOJPD-BMgoBW7g.cjs → xychartDiagram-6GGTOJPD-m3q46dcG.cjs} +1 -1
  112. package/package.json +1 -1
  113. package/dist/channel-BkWzCdDL.cjs +0 -1
  114. package/dist/clone-mMh7t6UX.cjs +0 -1
  115. package/dist/info-63CPKGFF-DY_4HLxW.js +0 -5
  116. package/dist/pie-WTHONI2E-DiiDKc6c.js +0 -5
  117. package/dist/radar-NJJJXTRR-B-Hr10yF.js +0 -5
@@ -1,5 +1,5 @@
1
1
  import * as ma from "react";
2
- import ts, { useState as lt, useEffect as Tt, useRef as It, useCallback as Dt, useLayoutEffect as hx, useId as Er, useMemo as In, createElement as ux } from "react";
2
+ import ts, { useState as st, useEffect as Tt, useRef as It, useCallback as Dt, useLayoutEffect as hx, useId as Er, useMemo as In, createElement as ux } from "react";
3
3
  import { createPortal as fx } from "react-dom";
4
4
  function dx(e) {
5
5
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -1384,7 +1384,7 @@ const ND = (e) => {
1384
1384
  tabIndex: f,
1385
1385
  link: d
1386
1386
  }) => {
1387
- const [p, g] = lt(!1), y = (L) => L?.toLowerCase().endsWith(".svg") || !L?.includes("/"), b = (L) => L?.startsWith("http") || L?.startsWith("/"), x = {
1387
+ const [p, g] = st(!1), y = (L) => L?.toLowerCase().endsWith(".svg") || !L?.includes("/"), b = (L) => L?.startsWith("http") || L?.startsWith("/"), x = {
1388
1388
  img: `${c ? "smp-image-interactable" : ""}`,
1389
1389
  svg: `smp-icon ${o ? `smp-icon-${o}` : ""} ${s ? "smp-icon-rotated" : ""} ${c ? "smp-icon-interactable" : ""} ${h ? "smp-icon-spin" : ""}`
1390
1390
  }, w = (L) => {
@@ -1436,7 +1436,7 @@ const ND = (e) => {
1436
1436
  function pr({
1437
1437
  children: e
1438
1438
  }) {
1439
- const [t, r] = lt(!1);
1439
+ const [t, r] = st(!1);
1440
1440
  return Tt(() => {
1441
1441
  r(!0);
1442
1442
  }, []), t ? fx(e, document.body) : null;
@@ -1445,7 +1445,7 @@ function gr({
1445
1445
  position: e = "bottom",
1446
1446
  open: t = !1
1447
1447
  }) {
1448
- const r = It(null), i = It(null), [n, a] = lt(0), o = Dt(() => {
1448
+ const r = It(null), i = It(null), [n, a] = st(0), o = Dt(() => {
1449
1449
  const s = r.current, l = i.current;
1450
1450
  if (!s || !l) return;
1451
1451
  const { top: c, left: h, width: u, height: f } = s.getBoundingClientRect();
@@ -1547,7 +1547,7 @@ const Fo = {
1547
1547
  htmlFor: r,
1548
1548
  helper: i = ""
1549
1549
  }) => {
1550
- const [n, a] = lt(!1), { anchorRef: o, targetRef: s } = gr({
1550
+ const [n, a] = st(!1), { anchorRef: o, targetRef: s } = gr({
1551
1551
  position: "right",
1552
1552
  open: n
1553
1553
  }), l = {
@@ -2043,7 +2043,7 @@ function _d({
2043
2043
  containerHeight: r,
2044
2044
  overscan: i = 5
2045
2045
  }) {
2046
- const [n, a] = lt(0), o = It(null), s = e.length * t, l = Math.max(0, Math.floor(n / t) - i), c = Math.min(
2046
+ const [n, a] = st(0), o = It(null), s = e.length * t, l = Math.max(0, Math.floor(n / t) - i), c = Math.min(
2047
2047
  e.length - 1,
2048
2048
  Math.floor((n + r) / t) + i
2049
2049
  ), h = [];
@@ -2127,9 +2127,9 @@ const Kx = 10, vc = ({
2127
2127
  isOpen: h,
2128
2128
  floating: u = !1
2129
2129
  }) => {
2130
- const [f, d] = lt(""), p = 40, [g, y] = lt(
2130
+ const [f, d] = st(""), p = 40, [g, y] = st(
2131
2131
  a !== null ? a : -1
2132
- ), [b, x] = lt(s || 200), w = It(null), C = n !== void 0 ? n : t.length > Kx, v = f ? t.filter(
2132
+ ), [b, x] = st(s || 200), w = It(null), C = n !== void 0 ? n : t.length > Kx, v = f ? t.filter(
2133
2133
  (O) => O.decode?.toLowerCase()?.includes(f.toLowerCase())
2134
2134
  ) : t, E = (O) => {
2135
2135
  d(O);
@@ -2236,15 +2236,15 @@ const Kx = 10, vc = ({
2236
2236
  }
2237
2237
  );
2238
2238
  }, ar = {
2239
- "smp-floating-toolbar-container": "_smp-floating-toolbar-container_2xpv7_11",
2240
- "smp-toolbar-node-content": "_smp-toolbar-node-content_2xpv7_27",
2241
- "smp-clickable": "_smp-clickable_2xpv7_47",
2242
- "smp-not-clickable": "_smp-not-clickable_2xpv7_57",
2243
- "smp-toolbar-node-children-container": "_smp-toolbar-node-children-container_2xpv7_67",
2244
- "smp-expanded": "_smp-expanded_2xpv7_87",
2245
- "smp-toolbar-node": "_smp-toolbar-node_2xpv7_27",
2246
- "smp-toolbar-node-icon-text-container": "_smp-toolbar-node-icon-text-container_2xpv7_145",
2247
- "smp-toolbar-node-text": "_smp-toolbar-node-text_2xpv7_159"
2239
+ "smp-floating-toolbar-container": "_smp-floating-toolbar-container_s0udi_11",
2240
+ "smp-toolbar-node-content": "_smp-toolbar-node-content_s0udi_29",
2241
+ "smp-clickable": "_smp-clickable_s0udi_49",
2242
+ "smp-not-clickable": "_smp-not-clickable_s0udi_59",
2243
+ "smp-toolbar-node-children-container": "_smp-toolbar-node-children-container_s0udi_69",
2244
+ "smp-expanded": "_smp-expanded_s0udi_89",
2245
+ "smp-toolbar-node": "_smp-toolbar-node_s0udi_29",
2246
+ "smp-toolbar-node-icon-text-container": "_smp-toolbar-node-icon-text-container_s0udi_147",
2247
+ "smp-toolbar-node-text": "_smp-toolbar-node-text_s0udi_161"
2248
2248
  }, Zx = ({
2249
2249
  node: e,
2250
2250
  index: t,
@@ -2361,59 +2361,66 @@ const Kx = 10, vc = ({
2361
2361
  ref: t,
2362
2362
  onToolbarLoadNodeData: r,
2363
2363
  onToolbarLeafNodeClick: i,
2364
- onToolbarLoadInitialData: n
2364
+ onToolbarLoadInitialData: n,
2365
+ registerRef: a
2365
2366
  }) => {
2366
- const a = It(/* @__PURE__ */ new Map()), [o, s] = lt(e), { handleNodeExpand: l, handleMouseLeave: c, onToolbarRadioLeafNodeClick: h } = Vx(
2367
- s,
2367
+ const o = It(/* @__PURE__ */ new Map()), [s, l] = st(e);
2368
+ Tt(() => {
2369
+ a && s && o.current.forEach((y) => {
2370
+ y && a({ current: y });
2371
+ });
2372
+ }, [a, s]);
2373
+ const { handleNodeExpand: c, handleMouseLeave: h, onToolbarRadioLeafNodeClick: u } = Vx(
2374
+ l,
2368
2375
  r,
2369
2376
  i
2370
- ), { handleKeyDown: u } = Yx(
2371
- s,
2372
- a,
2373
- l
2374
- ), f = Cd(400), d = {
2377
+ ), { handleKeyDown: f } = Yx(
2378
+ l,
2379
+ o,
2380
+ c
2381
+ ), d = Cd(400), p = {
2375
2382
  floatingContainer: ar["smp-floating-toolbar-container"]
2376
2383
  };
2377
2384
  Tt(() => {
2378
- !o && n && (n().then((g) => s(g)).catch((g) => {
2379
- console.error("Errore nel caricamento dati iniziali - Toolbar", g);
2380
- }), Fa(a, rs(0)));
2381
- }, [e, f, n, o]);
2382
- const p = Dt(
2383
- (g, y, b = null) => y?.length ? /* @__PURE__ */ S.jsx(S.Fragment, { children: y.map((x, w) => /* @__PURE__ */ S.jsx(
2385
+ !s && n && (n().then((y) => l(y)).catch((y) => {
2386
+ console.error("Errore nel caricamento dati iniziali - Toolbar", y);
2387
+ }), Fa(o, rs(0)));
2388
+ }, [e, d, n, s]);
2389
+ const g = Dt(
2390
+ (y, b, x = null) => b?.length ? /* @__PURE__ */ S.jsx(S.Fragment, { children: b.map((w, C) => /* @__PURE__ */ S.jsx(
2384
2391
  Zx,
2385
2392
  {
2386
- node: x,
2387
- index: w,
2388
- level: g,
2389
- parentId: b,
2390
- toolbarNodesRefs: a,
2391
- handleKeyDown: u,
2392
- handleNodeExpand: l,
2393
- handleMouseLeave: c,
2393
+ node: w,
2394
+ index: C,
2395
+ level: y,
2396
+ parentId: x,
2397
+ toolbarNodesRefs: o,
2398
+ handleKeyDown: f,
2399
+ handleNodeExpand: c,
2400
+ handleMouseLeave: h,
2394
2401
  onToolbarLeafNodeClick: i,
2395
- onToolbarRadioLeafNodeClick: h,
2396
- renderToolbarNodes: p
2402
+ onToolbarRadioLeafNodeClick: u,
2403
+ renderToolbarNodes: g
2397
2404
  },
2398
- rs(w, b ?? "")
2405
+ rs(C, x ?? "")
2399
2406
  )) }) : null,
2400
2407
  [
2401
- u,
2402
- l,
2408
+ f,
2403
2409
  c,
2410
+ h,
2404
2411
  i,
2405
- h
2412
+ u
2406
2413
  ]
2407
2414
  );
2408
- return !o || !o?.children?.length ? null : /* @__PURE__ */ S.jsx(
2415
+ return !s || !s?.children?.length ? null : /* @__PURE__ */ S.jsx(
2409
2416
  "div",
2410
2417
  {
2411
2418
  ref: t,
2412
- className: `${t ? d.floatingContainer : null}`,
2419
+ className: `${t ? p.floatingContainer : null}`,
2413
2420
  "aria-label": "Toolbar",
2414
2421
  "data-component": "toolbar",
2415
2422
  "smp-id": "toolbar-menu",
2416
- children: p(0, o.children)
2423
+ children: g(0, s.children)
2417
2424
  }
2418
2425
  );
2419
2426
  }, ea = (e, t, r) => {
@@ -2444,22 +2451,26 @@ const Kx = 10, vc = ({
2444
2451
  onToolbarLoadNodeData: c,
2445
2452
  ...h
2446
2453
  }) => {
2447
- const u = Wx[e], [f, d] = lt(!1), { anchorRef: p, targetRef: g } = gr({
2454
+ const u = Wx[e], [f, d] = st([]), p = Dt((v) => {
2455
+ d((E) => E.some((T) => T.current === v.current) ? E : [...E, v]);
2456
+ }, []), [g, y] = st(!1), { anchorRef: b, targetRef: x } = gr({
2448
2457
  position: "bottom",
2449
- open: f
2458
+ open: g
2459
+ });
2460
+ ea([x, ...f], g, () => {
2461
+ y(!1), d([]);
2450
2462
  });
2451
- ea([g], f, () => d(!1));
2452
- const y = {
2463
+ const w = {
2453
2464
  container: `smp-typography ${e ? `smp-typography-${e}` : ""} ${h.disabled ? "smp-typography-disabled" : ""} ${n ?? ""}`
2454
- }, b = (x) => {
2455
- s && s(x), d(!1);
2465
+ }, C = (v) => {
2466
+ s && s(v), y(!1);
2456
2467
  };
2457
2468
  return /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
2458
2469
  /* @__PURE__ */ S.jsxs(
2459
2470
  u,
2460
2471
  {
2461
2472
  "data-component": "typography",
2462
- className: y.container,
2473
+ className: w.container,
2463
2474
  disabled: h.disabled,
2464
2475
  style: {
2465
2476
  "--smp-typography-color-base": r,
@@ -2468,26 +2479,27 @@ const Kx = 10, vc = ({
2468
2479
  role: i,
2469
2480
  children: [
2470
2481
  t,
2471
- o && /* @__PURE__ */ S.jsx("div", { "smp-id": "toolbar-button", ref: p, children: /* @__PURE__ */ S.jsx(
2482
+ o && /* @__PURE__ */ S.jsx("div", { "smp-id": "toolbar-button", ref: b, children: /* @__PURE__ */ S.jsx(
2472
2483
  Rt,
2473
2484
  {
2474
2485
  icon: "more_vert",
2475
2486
  isInteractable: !0,
2476
- onClick: (x) => {
2477
- x.stopPropagation(), d(!0);
2487
+ onClick: (v) => {
2488
+ v.stopPropagation(), y(!0);
2478
2489
  }
2479
2490
  }
2480
2491
  ) })
2481
2492
  ]
2482
2493
  }
2483
2494
  ),
2484
- f && /* @__PURE__ */ S.jsx(pr, { children: /* @__PURE__ */ S.jsx(
2495
+ g && /* @__PURE__ */ S.jsx(pr, { children: /* @__PURE__ */ S.jsx(
2485
2496
  Qx,
2486
2497
  {
2487
- ref: g,
2488
- onToolbarLeafNodeClick: b,
2498
+ ref: x,
2499
+ onToolbarLeafNodeClick: C,
2489
2500
  onToolbarLoadNodeData: c,
2490
- onToolbarLoadInitialData: l
2501
+ onToolbarLoadInitialData: l,
2502
+ registerRef: p
2491
2503
  }
2492
2504
  ) })
2493
2505
  ] });
@@ -2515,7 +2527,7 @@ const Kx = 10, vc = ({
2515
2527
  onToolbarLoadNodeData: o,
2516
2528
  onToolbarLeafNodeClick: s
2517
2529
  }) => {
2518
- const [l, c] = lt(i ?? 0), [h, u] = lt(!1), [f, d] = lt(!1), p = It(null);
2530
+ const [l, c] = st(i ?? 0), [h, u] = st(!1), [f, d] = st(!1), p = It(null);
2519
2531
  if (Tt(() => {
2520
2532
  const v = p.current;
2521
2533
  if (!v) return;
@@ -2632,7 +2644,7 @@ const Kx = 10, vc = ({
2632
2644
  ]
2633
2645
  }
2634
2646
  }) => {
2635
- const [r, i] = lt(0), n = {};
2647
+ const [r, i] = st(0), n = {};
2636
2648
  ts.Children.forEach(e, (p) => {
2637
2649
  ts.isValidElement(p) && (n[p.props.id] = p);
2638
2650
  });
@@ -4388,9 +4400,9 @@ const Y1 = (e) => e?.type === "SmeupDataTree", G1 = (e) => e?.type === "SmeupDat
4388
4400
  _multiActiveIndex: f,
4389
4401
  ...d
4390
4402
  }) => {
4391
- const p = It(null), [g, y] = lt(e), [b, x] = lt(t), { translate: w } = vr(), [C, v] = lt(!1), [E, T] = lt(
4403
+ const p = It(null), [g, y] = st(e), [b, x] = st(t), { translate: w } = vr(), [C, v] = st(!1), [E, T] = st(
4392
4404
  r || []
4393
- ), [N, z] = lt(0), [I, k] = lt([e]), { anchorRef: L, targetRef: D, anchorWidth: B } = gr({
4405
+ ), [N, z] = st(0), [I, k] = st([e]), { anchorRef: L, targetRef: D, anchorWidth: B } = gr({
4394
4406
  position: "bottom",
4395
4407
  open: C
4396
4408
  }), O = Dt(() => {
@@ -4487,7 +4499,7 @@ const Y1 = (e) => e?.type === "SmeupDataTree", G1 = (e) => e?.type === "SmeupDat
4487
4499
  onClick: d,
4488
4500
  onOptionsRequest: p
4489
4501
  }) => {
4490
- const [g, y] = lt(e);
4502
+ const [g, y] = st(e);
4491
4503
  Tt(() => {
4492
4504
  !g && p && t && p(t, void 0).then(
4493
4505
  (w) => y(Gi(w))
@@ -4606,7 +4618,7 @@ const yl = ({
4606
4618
  multiActiveIndex: l,
4607
4619
  ...c
4608
4620
  }) => {
4609
- const h = It(null), [u, f] = lt(!1), [d, p] = lt(r), [g, y] = lt(-1), [b, x] = lt([e]), w = Er(), { anchorRef: C, targetRef: v, anchorWidth: E } = gr({
4621
+ const h = It(null), [u, f] = st(!1), [d, p] = st(r), [g, y] = st(-1), [b, x] = st([e]), w = Er(), { anchorRef: C, targetRef: v, anchorWidth: E } = gr({
4610
4622
  position: "bottom",
4611
4623
  open: u
4612
4624
  }), T = Dt(() => {
@@ -4687,13 +4699,13 @@ function Z1({
4687
4699
  if (!i) return;
4688
4700
  const R = new Date(i);
4689
4701
  return isNaN(R.getTime()) ? void 0 : R;
4690
- }, [s] = lt(/* @__PURE__ */ new Date()), [l, c] = lt(
4702
+ }, [s] = st(/* @__PURE__ */ new Date()), [l, c] = st(
4691
4703
  e || o() || /* @__PURE__ */ new Date()
4692
- ), [h, u] = lt(
4704
+ ), [h, u] = st(
4693
4705
  l ? l.getMonth() : (/* @__PURE__ */ new Date()).getMonth()
4694
- ), [f, d] = lt(
4706
+ ), [f, d] = st(
4695
4707
  l ? l.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
4696
- ), [p, g] = lt(
4708
+ ), [p, g] = st(
4697
4709
  l ? l.getDate() : null
4698
4710
  ), y = It(null), b = It([]), x = [
4699
4711
  a(Te.JANUARY),
@@ -5069,7 +5081,7 @@ const Sc = ({
5069
5081
  isOptimized: a,
5070
5082
  ...o
5071
5083
  }) => {
5072
- const s = It(null), [l, c] = lt(!1), [h, u] = lt(e || ""), [f, d] = lt(""), { anchorRef: p, targetRef: g } = gr({
5084
+ const s = It(null), [l, c] = st(!1), [h, u] = st(e || ""), [f, d] = st(""), { anchorRef: p, targetRef: g } = gr({
5073
5085
  position: "bottom",
5074
5086
  open: l
5075
5087
  }), y = Dt(() => {
@@ -5146,7 +5158,7 @@ const Sc = ({
5146
5158
  backgroundColor: a,
5147
5159
  isDraggable: o = !1
5148
5160
  }) => {
5149
- const [s, l] = lt(null), c = {
5161
+ const [s, l] = st(null), c = {
5150
5162
  container: `${["smp-chips-container"]}`,
5151
5163
  element: "smp-chips-element"
5152
5164
  }, h = (d) => {
@@ -5274,7 +5286,7 @@ const Sc = ({
5274
5286
  }
5275
5287
  );
5276
5288
  }, J1 = ({ ...e }) => {
5277
- const [t, r] = lt(!1), i = t ? "visibility-off" : "visibility";
5289
+ const [t, r] = st(!1), i = t ? "visibility-off" : "visibility";
5278
5290
  return /* @__PURE__ */ S.jsx(
5279
5291
  Ze,
5280
5292
  {
@@ -5287,7 +5299,7 @@ const Sc = ({
5287
5299
  }
5288
5300
  );
5289
5301
  }, tv = ({ ...e }) => {
5290
- const [t, r] = lt(e.bindValue), { translate: i } = vr(), n = (o) => {
5302
+ const [t, r] = st(e.bindValue), { translate: i } = vr(), n = (o) => {
5291
5303
  o.key === "Enter" && (o.preventDefault(), e.onEnter?.(t));
5292
5304
  }, a = (o) => {
5293
5305
  r(o), e.onChange?.(o);
@@ -5379,7 +5391,7 @@ const jr = (e, t, r) => ({
5379
5391
  useGrouping: !0
5380
5392
  }).format(D),
5381
5393
  [f]
5382
- ), y = Dt(z1, [d, p]), b = Dt(I1, [e, t]), x = a != null && a.toString().includes(".") ? a.toString().split(".")[1].length : 0, [w, C] = lt(x), [v, E] = lt(
5394
+ ), y = Dt(z1, [d, p]), b = Dt(I1, [e, t]), x = a != null && a.toString().includes(".") ? a.toString().split(".")[1].length : 0, [w, C] = st(x), [v, E] = st(
5383
5395
  a != null ? g(a, w) : ""
5384
5396
  ), T = It(a ?? null);
5385
5397
  Tt(() => {
@@ -5600,7 +5612,7 @@ const bi = {
5600
5612
  label: s,
5601
5613
  ...l
5602
5614
  }) => {
5603
- const [c, h] = lt(n), u = Er();
5615
+ const [c, h] = st(n), u = Er();
5604
5616
  Tt(() => {
5605
5617
  !c && a && o && a(o, void 0).then(
5606
5618
  (v) => h(Gi(v))
@@ -5713,7 +5725,7 @@ const bi = {
5713
5725
  isEditable: i = !0,
5714
5726
  ...n
5715
5727
  }) => {
5716
- const a = It(null), [o, s] = lt(!1), [l, c] = lt(e || ""), [h, u] = lt(""), { anchorRef: f, targetRef: d } = gr({
5728
+ const a = It(null), [o, s] = st(!1), [l, c] = st(e || ""), [h, u] = st(""), { anchorRef: f, targetRef: d } = gr({
5717
5729
  position: "bottom",
5718
5730
  open: o
5719
5731
  }), p = Dt(() => {
@@ -5829,7 +5841,7 @@ const $u = /* @__PURE__ */ new Map([
5829
5841
  helper: l,
5830
5842
  ...c
5831
5843
  }) => {
5832
- const [h, u] = lt(a), f = Er(), d = (g) => {
5844
+ const [h, u] = st(a), f = Er(), d = (g) => {
5833
5845
  t || c.onChange?.(g.obj.k, g.decode);
5834
5846
  };
5835
5847
  Tt(() => {
@@ -5906,7 +5918,7 @@ const We = {
5906
5918
  onNodeClick: h,
5907
5919
  onContextMenu: u
5908
5920
  }) => {
5909
- const [f, d] = lt(Ci(e)), p = Ci(e) && !!e.children?.length, g = e.cells && Object.keys(e.cells).length > 0, y = p, b = i * 16, x = () => {
5921
+ const [f, d] = st(Ci(e)), p = Ci(e) && !!e.children?.length, g = e.cells && Object.keys(e.cells).length > 0, y = p, b = i * 16, x = () => {
5910
5922
  p && d(!f);
5911
5923
  }, w = {
5912
5924
  content: `${We["smp-row"]} ${Sa(e) ? We["smp-row-data"] : ""} ${Ci(e) ? We["smp-row-clickable"] : ""} ${s ? We["smp-row-selected"] : ""}`,
@@ -6058,7 +6070,7 @@ const We = {
6058
6070
  }, uv = {
6059
6071
  "smp-tree": "_smp-tree_19u9h_1"
6060
6072
  }, fv = ({ fun: e, onOptionsRequest: t, onClick: r }) => {
6061
- const [i, n] = lt(void 0);
6073
+ const [i, n] = st(void 0);
6062
6074
  Tt(() => {
6063
6075
  !i && t && e && t(e, void 0).then((o) => n(Gi(o))).catch((o) => {
6064
6076
  console.error("Errore nel caricamento delle opzioni per il Tree", o);
@@ -6354,7 +6366,7 @@ const We = {
6354
6366
  onEnter: r,
6355
6367
  onContextMenu: i
6356
6368
  }) => {
6357
- const [n, a] = lt(), o = Dt(
6369
+ const [n, a] = st(), o = Dt(
6358
6370
  (s) => {
6359
6371
  if (!s.rows?.length || !s.columns?.length)
6360
6372
  return {};
@@ -6583,7 +6595,7 @@ const mv = ({
6583
6595
  containerRef: r,
6584
6596
  sizingMode: i
6585
6597
  }) => {
6586
- const [n, a] = lt({}), o = 3, s = 7;
6598
+ const [n, a] = st({}), o = 3, s = 7;
6587
6599
  return Tt(() => {
6588
6600
  if (!(!e || e.length === 0)) {
6589
6601
  if (i === "fixed") {
@@ -6848,7 +6860,7 @@ function Fd(e, t, r) {
6848
6860
  };
6849
6861
  }
6850
6862
  function Mv(e) {
6851
- const [t, r] = lt(null), [i, n] = lt("asc");
6863
+ const [t, r] = st(null), [i, n] = st("asc");
6852
6864
  return {
6853
6865
  sortedRows: In(() => t ? Fd({ ...e, rows: e.rows }, t, i).rows : e.rows, [e, t, i]),
6854
6866
  sortBy: t,
@@ -7539,10 +7551,10 @@ const ki = {
7539
7551
  onMultiSelectionChange: h,
7540
7552
  onContextMenu: u
7541
7553
  }) => {
7542
- const [f, d] = lt(() => e ? {
7554
+ const [f, d] = st(() => e ? {
7543
7555
  columns: l ? Rv(e, Dv(l)) : e.columns,
7544
7556
  rows: e.rows ?? []
7545
- } : { columns: [], rows: [] }), [p, g] = lt(i || []), [y, b] = lt(/* @__PURE__ */ new Set()), [x, w] = lt(!1), [C, v] = lt(/* @__PURE__ */ new Set()), [E, T] = lt(null), N = In(() => yv(e?.columns || []), [e?.columns]), [z, I] = lt(() => Mu(o, N)), k = It(null), [L, D] = mv({
7557
+ } : { columns: [], rows: [] }), [p, g] = st(i || []), [y, b] = st(/* @__PURE__ */ new Set()), [x, w] = st(!1), [C, v] = st(/* @__PURE__ */ new Set()), [E, T] = st(null), N = In(() => yv(e?.columns || []), [e?.columns]), [z, I] = st(() => Mu(o, N)), k = It(null), [L, D] = mv({
7546
7558
  columns: f?.columns ?? [],
7547
7559
  rows: f?.rows ?? [],
7548
7560
  containerRef: k,
@@ -7731,7 +7743,7 @@ const ki = {
7731
7743
  loadOptions: l,
7732
7744
  onContextMenu: c
7733
7745
  }) => {
7734
- const [h, u] = lt(), [f, d] = lt(r ?? !0), p = It(null), g = n.trim() ? n : "100vh", y = Dt(
7746
+ const [h, u] = st(), [f, d] = st(r ?? !0), p = It(null), g = n.trim() ? n : "100vh", y = Dt(
7735
7747
  (C) => {
7736
7748
  if (!C?.rows?.length || !C?.columns?.length)
7737
7749
  return {};
@@ -7866,7 +7878,7 @@ const ki = {
7866
7878
  onClick: c,
7867
7879
  onOptionsRequest: h
7868
7880
  }) => {
7869
- const [u, f] = lt();
7881
+ const [u, f] = st();
7870
7882
  Tt(() => {
7871
7883
  f(() => {
7872
7884
  if (!e)
@@ -7968,7 +7980,7 @@ const ki = {
7968
7980
  onContextMenu: f,
7969
7981
  onButtonClick: d
7970
7982
  }) => {
7971
- const p = It(!1), g = It([]), [y, b] = lt(
7983
+ const p = It(!1), g = It([]), [y, b] = st(
7972
7984
  () => Du(e, a, r)
7973
7985
  ), { translate: x } = vr(), w = Er(), C = It(null);
7974
7986
  Tt(() => {
@@ -15076,7 +15088,7 @@ var Pt = /* @__PURE__ */ m((e) => Array.isArray(e) ? { x: e[0], y: e[1] } : e, "
15076
15088
  const [i, n] = r.split(":");
15077
15089
  t.set(i.trim(), n?.trim());
15078
15090
  }), t;
15079
- }, "styles2Map"), Nm = /* @__PURE__ */ m((e) => e === "color" || e === "font-size" || e === "font-family" || e === "font-weight" || e === "font-style" || e === "text-decoration" || e === "text-align" || e === "text-transform" || e === "line-height" || e === "letter-spacing" || e === "word-spacing" || e === "text-shadow" || e === "text-overflow" || e === "white-space" || e === "word-wrap" || e === "word-break" || e === "overflow-wrap" || e === "hyphens", "isLabelStyle"), ot = /* @__PURE__ */ m((e) => {
15091
+ }, "styles2Map"), Nm = /* @__PURE__ */ m((e) => e === "color" || e === "font-size" || e === "font-family" || e === "font-weight" || e === "font-style" || e === "text-decoration" || e === "text-align" || e === "text-transform" || e === "line-height" || e === "letter-spacing" || e === "word-spacing" || e === "text-shadow" || e === "text-overflow" || e === "white-space" || e === "word-wrap" || e === "word-break" || e === "overflow-wrap" || e === "hyphens", "isLabelStyle"), lt = /* @__PURE__ */ m((e) => {
15080
15092
  const { stylesArray: t } = Xi(e), r = [], i = [], n = [], a = [];
15081
15093
  return t.forEach((o) => {
15082
15094
  const s = o[0];
@@ -19117,7 +19129,7 @@ var nt = { canvas: (e, t) => new m$(e, t), svg: (e, t) => new y$(e, t), generato
19117
19129
  o = l.getBoundingClientRect(), c.attr("width", o.width), c.attr("height", o.height);
19118
19130
  }
19119
19131
  return i ? n.attr("transform", "translate(" + -o.width / 2 + ", " + -o.height / 2 + ")") : n.attr("transform", "translate(0, " + -o.height / 2 + ")"), r.centerLabel && n.attr("transform", "translate(" + -o.width / 2 + ", " + -o.height / 2 + ")"), n.insert("rect", ":first-child"), { shapeSvg: e, bbox: o, halfPadding: s, label: n };
19120
- }, "insertLabel"), st = /* @__PURE__ */ m((e, t) => {
19132
+ }, "insertLabel"), ot = /* @__PURE__ */ m((e, t) => {
19121
19133
  const r = t.node().getBBox();
19122
19134
  e.width = r.width, e.height = r.height;
19123
19135
  }, "updateNodeBounds"), gt = /* @__PURE__ */ m((e, t) => (e.look === "handDrawn" ? "rough-node" : "node") + " " + e.cssClasses + " " + (t || ""), "getNodeClasses");
@@ -19243,7 +19255,7 @@ var x$ = /* @__PURE__ */ m(async (e, t, r, i) => {
19243
19255
  // Close the path
19244
19256
  ].join(" "), "createRoundedRectPathD"), zy = /* @__PURE__ */ m(async (e, t) => {
19245
19257
  Y.info("Creating subgraph rect for ", t.id, t);
19246
- const r = Mt(), { themeVariables: i, handDrawnSeed: n } = r, { clusterBkg: a, clusterBorder: o } = i, { labelStyles: s, nodeStyles: l, borderStyles: c, backgroundStyles: h } = ot(t), u = e.insert("g").attr("class", "cluster " + t.cssClasses).attr("id", t.id).attr("data-look", t.look), f = Kt(r.flowchart.htmlLabels), d = u.insert("g").attr("class", "cluster-label "), p = await Dr(d, t.label, {
19258
+ const r = Mt(), { themeVariables: i, handDrawnSeed: n } = r, { clusterBkg: a, clusterBorder: o } = i, { labelStyles: s, nodeStyles: l, borderStyles: c, backgroundStyles: h } = lt(t), u = e.insert("g").attr("class", "cluster " + t.cssClasses).attr("id", t.id).attr("data-look", t.look), f = Kt(r.flowchart.htmlLabels), d = u.insert("g").attr("class", "cluster-label "), p = await Dr(d, t.label, {
19247
19259
  style: t.labelStyle,
19248
19260
  useHtmlLabels: f,
19249
19261
  isNode: !0
@@ -19333,7 +19345,7 @@ var x$ = /* @__PURE__ */ m(async (e, t, r, i) => {
19333
19345
  }, { cluster: c, labelBBox: p };
19334
19346
  }, "roundedWithTitle"), C$ = /* @__PURE__ */ m(async (e, t) => {
19335
19347
  Y.info("Creating subgraph rect for ", t.id, t);
19336
- const r = Mt(), { themeVariables: i, handDrawnSeed: n } = r, { clusterBkg: a, clusterBorder: o } = i, { labelStyles: s, nodeStyles: l, borderStyles: c, backgroundStyles: h } = ot(t), u = e.insert("g").attr("class", "cluster " + t.cssClasses).attr("id", t.id).attr("data-look", t.look), f = Kt(r.flowchart.htmlLabels), d = u.insert("g").attr("class", "cluster-label "), p = await Dr(d, t.label, {
19348
+ const r = Mt(), { themeVariables: i, handDrawnSeed: n } = r, { clusterBkg: a, clusterBorder: o } = i, { labelStyles: s, nodeStyles: l, borderStyles: c, backgroundStyles: h } = lt(t), u = e.insert("g").attr("class", "cluster " + t.cssClasses).attr("id", t.id).attr("data-look", t.look), f = Kt(r.flowchart.htmlLabels), d = u.insert("g").attr("class", "cluster-label "), p = await Dr(d, t.label, {
19337
19349
  style: t.labelStyle,
19338
19350
  useHtmlLabels: f,
19339
19351
  isNode: !0,
@@ -19480,7 +19492,7 @@ var $$ = Vy, et = {
19480
19492
  rect: Qi
19481
19493
  };
19482
19494
  function Xy(e, t) {
19483
- const { labelStyles: r } = ot(t);
19495
+ const { labelStyles: r } = lt(t);
19484
19496
  t.labelStyle = r;
19485
19497
  const i = gt(t);
19486
19498
  let n = i;
@@ -19488,7 +19500,7 @@ function Xy(e, t) {
19488
19500
  const a = e.insert("g").attr("class", n).attr("id", t.domId || t.id), o = 1, { cssStyles: s } = t, l = nt.svg(a), c = at(t, { fill: "black", stroke: "none", fillStyle: "solid" });
19489
19501
  t.look !== "handDrawn" && (c.roughness = 0);
19490
19502
  const h = l.circle(0, 0, o * 2, c), u = a.insert(() => h, ":first-child");
19491
- return u.attr("class", "anchor").attr("style", oe(s)), st(t, u), t.intersect = function(f) {
19503
+ return u.attr("class", "anchor").attr("style", oe(s)), ot(t, u), t.intersect = function(f) {
19492
19504
  return Y.info("Circle intersect", t, o, f), et.circle(t, o, f);
19493
19505
  }, a;
19494
19506
  }
@@ -19509,7 +19521,7 @@ function oc(e, t, r, i, n, a, o) {
19509
19521
  }
19510
19522
  m(oc, "generateArcPoints");
19511
19523
  async function Ky(e, t) {
19512
- const { labelStyles: r, nodeStyles: i } = ot(t);
19524
+ const { labelStyles: r, nodeStyles: i } = lt(t);
19513
19525
  t.labelStyle = r;
19514
19526
  const { shapeSvg: n, bbox: a } = await mt(e, t, gt(t)), o = a.width + t.padding + 20, s = a.height + t.padding, l = s / 2, c = l / (2.5 + s / 50), { cssStyles: h } = t, u = [
19515
19527
  { x: o / 2, y: -s / 2 },
@@ -19520,7 +19532,7 @@ async function Ky(e, t) {
19520
19532
  ], f = nt.svg(n), d = at(t, {});
19521
19533
  t.look !== "handDrawn" && (d.roughness = 0, d.fillStyle = "solid");
19522
19534
  const p = _t(u), g = f.path(p, d), y = n.insert(() => g, ":first-child");
19523
- return y.attr("class", "basic label-container"), h && t.look !== "handDrawn" && y.selectAll("path").attr("style", h), i && t.look !== "handDrawn" && y.selectAll("path").attr("style", i), y.attr("transform", `translate(${c / 2}, 0)`), st(t, y), t.intersect = function(b) {
19535
+ return y.attr("class", "basic label-container"), h && t.look !== "handDrawn" && y.selectAll("path").attr("style", h), i && t.look !== "handDrawn" && y.selectAll("path").attr("style", i), y.attr("transform", `translate(${c / 2}, 0)`), ot(t, y), t.intersect = function(b) {
19524
19536
  return et.polygon(t, u, b);
19525
19537
  }, n;
19526
19538
  }
@@ -19535,7 +19547,7 @@ function Fr(e, t, r, i) {
19535
19547
  }
19536
19548
  m(Fr, "insertPolygonShape");
19537
19549
  async function Zy(e, t) {
19538
- const { labelStyles: r, nodeStyles: i } = ot(t);
19550
+ const { labelStyles: r, nodeStyles: i } = lt(t);
19539
19551
  t.labelStyle = r;
19540
19552
  const { shapeSvg: n, bbox: a } = await mt(e, t, gt(t)), o = a.height + t.padding, s = 12, l = a.width + t.padding + s, c = 0, h = l, u = -o, f = 0, d = [
19541
19553
  { x: c + s, y: u },
@@ -19552,13 +19564,13 @@ async function Zy(e, t) {
19552
19564
  p = n.insert(() => w, ":first-child").attr("transform", `translate(${-l / 2}, ${o / 2})`), g && p.attr("style", g);
19553
19565
  } else
19554
19566
  p = Fr(n, l, o, d);
19555
- return i && p.attr("style", i), st(t, p), t.intersect = function(y) {
19567
+ return i && p.attr("style", i), ot(t, p), t.intersect = function(y) {
19556
19568
  return et.polygon(t, d, y);
19557
19569
  }, n;
19558
19570
  }
19559
19571
  m(Zy, "card");
19560
19572
  function Qy(e, t) {
19561
- const { nodeStyles: r } = ot(t);
19573
+ const { nodeStyles: r } = lt(t);
19562
19574
  t.label = "";
19563
19575
  const i = e.insert("g").attr("class", gt(t)).attr("id", t.domId ?? t.id), { cssStyles: n } = t, a = Math.max(28, t.width ?? 0), o = [
19564
19576
  { x: 0, y: a / 2 },
@@ -19574,7 +19586,7 @@ function Qy(e, t) {
19574
19586
  }
19575
19587
  m(Qy, "choice");
19576
19588
  async function Ch(e, t, r) {
19577
- const { labelStyles: i, nodeStyles: n } = ot(t);
19589
+ const { labelStyles: i, nodeStyles: n } = lt(t);
19578
19590
  t.labelStyle = i;
19579
19591
  const { shapeSvg: a, bbox: o, halfPadding: s } = await mt(e, t, gt(t)), l = r?.padding ?? s, c = o.width / 2 + l;
19580
19592
  let h;
@@ -19584,7 +19596,7 @@ async function Ch(e, t, r) {
19584
19596
  h = a.insert(() => p, ":first-child"), h.attr("class", "basic label-container").attr("style", oe(u));
19585
19597
  } else
19586
19598
  h = a.insert("circle", ":first-child").attr("class", "basic label-container").attr("style", n).attr("r", c).attr("cx", 0).attr("cy", 0);
19587
- return st(t, h), t.calcIntersect = function(f, d) {
19599
+ return ot(t, h), t.calcIntersect = function(f, d) {
19588
19600
  const p = f.width / 2;
19589
19601
  return et.circle(f, p, d);
19590
19602
  }, t.intersect = function(f) {
@@ -19599,12 +19611,12 @@ function Jy(e) {
19599
19611
  }
19600
19612
  m(Jy, "createLine");
19601
19613
  function t0(e, t) {
19602
- const { labelStyles: r, nodeStyles: i } = ot(t);
19614
+ const { labelStyles: r, nodeStyles: i } = lt(t);
19603
19615
  t.labelStyle = r, t.label = "";
19604
19616
  const n = e.insert("g").attr("class", gt(t)).attr("id", t.domId ?? t.id), a = Math.max(30, t?.width ?? 0), { cssStyles: o } = t, s = nt.svg(n), l = at(t, {});
19605
19617
  t.look !== "handDrawn" && (l.roughness = 0, l.fillStyle = "solid");
19606
19618
  const c = s.circle(0, 0, a * 2, l), h = Jy(a), u = s.path(h, l), f = n.insert(() => c, ":first-child");
19607
- return f.insert(() => u), o && t.look !== "handDrawn" && f.selectAll("path").attr("style", o), i && t.look !== "handDrawn" && f.selectAll("path").attr("style", i), st(t, f), t.intersect = function(d) {
19619
+ return f.insert(() => u), o && t.look !== "handDrawn" && f.selectAll("path").attr("style", o), i && t.look !== "handDrawn" && f.selectAll("path").attr("style", i), ot(t, f), t.intersect = function(d) {
19608
19620
  return Y.info("crossedCircle intersect", t, { radius: a, point: d }), et.circle(t, a, d);
19609
19621
  }, n;
19610
19622
  }
@@ -19619,7 +19631,7 @@ function or(e, t, r, i = 100, n = 0, a = 180) {
19619
19631
  }
19620
19632
  m(or, "generateCirclePoints");
19621
19633
  async function e0(e, t) {
19622
- const { labelStyles: r, nodeStyles: i } = ot(t);
19634
+ const { labelStyles: r, nodeStyles: i } = lt(t);
19623
19635
  t.labelStyle = r;
19624
19636
  const { shapeSvg: n, bbox: a, label: o } = await mt(e, t, gt(t)), s = a.width + (t.padding ?? 0), l = a.height + (t.padding ?? 0), c = Math.max(5, l * 0.1), { cssStyles: h } = t, u = [
19625
19637
  ...or(s / 2, -l / 2, c, 30, -90, 0),
@@ -19645,7 +19657,7 @@ async function e0(e, t) {
19645
19657
  return C.insert(() => w, ":first-child").attr("stroke-opacity", 0), C.insert(() => b, ":first-child"), C.attr("class", "text"), h && t.look !== "handDrawn" && C.selectAll("path").attr("style", h), i && t.look !== "handDrawn" && C.selectAll("path").attr("style", i), C.attr("transform", `translate(${c}, 0)`), o.attr(
19646
19658
  "transform",
19647
19659
  `translate(${-s / 2 + c - (a.x - (a.left ?? 0))},${-l / 2 + (t.padding ?? 0) / 2 - (a.y - (a.top ?? 0))})`
19648
- ), st(t, C), t.intersect = function(v) {
19660
+ ), ot(t, C), t.intersect = function(v) {
19649
19661
  return et.polygon(t, f, v);
19650
19662
  }, n;
19651
19663
  }
@@ -19660,7 +19672,7 @@ function lr(e, t, r, i = 100, n = 0, a = 180) {
19660
19672
  }
19661
19673
  m(lr, "generateCirclePoints");
19662
19674
  async function r0(e, t) {
19663
- const { labelStyles: r, nodeStyles: i } = ot(t);
19675
+ const { labelStyles: r, nodeStyles: i } = lt(t);
19664
19676
  t.labelStyle = r;
19665
19677
  const { shapeSvg: n, bbox: a, label: o } = await mt(e, t, gt(t)), s = a.width + (t.padding ?? 0), l = a.height + (t.padding ?? 0), c = Math.max(5, l * 0.1), { cssStyles: h } = t, u = [
19666
19678
  ...lr(s / 2, -l / 2, c, 20, -90, 0),
@@ -19686,7 +19698,7 @@ async function r0(e, t) {
19686
19698
  return C.insert(() => w, ":first-child").attr("stroke-opacity", 0), C.insert(() => b, ":first-child"), C.attr("class", "text"), h && t.look !== "handDrawn" && C.selectAll("path").attr("style", h), i && t.look !== "handDrawn" && C.selectAll("path").attr("style", i), C.attr("transform", `translate(${-c}, 0)`), o.attr(
19687
19699
  "transform",
19688
19700
  `translate(${-s / 2 + (t.padding ?? 0) / 2 - (a.x - (a.left ?? 0))},${-l / 2 + (t.padding ?? 0) / 2 - (a.y - (a.top ?? 0))})`
19689
- ), st(t, C), t.intersect = function(v) {
19701
+ ), ot(t, C), t.intersect = function(v) {
19690
19702
  return et.polygon(t, f, v);
19691
19703
  }, n;
19692
19704
  }
@@ -19701,7 +19713,7 @@ function Qt(e, t, r, i = 100, n = 0, a = 180) {
19701
19713
  }
19702
19714
  m(Qt, "generateCirclePoints");
19703
19715
  async function i0(e, t) {
19704
- const { labelStyles: r, nodeStyles: i } = ot(t);
19716
+ const { labelStyles: r, nodeStyles: i } = lt(t);
19705
19717
  t.labelStyle = r;
19706
19718
  const { shapeSvg: n, bbox: a, label: o } = await mt(e, t, gt(t)), s = a.width + (t.padding ?? 0), l = a.height + (t.padding ?? 0), c = Math.max(5, l * 0.1), { cssStyles: h } = t, u = [
19707
19719
  ...Qt(s / 2, -l / 2, c, 30, -90, 0),
@@ -19740,13 +19752,13 @@ async function i0(e, t) {
19740
19752
  return N.insert(() => T, ":first-child").attr("stroke-opacity", 0), N.insert(() => x, ":first-child"), N.insert(() => v, ":first-child"), N.attr("class", "text"), h && t.look !== "handDrawn" && N.selectAll("path").attr("style", h), i && t.look !== "handDrawn" && N.selectAll("path").attr("style", i), N.attr("transform", `translate(${c - c / 4}, 0)`), o.attr(
19741
19753
  "transform",
19742
19754
  `translate(${-s / 2 + (t.padding ?? 0) / 2 - (a.x - (a.left ?? 0))},${-l / 2 + (t.padding ?? 0) / 2 - (a.y - (a.top ?? 0))})`
19743
- ), st(t, N), t.intersect = function(z) {
19755
+ ), ot(t, N), t.intersect = function(z) {
19744
19756
  return et.polygon(t, d, z);
19745
19757
  }, n;
19746
19758
  }
19747
19759
  m(i0, "curlyBraces");
19748
19760
  async function n0(e, t) {
19749
- const { labelStyles: r, nodeStyles: i } = ot(t);
19761
+ const { labelStyles: r, nodeStyles: i } = lt(t);
19750
19762
  t.labelStyle = r;
19751
19763
  const { shapeSvg: n, bbox: a } = await mt(e, t, gt(t)), o = 80, s = 20, l = Math.max(o, (a.width + (t.padding ?? 0) * 2) * 1.25, t?.width ?? 0), c = Math.max(s, a.height + (t.padding ?? 0) * 2, t?.height ?? 0), h = c / 2, { cssStyles: u } = t, f = nt.svg(n), d = at(t, {});
19752
19764
  t.look !== "handDrawn" && (d.roughness = 0, d.fillStyle = "solid");
@@ -19758,7 +19770,7 @@ async function n0(e, t) {
19758
19770
  { x: y, y: g },
19759
19771
  ...Zn(-y, -g / 2, h, 50, 270, 90)
19760
19772
  ], w = _t(x), C = f.path(w, d), v = n.insert(() => C, ":first-child");
19761
- return v.attr("class", "basic label-container"), u && t.look !== "handDrawn" && v.selectChildren("path").attr("style", u), i && t.look !== "handDrawn" && v.selectChildren("path").attr("style", i), v.attr("transform", `translate(${-l / 2}, ${-c / 2})`), st(t, v), t.intersect = function(E) {
19773
+ return v.attr("class", "basic label-container"), u && t.look !== "handDrawn" && v.selectChildren("path").attr("style", u), i && t.look !== "handDrawn" && v.selectChildren("path").attr("style", i), v.attr("transform", `translate(${-l / 2}, ${-c / 2})`), ot(t, v), t.intersect = function(E) {
19762
19774
  return et.polygon(t, x, E);
19763
19775
  }, n;
19764
19776
  }
@@ -19779,7 +19791,7 @@ var M$ = /* @__PURE__ */ m((e, t, r, i, n, a) => [
19779
19791
  `l0,${-i}`
19780
19792
  ].join(" "), "createOuterCylinderPathD"), O$ = /* @__PURE__ */ m((e, t, r, i, n, a) => [`M${e - r / 2},${-i / 2}`, `a${n},${a} 0,0,0 ${r},0`].join(" "), "createInnerCylinderPathD");
19781
19793
  async function a0(e, t) {
19782
- const { labelStyles: r, nodeStyles: i } = ot(t);
19794
+ const { labelStyles: r, nodeStyles: i } = lt(t);
19783
19795
  t.labelStyle = r;
19784
19796
  const { shapeSvg: n, bbox: a, label: o } = await mt(e, t, gt(t)), s = Math.max(a.width + t.padding, t.width ?? 0), l = s / 2, c = l / (2.5 + s / 50), h = Math.max(a.height + c + t.padding, t.height ?? 0);
19785
19797
  let u;
@@ -19791,7 +19803,7 @@ async function a0(e, t) {
19791
19803
  const d = M$(0, 0, s, h, l, c);
19792
19804
  u = n.insert("path", ":first-child").attr("d", d).attr("class", "basic label-container").attr("style", oe(f)).attr("style", i);
19793
19805
  }
19794
- return u.attr("label-offset-y", c), u.attr("transform", `translate(${-s / 2}, ${-(h / 2 + c)})`), st(t, u), o.attr(
19806
+ return u.attr("label-offset-y", c), u.attr("transform", `translate(${-s / 2}, ${-(h / 2 + c)})`), ot(t, u), o.attr(
19795
19807
  "transform",
19796
19808
  `translate(${-(a.width / 2) - (a.x - (a.left ?? 0))}, ${-(a.height / 2) + (t.padding ?? 0) / 1.5 - (a.y - (a.top ?? 0))})`
19797
19809
  ), t.intersect = function(d) {
@@ -19805,7 +19817,7 @@ async function a0(e, t) {
19805
19817
  }
19806
19818
  m(a0, "cylinder");
19807
19819
  async function s0(e, t) {
19808
- const { labelStyles: r, nodeStyles: i } = ot(t);
19820
+ const { labelStyles: r, nodeStyles: i } = lt(t);
19809
19821
  t.labelStyle = r;
19810
19822
  const { shapeSvg: n, bbox: a, label: o } = await mt(e, t, gt(t)), s = a.width + t.padding, l = a.height + t.padding, c = l * 0.2, h = -s / 2, u = -l / 2 - c / 2, { cssStyles: f } = t, d = nt.svg(n), p = at(t, {});
19811
19823
  t.look !== "handDrawn" && (p.roughness = 0, p.fillStyle = "solid");
@@ -19824,13 +19836,13 @@ async function s0(e, t) {
19824
19836
  return b.attr("class", "basic label-container"), f && t.look !== "handDrawn" && b.selectAll("path").attr("style", f), i && t.look !== "handDrawn" && b.selectAll("path").attr("style", i), o.attr(
19825
19837
  "transform",
19826
19838
  `translate(${h + (t.padding ?? 0) / 2 - (a.x - (a.left ?? 0))}, ${u + c + (t.padding ?? 0) / 2 - (a.y - (a.top ?? 0))})`
19827
- ), st(t, b), t.intersect = function(x) {
19839
+ ), ot(t, b), t.intersect = function(x) {
19828
19840
  return et.rect(t, x);
19829
19841
  }, n;
19830
19842
  }
19831
19843
  m(s0, "dividedRectangle");
19832
19844
  async function o0(e, t) {
19833
- const { labelStyles: r, nodeStyles: i } = ot(t);
19845
+ const { labelStyles: r, nodeStyles: i } = lt(t);
19834
19846
  t.labelStyle = r;
19835
19847
  const { shapeSvg: n, bbox: a, halfPadding: o } = await mt(e, t, gt(t)), l = a.width / 2 + o + 5, c = a.width / 2 + o;
19836
19848
  let h;
@@ -19843,24 +19855,24 @@ async function o0(e, t) {
19843
19855
  const f = h.insert("circle", ":first-child"), d = h.insert("circle");
19844
19856
  h.attr("class", "basic label-container").attr("style", i), f.attr("class", "outer-circle").attr("style", i).attr("r", l).attr("cx", 0).attr("cy", 0), d.attr("class", "inner-circle").attr("style", i).attr("r", c).attr("cx", 0).attr("cy", 0);
19845
19857
  }
19846
- return st(t, h), t.intersect = function(f) {
19858
+ return ot(t, h), t.intersect = function(f) {
19847
19859
  return Y.info("DoubleCircle intersect", t, l, f), et.circle(t, l, f);
19848
19860
  }, n;
19849
19861
  }
19850
19862
  m(o0, "doublecircle");
19851
19863
  function l0(e, t, { config: { themeVariables: r } }) {
19852
- const { labelStyles: i, nodeStyles: n } = ot(t);
19864
+ const { labelStyles: i, nodeStyles: n } = lt(t);
19853
19865
  t.label = "", t.labelStyle = i;
19854
19866
  const a = e.insert("g").attr("class", gt(t)).attr("id", t.domId ?? t.id), o = 7, { cssStyles: s } = t, l = nt.svg(a), { nodeBorder: c } = r, h = at(t, { fillStyle: "solid" });
19855
19867
  t.look !== "handDrawn" && (h.roughness = 0);
19856
19868
  const u = l.circle(0, 0, o * 2, h), f = a.insert(() => u, ":first-child");
19857
- return f.selectAll("path").attr("style", `fill: ${c} !important;`), s && s.length > 0 && t.look !== "handDrawn" && f.selectAll("path").attr("style", s), n && t.look !== "handDrawn" && f.selectAll("path").attr("style", n), st(t, f), t.intersect = function(d) {
19869
+ return f.selectAll("path").attr("style", `fill: ${c} !important;`), s && s.length > 0 && t.look !== "handDrawn" && f.selectAll("path").attr("style", s), n && t.look !== "handDrawn" && f.selectAll("path").attr("style", n), ot(t, f), t.intersect = function(d) {
19858
19870
  return Y.info("filledCircle intersect", t, { radius: o, point: d }), et.circle(t, o, d);
19859
19871
  }, a;
19860
19872
  }
19861
19873
  m(l0, "filledCircle");
19862
19874
  async function c0(e, t) {
19863
- const { labelStyles: r, nodeStyles: i } = ot(t);
19875
+ const { labelStyles: r, nodeStyles: i } = lt(t);
19864
19876
  t.labelStyle = r;
19865
19877
  const { shapeSvg: n, bbox: a, label: o } = await mt(e, t, gt(t)), s = a.width + (t.padding ?? 0), l = s + a.height, c = s + a.height, h = [
19866
19878
  { x: 0, y: -l },
@@ -19869,7 +19881,7 @@ async function c0(e, t) {
19869
19881
  ], { cssStyles: u } = t, f = nt.svg(n), d = at(t, {});
19870
19882
  t.look !== "handDrawn" && (d.roughness = 0, d.fillStyle = "solid");
19871
19883
  const p = _t(h), g = f.path(p, d), y = n.insert(() => g, ":first-child").attr("transform", `translate(${-l / 2}, ${l / 2})`);
19872
- return u && t.look !== "handDrawn" && y.selectChildren("path").attr("style", u), i && t.look !== "handDrawn" && y.selectChildren("path").attr("style", i), t.width = s, t.height = l, st(t, y), o.attr(
19884
+ return u && t.look !== "handDrawn" && y.selectChildren("path").attr("style", u), i && t.look !== "handDrawn" && y.selectChildren("path").attr("style", i), t.width = s, t.height = l, ot(t, y), o.attr(
19873
19885
  "transform",
19874
19886
  `translate(${-a.width / 2 - (a.x - (a.left ?? 0))}, ${-l / 2 + (t.padding ?? 0) / 2 + (a.y - (a.top ?? 0))})`
19875
19887
  ), t.intersect = function(b) {
@@ -19878,7 +19890,7 @@ async function c0(e, t) {
19878
19890
  }
19879
19891
  m(c0, "flippedTriangle");
19880
19892
  function h0(e, t, { dir: r, config: { state: i, themeVariables: n } }) {
19881
- const { nodeStyles: a } = ot(t);
19893
+ const { nodeStyles: a } = lt(t);
19882
19894
  t.label = "";
19883
19895
  const o = e.insert("g").attr("class", gt(t)).attr("id", t.domId ?? t.id), { cssStyles: s } = t;
19884
19896
  let l = Math.max(70, t?.width ?? 0), c = Math.max(10, t?.height ?? 0);
@@ -19889,7 +19901,7 @@ function h0(e, t, { dir: r, config: { state: i, themeVariables: n } }) {
19889
19901
  });
19890
19902
  t.look !== "handDrawn" && (d.roughness = 0, d.fillStyle = "solid");
19891
19903
  const p = f.rectangle(h, u, l, c, d), g = o.insert(() => p, ":first-child");
19892
- s && t.look !== "handDrawn" && g.selectAll("path").attr("style", s), a && t.look !== "handDrawn" && g.selectAll("path").attr("style", a), st(t, g);
19904
+ s && t.look !== "handDrawn" && g.selectAll("path").attr("style", s), a && t.look !== "handDrawn" && g.selectAll("path").attr("style", a), ot(t, g);
19893
19905
  const y = i?.padding ?? 0;
19894
19906
  return t.width && t.height && (t.width += y / 2 || 0, t.height += y / 2 || 0), t.intersect = function(b) {
19895
19907
  return et.rect(t, b);
@@ -19897,7 +19909,7 @@ function h0(e, t, { dir: r, config: { state: i, themeVariables: n } }) {
19897
19909
  }
19898
19910
  m(h0, "forkJoin");
19899
19911
  async function u0(e, t) {
19900
- const { labelStyles: r, nodeStyles: i } = ot(t);
19912
+ const { labelStyles: r, nodeStyles: i } = lt(t);
19901
19913
  t.labelStyle = r;
19902
19914
  const n = 80, a = 50, { shapeSvg: o, bbox: s } = await mt(e, t, gt(t)), l = Math.max(n, s.width + (t.padding ?? 0) * 2, t?.width ?? 0), c = Math.max(a, s.height + (t.padding ?? 0) * 2, t?.height ?? 0), h = c / 2, { cssStyles: u } = t, f = nt.svg(o), d = at(t, {});
19903
19915
  t.look !== "handDrawn" && (d.roughness = 0, d.fillStyle = "solid");
@@ -19908,13 +19920,13 @@ async function u0(e, t) {
19908
19920
  { x: l / 2 - h, y: c / 2 },
19909
19921
  { x: -l / 2, y: c / 2 }
19910
19922
  ], g = _t(p), y = f.path(g, d), b = o.insert(() => y, ":first-child");
19911
- return b.attr("class", "basic label-container"), u && t.look !== "handDrawn" && b.selectChildren("path").attr("style", u), i && t.look !== "handDrawn" && b.selectChildren("path").attr("style", i), st(t, b), t.intersect = function(x) {
19923
+ return b.attr("class", "basic label-container"), u && t.look !== "handDrawn" && b.selectChildren("path").attr("style", u), i && t.look !== "handDrawn" && b.selectChildren("path").attr("style", i), ot(t, b), t.intersect = function(x) {
19912
19924
  return Y.info("Pill intersect", t, { radius: h, point: x }), et.polygon(t, p, x);
19913
19925
  }, o;
19914
19926
  }
19915
19927
  m(u0, "halfRoundedRectangle");
19916
19928
  async function f0(e, t) {
19917
- const { labelStyles: r, nodeStyles: i } = ot(t);
19929
+ const { labelStyles: r, nodeStyles: i } = lt(t);
19918
19930
  t.labelStyle = r;
19919
19931
  const { shapeSvg: n, bbox: a } = await mt(e, t, gt(t)), o = a.height + (t.padding ?? 0), s = a.width + (t.padding ?? 0) * 2.5, { cssStyles: l } = t, c = nt.svg(n), h = at(t, {});
19920
19932
  t.look !== "handDrawn" && (h.roughness = 0, h.fillStyle = "solid");
@@ -19931,13 +19943,13 @@ async function f0(e, t) {
19931
19943
  { x: -g, y: d },
19932
19944
  { x: -u, y: 0 }
19933
19945
  ], b = _t(y), x = c.path(b, h), w = n.insert(() => x, ":first-child");
19934
- return w.attr("class", "basic label-container"), l && t.look !== "handDrawn" && w.selectChildren("path").attr("style", l), i && t.look !== "handDrawn" && w.selectChildren("path").attr("style", i), t.width = s, t.height = o, st(t, w), t.intersect = function(C) {
19946
+ return w.attr("class", "basic label-container"), l && t.look !== "handDrawn" && w.selectChildren("path").attr("style", l), i && t.look !== "handDrawn" && w.selectChildren("path").attr("style", i), t.width = s, t.height = o, ot(t, w), t.intersect = function(C) {
19935
19947
  return et.polygon(t, y, C);
19936
19948
  }, n;
19937
19949
  }
19938
19950
  m(f0, "hexagon");
19939
19951
  async function d0(e, t) {
19940
- const { labelStyles: r, nodeStyles: i } = ot(t);
19952
+ const { labelStyles: r, nodeStyles: i } = lt(t);
19941
19953
  t.label = "", t.labelStyle = r;
19942
19954
  const { shapeSvg: n } = await mt(e, t, gt(t)), a = Math.max(30, t?.width ?? 0), o = Math.max(30, t?.height ?? 0), { cssStyles: s } = t, l = nt.svg(n), c = at(t, {});
19943
19955
  t.look !== "handDrawn" && (c.roughness = 0, c.fillStyle = "solid");
@@ -19947,13 +19959,13 @@ async function d0(e, t) {
19947
19959
  { x: 0, y: o },
19948
19960
  { x: a, y: o }
19949
19961
  ], u = _t(h), f = l.path(u, c), d = n.insert(() => f, ":first-child");
19950
- return d.attr("class", "basic label-container"), s && t.look !== "handDrawn" && d.selectChildren("path").attr("style", s), i && t.look !== "handDrawn" && d.selectChildren("path").attr("style", i), d.attr("transform", `translate(${-a / 2}, ${-o / 2})`), st(t, d), t.intersect = function(p) {
19962
+ return d.attr("class", "basic label-container"), s && t.look !== "handDrawn" && d.selectChildren("path").attr("style", s), i && t.look !== "handDrawn" && d.selectChildren("path").attr("style", i), d.attr("transform", `translate(${-a / 2}, ${-o / 2})`), ot(t, d), t.intersect = function(p) {
19951
19963
  return Y.info("Pill intersect", t, { points: h }), et.polygon(t, h, p);
19952
19964
  }, n;
19953
19965
  }
19954
19966
  m(d0, "hourglass");
19955
19967
  async function p0(e, t, { config: { themeVariables: r, flowchart: i } }) {
19956
- const { labelStyles: n } = ot(t);
19968
+ const { labelStyles: n } = lt(t);
19957
19969
  t.labelStyle = n;
19958
19970
  const a = t.assetHeight ?? 48, o = t.assetWidth ?? 48, s = Math.max(a, o), l = i?.wrappingWidth;
19959
19971
  t.width = Math.max(s, l ?? 0);
@@ -19985,7 +19997,7 @@ async function p0(e, t, { config: { themeVariables: r, flowchart: i } }) {
19985
19997
  ), I.attr(
19986
19998
  "transform",
19987
19999
  `translate(0,${f ? h.height / 2 + w / 2 : -h.height / 2 - w / 2})`
19988
- ), st(t, k), t.intersect = function(L) {
20000
+ ), ot(t, k), t.intersect = function(L) {
19989
20001
  if (Y.info("iconSquare intersect", t, L), !t.label)
19990
20002
  return et.rect(t, L);
19991
20003
  const D = t.x ?? 0, B = t.y ?? 0, O = t.height ?? 0;
@@ -20013,7 +20025,7 @@ async function p0(e, t, { config: { themeVariables: r, flowchart: i } }) {
20013
20025
  }
20014
20026
  m(p0, "icon");
20015
20027
  async function g0(e, t, { config: { themeVariables: r, flowchart: i } }) {
20016
- const { labelStyles: n } = ot(t);
20028
+ const { labelStyles: n } = lt(t);
20017
20029
  t.labelStyle = n;
20018
20030
  const a = t.assetHeight ?? 48, o = t.assetWidth ?? 48, s = Math.max(a, o), l = i?.wrappingWidth;
20019
20031
  t.width = Math.max(s, l ?? 0);
@@ -20043,13 +20055,13 @@ async function g0(e, t, { config: { themeVariables: r, flowchart: i } }) {
20043
20055
  ), M.attr(
20044
20056
  "transform",
20045
20057
  `translate(0,${p ? h.height / 2 + d / 2 : -h.height / 2 - d / 2})`
20046
- ), st(t, W), t.intersect = function(A) {
20058
+ ), ot(t, W), t.intersect = function(A) {
20047
20059
  return Y.info("iconSquare intersect", t, A), et.rect(t, A);
20048
20060
  }, c;
20049
20061
  }
20050
20062
  m(g0, "iconCircle");
20051
20063
  async function m0(e, t, { config: { themeVariables: r, flowchart: i } }) {
20052
- const { labelStyles: n } = ot(t);
20064
+ const { labelStyles: n } = lt(t);
20053
20065
  t.labelStyle = n;
20054
20066
  const a = t.assetHeight ?? 48, o = t.assetWidth ?? 48, s = Math.max(a, o), l = i?.wrappingWidth;
20055
20067
  t.width = Math.max(s, l ?? 0);
@@ -20087,7 +20099,7 @@ async function m0(e, t, { config: { themeVariables: r, flowchart: i } }) {
20087
20099
  ), D.attr(
20088
20100
  "transform",
20089
20101
  `translate(0,${d ? h.height / 2 + v / 2 : -h.height / 2 - v / 2})`
20090
- ), st(t, B), t.intersect = function(O) {
20102
+ ), ot(t, B), t.intersect = function(O) {
20091
20103
  if (Y.info("iconSquare intersect", t, O), !t.label)
20092
20104
  return et.rect(t, O);
20093
20105
  const M = t.x ?? 0, W = t.y ?? 0, A = t.height ?? 0;
@@ -20115,7 +20127,7 @@ async function m0(e, t, { config: { themeVariables: r, flowchart: i } }) {
20115
20127
  }
20116
20128
  m(m0, "iconRounded");
20117
20129
  async function y0(e, t, { config: { themeVariables: r, flowchart: i } }) {
20118
- const { labelStyles: n } = ot(t);
20130
+ const { labelStyles: n } = lt(t);
20119
20131
  t.labelStyle = n;
20120
20132
  const a = t.assetHeight ?? 48, o = t.assetWidth ?? 48, s = Math.max(a, o), l = i?.wrappingWidth;
20121
20133
  t.width = Math.max(s, l ?? 0);
@@ -20153,7 +20165,7 @@ async function y0(e, t, { config: { themeVariables: r, flowchart: i } }) {
20153
20165
  ), D.attr(
20154
20166
  "transform",
20155
20167
  `translate(0,${d ? h.height / 2 + v / 2 : -h.height / 2 - v / 2})`
20156
- ), st(t, B), t.intersect = function(O) {
20168
+ ), ot(t, B), t.intersect = function(O) {
20157
20169
  if (Y.info("iconSquare intersect", t, O), !t.label)
20158
20170
  return et.rect(t, O);
20159
20171
  const M = t.x ?? 0, W = t.y ?? 0, A = t.height ?? 0;
@@ -20185,7 +20197,7 @@ async function b0(e, t, { config: { flowchart: r } }) {
20185
20197
  i.src = t?.img ?? "", await i.decode();
20186
20198
  const n = Number(i.naturalWidth.toString().replace("px", "")), a = Number(i.naturalHeight.toString().replace("px", ""));
20187
20199
  t.imageAspectRatio = n / a;
20188
- const { labelStyles: o } = ot(t);
20200
+ const { labelStyles: o } = lt(t);
20189
20201
  t.labelStyle = o;
20190
20202
  const s = r?.wrappingWidth;
20191
20203
  t.defaultWidth = r?.wrappingWidth;
@@ -20214,7 +20226,7 @@ async function b0(e, t, { config: { flowchart: r } }) {
20214
20226
  ), N.attr(
20215
20227
  "transform",
20216
20228
  `translate(0,${p ? f.height / 2 + b / 2 : -f.height / 2 - b / 2})`
20217
- ), st(t, z), t.intersect = function(I) {
20229
+ ), ot(t, z), t.intersect = function(I) {
20218
20230
  if (Y.info("iconSquare intersect", t, I), !t.label)
20219
20231
  return et.rect(t, I);
20220
20232
  const k = t.x ?? 0, L = t.y ?? 0, D = t.height ?? 0;
@@ -20242,7 +20254,7 @@ async function b0(e, t, { config: { flowchart: r } }) {
20242
20254
  }
20243
20255
  m(b0, "imageSquare");
20244
20256
  async function x0(e, t) {
20245
- const { labelStyles: r, nodeStyles: i } = ot(t);
20257
+ const { labelStyles: r, nodeStyles: i } = lt(t);
20246
20258
  t.labelStyle = r;
20247
20259
  const { shapeSvg: n, bbox: a } = await mt(e, t, gt(t)), o = Math.max(a.width + (t.padding ?? 0) * 2, t?.width ?? 0), s = Math.max(a.height + (t.padding ?? 0) * 2, t?.height ?? 0), l = [
20248
20260
  { x: 0, y: 0 },
@@ -20257,13 +20269,13 @@ async function x0(e, t) {
20257
20269
  c = n.insert(() => p, ":first-child").attr("transform", `translate(${-o / 2}, ${s / 2})`), h && c.attr("style", h);
20258
20270
  } else
20259
20271
  c = Fr(n, o, s, l);
20260
- return i && c.attr("style", i), t.width = o, t.height = s, st(t, c), t.intersect = function(u) {
20272
+ return i && c.attr("style", i), t.width = o, t.height = s, ot(t, c), t.intersect = function(u) {
20261
20273
  return et.polygon(t, l, u);
20262
20274
  }, n;
20263
20275
  }
20264
20276
  m(x0, "inv_trapezoid");
20265
20277
  async function mo(e, t, r) {
20266
- const { labelStyles: i, nodeStyles: n } = ot(t);
20278
+ const { labelStyles: i, nodeStyles: n } = lt(t);
20267
20279
  t.labelStyle = i;
20268
20280
  const { shapeSvg: a, bbox: o } = await mt(e, t, gt(t)), s = Math.max(o.width + r.labelPaddingX * 2, t?.width || 0), l = Math.max(o.height + r.labelPaddingY * 2, t?.height || 0), c = -s / 2, h = -l / 2;
20269
20281
  let u, { rx: f, ry: d } = t;
@@ -20273,7 +20285,7 @@ async function mo(e, t, r) {
20273
20285
  u = a.insert(() => b, ":first-child"), u.attr("class", "basic label-container").attr("style", oe(p));
20274
20286
  } else
20275
20287
  u = a.insert("rect", ":first-child"), u.attr("class", "basic label-container").attr("style", n).attr("rx", oe(f)).attr("ry", oe(d)).attr("x", c).attr("y", h).attr("width", s).attr("height", l);
20276
- return st(t, u), t.calcIntersect = function(g, y) {
20288
+ return ot(t, u), t.calcIntersect = function(g, y) {
20277
20289
  return et.rect(g, y);
20278
20290
  }, t.intersect = function(g) {
20279
20291
  return et.rect(t, g);
@@ -20285,13 +20297,13 @@ async function v0(e, t) {
20285
20297
  return a.attr("width", 0.1).attr("height", 0.1), r.attr("class", "label edgeLabel"), n.attr(
20286
20298
  "transform",
20287
20299
  `translate(${-(i.width / 2) - (i.x - (i.left ?? 0))}, ${-(i.height / 2) - (i.y - (i.top ?? 0))})`
20288
- ), st(t, a), t.intersect = function(l) {
20300
+ ), ot(t, a), t.intersect = function(l) {
20289
20301
  return et.rect(t, l);
20290
20302
  }, r;
20291
20303
  }
20292
20304
  m(v0, "labelRect");
20293
20305
  async function w0(e, t) {
20294
- const { labelStyles: r, nodeStyles: i } = ot(t);
20306
+ const { labelStyles: r, nodeStyles: i } = lt(t);
20295
20307
  t.labelStyle = r;
20296
20308
  const { shapeSvg: n, bbox: a } = await mt(e, t, gt(t)), o = Math.max(a.width + (t.padding ?? 0), t?.width ?? 0), s = Math.max(a.height + (t.padding ?? 0), t?.height ?? 0), l = [
20297
20309
  { x: 0, y: 0 },
@@ -20306,13 +20318,13 @@ async function w0(e, t) {
20306
20318
  c = n.insert(() => p, ":first-child").attr("transform", `translate(${-o / 2}, ${s / 2})`), h && c.attr("style", h);
20307
20319
  } else
20308
20320
  c = Fr(n, o, s, l);
20309
- return i && c.attr("style", i), t.width = o, t.height = s, st(t, c), t.intersect = function(u) {
20321
+ return i && c.attr("style", i), t.width = o, t.height = s, ot(t, c), t.intersect = function(u) {
20310
20322
  return et.polygon(t, l, u);
20311
20323
  }, n;
20312
20324
  }
20313
20325
  m(w0, "lean_left");
20314
20326
  async function C0(e, t) {
20315
- const { labelStyles: r, nodeStyles: i } = ot(t);
20327
+ const { labelStyles: r, nodeStyles: i } = lt(t);
20316
20328
  t.labelStyle = r;
20317
20329
  const { shapeSvg: n, bbox: a } = await mt(e, t, gt(t)), o = Math.max(a.width + (t.padding ?? 0), t?.width ?? 0), s = Math.max(a.height + (t.padding ?? 0), t?.height ?? 0), l = [
20318
20330
  { x: -3 * s / 6, y: 0 },
@@ -20327,13 +20339,13 @@ async function C0(e, t) {
20327
20339
  c = n.insert(() => p, ":first-child").attr("transform", `translate(${-o / 2}, ${s / 2})`), h && c.attr("style", h);
20328
20340
  } else
20329
20341
  c = Fr(n, o, s, l);
20330
- return i && c.attr("style", i), t.width = o, t.height = s, st(t, c), t.intersect = function(u) {
20342
+ return i && c.attr("style", i), t.width = o, t.height = s, ot(t, c), t.intersect = function(u) {
20331
20343
  return et.polygon(t, l, u);
20332
20344
  }, n;
20333
20345
  }
20334
20346
  m(C0, "lean_right");
20335
20347
  function _0(e, t) {
20336
- const { labelStyles: r, nodeStyles: i } = ot(t);
20348
+ const { labelStyles: r, nodeStyles: i } = lt(t);
20337
20349
  t.label = "", t.labelStyle = r;
20338
20350
  const n = e.insert("g").attr("class", gt(t)).attr("id", t.domId ?? t.id), { cssStyles: a } = t, o = Math.max(35, t?.width ?? 0), s = Math.max(35, t?.height ?? 0), l = 7, c = [
20339
20351
  { x: o, y: 0 },
@@ -20345,7 +20357,7 @@ function _0(e, t) {
20345
20357
  ], h = nt.svg(n), u = at(t, {});
20346
20358
  t.look !== "handDrawn" && (u.roughness = 0, u.fillStyle = "solid");
20347
20359
  const f = _t(c), d = h.path(f, u), p = n.insert(() => d, ":first-child");
20348
- return a && t.look !== "handDrawn" && p.selectAll("path").attr("style", a), i && t.look !== "handDrawn" && p.selectAll("path").attr("style", i), p.attr("transform", `translate(-${o / 2},${-s})`), st(t, p), t.intersect = function(g) {
20360
+ return a && t.look !== "handDrawn" && p.selectAll("path").attr("style", a), i && t.look !== "handDrawn" && p.selectAll("path").attr("style", i), p.attr("transform", `translate(-${o / 2},${-s})`), ot(t, p), t.intersect = function(g) {
20349
20361
  return Y.info("lightningBolt intersect", t, g), et.polygon(t, c, g);
20350
20362
  }, n;
20351
20363
  }
@@ -20370,7 +20382,7 @@ var D$ = /* @__PURE__ */ m((e, t, r, i, n, a, o) => [
20370
20382
  `a${n},${a} 0,0,0 ${r},0`
20371
20383
  ].join(" "), "createOuterCylinderPathD"), F$ = /* @__PURE__ */ m((e, t, r, i, n, a) => [`M${e - r / 2},${-i / 2}`, `a${n},${a} 0,0,0 ${r},0`].join(" "), "createInnerCylinderPathD");
20372
20384
  async function S0(e, t) {
20373
- const { labelStyles: r, nodeStyles: i } = ot(t);
20385
+ const { labelStyles: r, nodeStyles: i } = lt(t);
20374
20386
  t.labelStyle = r;
20375
20387
  const { shapeSvg: n, bbox: a, label: o } = await mt(e, t, gt(t)), s = Math.max(a.width + (t.padding ?? 0), t.width ?? 0), l = s / 2, c = l / (2.5 + s / 50), h = Math.max(a.height + c + (t.padding ?? 0), t.height ?? 0), u = h * 0.1;
20376
20388
  let f;
@@ -20382,7 +20394,7 @@ async function S0(e, t) {
20382
20394
  const p = D$(0, 0, s, h, l, c, u);
20383
20395
  f = n.insert("path", ":first-child").attr("d", p).attr("class", "basic label-container").attr("style", oe(d)).attr("style", i);
20384
20396
  }
20385
- return f.attr("label-offset-y", c), f.attr("transform", `translate(${-s / 2}, ${-(h / 2 + c)})`), st(t, f), o.attr(
20397
+ return f.attr("label-offset-y", c), f.attr("transform", `translate(${-s / 2}, ${-(h / 2 + c)})`), ot(t, f), o.attr(
20386
20398
  "transform",
20387
20399
  `translate(${-(a.width / 2) - (a.x - (a.left ?? 0))}, ${-(a.height / 2) + c - (a.y - (a.top ?? 0))})`
20388
20400
  ), t.intersect = function(p) {
@@ -20396,7 +20408,7 @@ async function S0(e, t) {
20396
20408
  }
20397
20409
  m(S0, "linedCylinder");
20398
20410
  async function k0(e, t) {
20399
- const { labelStyles: r, nodeStyles: i } = ot(t);
20411
+ const { labelStyles: r, nodeStyles: i } = lt(t);
20400
20412
  t.labelStyle = r;
20401
20413
  const { shapeSvg: n, bbox: a, label: o } = await mt(e, t, gt(t)), s = Math.max(a.width + (t.padding ?? 0) * 2, t?.width ?? 0), l = Math.max(a.height + (t.padding ?? 0) * 2, t?.height ?? 0), c = l / 4, h = l + c, { cssStyles: u } = t, f = nt.svg(n), d = at(t, {});
20402
20414
  t.look !== "handDrawn" && (d.roughness = 0, d.fillStyle = "solid");
@@ -20423,13 +20435,13 @@ async function k0(e, t) {
20423
20435
  return y.attr("class", "basic label-container"), u && t.look !== "handDrawn" && y.selectAll("path").attr("style", u), i && t.look !== "handDrawn" && y.selectAll("path").attr("style", i), y.attr("transform", `translate(0,${-c / 2})`), o.attr(
20424
20436
  "transform",
20425
20437
  `translate(${-s / 2 + (t.padding ?? 0) + s / 2 * 0.1 / 2 - (a.x - (a.left ?? 0))},${-l / 2 + (t.padding ?? 0) - c / 2 - (a.y - (a.top ?? 0))})`
20426
- ), st(t, y), t.intersect = function(b) {
20438
+ ), ot(t, y), t.intersect = function(b) {
20427
20439
  return et.polygon(t, p, b);
20428
20440
  }, n;
20429
20441
  }
20430
20442
  m(k0, "linedWaveEdgedRect");
20431
20443
  async function T0(e, t) {
20432
- const { labelStyles: r, nodeStyles: i } = ot(t);
20444
+ const { labelStyles: r, nodeStyles: i } = lt(t);
20433
20445
  t.labelStyle = r;
20434
20446
  const { shapeSvg: n, bbox: a, label: o } = await mt(e, t, gt(t)), s = Math.max(a.width + (t.padding ?? 0) * 2, t?.width ?? 0), l = Math.max(a.height + (t.padding ?? 0) * 2, t?.height ?? 0), c = 5, h = -s / 2, u = -l / 2, { cssStyles: f } = t, d = nt.svg(n), p = at(t, {}), g = [
20435
20447
  { x: h - c, y: u + c },
@@ -20457,13 +20469,13 @@ async function T0(e, t) {
20457
20469
  return v.insert(() => x, ":first-child"), v.attr("class", "basic label-container"), f && t.look !== "handDrawn" && v.selectAll("path").attr("style", f), i && t.look !== "handDrawn" && v.selectAll("path").attr("style", i), o.attr(
20458
20470
  "transform",
20459
20471
  `translate(${-(a.width / 2) - c - (a.x - (a.left ?? 0))}, ${-(a.height / 2) + c - (a.y - (a.top ?? 0))})`
20460
- ), st(t, v), t.intersect = function(E) {
20472
+ ), ot(t, v), t.intersect = function(E) {
20461
20473
  return et.polygon(t, g, E);
20462
20474
  }, n;
20463
20475
  }
20464
20476
  m(T0, "multiRect");
20465
20477
  async function E0(e, t) {
20466
- const { labelStyles: r, nodeStyles: i } = ot(t);
20478
+ const { labelStyles: r, nodeStyles: i } = lt(t);
20467
20479
  t.labelStyle = r;
20468
20480
  const { shapeSvg: n, bbox: a, label: o } = await mt(e, t, gt(t)), s = Math.max(a.width + (t.padding ?? 0) * 2, t?.width ?? 0), l = Math.max(a.height + (t.padding ?? 0) * 2, t?.height ?? 0), c = l / 4, h = l + c, u = -s / 2, f = -h / 2, d = 5, { cssStyles: p } = t, g = Mr(
20469
20481
  u - d,
@@ -20498,13 +20510,13 @@ async function E0(e, t) {
20498
20510
  return z.insert(() => N), z.attr("class", "basic label-container"), p && t.look !== "handDrawn" && z.selectAll("path").attr("style", p), i && t.look !== "handDrawn" && z.selectAll("path").attr("style", i), z.attr("transform", `translate(0,${-c / 2})`), o.attr(
20499
20511
  "transform",
20500
20512
  `translate(${-(a.width / 2) - d - (a.x - (a.left ?? 0))}, ${-(a.height / 2) + d - c / 2 - (a.y - (a.top ?? 0))})`
20501
- ), st(t, z), t.intersect = function(I) {
20513
+ ), ot(t, z), t.intersect = function(I) {
20502
20514
  return et.polygon(t, b, I);
20503
20515
  }, n;
20504
20516
  }
20505
20517
  m(E0, "multiWaveEdgedRectangle");
20506
20518
  async function L0(e, t, { config: { themeVariables: r } }) {
20507
- const { labelStyles: i, nodeStyles: n } = ot(t);
20519
+ const { labelStyles: i, nodeStyles: n } = lt(t);
20508
20520
  t.labelStyle = i, t.useHtmlLabels || ae().flowchart?.htmlLabels !== !1 || (t.centerLabel = !0);
20509
20521
  const { shapeSvg: o, bbox: s, label: l } = await mt(e, t, gt(t)), c = Math.max(s.width + (t.padding ?? 0) * 2, t?.width ?? 0), h = Math.max(s.height + (t.padding ?? 0) * 2, t?.height ?? 0), u = -c / 2, f = -h / 2, { cssStyles: d } = t, p = nt.svg(o), g = at(t, {
20510
20522
  fill: r.noteBkgColor,
@@ -20515,7 +20527,7 @@ async function L0(e, t, { config: { themeVariables: r } }) {
20515
20527
  return b.attr("class", "basic label-container"), d && t.look !== "handDrawn" && b.selectAll("path").attr("style", d), n && t.look !== "handDrawn" && b.selectAll("path").attr("style", n), l.attr(
20516
20528
  "transform",
20517
20529
  `translate(${-s.width / 2 - (s.x - (s.left ?? 0))}, ${-(s.height / 2) - (s.y - (s.top ?? 0))})`
20518
- ), st(t, b), t.intersect = function(x) {
20530
+ ), ot(t, b), t.intersect = function(x) {
20519
20531
  return et.rect(t, x);
20520
20532
  }, o;
20521
20533
  }
@@ -20528,7 +20540,7 @@ var I$ = /* @__PURE__ */ m((e, t, r) => [
20528
20540
  "Z"
20529
20541
  ].join(" "), "createDecisionBoxPathD");
20530
20542
  async function A0(e, t) {
20531
- const { labelStyles: r, nodeStyles: i } = ot(t);
20543
+ const { labelStyles: r, nodeStyles: i } = lt(t);
20532
20544
  t.labelStyle = r;
20533
20545
  const { shapeSvg: n, bbox: a } = await mt(e, t, gt(t)), o = a.width + t.padding, s = a.height + t.padding, l = o + s, c = 0.5, h = [
20534
20546
  { x: l / 2, y: 0 },
@@ -20543,7 +20555,7 @@ async function A0(e, t) {
20543
20555
  u = n.insert(() => y, ":first-child").attr("transform", `translate(${-l / 2 + c}, ${l / 2})`), f && u.attr("style", f);
20544
20556
  } else
20545
20557
  u = Fr(n, l, l, h), u.attr("transform", `translate(${-l / 2 + c}, ${l / 2})`);
20546
- return i && u.attr("style", i), st(t, u), t.calcIntersect = function(d, p) {
20558
+ return i && u.attr("style", i), ot(t, u), t.calcIntersect = function(d, p) {
20547
20559
  const g = d.width, y = [
20548
20560
  { x: g / 2, y: 0 },
20549
20561
  { x: g, y: -g / 2 },
@@ -20557,7 +20569,7 @@ async function A0(e, t) {
20557
20569
  }
20558
20570
  m(A0, "question");
20559
20571
  async function $0(e, t) {
20560
- const { labelStyles: r, nodeStyles: i } = ot(t);
20572
+ const { labelStyles: r, nodeStyles: i } = lt(t);
20561
20573
  t.labelStyle = r;
20562
20574
  const { shapeSvg: n, bbox: a, label: o } = await mt(e, t, gt(t)), s = Math.max(a.width + (t.padding ?? 0), t?.width ?? 0), l = Math.max(a.height + (t.padding ?? 0), t?.height ?? 0), c = -s / 2, h = -l / 2, u = h / 2, f = [
20563
20575
  { x: c + u, y: h },
@@ -20571,13 +20583,13 @@ async function $0(e, t) {
20571
20583
  return x.attr("class", "basic label-container"), d && t.look !== "handDrawn" && x.selectAll("path").attr("style", d), i && t.look !== "handDrawn" && x.selectAll("path").attr("style", i), x.attr("transform", `translate(${-u / 2},0)`), o.attr(
20572
20584
  "transform",
20573
20585
  `translate(${-u / 2 - a.width / 2 - (a.x - (a.left ?? 0))}, ${-(a.height / 2) - (a.y - (a.top ?? 0))})`
20574
- ), st(t, x), t.intersect = function(w) {
20586
+ ), ot(t, x), t.intersect = function(w) {
20575
20587
  return et.polygon(t, f, w);
20576
20588
  }, n;
20577
20589
  }
20578
20590
  m($0, "rect_left_inv_arrow");
20579
20591
  async function M0(e, t) {
20580
- const { labelStyles: r, nodeStyles: i } = ot(t);
20592
+ const { labelStyles: r, nodeStyles: i } = lt(t);
20581
20593
  t.labelStyle = r;
20582
20594
  let n;
20583
20595
  t.cssClasses ? n = "node " + t.cssClasses : n = "node default";
@@ -20624,7 +20636,7 @@ async function M0(e, t) {
20624
20636
  T = a.insert(() => (Y.debug("Rough node insert CXC", I), k), ":first-child"), E = a.insert(() => (Y.debug("Rough node insert CXC", I), I), ":first-child");
20625
20637
  } else
20626
20638
  E = o.insert("rect", ":first-child"), T = o.insert("line"), E.attr("class", "outer title-state").attr("style", i).attr("x", -u.width / 2 - b).attr("y", -u.height / 2 - b).attr("width", u.width + (t.padding || 0)).attr("height", u.height + (t.padding || 0)), T.attr("class", "divider").attr("x1", -u.width / 2 - b).attr("x2", u.width / 2 + b).attr("y1", -u.height / 2 - b + d.height + b).attr("y2", -u.height / 2 - b + d.height + b);
20627
- return st(t, E), t.intersect = function(N) {
20639
+ return ot(t, E), t.intersect = function(N) {
20628
20640
  return et.rect(t, N);
20629
20641
  }, a;
20630
20642
  }
@@ -20645,7 +20657,7 @@ function En(e, t, r, i, n, a, o) {
20645
20657
  }
20646
20658
  m(En, "generateArcPoints");
20647
20659
  async function B0(e, t) {
20648
- const { labelStyles: r, nodeStyles: i } = ot(t);
20660
+ const { labelStyles: r, nodeStyles: i } = lt(t);
20649
20661
  t.labelStyle = r;
20650
20662
  const { shapeSvg: n, bbox: a } = await mt(e, t, gt(t)), o = t?.padding ?? 0, s = t?.padding ?? 0, l = (t?.width ? t?.width : a.width) + o * 2, c = (t?.height ? t?.height : a.height) + s * 2, h = t.radius || 5, u = t.taper || 5, { cssStyles: f } = t, d = nt.svg(n), p = at(t, {});
20651
20663
  t.stroke && (p.stroke = t.stroke), t.look !== "handDrawn" && (p.roughness = 0, p.fillStyle = "solid");
@@ -20679,13 +20691,13 @@ async function B0(e, t) {
20679
20691
  ...En(-l / 2, -c / 2 + u, -l / 2 + u, -c / 2, h, h, !0)
20680
20692
  // Top-left arc (4 to 5)
20681
20693
  ], y = _t(g), b = d.path(y, p), x = n.insert(() => b, ":first-child");
20682
- return x.attr("class", "basic label-container outer-path"), f && t.look !== "handDrawn" && x.selectChildren("path").attr("style", f), i && t.look !== "handDrawn" && x.selectChildren("path").attr("style", i), st(t, x), t.intersect = function(w) {
20694
+ return x.attr("class", "basic label-container outer-path"), f && t.look !== "handDrawn" && x.selectChildren("path").attr("style", f), i && t.look !== "handDrawn" && x.selectChildren("path").attr("style", i), ot(t, x), t.intersect = function(w) {
20683
20695
  return et.polygon(t, g, w);
20684
20696
  }, n;
20685
20697
  }
20686
20698
  m(B0, "roundedRect");
20687
20699
  async function O0(e, t) {
20688
- const { labelStyles: r, nodeStyles: i } = ot(t);
20700
+ const { labelStyles: r, nodeStyles: i } = lt(t);
20689
20701
  t.labelStyle = r;
20690
20702
  const { shapeSvg: n, bbox: a, label: o } = await mt(e, t, gt(t)), s = t?.padding ?? 0, l = Math.max(a.width + (t.padding ?? 0) * 2, t?.width ?? 0), c = Math.max(a.height + (t.padding ?? 0) * 2, t?.height ?? 0), h = -a.width / 2 - s, u = -a.height / 2 - s, { cssStyles: f } = t, d = nt.svg(n), p = at(t, {});
20691
20703
  t.look !== "handDrawn" && (p.roughness = 0, p.fillStyle = "solid");
@@ -20704,13 +20716,13 @@ async function O0(e, t) {
20704
20716
  return b.attr("class", "basic label-container").attr("style", oe(f)), i && t.look !== "handDrawn" && b.selectAll("path").attr("style", i), f && t.look !== "handDrawn" && b.selectAll("path").attr("style", i), o.attr(
20705
20717
  "transform",
20706
20718
  `translate(${-l / 2 + 4 + (t.padding ?? 0) - (a.x - (a.left ?? 0))},${-c / 2 + (t.padding ?? 0) - (a.y - (a.top ?? 0))})`
20707
- ), st(t, b), t.intersect = function(x) {
20719
+ ), ot(t, b), t.intersect = function(x) {
20708
20720
  return et.rect(t, x);
20709
20721
  }, n;
20710
20722
  }
20711
20723
  m(O0, "shadedProcess");
20712
20724
  async function D0(e, t) {
20713
- const { labelStyles: r, nodeStyles: i } = ot(t);
20725
+ const { labelStyles: r, nodeStyles: i } = lt(t);
20714
20726
  t.labelStyle = r;
20715
20727
  const { shapeSvg: n, bbox: a, label: o } = await mt(e, t, gt(t)), s = Math.max(a.width + (t.padding ?? 0) * 2, t?.width ?? 0), l = Math.max(a.height + (t.padding ?? 0) * 2, t?.height ?? 0), c = -s / 2, h = -l / 2, { cssStyles: u } = t, f = nt.svg(n), d = at(t, {});
20716
20728
  t.look !== "handDrawn" && (d.roughness = 0, d.fillStyle = "solid");
@@ -20723,7 +20735,7 @@ async function D0(e, t) {
20723
20735
  return b.attr("class", "basic label-container"), u && t.look !== "handDrawn" && b.selectChildren("path").attr("style", u), i && t.look !== "handDrawn" && b.selectChildren("path").attr("style", i), b.attr("transform", `translate(0, ${l / 4})`), o.attr(
20724
20736
  "transform",
20725
20737
  `translate(${-s / 2 + (t.padding ?? 0) - (a.x - (a.left ?? 0))}, ${-l / 4 + (t.padding ?? 0) - (a.y - (a.top ?? 0))})`
20726
- ), st(t, b), t.intersect = function(x) {
20738
+ ), ot(t, b), t.intersect = function(x) {
20727
20739
  return et.polygon(t, p, x);
20728
20740
  }, n;
20729
20741
  }
@@ -20739,7 +20751,7 @@ async function R0(e, t) {
20739
20751
  }
20740
20752
  m(R0, "squareRect");
20741
20753
  async function F0(e, t) {
20742
- const { labelStyles: r, nodeStyles: i } = ot(t);
20754
+ const { labelStyles: r, nodeStyles: i } = lt(t);
20743
20755
  t.labelStyle = r;
20744
20756
  const { shapeSvg: n, bbox: a } = await mt(e, t, gt(t)), o = a.height + t.padding, s = a.width + o / 4 + t.padding, l = o / 2, { cssStyles: c } = t, h = nt.svg(n), u = at(t, {});
20745
20757
  t.look !== "handDrawn" && (u.roughness = 0, u.fillStyle = "solid");
@@ -20750,7 +20762,7 @@ async function F0(e, t) {
20750
20762
  { x: s / 2 - l, y: o / 2 },
20751
20763
  ...Zn(s / 2 - l, 0, l, 50, 270, 450)
20752
20764
  ], d = _t(f), p = h.path(d, u), g = n.insert(() => p, ":first-child");
20753
- return g.attr("class", "basic label-container outer-path"), c && t.look !== "handDrawn" && g.selectChildren("path").attr("style", c), i && t.look !== "handDrawn" && g.selectChildren("path").attr("style", i), st(t, g), t.intersect = function(y) {
20765
+ return g.attr("class", "basic label-container outer-path"), c && t.look !== "handDrawn" && g.selectChildren("path").attr("style", c), i && t.look !== "handDrawn" && g.selectChildren("path").attr("style", i), ot(t, g), t.intersect = function(y) {
20754
20766
  return et.polygon(t, f, y);
20755
20767
  }, n;
20756
20768
  }
@@ -20763,7 +20775,7 @@ async function I0(e, t) {
20763
20775
  }
20764
20776
  m(I0, "state");
20765
20777
  function N0(e, t, { config: { themeVariables: r } }) {
20766
- const { labelStyles: i, nodeStyles: n } = ot(t);
20778
+ const { labelStyles: i, nodeStyles: n } = lt(t);
20767
20779
  t.labelStyle = i;
20768
20780
  const { cssStyles: a } = t, { lineColor: o, stateBorder: s, nodeBorder: l } = r, c = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), h = nt.svg(c), u = at(t, {});
20769
20781
  t.look !== "handDrawn" && (u.roughness = 0, u.fillStyle = "solid");
@@ -20778,7 +20790,7 @@ function N0(e, t, { config: { themeVariables: r } }) {
20778
20790
  strokeWidth: 2,
20779
20791
  fillStyle: "solid"
20780
20792
  }), g = c.insert(() => f, ":first-child");
20781
- return g.insert(() => p), a && g.selectAll("path").attr("style", a), n && g.selectAll("path").attr("style", n), st(t, g), t.intersect = function(y) {
20793
+ return g.insert(() => p), a && g.selectAll("path").attr("style", a), n && g.selectAll("path").attr("style", n), ot(t, g), t.intersect = function(y) {
20782
20794
  return et.circle(t, 7, y);
20783
20795
  }, c;
20784
20796
  }
@@ -20791,13 +20803,13 @@ function P0(e, t, { config: { themeVariables: r } }) {
20791
20803
  a = n.insert(() => s), a.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14);
20792
20804
  } else
20793
20805
  a = n.insert("circle", ":first-child"), a.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14);
20794
- return st(t, a), t.intersect = function(o) {
20806
+ return ot(t, a), t.intersect = function(o) {
20795
20807
  return et.circle(t, 7, o);
20796
20808
  }, n;
20797
20809
  }
20798
20810
  m(P0, "stateStart");
20799
20811
  async function j0(e, t) {
20800
- const { labelStyles: r, nodeStyles: i } = ot(t);
20812
+ const { labelStyles: r, nodeStyles: i } = lt(t);
20801
20813
  t.labelStyle = r;
20802
20814
  const { shapeSvg: n, bbox: a } = await mt(e, t, gt(t)), o = (t?.padding || 0) / 2, s = a.width + t.padding, l = a.height + t.padding, c = -a.width / 2 - o, h = -a.height / 2 - o, u = [
20803
20815
  { x: 0, y: 0 },
@@ -20815,10 +20827,10 @@ async function j0(e, t) {
20815
20827
  const f = nt.svg(n), d = at(t, {}), p = f.rectangle(c - 8, h, s + 16, l, d), g = f.line(c, h, c, h + l, d), y = f.line(c + s, h, c + s, h + l, d);
20816
20828
  n.insert(() => g, ":first-child"), n.insert(() => y, ":first-child");
20817
20829
  const b = n.insert(() => p, ":first-child"), { cssStyles: x } = t;
20818
- b.attr("class", "basic label-container").attr("style", oe(x)), st(t, b);
20830
+ b.attr("class", "basic label-container").attr("style", oe(x)), ot(t, b);
20819
20831
  } else {
20820
20832
  const f = Fr(n, s, l, u);
20821
- i && f.attr("style", i), st(t, f);
20833
+ i && f.attr("style", i), ot(t, f);
20822
20834
  }
20823
20835
  return t.intersect = function(f) {
20824
20836
  return et.polygon(t, u, f);
@@ -20826,7 +20838,7 @@ async function j0(e, t) {
20826
20838
  }
20827
20839
  m(j0, "subroutine");
20828
20840
  async function z0(e, t) {
20829
- const { labelStyles: r, nodeStyles: i } = ot(t);
20841
+ const { labelStyles: r, nodeStyles: i } = lt(t);
20830
20842
  t.labelStyle = r;
20831
20843
  const { shapeSvg: n, bbox: a } = await mt(e, t, gt(t)), o = Math.max(a.width + (t.padding ?? 0) * 2, t?.width ?? 0), s = Math.max(a.height + (t.padding ?? 0) * 2, t?.height ?? 0), l = -o / 2, c = -s / 2, h = 0.2 * s, u = 0.2 * s, { cssStyles: f } = t, d = nt.svg(n), p = at(t, {}), g = [
20832
20844
  { x: l - h / 2, y: c },
@@ -20840,13 +20852,13 @@ async function z0(e, t) {
20840
20852
  ];
20841
20853
  t.look !== "handDrawn" && (p.roughness = 0, p.fillStyle = "solid");
20842
20854
  const b = _t(g), x = d.path(b, p), w = _t(y), C = d.path(w, { ...p, fillStyle: "solid" }), v = n.insert(() => C, ":first-child");
20843
- return v.insert(() => x, ":first-child"), v.attr("class", "basic label-container"), f && t.look !== "handDrawn" && v.selectAll("path").attr("style", f), i && t.look !== "handDrawn" && v.selectAll("path").attr("style", i), st(t, v), t.intersect = function(E) {
20855
+ return v.insert(() => x, ":first-child"), v.attr("class", "basic label-container"), f && t.look !== "handDrawn" && v.selectAll("path").attr("style", f), i && t.look !== "handDrawn" && v.selectAll("path").attr("style", i), ot(t, v), t.intersect = function(E) {
20844
20856
  return et.polygon(t, g, E);
20845
20857
  }, n;
20846
20858
  }
20847
20859
  m(z0, "taggedRect");
20848
20860
  async function W0(e, t) {
20849
- const { labelStyles: r, nodeStyles: i } = ot(t);
20861
+ const { labelStyles: r, nodeStyles: i } = lt(t);
20850
20862
  t.labelStyle = r;
20851
20863
  const { shapeSvg: n, bbox: a, label: o } = await mt(e, t, gt(t)), s = Math.max(a.width + (t.padding ?? 0) * 2, t?.width ?? 0), l = Math.max(a.height + (t.padding ?? 0) * 2, t?.height ?? 0), c = l / 4, h = 0.2 * s, u = 0.2 * l, f = l + c, { cssStyles: d } = t, p = nt.svg(n), g = at(t, {});
20852
20864
  t.look !== "handDrawn" && (g.roughness = 0, g.fillStyle = "solid");
@@ -20881,16 +20893,16 @@ async function W0(e, t) {
20881
20893
  return N.insert(() => v, ":first-child"), N.attr("class", "basic label-container"), d && t.look !== "handDrawn" && N.selectAll("path").attr("style", d), i && t.look !== "handDrawn" && N.selectAll("path").attr("style", i), N.attr("transform", `translate(0,${-c / 2})`), o.attr(
20882
20894
  "transform",
20883
20895
  `translate(${-s / 2 + (t.padding ?? 0) - (a.x - (a.left ?? 0))},${-l / 2 + (t.padding ?? 0) - c / 2 - (a.y - (a.top ?? 0))})`
20884
- ), st(t, N), t.intersect = function(z) {
20896
+ ), ot(t, N), t.intersect = function(z) {
20885
20897
  return et.polygon(t, y, z);
20886
20898
  }, n;
20887
20899
  }
20888
20900
  m(W0, "taggedWaveEdgedRectangle");
20889
20901
  async function q0(e, t) {
20890
- const { labelStyles: r, nodeStyles: i } = ot(t);
20902
+ const { labelStyles: r, nodeStyles: i } = lt(t);
20891
20903
  t.labelStyle = r;
20892
20904
  const { shapeSvg: n, bbox: a } = await mt(e, t, gt(t)), o = Math.max(a.width + t.padding, t?.width || 0), s = Math.max(a.height + t.padding, t?.height || 0), l = -o / 2, c = -s / 2, h = n.insert("rect", ":first-child");
20893
- return h.attr("class", "text").attr("style", i).attr("rx", 0).attr("ry", 0).attr("x", l).attr("y", c).attr("width", o).attr("height", s), st(t, h), t.intersect = function(u) {
20905
+ return h.attr("class", "text").attr("style", i).attr("rx", 0).attr("ry", 0).attr("x", l).attr("y", c).attr("width", o).attr("height", s), ot(t, h), t.intersect = function(u) {
20894
20906
  return et.rect(t, u);
20895
20907
  }, n;
20896
20908
  }
@@ -20910,7 +20922,7 @@ var N$ = /* @__PURE__ */ m((e, t, r, i, n, a) => `M${e},${t}
20910
20922
  `l${r},0`
20911
20923
  ].join(" "), "createOuterCylinderPathD"), j$ = /* @__PURE__ */ m((e, t, r, i, n, a) => [`M${e + r / 2},${-i / 2}`, `a${n},${a} 0,0,0 0,${i}`].join(" "), "createInnerCylinderPathD");
20912
20924
  async function H0(e, t) {
20913
- const { labelStyles: r, nodeStyles: i } = ot(t);
20925
+ const { labelStyles: r, nodeStyles: i } = lt(t);
20914
20926
  t.labelStyle = r;
20915
20927
  const { shapeSvg: n, bbox: a, label: o, halfPadding: s } = await mt(
20916
20928
  e,
@@ -20928,7 +20940,7 @@ async function H0(e, t) {
20928
20940
  return p.attr("label-offset-x", u), p.attr("transform", `translate(${-f / 2}, ${c / 2} )`), o.attr(
20929
20941
  "transform",
20930
20942
  `translate(${-(a.width / 2) - u - (a.x - (a.left ?? 0))}, ${-(a.height / 2) - (a.y - (a.top ?? 0))})`
20931
- ), st(t, p), t.intersect = function(g) {
20943
+ ), ot(t, p), t.intersect = function(g) {
20932
20944
  const y = et.rect(t, g), b = y.y - (t.y ?? 0);
20933
20945
  if (h != 0 && (Math.abs(b) < (t.height ?? 0) / 2 || Math.abs(b) == (t.height ?? 0) / 2 && Math.abs(y.x - (t.x ?? 0)) > (t.width ?? 0) / 2 - u)) {
20934
20946
  let x = u * u * (1 - b * b / (h * h));
@@ -20939,7 +20951,7 @@ async function H0(e, t) {
20939
20951
  }
20940
20952
  m(H0, "tiltedCylinder");
20941
20953
  async function U0(e, t) {
20942
- const { labelStyles: r, nodeStyles: i } = ot(t);
20954
+ const { labelStyles: r, nodeStyles: i } = lt(t);
20943
20955
  t.labelStyle = r;
20944
20956
  const { shapeSvg: n, bbox: a } = await mt(e, t, gt(t)), o = a.width + t.padding, s = a.height + t.padding, l = [
20945
20957
  { x: -3 * s / 6, y: 0 },
@@ -20954,13 +20966,13 @@ async function U0(e, t) {
20954
20966
  c = n.insert(() => p, ":first-child").attr("transform", `translate(${-o / 2}, ${s / 2})`), h && c.attr("style", h);
20955
20967
  } else
20956
20968
  c = Fr(n, o, s, l);
20957
- return i && c.attr("style", i), t.width = o, t.height = s, st(t, c), t.intersect = function(u) {
20969
+ return i && c.attr("style", i), t.width = o, t.height = s, ot(t, c), t.intersect = function(u) {
20958
20970
  return et.polygon(t, l, u);
20959
20971
  }, n;
20960
20972
  }
20961
20973
  m(U0, "trapezoid");
20962
20974
  async function Y0(e, t) {
20963
- const { labelStyles: r, nodeStyles: i } = ot(t);
20975
+ const { labelStyles: r, nodeStyles: i } = lt(t);
20964
20976
  t.labelStyle = r;
20965
20977
  const { shapeSvg: n, bbox: a } = await mt(e, t, gt(t)), o = 60, s = 20, l = Math.max(o, a.width + (t.padding ?? 0) * 2, t?.width ?? 0), c = Math.max(s, a.height + (t.padding ?? 0) * 2, t?.height ?? 0), { cssStyles: h } = t, u = nt.svg(n), f = at(t, {});
20966
20978
  t.look !== "handDrawn" && (f.roughness = 0, f.fillStyle = "solid");
@@ -20972,13 +20984,13 @@ async function Y0(e, t) {
20972
20984
  { x: -l / 2, y: c / 2 },
20973
20985
  { x: -l / 2, y: -c / 2 * 0.6 }
20974
20986
  ], p = _t(d), g = u.path(p, f), y = n.insert(() => g, ":first-child");
20975
- return y.attr("class", "basic label-container"), h && t.look !== "handDrawn" && y.selectChildren("path").attr("style", h), i && t.look !== "handDrawn" && y.selectChildren("path").attr("style", i), st(t, y), t.intersect = function(b) {
20987
+ return y.attr("class", "basic label-container"), h && t.look !== "handDrawn" && y.selectChildren("path").attr("style", h), i && t.look !== "handDrawn" && y.selectChildren("path").attr("style", i), ot(t, y), t.intersect = function(b) {
20976
20988
  return et.polygon(t, d, b);
20977
20989
  }, n;
20978
20990
  }
20979
20991
  m(Y0, "trapezoidalPentagon");
20980
20992
  async function G0(e, t) {
20981
- const { labelStyles: r, nodeStyles: i } = ot(t);
20993
+ const { labelStyles: r, nodeStyles: i } = lt(t);
20982
20994
  t.labelStyle = r;
20983
20995
  const { shapeSvg: n, bbox: a, label: o } = await mt(e, t, gt(t)), s = Kt(Mt().flowchart?.htmlLabels), l = a.width + (t.padding ?? 0), c = l + a.height, h = l + a.height, u = [
20984
20996
  { x: 0, y: 0 },
@@ -20987,7 +20999,7 @@ async function G0(e, t) {
20987
20999
  ], { cssStyles: f } = t, d = nt.svg(n), p = at(t, {});
20988
21000
  t.look !== "handDrawn" && (p.roughness = 0, p.fillStyle = "solid");
20989
21001
  const g = _t(u), y = d.path(g, p), b = n.insert(() => y, ":first-child").attr("transform", `translate(${-c / 2}, ${c / 2})`);
20990
- return f && t.look !== "handDrawn" && b.selectChildren("path").attr("style", f), i && t.look !== "handDrawn" && b.selectChildren("path").attr("style", i), t.width = l, t.height = c, st(t, b), o.attr(
21002
+ return f && t.look !== "handDrawn" && b.selectChildren("path").attr("style", f), i && t.look !== "handDrawn" && b.selectChildren("path").attr("style", i), t.width = l, t.height = c, ot(t, b), o.attr(
20991
21003
  "transform",
20992
21004
  `translate(${-a.width / 2 - (a.x - (a.left ?? 0))}, ${c / 2 - (a.height + (t.padding ?? 0) / (s ? 2 : 1) - (a.y - (a.top ?? 0)))})`
20993
21005
  ), t.intersect = function(x) {
@@ -20996,7 +21008,7 @@ async function G0(e, t) {
20996
21008
  }
20997
21009
  m(G0, "triangle");
20998
21010
  async function V0(e, t) {
20999
- const { labelStyles: r, nodeStyles: i } = ot(t);
21011
+ const { labelStyles: r, nodeStyles: i } = lt(t);
21000
21012
  t.labelStyle = r;
21001
21013
  const { shapeSvg: n, bbox: a, label: o } = await mt(e, t, gt(t)), s = Math.max(a.width + (t.padding ?? 0) * 2, t?.width ?? 0), l = Math.max(a.height + (t.padding ?? 0) * 2, t?.height ?? 0), c = l / 8, h = l + c, { cssStyles: u } = t, d = 70 - s, p = d > 0 ? d / 2 : 0, g = nt.svg(n), y = at(t, {});
21002
21014
  t.look !== "handDrawn" && (y.roughness = 0, y.fillStyle = "solid");
@@ -21016,13 +21028,13 @@ async function V0(e, t) {
21016
21028
  return C.attr("class", "basic label-container"), u && t.look !== "handDrawn" && C.selectAll("path").attr("style", u), i && t.look !== "handDrawn" && C.selectAll("path").attr("style", i), C.attr("transform", `translate(0,${-c / 2})`), o.attr(
21017
21029
  "transform",
21018
21030
  `translate(${-s / 2 + (t.padding ?? 0) - (a.x - (a.left ?? 0))},${-l / 2 + (t.padding ?? 0) - c - (a.y - (a.top ?? 0))})`
21019
- ), st(t, C), t.intersect = function(v) {
21031
+ ), ot(t, C), t.intersect = function(v) {
21020
21032
  return et.polygon(t, b, v);
21021
21033
  }, n;
21022
21034
  }
21023
21035
  m(V0, "waveEdgedRectangle");
21024
21036
  async function X0(e, t) {
21025
- const { labelStyles: r, nodeStyles: i } = ot(t);
21037
+ const { labelStyles: r, nodeStyles: i } = lt(t);
21026
21038
  t.labelStyle = r;
21027
21039
  const { shapeSvg: n, bbox: a } = await mt(e, t, gt(t)), o = 100, s = 50, l = Math.max(a.width + (t.padding ?? 0) * 2, t?.width ?? 0), c = Math.max(a.height + (t.padding ?? 0) * 2, t?.height ?? 0), h = l / c;
21028
21040
  let u = l, f = c;
@@ -21035,13 +21047,13 @@ async function X0(e, t) {
21035
21047
  { x: u / 2, y: -p / 2 },
21036
21048
  ...Mr(u / 2, -p / 2, -u / 2, -p / 2, d, -1)
21037
21049
  ], w = _t(x), C = y.path(w, b), v = n.insert(() => C, ":first-child");
21038
- return v.attr("class", "basic label-container"), g && t.look !== "handDrawn" && v.selectAll("path").attr("style", g), i && t.look !== "handDrawn" && v.selectAll("path").attr("style", i), st(t, v), t.intersect = function(E) {
21050
+ return v.attr("class", "basic label-container"), g && t.look !== "handDrawn" && v.selectAll("path").attr("style", g), i && t.look !== "handDrawn" && v.selectAll("path").attr("style", i), ot(t, v), t.intersect = function(E) {
21039
21051
  return et.polygon(t, x, E);
21040
21052
  }, n;
21041
21053
  }
21042
21054
  m(X0, "waveRectangle");
21043
21055
  async function K0(e, t) {
21044
- const { labelStyles: r, nodeStyles: i } = ot(t);
21056
+ const { labelStyles: r, nodeStyles: i } = lt(t);
21045
21057
  t.labelStyle = r;
21046
21058
  const { shapeSvg: n, bbox: a, label: o } = await mt(e, t, gt(t)), s = Math.max(a.width + (t.padding ?? 0) * 2, t?.width ?? 0), l = Math.max(a.height + (t.padding ?? 0) * 2, t?.height ?? 0), c = 5, h = -s / 2, u = -l / 2, { cssStyles: f } = t, d = nt.svg(n), p = at(t, {}), g = [
21047
21059
  { x: h - c, y: u - c },
@@ -21056,7 +21068,7 @@ async function K0(e, t) {
21056
21068
  return x.attr("transform", `translate(${c / 2}, ${c / 2})`), x.attr("class", "basic label-container"), f && t.look !== "handDrawn" && x.selectAll("path").attr("style", f), i && t.look !== "handDrawn" && x.selectAll("path").attr("style", i), o.attr(
21057
21069
  "transform",
21058
21070
  `translate(${-(a.width / 2) + c / 2 - (a.x - (a.left ?? 0))}, ${-(a.height / 2) + c / 2 - (a.y - (a.top ?? 0))})`
21059
- ), st(t, x), t.intersect = function(w) {
21071
+ ), ot(t, x), t.intersect = function(w) {
21060
21072
  return et.polygon(t, g, w);
21061
21073
  }, n;
21062
21074
  }
@@ -21075,7 +21087,7 @@ async function _h(e, t) {
21075
21087
  const i = ae();
21076
21088
  t.useHtmlLabels = i.htmlLabels;
21077
21089
  let n = i.er?.diagramPadding ?? 10, a = i.er?.entityPadding ?? 6;
21078
- const { cssStyles: o } = t, { labelStyles: s, nodeStyles: l } = ot(t);
21090
+ const { cssStyles: o } = t, { labelStyles: s, nodeStyles: l } = lt(t);
21079
21091
  if (r.attributes.length === 0 && t.label) {
21080
21092
  const q = {
21081
21093
  rx: 0,
@@ -21199,7 +21211,7 @@ async function _h(e, t) {
21199
21211
  u.height + B + q,
21200
21212
  z
21201
21213
  ), h.insert(() => $).attr("class", "divider");
21202
- if (st(t, M), l && t.look !== "handDrawn") {
21214
+ if (ot(t, M), l && t.look !== "handDrawn") {
21203
21215
  const P = l.split(";")?.filter((H) => H.includes("stroke"))?.map((H) => `${H}`).join("; ");
21204
21216
  h.selectAll("path").attr("style", P ?? ""), h.selectAll(".row-rect-even path").attr("style", l);
21205
21217
  }
@@ -21325,7 +21337,7 @@ m(Ln, "addText");
21325
21337
  async function Q0(e, t) {
21326
21338
  const r = Mt(), i = r.class.padding ?? 12, n = i, a = t.useHtmlLabels ?? Kt(r.htmlLabels) ?? !0, o = t;
21327
21339
  o.annotations = o.annotations ?? [], o.members = o.members ?? [], o.methods = o.methods ?? [];
21328
- const { shapeSvg: s, bbox: l } = await Z0(e, t, r, a, n), { labelStyles: c, nodeStyles: h } = ot(t);
21340
+ const { shapeSvg: s, bbox: l } = await Z0(e, t, r, a, n), { labelStyles: c, nodeStyles: h } = lt(t);
21329
21341
  t.labelStyle = c, t.cssStyles = o.styles || "";
21330
21342
  const u = o.styles?.join(";") || h || "";
21331
21343
  t.cssStyles || (t.cssStyles = u.replaceAll("!important", "").split(";"));
@@ -21391,13 +21403,13 @@ async function Q0(e, t) {
21391
21403
  }
21392
21404
  }
21393
21405
  }
21394
- return st(t, C), t.intersect = function(z) {
21406
+ return ot(t, C), t.intersect = function(z) {
21395
21407
  return et.rect(t, z);
21396
21408
  }, s;
21397
21409
  }
21398
21410
  m(Q0, "classBox");
21399
21411
  async function J0(e, t) {
21400
- const { labelStyles: r, nodeStyles: i } = ot(t);
21412
+ const { labelStyles: r, nodeStyles: i } = lt(t);
21401
21413
  t.labelStyle = r;
21402
21414
  const n = t, a = t, o = 20, s = 20, l = "verifyMethod" in t, c = gt(t), h = e.insert("g").attr("class", c).attr("id", t.domId ?? t.id);
21403
21415
  let u;
@@ -21478,7 +21490,7 @@ async function J0(e, t) {
21478
21490
  );
21479
21491
  h.insert(() => E).attr("style", i);
21480
21492
  }
21481
- return st(t, v), t.intersect = function(E) {
21493
+ return ot(t, v), t.intersect = function(E) {
21482
21494
  return et.rect(t, E);
21483
21495
  }, h;
21484
21496
  }
@@ -21527,7 +21539,7 @@ var z$ = /* @__PURE__ */ m((e) => {
21527
21539
  }
21528
21540
  }, "colorFromPriority");
21529
21541
  async function tb(e, t, { config: r }) {
21530
- const { labelStyles: i, nodeStyles: n } = ot(t);
21542
+ const { labelStyles: i, nodeStyles: n } = lt(t);
21531
21543
  t.labelStyle = i || "";
21532
21544
  const a = 10, o = t.width;
21533
21545
  t.width = (t.width ?? 200) - 10;
@@ -21586,13 +21598,13 @@ async function tb(e, t, { config: r }) {
21586
21598
  D.attr("x1", B).attr("y1", O).attr("x2", B).attr("y2", M).attr("stroke-width", "4").attr("stroke", z$(L));
21587
21599
  }
21588
21600
  }
21589
- return st(t, N), t.height = v, t.intersect = function(L) {
21601
+ return ot(t, N), t.height = v, t.intersect = function(L) {
21590
21602
  return et.rect(t, L);
21591
21603
  }, s;
21592
21604
  }
21593
21605
  m(tb, "kanbanItem");
21594
21606
  async function eb(e, t) {
21595
- const { labelStyles: r, nodeStyles: i } = ot(t);
21607
+ const { labelStyles: r, nodeStyles: i } = lt(t);
21596
21608
  t.labelStyle = r;
21597
21609
  const { shapeSvg: n, bbox: a, halfPadding: o, label: s } = await mt(
21598
21610
  e,
@@ -21625,7 +21637,7 @@ async function eb(e, t) {
21625
21637
  y = n.insert(() => C, ":first-child"), y.attr("class", "basic label-container").attr("style", oe(u));
21626
21638
  } else
21627
21639
  y = n.insert("path", ":first-child").attr("class", "basic label-container").attr("style", i).attr("d", b);
21628
- return y.attr("transform", `translate(${-p / 2}, ${-g / 2})`), st(t, y), t.calcIntersect = function(x, w) {
21640
+ return y.attr("transform", `translate(${-p / 2}, ${-g / 2})`), ot(t, y), t.calcIntersect = function(x, w) {
21629
21641
  return et.rect(x, w);
21630
21642
  }, t.intersect = function(x) {
21631
21643
  return Y.info("Bang intersect", t, x), et.rect(t, x);
@@ -21633,7 +21645,7 @@ async function eb(e, t) {
21633
21645
  }
21634
21646
  m(eb, "bang");
21635
21647
  async function rb(e, t) {
21636
- const { labelStyles: r, nodeStyles: i } = ot(t);
21648
+ const { labelStyles: r, nodeStyles: i } = lt(t);
21637
21649
  t.labelStyle = r;
21638
21650
  const { shapeSvg: n, bbox: a, halfPadding: o, label: s } = await mt(
21639
21651
  e,
@@ -21661,7 +21673,7 @@ async function rb(e, t) {
21661
21673
  g = n.insert(() => w, ":first-child"), g.attr("class", "basic label-container").attr("style", oe(p));
21662
21674
  } else
21663
21675
  g = n.insert("path", ":first-child").attr("class", "basic label-container").attr("style", i).attr("d", y);
21664
- return s.attr("transform", `translate(${-a.width / 2}, ${-a.height / 2})`), g.attr("transform", `translate(${-l / 2}, ${-c / 2})`), st(t, g), t.calcIntersect = function(b, x) {
21676
+ return s.attr("transform", `translate(${-a.width / 2}, ${-a.height / 2})`), g.attr("transform", `translate(${-l / 2}, ${-c / 2})`), ot(t, g), t.calcIntersect = function(b, x) {
21665
21677
  return et.rect(b, x);
21666
21678
  }, t.intersect = function(b) {
21667
21679
  return Y.info("Cloud intersect", t, b), et.rect(t, b);
@@ -21669,7 +21681,7 @@ async function rb(e, t) {
21669
21681
  }
21670
21682
  m(rb, "cloud");
21671
21683
  async function ib(e, t) {
21672
- const { labelStyles: r, nodeStyles: i } = ot(t);
21684
+ const { labelStyles: r, nodeStyles: i } = lt(t);
21673
21685
  t.labelStyle = r;
21674
21686
  const { shapeSvg: n, bbox: a, halfPadding: o, label: s } = await mt(
21675
21687
  e,
@@ -21687,7 +21699,7 @@ async function ib(e, t) {
21687
21699
  q-${h},0 -${h},-${h}
21688
21700
  Z
21689
21701
  `, f = n.append("path").attr("id", "node-" + t.id).attr("class", "node-bkg node-" + t.type).attr("style", i).attr("d", u);
21690
- return n.append("line").attr("class", "node-line-").attr("x1", -l / 2).attr("y1", c / 2).attr("x2", l / 2).attr("y2", c / 2), s.attr("transform", `translate(${-a.width / 2}, ${-a.height / 2})`), n.append(() => s.node()), st(t, f), t.calcIntersect = function(d, p) {
21702
+ return n.append("line").attr("class", "node-line-").attr("x1", -l / 2).attr("y1", c / 2).attr("x2", l / 2).attr("y2", c / 2), s.attr("transform", `translate(${-a.width / 2}, ${-a.height / 2})`), n.append(() => s.node()), ot(t, f), t.calcIntersect = function(d, p) {
21691
21703
  return et.rect(d, p);
21692
21704
  }, t.intersect = function(d) {
21693
21705
  return et.rect(t, d);
@@ -22601,11 +22613,11 @@ var id = /* @__PURE__ */ m(function(e, t, r) {
22601
22613
  lb([
22602
22614
  {
22603
22615
  name: "dagre",
22604
- loader: /* @__PURE__ */ m(async () => await import("./dagre-5GWH7T2D-B5ML3qQ1.js"), "loader")
22616
+ loader: /* @__PURE__ */ m(async () => await import("./dagre-5GWH7T2D-CufXqSXY.js"), "loader")
22605
22617
  },
22606
22618
  {
22607
22619
  name: "cose-bilkent",
22608
- loader: /* @__PURE__ */ m(async () => await import("./cose-bilkent-S5V4N54A-BEcJjG5J.js"), "loader")
22620
+ loader: /* @__PURE__ */ m(async () => await import("./cose-bilkent-S5V4N54A-Bdej0eOn.js"), "loader")
22609
22621
  }
22610
22622
  ]);
22611
22623
  }, "registerDefaultLayoutLoaders");
@@ -22952,119 +22964,119 @@ function ud(e) {
22952
22964
  return !0;
22953
22965
  }
22954
22966
  var gb = "c4", KM = /* @__PURE__ */ m((e) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e), "detector"), ZM = /* @__PURE__ */ m(async () => {
22955
- const { diagram: e } = await import("./c4Diagram-FPNF74CW-COSc4Hjh.js");
22967
+ const { diagram: e } = await import("./c4Diagram-FPNF74CW-DIAc_51j.js");
22956
22968
  return { id: gb, diagram: e };
22957
22969
  }, "loader"), QM = {
22958
22970
  id: gb,
22959
22971
  detector: KM,
22960
22972
  loader: ZM
22961
22973
  }, JM = QM, mb = "flowchart", tB = /* @__PURE__ */ m((e, t) => t?.flowchart?.defaultRenderer === "dagre-wrapper" || t?.flowchart?.defaultRenderer === "elk" ? !1 : /^\s*graph/.test(e), "detector"), eB = /* @__PURE__ */ m(async () => {
22962
- const { diagram: e } = await import("./flowDiagram-PVAE7QVJ-W7VJHYxF.js");
22974
+ const { diagram: e } = await import("./flowDiagram-PVAE7QVJ-BcIeLAS5.js");
22963
22975
  return { id: mb, diagram: e };
22964
22976
  }, "loader"), rB = {
22965
22977
  id: mb,
22966
22978
  detector: tB,
22967
22979
  loader: eB
22968
22980
  }, iB = rB, yb = "flowchart-v2", nB = /* @__PURE__ */ m((e, t) => t?.flowchart?.defaultRenderer === "dagre-d3" ? !1 : (t?.flowchart?.defaultRenderer === "elk" && (t.layout = "elk"), /^\s*graph/.test(e) && t?.flowchart?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*flowchart/.test(e)), "detector"), aB = /* @__PURE__ */ m(async () => {
22969
- const { diagram: e } = await import("./flowDiagram-PVAE7QVJ-W7VJHYxF.js");
22981
+ const { diagram: e } = await import("./flowDiagram-PVAE7QVJ-BcIeLAS5.js");
22970
22982
  return { id: yb, diagram: e };
22971
22983
  }, "loader"), sB = {
22972
22984
  id: yb,
22973
22985
  detector: nB,
22974
22986
  loader: aB
22975
22987
  }, oB = sB, bb = "er", lB = /* @__PURE__ */ m((e) => /^\s*erDiagram/.test(e), "detector"), cB = /* @__PURE__ */ m(async () => {
22976
- const { diagram: e } = await import("./erDiagram-AWTI2OKA-CsAl1M8J.js");
22988
+ const { diagram: e } = await import("./erDiagram-AWTI2OKA-71SqvKbR.js");
22977
22989
  return { id: bb, diagram: e };
22978
22990
  }, "loader"), hB = {
22979
22991
  id: bb,
22980
22992
  detector: lB,
22981
22993
  loader: cB
22982
22994
  }, uB = hB, xb = "gitGraph", fB = /* @__PURE__ */ m((e) => /^\s*gitGraph/.test(e), "detector"), dB = /* @__PURE__ */ m(async () => {
22983
- const { diagram: e } = await import("./gitGraphDiagram-NY62KEGX-rRmM5Vva.js");
22995
+ const { diagram: e } = await import("./gitGraphDiagram-NY62KEGX-BUSA-d6e.js");
22984
22996
  return { id: xb, diagram: e };
22985
22997
  }, "loader"), pB = {
22986
22998
  id: xb,
22987
22999
  detector: fB,
22988
23000
  loader: dB
22989
23001
  }, gB = pB, vb = "gantt", mB = /* @__PURE__ */ m((e) => /^\s*gantt/.test(e), "detector"), yB = /* @__PURE__ */ m(async () => {
22990
- const { diagram: e } = await import("./ganttDiagram-OWAHRB6G-BR-PkY7Q.js");
23002
+ const { diagram: e } = await import("./ganttDiagram-OWAHRB6G-Bj8WgUSO.js");
22991
23003
  return { id: vb, diagram: e };
22992
23004
  }, "loader"), bB = {
22993
23005
  id: vb,
22994
23006
  detector: mB,
22995
23007
  loader: yB
22996
23008
  }, xB = bB, wb = "info", vB = /* @__PURE__ */ m((e) => /^\s*info/.test(e), "detector"), wB = /* @__PURE__ */ m(async () => {
22997
- const { diagram: e } = await import("./infoDiagram-STP46IZ2-D6xJZ5O0.js");
23009
+ const { diagram: e } = await import("./infoDiagram-STP46IZ2-CdUpe2hf.js");
22998
23010
  return { id: wb, diagram: e };
22999
23011
  }, "loader"), CB = {
23000
23012
  id: wb,
23001
23013
  detector: vB,
23002
23014
  loader: wB
23003
23015
  }, Cb = "pie", _B = /* @__PURE__ */ m((e) => /^\s*pie/.test(e), "detector"), SB = /* @__PURE__ */ m(async () => {
23004
- const { diagram: e } = await import("./pieDiagram-ADFJNKIX-DPWD7HXY.js");
23016
+ const { diagram: e } = await import("./pieDiagram-ADFJNKIX-CuqoMrzq.js");
23005
23017
  return { id: Cb, diagram: e };
23006
23018
  }, "loader"), kB = {
23007
23019
  id: Cb,
23008
23020
  detector: _B,
23009
23021
  loader: SB
23010
23022
  }, _b = "quadrantChart", TB = /* @__PURE__ */ m((e) => /^\s*quadrantChart/.test(e), "detector"), EB = /* @__PURE__ */ m(async () => {
23011
- const { diagram: e } = await import("./quadrantDiagram-LMRXKWRM-Cbz7AkYQ.js");
23023
+ const { diagram: e } = await import("./quadrantDiagram-LMRXKWRM-VuvJ3dQN.js");
23012
23024
  return { id: _b, diagram: e };
23013
23025
  }, "loader"), LB = {
23014
23026
  id: _b,
23015
23027
  detector: TB,
23016
23028
  loader: EB
23017
23029
  }, AB = LB, Sb = "xychart", $B = /* @__PURE__ */ m((e) => /^\s*xychart(-beta)?/.test(e), "detector"), MB = /* @__PURE__ */ m(async () => {
23018
- const { diagram: e } = await import("./xychartDiagram-6GGTOJPD-BJx0oVUp.js");
23030
+ const { diagram: e } = await import("./xychartDiagram-6GGTOJPD-DnrWFRq1.js");
23019
23031
  return { id: Sb, diagram: e };
23020
23032
  }, "loader"), BB = {
23021
23033
  id: Sb,
23022
23034
  detector: $B,
23023
23035
  loader: MB
23024
23036
  }, OB = BB, kb = "requirement", DB = /* @__PURE__ */ m((e) => /^\s*requirement(Diagram)?/.test(e), "detector"), RB = /* @__PURE__ */ m(async () => {
23025
- const { diagram: e } = await import("./requirementDiagram-4UW4RH46-DrIi5EEk.js");
23037
+ const { diagram: e } = await import("./requirementDiagram-4UW4RH46-ChTupQzv.js");
23026
23038
  return { id: kb, diagram: e };
23027
23039
  }, "loader"), FB = {
23028
23040
  id: kb,
23029
23041
  detector: DB,
23030
23042
  loader: RB
23031
23043
  }, IB = FB, Tb = "sequence", NB = /* @__PURE__ */ m((e) => /^\s*sequenceDiagram/.test(e), "detector"), PB = /* @__PURE__ */ m(async () => {
23032
- const { diagram: e } = await import("./sequenceDiagram-C3RYC4MD-o2An7wPv.js");
23044
+ const { diagram: e } = await import("./sequenceDiagram-C3RYC4MD-qQRk3REZ.js");
23033
23045
  return { id: Tb, diagram: e };
23034
23046
  }, "loader"), jB = {
23035
23047
  id: Tb,
23036
23048
  detector: NB,
23037
23049
  loader: PB
23038
23050
  }, zB = jB, Eb = "class", WB = /* @__PURE__ */ m((e, t) => t?.class?.defaultRenderer === "dagre-wrapper" ? !1 : /^\s*classDiagram/.test(e), "detector"), qB = /* @__PURE__ */ m(async () => {
23039
- const { diagram: e } = await import("./classDiagram-KNZD7YFC-yKr2ZVVL.js");
23051
+ const { diagram: e } = await import("./classDiagram-KNZD7YFC-BzT8H7WT.js");
23040
23052
  return { id: Eb, diagram: e };
23041
23053
  }, "loader"), HB = {
23042
23054
  id: Eb,
23043
23055
  detector: WB,
23044
23056
  loader: qB
23045
23057
  }, UB = HB, Lb = "classDiagram", YB = /* @__PURE__ */ m((e, t) => /^\s*classDiagram/.test(e) && t?.class?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(e), "detector"), GB = /* @__PURE__ */ m(async () => {
23046
- const { diagram: e } = await import("./classDiagram-v2-RKCZMP56-yKr2ZVVL.js");
23058
+ const { diagram: e } = await import("./classDiagram-v2-RKCZMP56-BzT8H7WT.js");
23047
23059
  return { id: Lb, diagram: e };
23048
23060
  }, "loader"), VB = {
23049
23061
  id: Lb,
23050
23062
  detector: YB,
23051
23063
  loader: GB
23052
23064
  }, XB = VB, Ab = "state", KB = /* @__PURE__ */ m((e, t) => t?.state?.defaultRenderer === "dagre-wrapper" ? !1 : /^\s*stateDiagram/.test(e), "detector"), ZB = /* @__PURE__ */ m(async () => {
23053
- const { diagram: e } = await import("./stateDiagram-KXAO66HF-oliVsJZ1.js");
23065
+ const { diagram: e } = await import("./stateDiagram-KXAO66HF-BiPArlXy.js");
23054
23066
  return { id: Ab, diagram: e };
23055
23067
  }, "loader"), QB = {
23056
23068
  id: Ab,
23057
23069
  detector: KB,
23058
23070
  loader: ZB
23059
23071
  }, JB = QB, $b = "stateDiagram", tO = /* @__PURE__ */ m((e, t) => !!(/^\s*stateDiagram-v2/.test(e) || /^\s*stateDiagram/.test(e) && t?.state?.defaultRenderer === "dagre-wrapper"), "detector"), eO = /* @__PURE__ */ m(async () => {
23060
- const { diagram: e } = await import("./stateDiagram-v2-UMBNRL4Z-Ca9Q0pmC.js");
23072
+ const { diagram: e } = await import("./stateDiagram-v2-UMBNRL4Z-Cmxz9RK4.js");
23061
23073
  return { id: $b, diagram: e };
23062
23074
  }, "loader"), rO = {
23063
23075
  id: $b,
23064
23076
  detector: tO,
23065
23077
  loader: eO
23066
23078
  }, iO = rO, Mb = "journey", nO = /* @__PURE__ */ m((e) => /^\s*journey/.test(e), "detector"), aO = /* @__PURE__ */ m(async () => {
23067
- const { diagram: e } = await import("./journeyDiagram-BIP6EPQ6-D-nDy66w.js");
23079
+ const { diagram: e } = await import("./journeyDiagram-BIP6EPQ6-BJGpBbde.js");
23068
23080
  return { id: Mb, diagram: e };
23069
23081
  }, "loader"), sO = {
23070
23082
  id: Mb,
@@ -23105,70 +23117,70 @@ var gb = "c4", KM = /* @__PURE__ */ m((e) => /^\s*C4Context|C4Container|C4Compon
23105
23117
  /^\s*flowchart-elk/.test(e) || // If a flowchart/graph diagram has their default renderer set to elk
23106
23118
  /^\s*(flowchart|graph)/.test(e) && t?.flowchart?.defaultRenderer === "elk" ? (t.layout = "elk", !0) : !1
23107
23119
  ), "detector"), dO = /* @__PURE__ */ m(async () => {
23108
- const { diagram: e } = await import("./flowDiagram-PVAE7QVJ-W7VJHYxF.js");
23120
+ const { diagram: e } = await import("./flowDiagram-PVAE7QVJ-BcIeLAS5.js");
23109
23121
  return { id: Ob, diagram: e };
23110
23122
  }, "loader"), pO = {
23111
23123
  id: Ob,
23112
23124
  detector: fO,
23113
23125
  loader: dO
23114
23126
  }, gO = pO, Db = "timeline", mO = /* @__PURE__ */ m((e) => /^\s*timeline/.test(e), "detector"), yO = /* @__PURE__ */ m(async () => {
23115
- const { diagram: e } = await import("./timeline-definition-XQNQX7LJ-Cy9jvtBJ.js");
23127
+ const { diagram: e } = await import("./timeline-definition-XQNQX7LJ-BuSCZHs1.js");
23116
23128
  return { id: Db, diagram: e };
23117
23129
  }, "loader"), bO = {
23118
23130
  id: Db,
23119
23131
  detector: mO,
23120
23132
  loader: yO
23121
23133
  }, xO = bO, Rb = "mindmap", vO = /* @__PURE__ */ m((e) => /^\s*mindmap/.test(e), "detector"), wO = /* @__PURE__ */ m(async () => {
23122
- const { diagram: e } = await import("./mindmap-definition-Q6HEUPPD-C6O_Fb_j.js");
23134
+ const { diagram: e } = await import("./mindmap-definition-Q6HEUPPD-B_Zb16pm.js");
23123
23135
  return { id: Rb, diagram: e };
23124
23136
  }, "loader"), CO = {
23125
23137
  id: Rb,
23126
23138
  detector: vO,
23127
23139
  loader: wO
23128
23140
  }, _O = CO, Fb = "kanban", SO = /* @__PURE__ */ m((e) => /^\s*kanban/.test(e), "detector"), kO = /* @__PURE__ */ m(async () => {
23129
- const { diagram: e } = await import("./kanban-definition-6OIFK2YF-KwKp7VEr.js");
23141
+ const { diagram: e } = await import("./kanban-definition-6OIFK2YF-fnqIxqd4.js");
23130
23142
  return { id: Fb, diagram: e };
23131
23143
  }, "loader"), TO = {
23132
23144
  id: Fb,
23133
23145
  detector: SO,
23134
23146
  loader: kO
23135
23147
  }, EO = TO, Ib = "sankey", LO = /* @__PURE__ */ m((e) => /^\s*sankey(-beta)?/.test(e), "detector"), AO = /* @__PURE__ */ m(async () => {
23136
- const { diagram: e } = await import("./sankeyDiagram-GR3RE2ED-Cq_DEnTE.js");
23148
+ const { diagram: e } = await import("./sankeyDiagram-GR3RE2ED-CH1Ve8aH.js");
23137
23149
  return { id: Ib, diagram: e };
23138
23150
  }, "loader"), $O = {
23139
23151
  id: Ib,
23140
23152
  detector: LO,
23141
23153
  loader: AO
23142
23154
  }, MO = $O, Nb = "packet", BO = /* @__PURE__ */ m((e) => /^\s*packet(-beta)?/.test(e), "detector"), OO = /* @__PURE__ */ m(async () => {
23143
- const { diagram: e } = await import("./diagram-S2PKOQOG-B49P4Ayf.js");
23155
+ const { diagram: e } = await import("./diagram-S2PKOQOG-DJQbEAj2.js");
23144
23156
  return { id: Nb, diagram: e };
23145
23157
  }, "loader"), DO = {
23146
23158
  id: Nb,
23147
23159
  detector: BO,
23148
23160
  loader: OO
23149
23161
  }, Pb = "radar", RO = /* @__PURE__ */ m((e) => /^\s*radar-beta/.test(e), "detector"), FO = /* @__PURE__ */ m(async () => {
23150
- const { diagram: e } = await import("./diagram-QEK2KX5R-B2ksetiV.js");
23162
+ const { diagram: e } = await import("./diagram-QEK2KX5R-DpHtlQAQ.js");
23151
23163
  return { id: Pb, diagram: e };
23152
23164
  }, "loader"), IO = {
23153
23165
  id: Pb,
23154
23166
  detector: RO,
23155
23167
  loader: FO
23156
23168
  }, jb = "block", NO = /* @__PURE__ */ m((e) => /^\s*block(-beta)?/.test(e), "detector"), PO = /* @__PURE__ */ m(async () => {
23157
- const { diagram: e } = await import("./blockDiagram-QIGZ2CNN-BdLGE8U6.js");
23169
+ const { diagram: e } = await import("./blockDiagram-QIGZ2CNN-G-EShfHs.js");
23158
23170
  return { id: jb, diagram: e };
23159
23171
  }, "loader"), jO = {
23160
23172
  id: jb,
23161
23173
  detector: NO,
23162
23174
  loader: PO
23163
23175
  }, zO = jO, zb = "architecture", WO = /* @__PURE__ */ m((e) => /^\s*architecture/.test(e), "detector"), qO = /* @__PURE__ */ m(async () => {
23164
- const { diagram: e } = await import("./architectureDiagram-W76B3OCA-CSrAerVq.js");
23176
+ const { diagram: e } = await import("./architectureDiagram-W76B3OCA-DqCIavYp.js");
23165
23177
  return { id: zb, diagram: e };
23166
23178
  }, "loader"), HO = {
23167
23179
  id: zb,
23168
23180
  detector: WO,
23169
23181
  loader: qO
23170
23182
  }, UO = HO, Wb = "treemap", YO = /* @__PURE__ */ m((e) => /^\s*treemap/.test(e), "detector"), GO = /* @__PURE__ */ m(async () => {
23171
- const { diagram: e } = await import("./diagram-N5W7TBWH-DyXNRCUu.js");
23183
+ const { diagram: e } = await import("./diagram-N5W7TBWH-C_EBEExC.js");
23172
23184
  return { id: Wb, diagram: e };
23173
23185
  }, "loader"), VO = {
23174
23186
  id: Wb,
@@ -23668,7 +23680,7 @@ const RD = {
23668
23680
  };
23669
23681
  rx.initialize({ startOnLoad: !0, securityLevel: "loose" });
23670
23682
  const pR = ({ data: e }) => {
23671
- const [t, r] = lt(""), i = It(`mermaid-chart-${DD()}`), n = Dt((o) => {
23683
+ const [t, r] = st(""), i = It(`mermaid-chart-${DD()}`), n = Dt((o) => {
23672
23684
  if (o?.obj?.k?.trim()) return o.obj.k;
23673
23685
  if (Array.isArray(o.children))
23674
23686
  for (const s of o.children) {
@@ -23738,7 +23750,7 @@ export {
23738
23750
  BL as Z,
23739
23751
  m as _,
23740
23752
  nC as a,
23741
- ot as a$,
23753
+ lt as a$,
23742
23754
  $k as a0,
23743
23755
  gf as a1,
23744
23756
  pf as a2,
@@ -23799,7 +23811,7 @@ export {
23799
23811
  cR as au,
23800
23812
  uR as av,
23801
23813
  oR as aw,
23802
- st as ax,
23814
+ ot as ax,
23803
23815
  lR as ay,
23804
23816
  Q$ as az,
23805
23817
  iC as b,