@kong-ui-public/documentation 0.7.2 → 0.7.4

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 (50) hide show
  1. package/dist/arc-BOwQG9_0-DleiJ5MN.js +86 -0
  2. package/dist/{blockDiagram-9f4a6865-IUliCiDO-CB0IBm1m.js → blockDiagram-6b2b5046-Nxmf6ECX-CjmiHCoc.js} +106 -106
  3. package/dist/{c4Diagram-ae766693-CraPSkgX-CsP6MA7_.js → c4Diagram-b947cdbb-Cqv3kxuJ-BXRu2bPz.js} +132 -133
  4. package/dist/{channel-BN6QTnj4-CfiMWXq0.js → channel-b8lMD3zZ-Ds1AntZz.js} +1 -1
  5. package/dist/{classDiagram-fb54d2a0-DXWl4-1y-CoIPJ9Tf.js → classDiagram-35230388-cNSawuF--DF1WKJvq.js} +7 -8
  6. package/dist/{classDiagram-v2-a2b738ad-CuRy1r-r-SMHLTRcJ.js → classDiagram-v2-412acd34-DL9yPzEL-1zjaSugS.js} +8 -8
  7. package/dist/{clone-DPlFlx1_-B6OhGku3.js → clone-DA9j_md9-DOEHuNxk.js} +1 -1
  8. package/dist/{createText-ca0c5216-BJXIFjUv-B9Xp5z9K.js → createText-423428c9-Bi8tqKOA-BAeSkls4.js} +1 -2
  9. package/dist/documentation.es.js +2 -2
  10. package/dist/documentation.umd.js +724 -995
  11. package/dist/{edges-066a5561-DyIiUH3I-B88mxBJO.js → edges-d417c7a0-CyiospL7-DxH-v6Cl.js} +27 -28
  12. package/dist/{erDiagram-09d1c15f-DaNxb97t-DI2sOo4s.js → erDiagram-0ea73325-BWWWgAmd-aPslvlbz.js} +38 -38
  13. package/dist/{flowDb-c1833063-4TreIkwu-DLOEDd2f.js → flowDb-d35e309a-BQRCRAKf-Cf6biv5M.js} +4 -4
  14. package/dist/{flowDiagram-b222e15a-Bz6kEL6X-B4McfssH.js → flowDiagram-d949d7c1-D_OK65PK-DS0CyGIC.js} +329 -337
  15. package/dist/{flowDiagram-v2-13329dc7-BSJVxEBD-CR0v6C6O.js → flowDiagram-v2-49332944-CYs4MQAb-C9m-G3JY.js} +5 -5
  16. package/dist/{flowchart-elk-definition-ae0efee6-D_SQlTEw-DHjq3NxL.js → flowchart-elk-definition-27cc417a-OqMBrUum-CbH3NCkB.js} +12750 -12752
  17. package/dist/{ganttDiagram-b62c793e-w82uNNex-OPrei_7k.js → ganttDiagram-5c869e3b-Cu9aCqHh-De0u-Oas.js} +477 -488
  18. package/dist/gitGraphDiagram-b9d81de9-DVB2N99Y-C2np-enA.js +1262 -0
  19. package/dist/go-BEtjQGEI-BEtjQGEI.js +7 -0
  20. package/dist/{graph-Bb1vku7A-CjMAyaMV.js → graph-Ctghcdhb-CqAdUKOZ.js} +3 -3
  21. package/dist/{index-01f381cb-DFAckdb4-DP_D7ZMM.js → index-8fae9850-CdUaE101-uMPVRleJ.js} +11 -11
  22. package/dist/{index-74HaIrFw.js → index-BRYBB2aM.js} +6920 -6981
  23. package/dist/{infoDiagram-94cd232f-iYUDXeae-DbxyZ1YG.js → infoDiagram-db7b18fc-MHPWI9K2-Cy6tzigE.js} +16 -16
  24. package/dist/{journeyDiagram-6625b456-D9SzlG49-D9WC6928.js → journeyDiagram-d5636530-O6dkdrZq-BghpQv6u.js} +42 -42
  25. package/dist/{latex-CoJDAuLL-lJGSmtOO.js → latex-BOFs-Cxs-XUibdaju.js} +1 -1
  26. package/dist/{layout-BXWpVE1y-Dpdx9MjN.js → layout-Bf4siL6f-B27qrAUf.js} +110 -110
  27. package/dist/{line-cygqshb4-ChLkD5zh.js → line-Bs4J8z8n-kq8RtDQA.js} +1 -1
  28. package/dist/{linear-c7VKFbmv-Bcl7PKrY.js → linear-DG5qhwMV-BSSd8kt2.js} +21 -21
  29. package/dist/{mindmap-definition-307c710a-Dtax51Qo-DiTPR9DS.js → mindmap-definition-377f8f1f-BJZNhhv8-Cinm-UDt.js} +6496 -6729
  30. package/dist/{pieDiagram-bb1d19e5-MIBQswLW-DwEeDM9B.js → pieDiagram-b0208e96-12B2qtCQ-Bl-9vJIA.js} +68 -68
  31. package/dist/{quadrantDiagram-c759a472-CUBvKLS1-BFYNBXmR.js → quadrantDiagram-0332be45-B77W50pM-bQiH7XpR.js} +2 -2
  32. package/dist/{requirementDiagram-87253d64-BZrSGm9j-BTMRMufk.js → requirementDiagram-bf7890df-BfPNYjQ5-CGF46ifn.js} +30 -30
  33. package/dist/{sankeyDiagram-707fac0f-BMrqHGsv-B27LQLYG.js → sankeyDiagram-0acdec17-D5aZuYoJ-DIWEEtuf.js} +22 -22
  34. package/dist/{sequenceDiagram-6894f283-CKZurmNK-kn3T54cJ.js → sequenceDiagram-c18d009d-DE6VyN7w-6UaAYk4p.js} +808 -841
  35. package/dist/{stateDiagram-5dee940d-uylU1OS0-DApYcfZ7.js → stateDiagram-43596fc0-CfGH1LmM-km5kjci0.js} +54 -54
  36. package/dist/{stateDiagram-v2-1992cada-JYJWGRv5-C-8aN2Zs.js → stateDiagram-v2-2ead4f9c-CvDoRhMn-CkUl-Lcu.js} +12 -12
  37. package/dist/style.css +1 -1
  38. package/dist/{styles-b83b31c9-BkcEKpp1-AMZ_2CDs.js → styles-6860f46c-CJplL-uW-BFTTeCMF.js} +19 -19
  39. package/dist/{styles-483fbfea-_Tntk7zw-BMvdfSW3.js → styles-7383a064-N1ljH9gq-D7Iipjtf.js} +137 -140
  40. package/dist/{styles-0784dbeb-CN_Kv1lZ-BqcZ7Gdy.js → styles-b2c874b6-CKJLyUE4-2C22cylE.js} +24 -24
  41. package/dist/{svgDrawCommon-5e1cfd1d--PZSQhO7-VrjnCid8.js → svgDrawCommon-0ee1b4e9-Dc25Bs_w-QhIkJ1Xp.js} +4 -4
  42. package/dist/{timeline-definition-bf702344-DVMY6q6d-BYAHqkvN.js → timeline-definition-d977decf-8C3XuDC--DAD2knZY.js} +2 -2
  43. package/dist/{vue-Djs4WzmL-BDWKKO52.js → vue-DoU_Nr9K-Cj2gXb1y.js} +2 -2
  44. package/dist/{vue-html-CdlOxrsR-C0P0LsFn.js → vue-html-iC7i5f9n-Cfh5ktA3.js} +1 -1
  45. package/dist/{xychartDiagram-f11f50a6-CfFXg3YO-BJuC_16u.js → xychartDiagram-e50adddc-BRQAut2i-DBHY1QQ6.js} +22 -22
  46. package/package.json +5 -5
  47. package/dist/arc-Db-G4La6-9oHI8HT5.js +0 -86
  48. package/dist/gitGraphDiagram-942e62fe-DN0JwANo-r5Axb-YL.js +0 -1264
  49. package/dist/go-DYNyFS5n-DYNyFS5n.js +0 -7
  50. package/dist/katex-BQC_klMa-CaeA20wX.js +0 -11636
@@ -0,0 +1,86 @@
1
+ import { q as on, P as _ } from "./path-Crsf9Nsj-SiSjwXsf.js";
2
+ import { aO as an, aP as F, aQ as S, aR as rn, aS as l, aN as un, aT as X, aU as q, aV as cn, aW as y, aX as sn, aY as yn, aZ as en } from "./index-BRYBB2aM.js";
3
+ function fn(o) {
4
+ return o.innerRadius;
5
+ }
6
+ function ln(o) {
7
+ return o.outerRadius;
8
+ }
9
+ function mn(o) {
10
+ return o.startAngle;
11
+ }
12
+ function pn(o) {
13
+ return o.endAngle;
14
+ }
15
+ function gn(o) {
16
+ return o && o.padAngle;
17
+ }
18
+ function xn(o, v, z, W, T, d, b, a) {
19
+ var D = z - o, i = W - v, n = b - T, p = a - d, r = p * D - n * i;
20
+ if (!(r * r < l))
21
+ return r = (n * (v - d) - p * (o - T)) / r, [o + r * D, v + r * i];
22
+ }
23
+ function N(o, v, z, W, T, d, b) {
24
+ var a = o - z, D = v - W, i = (b ? d : -d) / X(a * a + D * D), n = i * D, p = -i * a, r = o + n, s = v + p, e = z + n, f = W + p, w = (r + e) / 2, u = (s + f) / 2, g = e - r, m = f - s, A = g * g + m * m, R = T - d, B = r * f - e * s, E = (m < 0 ? -1 : 1) * X(en(0, R * R * A - B * B)), G = (B * m - g * E) / A, K = (-B * g - m * E) / A, V = (B * m + g * E) / A, x = (-B * g + m * E) / A, h = G - w, t = K - u, c = V - w, C = x - u;
25
+ return h * h + t * t > c * c + C * C && (G = V, K = x), {
26
+ cx: G,
27
+ cy: K,
28
+ x01: -n,
29
+ y01: -p,
30
+ x11: G * (T / R - 1),
31
+ y11: K * (T / R - 1)
32
+ };
33
+ }
34
+ function Tn() {
35
+ var o = fn, v = ln, z = _(0), W = null, T = mn, d = pn, b = gn, a = null, D = on(i);
36
+ function i() {
37
+ var n, p, r = +o.apply(this, arguments), s = +v.apply(this, arguments), e = T.apply(this, arguments) - rn, f = d.apply(this, arguments) - rn, w = cn(f - e), u = f > e;
38
+ if (a || (a = n = D()), s < r && (p = s, s = r, r = p), !(s > l))
39
+ a.moveTo(0, 0);
40
+ else if (w > un - l)
41
+ a.moveTo(s * F(e), s * S(e)), a.arc(0, 0, s, e, f, !u), r > l && (a.moveTo(r * F(f), r * S(f)), a.arc(0, 0, r, f, e, u));
42
+ else {
43
+ var g = e, m = f, A = e, R = f, B = w, E = w, G = b.apply(this, arguments) / 2, K = G > l && (W ? +W.apply(this, arguments) : X(r * r + s * s)), V = q(cn(s - r) / 2, +z.apply(this, arguments)), x = V, h = V, t, c;
44
+ if (K > l) {
45
+ var C = sn(K / r * S(G)), Y = sn(K / s * S(G));
46
+ (B -= C * 2) > l ? (C *= u ? 1 : -1, A += C, R -= C) : (B = 0, A = R = (e + f) / 2), (E -= Y * 2) > l ? (Y *= u ? 1 : -1, g += Y, m -= Y) : (E = 0, g = m = (e + f) / 2);
47
+ }
48
+ var I = s * F(g), P = s * S(g), Z = r * F(R), $ = r * S(R);
49
+ if (V > l) {
50
+ var j = s * F(m), k = s * S(m), Q = r * F(A), U = r * S(A), O;
51
+ if (w < an)
52
+ if (O = xn(I, P, Q, U, j, k, Z, $)) {
53
+ var L = I - O[0], M = P - O[1], H = j - O[0], J = k - O[1], nn = 1 / S(yn((L * H + M * J) / (X(L * L + M * M) * X(H * H + J * J))) / 2), tn = X(O[0] * O[0] + O[1] * O[1]);
54
+ x = q(V, (r - tn) / (nn - 1)), h = q(V, (s - tn) / (nn + 1));
55
+ } else
56
+ x = h = 0;
57
+ }
58
+ E > l ? h > l ? (t = N(Q, U, I, P, s, h, u), c = N(j, k, Z, $, s, h, u), a.moveTo(t.cx + t.x01, t.cy + t.y01), h < V ? a.arc(t.cx, t.cy, h, y(t.y01, t.x01), y(c.y01, c.x01), !u) : (a.arc(t.cx, t.cy, h, y(t.y01, t.x01), y(t.y11, t.x11), !u), a.arc(0, 0, s, y(t.cy + t.y11, t.cx + t.x11), y(c.cy + c.y11, c.cx + c.x11), !u), a.arc(c.cx, c.cy, h, y(c.y11, c.x11), y(c.y01, c.x01), !u))) : (a.moveTo(I, P), a.arc(0, 0, s, g, m, !u)) : a.moveTo(I, P), !(r > l) || !(B > l) ? a.lineTo(Z, $) : x > l ? (t = N(Z, $, j, k, r, -x, u), c = N(I, P, Q, U, r, -x, u), a.lineTo(t.cx + t.x01, t.cy + t.y01), x < V ? a.arc(t.cx, t.cy, x, y(t.y01, t.x01), y(c.y01, c.x01), !u) : (a.arc(t.cx, t.cy, x, y(t.y01, t.x01), y(t.y11, t.x11), !u), a.arc(0, 0, r, y(t.cy + t.y11, t.cx + t.x11), y(c.cy + c.y11, c.cx + c.x11), u), a.arc(c.cx, c.cy, x, y(c.y11, c.x11), y(c.y01, c.x01), !u))) : a.arc(0, 0, r, R, A, u);
59
+ }
60
+ if (a.closePath(), n)
61
+ return a = null, n + "" || null;
62
+ }
63
+ return i.centroid = function() {
64
+ var n = (+o.apply(this, arguments) + +v.apply(this, arguments)) / 2, p = (+T.apply(this, arguments) + +d.apply(this, arguments)) / 2 - an / 2;
65
+ return [F(p) * n, S(p) * n];
66
+ }, i.innerRadius = function(n) {
67
+ return arguments.length ? (o = typeof n == "function" ? n : _(+n), i) : o;
68
+ }, i.outerRadius = function(n) {
69
+ return arguments.length ? (v = typeof n == "function" ? n : _(+n), i) : v;
70
+ }, i.cornerRadius = function(n) {
71
+ return arguments.length ? (z = typeof n == "function" ? n : _(+n), i) : z;
72
+ }, i.padRadius = function(n) {
73
+ return arguments.length ? (W = n == null ? null : typeof n == "function" ? n : _(+n), i) : W;
74
+ }, i.startAngle = function(n) {
75
+ return arguments.length ? (T = typeof n == "function" ? n : _(+n), i) : T;
76
+ }, i.endAngle = function(n) {
77
+ return arguments.length ? (d = typeof n == "function" ? n : _(+n), i) : d;
78
+ }, i.padAngle = function(n) {
79
+ return arguments.length ? (b = typeof n == "function" ? n : _(+n), i) : b;
80
+ }, i.context = function(n) {
81
+ return arguments.length ? (a = n ?? null, i) : a;
82
+ }, i;
83
+ }
84
+ export {
85
+ Tn as v
86
+ };
@@ -1,10 +1,10 @@
1
- import { c as ge, b0 as ie, h as q, i as me, l as L, A as _e, aj as ke, j as Ee, o as De } from "./index-74HaIrFw.js";
2
- import { a as we } from "./clone-DPlFlx1_-B6OhGku3.js";
3
- import { h as ve, u as Ne, d as $e, g as Te, o as de, f as Oe } from "./edges-066a5561-DyIiUH3I-B88mxBJO.js";
4
- import { Y as Ie } from "./graph-Bb1vku7A-CjMAyaMV.js";
5
- import { h as Ae } from "./ordinal-MUacOSdK-B1MUT0BL.js";
6
- import { t as Ce } from "./channel-BN6QTnj4-CfiMWXq0.js";
7
- import { r as ze } from "./Tableau10-GLA_9iAD-BMurskAd.js";
1
+ import { c as fe, a$ as ie, h as q, i as me, l as L, z as _e, ai as ke, o as Ee } from "./index-BRYBB2aM.js";
2
+ import { a as De } from "./clone-DA9j_md9-DOEHuNxk.js";
3
+ import { h as we, u as ve, d as Ne, g as $e, o as ge, f as Te } from "./edges-d417c7a0-CyiospL7-DxH-v6Cl.js";
4
+ import { Y as Oe } from "./graph-Ctghcdhb-CqAdUKOZ.js";
5
+ import { h as Ie } from "./ordinal-MUacOSdK-B1MUT0BL.js";
6
+ import { t as Ae } from "./channel-b8lMD3zZ-Ds1AntZz.js";
7
+ import { r as Ce } from "./Tableau10-GLA_9iAD-BMurskAd.js";
8
8
  var le, ae, ee = function() {
9
9
  var e = function(m, i, r, o) {
10
10
  for (r = r || {}, o = m.length; o--; r[m[o]] = i)
@@ -14,20 +14,20 @@ var le, ae, ee = function() {
14
14
  trace: function() {
15
15
  },
16
16
  yy: {},
17
- symbols_: { error: 2, spaceLines: 3, SPACELINE: 4, NL: 5, separator: 6, SPACE: 7, EOF: 8, start: 9, BLOCK_DIAGRAM_KEY: 10, document: 11, stop: 12, statement: 13, link: 14, LINK: 15, START_LINK: 16, LINK_LABEL: 17, STR: 18, nodeStatement: 19, columnsStatement: 20, SPACE_BLOCK: 21, blockStatement: 22, classDefStatement: 23, cssClassStatement: 24, styleStatement: 25, node: 26, SIZE: 27, COLUMNS: 28, "id-block": 29, end: 30, block: 31, NODE_ID: 32, nodeShapeNLabel: 33, dirList: 34, DIR: 35, NODE_DSTART: 36, NODE_DEND: 37, BLOCK_ARROW_START: 38, BLOCK_ARROW_END: 39, classDef: 40, CLASSDEF_ID: 41, CLASSDEF_STYLEOPTS: 42, DEFAULT: 43, class: 44, CLASSENTITY_IDS: 45, STYLECLASS: 46, style: 47, STYLE_ENTITY_IDS: 48, STYLE_DEFINITION_DATA: 49, $accept: 0, $end: 1 },
17
+ symbols_: { error: 2, spaceLines: 3, SPACELINE: 4, NL: 5, seperator: 6, SPACE: 7, EOF: 8, start: 9, BLOCK_DIAGRAM_KEY: 10, document: 11, stop: 12, statement: 13, link: 14, LINK: 15, START_LINK: 16, LINK_LABEL: 17, STR: 18, nodeStatement: 19, columnsStatement: 20, SPACE_BLOCK: 21, blockStatement: 22, classDefStatement: 23, cssClassStatement: 24, styleStatement: 25, node: 26, SIZE: 27, COLUMNS: 28, "id-block": 29, end: 30, block: 31, NODE_ID: 32, nodeShapeNLabel: 33, dirList: 34, DIR: 35, NODE_DSTART: 36, NODE_DEND: 37, BLOCK_ARROW_START: 38, BLOCK_ARROW_END: 39, classDef: 40, CLASSDEF_ID: 41, CLASSDEF_STYLEOPTS: 42, DEFAULT: 43, class: 44, CLASSENTITY_IDS: 45, STYLECLASS: 46, style: 47, STYLE_ENTITY_IDS: 48, STYLE_DEFINITION_DATA: 49, $accept: 0, $end: 1 },
18
18
  terminals_: { 2: "error", 4: "SPACELINE", 5: "NL", 7: "SPACE", 8: "EOF", 10: "BLOCK_DIAGRAM_KEY", 15: "LINK", 16: "START_LINK", 17: "LINK_LABEL", 18: "STR", 21: "SPACE_BLOCK", 27: "SIZE", 28: "COLUMNS", 29: "id-block", 30: "end", 31: "block", 32: "NODE_ID", 35: "DIR", 36: "NODE_DSTART", 37: "NODE_DEND", 38: "BLOCK_ARROW_START", 39: "BLOCK_ARROW_END", 40: "classDef", 41: "CLASSDEF_ID", 42: "CLASSDEF_STYLEOPTS", 43: "DEFAULT", 44: "class", 45: "CLASSENTITY_IDS", 46: "STYLECLASS", 47: "style", 48: "STYLE_ENTITY_IDS", 49: "STYLE_DEFINITION_DATA" },
19
19
  productions_: [0, [3, 1], [3, 2], [3, 2], [6, 1], [6, 1], [6, 1], [9, 3], [12, 1], [12, 1], [12, 2], [12, 2], [11, 1], [11, 2], [14, 1], [14, 4], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [19, 3], [19, 2], [19, 1], [20, 1], [22, 4], [22, 3], [26, 1], [26, 2], [34, 1], [34, 2], [33, 3], [33, 4], [23, 3], [23, 3], [24, 3], [25, 3]],
20
20
  performAction: function(m, i, r, o, p, t, u) {
21
21
  var s = t.length - 1;
22
22
  switch (p) {
23
23
  case 4:
24
- o.getLogger().debug("Rule: separator (NL) ");
24
+ o.getLogger().debug("Rule: seperator (NL) ");
25
25
  break;
26
26
  case 5:
27
- o.getLogger().debug("Rule: separator (Space) ");
27
+ o.getLogger().debug("Rule: seperator (Space) ");
28
28
  break;
29
29
  case 6:
30
- o.getLogger().debug("Rule: separator (EOF) ");
30
+ o.getLogger().debug("Rule: seperator (EOF) ");
31
31
  break;
32
32
  case 7:
33
33
  o.getLogger().debug("Rule: hierarchy: ", t[s - 1]), o.setHierarchy(t[s - 1]);
@@ -87,10 +87,10 @@ var le, ae, ee = function() {
87
87
  this.$ = { id: C, type: "composite", label: "", children: t[s - 1] };
88
88
  break;
89
89
  case 29:
90
- o.getLogger().debug("Rule: node (NODE_ID separator): ", t[s]), this.$ = { id: t[s] };
90
+ o.getLogger().debug("Rule: node (NODE_ID seperator): ", t[s]), this.$ = { id: t[s] };
91
91
  break;
92
92
  case 30:
93
- o.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", t[s - 1], t[s]), this.$ = { id: t[s - 1], label: t[s].label, typeStr: t[s].typeStr, directions: t[s].directions };
93
+ o.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel seperator): ", t[s - 1], t[s]), this.$ = { id: t[s - 1], label: t[s].label, typeStr: t[s].typeStr, directions: t[s].directions };
94
94
  break;
95
95
  case 31:
96
96
  o.getLogger().debug("Rule: dirList: ", t[s]), this.$ = [t[s]];
@@ -133,14 +133,14 @@ var le, ae, ee = function() {
133
133
  E.setInput(m, Y.yy), Y.yy.lexer = E, Y.yy.parser = this, typeof E.yylloc > "u" && (E.yylloc = {});
134
134
  var V = E.yylloc;
135
135
  t.push(V);
136
- var Se = E.options && E.options.ranges;
136
+ var Le = E.options && E.options.ranges;
137
137
  typeof Y.yy.parseError == "function" ? this.parseError = Y.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
138
- function fe() {
138
+ function Se() {
139
139
  var R;
140
140
  return R = o.pop() || E.lex() || C, typeof R != "number" && (R instanceof Array && (o = R, R = o.pop()), R = i.symbols_[R] || R), R;
141
141
  }
142
142
  for (var N, P, I, Z, K = {}, j, z, oe, H; ; ) {
143
- if (P = r[r.length - 1], this.defaultActions[P] ? I = this.defaultActions[P] : ((N === null || typeof N > "u") && (N = fe()), I = u[P] && u[P][N]), typeof I > "u" || !I.length || !I[0]) {
143
+ if (P = r[r.length - 1], this.defaultActions[P] ? I = this.defaultActions[P] : ((N === null || typeof N > "u") && (N = Se()), I = u[P] && u[P][N]), typeof I > "u" || !I.length || !I[0]) {
144
144
  var Q = "";
145
145
  H = [];
146
146
  for (j in u[P])
@@ -167,7 +167,7 @@ Expecting ` + H.join(", ") + ", got '" + (this.terminals_[N] || N) + "'" : Q = "
167
167
  last_line: t[t.length - 1].last_line,
168
168
  first_column: t[t.length - (z || 1)].first_column,
169
169
  last_column: t[t.length - 1].last_column
170
- }, Se && (K._$.range = [
170
+ }, Le && (K._$.range = [
171
171
  t[t.length - (z || 1)].range[0],
172
172
  t[t.length - 1].range[1]
173
173
  ]), Z = this.performAction.apply(K, [
@@ -602,25 +602,25 @@ Expecting ` + H.join(", ") + ", got '" + (this.terminals_[N] || N) + "'" : Q = "
602
602
  return w.prototype = D, D.Parser = w, new w();
603
603
  }();
604
604
  ee.parser = ee;
605
- const Re = ee;
605
+ const ze = ee;
606
606
  let $ = {}, se = [], M = {};
607
- const ce = "color", he = "fill", Be = "bgFill", ye = ",", Fe = ge();
607
+ const ce = "color", he = "fill", Re = "bgFill", de = ",";
608
608
  let W = {};
609
- const Ye = (e) => Ee.sanitizeText(e, Fe), Pe = function(e, l = "") {
609
+ const Be = function(e, l = "") {
610
610
  W[e] === void 0 && (W[e] = { id: e, styles: [], textStyles: [] });
611
611
  const h = W[e];
612
- l != null && l.split(ye).forEach((c) => {
612
+ l != null && l.split(de).forEach((c) => {
613
613
  const n = c.replace(/([^;]*);/, "$1").trim();
614
614
  if (c.match(ce)) {
615
- const g = n.replace(he, Be).replace(ce, he);
615
+ const g = n.replace(he, Re).replace(ce, he);
616
616
  h.textStyles.push(g);
617
617
  }
618
618
  h.styles.push(n);
619
619
  });
620
- }, Ke = function(e, l = "") {
620
+ }, Fe = function(e, l = "") {
621
621
  const h = $[e];
622
- l != null && (h.styles = l.split(ye));
623
- }, Xe = function(e, l) {
622
+ l != null && (h.styles = l.split(de));
623
+ }, Ye = function(e, l) {
624
624
  e.split(",").forEach(function(h) {
625
625
  let c = $[h];
626
626
  if (c === void 0) {
@@ -629,19 +629,19 @@ const Ye = (e) => Ee.sanitizeText(e, Fe), Pe = function(e, l = "") {
629
629
  }
630
630
  c.classes || (c.classes = []), c.classes.push(l);
631
631
  });
632
- }, pe = (e, l) => {
632
+ }, ye = (e, l) => {
633
633
  const h = e.flat(), c = [];
634
634
  for (const n of h) {
635
- if (n.label && (n.label = Ye(n.label)), n.type === "classDef") {
636
- Pe(n.id, n.css);
635
+ if (n.type === "classDef") {
636
+ Be(n.id, n.css);
637
637
  continue;
638
638
  }
639
639
  if (n.type === "applyClass") {
640
- Xe(n.id, (n == null ? void 0 : n.styleClass) || "");
640
+ Ye(n.id, (n == null ? void 0 : n.styleClass) || "");
641
641
  continue;
642
642
  }
643
643
  if (n.type === "applyStyles") {
644
- n != null && n.stylesStr && Ke(n.id, n == null ? void 0 : n.stylesStr);
644
+ n != null && n.stylesStr && Fe(n.id, n == null ? void 0 : n.stylesStr);
645
645
  continue;
646
646
  }
647
647
  if (n.type === "column-setting")
@@ -651,10 +651,10 @@ const Ye = (e) => Ee.sanitizeText(e, Fe), Pe = function(e, l = "") {
651
651
  else {
652
652
  n.label || (n.type === "composite" ? n.label = "" : n.label = n.id);
653
653
  const g = !$[n.id];
654
- if (g ? $[n.id] = n : (n.type !== "na" && ($[n.id].type = n.type), n.label !== n.id && ($[n.id].label = n.label)), n.children && pe(n.children, n), n.type === "space") {
654
+ if (g ? $[n.id] = n : (n.type !== "na" && ($[n.id].type = n.type), n.label !== n.id && ($[n.id].label = n.label)), n.children && ye(n.children, n), n.type === "space") {
655
655
  const a = n.width || 1;
656
656
  for (let y = 0; y < a; y++) {
657
- const b = we(n);
657
+ const b = De(n);
658
658
  b.id = b.id + "-" + y, $[b.id] = b, c.push(b);
659
659
  }
660
660
  } else
@@ -664,10 +664,10 @@ const Ye = (e) => Ee.sanitizeText(e, Fe), Pe = function(e, l = "") {
664
664
  l.children = c;
665
665
  };
666
666
  let re = [], U = { id: "root", type: "composite", children: [], columns: -1 };
667
- const Me = () => {
667
+ const Pe = () => {
668
668
  L.debug("Clear called"), _e(), U = { id: "root", type: "composite", children: [], columns: -1 }, $ = { root: U }, re = [], W = {}, se = [], M = {};
669
669
  };
670
- function We(e) {
670
+ function Ke(e) {
671
671
  switch (L.debug("typeStr2Type", e), e) {
672
672
  case "[]":
673
673
  return "square";
@@ -703,7 +703,7 @@ function We(e) {
703
703
  return "na";
704
704
  }
705
705
  }
706
- function Ue(e) {
706
+ function Xe(e) {
707
707
  switch (L.debug("typeStr2Type", e), e) {
708
708
  case "==":
709
709
  return "thick";
@@ -711,7 +711,7 @@ function Ue(e) {
711
711
  return "normal";
712
712
  }
713
713
  }
714
- function je(e) {
714
+ function Me(e) {
715
715
  switch (e.trim()) {
716
716
  case "--x":
717
717
  return "arrow_cross";
@@ -722,35 +722,35 @@ function je(e) {
722
722
  }
723
723
  }
724
724
  let ue = 0;
725
- const He = () => (ue++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + ue), qe = (e) => {
726
- U.children = e, pe(e, U), re = U.children;
727
- }, Ge = (e) => {
725
+ const We = () => (ue++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + ue), Ue = (e) => {
726
+ U.children = e, ye(e, U), re = U.children;
727
+ }, je = (e) => {
728
728
  const l = $[e];
729
729
  return l ? l.columns ? l.columns : l.children ? l.children.length : -1 : -1;
730
- }, Je = () => [...Object.values($)], Ve = () => re || [], Ze = () => se, Qe = (e) => $[e], et = (e) => {
730
+ }, He = () => [...Object.values($)], qe = () => re || [], Ge = () => se, Je = (e) => $[e], Ve = (e) => {
731
731
  $[e.id] = e;
732
- }, tt = () => console, it = function() {
732
+ }, Ze = () => console, Qe = function() {
733
733
  return W;
734
- }, st = {
734
+ }, et = {
735
735
  getConfig: () => ie().block,
736
- typeStr2Type: We,
737
- edgeTypeStr2Type: Ue,
738
- edgeStrToEdgeData: je,
739
- getLogger: tt,
740
- getBlocksFlat: Je,
741
- getBlocks: Ve,
742
- getEdges: Ze,
743
- setHierarchy: qe,
744
- getBlock: Qe,
745
- setBlock: et,
746
- getColumns: Ge,
747
- getClasses: it,
748
- clear: Me,
749
- generateId: He
750
- }, rt = st, G = (e, l) => {
751
- const h = Ce, c = h(e, "r"), n = h(e, "g"), g = h(e, "b");
736
+ typeStr2Type: Ke,
737
+ edgeTypeStr2Type: Xe,
738
+ edgeStrToEdgeData: Me,
739
+ getLogger: Ze,
740
+ getBlocksFlat: He,
741
+ getBlocks: qe,
742
+ getEdges: Ge,
743
+ setHierarchy: Ue,
744
+ getBlock: Je,
745
+ setBlock: Ve,
746
+ getColumns: je,
747
+ getClasses: Qe,
748
+ clear: Pe,
749
+ generateId: We
750
+ }, tt = et, G = (e, l) => {
751
+ const h = Ae, c = h(e, "r"), n = h(e, "g"), g = h(e, "b");
752
752
  return ke(c, n, g, l);
753
- }, nt = (e) => `.label {
753
+ }, it = (e) => `.label {
754
754
  font-family: ${e.fontFamily};
755
755
  color: ${e.nodeTextColor || e.textColor};
756
756
  }
@@ -862,8 +862,8 @@ const He = () => (ue++, "id-" + Math.random().toString(36).substr(2, 12) + "-" +
862
862
  font-size: 18px;
863
863
  fill: ${e.textColor};
864
864
  }
865
- `, ot = nt;
866
- function be(e, l, h = !1) {
865
+ `, st = it;
866
+ function pe(e, l, h = !1) {
867
867
  var c, n, g;
868
868
  const a = e;
869
869
  let y = "default";
@@ -930,7 +930,7 @@ function be(e, l, h = !1) {
930
930
  default:
931
931
  d = "rect";
932
932
  }
933
- const _ = De((a == null ? void 0 : a.styles) || []), T = a.label, k = a.size || { width: 0, height: 0, x: 0, y: 0 };
933
+ const _ = Ee((a == null ? void 0 : a.styles) || []), T = a.label, k = a.size || { width: 0, height: 0, x: 0, y: 0 };
934
934
  return {
935
935
  labelStyle: _.labelStyle,
936
936
  shape: d,
@@ -951,29 +951,29 @@ function be(e, l, h = !1) {
951
951
  padding: x ?? (((g = (n = ie()) == null ? void 0 : n.block) == null ? void 0 : g.padding) || 0)
952
952
  };
953
953
  }
954
- async function lt(e, l, h) {
955
- const c = be(l, h, !1);
954
+ async function rt(e, l, h) {
955
+ const c = pe(l, h, !1);
956
956
  if (c.type === "group")
957
957
  return;
958
- const n = await de(e, c), g = n.node().getBBox(), a = h.getBlock(c.id);
958
+ const n = await ge(e, c), g = n.node().getBBox(), a = h.getBlock(c.id);
959
959
  a.size = { width: g.width, height: g.height, x: 0, y: 0, node: n }, h.setBlock(a), n.remove();
960
960
  }
961
- async function at(e, l, h) {
962
- const c = be(l, h, !0);
963
- h.getBlock(c.id).type !== "space" && (await de(e, c), l.intersect = c == null ? void 0 : c.intersect, Oe(c));
961
+ async function nt(e, l, h) {
962
+ const c = pe(l, h, !0);
963
+ h.getBlock(c.id).type !== "space" && (await ge(e, c), l.intersect = c == null ? void 0 : c.intersect, Te(c));
964
964
  }
965
965
  async function ne(e, l, h, c) {
966
966
  for (const n of l)
967
967
  await c(e, n, h), n.children && await ne(e, n.children, h, c);
968
968
  }
969
- async function ct(e, l, h) {
970
- await ne(e, l, h, lt);
969
+ async function ot(e, l, h) {
970
+ await ne(e, l, h, rt);
971
971
  }
972
- async function ht(e, l, h) {
973
- await ne(e, l, h, at);
972
+ async function lt(e, l, h) {
973
+ await ne(e, l, h, nt);
974
974
  }
975
- async function ut(e, l, h, c, n) {
976
- const g = new Ie({
975
+ async function at(e, l, h, c, n) {
976
+ const g = new Oe({
977
977
  multigraph: !0,
978
978
  compound: !0
979
979
  });
@@ -999,7 +999,7 @@ async function ut(e, l, h, c, n) {
999
999
  { x: d.x + (x.x - d.x) / 2, y: d.y + (x.y - d.y) / 2 },
1000
1000
  { x: x.x, y: x.y }
1001
1001
  ];
1002
- await Ne(
1002
+ await ve(
1003
1003
  e,
1004
1004
  { v: a.start, w: a.end, name: a.id },
1005
1005
  {
@@ -1013,7 +1013,7 @@ async function ut(e, l, h, c, n) {
1013
1013
  "block",
1014
1014
  g,
1015
1015
  n
1016
- ), a.label && (await $e(e, {
1016
+ ), a.label && (await Ne(e, {
1017
1017
  ...a,
1018
1018
  label: a.label,
1019
1019
  labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
@@ -1021,7 +1021,7 @@ async function ut(e, l, h, c, n) {
1021
1021
  arrowTypeStart: a.arrowTypeStart,
1022
1022
  points: _,
1023
1023
  classes: "edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"
1024
- }), await Te(
1024
+ }), await $e(
1025
1025
  { ...a, x: _[1].x, y: _[1].y },
1026
1026
  {
1027
1027
  originalPath: _
@@ -1030,8 +1030,8 @@ async function ut(e, l, h, c, n) {
1030
1030
  }
1031
1031
  }
1032
1032
  }
1033
- const f = ((ae = (le = ge()) == null ? void 0 : le.block) == null ? void 0 : ae.padding) || 8;
1034
- function gt(e, l) {
1033
+ const f = ((ae = (le = fe()) == null ? void 0 : le.block) == null ? void 0 : ae.padding) || 8;
1034
+ function ct(e, l) {
1035
1035
  if (e === 0 || !Number.isInteger(e))
1036
1036
  throw new Error("Columns must be an integer !== 0.");
1037
1037
  if (l < 0 || !Number.isInteger(l))
@@ -1043,7 +1043,7 @@ function gt(e, l) {
1043
1043
  const h = l % e, c = Math.floor(l / e);
1044
1044
  return { px: h, py: c };
1045
1045
  }
1046
- const dt = (e) => {
1046
+ const ht = (e) => {
1047
1047
  let l = 0, h = 0;
1048
1048
  for (const c of e.children) {
1049
1049
  const { width: n, height: g, x: a, y } = c.size || { width: 0, height: 0, x: 0, y: 0 };
@@ -1083,7 +1083,7 @@ function te(e, l, h = 0, c = 0) {
1083
1083
  if (((a = e.children) == null ? void 0 : a.length) > 0) {
1084
1084
  for (const t of e.children)
1085
1085
  te(t, l);
1086
- const A = dt(e);
1086
+ const A = ht(e);
1087
1087
  S = A.width, D = A.height, L.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", S, D);
1088
1088
  for (const t of e.children)
1089
1089
  t.size && (L.debug(
@@ -1106,7 +1106,7 @@ function te(e, l, h = 0, c = 0) {
1106
1106
  `Detected to small siebling: abc95 ${e.id} sieblingWidth ${h} sieblingHeight ${c} width ${o}`
1107
1107
  ), o = h, p = c;
1108
1108
  const t = (h - i * f - f) / i, u = (c - r * f - f) / r;
1109
- L.debug("Size indata abc88", e.id, "childWidth", t, "maxWidth", S), L.debug("Size indata abc88", e.id, "childHeight", u, "maxHeight", D), L.debug("Size indata abc88 xSize", i, "padding", f);
1109
+ L.debug("Size indata abc88", e.id, "childWidth", t, "maxWidth", S), L.debug("Size indata abc88", e.id, "childHeight", u, "maxHeight", D), L.debug("Size indata abc88 xSize", i, "paddiong", f);
1110
1110
  for (const s of e.children)
1111
1111
  s.size && (s.size.width = t, s.size.height = u, s.size.x = 0, s.size.y = 0);
1112
1112
  }
@@ -1138,7 +1138,7 @@ function te(e, l, h = 0, c = 0) {
1138
1138
  (v = e == null ? void 0 : e.size) == null ? void 0 : v.height
1139
1139
  );
1140
1140
  }
1141
- function xe(e, l) {
1141
+ function be(e, l) {
1142
1142
  var h, c, n, g, a, y, b, d, x, _, T, k, v, S, D, A, w;
1143
1143
  L.debug(
1144
1144
  `abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(h = e == null ? void 0 : e.size) == null ? void 0 : h.x} y: ${(c = e == null ? void 0 : e.size) == null ? void 0 : c.y} width: ${(n = e == null ? void 0 : e.size) == null ? void 0 : n.width}`
@@ -1155,7 +1155,7 @@ function xe(e, l) {
1155
1155
  const s = e;
1156
1156
  if (!u.size)
1157
1157
  continue;
1158
- const { width: O, height: B } = u.size, { px: X, py: C } = gt(m, o);
1158
+ const { width: O, height: B } = u.size, { px: X, py: C } = ct(m, o);
1159
1159
  if (C != t && (t = C, p = (_ = e == null ? void 0 : e.size) != null && _.x ? ((T = e == null ? void 0 : e.size) == null ? void 0 : T.x) + (-((k = e == null ? void 0 : e.size) == null ? void 0 : k.width) / 2 || 0) : -f, L.debug("New row in layout for block", e.id, " and child ", u.id, t)), L.debug(
1160
1160
  `abc89 layout blocks (child) id: ${u.id} Pos: ${o} (px, py) ${X},${C} (${(v = s == null ? void 0 : s.size) == null ? void 0 : v.x},${(S = s == null ? void 0 : s.size) == null ? void 0 : S.y}) parent: ${s.id} width: ${O}${f}`
1161
1161
  ), s.size) {
@@ -1166,59 +1166,59 @@ function xe(e, l) {
1166
1166
  `abc88 layout blocks (calc) px, pyid:${u.id}startingPosX${p}${f}${F}=>x:${u.size.x}y:${u.size.y}${u.widthInColumns}(width * (child?.w || 1)) / 2${O * ((u == null ? void 0 : u.widthInColumns) || 1) / 2}`
1167
1167
  );
1168
1168
  }
1169
- u.children && xe(u), o += (u == null ? void 0 : u.widthInColumns) || 1, L.debug("abc88 columnsPos", u, o);
1169
+ u.children && be(u), o += (u == null ? void 0 : u.widthInColumns) || 1, L.debug("abc88 columnsPos", u, o);
1170
1170
  }
1171
1171
  }
1172
1172
  L.debug(
1173
1173
  `layout blocks (<==layoutBlocks) ${e.id} x: ${(D = e == null ? void 0 : e.size) == null ? void 0 : D.x} y: ${(A = e == null ? void 0 : e.size) == null ? void 0 : A.y} width: ${(w = e == null ? void 0 : e.size) == null ? void 0 : w.width}`
1174
1174
  );
1175
1175
  }
1176
- function Le(e, { minX: l, minY: h, maxX: c, maxY: n } = { minX: 0, minY: 0, maxX: 0, maxY: 0 }) {
1176
+ function xe(e, { minX: l, minY: h, maxX: c, maxY: n } = { minX: 0, minY: 0, maxX: 0, maxY: 0 }) {
1177
1177
  if (e.size && e.id !== "root") {
1178
1178
  const { x: g, y: a, width: y, height: b } = e.size;
1179
1179
  g - y / 2 < l && (l = g - y / 2), a - b / 2 < h && (h = a - b / 2), g + y / 2 > c && (c = g + y / 2), a + b / 2 > n && (n = a + b / 2);
1180
1180
  }
1181
1181
  if (e.children)
1182
1182
  for (const g of e.children)
1183
- ({ minX: l, minY: h, maxX: c, maxY: n } = Le(g, { minX: l, minY: h, maxX: c, maxY: n }));
1183
+ ({ minX: l, minY: h, maxX: c, maxY: n } = xe(g, { minX: l, minY: h, maxX: c, maxY: n }));
1184
1184
  return { minX: l, minY: h, maxX: c, maxY: n };
1185
1185
  }
1186
- function yt(e) {
1186
+ function ut(e) {
1187
1187
  const l = e.getBlock("root");
1188
1188
  if (!l)
1189
1189
  return;
1190
- te(l, e, 0, 0), xe(l), L.debug("getBlocks", JSON.stringify(l, null, 2));
1191
- const { minX: h, minY: c, maxX: n, maxY: g } = Le(l), a = g - c, y = n - h;
1190
+ te(l, e, 0, 0), be(l), L.debug("getBlocks", JSON.stringify(l, null, 2));
1191
+ const { minX: h, minY: c, maxX: n, maxY: g } = xe(l), a = g - c, y = n - h;
1192
1192
  return { x: h, y: c, width: y, height: a };
1193
1193
  }
1194
- const pt = function(e, l) {
1194
+ const gt = function(e, l) {
1195
1195
  return l.db.getClasses();
1196
- }, bt = async function(e, l, h, c) {
1196
+ }, dt = async function(e, l, h, c) {
1197
1197
  const { securityLevel: n, block: g } = ie(), a = c.db;
1198
1198
  let y;
1199
1199
  n === "sandbox" && (y = q("#i" + l));
1200
1200
  const b = n === "sandbox" ? q(y.nodes()[0].contentDocument.body) : q("body"), d = n === "sandbox" ? b.select(`[id="${l}"]`) : q(`[id="${l}"]`);
1201
- ve(d, ["point", "circle", "cross"], c.type, l);
1201
+ we(d, ["point", "circle", "cross"], c.type, l);
1202
1202
  const x = a.getBlocks(), _ = a.getBlocksFlat(), T = a.getEdges(), k = d.insert("g").attr("class", "block");
1203
- await ct(k, x, a);
1204
- const v = yt(a);
1205
- if (await ht(k, x, a), await ut(k, T, _, a, l), v) {
1203
+ await ot(k, x, a);
1204
+ const v = ut(a);
1205
+ if (await lt(k, x, a), await at(k, T, _, a, l), v) {
1206
1206
  const S = v, D = Math.max(1, Math.round(0.125 * (S.width / S.height))), A = S.height + D + 10, w = S.width + 10, { useMaxWidth: m } = g;
1207
1207
  me(d, A, w, !!m), L.debug("Here Bounds", v, S), d.attr(
1208
1208
  "viewBox",
1209
1209
  `${S.x - 5} ${S.y - 5} ${S.width + 10} ${S.height + 10}`
1210
1210
  );
1211
1211
  }
1212
- Ae(ze);
1213
- }, xt = {
1214
- draw: bt,
1215
- getClasses: pt
1216
- }, Dt = {
1217
- parser: Re,
1218
- db: rt,
1219
- renderer: xt,
1220
- styles: ot
1212
+ Ie(Ce);
1213
+ }, yt = {
1214
+ draw: dt,
1215
+ getClasses: gt
1216
+ }, _t = {
1217
+ parser: ze,
1218
+ db: tt,
1219
+ renderer: yt,
1220
+ styles: st
1221
1221
  };
1222
1222
  export {
1223
- Dt as diagram
1223
+ _t as diagram
1224
1224
  };