@fibery/custom-app-text-editor 1.2.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 (105) hide show
  1. package/LICENSE +214 -0
  2. package/README.md +33 -0
  3. package/lib/abnfDiagram-VRR7QNED-BgjOQqEh.js +89 -0
  4. package/lib/arc-Dp0rqagO.js +82 -0
  5. package/lib/architecture-TIHT7OUA-DDwCCw0y.js +3 -0
  6. package/lib/architectureDiagram-ZJ3FMSHR-BucIluTN.js +4129 -0
  7. package/lib/array-CApNbSU9.js +6 -0
  8. package/lib/blockDiagram-677ZJIJ3-CWYuHThP.js +3157 -0
  9. package/lib/c4Diagram-LMCZKHZV-Cr3_W-xe.js +2982 -0
  10. package/lib/channel-Bb7a6w5c.js +5 -0
  11. package/lib/chunk-2Q5K7J3B-CINvUK-A.js +15 -0
  12. package/lib/chunk-32BRIVSS-b-BvyGz0.js +61 -0
  13. package/lib/chunk-52WLFC77-Cf8zEoqs.js +593 -0
  14. package/lib/chunk-5VM5RSS4-Dnx15xMv.js +5 -0
  15. package/lib/chunk-7BUUIJ7U-B018BbRy.js +82 -0
  16. package/lib/chunk-C7G6YPKG-CmOuVFlJ.js +67 -0
  17. package/lib/chunk-EX3LRPZG-LynZw14I.js +2042 -0
  18. package/lib/chunk-HOUHSVGY-Br7ZSMKe.js +275 -0
  19. package/lib/chunk-ICXQ74PX-VqT5WUTt.js +1330 -0
  20. package/lib/chunk-JWPE2WC7-Ch0jmUXM.js +8 -0
  21. package/lib/chunk-KEIR6QF5-RwFi50en.js +21456 -0
  22. package/lib/chunk-MOJQB5TN-rQ4AfTd9.js +490 -0
  23. package/lib/chunk-OGEWGWER-BvF6eV9Q.js +32 -0
  24. package/lib/chunk-PUDLZKDR-BW7SZvCB.js +4135 -0
  25. package/lib/chunk-Q4XR5HBZ-CRgGP3ez.js +1635 -0
  26. package/lib/chunk-RYQCIY6F-CHlASUpG.js +241 -0
  27. package/lib/chunk-V7JOEXUC-OY39ml6X.js +3357 -0
  28. package/lib/chunk-VR4S4FIN-Bk7IFdYB.js +26 -0
  29. package/lib/chunk-WYO6CB5R-MV-yOaop.js +3769 -0
  30. package/lib/chunk-XXDRQBXY-Djd1ChwJ.js +9 -0
  31. package/lib/chunk-Y2CYZVJY-QdJ4V9rh.js +12 -0
  32. package/lib/chunk-ZGVPDNZ5-l81xl1BI.js +3738 -0
  33. package/lib/classDiagram-OUVF2IWQ--wRzSvLt.js +30 -0
  34. package/lib/classDiagram-v2-EOCWNBFH-ChMCdPO-.js +30 -0
  35. package/lib/cose-bilkent-JH36ORCC-CyVZn5M3.js +2254 -0
  36. package/lib/custom-app-text-editor.css +2 -0
  37. package/lib/custom-app-text-editor.js +81102 -0
  38. package/lib/cynefin-VYW2F7L2-CMgnLl46.js +3 -0
  39. package/lib/cynefinDiagram-TSTJHNR4-988Y73wV.js +355 -0
  40. package/lib/cytoscape.esm-DMXbtFI-.js +18145 -0
  41. package/lib/dagre-Dmarb1s8.js +1699 -0
  42. package/lib/dagre-VKFMJZFB-Bf-pz2Lx.js +328 -0
  43. package/lib/defaultLocale-A87O3snN.js +198 -0
  44. package/lib/diagram-FQU43EPY-BT8WeVzc.js +432 -0
  45. package/lib/diagram-G47NLZAW-vZ2XG37l.js +527 -0
  46. package/lib/diagram-NH7WQ7WH-CH0IfHB0.js +134 -0
  47. package/lib/diagram-OA4YK3LP-BgwQcJfp.js +300 -0
  48. package/lib/diagram-WEI45ONY-Cd3sVPil.js +214 -0
  49. package/lib/dist-PGS6ynRO.js +59 -0
  50. package/lib/ebnfDiagram-CCIWWBDH-CwBFb2Fm.js +100 -0
  51. package/lib/erDiagram-Q63AITRT-BshRACvj.js +1727 -0
  52. package/lib/eventmodeling-45OFAUF4-BDhzj03B.js +3 -0
  53. package/lib/flowDiagram-23GEKE2U-C3zDgFvZ.js +16 -0
  54. package/lib/ganttDiagram-NO4QXBWP-BD5PiE8x.js +3073 -0
  55. package/lib/gitGraph-TEB2WS4Q-DJA_hE4G.js +3 -0
  56. package/lib/gitGraphDiagram-IHSO6WYX-BAhccBh3.js +733 -0
  57. package/lib/graphlib-DglfpsVp.js +1267 -0
  58. package/lib/index.browser-Dv9K8IAp.js +26 -0
  59. package/lib/info-DKCQHKI2-BD_vOCz6.js +3 -0
  60. package/lib/infoDiagram-FWYZ7A6U-CGZnf03G.js +20 -0
  61. package/lib/init-sjaVZO3f.js +13 -0
  62. package/lib/ishikawaDiagram-FXEZZL3T-PFfVM0NO.js +719 -0
  63. package/lib/journeyDiagram-5HDEW3XC-CRGz7dcx.js +884 -0
  64. package/lib/kanban-definition-HUTT4EX6-BBH4Yn5e.js +974 -0
  65. package/lib/line-CJQicKfr.js +34 -0
  66. package/lib/linear-B9Cv96-J.js +288 -0
  67. package/lib/map-C7KALUOH.js +241 -0
  68. package/lib/mermaid-parser.core-BupC9XGF.js +638 -0
  69. package/lib/mermaid-renderer-Cp0xusfR.js +2425 -0
  70. package/lib/mindmap-definition-LN4V7U3C-CWL1sg0K.js +978 -0
  71. package/lib/ordinal-CNQzPcrr.js +65 -0
  72. package/lib/packet-7NZHBO7P-CgBlALV1.js +3 -0
  73. package/lib/path-DVvH25eQ.js +84 -0
  74. package/lib/pegDiagram-2B236MQR-BKv8dTtv.js +94 -0
  75. package/lib/pie-RZYD4A2V-CryPC-P_.js +3 -0
  76. package/lib/pieDiagram-ENE6RG2P-CXeFg_cL.js +203 -0
  77. package/lib/quadrantDiagram-ABIIQ3AL-v_u3aC8Y.js +2001 -0
  78. package/lib/radar-I7S5WNFK-DgzJDRy3.js +3 -0
  79. package/lib/railroad-3IZDKUUU-DFp3mbpB.js +3 -0
  80. package/lib/railroad-abnf-AHOZXSZD-BRjidKH0.js +3 -0
  81. package/lib/railroad-ebnf-EBAXGLYW-PgrDWact.js +3 -0
  82. package/lib/railroad-peg-LSFZ7HO6-CMKir81Y.js +3 -0
  83. package/lib/railroadDiagram-RFXS5EU6-mEC9tVS-.js +76 -0
  84. package/lib/requirementDiagram-TGXJPOKE-BAEzI7V4.js +2223 -0
  85. package/lib/rolldown-runtime-DArdT4gl.js +23 -0
  86. package/lib/rough.esm-B2w_aYoc.js +1361 -0
  87. package/lib/sankeyDiagram-HTMAVEWB-Dbu-sl2E.js +972 -0
  88. package/lib/sequenceDiagram-DBY2YBRQ-DCuWmWHX.js +4156 -0
  89. package/lib/sizeCapture-X5ZJPWSS-BEIM84He.js +46 -0
  90. package/lib/src-DQbL46sB.js +2139 -0
  91. package/lib/src-DuuHKEe6.js +704 -0
  92. package/lib/stateDiagram-2N3HPSRC-fs9QmDMR.js +220 -0
  93. package/lib/stateDiagram-v2-6OUMAXLB-wWxYbttN.js +30 -0
  94. package/lib/swimlanes-5IMT3BWC-QaXUd9db.js +5069 -0
  95. package/lib/swimlanesDiagram-G3AALYLV-BtGToCzH.js +30 -0
  96. package/lib/timeline-definition-FHXFAJF6-CAsyJrsw.js +1069 -0
  97. package/lib/treeView-QDETBFTQ-DVp4aTZQ.js +3 -0
  98. package/lib/treemap-6X3UGDF4-BbBnHMHJ.js +3 -0
  99. package/lib/types.d.ts +44 -0
  100. package/lib/v4-CZv9Hsqq.js +33 -0
  101. package/lib/vennDiagram-L72KCM5P-C87u0gjr.js +1880 -0
  102. package/lib/wardley-OPB4EBWU-B-RXhnoN.js +3 -0
  103. package/lib/wardleyDiagram-EHGQE667-BxviBDl_.js +645 -0
  104. package/lib/xychartDiagram-FW5EYKEG-BQQhanuH.js +2098 -0
  105. package/package.json +29 -0
@@ -0,0 +1,328 @@
1
+ import { n as e } from "./chunk-Y2CYZVJY-QdJ4V9rh.js";
2
+ import { m as t } from "./src-DQbL46sB.js";
3
+ import { x as n } from "./chunk-WYO6CB5R-MV-yOaop.js";
4
+ import "./chunk-ICXQ74PX-VqT5WUTt.js";
5
+ import "./chunk-HOUHSVGY-Br7ZSMKe.js";
6
+ import "./chunk-Q4XR5HBZ-CRgGP3ez.js";
7
+ import "./chunk-7BUUIJ7U-B018BbRy.js";
8
+ import { n as r } from "./chunk-OGEWGWER-BvF6eV9Q.js";
9
+ import { t as i } from "./graphlib-DglfpsVp.js";
10
+ import { t as a } from "./dagre-Dmarb1s8.js";
11
+ import { a as o, i as s, n as c, o as l, r as u, t as d } from "./chunk-RYQCIY6F-CHlASUpG.js";
12
+ import "./chunk-C7G6YPKG-CmOuVFlJ.js";
13
+ import { a as f, c as p, i as m, l as h, n as g, t as _, u as v } from "./chunk-ZGVPDNZ5-l81xl1BI.js";
14
+ import { a as y, i as b, o as x, r as S, t as C } from "./chunk-52WLFC77-Cf8zEoqs.js";
15
+ //#region ../../node_modules/.pnpm/mermaid@11.16.0/node_modules/mermaid/dist/chunks/mermaid.core/dagre-VKFMJZFB.mjs
16
+ var w = /* @__PURE__ */ e((e, t, n) => Math.max(t, Math.min(n, e)), "clamp"), T = /* @__PURE__ */ e((e = "TB") => {
17
+ switch (e) {
18
+ case "BT": return "bottom";
19
+ case "LR": return "right";
20
+ case "RL": return "left";
21
+ default: return "top";
22
+ }
23
+ }, "getDefaultSelfLoopSide"), E = /* @__PURE__ */ e((e) => e === "flowchart" || e === "flowchart-v2" || e === "stateDiagram", "shouldMergeSelfLoopSegments"), D = /* @__PURE__ */ e((e, t, n, r, i) => {
24
+ let a = [], o = /* @__PURE__ */ new Set();
25
+ if (n.forEach(({ start: e, end: t }) => {
26
+ e !== r && o.add(e), t !== r && o.add(t);
27
+ }), o.forEach((t) => {
28
+ let n = e.node(t);
29
+ typeof n?.x == "number" && typeof n?.y == "number" && a.push(n);
30
+ }), a.length === 0 && n.forEach(({ edge: e }) => {
31
+ (e.points ?? []).forEach((e) => {
32
+ typeof e?.x == "number" && typeof e?.y == "number" && a.push(e);
33
+ });
34
+ }), a.length === 0) return T(i);
35
+ let s = a.reduce((e, t) => ({
36
+ x: e.x + t.x / a.length,
37
+ y: e.y + t.y / a.length
38
+ }), {
39
+ x: 0,
40
+ y: 0
41
+ }), c = s.x - t.x, l = s.y - t.y;
42
+ return Math.abs(c) > Math.abs(l) ? c > 0 ? "right" : "left" : Math.abs(l) > 0 ? l > 0 ? "bottom" : "top" : T(i);
43
+ }, "getSelfLoopSide"), O = /* @__PURE__ */ e((e, t = "top", n = 0, r = 0) => {
44
+ let i = e.x, a = e.y - n, o = e.width / 2, s = e.height / 2, c = Math.max(36, Math.min(100, e.width * .8)), l = w(Math.max(r, e.width * .35), 36, c), u = w(Math.min(e.width, e.height) * .45, 24, 48);
45
+ switch (t) {
46
+ case "bottom": {
47
+ let e = a + s;
48
+ return [
49
+ {
50
+ x: i - l / 2,
51
+ y: e
52
+ },
53
+ {
54
+ x: i - l / 2,
55
+ y: e + u
56
+ },
57
+ {
58
+ x: i + l / 2,
59
+ y: e + u
60
+ },
61
+ {
62
+ x: i + l / 2,
63
+ y: e
64
+ }
65
+ ];
66
+ }
67
+ case "right": {
68
+ let e = i + o;
69
+ return [
70
+ {
71
+ x: e,
72
+ y: a - l / 2
73
+ },
74
+ {
75
+ x: e + u,
76
+ y: a - l / 2
77
+ },
78
+ {
79
+ x: e + u,
80
+ y: a + l / 2
81
+ },
82
+ {
83
+ x: e,
84
+ y: a + l / 2
85
+ }
86
+ ];
87
+ }
88
+ case "left": {
89
+ let e = i - o;
90
+ return [
91
+ {
92
+ x: e,
93
+ y: a - l / 2
94
+ },
95
+ {
96
+ x: e - u,
97
+ y: a - l / 2
98
+ },
99
+ {
100
+ x: e - u,
101
+ y: a + l / 2
102
+ },
103
+ {
104
+ x: e,
105
+ y: a + l / 2
106
+ }
107
+ ];
108
+ }
109
+ default: {
110
+ let e = a - s;
111
+ return [
112
+ {
113
+ x: i - l / 2,
114
+ y: e
115
+ },
116
+ {
117
+ x: i - l / 2,
118
+ y: e - u
119
+ },
120
+ {
121
+ x: i + l / 2,
122
+ y: e - u
123
+ },
124
+ {
125
+ x: i + l / 2,
126
+ y: e
127
+ }
128
+ ];
129
+ }
130
+ }
131
+ }, "getSelfLoopPoints"), k = /* @__PURE__ */ e((e, t, n = "top", r = 0, i = {}) => {
132
+ let a = e.x, o = e.y - r, s = i.width ?? 0, c = i.height ?? 0;
133
+ switch (n) {
134
+ case "bottom": return {
135
+ x: a,
136
+ y: Math.max(...t.map((e) => e.y)) + c / 2 + 4
137
+ };
138
+ case "right": return {
139
+ x: Math.max(...t.map((e) => e.x)) + s / 2 + 4,
140
+ y: o
141
+ };
142
+ case "left": return {
143
+ x: Math.min(...t.map((e) => e.x)) - s / 2 - 4,
144
+ y: o
145
+ };
146
+ default: return {
147
+ x: a,
148
+ y: Math.min(...t.map((e) => e.y)) - c / 2 - 4
149
+ };
150
+ }
151
+ }, "getSelfLoopLabelPosition"), A = /* @__PURE__ */ e((e, t = 0, { mergeSelfLoops: n = !0 } = {}) => {
152
+ let r = /* @__PURE__ */ new Map(), i = [], a = e.graph()?.rankdir;
153
+ return e.edges().forEach((t) => {
154
+ let a = e.edge(t);
155
+ if (n && a.selfLoop) {
156
+ let e = a.selfLoop.id;
157
+ r.has(e) || r.set(e, []), r.get(e).push({
158
+ edge: a,
159
+ start: t.v,
160
+ end: t.w
161
+ });
162
+ } else i.push({
163
+ edge: a,
164
+ start: t.v,
165
+ end: t.w
166
+ });
167
+ }), r.forEach((n) => {
168
+ if (n.length !== 3) {
169
+ n.forEach((e) => i.push(e));
170
+ return;
171
+ }
172
+ n.sort((e, t) => e.edge.selfLoop.order - t.edge.selfLoop.order);
173
+ let [r, o, s] = n, c = r.edge.originalEdge ?? o.edge.originalEdge ?? s.edge.originalEdge ?? o.edge, l = e.node(c.start);
174
+ if (!l) {
175
+ n.forEach((e) => i.push(e));
176
+ return;
177
+ }
178
+ let u = {
179
+ width: o.edge.width,
180
+ height: o.edge.height
181
+ }, d = D(e, l, n, c.start, a), f = O(l, d, t, u.width ?? 0), p = k(l, f, d, t, u), m = {
182
+ ...o.edge,
183
+ ...c,
184
+ id: c.id,
185
+ points: f,
186
+ start: c.start,
187
+ end: c.end,
188
+ x: p.x,
189
+ y: p.y,
190
+ width: u.width,
191
+ height: u.height,
192
+ labelStyle: o.edge.labelStyle,
193
+ fromCluster: r.edge.fromCluster ?? o.edge.fromCluster ?? s.edge.fromCluster,
194
+ toCluster: r.edge.toCluster ?? o.edge.toCluster ?? s.edge.toCluster
195
+ };
196
+ delete m.selfLoop, delete m.originalEdge, i.push({
197
+ edge: m,
198
+ start: m.start,
199
+ end: m.end
200
+ });
201
+ }), i;
202
+ }, "getEdgesToRender"), j = /* @__PURE__ */ e(async (n, i, c, d, g, _) => {
203
+ t.warn("Graph in recursive render:XAX", l(i), g);
204
+ let y = i.graph().rankdir;
205
+ t.trace("Dir in recursive render - dir:", y);
206
+ let C = n.insert("g").attr("class", "root");
207
+ i.nodes() ? t.info("Recursive render XXX", i.nodes()) : t.info("No nodes found for", i), i.edges().length > 0 && t.info("Recursive edges", i.edge(i.edges()[0]));
208
+ let w = C.insert("g").attr("class", "clusters"), T = C.insert("g").attr("class", "edgePaths"), D = C.insert("g").attr("class", "edgeLabels"), O = C.insert("g").attr("class", "nodes"), k = E(c);
209
+ await Promise.all(i.nodes().map(async function(e) {
210
+ let n = i.node(e);
211
+ if (g !== void 0) {
212
+ let n = JSON.parse(JSON.stringify(g.clusterData));
213
+ t.trace("Setting data for parent cluster XXX\n Node.id = ", e, "\n data=", n.height, "\nParent cluster", g.height), i.setNode(g.id, n), i.parent(e) || (t.trace("Setting parent", e, g.id), i.setParent(e, g.id, n));
214
+ }
215
+ if (t.info("(Insert) Node XXX" + e + ": " + JSON.stringify(i.node(e))), n?.clusterNode) {
216
+ t.info("Cluster identified XBX", e, n.width, i.node(e));
217
+ let { ranksep: r, nodesep: a } = i.graph();
218
+ n.graph.setGraph({
219
+ ...n.graph.graph(),
220
+ ranksep: r + 25,
221
+ nodesep: a
222
+ });
223
+ let o = await j(O, n.graph, c, d, i.node(e), _), s = o.elem;
224
+ v(n, s), n.diff = o.diff || 0, t.info("New compound node after recursive render XAX", e, "width", n.width, "height", n.height), h(s, n);
225
+ } else i.children(e).length > 0 ? (t.trace("Cluster - the non recursive path XBX", e, n.id, n, n.width, "Graph:", i), t.trace(s(n.id, i)), u.set(n.id, {
226
+ id: s(n.id, i),
227
+ node: n
228
+ })) : (t.trace("Node - the non recursive path XAX", e, O, i.node(e), y), await f(O, i.node(e), {
229
+ config: _,
230
+ dir: y
231
+ }));
232
+ })), await (/* @__PURE__ */ e(async () => {
233
+ let e = i.edges().map(async function(e) {
234
+ let n = i.edge(e.v, e.w, e.name);
235
+ if (t.info("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(e)), t.info("Edge " + e.v + " -> " + e.w + ": ", e, " ", JSON.stringify(i.edge(e))), t.info("Fix", u, "ids:", e.v, e.w, "Translating: ", u.get(e.v), u.get(e.w)), k && n.selfLoop) {
236
+ if (n.selfLoop.order !== 1) return;
237
+ let e = n.id;
238
+ n.id = n.selfLoop.id, await b(D, n), n.id = e;
239
+ return;
240
+ }
241
+ await b(D, n);
242
+ });
243
+ await Promise.all(e);
244
+ }, "processEdges"))(), t.info("Graph before layout:", JSON.stringify(l(i))), t.info("############################################# XXX"), t.info("### Layout ### XXX"), t.info("############################################# XXX"), a(i), t.info("Graph after layout:", JSON.stringify(l(i)));
245
+ let M = 0, { subGraphTitleTotalMargin: N } = r(_);
246
+ await Promise.all(o(i).map(async function(e) {
247
+ let n = i.node(e);
248
+ if (t.info("Position XBX => " + e + ": (" + n.x, "," + n.y, ") width: ", n.width, " height: ", n.height), n?.clusterNode) n.y += N, t.info("A tainted cluster node XBX1", e, n.id, n.width, n.height, n.x, n.y, i.parent(e)), u.get(n.id).node = n, p(n);
249
+ else if (i.children(e).length > 0) {
250
+ t.info("A pure cluster node XBX1", e, n.id, n.x, n.y, n.width, n.height, i.parent(e)), n.height += N, i.node(n.parentId);
251
+ let r = n?.padding / 2 || 0, a = n?.labelBBox?.height || 0, o = a - r || 0;
252
+ t.debug("OffsetY", o, "labelHeight", a, "halfPadding", r), await m(w, n), u.get(n.id).node = n;
253
+ } else {
254
+ let e = i.node(n.parentId);
255
+ n.y += N / 2, t.info("A regular node XBX1 - using the padding", n.id, "parent", n.parentId, n.width, n.height, n.x, n.y, "offsetY", n.offsetY, "parent", e, e?.offsetY, n), p(n);
256
+ }
257
+ }));
258
+ let P = N / 2;
259
+ return A(i, P, { mergeSelfLoops: k }).forEach(function({ edge: e, start: n, end: r }) {
260
+ t.info("Edge " + n + " -> " + r + ": " + JSON.stringify(e), e), e.points.forEach((e) => e.y += P);
261
+ let a = i.node(n), o = i.node(r), s = S(T, e, u, c, a, o, d);
262
+ x(e, s);
263
+ }), i.nodes().forEach(function(e) {
264
+ let n = i.node(e);
265
+ t.info(e, n.type, n.diff), n.isGroup && (M = n.diff);
266
+ }), t.warn("Returning from recursive render XAX", C, M), {
267
+ elem: C,
268
+ diff: M
269
+ };
270
+ }, "recursiveRender"), M = /* @__PURE__ */ e(async (e, r) => {
271
+ let a = new i({
272
+ multigraph: !0,
273
+ compound: !0
274
+ }).setGraph({
275
+ rankdir: e.direction,
276
+ nodesep: e.config?.nodeSpacing || e.config?.flowchart?.nodeSpacing || e.nodeSpacing,
277
+ ranksep: e.config?.rankSpacing || e.config?.flowchart?.rankSpacing || e.rankSpacing,
278
+ marginx: 8,
279
+ marginy: 8
280
+ }).setDefaultEdgeLabel(function() {
281
+ return {};
282
+ }), o = r.select("g");
283
+ y(o, e.markers, e.type, e.diagramId), g(), C(), _(), c(), e.nodes.forEach((e) => {
284
+ a.setNode(e.id, { ...e }), e.parentId && a.setParent(e.id, e.parentId);
285
+ }), t.debug("Edges:", e.edges), e.edges.forEach((e) => {
286
+ if (e.start === e.end) {
287
+ let t = e.start, n = t + "---" + t + "---1", r = t + "---" + t + "---2", i = a.node(t);
288
+ a.setNode(n, {
289
+ domId: n,
290
+ id: n,
291
+ parentId: i.parentId,
292
+ labelStyle: "",
293
+ label: "",
294
+ padding: 0,
295
+ shape: "labelRect",
296
+ style: "",
297
+ width: 10,
298
+ height: 10
299
+ }), a.setParent(n, i.parentId), a.setNode(r, {
300
+ domId: r,
301
+ id: r,
302
+ parentId: i.parentId,
303
+ labelStyle: "",
304
+ padding: 0,
305
+ shape: "labelRect",
306
+ label: "",
307
+ style: "",
308
+ width: 10,
309
+ height: 10
310
+ }), a.setParent(r, i.parentId);
311
+ let o = structuredClone(e), s = structuredClone(e), c = structuredClone(e), l = structuredClone(e);
312
+ s.originalEdge = o, s.selfLoop = {
313
+ id: o.id,
314
+ order: 0
315
+ }, c.originalEdge = o, c.selfLoop = {
316
+ id: o.id,
317
+ order: 1
318
+ }, l.originalEdge = o, l.selfLoop = {
319
+ id: o.id,
320
+ order: 2
321
+ }, s.label = "", s.arrowTypeEnd = "none", s.endLabelLeft = "", s.endLabelRight = "", s.startLabelLeft = "", s.id = t + "-cyclic-special-1", c.startLabelRight = "", c.startLabelLeft = "", c.endLabelLeft = "", c.endLabelRight = "", c.arrowTypeStart = "none", c.arrowTypeEnd = "none", c.id = t + "-cyclic-special-mid", l.label = "", l.startLabelRight = "", l.startLabelLeft = "", l.arrowTypeStart = "none", i.isGroup && (s.fromCluster = t, l.toCluster = t), l.id = t + "-cyclic-special-2", l.arrowTypeStart = "none", a.setEdge(t, n, s, t + "-cyclic-special-0"), a.setEdge(n, r, c, t + "-cyclic-special-1"), a.setEdge(r, t, l, t + "-cyclic-special-2");
322
+ } else a.setEdge(e.start, e.end, { ...e }, e.id);
323
+ }), t.warn("Graph at first:", JSON.stringify(l(a))), d(a), t.warn("Graph after XAX:", JSON.stringify(l(a)));
324
+ let s = n();
325
+ await j(o, a, e.type, e.diagramId, void 0, s);
326
+ }, "render");
327
+ //#endregion
328
+ export { A as getEdgesToRender, M as render };
@@ -0,0 +1,198 @@
1
+ //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatDecimal.js
2
+ function e(e) {
3
+ return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
4
+ }
5
+ function t(e, t) {
6
+ if ((n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e")) < 0) return null;
7
+ var n, r = e.slice(0, n);
8
+ return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
9
+ }
10
+ //#endregion
11
+ //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/exponent.js
12
+ function n(e) {
13
+ return e = t(Math.abs(e)), e ? e[1] : NaN;
14
+ }
15
+ //#endregion
16
+ //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatGroup.js
17
+ function r(e, t) {
18
+ return function(n, r) {
19
+ for (var i = n.length, a = [], o = 0, s = e[0], c = 0; i > 0 && s > 0 && (c + s + 1 > r && (s = Math.max(1, r - c)), a.push(n.substring(i -= s, i + s)), !((c += s + 1) > r));) s = e[o = (o + 1) % e.length];
20
+ return a.reverse().join(t);
21
+ };
22
+ }
23
+ //#endregion
24
+ //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatNumerals.js
25
+ function i(e) {
26
+ return function(t) {
27
+ return t.replace(/[0-9]/g, function(t) {
28
+ return e[+t];
29
+ });
30
+ };
31
+ }
32
+ //#endregion
33
+ //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatSpecifier.js
34
+ var a = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
35
+ function o(e) {
36
+ if (!(t = a.exec(e))) throw Error("invalid format: " + e);
37
+ var t;
38
+ return new s({
39
+ fill: t[1],
40
+ align: t[2],
41
+ sign: t[3],
42
+ symbol: t[4],
43
+ zero: t[5],
44
+ width: t[6],
45
+ comma: t[7],
46
+ precision: t[8] && t[8].slice(1),
47
+ trim: t[9],
48
+ type: t[10]
49
+ });
50
+ }
51
+ o.prototype = s.prototype;
52
+ function s(e) {
53
+ this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + "";
54
+ }
55
+ s.prototype.toString = function() {
56
+ return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
57
+ };
58
+ //#endregion
59
+ //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatTrim.js
60
+ function c(e) {
61
+ out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
62
+ case ".":
63
+ r = i = n;
64
+ break;
65
+ case "0":
66
+ r === 0 && (r = n), i = n;
67
+ break;
68
+ default:
69
+ if (!+e[n]) break out;
70
+ r > 0 && (r = 0);
71
+ }
72
+ return r > 0 ? e.slice(0, r) + e.slice(i + 1) : e;
73
+ }
74
+ //#endregion
75
+ //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatPrefixAuto.js
76
+ var l;
77
+ function u(e, n) {
78
+ var r = t(e, n);
79
+ if (!r) return e + "";
80
+ var i = r[0], a = r[1], o = a - (l = Math.max(-8, Math.min(8, Math.floor(a / 3))) * 3) + 1, s = i.length;
81
+ return o === s ? i : o > s ? i + Array(o - s + 1).join("0") : o > 0 ? i.slice(0, o) + "." + i.slice(o) : "0." + Array(1 - o).join("0") + t(e, Math.max(0, n + o - 1))[0];
82
+ }
83
+ //#endregion
84
+ //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatRounded.js
85
+ function d(e, n) {
86
+ var r = t(e, n);
87
+ if (!r) return e + "";
88
+ var i = r[0], a = r[1];
89
+ return a < 0 ? "0." + Array(-a).join("0") + i : i.length > a + 1 ? i.slice(0, a + 1) + "." + i.slice(a + 1) : i + Array(a - i.length + 2).join("0");
90
+ }
91
+ //#endregion
92
+ //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatTypes.js
93
+ var f = {
94
+ "%": (e, t) => (e * 100).toFixed(t),
95
+ b: (e) => Math.round(e).toString(2),
96
+ c: (e) => e + "",
97
+ d: e,
98
+ e: (e, t) => e.toExponential(t),
99
+ f: (e, t) => e.toFixed(t),
100
+ g: (e, t) => e.toPrecision(t),
101
+ o: (e) => Math.round(e).toString(8),
102
+ p: (e, t) => d(e * 100, t),
103
+ r: d,
104
+ s: u,
105
+ X: (e) => Math.round(e).toString(16).toUpperCase(),
106
+ x: (e) => Math.round(e).toString(16)
107
+ };
108
+ //#endregion
109
+ //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/identity.js
110
+ function p(e) {
111
+ return e;
112
+ }
113
+ //#endregion
114
+ //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/locale.js
115
+ var m = Array.prototype.map, h = [
116
+ "y",
117
+ "z",
118
+ "a",
119
+ "f",
120
+ "p",
121
+ "n",
122
+ "µ",
123
+ "m",
124
+ "",
125
+ "k",
126
+ "M",
127
+ "G",
128
+ "T",
129
+ "P",
130
+ "E",
131
+ "Z",
132
+ "Y"
133
+ ];
134
+ function g(e) {
135
+ var t = e.grouping === void 0 || e.thousands === void 0 ? p : r(m.call(e.grouping, Number), e.thousands + ""), a = e.currency === void 0 ? "" : e.currency[0] + "", s = e.currency === void 0 ? "" : e.currency[1] + "", u = e.decimal === void 0 ? "." : e.decimal + "", d = e.numerals === void 0 ? p : i(m.call(e.numerals, String)), g = e.percent === void 0 ? "%" : e.percent + "", _ = e.minus === void 0 ? "−" : e.minus + "", v = e.nan === void 0 ? "NaN" : e.nan + "";
136
+ function y(e) {
137
+ e = o(e);
138
+ var n = e.fill, r = e.align, i = e.sign, p = e.symbol, m = e.zero, y = e.width, b = e.comma, x = e.precision, S = e.trim, C = e.type;
139
+ C === "n" ? (b = !0, C = "g") : f[C] || (x === void 0 && (x = 12), S = !0, C = "g"), (m || n === "0" && r === "=") && (m = !0, n = "0", r = "=");
140
+ var w = p === "$" ? a : p === "#" && /[boxX]/.test(C) ? "0" + C.toLowerCase() : "", T = p === "$" ? s : /[%p]/.test(C) ? g : "", E = f[C], D = /[defgprs%]/.test(C);
141
+ x = x === void 0 ? 6 : /[gprs]/.test(C) ? Math.max(1, Math.min(21, x)) : Math.max(0, Math.min(20, x));
142
+ function O(e) {
143
+ var a = w, o = T, s, f, p;
144
+ if (C === "c") o = E(e) + o, e = "";
145
+ else {
146
+ e = +e;
147
+ var g = e < 0 || 1 / e < 0;
148
+ if (e = isNaN(e) ? v : E(Math.abs(e), x), S && (e = c(e)), g && +e == 0 && i !== "+" && (g = !1), a = (g ? i === "(" ? i : _ : i === "-" || i === "(" ? "" : i) + a, o = (C === "s" ? h[8 + l / 3] : "") + o + (g && i === "(" ? ")" : ""), D) {
149
+ for (s = -1, f = e.length; ++s < f;) if (p = e.charCodeAt(s), 48 > p || p > 57) {
150
+ o = (p === 46 ? u + e.slice(s + 1) : e.slice(s)) + o, e = e.slice(0, s);
151
+ break;
152
+ }
153
+ }
154
+ }
155
+ b && !m && (e = t(e, Infinity));
156
+ var O = a.length + e.length + o.length, k = O < y ? Array(y - O + 1).join(n) : "";
157
+ switch (b && m && (e = t(k + e, k.length ? y - o.length : Infinity), k = ""), r) {
158
+ case "<":
159
+ e = a + e + o + k;
160
+ break;
161
+ case "=":
162
+ e = a + k + e + o;
163
+ break;
164
+ case "^":
165
+ e = k.slice(0, O = k.length >> 1) + a + e + o + k.slice(O);
166
+ break;
167
+ default: e = k + a + e + o;
168
+ }
169
+ return d(e);
170
+ }
171
+ return O.toString = function() {
172
+ return e + "";
173
+ }, O;
174
+ }
175
+ function b(e, t) {
176
+ var r = y((e = o(e), e.type = "f", e)), i = Math.max(-8, Math.min(8, Math.floor(n(t) / 3))) * 3, a = 10 ** -i, s = h[8 + i / 3];
177
+ return function(e) {
178
+ return r(a * e) + s;
179
+ };
180
+ }
181
+ return {
182
+ format: y,
183
+ formatPrefix: b
184
+ };
185
+ }
186
+ //#endregion
187
+ //#region ../../node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/defaultLocale.js
188
+ var _, v, y;
189
+ b({
190
+ thousands: ",",
191
+ grouping: [3],
192
+ currency: ["$", ""]
193
+ });
194
+ function b(e) {
195
+ return _ = g(e), v = _.format, y = _.formatPrefix, _;
196
+ }
197
+ //#endregion
198
+ export { n as i, y as n, o as r, v as t };