@marimo-team/islands 0.14.11-dev2 → 0.14.11-dev21

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 (71) hide show
  1. package/dist/{ConnectedDataExplorerComponent-Dl7Gx8nj.js → ConnectedDataExplorerComponent-B98UAJGl.js} +4 -4
  2. package/dist/{ImageComparisonComponent-IsA0pccG.js → ImageComparisonComponent-3rx-X1eA.js} +1 -1
  3. package/dist/{VegaLite-C3jfIIJl.js → VegaLite-bssctYsi.js} +6961 -7180
  4. package/dist/{_baseUniq-DXGCzwrs.js → _baseUniq-n5nuGCm-.js} +36 -36
  5. package/dist/{any-language-editor-BbtP_crK.js → any-language-editor-CTuUQiXP.js} +1 -1
  6. package/dist/{architectureDiagram-IEHRJDOE-B5UTatfK.js → architectureDiagram-NQ2NVSRB-Ghs-gTjF.js} +897 -894
  7. package/dist/assets/{worker-BcyuOSTi.js → save-worker-fI5ofStJ.js} +1076 -1649
  8. package/dist/assets/{save-worker-BIDtxCd1.js → worker-Bfk1FrzG.js} +1627 -1747
  9. package/dist/assets/worker-BldghCZh.js +3752 -0
  10. package/dist/{blockDiagram-JOT3LUYC-BsdaPVqe.js → blockDiagram-PHRCVELO-BJrdpvE8.js} +534 -522
  11. package/dist/{c4Diagram-VJAJSXHY-mAt84R4z.js → c4Diagram-6F6E4RAY-C3mvzJPu.js} +4 -4
  12. package/dist/{channel-BQIWHLpc.js → channel-Dv_KwBSx.js} +1 -1
  13. package/dist/{chunk-4BMEZGHF-CKIxJWxP.js → chunk-353BL4L5-DE1uUKLI.js} +1 -1
  14. package/dist/{chunk-D6G4REZN-CgGV16Ao.js → chunk-67H74DCK-BSe-uUSS.js} +1 -1
  15. package/dist/chunk-6OLS64BW-lmSfyWue.js +1383 -0
  16. package/dist/{chunk-XZIHB7SX-Bwue5JjE.js → chunk-AACKK3MU-DAmuROVD.js} +1 -1
  17. package/dist/chunk-BFAMUDN2-D9C6R9UM.js +8 -0
  18. package/dist/chunk-E2GYISFI-BzFDmP6o.js +19 -0
  19. package/dist/{chunk-A2AXSNBT-wMvlVMnZ.js → chunk-QEP2MXWD-BILXx23p.js} +30 -27
  20. package/dist/chunk-SKB7J2MH-CxMkQppY.js +20 -0
  21. package/dist/{classDiagram-GIVACNV2-DOmcKRwM.js → classDiagram-BGRH5UQR-BbYr5aD9.js} +2 -2
  22. package/dist/{classDiagram-v2-COTLJTTW-DOmcKRwM.js → classDiagram-v2-O24JOBDK-BbYr5aD9.js} +2 -2
  23. package/dist/{clone-PHSHUhb-.js → clone-DuBujAk0.js} +1 -1
  24. package/dist/{dagre-OKDRZEBW-D5HNBllU.js → dagre-FFZHY6LT-DO5nLpLx.js} +8 -8
  25. package/dist/{data-editor-Coz_zrsX.js → data-editor-C8yM5wyh.js} +213 -201
  26. package/dist/diagram-3EMPZRKU-B1rYMJMS.js +313 -0
  27. package/dist/diagram-5UYTHUR4-BUu8PsmE.js +137 -0
  28. package/dist/{diagram-SSKATNLV-BsO89QJN.js → diagram-ZTM2IBQH-lz_uZrYh.js} +3 -3
  29. package/dist/{erDiagram-Q7BY3M3F-DWIMKTfS.js → erDiagram-R3QVA2FD-D_A2jrJV.js} +6 -5
  30. package/dist/{flowDiagram-4HSFHLVR-CnO0wmaL.js → flowDiagram-PKI6S5ZS-Bv6D_bIf.js} +283 -278
  31. package/dist/{ganttDiagram-APWFNJXF-otclLFL4.js → ganttDiagram-EK5VF46D-CbkaARm4.js} +453 -439
  32. package/dist/{gitGraphDiagram-7IBYFJ6S-C7F3RAja.js → gitGraphDiagram-GW3U2K7C-B8ZGoOT-.js} +35 -35
  33. package/dist/{graph-Btsdly6D.js → graph-txVVq_De.js} +3 -3
  34. package/dist/{index-BreCkhLm.js → index-BI6tloBb.js} +3 -3
  35. package/dist/{index-CcRF-HlA.js → index-CFJazcU-.js} +4 -4
  36. package/dist/{index-BGmzdYRo.js → index-OiR0LgXX.js} +6 -3
  37. package/dist/{index-z8OyYHEh.js → index-fJDj-gSp.js} +1 -1
  38. package/dist/index-pBmAzQJl.js +235 -0
  39. package/dist/{infoDiagram-PH2N3AL5-BwcXDzwE.js → infoDiagram-RLU2ROGC-DJw6nWp0.js} +5 -3
  40. package/dist/journeyDiagram-EWQZEKCU-1oCDdLcB.js +836 -0
  41. package/dist/{kanban-definition-NDS4AKOZ-3NJYjnpz.js → kanban-definition-ILFWEQ3N-nKJ02Ox0.js} +41 -39
  42. package/dist/{layout-qfivsCI_.js → layout-CbUwX9d6.js} +49 -49
  43. package/dist/{linear-D_Kojy5s.js → linear-sn9_bxtB.js} +22 -22
  44. package/dist/{main-DLuap1gp.js → main-D9-48wlP.js} +45053 -45130
  45. package/dist/main.js +1 -1
  46. package/dist/{mermaid-DCIbF0Rd.js → mermaid-CRRCnedu.js} +4925 -4853
  47. package/dist/min-CYaGuxZ4.js +80 -0
  48. package/dist/{mindmap-definition-ALO5MXBD-BtSBR7-c.js → mindmap-definition-CZNETY7S-CV62GMPJ.js} +3 -3
  49. package/dist/{pieDiagram-IB7DONF6-TiB_3g9z.js → pieDiagram-NIOCPIFQ-Bcs4p6kX.js} +3 -3
  50. package/dist/{quadrantDiagram-7GDLP6J5-B0DPjp7Z.js → quadrantDiagram-2OG54O6I-BlY5yea6.js} +2 -2
  51. package/dist/{react-plotly-BXWB3UQ5.js → react-plotly-B1SKP2B-.js} +1 -1
  52. package/dist/{requirementDiagram-KVF5MWMF-D_IlbRr_.js → requirementDiagram-SO3GGRV7-rmiJc5mh.js} +5 -4
  53. package/dist/{sankeyDiagram-QLVOVGJD-BHm9uvp_.js → sankeyDiagram-4UZDY2LN-TVzOLFCA.js} +11 -11
  54. package/dist/{sequenceDiagram-X6HHIX6F-3wcWWNtl.js → sequenceDiagram-ZIKVLSP4-POBNIgPB.js} +151 -149
  55. package/dist/{slides-component-JEGZbKgL.js → slides-component-5Y9DQzeV.js} +969 -962
  56. package/dist/stateDiagram-XX37X6EN-lR-7TG5f.js +264 -0
  57. package/dist/{stateDiagram-v2-YXO3MK2T-DTdt4vFc.js → stateDiagram-v2-GD6S3NHB-CYV2YCSY.js} +2 -2
  58. package/dist/style.css +1 -1
  59. package/dist/{time-DyZM4tB4.js → time-BytuUgXk.js} +2 -2
  60. package/dist/{timeline-definition-BDJGKUSR-Of4cvbYH.js → timeline-definition-RI47OAVP-DOrNrVHk.js} +99 -102
  61. package/dist/{radar-MK3ICKWK-BMSp8zaN.js → treemap-FKARHQ26-BOli4yXg.js} +2469 -2330
  62. package/dist/{vega-component-Dwc_9OTG.js → vega-component-KZ-3GH6H.js} +21 -21
  63. package/dist/{xychartDiagram-VJFVF3MP-5Jc993Va.js → xychartDiagram-H2YORKM3-CUOFDcIy.js} +409 -375
  64. package/package.json +37 -37
  65. package/dist/assets/worker-Dz6PPEGc.js +0 -4115
  66. package/dist/chunk-AEK57VVT-BAi7QtEw.js +0 -1416
  67. package/dist/chunk-RZ5BOZE2-D7Ag0UF8.js +0 -24
  68. package/dist/diagram-VNBRO52H-CA8VTm7L.js +0 -126
  69. package/dist/journeyDiagram-U35MCT3I-Co4hTdu9.js +0 -809
  70. package/dist/min-CQBZldos.js +0 -80
  71. package/dist/stateDiagram-DGXRK772-DbH3Rdz4.js +0 -271
@@ -0,0 +1,264 @@
1
+ import { s as R, a as W, S as N } from "./chunk-6OLS64BW-lmSfyWue.js";
2
+ import { _ as f, c as t, d as H, l as S, e as P, k as z, Q as _, u as U } from "./mermaid-CRRCnedu.js";
3
+ import { G as C } from "./graph-txVVq_De.js";
4
+ import { l as F } from "./layout-CbUwX9d6.js";
5
+ import { l as O, k as J } from "./timer-BYwnU4DF.js";
6
+ var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit).attr("cy", t().state.padding + t().state.sizeUnit), "drawStartState"), D = /* @__PURE__ */ f((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", t().state.textHeight).attr("class", "divider").attr("x2", t().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), Y = /* @__PURE__ */ f((e, i) => {
7
+ const d = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 2 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), c = d.node().getBBox();
8
+ return e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", c.width + 2 * t().state.padding).attr("height", c.height + 2 * t().state.padding).attr("rx", t().state.radius), d;
9
+ }, "drawSimpleState"), I = /* @__PURE__ */ f((e, i) => {
10
+ const d = /* @__PURE__ */ f(function(g, B, m) {
11
+ const v = g.append("tspan").attr("x", 2 * t().state.padding).text(B);
12
+ m || v.attr("dy", t().state.textHeight);
13
+ }, "addTspan"), n = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 1.3 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.descriptions[0]).node().getBBox(), l = n.height, x = e.append("text").attr("x", t().state.padding).attr(
14
+ "y",
15
+ l + t().state.padding * 0.4 + t().state.dividerMargin + t().state.textHeight
16
+ ).attr("class", "state-description");
17
+ let a = true, s = true;
18
+ i.descriptions.forEach(function(g) {
19
+ a || (d(x, g, s), s = false), a = false;
20
+ });
21
+ const w = e.append("line").attr("x1", t().state.padding).attr("y1", t().state.padding + l + t().state.dividerMargin / 2).attr("y2", t().state.padding + l + t().state.dividerMargin / 2).attr("class", "descr-divider"), p = x.node().getBBox(), o = Math.max(p.width, n.width);
22
+ return w.attr("x2", o + 3 * t().state.padding), e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", o + 2 * t().state.padding).attr("height", p.height + l + 2 * t().state.padding).attr("rx", t().state.radius), e;
23
+ }, "drawDescrState"), $ = /* @__PURE__ */ f((e, i, d) => {
24
+ const c = t().state.padding, n = 2 * t().state.padding, l = e.node().getBBox(), x = l.width, a = l.x, s = e.append("text").attr("x", 0).attr("y", t().state.titleShift).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), p = s.node().getBBox().width + n;
25
+ let o = Math.max(p, x);
26
+ o === x && (o = o + n);
27
+ let g;
28
+ const B = e.node().getBBox();
29
+ i.doc, g = a - c, p > x && (g = (x - o) / 2 + c), Math.abs(a - B.x) < c && p > x && (g = a - (p - x) / 2);
30
+ const m = 1 - t().state.textHeight;
31
+ return e.insert("rect", ":first-child").attr("x", g).attr("y", m).attr("class", d ? "alt-composit" : "composit").attr("width", o).attr(
32
+ "height",
33
+ B.height + t().state.textHeight + t().state.titleShift + 1
34
+ ).attr("rx", "0"), s.attr("x", g + c), p <= x && s.attr("x", a + (o - n) / 2 - p / 2 + c), e.insert("rect", ":first-child").attr("x", g).attr(
35
+ "y",
36
+ t().state.titleShift - t().state.textHeight - t().state.padding
37
+ ).attr("width", o).attr("height", t().state.textHeight * 3).attr("rx", t().state.radius), e.insert("rect", ":first-child").attr("x", g).attr(
38
+ "y",
39
+ t().state.titleShift - t().state.textHeight - t().state.padding
40
+ ).attr("width", o).attr("height", B.height + 3 + 2 * t().state.textHeight).attr("rx", t().state.radius), e;
41
+ }, "addTitleAndBox"), q = /* @__PURE__ */ f((e) => (e.append("circle").attr("class", "end-state-outer").attr("r", t().state.sizeUnit + t().state.miniPadding).attr(
42
+ "cx",
43
+ t().state.padding + t().state.sizeUnit + t().state.miniPadding
44
+ ).attr(
45
+ "cy",
46
+ t().state.padding + t().state.sizeUnit + t().state.miniPadding
47
+ ), e.append("circle").attr("class", "end-state-inner").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit + 2).attr("cy", t().state.padding + t().state.sizeUnit + 2)), "drawEndState"), Q = /* @__PURE__ */ f((e, i) => {
48
+ let d = t().state.forkWidth, c = t().state.forkHeight;
49
+ if (i.parentId) {
50
+ let n = d;
51
+ d = c, c = n;
52
+ }
53
+ return e.append("rect").style("stroke", "black").style("fill", "black").attr("width", d).attr("height", c).attr("x", t().state.padding).attr("y", t().state.padding);
54
+ }, "drawForkJoinState"), Z = /* @__PURE__ */ f((e, i, d, c) => {
55
+ let n = 0;
56
+ const l = c.append("text");
57
+ l.style("text-anchor", "start"), l.attr("class", "noteText");
58
+ let x = e.replace(/\r\n/g, "<br/>");
59
+ x = x.replace(/\n/g, "<br/>");
60
+ const a = x.split(z.lineBreakRegex);
61
+ let s = 1.25 * t().state.noteMargin;
62
+ for (const w of a) {
63
+ const p = w.trim();
64
+ if (p.length > 0) {
65
+ const o = l.append("tspan");
66
+ if (o.text(p), s === 0) {
67
+ const g = o.node().getBBox();
68
+ s += g.height;
69
+ }
70
+ n += s, o.attr("x", i + t().state.noteMargin), o.attr("y", d + n + 1.25 * t().state.noteMargin);
71
+ }
72
+ }
73
+ return { textWidth: l.node().getBBox().width, textHeight: n };
74
+ }, "_drawLongText"), j = /* @__PURE__ */ f((e, i) => {
75
+ i.attr("class", "state-note");
76
+ const d = i.append("rect").attr("x", 0).attr("y", t().state.padding), c = i.append("g"), { textWidth: n, textHeight: l } = Z(e, 0, 0, c);
77
+ return d.attr("height", l + 2 * t().state.noteMargin), d.attr("width", n + t().state.noteMargin * 2), d;
78
+ }, "drawNote"), L = /* @__PURE__ */ f(function(e, i) {
79
+ const d = i.id, c = {
80
+ id: d,
81
+ label: i.id,
82
+ width: 0,
83
+ height: 0
84
+ }, n = e.append("g").attr("id", d).attr("class", "stateGroup");
85
+ i.type === "start" && X(n), i.type === "end" && q(n), (i.type === "fork" || i.type === "join") && Q(n, i), i.type === "note" && j(i.note.text, n), i.type === "divider" && D(n), i.type === "default" && i.descriptions.length === 0 && Y(n, i), i.type === "default" && i.descriptions.length > 0 && I(n, i);
86
+ const l = n.node().getBBox();
87
+ return c.width = l.width + 2 * t().state.padding, c.height = l.height + 2 * t().state.padding, c;
88
+ }, "drawState"), A = 0, K = /* @__PURE__ */ f(function(e, i, d) {
89
+ const c = /* @__PURE__ */ f(function(s) {
90
+ switch (s) {
91
+ case N.relationType.AGGREGATION:
92
+ return "aggregation";
93
+ case N.relationType.EXTENSION:
94
+ return "extension";
95
+ case N.relationType.COMPOSITION:
96
+ return "composition";
97
+ case N.relationType.DEPENDENCY:
98
+ return "dependency";
99
+ }
100
+ }, "getRelationType");
101
+ i.points = i.points.filter((s) => !Number.isNaN(s.y));
102
+ const n = i.points, l = O().x(function(s) {
103
+ return s.x;
104
+ }).y(function(s) {
105
+ return s.y;
106
+ }).curve(J), x = e.append("path").attr("d", l(n)).attr("id", "edge" + A).attr("class", "transition");
107
+ let a = "";
108
+ if (t().state.arrowMarkerAbsolute && (a = _(true)), x.attr(
109
+ "marker-end",
110
+ "url(" + a + "#" + c(N.relationType.DEPENDENCY) + "End)"
111
+ ), d.title !== void 0) {
112
+ const s = e.append("g").attr("class", "stateLabel"), { x: w, y: p } = U.calcLabelPosition(i.points), o = z.getRows(d.title);
113
+ let g = 0;
114
+ const B = [];
115
+ let m = 0, v = 0;
116
+ for (let u = 0; u <= o.length; u++) {
117
+ const h = s.append("text").attr("text-anchor", "middle").text(o[u]).attr("x", w).attr("y", p + g), y = h.node().getBBox();
118
+ m = Math.max(m, y.width), v = Math.min(v, y.x), S.info(y.x, w, p + g), g === 0 && (g = h.node().getBBox().height, S.info("Title height", g, p)), B.push(h);
119
+ }
120
+ let E = g * o.length;
121
+ if (o.length > 1) {
122
+ const u = (o.length - 1) * g * 0.5;
123
+ B.forEach((h, y) => h.attr("y", p + y * g - u)), E = g * o.length;
124
+ }
125
+ const r = s.node().getBBox();
126
+ s.insert("rect", ":first-child").attr("class", "box").attr("x", w - m / 2 - t().state.padding / 2).attr("y", p - E / 2 - t().state.padding / 2 - 3.5).attr("width", m + t().state.padding).attr("height", E + t().state.padding), S.info(r);
127
+ }
128
+ A++;
129
+ }, "drawEdge"), b, T = {}, V = /* @__PURE__ */ f(function() {
130
+ }, "setConf"), tt = /* @__PURE__ */ f(function(e) {
131
+ e.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
132
+ }, "insertMarkers"), et = /* @__PURE__ */ f(function(e, i, d, c) {
133
+ b = t().state;
134
+ const n = t().securityLevel;
135
+ let l;
136
+ n === "sandbox" && (l = H("#i" + i));
137
+ const x = n === "sandbox" ? H(l.nodes()[0].contentDocument.body) : H("body"), a = n === "sandbox" ? l.nodes()[0].contentDocument : document;
138
+ S.debug("Rendering diagram " + e);
139
+ const s = x.select(`[id='${i}']`);
140
+ tt(s);
141
+ const w = c.db.getRootDoc();
142
+ G(w, s, void 0, false, x, a, c);
143
+ const p = b.padding, o = s.node().getBBox(), g = o.width + p * 2, B = o.height + p * 2, m = g * 1.75;
144
+ P(s, B, m, b.useMaxWidth), s.attr(
145
+ "viewBox",
146
+ `${o.x - b.padding} ${o.y - b.padding} ` + g + " " + B
147
+ );
148
+ }, "draw"), at = /* @__PURE__ */ f((e) => e ? e.length * b.fontSizeFactor : 1, "getLabelWidth"), G = /* @__PURE__ */ f((e, i, d, c, n, l, x) => {
149
+ const a = new C({
150
+ compound: true,
151
+ multigraph: true
152
+ });
153
+ let s, w = true;
154
+ for (s = 0; s < e.length; s++)
155
+ if (e[s].stmt === "relation") {
156
+ w = false;
157
+ break;
158
+ }
159
+ d ? a.setGraph({
160
+ rankdir: "LR",
161
+ multigraph: true,
162
+ compound: true,
163
+ // acyclicer: 'greedy',
164
+ ranker: "tight-tree",
165
+ ranksep: w ? 1 : b.edgeLengthFactor,
166
+ nodeSep: w ? 1 : 50,
167
+ isMultiGraph: true
168
+ // ranksep: 5,
169
+ // nodesep: 1
170
+ }) : a.setGraph({
171
+ rankdir: "TB",
172
+ multigraph: true,
173
+ compound: true,
174
+ // isCompound: true,
175
+ // acyclicer: 'greedy',
176
+ // ranker: 'longest-path'
177
+ ranksep: w ? 1 : b.edgeLengthFactor,
178
+ nodeSep: w ? 1 : 50,
179
+ ranker: "tight-tree",
180
+ // ranker: 'network-simplex'
181
+ isMultiGraph: true
182
+ }), a.setDefaultEdgeLabel(function() {
183
+ return {};
184
+ });
185
+ const p = x.db.getStates(), o = x.db.getRelations(), g = Object.keys(p);
186
+ for (const r of g) {
187
+ const u = p[r];
188
+ d && (u.parentId = d);
189
+ let h;
190
+ if (u.doc) {
191
+ let y = i.append("g").attr("id", u.id).attr("class", "stateGroup");
192
+ h = G(u.doc, y, u.id, !c, n, l, x);
193
+ {
194
+ y = $(y, u, c);
195
+ let k = y.node().getBBox();
196
+ h.width = k.width, h.height = k.height + b.padding / 2, T[u.id] = { y: b.compositTitleSize };
197
+ }
198
+ } else
199
+ h = L(i, u, a);
200
+ if (u.note) {
201
+ const y = {
202
+ descriptions: [],
203
+ id: u.id + "-note",
204
+ note: u.note,
205
+ type: "note"
206
+ }, k = L(i, y, a);
207
+ u.note.position === "left of" ? (a.setNode(h.id + "-note", k), a.setNode(h.id, h)) : (a.setNode(h.id, h), a.setNode(h.id + "-note", k)), a.setParent(h.id, h.id + "-group"), a.setParent(h.id + "-note", h.id + "-group");
208
+ } else
209
+ a.setNode(h.id, h);
210
+ }
211
+ S.debug("Count=", a.nodeCount(), a);
212
+ let B = 0;
213
+ o.forEach(function(r) {
214
+ B++, S.debug("Setting edge", r), a.setEdge(
215
+ r.id1,
216
+ r.id2,
217
+ {
218
+ relation: r,
219
+ width: at(r.title),
220
+ height: b.labelHeight * z.getRows(r.title).length,
221
+ labelpos: "c"
222
+ },
223
+ "id" + B
224
+ );
225
+ }), F(a), S.debug("Graph after layout", a.nodes());
226
+ const m = i.node();
227
+ a.nodes().forEach(function(r) {
228
+ r !== void 0 && a.node(r) !== void 0 ? (S.warn("Node " + r + ": " + JSON.stringify(a.node(r))), n.select("#" + m.id + " #" + r).attr(
229
+ "transform",
230
+ "translate(" + (a.node(r).x - a.node(r).width / 2) + "," + (a.node(r).y + (T[r] ? T[r].y : 0) - a.node(r).height / 2) + " )"
231
+ ), n.select("#" + m.id + " #" + r).attr("data-x-shift", a.node(r).x - a.node(r).width / 2), l.querySelectorAll("#" + m.id + " #" + r + " .divider").forEach((h) => {
232
+ const y = h.parentElement;
233
+ let k = 0, M = 0;
234
+ y && (y.parentElement && (k = y.parentElement.getBBox().width), M = parseInt(y.getAttribute("data-x-shift"), 10), Number.isNaN(M) && (M = 0)), h.setAttribute("x1", 0 - M + 8), h.setAttribute("x2", k - M - 8);
235
+ })) : S.debug("No Node " + r + ": " + JSON.stringify(a.node(r)));
236
+ });
237
+ let v = m.getBBox();
238
+ a.edges().forEach(function(r) {
239
+ r !== void 0 && a.edge(r) !== void 0 && (S.debug("Edge " + r.v + " -> " + r.w + ": " + JSON.stringify(a.edge(r))), K(i, a.edge(r), a.edge(r).relation));
240
+ }), v = m.getBBox();
241
+ const E = {
242
+ id: d || "root",
243
+ label: d || "root",
244
+ width: 0,
245
+ height: 0
246
+ };
247
+ return E.width = v.width + 2 * b.padding, E.height = v.height + 2 * b.padding, S.debug("Doc rendered", E, a), E;
248
+ }, "renderDoc"), it = {
249
+ setConf: V,
250
+ draw: et
251
+ }, ct = {
252
+ parser: W,
253
+ get db() {
254
+ return new N(1);
255
+ },
256
+ renderer: it,
257
+ styles: R,
258
+ init: /* @__PURE__ */ f((e) => {
259
+ e.state || (e.state = {}), e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute;
260
+ }, "init")
261
+ };
262
+ export {
263
+ ct as diagram
264
+ };
@@ -1,5 +1,5 @@
1
- import { s as a, b as t, a as r, S as s } from "./chunk-AEK57VVT-BAi7QtEw.js";
2
- import { _ as i } from "./mermaid-DCIbF0Rd.js";
1
+ import { s as a, b as t, a as r, S as s } from "./chunk-6OLS64BW-lmSfyWue.js";
2
+ import { _ as i } from "./mermaid-CRRCnedu.js";
3
3
  var _ = {
4
4
  parser: r,
5
5
  get db() {