@cloudbase/agent-example-ui-web-shared 0.0.13 → 1.0.1-alpha.7

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 (66) hide show
  1. package/dist/_basePickBy-DpiOpcu8.js +151 -0
  2. package/dist/_baseUniq-BP66E-mI.js +614 -0
  3. package/dist/{arc-K1FrNqso.js → arc-BPwhK7WV.js} +1 -1
  4. package/dist/{architecture-U656AL7Q-to_mAQ15.js → architecture-U656AL7Q-Dckop6jg.js} +1 -1
  5. package/dist/{architectureDiagram-VXUJARFQ-BShk_CjT.js → architectureDiagram-VXUJARFQ-Bb0L6lVC.js} +4 -4
  6. package/dist/{blockDiagram-VD42YOAC-ffg2IsPK.js → blockDiagram-VD42YOAC-C1ZvOL0q.js} +5 -5
  7. package/dist/{c4Diagram-YG6GDRKO-CzC11UAD.js → c4Diagram-YG6GDRKO-CGAIzfE2.js} +2 -2
  8. package/dist/{channel-DZUw4Jym.js → channel-BgWUdIRw.js} +1 -1
  9. package/dist/{chunk-4BX2VUAB-QlwpQ37g.js → chunk-4BX2VUAB-DS0FUC4c.js} +1 -1
  10. package/dist/{chunk-55IACEB6-DgsusDqn.js → chunk-55IACEB6-BmfAO3Gs.js} +1 -1
  11. package/dist/{chunk-B4BG7PRW-CbDtd1_E.js → chunk-B4BG7PRW-DJhpx3a7.js} +4 -4
  12. package/dist/{chunk-DI55MBZ5-gY6Ctlor.js → chunk-DI55MBZ5-9KClYtUI.js} +3 -3
  13. package/dist/{chunk-FMBD7UC4-D8WRKfVU.js → chunk-FMBD7UC4-DEgKR2aK.js} +1 -1
  14. package/dist/{chunk-QN33PNHL-wY4Ezg3J.js → chunk-QN33PNHL-BsK9Xghy.js} +1 -1
  15. package/dist/{chunk-QZHKN3VN-BHIfnb-O.js → chunk-QZHKN3VN-DkI929nz.js} +1 -1
  16. package/dist/{chunk-TZMSLE5B-CnoGb1rB.js → chunk-TZMSLE5B-B1ivHGP6.js} +1 -1
  17. package/dist/{classDiagram-v2-WZHVMYZB-CDZBJdHx.js → classDiagram-2ON5EDUG-BKno_zkC.js} +2 -2
  18. package/dist/{classDiagram-2ON5EDUG-CDZBJdHx.js → classDiagram-v2-WZHVMYZB-BKno_zkC.js} +2 -2
  19. package/dist/{clone-Duhsnio3.js → clone-B51D-6Zd.js} +1 -1
  20. package/dist/{code-block-QI2IAROF-CzSb8xF-.js → code-block-QI2IAROF-8bRuEjqD.js} +1 -1
  21. package/dist/{cose-bilkent-S5V4N54A-BLZtkSUu.js → cose-bilkent-S5V4N54A-CcNlLEPd.js} +2 -2
  22. package/dist/{dagre-6UL2VRFP-C0go1FWV.js → dagre-6UL2VRFP-D7Busma-.js} +110 -109
  23. package/dist/{diagram-PSM6KHXK-BZFNkNP-.js → diagram-PSM6KHXK-CWnIoq3N.js} +16 -16
  24. package/dist/{diagram-QEK2KX5R-BbUBKb5Z.js → diagram-QEK2KX5R-B3RGWMKk.js} +3 -3
  25. package/dist/{diagram-S2PKOQOG-DeT4C-Sp.js → diagram-S2PKOQOG-BsBqg-YG.js} +3 -3
  26. package/dist/{erDiagram-Q2GNP2WA-VNDyUx_F.js → erDiagram-Q2GNP2WA-CvIuG7Iw.js} +4 -4
  27. package/dist/example-ui-web-shared.js +1 -1
  28. package/dist/example-ui-web-shared.umd.cjs +351 -351
  29. package/dist/{flowDiagram-NV44I4VS-CKppoJRW.js → flowDiagram-NV44I4VS-CcwZxtO-.js} +5 -5
  30. package/dist/{ganttDiagram-JELNMOA3-Cd-Bx2Dj.js → ganttDiagram-JELNMOA3-DqoII7Qh.js} +3 -3
  31. package/dist/{gitGraph-F6HP7TQM-CZUN3uDn.js → gitGraph-F6HP7TQM-BDKgl9YL.js} +1 -1
  32. package/dist/{gitGraphDiagram-NY62KEGX-BLHYMkUI.js → gitGraphDiagram-NY62KEGX-BUL11sl1.js} +4 -4
  33. package/dist/graph-CFHilF1e.js +247 -0
  34. package/dist/{index-C0i3yfGY.js → index-BOMuRfvV.js} +2 -2
  35. package/dist/info-NVLQJR56-gx-uQAKc.js +5 -0
  36. package/dist/{infoDiagram-WHAUD3N6-DLGOnr_j.js → infoDiagram-WHAUD3N6-ifZ2DZ3s.js} +2 -2
  37. package/dist/{journeyDiagram-XKPGCS4Q-D1BVNBwf.js → journeyDiagram-XKPGCS4Q-B3DoA1hV.js} +4 -4
  38. package/dist/{kanban-definition-3W4ZIXB7-BDXKA_XK.js → kanban-definition-3W4ZIXB7-BB7pFEqD.js} +2 -2
  39. package/dist/layout-C6IuyfpS.js +1335 -0
  40. package/dist/{linear-OBE0x2u6.js → linear-aF-fWbWE.js} +23 -23
  41. package/dist/mermaid-NA5CF7SZ-O4rdCQT5.js +4 -0
  42. package/dist/{mermaid-parser.core-CUvjhjKj.js → mermaid-parser.core-wI6AXMvA.js} +5497 -6718
  43. package/dist/{mermaid.core-CHxrqvgN.js → mermaid.core-6385Tvmf.js} +93 -91
  44. package/dist/{mindmap-definition-VGOIOE7T-CBGhaVLO.js → mindmap-definition-VGOIOE7T-Dr0Wz6z2.js} +11 -11
  45. package/dist/{packet-BFZMPI3H-BG07uiH4.js → packet-BFZMPI3H-CzOOgCi0.js} +1 -1
  46. package/dist/pie-7BOR55EZ-D9T5cFFp.js +5 -0
  47. package/dist/{pieDiagram-ADFJNKIX-sQvicivm.js → pieDiagram-ADFJNKIX-463eEngi.js} +9 -9
  48. package/dist/{quadrantDiagram-AYHSOK5B-CkiGHUhu.js → quadrantDiagram-AYHSOK5B-DjcuzUKG.js} +2 -2
  49. package/dist/radar-NHE76QYJ-DOqzibGg.js +5 -0
  50. package/dist/{requirementDiagram-UZGBJVZJ-DNjBL8qo.js → requirementDiagram-UZGBJVZJ-BOwMO9Yw.js} +3 -3
  51. package/dist/{sankeyDiagram-TZEHDZUN-CMdHSmRX.js → sankeyDiagram-TZEHDZUN-DiBr8gMA.js} +1 -1
  52. package/dist/{sequenceDiagram-WL72ISMW-DMSMqtpw.js → sequenceDiagram-WL72ISMW-D7yAl17W.js} +3 -3
  53. package/dist/{stateDiagram-FKZM4ZOC-BzrNuizz.js → stateDiagram-FKZM4ZOC-DnEcctwl.js} +4 -4
  54. package/dist/{stateDiagram-v2-4FDKWEC3-Cor07J1O.js → stateDiagram-v2-4FDKWEC3-Bq6M2KMt.js} +2 -2
  55. package/dist/{timeline-definition-IT6M3QCI-CFzHWgCi.js → timeline-definition-IT6M3QCI-D6YQK2KN.js} +2 -2
  56. package/dist/{treemap-KMMF4GRG-kkYB2_ss.js → treemap-KMMF4GRG-BOUeHarA.js} +1 -1
  57. package/dist/{xychartDiagram-PRI3JC2R-Bs8wzjBy.js → xychartDiagram-PRI3JC2R-BkwgZVoW.js} +2 -2
  58. package/package.json +2 -2
  59. package/dist/_baseUniq-cVV8eVk4.js +0 -477
  60. package/dist/graph-pMIG5nR2.js +0 -381
  61. package/dist/info-NVLQJR56-Da1Yvbv-.js +0 -5
  62. package/dist/layout-BNC3zfeD.js +0 -1441
  63. package/dist/mermaid-NA5CF7SZ-B9gXYNLm.js +0 -4
  64. package/dist/min-kNLlT3kq.js +0 -38
  65. package/dist/pie-7BOR55EZ-B3dNUVzf.js +0 -5
  66. package/dist/radar-NHE76QYJ-NsnUnvCz.js +0 -5
@@ -1,6 +1,6 @@
1
- import { g as te } from "./chunk-55IACEB6-DgsusDqn.js";
2
- import { s as ee } from "./chunk-QN33PNHL-wY4Ezg3J.js";
3
- import { _ as u, l as b, c as w, r as se, u as ie, a as re, b as ae, g as ne, s as oe, p as le, q as ce, T as he, k as U, y as ue } from "./mermaid.core-CHxrqvgN.js";
1
+ import { g as te } from "./chunk-55IACEB6-BmfAO3Gs.js";
2
+ import { s as ee } from "./chunk-QN33PNHL-BsK9Xghy.js";
3
+ import { _ as u, l as b, c as w, r as se, u as ie, a as re, b as ae, g as ne, s as oe, p as le, q as ce, T as he, k as U, y as ue } from "./mermaid.core-6385Tvmf.js";
4
4
  var vt = (function() {
5
5
  var t = /* @__PURE__ */ u(function(Y, o, c, n) {
6
6
  for (c = c || {}, n = Y.length; n--; c[Y[n]] = o) ;
@@ -1,4 +1,4 @@
1
- import { _ as e } from "./mermaid.core-CHxrqvgN.js";
1
+ import { _ as e } from "./mermaid.core-6385Tvmf.js";
2
2
  var l = /* @__PURE__ */ e(() => `
3
3
  /* Font Awesome icon styling - consolidated */
4
4
  .label-icon {
@@ -1,4 +1,4 @@
1
- import { _ as a, e as w, l as x } from "./mermaid.core-CHxrqvgN.js";
1
+ import { _ as a, e as w, l as x } from "./mermaid.core-6385Tvmf.js";
2
2
  var d = /* @__PURE__ */ a((e, t, i, r) => {
3
3
  e.attr("class", i);
4
4
  const { width: o, height: h, x: n, y: c } = u(e, t);
@@ -1,4 +1,4 @@
1
- import { _ as s } from "./mermaid.core-CHxrqvgN.js";
1
+ import { _ as s } from "./mermaid.core-6385Tvmf.js";
2
2
  var t, e = (t = class {
3
3
  /**
4
4
  * @param init - Function that creates the default state.
@@ -1,4 +1,4 @@
1
- import { _ as n, U as o, j as l } from "./mermaid.core-CHxrqvgN.js";
1
+ import { _ as n, U as o, j as l } from "./mermaid.core-6385Tvmf.js";
2
2
  var x = /* @__PURE__ */ n((s, t) => {
3
3
  const e = s.append("rect");
4
4
  if (e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), t.name && e.attr("name", t.name), t.rx && e.attr("rx", t.rx), t.ry && e.attr("ry", t.ry), t.attrs !== void 0)
@@ -1,5 +1,5 @@
1
- import { s as r, c as s, a as e, C as t } from "./chunk-B4BG7PRW-CbDtd1_E.js";
2
- import { _ as l } from "./mermaid.core-CHxrqvgN.js";
1
+ import { s as r, c as s, a as e, C as t } from "./chunk-B4BG7PRW-DJhpx3a7.js";
2
+ import { _ as l } from "./mermaid.core-6385Tvmf.js";
3
3
  var d = {
4
4
  parser: e,
5
5
  get db() {
@@ -1,5 +1,5 @@
1
- import { s as r, c as s, a as e, C as t } from "./chunk-B4BG7PRW-CbDtd1_E.js";
2
- import { _ as l } from "./mermaid.core-CHxrqvgN.js";
1
+ import { s as r, c as s, a as e, C as t } from "./chunk-B4BG7PRW-DJhpx3a7.js";
2
+ import { _ as l } from "./mermaid.core-6385Tvmf.js";
3
3
  var d = {
4
4
  parser: e,
5
5
  get db() {
@@ -1,4 +1,4 @@
1
- import { b as r } from "./graph-pMIG5nR2.js";
1
+ import { b as r } from "./_baseUniq-BP66E-mI.js";
2
2
  var e = 4;
3
3
  function a(o) {
4
4
  return r(o, e);
@@ -1,4 +1,4 @@
1
- import { w as Gt, s as Or, f as Hn, a as zn, b as Vn, c as Zt, z as qn, h as Xn, d as Qn, C as Kn, j as G, D as Jn, u as Ot } from "./index-C0i3yfGY.js";
1
+ import { w as Gt, s as Or, f as Hn, a as zn, b as Vn, c as Zt, z as qn, h as Xn, d as Qn, C as Kn, j as G, D as Jn, u as Ot } from "./index-BOMuRfvV.js";
2
2
  import { useContext as Zn, useMemo as Br, useState as Yn, useEffect as es, memo as ts } from "react";
3
3
  let x = class extends Error {
4
4
  constructor(e) {
@@ -1,6 +1,6 @@
1
- import { _ as V, l as $, d as lt } from "./mermaid.core-CHxrqvgN.js";
1
+ import { _ as V, l as $, d as lt } from "./mermaid.core-6385Tvmf.js";
2
2
  import { c as tt } from "./cytoscape.esm-MSgpKP8s.js";
3
- import { g as gt } from "./index-C0i3yfGY.js";
3
+ import { g as gt } from "./index-BOMuRfvV.js";
4
4
  var k = { exports: {} }, Z = { exports: {} }, Q = { exports: {} }, ut = Q.exports, j;
5
5
  function ft() {
6
6
  return j || (j = 1, (function(G, b) {
@@ -1,8 +1,9 @@
1
- import { _ as w, ar as F, as as Y, at as _, au as H, l as i, c as V, av as z, aw as U, ag as $, al as q, ah as P, af as K, ax as Q, ay as W, az as Z } from "./mermaid.core-CHxrqvgN.js";
2
- import { i as b, G as B } from "./graph-pMIG5nR2.js";
3
- import { l as I } from "./layout-BNC3zfeD.js";
4
- import { c as L } from "./clone-Duhsnio3.js";
5
- import { m as A } from "./min-kNLlT3kq.js";
1
+ import { _ as w, ar as F, as as Y, at as _, au as H, l as r, c as V, av as z, aw as U, ag as $, al as q, ah as P, af as K, ax as Q, ay as W, az as Z } from "./mermaid.core-6385Tvmf.js";
2
+ import { G as B } from "./graph-CFHilF1e.js";
3
+ import { l as I } from "./layout-C6IuyfpS.js";
4
+ import { i as b } from "./_baseUniq-BP66E-mI.js";
5
+ import { c as L } from "./clone-B51D-6Zd.js";
6
+ import { m as A } from "./_basePickBy-DpiOpcu8.js";
6
7
  function h(e) {
7
8
  var t = {
8
9
  options: {
@@ -17,8 +18,8 @@ function h(e) {
17
18
  }
18
19
  function ee(e) {
19
20
  return A(e.nodes(), function(t) {
20
- var n = e.node(t), a = e.parent(t), r = { v: t };
21
- return b(n) || (r.value = n), b(a) || (r.parent = a), r;
21
+ var n = e.node(t), a = e.parent(t), i = { v: t };
22
+ return b(n) || (i.value = n), b(a) || (i.parent = a), i;
22
23
  });
23
24
  }
24
25
  function ne(e) {
@@ -31,12 +32,12 @@ var d = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), J = /* @__PURE
31
32
  y.clear(), J.clear(), d.clear();
32
33
  }, "clear"), D = /* @__PURE__ */ w((e, t) => {
33
34
  const n = y.get(t) || [];
34
- return i.trace("In isDescendant", t, " ", e, " = ", n.includes(e)), n.includes(e);
35
+ return r.trace("In isDescendant", t, " ", e, " = ", n.includes(e)), n.includes(e);
35
36
  }, "isDescendant"), se = /* @__PURE__ */ w((e, t) => {
36
37
  const n = y.get(t) || [];
37
- return i.info("Descendants of ", t, " is ", n), i.info("Edge is ", e), e.v === t || e.w === t ? !1 : n ? n.includes(e.v) || D(e.v, t) || D(e.w, t) || n.includes(e.w) : (i.debug("Tilt, ", t, ",not in descendants"), !1);
38
+ return r.info("Descendants of ", t, " is ", n), r.info("Edge is ", e), e.v === t || e.w === t ? !1 : n ? n.includes(e.v) || D(e.v, t) || D(e.w, t) || n.includes(e.w) : (r.debug("Tilt, ", t, ",not in descendants"), !1);
38
39
  }, "edgeInCluster"), G = /* @__PURE__ */ w((e, t, n, a) => {
39
- i.warn(
40
+ r.warn(
40
41
  "Copying children of ",
41
42
  e,
42
43
  "root",
@@ -45,13 +46,13 @@ var d = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), J = /* @__PURE
45
46
  t.node(e),
46
47
  a
47
48
  );
48
- const r = t.children(e) || [];
49
- e !== a && r.push(e), i.warn("Copying (nodes) clusterId", e, "nodes", r), r.forEach((o) => {
49
+ const i = t.children(e) || [];
50
+ e !== a && i.push(e), r.warn("Copying (nodes) clusterId", e, "nodes", i), i.forEach((o) => {
50
51
  if (t.children(o).length > 0)
51
52
  G(o, t, n, a);
52
53
  else {
53
54
  const l = t.node(o);
54
- i.info("cp ", o, " to ", a, " with parent ", e), n.setNode(o, l), a !== t.parent(o) && (i.warn("Setting parent", o, t.parent(o)), n.setParent(o, t.parent(o))), e !== a && o !== e ? (i.debug("Setting parent", o, e), n.setParent(o, e)) : (i.info("In copy ", e, "root", a, "data", t.node(e), a), i.debug(
55
+ r.info("cp ", o, " to ", a, " with parent ", e), n.setNode(o, l), a !== t.parent(o) && (r.warn("Setting parent", o, t.parent(o)), n.setParent(o, t.parent(o))), e !== a && o !== e ? (r.debug("Setting parent", o, e), n.setParent(o, e)) : (r.info("In copy ", e, "root", a, "data", t.node(e), a), r.debug(
55
56
  "Not Setting parent for node=",
56
57
  o,
57
58
  "cluster!==rootId",
@@ -60,12 +61,12 @@ var d = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), J = /* @__PURE
60
61
  o !== e
61
62
  ));
62
63
  const u = t.edges(o);
63
- i.debug("Copying Edges", u), u.forEach((c) => {
64
- i.info("Edge", c);
64
+ r.debug("Copying Edges", u), u.forEach((c) => {
65
+ r.info("Edge", c);
65
66
  const m = t.edge(c.v, c.w, c.name);
66
- i.info("Edge data", m, a);
67
+ r.info("Edge data", m, a);
67
68
  try {
68
- se(c, a) ? (i.info("Copying as ", c.v, c.w, m, c.name), n.setEdge(c.v, c.w, m, c.name), i.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]))) : i.info(
69
+ se(c, a) ? (r.info("Copying as ", c.v, c.w, m, c.name), n.setEdge(c.v, c.w, m, c.name), r.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]))) : r.info(
69
70
  "Skipping copy of edge ",
70
71
  c.v,
71
72
  "-->",
@@ -76,64 +77,64 @@ var d = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), J = /* @__PURE
76
77
  e
77
78
  );
78
79
  } catch (v) {
79
- i.error(v);
80
+ r.error(v);
80
81
  }
81
82
  });
82
83
  }
83
- i.debug("Removing node", o), t.removeNode(o);
84
+ r.debug("Removing node", o), t.removeNode(o);
84
85
  });
85
86
  }, "copy"), R = /* @__PURE__ */ w((e, t) => {
86
87
  const n = t.children(e);
87
88
  let a = [...n];
88
- for (const r of n)
89
- J.set(r, e), a = [...a, ...R(r, t)];
89
+ for (const i of n)
90
+ J.set(i, e), a = [...a, ...R(i, t)];
90
91
  return a;
91
- }, "extractDescendants"), ie = /* @__PURE__ */ w((e, t, n) => {
92
- const a = e.edges().filter((c) => c.v === t || c.w === t), r = e.edges().filter((c) => c.v === n || c.w === n), o = a.map((c) => ({ v: c.v === t ? n : c.v, w: c.w === t ? t : c.w })), l = r.map((c) => ({ v: c.v, w: c.w }));
92
+ }, "extractDescendants"), re = /* @__PURE__ */ w((e, t, n) => {
93
+ const a = e.edges().filter((c) => c.v === t || c.w === t), i = e.edges().filter((c) => c.v === n || c.w === n), o = a.map((c) => ({ v: c.v === t ? n : c.v, w: c.w === t ? t : c.w })), l = i.map((c) => ({ v: c.v, w: c.w }));
93
94
  return o.filter((c) => l.some((m) => c.v === m.v && c.w === m.w));
94
95
  }, "findCommonEdges"), C = /* @__PURE__ */ w((e, t, n) => {
95
96
  const a = t.children(e);
96
- if (i.trace("Searching children of id ", e, a), a.length < 1)
97
+ if (r.trace("Searching children of id ", e, a), a.length < 1)
97
98
  return e;
98
- let r;
99
+ let i;
99
100
  for (const o of a) {
100
- const l = C(o, t, n), u = ie(t, n, l);
101
+ const l = C(o, t, n), u = re(t, n, l);
101
102
  if (l)
102
103
  if (u.length > 0)
103
- r = l;
104
+ i = l;
104
105
  else
105
106
  return l;
106
107
  }
107
- return r;
108
- }, "findNonClusterChild"), k = /* @__PURE__ */ w((e) => !d.has(e) || !d.get(e).externalConnections ? e : d.has(e) ? d.get(e).id : e, "getAnchorId"), re = /* @__PURE__ */ w((e, t) => {
108
+ return i;
109
+ }, "findNonClusterChild"), k = /* @__PURE__ */ w((e) => !d.has(e) || !d.get(e).externalConnections ? e : d.has(e) ? d.get(e).id : e, "getAnchorId"), ie = /* @__PURE__ */ w((e, t) => {
109
110
  if (!e || t > 10) {
110
- i.debug("Opting out, no graph ");
111
+ r.debug("Opting out, no graph ");
111
112
  return;
112
113
  } else
113
- i.debug("Opting in, graph ");
114
+ r.debug("Opting in, graph ");
114
115
  e.nodes().forEach(function(n) {
115
- e.children(n).length > 0 && (i.warn(
116
+ e.children(n).length > 0 && (r.warn(
116
117
  "Cluster identified",
117
118
  n,
118
119
  " Replacement id in edges: ",
119
120
  C(n, e, n)
120
121
  ), y.set(n, R(n, e)), d.set(n, { id: C(n, e, n), clusterData: e.node(n) }));
121
122
  }), e.nodes().forEach(function(n) {
122
- const a = e.children(n), r = e.edges();
123
- a.length > 0 ? (i.debug("Cluster identified", n, y), r.forEach((o) => {
123
+ const a = e.children(n), i = e.edges();
124
+ a.length > 0 ? (r.debug("Cluster identified", n, y), i.forEach((o) => {
124
125
  const l = D(o.v, n), u = D(o.w, n);
125
- l ^ u && (i.warn("Edge: ", o, " leaves cluster ", n), i.warn("Descendants of XXX ", n, ": ", y.get(n)), d.get(n).externalConnections = !0);
126
- })) : i.debug("Not a cluster ", n, y);
126
+ l ^ u && (r.warn("Edge: ", o, " leaves cluster ", n), r.warn("Descendants of XXX ", n, ": ", y.get(n)), d.get(n).externalConnections = !0);
127
+ })) : r.debug("Not a cluster ", n, y);
127
128
  });
128
129
  for (let n of d.keys()) {
129
- const a = d.get(n).id, r = e.parent(a);
130
- r !== n && d.has(r) && !d.get(r).externalConnections && (d.get(n).id = r);
130
+ const a = d.get(n).id, i = e.parent(a);
131
+ i !== n && d.has(i) && !d.get(i).externalConnections && (d.get(n).id = i);
131
132
  }
132
133
  e.edges().forEach(function(n) {
133
134
  const a = e.edge(n);
134
- i.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(n)), i.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(e.edge(n)));
135
- let r = n.v, o = n.w;
136
- if (i.warn(
135
+ r.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(n)), r.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(e.edge(n)));
136
+ let i = n.v, o = n.w;
137
+ if (r.warn(
137
138
  "Fix XXX",
138
139
  d,
139
140
  "ids:",
@@ -144,53 +145,53 @@ var d = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), J = /* @__PURE
144
145
  " --- ",
145
146
  d.get(n.w)
146
147
  ), d.get(n.v) || d.get(n.w)) {
147
- if (i.warn("Fixing and trying - removing XXX", n.v, n.w, n.name), r = k(n.v), o = k(n.w), e.removeEdge(n.v, n.w, n.name), r !== n.v) {
148
- const l = e.parent(r);
148
+ if (r.warn("Fixing and trying - removing XXX", n.v, n.w, n.name), i = k(n.v), o = k(n.w), e.removeEdge(n.v, n.w, n.name), i !== n.v) {
149
+ const l = e.parent(i);
149
150
  d.get(l).externalConnections = !0, a.fromCluster = n.v;
150
151
  }
151
152
  if (o !== n.w) {
152
153
  const l = e.parent(o);
153
154
  d.get(l).externalConnections = !0, a.toCluster = n.w;
154
155
  }
155
- i.warn("Fix Replacing with XXX", r, o, n.name), e.setEdge(r, o, a, n.name);
156
+ r.warn("Fix Replacing with XXX", i, o, n.name), e.setEdge(i, o, a, n.name);
156
157
  }
157
- }), i.warn("Adjusted Graph", h(e)), T(e, 0), i.trace(d);
158
+ }), r.warn("Adjusted Graph", h(e)), T(e, 0), r.trace(d);
158
159
  }, "adjustClustersAndEdges"), T = /* @__PURE__ */ w((e, t) => {
159
- if (i.warn("extractor - ", t, h(e), e.children("D")), t > 10) {
160
- i.error("Bailing out");
160
+ if (r.warn("extractor - ", t, h(e), e.children("D")), t > 10) {
161
+ r.error("Bailing out");
161
162
  return;
162
163
  }
163
164
  let n = e.nodes(), a = !1;
164
- for (const r of n) {
165
- const o = e.children(r);
165
+ for (const i of n) {
166
+ const o = e.children(i);
166
167
  a = a || o.length > 0;
167
168
  }
168
169
  if (!a) {
169
- i.debug("Done, no node has children", e.nodes());
170
+ r.debug("Done, no node has children", e.nodes());
170
171
  return;
171
172
  }
172
- i.debug("Nodes = ", n, t);
173
- for (const r of n)
174
- if (i.debug(
173
+ r.debug("Nodes = ", n, t);
174
+ for (const i of n)
175
+ if (r.debug(
175
176
  "Extracting node",
176
- r,
177
+ i,
177
178
  d,
178
- d.has(r) && !d.get(r).externalConnections,
179
- !e.parent(r),
180
- e.node(r),
179
+ d.has(i) && !d.get(i).externalConnections,
180
+ !e.parent(i),
181
+ e.node(i),
181
182
  e.children("D"),
182
183
  " Depth ",
183
184
  t
184
- ), !d.has(r))
185
- i.debug("Not a cluster", r, t);
186
- else if (!d.get(r).externalConnections && e.children(r) && e.children(r).length > 0) {
187
- i.warn(
185
+ ), !d.has(i))
186
+ r.debug("Not a cluster", i, t);
187
+ else if (!d.get(i).externalConnections && e.children(i) && e.children(i).length > 0) {
188
+ r.warn(
188
189
  "Cluster without external connections, without a parent and with children",
189
- r,
190
+ i,
190
191
  t
191
192
  );
192
193
  let l = e.graph().rankdir === "TB" ? "LR" : "TB";
193
- d.get(r)?.clusterData?.dir && (l = d.get(r).clusterData.dir, i.warn("Fixing dir", d.get(r).clusterData.dir, l));
194
+ d.get(i)?.clusterData?.dir && (l = d.get(i).clusterData.dir, r.warn("Fixing dir", d.get(i).clusterData.dir, l));
194
195
  const u = new B({
195
196
  multigraph: !0,
196
197
  compound: !0
@@ -203,52 +204,52 @@ var d = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), J = /* @__PURE
203
204
  }).setDefaultEdgeLabel(function() {
204
205
  return {};
205
206
  });
206
- i.warn("Old graph before copy", h(e)), G(r, e, u, r), e.setNode(r, {
207
+ r.warn("Old graph before copy", h(e)), G(i, e, u, i), e.setNode(i, {
207
208
  clusterNode: !0,
208
- id: r,
209
- clusterData: d.get(r).clusterData,
210
- label: d.get(r).label,
209
+ id: i,
210
+ clusterData: d.get(i).clusterData,
211
+ label: d.get(i).label,
211
212
  graph: u
212
- }), i.warn("New graph after copy node: (", r, ")", h(u)), i.debug("Old graph after copy", h(e));
213
+ }), r.warn("New graph after copy node: (", i, ")", h(u)), r.debug("Old graph after copy", h(e));
213
214
  } else
214
- i.warn(
215
+ r.warn(
215
216
  "Cluster ** ",
216
- r,
217
+ i,
217
218
  " **not meeting the criteria !externalConnections:",
218
- !d.get(r).externalConnections,
219
+ !d.get(i).externalConnections,
219
220
  " no parent: ",
220
- !e.parent(r),
221
+ !e.parent(i),
221
222
  " children ",
222
- e.children(r) && e.children(r).length > 0,
223
+ e.children(i) && e.children(i).length > 0,
223
224
  e.children("D"),
224
225
  t
225
- ), i.debug(d);
226
- n = e.nodes(), i.warn("New list of nodes", n);
227
- for (const r of n) {
228
- const o = e.node(r);
229
- i.warn(" Now next level", r, o), o?.clusterNode && T(o.graph, t + 1);
226
+ ), r.debug(d);
227
+ n = e.nodes(), r.warn("New list of nodes", n);
228
+ for (const i of n) {
229
+ const o = e.node(i);
230
+ r.warn(" Now next level", i, o), o?.clusterNode && T(o.graph, t + 1);
230
231
  }
231
232
  }, "extractor"), M = /* @__PURE__ */ w((e, t) => {
232
233
  if (t.length === 0)
233
234
  return [];
234
235
  let n = Object.assign([], t);
235
236
  return t.forEach((a) => {
236
- const r = e.children(a), o = M(e, r);
237
+ const i = e.children(a), o = M(e, i);
237
238
  n = [...n, ...o];
238
239
  }), n;
239
- }, "sorter"), oe = /* @__PURE__ */ w((e) => M(e, e.children()), "sortNodesByHierarchy"), j = /* @__PURE__ */ w(async (e, t, n, a, r, o) => {
240
- i.warn("Graph in recursive render:XAX", h(t), r);
240
+ }, "sorter"), oe = /* @__PURE__ */ w((e) => M(e, e.children()), "sortNodesByHierarchy"), j = /* @__PURE__ */ w(async (e, t, n, a, i, o) => {
241
+ r.warn("Graph in recursive render:XAX", h(t), i);
241
242
  const l = t.graph().rankdir;
242
- i.trace("Dir in recursive render - dir:", l);
243
+ r.trace("Dir in recursive render - dir:", l);
243
244
  const u = e.insert("g").attr("class", "root");
244
- t.nodes() ? i.info("Recursive render XXX", t.nodes()) : i.info("No nodes found for", t), t.edges().length > 0 && i.info("Recursive edges", t.edge(t.edges()[0]));
245
+ t.nodes() ? r.info("Recursive render XXX", t.nodes()) : r.info("No nodes found for", t), t.edges().length > 0 && r.info("Recursive edges", t.edge(t.edges()[0]));
245
246
  const c = u.insert("g").attr("class", "clusters"), m = u.insert("g").attr("class", "edgePaths"), v = u.insert("g").attr("class", "edgeLabels"), X = u.insert("g").attr("class", "nodes");
246
247
  await Promise.all(
247
248
  t.nodes().map(async function(f) {
248
249
  const s = t.node(f);
249
- if (r !== void 0) {
250
- const g = JSON.parse(JSON.stringify(r.clusterData));
251
- i.trace(
250
+ if (i !== void 0) {
251
+ const g = JSON.parse(JSON.stringify(i.clusterData));
252
+ r.trace(
252
253
  `Setting data for parent cluster XXX
253
254
  Node.id = `,
254
255
  f,
@@ -257,11 +258,11 @@ var d = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), J = /* @__PURE
257
258
  g.height,
258
259
  `
259
260
  Parent cluster`,
260
- r.height
261
- ), t.setNode(r.id, g), t.parent(f) || (i.trace("Setting parent", f, r.id), t.setParent(f, r.id, g));
261
+ i.height
262
+ ), t.setNode(i.id, g), t.parent(f) || (r.trace("Setting parent", f, i.id), t.setParent(f, i.id, g));
262
263
  }
263
- if (i.info("(Insert) Node XXX" + f + ": " + JSON.stringify(t.node(f))), s?.clusterNode) {
264
- i.info("Cluster identified XBX", f, s.width, t.node(f));
264
+ if (r.info("(Insert) Node XXX" + f + ": " + JSON.stringify(t.node(f))), s?.clusterNode) {
265
+ r.info("Cluster identified XBX", f, s.width, t.node(f));
265
266
  const { ranksep: g, nodesep: E } = t.graph();
266
267
  s.graph.setGraph({
267
268
  ...s.graph.graph(),
@@ -276,7 +277,7 @@ Parent cluster`,
276
277
  t.node(f),
277
278
  o
278
279
  ), x = N.elem;
279
- z(s, x), s.diff = N.diff || 0, i.info(
280
+ z(s, x), s.diff = N.diff || 0, r.info(
280
281
  "New compound node after recursive render XAX",
281
282
  f,
282
283
  "width",
@@ -288,7 +289,7 @@ Parent cluster`,
288
289
  // node.y
289
290
  ), U(x, s);
290
291
  } else
291
- t.children(f).length > 0 ? (i.trace(
292
+ t.children(f).length > 0 ? (r.trace(
292
293
  "Cluster - the non recursive path XBX",
293
294
  f,
294
295
  s.id,
@@ -296,12 +297,12 @@ Parent cluster`,
296
297
  s.width,
297
298
  "Graph:",
298
299
  t
299
- ), i.trace(C(s.id, t)), d.set(s.id, { id: C(s.id, t), node: s })) : (i.trace("Node - the non recursive path XAX", f, X, t.node(f), l), await $(X, t.node(f), { config: o, dir: l }));
300
+ ), r.trace(C(s.id, t)), d.set(s.id, { id: C(s.id, t), node: s })) : (r.trace("Node - the non recursive path XAX", f, X, t.node(f), l), await $(X, t.node(f), { config: o, dir: l }));
300
301
  })
301
302
  ), await (/* @__PURE__ */ w(async () => {
302
303
  const f = t.edges().map(async function(s) {
303
304
  const g = t.edge(s.v, s.w, s.name);
304
- i.info("Edge " + s.v + " -> " + s.w + ": " + JSON.stringify(s)), i.info("Edge " + s.v + " -> " + s.w + ": ", s, " ", JSON.stringify(t.edge(s))), i.info(
305
+ r.info("Edge " + s.v + " -> " + s.w + ": " + JSON.stringify(s)), r.info("Edge " + s.v + " -> " + s.w + ": ", s, " ", JSON.stringify(t.edge(s))), r.info(
305
306
  "Fix",
306
307
  d,
307
308
  "ids:",
@@ -313,12 +314,12 @@ Parent cluster`,
313
314
  ), await Z(v, g);
314
315
  });
315
316
  await Promise.all(f);
316
- }, "processEdges"))(), i.info("Graph before layout:", JSON.stringify(h(t))), i.info("############################################# XXX"), i.info("### Layout ### XXX"), i.info("############################################# XXX"), I(t), i.info("Graph after layout:", JSON.stringify(h(t)));
317
+ }, "processEdges"))(), r.info("Graph before layout:", JSON.stringify(h(t))), r.info("############################################# XXX"), r.info("### Layout ### XXX"), r.info("############################################# XXX"), I(t), r.info("Graph after layout:", JSON.stringify(h(t)));
317
318
  let O = 0, { subGraphTitleTotalMargin: S } = q(o);
318
319
  return await Promise.all(
319
320
  oe(t).map(async function(f) {
320
321
  const s = t.node(f);
321
- if (i.info(
322
+ if (r.info(
322
323
  "Position XBX => " + f + ": (" + s.x,
323
324
  "," + s.y,
324
325
  ") width: ",
@@ -326,7 +327,7 @@ Parent cluster`,
326
327
  " height: ",
327
328
  s.height
328
329
  ), s?.clusterNode)
329
- s.y += S, i.info(
330
+ s.y += S, r.info(
330
331
  "A tainted cluster node XBX1",
331
332
  f,
332
333
  s.id,
@@ -337,7 +338,7 @@ Parent cluster`,
337
338
  t.parent(f)
338
339
  ), d.get(s.id).node = s, P(s);
339
340
  else if (t.children(f).length > 0) {
340
- i.info(
341
+ r.info(
341
342
  "A pure cluster node XBX1",
342
343
  f,
343
344
  s.id,
@@ -348,10 +349,10 @@ Parent cluster`,
348
349
  t.parent(f)
349
350
  ), s.height += S, t.node(s.parentId);
350
351
  const g = s?.padding / 2 || 0, E = s?.labelBBox?.height || 0, N = E - g || 0;
351
- i.debug("OffsetY", N, "labelHeight", E, "halfPadding", g), await K(c, s), d.get(s.id).node = s;
352
+ r.debug("OffsetY", N, "labelHeight", E, "halfPadding", g), await K(c, s), d.get(s.id).node = s;
352
353
  } else {
353
354
  const g = t.node(s.parentId);
354
- s.y += S / 2, i.info(
355
+ s.y += S / 2, r.info(
355
356
  "A regular node XBX1 - using the padding",
356
357
  s.id,
357
358
  "parent",
@@ -371,16 +372,16 @@ Parent cluster`,
371
372
  })
372
373
  ), t.edges().forEach(function(f) {
373
374
  const s = t.edge(f);
374
- i.info("Edge " + f.v + " -> " + f.w + ": " + JSON.stringify(s), s), s.points.forEach((x) => x.y += S / 2);
375
+ r.info("Edge " + f.v + " -> " + f.w + ": " + JSON.stringify(s), s), s.points.forEach((x) => x.y += S / 2);
375
376
  const g = t.node(f.v);
376
377
  var E = t.node(f.w);
377
378
  const N = Q(m, s, d, n, g, E, a);
378
379
  W(s, N);
379
380
  }), t.nodes().forEach(function(f) {
380
381
  const s = t.node(f);
381
- i.info(f, s.type, s.diff), s.isGroup && (O = s.diff);
382
- }), i.warn("Returning from recursive render XAX", u, O), { elem: u, diff: O };
383
- }, "recursiveRender"), ue = /* @__PURE__ */ w(async (e, t) => {
382
+ r.info(f, s.type, s.diff), s.isGroup && (O = s.diff);
383
+ }), r.warn("Returning from recursive render XAX", u, O), { elem: u, diff: O };
384
+ }, "recursiveRender"), ge = /* @__PURE__ */ w(async (e, t) => {
384
385
  const n = new B({
385
386
  multigraph: !0,
386
387
  compound: !0
@@ -395,7 +396,7 @@ Parent cluster`,
395
396
  }), a = t.select("g");
396
397
  F(a, e.markers, e.type, e.diagramId), Y(), _(), H(), te(), e.nodes.forEach((o) => {
397
398
  n.setNode(o.id, { ...o }), o.parentId && n.setParent(o.id, o.parentId);
398
- }), i.debug("Edges:", e.edges), e.edges.forEach((o) => {
399
+ }), r.debug("Edges:", e.edges), e.edges.forEach((o) => {
399
400
  if (o.start === o.end) {
400
401
  const l = o.start, u = l + "---" + l + "---1", c = l + "---" + l + "---2", m = n.node(l);
401
402
  n.setNode(u, {
@@ -427,17 +428,17 @@ Parent cluster`,
427
428
  v.label = "", v.arrowTypeEnd = "none", v.id = l + "-cyclic-special-1", X.arrowTypeStart = "none", X.arrowTypeEnd = "none", X.id = l + "-cyclic-special-mid", p.label = "", m.isGroup && (v.fromCluster = l, p.toCluster = l), p.id = l + "-cyclic-special-2", p.arrowTypeStart = "none", n.setEdge(l, u, v, l + "-cyclic-special-0"), n.setEdge(u, c, X, l + "-cyclic-special-1"), n.setEdge(c, l, p, l + "-cyc<lic-special-2");
428
429
  } else
429
430
  n.setEdge(o.start, o.end, { ...o }, o.id);
430
- }), i.warn("Graph at first:", JSON.stringify(h(n))), re(n), i.warn("Graph after XAX:", JSON.stringify(h(n)));
431
- const r = V();
431
+ }), r.warn("Graph at first:", JSON.stringify(h(n))), ie(n), r.warn("Graph after XAX:", JSON.stringify(h(n)));
432
+ const i = V();
432
433
  await j(
433
434
  a,
434
435
  n,
435
436
  e.type,
436
437
  e.diagramId,
437
438
  void 0,
438
- r
439
+ i
439
440
  );
440
441
  }, "render");
441
442
  export {
442
- ue as render
443
+ ge as render
443
444
  };
@@ -1,7 +1,7 @@
1
- import { _ as w, D as te, E as ae, H as he, e as ue, l as K, b8 as P, d as Y, b as pe, a as fe, p as ge, q as me, g as ye, s as Se, F as ve, b9 as xe, y as be } from "./mermaid.core-CHxrqvgN.js";
2
- import { s as we } from "./chunk-QN33PNHL-wY4Ezg3J.js";
3
- import { p as Ce } from "./chunk-4BX2VUAB-QlwpQ37g.js";
4
- import { p as Te } from "./mermaid-parser.core-CUvjhjKj.js";
1
+ import { _ as w, D as te, E as ae, H as he, e as ue, l as K, aZ as P, d as Y, b as pe, a as fe, p as ge, q as me, g as ye, s as Se, F as ve, a_ as xe, y as be } from "./mermaid.core-6385Tvmf.js";
2
+ import { s as we } from "./chunk-QN33PNHL-BsK9Xghy.js";
3
+ import { p as Ce } from "./chunk-4BX2VUAB-DS0FUC4c.js";
4
+ import { p as Te } from "./mermaid-parser.core-wI6AXMvA.js";
5
5
  import { b as O } from "./defaultLocale-D7EN2tov.js";
6
6
  import { o as J } from "./ordinal-DfAQgscy.js";
7
7
  function Le(t) {
@@ -97,10 +97,10 @@ function* Re() {
97
97
  }
98
98
  function Q(t, a) {
99
99
  t instanceof Map ? (t = [void 0, t], a === void 0 && (a = Ie)) : a === void 0 && (a = He);
100
- for (var l = new U(t), n, o = [l], s, d, h, g; n = o.pop(); )
100
+ for (var l = new Z(t), n, o = [l], s, d, h, g; n = o.pop(); )
101
101
  if ((d = a(n.data)) && (g = (d = Array.from(d)).length))
102
102
  for (n.children = d, h = g - 1; h >= 0; --h)
103
- o.push(s = d[h] = new U(d[h])), s.parent = n, s.depth = n.depth + 1;
103
+ o.push(s = d[h] = new Z(d[h])), s.parent = n, s.depth = n.depth + 1;
104
104
  return l.eachBefore(qe);
105
105
  }
106
106
  function We() {
@@ -121,11 +121,11 @@ function qe(t) {
121
121
  t.height = a;
122
122
  while ((t = t.parent) && t.height < ++a);
123
123
  }
124
- function U(t) {
124
+ function Z(t) {
125
125
  this.data = t, this.depth = this.height = 0, this.parent = null;
126
126
  }
127
- U.prototype = Q.prototype = {
128
- constructor: U,
127
+ Z.prototype = Q.prototype = {
128
+ constructor: Z,
129
129
  count: $e,
130
130
  each: Ae,
131
131
  eachAfter: ke,
@@ -164,8 +164,8 @@ function Ye(t, a, l, n, o) {
164
164
  for (var s = t.children, d, h = -1, g = s.length, c = t.value && (o - l) / t.value; ++h < g; )
165
165
  d = s[h], d.x0 = a, d.x1 = n, d.y0 = l, d.y1 = l += d.value * c;
166
166
  }
167
- var Ue = (1 + Math.sqrt(5)) / 2;
168
- function Ze(t, a, l, n, o, s) {
167
+ var Ze = (1 + Math.sqrt(5)) / 2;
168
+ function Ue(t, a, l, n, o, s) {
169
169
  for (var d = [], h = a.children, g, c, u = 0, b = 0, r = h.length, x, S, v = a.value, p, m, N, k, V, R, M; u < r; ) {
170
170
  x = o - l, S = s - n;
171
171
  do
@@ -184,12 +184,12 @@ function Ze(t, a, l, n, o, s) {
184
184
  }
185
185
  const Je = (function t(a) {
186
186
  function l(n, o, s, d, h) {
187
- Ze(a, n, o, s, d, h);
187
+ Ue(a, n, o, s, d, h);
188
188
  }
189
189
  return l.ratio = function(n) {
190
190
  return t((n = +n) > 1 ? n : 1);
191
191
  }, l;
192
- })(Ue);
192
+ })(Ze);
193
193
  function Ke() {
194
194
  var t = Je, a = !1, l = 1, n = 1, o = [0], s = q, d = q, h = q, g = q, c = q;
195
195
  function u(r) {
@@ -440,12 +440,12 @@ var Qe = /* @__PURE__ */ w((t, a) => {
440
440
  let I = Math.max(
441
441
  z,
442
442
  Math.min(F, Math.round(y * T))
443
- ), Z = y + H + I;
444
- for (; Z > A && y > _ && (y--, I = Math.max(
443
+ ), U = y + H + I;
444
+ for (; U > A && y > _ && (y--, I = Math.max(
445
445
  z,
446
446
  Math.min(F, Math.round(y * T))
447
447
  ), !(I < z && y === _)); )
448
- i.style("font-size", `${y}px`), Z = y + H + I;
448
+ i.style("font-size", `${y}px`), U = y + H + I;
449
449
  i.style("font-size", `${y}px`), (L.getComputedTextLength() > D || y < _ || A < y) && i.style("display", "none");
450
450
  }), s.showValues !== !1 && j.append("text").attr("class", "treemapValue").attr("x", (i) => (i.x1 - i.x0) / 2).attr("y", function(i) {
451
451
  return (i.y1 - i.y0) / 2;
@@ -1,6 +1,6 @@
1
- import { _ as l, s as k, g as R, q as E, p as F, a as I, b as _, H as D, y as G, D as f, E as C, F as P, l as z, K as H } from "./mermaid.core-CHxrqvgN.js";
2
- import { p as V } from "./chunk-4BX2VUAB-QlwpQ37g.js";
3
- import { p as W } from "./mermaid-parser.core-CUvjhjKj.js";
1
+ import { _ as l, s as k, g as R, q as E, p as F, a as I, b as _, H as D, y as G, D as f, E as C, F as P, l as z, K as H } from "./mermaid.core-6385Tvmf.js";
2
+ import { p as V } from "./chunk-4BX2VUAB-DS0FUC4c.js";
3
+ import { p as W } from "./mermaid-parser.core-wI6AXMvA.js";
4
4
  var x = {
5
5
  showLegend: !0,
6
6
  ticks: 5,