@prefecthq/prefab-ui-docs 0.18.4 → 0.19.0

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 (57) hide show
  1. package/dist/_renderer/_baseUniq-DH9CMfkg.mjs +477 -0
  2. package/dist/_renderer/{architectureDiagram-2XIMDMQ5-CHx7PBtr.mjs → architectureDiagram-2XIMDMQ5-D822pjiS.mjs} +3 -3
  3. package/dist/_renderer/{blockDiagram-WCTKOSBZ-C5uP2vqK.mjs → blockDiagram-WCTKOSBZ-zC3ZCEht.mjs} +5 -5
  4. package/dist/_renderer/{c4Diagram-IC4MRINW-Mckshwl0.mjs → c4Diagram-IC4MRINW-Cg_dWXmW.mjs} +2 -2
  5. package/dist/_renderer/{carousel-BNjNObvx.mjs → carousel-Cpl1bjkF.mjs} +1 -1
  6. package/dist/_renderer/{channel-KNgIWRh0.mjs → channel-Dxxn7h_C.mjs} +1 -1
  7. package/dist/_renderer/{charts-DHY77d3D.mjs → charts-DM2qlv55.mjs} +1 -1
  8. package/dist/_renderer/{chunk-4BX2VUAB-D4ZFWMD0.mjs → chunk-4BX2VUAB-Bh5bI7_v.mjs} +1 -1
  9. package/dist/_renderer/{chunk-55IACEB6-DJd76JUM.mjs → chunk-55IACEB6-DaW7GfFV.mjs} +1 -1
  10. package/dist/_renderer/{chunk-FMBD7UC4-BrYDtYUs.mjs → chunk-FMBD7UC4-C2VBZLyr.mjs} +1 -1
  11. package/dist/_renderer/{chunk-JSJVCQXG-DxoJlCoN.mjs → chunk-JSJVCQXG-BVfJez3_.mjs} +1 -1
  12. package/dist/_renderer/{chunk-KX2RTZJC-D-YALGvM.mjs → chunk-KX2RTZJC-CTqbQjR-.mjs} +1 -1
  13. package/dist/_renderer/{chunk-NQ4KR5QH-xMZiDz1z.mjs → chunk-NQ4KR5QH--At4Weuw.mjs} +3 -3
  14. package/dist/_renderer/{chunk-QZHKN3VN-CfPAZxEs.mjs → chunk-QZHKN3VN-B1cy_y-U.mjs} +1 -1
  15. package/dist/_renderer/{chunk-WL4C6EOR-B-gGxeF3.mjs → chunk-WL4C6EOR-BMjZ-0to.mjs} +5 -5
  16. package/dist/_renderer/{classDiagram-v2-RAHNMMFH-CzNkL-4s.mjs → classDiagram-VBA2DB6C-DvUY-C6g.mjs} +2 -2
  17. package/dist/_renderer/{classDiagram-VBA2DB6C-CzNkL-4s.mjs → classDiagram-v2-RAHNMMFH-DvUY-C6g.mjs} +2 -2
  18. package/dist/_renderer/{clone-sZf4oSAl.mjs → clone-D8WW10j4.mjs} +1 -1
  19. package/dist/_renderer/{compound-calendar-CJm0hGtG.mjs → compound-calendar-CwUQo8lD.mjs} +1 -1
  20. package/dist/_renderer/{content-D43Zyoz5.mjs → content-B517fd7F.mjs} +1 -1
  21. package/dist/_renderer/{cose-bilkent-S5V4N54A-BoLcm60l.mjs → cose-bilkent-S5V4N54A-D_C6vupm.mjs} +1 -1
  22. package/dist/_renderer/{dagre-KLK3FWXG-Dvs9qe00.mjs → dagre-KLK3FWXG-C4f_kh47.mjs} +24 -25
  23. package/dist/_renderer/{diagram-E7M64L7V-DqYXUdq5.mjs → diagram-E7M64L7V-B8tMSJoq.mjs} +52 -52
  24. package/dist/_renderer/{diagram-IFDJBPK2-C86Tjp8s.mjs → diagram-IFDJBPK2-Dr3YWvRZ.mjs} +3 -3
  25. package/dist/_renderer/{diagram-P4PSJMXO-CSA1CndN.mjs → diagram-P4PSJMXO-DNBN4PVo.mjs} +3 -3
  26. package/dist/_renderer/{embed-Drh-jnF_.mjs → embed-DrRJVNMo.mjs} +4231 -4149
  27. package/dist/_renderer/embed.mjs +1 -1
  28. package/dist/_renderer/{erDiagram-INFDFZHY-tXSAU2V-.mjs → erDiagram-INFDFZHY-DJZ-Zixz.mjs} +4 -4
  29. package/dist/_renderer/{flowDiagram-PKNHOUZH-Ck7GoCsb.mjs → flowDiagram-PKNHOUZH-C3qBnAyS.mjs} +6 -6
  30. package/dist/_renderer/{ganttDiagram-A5KZAMGK-CHkrOJ1q.mjs → ganttDiagram-A5KZAMGK-BjgfTqvH.mjs} +1 -1
  31. package/dist/_renderer/{gitGraphDiagram-K3NZZRJ6-7nzMCub3.mjs → gitGraphDiagram-K3NZZRJ6-DM5r_Ru5.mjs} +4 -4
  32. package/dist/_renderer/{graph-bHaNzIrW.mjs → graph-0OcQYBsN.mjs} +256 -122
  33. package/dist/_renderer/{infoDiagram-LFFYTUFH-b285s-9o.mjs → infoDiagram-LFFYTUFH-CFe_1CRy.mjs} +2 -2
  34. package/dist/_renderer/{ishikawaDiagram-PHBUUO56-BiKtVObK.mjs → ishikawaDiagram-PHBUUO56-Bk2A15A6.mjs} +1 -1
  35. package/dist/_renderer/{journeyDiagram-4ABVD52K-D1ngsxzD.mjs → journeyDiagram-4ABVD52K-CfVNC4Fa.mjs} +3 -3
  36. package/dist/_renderer/{kanban-definition-K7BYSVSG-DTphin_F.mjs → kanban-definition-K7BYSVSG-CKgqgZQ_.mjs} +2 -2
  37. package/dist/_renderer/layout-Cpt54BST.mjs +1441 -0
  38. package/dist/_renderer/{mermaid-D6jqHNxI.mjs → mermaid-DtgALbpI.mjs} +8 -8
  39. package/dist/_renderer/{mermaid.core-PVHvn-x_.mjs → mermaid.core-DQ-KgOR7.mjs} +92 -94
  40. package/dist/_renderer/min-mcvEHEnR.mjs +38 -0
  41. package/dist/_renderer/{mindmap-definition-YRQLILUH-FOJ_TsVu.mjs → mindmap-definition-YRQLILUH-B-Xixhkq.mjs} +3 -3
  42. package/dist/_renderer/{pieDiagram-SKSYHLDU-poHg5YWZ.mjs → pieDiagram-SKSYHLDU-DyXBBMxw.mjs} +3 -3
  43. package/dist/_renderer/{quadrantDiagram-337W2JSQ-Nq26Je48.mjs → quadrantDiagram-337W2JSQ-fx75_3yK.mjs} +1 -1
  44. package/dist/_renderer/{requirementDiagram-Z7DCOOCP-D4QjC119.mjs → requirementDiagram-Z7DCOOCP-D27A8tvp.mjs} +3 -3
  45. package/dist/_renderer/{sankeyDiagram-WA2Y5GQK-RyTlVkCi.mjs → sankeyDiagram-WA2Y5GQK-CLVR7BQK.mjs} +1 -1
  46. package/dist/_renderer/{sequenceDiagram-2WXFIKYE-CtUrkwmM.mjs → sequenceDiagram-2WXFIKYE-Dv_YORJI.mjs} +3 -3
  47. package/dist/_renderer/{stateDiagram-RAJIS63D-C8Wi0qZn.mjs → stateDiagram-RAJIS63D-DtVfaiJj.mjs} +4 -4
  48. package/dist/_renderer/{stateDiagram-v2-FVOUBMTO-CVZp-z4T.mjs → stateDiagram-v2-FVOUBMTO-ne-KcfsM.mjs} +2 -2
  49. package/dist/_renderer/{svg-qt7aUS-5.mjs → svg-BrimPMDV.mjs} +1 -1
  50. package/dist/_renderer/{timeline-definition-YZTLITO2-CufKH9g5.mjs → timeline-definition-YZTLITO2-Bw3Te8BV.mjs} +1 -1
  51. package/dist/_renderer/{treemap-KZPCXAKY-BF1hUklX.mjs → treemap-KZPCXAKY-DMkjhMHM.mjs} +4754 -4873
  52. package/dist/_renderer/{vennDiagram-LZ73GAT5-B66l06kX.mjs → vennDiagram-LZ73GAT5-CekFoN4h.mjs} +1 -1
  53. package/dist/_renderer/{xychartDiagram-JWTSCODW-CsD1MU3Z.mjs → xychartDiagram-JWTSCODW-BQUGmX67.mjs} +1 -1
  54. package/package.json +1 -1
  55. package/dist/_renderer/_basePickBy-C9hM89XS.mjs +0 -151
  56. package/dist/_renderer/_baseUniq-dLGXSXpi.mjs +0 -614
  57. package/dist/_renderer/layout-BJL2ZwMF.mjs +0 -1335
@@ -1,10 +1,9 @@
1
- import { _ as X, ah as Y, ai as F, aj as _, ak as H, l as i, c as V, al as $, am as U, $ as q, a5 as z, a0 as P, Y as K, an as Q, ao as W, ap as Z } from "./mermaid.core-PVHvn-x_.mjs";
2
- import { G as B } from "./graph-bHaNzIrW.mjs";
3
- import { l as I } from "./layout-BJL2ZwMF.mjs";
4
- import { i as x } from "./_baseUniq-dLGXSXpi.mjs";
5
- import { c as L } from "./clone-sZf4oSAl.mjs";
6
- import { m as A } from "./_basePickBy-C9hM89XS.mjs";
7
- function E(e) {
1
+ import { _ as X, ac as Y, ad as F, ae as _, af as H, l as i, c as V, ag as $, ah as U, $ as q, a5 as z, a0 as P, Y as K, ai as Q, aj as W, ak as Z } from "./mermaid.core-DQ-KgOR7.mjs";
2
+ import { i as x, G as B } from "./graph-0OcQYBsN.mjs";
3
+ import { l as I } from "./layout-Cpt54BST.mjs";
4
+ import { c as L } from "./clone-D8WW10j4.mjs";
5
+ import { m as A } from "./min-mcvEHEnR.mjs";
6
+ function p(e) {
8
7
  var t = {
9
8
  options: {
10
9
  directed: e.isDirected(),
@@ -155,10 +154,10 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
155
154
  }
156
155
  i.warn("Fix Replacing with XXX", c, a, n.name), e.setEdge(c, a, o, n.name);
157
156
  }
158
- }), i.warn("Adjusted Graph", E(e)), T(e, 0), i.trace(f);
157
+ }), i.warn("Adjusted Graph", p(e)), T(e, 0), i.trace(f);
159
158
  }, "adjustClustersAndEdges"), T = /* @__PURE__ */ X((e, t) => {
160
159
  var c, a;
161
- if (i.warn("extractor - ", t, E(e), e.children("D")), t > 10) {
160
+ if (i.warn("extractor - ", t, p(e), e.children("D")), t > 10) {
162
161
  i.error("Bailing out");
163
162
  return;
164
163
  }
@@ -205,13 +204,13 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
205
204
  }).setDefaultEdgeLabel(function() {
206
205
  return {};
207
206
  });
208
- i.warn("Old graph before copy", E(e)), G(r, e, v, r), e.setNode(r, {
207
+ i.warn("Old graph before copy", p(e)), G(r, e, v, r), e.setNode(r, {
209
208
  clusterNode: !0,
210
209
  id: r,
211
210
  clusterData: f.get(r).clusterData,
212
211
  label: f.get(r).label,
213
212
  graph: v
214
- }), i.warn("New graph after copy node: (", r, ")", E(v)), i.debug("Old graph after copy", E(e));
213
+ }), i.warn("New graph after copy node: (", r, ")", p(v)), i.debug("Old graph after copy", p(e));
215
214
  } else
216
215
  i.warn(
217
216
  "Cluster ** ",
@@ -239,7 +238,7 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE
239
238
  n = [...n, ...a];
240
239
  }), n;
241
240
  }, "sorter"), oe = /* @__PURE__ */ X((e) => M(e, e.children()), "sortNodesByHierarchy"), j = /* @__PURE__ */ X(async (e, t, n, o, c, a) => {
242
- i.warn("Graph in recursive render:XAX", E(t), c);
241
+ i.warn("Graph in recursive render:XAX", p(t), c);
243
242
  const r = t.graph().rankdir;
244
243
  i.trace("Dir in recursive render - dir:", r);
245
244
  const u = e.insert("g").attr("class", "root");
@@ -315,8 +314,8 @@ Parent cluster`,
315
314
  ), await Z(C, w);
316
315
  });
317
316
  await Promise.all(d);
318
- }, "processEdges"))(), i.info("Graph before layout:", JSON.stringify(E(t))), i.info("############################################# XXX"), i.info("### Layout ### XXX"), i.info("############################################# XXX"), I(t), i.info("Graph after layout:", JSON.stringify(E(t)));
319
- let p = 0, { subGraphTitleTotalMargin: y } = z(a);
317
+ }, "processEdges"))(), i.info("Graph before layout:", JSON.stringify(p(t))), i.info("############################################# XXX"), i.info("### Layout ### XXX"), i.info("############################################# XXX"), I(t), i.info("Graph after layout:", JSON.stringify(p(t)));
318
+ let E = 0, { subGraphTitleTotalMargin: y } = z(a);
320
319
  return await Promise.all(
321
320
  oe(t).map(async function(d) {
322
321
  var w;
@@ -381,9 +380,9 @@ Parent cluster`,
381
380
  W(s, N);
382
381
  }), t.nodes().forEach(function(d) {
383
382
  const s = t.node(d);
384
- i.info(d, s.type, s.diff), s.isGroup && (p = s.diff);
385
- }), i.warn("Returning from recursive render XAX", u, p), { elem: u, diff: p };
386
- }, "recursiveRender"), ge = /* @__PURE__ */ X(async (e, t) => {
383
+ i.info(d, s.type, s.diff), s.isGroup && (E = s.diff);
384
+ }), i.warn("Returning from recursive render XAX", u, E), { elem: u, diff: E };
385
+ }, "recursiveRender"), ue = /* @__PURE__ */ X(async (e, t) => {
387
386
  var a, r, u, l, v, C;
388
387
  const n = new B({
389
388
  multigraph: !0,
@@ -401,10 +400,10 @@ Parent cluster`,
401
400
  n.setNode(g.id, { ...g }), g.parentId && n.setParent(g.id, g.parentId);
402
401
  }), i.debug("Edges:", e.edges), e.edges.forEach((g) => {
403
402
  if (g.start === g.end) {
404
- const h = g.start, p = h + "---" + h + "---1", y = h + "---" + h + "---2", d = n.node(h);
405
- n.setNode(p, {
406
- domId: p,
407
- id: p,
403
+ const h = g.start, E = h + "---" + h + "---1", y = h + "---" + h + "---2", d = n.node(h);
404
+ n.setNode(E, {
405
+ domId: E,
406
+ id: E,
408
407
  parentId: d.parentId,
409
408
  labelStyle: "",
410
409
  label: "",
@@ -414,7 +413,7 @@ Parent cluster`,
414
413
  style: "",
415
414
  width: 10,
416
415
  height: 10
417
- }), n.setParent(p, d.parentId), n.setNode(y, {
416
+ }), n.setParent(E, d.parentId), n.setNode(y, {
418
417
  domId: y,
419
418
  id: y,
420
419
  parentId: d.parentId,
@@ -428,10 +427,10 @@ Parent cluster`,
428
427
  height: 10
429
428
  }), n.setParent(y, d.parentId);
430
429
  const s = structuredClone(g), w = structuredClone(g), m = structuredClone(g);
431
- s.label = "", s.arrowTypeEnd = "none", s.id = h + "-cyclic-special-1", w.arrowTypeStart = "none", w.arrowTypeEnd = "none", w.id = h + "-cyclic-special-mid", m.label = "", d.isGroup && (s.fromCluster = h, m.toCluster = h), m.id = h + "-cyclic-special-2", m.arrowTypeStart = "none", n.setEdge(h, p, s, h + "-cyclic-special-0"), n.setEdge(p, y, w, h + "-cyclic-special-1"), n.setEdge(y, h, m, h + "-cyc<lic-special-2");
430
+ s.label = "", s.arrowTypeEnd = "none", s.id = h + "-cyclic-special-1", w.arrowTypeStart = "none", w.arrowTypeEnd = "none", w.id = h + "-cyclic-special-mid", m.label = "", d.isGroup && (s.fromCluster = h, m.toCluster = h), m.id = h + "-cyclic-special-2", m.arrowTypeStart = "none", n.setEdge(h, E, s, h + "-cyclic-special-0"), n.setEdge(E, y, w, h + "-cyclic-special-1"), n.setEdge(y, h, m, h + "-cyc<lic-special-2");
432
431
  } else
433
432
  n.setEdge(g.start, g.end, { ...g }, g.id);
434
- }), i.warn("Graph at first:", JSON.stringify(E(n))), re(n), i.warn("Graph after XAX:", JSON.stringify(E(n)));
433
+ }), i.warn("Graph at first:", JSON.stringify(p(n))), re(n), i.warn("Graph after XAX:", JSON.stringify(p(n)));
435
434
  const c = V();
436
435
  await j(
437
436
  o,
@@ -443,5 +442,5 @@ Parent cluster`,
443
442
  );
444
443
  }, "render");
445
444
  export {
446
- ge as render
445
+ ue as render
447
446
  };
@@ -1,9 +1,9 @@
1
- import { _ as w, D as te, F as ae, H as he, e as ue, l as K, aF as P, d as j, b as pe, a as fe, p as ge, q as me, g as ye, s as Se, E as ve, aG as xe, y as be } from "./mermaid.core-PVHvn-x_.mjs";
2
- import { s as we } from "./chunk-KX2RTZJC-D-YALGvM.mjs";
3
- import { p as Ce } from "./chunk-4BX2VUAB-D4ZFWMD0.mjs";
4
- import { p as Te } from "./treemap-KZPCXAKY-BF1hUklX.mjs";
1
+ import { _ as w, D as te, F as ae, H as he, e as ue, l as J, aQ as P, d as j, b as pe, a as fe, p as ge, q as me, g as ye, s as Se, E as ve, aR as xe, y as be } from "./mermaid.core-DQ-KgOR7.mjs";
2
+ import { s as we } from "./chunk-KX2RTZJC-CTqbQjR-.mjs";
3
+ import { p as Ce } from "./chunk-4BX2VUAB-Bh5bI7_v.mjs";
4
+ import { p as Te } from "./treemap-KZPCXAKY-DMkjhMHM.mjs";
5
5
  import { b as O } from "./defaultLocale-BgPVtth8.mjs";
6
- import { o as J } from "./ordinal-Bq0KrZxK.mjs";
6
+ import { o as Z } from "./ordinal-Bq0KrZxK.mjs";
7
7
  function Le(t) {
8
8
  var a = 0, l = t.children, n = l && l.length;
9
9
  if (!n) a = 1;
@@ -80,13 +80,13 @@ function Be() {
80
80
  a.children || t.push(a);
81
81
  }), t;
82
82
  }
83
- function Ee() {
83
+ function Re() {
84
84
  var t = this, a = [];
85
85
  return t.each(function(l) {
86
86
  l !== t && a.push({ source: l.parent, target: l });
87
87
  }), a;
88
88
  }
89
- function* Re() {
89
+ function* Ee() {
90
90
  var t = this, a, l = [t], n, o, s;
91
91
  do
92
92
  for (a = l.reverse(), l = []; t = a.pop(); )
@@ -95,16 +95,16 @@ function* Re() {
95
95
  l.push(n[o]);
96
96
  while (l.length);
97
97
  }
98
- function Q(t, a) {
98
+ function K(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 Q(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;
104
- return l.eachBefore(Ge);
103
+ o.push(s = d[h] = new Q(d[h])), s.parent = n, s.depth = n.depth + 1;
104
+ return l.eachBefore(qe);
105
105
  }
106
106
  function We() {
107
- return Q(this).eachBefore(Oe);
107
+ return K(this).eachBefore(Oe);
108
108
  }
109
109
  function He(t) {
110
110
  return t.children;
@@ -115,17 +115,17 @@ function Ie(t) {
115
115
  function Oe(t) {
116
116
  t.data.value !== void 0 && (t.value = t.data.value), t.data = t.data.data;
117
117
  }
118
- function Ge(t) {
118
+ function qe(t) {
119
119
  var a = 0;
120
120
  do
121
121
  t.height = a;
122
122
  while ((t = t.parent) && t.height < ++a);
123
123
  }
124
- function U(t) {
124
+ function Q(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
+ Q.prototype = K.prototype = {
128
+ constructor: Q,
129
129
  count: $e,
130
130
  each: Ae,
131
131
  eachAfter: ke,
@@ -137,18 +137,18 @@ U.prototype = Q.prototype = {
137
137
  ancestors: De,
138
138
  descendants: Pe,
139
139
  leaves: Be,
140
- links: Ee,
140
+ links: Re,
141
141
  copy: We,
142
- [Symbol.iterator]: Re
142
+ [Symbol.iterator]: Ee
143
143
  };
144
- function qe(t) {
144
+ function Ge(t) {
145
145
  if (typeof t != "function") throw new Error();
146
146
  return t;
147
147
  }
148
- function G() {
148
+ function q() {
149
149
  return 0;
150
150
  }
151
- function q(t) {
151
+ function G(t) {
152
152
  return function() {
153
153
  return t;
154
154
  };
@@ -164,15 +164,15 @@ function je(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) {
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; ) {
167
+ var Qe = (1 + Math.sqrt(5)) / 2;
168
+ function Ue(t, a, l, n, o, s) {
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, E, M; u < r; ) {
170
170
  x = o - l, S = s - n;
171
171
  do
172
172
  p = h[b++].value;
173
173
  while (!p && b < r);
174
- for (m = N = p, R = Math.max(S / x, x / S) / (v * t), M = p * p * R, V = Math.max(N / M, M / m); b < r; ++b) {
175
- if (p += c = h[b].value, c < m && (m = c), c > N && (N = c), M = p * p * R, k = Math.max(N / M, M / m), k > V) {
174
+ for (m = N = p, E = Math.max(S / x, x / S) / (v * t), M = p * p * E, V = Math.max(N / M, M / m); b < r; ++b) {
175
+ if (p += c = h[b].value, c < m && (m = c), c > N && (N = c), M = p * p * E, k = Math.max(N / M, M / m), k > V) {
176
176
  p -= c;
177
177
  break;
178
178
  }
@@ -182,16 +182,16 @@ function Ze(t, a, l, n, o, s) {
182
182
  }
183
183
  return d;
184
184
  }
185
- const Je = (function t(a) {
185
+ const Ze = (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);
193
- function Ke() {
194
- var t = Je, a = !1, l = 1, n = 1, o = [0], s = G, d = G, h = G, g = G, c = G;
192
+ })(Qe);
193
+ function Je() {
194
+ var t = Ze, a = !1, l = 1, n = 1, o = [0], s = q, d = q, h = q, g = q, c = q;
195
195
  function u(r) {
196
196
  return r.x0 = r.y0 = 0, r.x1 = l, r.y1 = n, r.eachBefore(b), o = [0], a && r.eachBefore(Xe), r;
197
197
  }
@@ -204,24 +204,24 @@ function Ke() {
204
204
  }, u.size = function(r) {
205
205
  return arguments.length ? (l = +r[0], n = +r[1], u) : [l, n];
206
206
  }, u.tile = function(r) {
207
- return arguments.length ? (t = qe(r), u) : t;
207
+ return arguments.length ? (t = Ge(r), u) : t;
208
208
  }, u.padding = function(r) {
209
209
  return arguments.length ? u.paddingInner(r).paddingOuter(r) : u.paddingInner();
210
210
  }, u.paddingInner = function(r) {
211
- return arguments.length ? (s = typeof r == "function" ? r : q(+r), u) : s;
211
+ return arguments.length ? (s = typeof r == "function" ? r : G(+r), u) : s;
212
212
  }, u.paddingOuter = function(r) {
213
213
  return arguments.length ? u.paddingTop(r).paddingRight(r).paddingBottom(r).paddingLeft(r) : u.paddingTop();
214
214
  }, u.paddingTop = function(r) {
215
- return arguments.length ? (d = typeof r == "function" ? r : q(+r), u) : d;
215
+ return arguments.length ? (d = typeof r == "function" ? r : G(+r), u) : d;
216
216
  }, u.paddingRight = function(r) {
217
- return arguments.length ? (h = typeof r == "function" ? r : q(+r), u) : h;
217
+ return arguments.length ? (h = typeof r == "function" ? r : G(+r), u) : h;
218
218
  }, u.paddingBottom = function(r) {
219
- return arguments.length ? (g = typeof r == "function" ? r : q(+r), u) : g;
219
+ return arguments.length ? (g = typeof r == "function" ? r : G(+r), u) : g;
220
220
  }, u.paddingLeft = function(r) {
221
- return arguments.length ? (c = typeof r == "function" ? r : q(+r), u) : c;
221
+ return arguments.length ? (c = typeof r == "function" ? r : G(+r), u) : c;
222
222
  }, u;
223
223
  }
224
- var E, ne = (E = class {
224
+ var R, ne = (R = class {
225
225
  constructor() {
226
226
  this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle = pe, this.getAccTitle = fe, this.setDiagramTitle = ge, this.getDiagramTitle = me, this.getAccDescription = ye, this.setAccDescription = Se;
227
227
  }
@@ -257,7 +257,7 @@ var E, ne = (E = class {
257
257
  clear() {
258
258
  be(), this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.root = void 0;
259
259
  }
260
- }, w(E, "TreeMapDB"), E);
260
+ }, w(R, "TreeMapDB"), R);
261
261
  function le(t) {
262
262
  if (!t.length)
263
263
  return [];
@@ -279,7 +279,7 @@ function le(t) {
279
279
  }), a;
280
280
  }
281
281
  w(le, "buildHierarchy");
282
- var Qe = /* @__PURE__ */ w((t, a) => {
282
+ var Ke = /* @__PURE__ */ w((t, a) => {
283
283
  Ce(t, a);
284
284
  const l = [];
285
285
  for (const s of t.TreemapRows ?? [])
@@ -310,15 +310,15 @@ var Qe = /* @__PURE__ */ w((t, a) => {
310
310
  var a;
311
311
  try {
312
312
  const n = await Te("treemap", t);
313
- K.debug("Treemap AST:", n);
313
+ J.debug("Treemap AST:", n);
314
314
  const o = (a = re.parser) == null ? void 0 : a.yy;
315
315
  if (!(o instanceof ne))
316
316
  throw new Error(
317
317
  "parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues."
318
318
  );
319
- Qe(n, o);
319
+ Ke(n, o);
320
320
  } catch (l) {
321
- throw K.error("Error parsing treemap:", l), l;
321
+ throw J.error("Error parsing treemap:", l), l;
322
322
  }
323
323
  }, "parse")
324
324
  }, tt = 10, B = 10, X = 25, at = /* @__PURE__ */ w((t, a, l, n) => {
@@ -341,9 +341,9 @@ var Qe = /* @__PURE__ */ w((t, a) => {
341
341
  } else
342
342
  p = O(e);
343
343
  } catch (e) {
344
- K.error("Error creating format function:", e), p = O(",");
344
+ J.error("Error creating format function:", e), p = O(",");
345
345
  }
346
- const m = J().range([
346
+ const m = Z().range([
347
347
  "transparent",
348
348
  c.cScale0,
349
349
  c.cScale1,
@@ -357,7 +357,7 @@ var Qe = /* @__PURE__ */ w((t, a) => {
357
357
  c.cScale9,
358
358
  c.cScale10,
359
359
  c.cScale11
360
- ]), N = J().range([
360
+ ]), N = Z().range([
361
361
  "transparent",
362
362
  c.cScalePeer0,
363
363
  c.cScalePeer1,
@@ -371,7 +371,7 @@ var Qe = /* @__PURE__ */ w((t, a) => {
371
371
  c.cScalePeer9,
372
372
  c.cScalePeer10,
373
373
  c.cScalePeer11
374
- ]), k = J().range([
374
+ ]), k = Z().range([
375
375
  c.cScaleLabel0,
376
376
  c.cScaleLabel1,
377
377
  c.cScaleLabel2,
@@ -386,9 +386,9 @@ var Qe = /* @__PURE__ */ w((t, a) => {
386
386
  c.cScaleLabel11
387
387
  ]);
388
388
  h && b.append("text").attr("x", S / 2).attr("y", u / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(h);
389
- const V = b.append("g").attr("transform", `translate(0, ${u})`).attr("class", "treemapContainer"), R = Q(g).sum((e) => e.value ?? 0).sort((e, i) => (i.value ?? 0) - (e.value ?? 0)), ee = Ke().size([r, x]).paddingTop(
389
+ const V = b.append("g").attr("transform", `translate(0, ${u})`).attr("class", "treemapContainer"), E = K(g).sum((e) => e.value ?? 0).sort((e, i) => (i.value ?? 0) - (e.value ?? 0)), ee = Je().size([r, x]).paddingTop(
390
390
  (e) => e.children && e.children.length > 0 ? X + B : 0
391
- ).paddingInner(d).paddingLeft((e) => e.children && e.children.length > 0 ? B : 0).paddingRight((e) => e.children && e.children.length > 0 ? B : 0).paddingBottom((e) => e.children && e.children.length > 0 ? B : 0).round(!0)(R), se = ee.descendants().filter((e) => e.children && e.children.length > 0), W = V.selectAll(".treemapSection").data(se).enter().append("g").attr("class", "treemapSection").attr("transform", (e) => `translate(${e.x0},${e.y0})`);
391
+ ).paddingInner(d).paddingLeft((e) => e.children && e.children.length > 0 ? B : 0).paddingRight((e) => e.children && e.children.length > 0 ? B : 0).paddingBottom((e) => e.children && e.children.length > 0 ? B : 0).round(!0)(E), se = ee.descendants().filter((e) => e.children && e.children.length > 0), W = V.selectAll(".treemapSection").data(se).enter().append("g").attr("class", "treemapSection").attr("transform", (e) => `translate(${e.x0},${e.y0})`);
392
392
  W.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", X).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", 0.6).attr("stroke-width", 0.6).attr("style", (e) => e.depth === 0 ? "display: none;" : ""), W.append("clipPath").attr("id", (e, i) => `clip-section-${a}-${i}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 12)).attr("height", X), W.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", (e, i) => `treemapSection section${i}`).attr("fill", (e) => m(e.data.name)).attr("fill-opacity", 0.6).attr("stroke", (e) => N(e.data.name)).attr("stroke-width", 2).attr("stroke-opacity", 0.4).attr("style", (e) => {
393
393
  if (e.depth === 0)
394
394
  return "display: none;";
@@ -442,12 +442,12 @@ var Qe = /* @__PURE__ */ w((t, a) => {
442
442
  let I = Math.max(
443
443
  z,
444
444
  Math.min(F, Math.round(y * T))
445
- ), Z = y + H + I;
446
- for (; Z > A && y > _ && (y--, I = Math.max(
445
+ ), U = y + H + I;
446
+ for (; U > A && y > _ && (y--, I = Math.max(
447
447
  z,
448
448
  Math.min(F, Math.round(y * T))
449
449
  ), !(I < z && y === _)); )
450
- i.style("font-size", `${y}px`), Z = y + H + I;
450
+ i.style("font-size", `${y}px`), U = y + H + I;
451
451
  i.style("font-size", `${y}px`), (L.getComputedTextLength() > D || y < _ || A < y) && i.style("display", "none");
452
452
  }), s.showValues !== !1 && Y.append("text").attr("class", "treemapValue").attr("x", (i) => (i.x1 - i.x0) / 2).attr("y", function(i) {
453
453
  return (i.y1 - i.y0) / 2;
@@ -1,6 +1,6 @@
1
- import { s as k, g as I, q as R, p as E, a as F, b as _, _ as l, H as D, y as z, D as f, E as G, F as C, l as P, I as W, e as B } from "./mermaid.core-PVHvn-x_.mjs";
2
- import { p as H } from "./chunk-4BX2VUAB-D4ZFWMD0.mjs";
3
- import { p as V } from "./treemap-KZPCXAKY-BF1hUklX.mjs";
1
+ import { s as k, g as I, q as R, p as E, a as F, b as _, _ as l, H as D, y as z, D as f, E as G, F as C, l as P, I as W, e as B } from "./mermaid.core-DQ-KgOR7.mjs";
2
+ import { p as H } from "./chunk-4BX2VUAB-Bh5bI7_v.mjs";
3
+ import { p as V } from "./treemap-KZPCXAKY-DMkjhMHM.mjs";
4
4
  var h = {
5
5
  showLegend: !0,
6
6
  ticks: 5,
@@ -1,6 +1,6 @@
1
- import { _ as b, D as m, H as B, e as C, l as w, b as S, a as D, p as T, q as E, g as F, s as P, E as z, F as A, y as W } from "./mermaid.core-PVHvn-x_.mjs";
2
- import { p as _ } from "./chunk-4BX2VUAB-D4ZFWMD0.mjs";
3
- import { p as N } from "./treemap-KZPCXAKY-BF1hUklX.mjs";
1
+ import { _ as b, D as m, H as B, e as C, l as w, b as S, a as D, p as T, q as E, g as F, s as P, E as z, F as A, y as W } from "./mermaid.core-DQ-KgOR7.mjs";
2
+ import { p as _ } from "./chunk-4BX2VUAB-Bh5bI7_v.mjs";
3
+ import { p as N } from "./treemap-KZPCXAKY-DMkjhMHM.mjs";
4
4
  var L = z.packet, u, v = (u = class {
5
5
  constructor() {
6
6
  this.packet = [], this.setAccTitle = S, this.getAccTitle = D, this.setDiagramTitle = T, this.getDiagramTitle = E, this.getAccDescription = F, this.setAccDescription = P;