@kong-ui-public/documentation 0.7.83 → 0.7.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/dist/_basePickBy-CMfPif8e-CmRJF0Pz.js +151 -0
  2. package/dist/_baseUniq-CXqhI00C-BfnSCqya.js +615 -0
  3. package/dist/arc-JIMrD458-iE0qPqUL.js +83 -0
  4. package/dist/architecture-I3QFYML2-Bgw7-fJd-BmHcSoDq.js +5 -0
  5. package/dist/{architectureDiagram-V6B76FHG-CMXFnETI-RxxML1uW.js → architectureDiagram-AYX4OTIS-XPsSAXrN-CriQXfFm.js} +4 -4
  6. package/dist/blockDiagram-XN6IQ5JY-IfzOVP1S-DoilgKcQ.js +2247 -0
  7. package/dist/{c4Diagram-THADGKDP-BoXI_MdM-85LhjWUD.js → c4Diagram-GPMAACGM-RttNBnvg-DemUG3qf.js} +2 -2
  8. package/dist/{channel-BlAyqTfO-DcF7shsf.js → channel-DEiqvYYf-DqQTZyIM.js} +1 -1
  9. package/dist/{chunk-OQCM5LHU-BXp7HdZf-DAxyAqhb.js → chunk-BAOP5US2-D_mPkUfX-Dlqx79Tr.js} +1 -1
  10. package/dist/chunk-CXDZ2C6O-B6QVQzrJ-CdVn1xaX.js +1301 -0
  11. package/dist/{chunk-DUMQOTYW-BvseU82P-Cv9cgfHg.js → chunk-EICJXIV7-B3uVnKYK-BPFil4EM.js} +1 -1
  12. package/dist/{chunk-2JBRQKJ5-D-tjQIH--CX9PfGSj.js → chunk-JZAHL7AJ-B8L_7Xh_-C2ETRUtV.js} +21 -21
  13. package/dist/{chunk-2RYQ3QTB-CJAPCFIj-C6EEVa0L.js → chunk-RGXPSUNZ-PjQy3A3Y-BiDEi6k5.js} +1 -1
  14. package/dist/{chunk-XVOYOM2C-DSF8EQmO-CJoKjxiE.js → chunk-VCFP4HPQ-qZEjUbIz-7kfkUrsj.js} +1 -1
  15. package/dist/classDiagram-FEGYTUDG-Bu9qKgav-DF2ZcQyp.js +14 -0
  16. package/dist/classDiagram-v2-R65JCUOM-Bu9qKgav-DF2ZcQyp.js +14 -0
  17. package/dist/{clone-BxgFQWIV-C8w0qOf5.js → clone-elND5I63-U8WRvSPu.js} +1 -1
  18. package/dist/dagre-SWNTG5WE-CcKMLYcK-tREOd3Fb.js +447 -0
  19. package/dist/{diagram-QS5GVLUX-Ck_HO8gZ-CFWjkYXj.js → diagram-NZMEDLQF-vjbbgzvH-BDFE_-Eo.js} +6 -6
  20. package/dist/documentation.es.js +1 -1
  21. package/dist/documentation.umd.js +401 -273
  22. package/dist/{erDiagram-62CBQV5Y-CaO8CQzG-DYEXkRnA.js → erDiagram-WO52GFNT-N8TeMKSM-BojFH-Dn.js} +56 -56
  23. package/dist/flowDiagram-TSWR6T2D-DzECWIN--CnDMIIi-.js +1484 -0
  24. package/dist/{ganttDiagram-ASEIQ4P5-BiIuu6iJ-DXC89NBD.js → ganttDiagram-FAOCOTIY-DmxDGUpf-BGJLIQAo.js} +61 -61
  25. package/dist/gitGraph-YCYPL57B-BKlVjqGu-BRRTPERj.js +5 -0
  26. package/dist/{gitGraphDiagram-UL5UFKDR-C4dDL1m3-pGO-Nubf.js → gitGraphDiagram-5C7YHVU6-CfJ_hQ2h-C2aLT5AH.js} +21 -21
  27. package/dist/{graph-BDwITe7N-Dg4ZhErV.js → graph-C5siWsaJ-djbzUgq8.js} +52 -55
  28. package/dist/{index-D1jNpyAG.js → index-BXFfc1qh.js} +17314 -15496
  29. package/dist/info-46DW6VJ7-QBUrqpM0-D7DXfBfh.js +5 -0
  30. package/dist/{infoDiagram-7APDZ6AT-DQAU4aEA-ZuNKK8Q1.js → infoDiagram-P5D6MX3V-CthsN8fk-ju-grajk.js} +2 -2
  31. package/dist/{journeyDiagram-G5LC7W2K-BDjs8Ede-CBVXgKDg.js → journeyDiagram-UIGPPNLY-CB1xWSVF-CnOTIXjT.js} +3 -3
  32. package/dist/kanban-definition-KMT3NSR2-B76JZ_Kx-BuaYPyou.js +718 -0
  33. package/dist/layout-mwnMvyc4-B2PmGvWD.js +1321 -0
  34. package/dist/{linear-DJf2yjqH-Qa8JBmhC.js → linear-XztDb0hj-RsuwoFLQ.js} +46 -46
  35. package/dist/{mermaid-parser.core-DKcB0zTx-Cuc2e_U9.js → mermaid-parser.core-C4mt_cFi-BuaZi6gx.js} +9 -9
  36. package/dist/{mindmap-definition-FCEC46F3-Dfona71I-BMB5v8Sw.js → mindmap-definition-R7LC4OIY-Cg3Nsctr-BcCPx65V.js} +1 -1
  37. package/dist/packet-W2GHVCYJ-BJGXYVlB-DlnQVVmK.js +5 -0
  38. package/dist/pie-BEWT4RHE-XO1bTOj2-DEYSeXSg.js +5 -0
  39. package/dist/{pieDiagram-OZX6XH5M-CVVFrPaX-C40AWUnf.js → pieDiagram-BLWKPB35-Bs5Iyn_g-CnOiPji_.js} +27 -27
  40. package/dist/{quadrantDiagram-VG34DGKC-D_n6ouG0-B7tCVKZS.js → quadrantDiagram-QXWEEFXS-n8j7IqmF-CloVXY0U.js} +16 -16
  41. package/dist/{requirementDiagram-FPZB6IJI-DgzsPnSP-BdT6rZ42.js → requirementDiagram-XAUNFCZY-DI_Pyl2h-D8hqXle2.js} +20 -20
  42. package/dist/{sankeyDiagram-KMMQDL5K-slN_anzC-C8cSA1pn.js → sankeyDiagram-LVV36NHA-Bei7yBJl-DvbyWSci.js} +1 -1
  43. package/dist/{sequenceDiagram-PQT5PN7B-DmYxtSNe-kmiDoefU.js → sequenceDiagram-D25TJ2OB-NAPdhBbI-DQR1b0UZ.js} +21 -21
  44. package/dist/{stateDiagram-TQSDS2D4-DaGylNtS-DZvK22EK.js → stateDiagram-GNSP7T6Y-Dzq9j0YG-BgVCaCOx.js} +14 -15
  45. package/dist/{stateDiagram-v2-J5TZWJW5-CkpV3aOb-CRLcbMy9.js → stateDiagram-v2-HP6YRVRG-Jl4ubGlG-BeMvcZLQ.js} +2 -3
  46. package/dist/{timeline-definition-KYQAIZUX-BbQn7lRo-DdMJtCcZ.js → timeline-definition-27KQCCZ3-Dyj-cUhB-cBpLcB_z.js} +91 -91
  47. package/dist/{xychartDiagram-LESROZAQ-C5RGN8Yc-D1Q0T8zi.js → xychartDiagram-MYLB5AYS-Bc_nZcHL-YLCG5NJT.js} +2 -2
  48. package/package.json +5 -5
  49. package/dist/_basePickBy-C3_IHxiB-Bgb-nBpw.js +0 -143
  50. package/dist/_baseUniq-Cede_3wW-BVX848YU.js +0 -622
  51. package/dist/arc-CFIMKg_S-CJkN7pL8.js +0 -83
  52. package/dist/architecture-I3QFYML2-CsfpifL5-B7ba29Kf.js +0 -5
  53. package/dist/blockDiagram-EN3ZKWFM-CyddtNyi-BO48RJ5X.js +0 -1232
  54. package/dist/chunk-BAVOGKFW-DMR4mnUx-ZqKP-ubQ.js +0 -1092
  55. package/dist/chunk-UGV5ZQQN-DJ9JPuwX-CiNn-tmJ.js +0 -254
  56. package/dist/chunk-YWFND7JV-CJxpOF0s-CKv3TLz3.js +0 -786
  57. package/dist/classDiagram-4BHYIK4I-Bh2E4V_q-Bp1df6xf.js +0 -214
  58. package/dist/classDiagram-v2-FI7KE7WJ-zeS53lAE--zqW0wuN.js +0 -545
  59. package/dist/dagre-P3YPLUS5-DvPNKrZS-BqJ7-FR_.js +0 -421
  60. package/dist/flowDiagram-JSIZSE4D-C3p20RgK-76C6C_fU.js +0 -1380
  61. package/dist/gitGraph-YCYPL57B-BXHaWu1_-L6S_Q-ER.js +0 -5
  62. package/dist/info-46DW6VJ7-gLazUuGQ-CgME-TPe.js +0 -5
  63. package/dist/json-Dg9P6BhK-CcBa4IfV.js +0 -31
  64. package/dist/layout--tn8zpzB-CFuPSG6n.js +0 -1381
  65. package/dist/packet-W2GHVCYJ-Dn1-cCwP-_7hKzD3w.js +0 -5
  66. package/dist/pie-BEWT4RHE-DvPKCMtn-CWoQ7JX6.js +0 -5
@@ -1,4 +1,4 @@
1
- import { _ as n, af as d, ag as c, l } from "./index-D1jNpyAG.js";
1
+ import { _ as n, af as d, ag as c, l } from "./index-BXFfc1qh.js";
2
2
  var m = /* @__PURE__ */ n((e, t) => {
3
3
  let i;
4
4
  return t === "sandbox" && (i = d("#i" + e)), (t === "sandbox" ? d(i.nodes()[0].contentDocument.body) : d("body")).select(`[id="${e}"]`);
@@ -1,10 +1,10 @@
1
- import { u as xe, b as $e } from "./chunk-DUMQOTYW-BvseU82P-Cv9cgfHg.js";
2
- import { _ as i, ab as M, g as v, a6 as De, a5 as ve, a7 as Ce, a8 as Le, al as Ae, am as Ie, l as k, ar as we, an as Re, ao as Ne, bq as Oe } from "./index-D1jNpyAG.js";
1
+ import { u as xe, b as $e } from "./chunk-EICJXIV7-B3uVnKYK-BPFil4EM.js";
2
+ import { _ as i, ab as M, g as v, a6 as De, a5 as ve, a7 as Ce, a8 as Le, al as Ae, am as Ie, l as k, au as we, aq as Re, ar as Ne, bk as Oe } from "./index-BXFfc1qh.js";
3
3
  var It = function() {
4
4
  var t = /* @__PURE__ */ i(function(L, n, a, y) {
5
5
  for (a = a || {}, y = L.length; y--; a[L[y]] = n) ;
6
6
  return a;
7
- }, "o"), e = [1, 2], l = [1, 3], o = [1, 4], r = [2, 4], h = [1, 9], p = [1, 11], f = [1, 16], u = [1, 17], m = [1, 18], _ = [1, 19], A = [1, 32], H = [1, 20], P = [1, 21], I = [1, 22], d = [1, 23], C = [1, 24], w = [1, 26], Y = [1, 27], G = [1, 28], N = [1, 29], O = [1, 30], it = [1, 31], rt = [1, 34], nt = [1, 35], at = [1, 36], ot = [1, 37], q = [1, 33], g = [1, 4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], lt = [1, 4, 5, 14, 15, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], Gt = [4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], Et = {
7
+ }, "o"), e = [1, 2], l = [1, 3], o = [1, 4], r = [2, 4], h = [1, 9], p = [1, 11], f = [1, 16], u = [1, 17], m = [1, 18], _ = [1, 19], A = [1, 32], V = [1, 20], P = [1, 21], I = [1, 22], d = [1, 23], C = [1, 24], w = [1, 26], Y = [1, 27], G = [1, 28], N = [1, 29], O = [1, 30], it = [1, 31], rt = [1, 34], nt = [1, 35], at = [1, 36], ot = [1, 37], q = [1, 33], g = [1, 4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], lt = [1, 4, 5, 14, 15, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], Gt = [4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], Et = {
8
8
  trace: /* @__PURE__ */ i(function() {
9
9
  }, "trace"),
10
10
  yy: {},
@@ -113,7 +113,7 @@ var It = function() {
113
113
  break;
114
114
  }
115
115
  }, "anonymous"),
116
- table: [{ 3: 1, 4: e, 5: l, 6: o }, { 1: [3] }, { 3: 5, 4: e, 5: l, 6: o }, { 3: 6, 4: e, 5: l, 6: o }, t([1, 4, 5, 16, 17, 19, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], r, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: h, 5: p, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: f, 17: u, 19: m, 22: _, 24: A, 25: H, 26: P, 27: I, 28: d, 29: C, 32: 25, 33: w, 35: Y, 37: G, 38: N, 42: O, 45: it, 48: rt, 49: nt, 50: at, 51: ot, 54: q }, t(g, [2, 5]), { 9: 38, 10: 12, 11: 13, 12: 14, 13: 15, 16: f, 17: u, 19: m, 22: _, 24: A, 25: H, 26: P, 27: I, 28: d, 29: C, 32: 25, 33: w, 35: Y, 37: G, 38: N, 42: O, 45: it, 48: rt, 49: nt, 50: at, 51: ot, 54: q }, t(g, [2, 7]), t(g, [2, 8]), t(g, [2, 9]), t(g, [2, 10]), t(g, [2, 11]), t(g, [2, 12], { 14: [1, 39], 15: [1, 40] }), t(g, [2, 16]), { 18: [1, 41] }, t(g, [2, 18], { 20: [1, 42] }), { 23: [1, 43] }, t(g, [2, 22]), t(g, [2, 23]), t(g, [2, 24]), t(g, [2, 25]), { 30: 44, 31: [1, 45], 56: [1, 46], 57: [1, 47] }, t(g, [2, 28]), { 34: [1, 48] }, { 36: [1, 49] }, t(g, [2, 31]), { 39: [1, 50], 41: [1, 51] }, { 43: [1, 52] }, { 46: [1, 53] }, t(lt, [2, 42], { 55: [1, 54] }), t(lt, [2, 43], { 55: [1, 55] }), t(g, [2, 36]), t(g, [2, 37]), t(g, [2, 38]), t(g, [2, 39]), t(g, [2, 6]), t(g, [2, 13]), { 13: 56, 24: A, 54: q }, t(g, [2, 17]), t(Gt, r, { 7: 57 }), { 24: [1, 58] }, { 24: [1, 59] }, { 23: [1, 60] }, { 24: [2, 46] }, { 24: [2, 47] }, t(g, [2, 29]), t(g, [2, 30]), { 40: [1, 61] }, { 40: [1, 62] }, { 44: [1, 63] }, { 47: [1, 64] }, { 24: [1, 65] }, { 24: [1, 66] }, t(g, [2, 14], { 14: [1, 67] }), { 4: h, 5: p, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: f, 17: u, 19: m, 21: [1, 68], 22: _, 24: A, 25: H, 26: P, 27: I, 28: d, 29: C, 32: 25, 33: w, 35: Y, 37: G, 38: N, 42: O, 45: it, 48: rt, 49: nt, 50: at, 51: ot, 54: q }, t(g, [2, 20], { 20: [1, 69] }), { 31: [1, 70] }, { 24: [1, 71] }, t(g, [2, 32]), t(g, [2, 33]), t(g, [2, 34]), t(g, [2, 35]), t(lt, [2, 44]), t(lt, [2, 45]), t(g, [2, 15]), t(g, [2, 19]), t(Gt, r, { 7: 72 }), t(g, [2, 26]), t(g, [2, 27]), { 4: h, 5: p, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: f, 17: u, 19: m, 21: [1, 73], 22: _, 24: A, 25: H, 26: P, 27: I, 28: d, 29: C, 32: 25, 33: w, 35: Y, 37: G, 38: N, 42: O, 45: it, 48: rt, 49: nt, 50: at, 51: ot, 54: q }, t(g, [2, 21])],
116
+ table: [{ 3: 1, 4: e, 5: l, 6: o }, { 1: [3] }, { 3: 5, 4: e, 5: l, 6: o }, { 3: 6, 4: e, 5: l, 6: o }, t([1, 4, 5, 16, 17, 19, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], r, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: h, 5: p, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: f, 17: u, 19: m, 22: _, 24: A, 25: V, 26: P, 27: I, 28: d, 29: C, 32: 25, 33: w, 35: Y, 37: G, 38: N, 42: O, 45: it, 48: rt, 49: nt, 50: at, 51: ot, 54: q }, t(g, [2, 5]), { 9: 38, 10: 12, 11: 13, 12: 14, 13: 15, 16: f, 17: u, 19: m, 22: _, 24: A, 25: V, 26: P, 27: I, 28: d, 29: C, 32: 25, 33: w, 35: Y, 37: G, 38: N, 42: O, 45: it, 48: rt, 49: nt, 50: at, 51: ot, 54: q }, t(g, [2, 7]), t(g, [2, 8]), t(g, [2, 9]), t(g, [2, 10]), t(g, [2, 11]), t(g, [2, 12], { 14: [1, 39], 15: [1, 40] }), t(g, [2, 16]), { 18: [1, 41] }, t(g, [2, 18], { 20: [1, 42] }), { 23: [1, 43] }, t(g, [2, 22]), t(g, [2, 23]), t(g, [2, 24]), t(g, [2, 25]), { 30: 44, 31: [1, 45], 56: [1, 46], 57: [1, 47] }, t(g, [2, 28]), { 34: [1, 48] }, { 36: [1, 49] }, t(g, [2, 31]), { 39: [1, 50], 41: [1, 51] }, { 43: [1, 52] }, { 46: [1, 53] }, t(lt, [2, 42], { 55: [1, 54] }), t(lt, [2, 43], { 55: [1, 55] }), t(g, [2, 36]), t(g, [2, 37]), t(g, [2, 38]), t(g, [2, 39]), t(g, [2, 6]), t(g, [2, 13]), { 13: 56, 24: A, 54: q }, t(g, [2, 17]), t(Gt, r, { 7: 57 }), { 24: [1, 58] }, { 24: [1, 59] }, { 23: [1, 60] }, { 24: [2, 46] }, { 24: [2, 47] }, t(g, [2, 29]), t(g, [2, 30]), { 40: [1, 61] }, { 40: [1, 62] }, { 44: [1, 63] }, { 47: [1, 64] }, { 24: [1, 65] }, { 24: [1, 66] }, t(g, [2, 14], { 14: [1, 67] }), { 4: h, 5: p, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: f, 17: u, 19: m, 21: [1, 68], 22: _, 24: A, 25: V, 26: P, 27: I, 28: d, 29: C, 32: 25, 33: w, 35: Y, 37: G, 38: N, 42: O, 45: it, 48: rt, 49: nt, 50: at, 51: ot, 54: q }, t(g, [2, 20], { 20: [1, 69] }), { 31: [1, 70] }, { 24: [1, 71] }, t(g, [2, 32]), t(g, [2, 33]), t(g, [2, 34]), t(g, [2, 35]), t(lt, [2, 44]), t(lt, [2, 45]), t(g, [2, 15]), t(g, [2, 19]), t(Gt, r, { 7: 72 }), t(g, [2, 26]), t(g, [2, 27]), { 4: h, 5: p, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: f, 17: u, 19: m, 21: [1, 73], 22: _, 24: A, 25: V, 26: P, 27: I, 28: d, 29: C, 32: 25, 33: w, 35: Y, 37: G, 38: N, 42: O, 45: it, 48: rt, 49: nt, 50: at, 51: ot, 54: q }, t(g, [2, 21])],
117
117
  defaultActions: { 5: [2, 1], 6: [2, 2], 46: [2, 46], 47: [2, 47] },
118
118
  parseError: /* @__PURE__ */ i(function(L, n) {
119
119
  if (n.recoverable)
@@ -543,7 +543,7 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Ct =
543
543
  return i(ct, "Parser"), ct.prototype = Et, Et.Parser = ct, new ct();
544
544
  }();
545
545
  It.parser = It;
546
- var vs = It, Be = "LR", qt = "TB", St = "state", Rt = "relation", Fe = "classDef", Pe = "style", Ye = "applyClass", et = "default", Xt = "divider", Qt = "fill:none", Zt = "fill: #333", te = "c", ee = "text", se = "normal", Lt = "rect", At = "rectWithTitle", Ge = "stateStart", ze = "stateEnd", Ut = "divider", Mt = "roundedWithTitle", je = "note", Ue = "noteGroup", st = "statediagram", Me = "state", Ve = `${st}-${Me}`, ie = "transition", He = "note", Je = "note-edge", We = `${ie} ${Je}`, Ke = `${st}-${He}`, qe = "cluster", Xe = `${st}-${qe}`, Qe = "cluster-alt", Ze = `${st}-${Qe}`, re = "parent", ne = "note", ts = "state", Nt = "----", es = `${Nt}${ne}`, Vt = `${Nt}${re}`, ae = /* @__PURE__ */ i((t, e = qt) => {
546
+ var vs = It, Be = "LR", qt = "TB", St = "state", Rt = "relation", Fe = "classDef", Pe = "style", Ye = "applyClass", et = "default", Xt = "divider", Qt = "fill:none", Zt = "fill: #333", te = "c", ee = "text", se = "normal", Lt = "rect", At = "rectWithTitle", Ge = "stateStart", ze = "stateEnd", Ut = "divider", Mt = "roundedWithTitle", je = "note", Ue = "noteGroup", st = "statediagram", Me = "state", He = `${st}-${Me}`, ie = "transition", Ve = "note", Je = "note-edge", We = `${ie} ${Je}`, Ke = `${st}-${Ve}`, qe = "cluster", Xe = `${st}-${qe}`, Qe = "cluster-alt", Ze = `${st}-${Qe}`, re = "parent", ne = "note", ts = "state", Nt = "----", es = `${Nt}${ne}`, Ht = `${Nt}${re}`, ae = /* @__PURE__ */ i((t, e = qt) => {
547
547
  if (!t.doc)
548
548
  return e;
549
549
  let l = e;
@@ -624,7 +624,7 @@ var rs = /* @__PURE__ */ i((t, e, l, o, r, h, p, f) => {
624
624
  break;
625
625
  }
626
626
  });
627
- }, "setupDoc"), Ht = /* @__PURE__ */ i((t, e = qt) => {
627
+ }, "setupDoc"), Vt = /* @__PURE__ */ i((t, e = qt) => {
628
628
  let l = e;
629
629
  if (t.doc)
630
630
  for (const o of t.doc)
@@ -655,18 +655,18 @@ function le(t) {
655
655
  i(le, "getStylesFromDbInfo");
656
656
  var Z = /* @__PURE__ */ i((t, e, l, o, r, h, p, f) => {
657
657
  var u, m;
658
- const _ = e.id, A = l.get(_), H = oe(A), P = le(A);
658
+ const _ = e.id, A = l.get(_), V = oe(A), P = le(A);
659
659
  if (k.info("dataFetcher parsedItem", e, A, P), _ !== "root") {
660
660
  let I = Lt;
661
661
  e.start === !0 ? I = Ge : e.start === !1 && (I = ze), e.type !== et && (I = e.type), yt.get(_) || yt.set(_, {
662
662
  id: _,
663
663
  shape: I,
664
664
  description: M.sanitizeText(_, v()),
665
- cssClasses: `${H} ${Ve}`,
665
+ cssClasses: `${V} ${He}`,
666
666
  cssStyles: P
667
667
  });
668
668
  const d = yt.get(_);
669
- e.description && (Array.isArray(d.description) ? (d.shape = At, d.description.push(e.description)) : ((u = d.description) == null ? void 0 : u.length) > 0 ? (d.shape = At, d.description === _ ? d.description = [e.description] : d.description = [d.description, e.description]) : (d.shape = Lt, d.description = e.description), d.description = M.sanitizeTextOrArray(d.description, v())), ((m = d.description) == null ? void 0 : m.length) === 1 && d.shape === At && (d.type === "group" ? d.shape = Mt : d.shape = Lt), !d.type && e.doc && (k.info("Setting cluster for XCX", _, Ht(e)), d.type = "group", d.isGroup = !0, d.dir = Ht(e), d.shape = e.type === Xt ? Ut : Mt, d.cssClasses = `${d.cssClasses} ${Xe} ${h ? Ze : ""}`);
669
+ e.description && (Array.isArray(d.description) ? (d.shape = At, d.description.push(e.description)) : ((u = d.description) == null ? void 0 : u.length) > 0 ? (d.shape = At, d.description === _ ? d.description = [e.description] : d.description = [d.description, e.description]) : (d.shape = Lt, d.description = e.description), d.description = M.sanitizeTextOrArray(d.description, v())), ((m = d.description) == null ? void 0 : m.length) === 1 && d.shape === At && (d.type === "group" ? d.shape = Mt : d.shape = Lt), !d.type && e.doc && (k.info("Setting cluster for XCX", _, Vt(e)), d.type = "group", d.isGroup = !0, d.dir = Vt(e), d.shape = e.type === Xt ? Ut : Mt, d.cssClasses = `${d.cssClasses} ${Xe} ${h ? Ze : ""}`);
670
670
  const C = {
671
671
  labelStyle: "",
672
672
  shape: d.shape,
@@ -700,13 +700,13 @@ var Z = /* @__PURE__ */ i((t, e, l, o, r, h, p, f) => {
700
700
  padding: v().flowchart.padding,
701
701
  look: p,
702
702
  position: e.note.position
703
- }, Y = _ + Vt, G = {
703
+ }, Y = _ + Ht, G = {
704
704
  labelStyle: "",
705
705
  shape: Ue,
706
706
  label: e.note.text,
707
707
  cssClasses: d.cssClasses,
708
708
  cssStyles: [],
709
- id: _ + Vt,
709
+ id: _ + Ht,
710
710
  domId: gt(_, B, re),
711
711
  type: "group",
712
712
  isGroup: !0,
@@ -809,10 +809,10 @@ var mt = [], Ft = [], de = Be, _t = [], K = Bt(), pe = /* @__PURE__ */ i(() => (
809
809
  {
810
810
  const h = r.id.trim().split(","), p = r.styleClass.split(",");
811
811
  h.forEach((f) => {
812
- let u = V(f);
812
+ let u = H(f);
813
813
  if (u === void 0) {
814
814
  const m = f.trim();
815
- F(m), u = V(m);
815
+ F(m), u = H(m);
816
816
  }
817
817
  u.styles = p.map((m) => {
818
818
  var _;
@@ -856,7 +856,7 @@ var mt = [], Ft = [], de = Be, _t = [], K = Bt(), pe = /* @__PURE__ */ i(() => (
856
856
  mt = [], Ft = [], bt = {
857
857
  root: pe()
858
858
  }, x = bt.root, tt = 0, K = Bt(), t || Ne();
859
- }, "clear"), V = /* @__PURE__ */ i(function(t) {
859
+ }, "clear"), H = /* @__PURE__ */ i(function(t) {
860
860
  return x.states.get(t);
861
861
  }, "getState"), ge = /* @__PURE__ */ i(function() {
862
862
  return x.states;
@@ -941,18 +941,18 @@ var _e = /* @__PURE__ */ i(function(t, e, l) {
941
941
  return K;
942
942
  }, "getClasses"), Yt = /* @__PURE__ */ i(function(t, e) {
943
943
  t.split(",").forEach(function(l) {
944
- let o = V(l);
944
+ let o = H(l);
945
945
  if (o === void 0) {
946
946
  const r = l.trim();
947
- F(r), o = V(r);
947
+ F(r), o = H(r);
948
948
  }
949
949
  o.classes.push(e);
950
950
  });
951
951
  }, "setCssClass"), ms = /* @__PURE__ */ i(function(t, e) {
952
- const l = V(t);
952
+ const l = H(t);
953
953
  l !== void 0 && l.styles.push(e);
954
954
  }, "setStyle"), _s = /* @__PURE__ */ i(function(t, e) {
955
- const l = V(t);
955
+ const l = H(t);
956
956
  l !== void 0 && l.textStyles.push(e);
957
957
  }, "setTextStyle"), bs = /* @__PURE__ */ i(() => de, "getDirection"), ks = /* @__PURE__ */ i((t) => {
958
958
  de = t;
@@ -964,7 +964,7 @@ var _e = /* @__PURE__ */ i(function(t, e, l) {
964
964
  getData: Es,
965
965
  addState: F,
966
966
  clear: ye,
967
- getState: V,
967
+ getState: H,
968
968
  getStates: ge,
969
969
  getRelations: ys,
970
970
  getClasses: Ss,
@@ -1207,7 +1207,7 @@ g.stateGroup line {
1207
1207
  `, "getStyles"), As = xs;
1208
1208
  export {
1209
1209
  vs as A,
1210
- Ls as I,
1210
+ As as I,
1211
1211
  Cs as L,
1212
- As as R
1212
+ Ls as R
1213
1213
  };
@@ -1,4 +1,4 @@
1
- import { _ as r } from "./index-D1jNpyAG.js";
1
+ import { _ as r } from "./index-BXFfc1qh.js";
2
2
  var t, e = (t = class {
3
3
  /**
4
4
  * @param init - Function that creates the default state.
@@ -1,4 +1,4 @@
1
- import { _ as n, ai as o, ah as i } from "./index-D1jNpyAG.js";
1
+ import { _ as n, ai as o, ah as i } from "./index-BXFfc1qh.js";
2
2
  var c = /* @__PURE__ */ n((s, t) => {
3
3
  const r = s.append("rect");
4
4
  if (r.attr("x", t.x), r.attr("y", t.y), r.attr("fill", t.fill), r.attr("stroke", t.stroke), r.attr("width", t.width), r.attr("height", t.height), t.name && r.attr("name", t.name), t.rx && r.attr("rx", t.rx), t.ry && r.attr("ry", t.ry), t.attrs !== void 0)
@@ -0,0 +1,14 @@
1
+ import { o as a, c as s, p as e, h as o } from "./chunk-CXDZ2C6O-B6QVQzrJ-CdVn1xaX.js";
2
+ import { _ as t } from "./index-BXFfc1qh.js";
3
+ var c = {
4
+ parser: a,
5
+ db: s,
6
+ renderer: e,
7
+ styles: o,
8
+ init: /* @__PURE__ */ t((r) => {
9
+ r.class || (r.class = {}), r.class.arrowMarkerAbsolute = r.arrowMarkerAbsolute, s.clear();
10
+ }, "init")
11
+ };
12
+ export {
13
+ c as diagram
14
+ };
@@ -0,0 +1,14 @@
1
+ import { o as a, c as s, p as e, h as o } from "./chunk-CXDZ2C6O-B6QVQzrJ-CdVn1xaX.js";
2
+ import { _ as t } from "./index-BXFfc1qh.js";
3
+ var c = {
4
+ parser: a,
5
+ db: s,
6
+ renderer: e,
7
+ styles: o,
8
+ init: /* @__PURE__ */ t((r) => {
9
+ r.class || (r.class = {}), r.class.arrowMarkerAbsolute = r.arrowMarkerAbsolute, s.clear();
10
+ }, "init")
11
+ };
12
+ export {
13
+ c as diagram
14
+ };
@@ -1,4 +1,4 @@
1
- import { F as o } from "./_baseUniq-Cede_3wW-BVX848YU.js";
1
+ import { M as o } from "./_baseUniq-CXqhI00C-BfnSCqya.js";
2
2
  var t = 4;
3
3
  function n(r) {
4
4
  return o(r, t);
@@ -0,0 +1,447 @@
1
+ import { _ as w, m as L, c as M, a as j, b as F, l as t, g as Y, u as _, s as H, i as $, d as q, e as z, p as D, f as K, h as Q, j as U } from "./index-BXFfc1qh.js";
2
+ import { L as k } from "./graph-C5siWsaJ-djbzUgq8.js";
3
+ import { o as V } from "./layout-mwnMvyc4-B2PmGvWD.js";
4
+ import { P as x } from "./_baseUniq-CXqhI00C-BfnSCqya.js";
5
+ import { a as W } from "./clone-elND5I63-U8WRvSPu.js";
6
+ import { g as G } from "./_basePickBy-CMfPif8e-CmRJF0Pz.js";
7
+ function X(e) {
8
+ var n = {
9
+ options: {
10
+ directed: e.isDirected(),
11
+ multigraph: e.isMultigraph(),
12
+ compound: e.isCompound()
13
+ },
14
+ nodes: Z(e),
15
+ edges: ee(e)
16
+ };
17
+ return x(e.graph()) || (n.value = W(e.graph())), n;
18
+ }
19
+ function Z(e) {
20
+ return G(e.nodes(), function(n) {
21
+ var r = e.node(n), s = e.parent(n), d = { v: n };
22
+ return x(r) || (d.value = r), x(s) || (d.parent = s), d;
23
+ });
24
+ }
25
+ function ee(e) {
26
+ return G(e.edges(), function(n) {
27
+ var r = e.edge(n), s = { v: n.v, w: n.w };
28
+ return x(n.name) || (s.name = n.name), x(r) || (s.value = r), s;
29
+ });
30
+ }
31
+ var u = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), ne = /* @__PURE__ */ w(() => {
32
+ N.clear(), P.clear(), u.clear();
33
+ }, "clear"), I = /* @__PURE__ */ w((e, n) => {
34
+ const r = N.get(n) || [];
35
+ return t.trace("In isDescendant", n, " ", e, " = ", r.includes(e)), r.includes(e);
36
+ }, "isDescendant"), re = /* @__PURE__ */ w((e, n) => {
37
+ const r = N.get(n) || [];
38
+ return t.info("Descendants of ", n, " is ", r), t.info("Edge is ", e), e.v === n || e.w === n ? !1 : r ? r.includes(e.v) || I(e.v, n) || I(e.w, n) || r.includes(e.w) : (t.debug("Tilt, ", n, ",not in descendants"), !1);
39
+ }, "edgeInCluster"), B = /* @__PURE__ */ w((e, n, r, s) => {
40
+ t.warn(
41
+ "Copying children of ",
42
+ e,
43
+ "root",
44
+ s,
45
+ "data",
46
+ n.node(e),
47
+ s
48
+ );
49
+ const d = n.children(e) || [];
50
+ e !== s && d.push(e), t.warn("Copying (nodes) clusterId", e, "nodes", d), d.forEach((c) => {
51
+ if (n.children(c).length > 0)
52
+ B(c, n, r, s);
53
+ else {
54
+ const o = n.node(c);
55
+ t.info("cp ", c, " to ", s, " with parent ", e), r.setNode(c, o), s !== n.parent(c) && (t.warn("Setting parent", c, n.parent(c)), r.setParent(c, n.parent(c))), e !== s && c !== e ? (t.debug("Setting parent", c, e), r.setParent(c, e)) : (t.info("In copy ", e, "root", s, "data", n.node(e), s), t.debug(
56
+ "Not Setting parent for node=",
57
+ c,
58
+ "cluster!==rootId",
59
+ e !== s,
60
+ "node!==clusterId",
61
+ c !== e
62
+ ));
63
+ const l = n.edges(c);
64
+ t.debug("Copying Edges", l), l.forEach((f) => {
65
+ t.info("Edge", f);
66
+ const E = n.edge(f.v, f.w, f.name);
67
+ t.info("Edge data", E, s);
68
+ try {
69
+ re(f, s) ? (t.info("Copying as ", f.v, f.w, E, f.name), r.setEdge(f.v, f.w, E, f.name), t.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : t.info(
70
+ "Skipping copy of edge ",
71
+ f.v,
72
+ "-->",
73
+ f.w,
74
+ " rootId: ",
75
+ s,
76
+ " clusterId:",
77
+ e
78
+ );
79
+ } catch (C) {
80
+ t.error(C);
81
+ }
82
+ });
83
+ }
84
+ t.debug("Removing node", c), n.removeNode(c);
85
+ });
86
+ }, "copy"), J = /* @__PURE__ */ w((e, n) => {
87
+ const r = n.children(e);
88
+ let s = [...r];
89
+ for (const d of r)
90
+ P.set(d, e), s = [...s, ...J(d, n)];
91
+ return s;
92
+ }, "extractDescendants"), te = /* @__PURE__ */ w((e, n, r) => {
93
+ const s = e.edges().filter((l) => l.v === n || l.w === n), d = e.edges().filter((l) => l.v === r || l.w === r), c = s.map((l) => ({ v: l.v === n ? r : l.v, w: l.w === n ? n : l.w })), o = d.map((l) => ({ v: l.v, w: l.w }));
94
+ return c.filter((l) => o.some((f) => l.v === f.v && l.w === f.w));
95
+ }, "findCommonEdges"), S = /* @__PURE__ */ w((e, n, r) => {
96
+ const s = n.children(e);
97
+ if (t.trace("Searching children of id ", e, s), s.length < 1)
98
+ return e;
99
+ let d;
100
+ for (const c of s) {
101
+ const o = S(c, n, r), l = te(n, r, o);
102
+ if (o)
103
+ if (l.length > 0)
104
+ d = o;
105
+ else
106
+ return o;
107
+ }
108
+ return d;
109
+ }, "findNonClusterChild"), O = /* @__PURE__ */ w((e) => !u.has(e) || !u.get(e).externalConnections ? e : u.has(e) ? u.get(e).id : e, "getAnchorId"), ie = /* @__PURE__ */ w((e, n) => {
110
+ if (!e || n > 10) {
111
+ t.debug("Opting out, no graph ");
112
+ return;
113
+ } else
114
+ t.debug("Opting in, graph ");
115
+ e.nodes().forEach(function(r) {
116
+ e.children(r).length > 0 && (t.warn(
117
+ "Cluster identified",
118
+ r,
119
+ " Replacement id in edges: ",
120
+ S(r, e, r)
121
+ ), N.set(r, J(r, e)), u.set(r, { id: S(r, e, r), clusterData: e.node(r) }));
122
+ }), e.nodes().forEach(function(r) {
123
+ const s = e.children(r), d = e.edges();
124
+ s.length > 0 ? (t.debug("Cluster identified", r, N), d.forEach((c) => {
125
+ const o = I(c.v, r), l = I(c.w, r);
126
+ o ^ l && (t.warn("Edge: ", c, " leaves cluster ", r), t.warn("Descendants of XXX ", r, ": ", N.get(r)), u.get(r).externalConnections = !0);
127
+ })) : t.debug("Not a cluster ", r, N);
128
+ });
129
+ for (let r of u.keys()) {
130
+ const s = u.get(r).id, d = e.parent(s);
131
+ d !== r && u.has(d) && !u.get(d).externalConnections && (u.get(r).id = d);
132
+ }
133
+ e.edges().forEach(function(r) {
134
+ const s = e.edge(r);
135
+ t.warn("Edge " + r.v + " -> " + r.w + ": " + JSON.stringify(r)), t.warn("Edge " + r.v + " -> " + r.w + ": " + JSON.stringify(e.edge(r)));
136
+ let d = r.v, c = r.w;
137
+ if (t.warn(
138
+ "Fix XXX",
139
+ u,
140
+ "ids:",
141
+ r.v,
142
+ r.w,
143
+ "Translating: ",
144
+ u.get(r.v),
145
+ " --- ",
146
+ u.get(r.w)
147
+ ), u.get(r.v) || u.get(r.w)) {
148
+ if (t.warn("Fixing and trying - removing XXX", r.v, r.w, r.name), d = O(r.v), c = O(r.w), e.removeEdge(r.v, r.w, r.name), d !== r.v) {
149
+ const o = e.parent(d);
150
+ u.get(o).externalConnections = !0, s.fromCluster = r.v;
151
+ }
152
+ if (c !== r.w) {
153
+ const o = e.parent(c);
154
+ u.get(o).externalConnections = !0, s.toCluster = r.w;
155
+ }
156
+ t.warn("Fix Replacing with XXX", d, c, r.name), e.setEdge(d, c, s, r.name);
157
+ }
158
+ }), t.warn("Adjusted Graph", X(e)), A(e, 0), t.trace(u);
159
+ }, "adjustClustersAndEdges"), A = /* @__PURE__ */ w((e, n) => {
160
+ var r, s;
161
+ if (t.warn("extractor - ", n, X(e), e.children("D")), n > 10) {
162
+ t.error("Bailing out");
163
+ return;
164
+ }
165
+ let d = e.nodes(), c = !1;
166
+ for (const o of d) {
167
+ const l = e.children(o);
168
+ c = c || l.length > 0;
169
+ }
170
+ if (!c) {
171
+ t.debug("Done, no node has children", e.nodes());
172
+ return;
173
+ }
174
+ t.debug("Nodes = ", d, n);
175
+ for (const o of d)
176
+ if (t.debug(
177
+ "Extracting node",
178
+ o,
179
+ u,
180
+ u.has(o) && !u.get(o).externalConnections,
181
+ !e.parent(o),
182
+ e.node(o),
183
+ e.children("D"),
184
+ " Depth ",
185
+ n
186
+ ), !u.has(o))
187
+ t.debug("Not a cluster", o, n);
188
+ else if (!u.get(o).externalConnections && e.children(o) && e.children(o).length > 0) {
189
+ t.warn(
190
+ "Cluster without external connections, without a parent and with children",
191
+ o,
192
+ n
193
+ );
194
+ let l = e.graph().rankdir === "TB" ? "LR" : "TB";
195
+ (s = (r = u.get(o)) == null ? void 0 : r.clusterData) != null && s.dir && (l = u.get(o).clusterData.dir, t.warn("Fixing dir", u.get(o).clusterData.dir, l));
196
+ const f = new k({
197
+ multigraph: !0,
198
+ compound: !0
199
+ }).setGraph({
200
+ rankdir: l,
201
+ nodesep: 50,
202
+ ranksep: 50,
203
+ marginx: 8,
204
+ marginy: 8
205
+ }).setDefaultEdgeLabel(function() {
206
+ return {};
207
+ });
208
+ t.warn("Old graph before copy", X(e)), B(o, e, f, o), e.setNode(o, {
209
+ clusterNode: !0,
210
+ id: o,
211
+ clusterData: u.get(o).clusterData,
212
+ label: u.get(o).label,
213
+ graph: f
214
+ }), t.warn("New graph after copy node: (", o, ")", X(f)), t.debug("Old graph after copy", X(e));
215
+ } else
216
+ t.warn(
217
+ "Cluster ** ",
218
+ o,
219
+ " **not meeting the criteria !externalConnections:",
220
+ !u.get(o).externalConnections,
221
+ " no parent: ",
222
+ !e.parent(o),
223
+ " children ",
224
+ e.children(o) && e.children(o).length > 0,
225
+ e.children("D"),
226
+ n
227
+ ), t.debug(u);
228
+ d = e.nodes(), t.warn("New list of nodes", d);
229
+ for (const o of d) {
230
+ const l = e.node(o);
231
+ t.warn(" Now next level", o, l), l != null && l.clusterNode && A(l.graph, n + 1);
232
+ }
233
+ }, "extractor"), R = /* @__PURE__ */ w((e, n) => {
234
+ if (n.length === 0)
235
+ return [];
236
+ let r = Object.assign([], n);
237
+ return n.forEach((s) => {
238
+ const d = e.children(s), c = R(e, d);
239
+ r = [...r, ...c];
240
+ }), r;
241
+ }, "sorter"), oe = /* @__PURE__ */ w((e) => R(e, e.children()), "sortNodesByHierarchy"), T = /* @__PURE__ */ w(async (e, n, r, s, d, c) => {
242
+ t.warn("Graph in recursive render:XAX", X(n), d);
243
+ const o = n.graph().rankdir;
244
+ t.trace("Dir in recursive render - dir:", o);
245
+ const l = e.insert("g").attr("class", "root");
246
+ n.nodes() ? t.info("Recursive render XXX", n.nodes()) : t.info("No nodes found for", n), n.edges().length > 0 && t.info("Recursive edges", n.edge(n.edges()[0]));
247
+ const f = l.insert("g").attr("class", "clusters"), E = l.insert("g").attr("class", "edgePaths"), C = l.insert("g").attr("class", "edgeLabels"), h = l.insert("g").attr("class", "nodes");
248
+ await Promise.all(
249
+ n.nodes().map(async function(g) {
250
+ const a = n.node(g);
251
+ if (d !== void 0) {
252
+ const i = JSON.parse(JSON.stringify(d.clusterData));
253
+ t.trace(
254
+ `Setting data for parent cluster XXX
255
+ Node.id = `,
256
+ g,
257
+ `
258
+ data=`,
259
+ i.height,
260
+ `
261
+ Parent cluster`,
262
+ d.height
263
+ ), n.setNode(d.id, i), n.parent(g) || (t.trace("Setting parent", g, d.id), n.setParent(g, d.id, i));
264
+ }
265
+ if (t.info("(Insert) Node XXX" + g + ": " + JSON.stringify(n.node(g))), a != null && a.clusterNode) {
266
+ t.info("Cluster identified XBX", g, a.width, n.node(g));
267
+ const { ranksep: i, nodesep: v } = n.graph();
268
+ a.graph.setGraph({
269
+ ...a.graph.graph(),
270
+ ranksep: i + 25,
271
+ nodesep: v
272
+ });
273
+ const m = await T(
274
+ h,
275
+ a.graph,
276
+ r,
277
+ s,
278
+ n.node(g),
279
+ c
280
+ ), b = m.elem;
281
+ _(a, b), a.diff = m.diff || 0, t.info(
282
+ "New compound node after recursive render XAX",
283
+ g,
284
+ "width",
285
+ // node,
286
+ a.width,
287
+ "height",
288
+ a.height
289
+ // node.x,
290
+ // node.y
291
+ ), H(b, a);
292
+ } else
293
+ n.children(g).length > 0 ? (t.trace(
294
+ "Cluster - the non recursive path XBX",
295
+ g,
296
+ a.id,
297
+ a,
298
+ a.width,
299
+ "Graph:",
300
+ n
301
+ ), t.trace(S(a.id, n)), u.set(a.id, { id: S(a.id, n), node: a })) : (t.trace("Node - the non recursive path XAX", g, h, n.node(g), o), await $(h, n.node(g), { config: c, dir: o }));
302
+ })
303
+ ), await (/* @__PURE__ */ w(async () => {
304
+ const g = n.edges().map(async function(a) {
305
+ const i = n.edge(a.v, a.w, a.name);
306
+ t.info("Edge " + a.v + " -> " + a.w + ": " + JSON.stringify(a)), t.info("Edge " + a.v + " -> " + a.w + ": ", a, " ", JSON.stringify(n.edge(a))), t.info(
307
+ "Fix",
308
+ u,
309
+ "ids:",
310
+ a.v,
311
+ a.w,
312
+ "Translating: ",
313
+ u.get(a.v),
314
+ u.get(a.w)
315
+ ), await q(C, i);
316
+ });
317
+ await Promise.all(g);
318
+ }, "processEdges"))(), t.info("Graph before layout:", JSON.stringify(X(n))), t.info("############################################# XXX"), t.info("### Layout ### XXX"), t.info("############################################# XXX"), V(n), t.info("Graph after layout:", JSON.stringify(X(n)));
319
+ let p = 0, { subGraphTitleTotalMargin: y } = z(c);
320
+ return await Promise.all(
321
+ oe(n).map(async function(g) {
322
+ var a;
323
+ const i = n.node(g);
324
+ if (t.info(
325
+ "Position XBX => " + g + ": (" + i.x,
326
+ "," + i.y,
327
+ ") width: ",
328
+ i.width,
329
+ " height: ",
330
+ i.height
331
+ ), i != null && i.clusterNode)
332
+ i.y += y, t.info(
333
+ "A tainted cluster node XBX1",
334
+ g,
335
+ i.id,
336
+ i.width,
337
+ i.height,
338
+ i.x,
339
+ i.y,
340
+ n.parent(g)
341
+ ), u.get(i.id).node = i, D(i);
342
+ else if (n.children(g).length > 0) {
343
+ t.info(
344
+ "A pure cluster node XBX1",
345
+ g,
346
+ i.id,
347
+ i.x,
348
+ i.y,
349
+ i.width,
350
+ i.height,
351
+ n.parent(g)
352
+ ), i.height += y, n.node(i.parentId);
353
+ const v = (i == null ? void 0 : i.padding) / 2 || 0, m = ((a = i == null ? void 0 : i.labelBBox) == null ? void 0 : a.height) || 0, b = m - v || 0;
354
+ t.debug("OffsetY", b, "labelHeight", m, "halfPadding", v), await K(f, i), u.get(i.id).node = i;
355
+ } else {
356
+ const v = n.node(i.parentId);
357
+ i.y += y / 2, t.info(
358
+ "A regular node XBX1 - using the padding",
359
+ i.id,
360
+ "parent",
361
+ i.parentId,
362
+ i.width,
363
+ i.height,
364
+ i.x,
365
+ i.y,
366
+ "offsetY",
367
+ i.offsetY,
368
+ "parent",
369
+ v,
370
+ v == null ? void 0 : v.offsetY,
371
+ i
372
+ ), D(i);
373
+ }
374
+ })
375
+ ), n.edges().forEach(function(g) {
376
+ const a = n.edge(g);
377
+ t.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(a), a), a.points.forEach((b) => b.y += y / 2);
378
+ const i = n.node(g.v);
379
+ var v = n.node(g.w);
380
+ const m = Q(E, a, u, r, i, v, s);
381
+ U(a, m);
382
+ }), n.nodes().forEach(function(g) {
383
+ const a = n.node(g);
384
+ t.info(g, a.type, a.diff), a.isGroup && (p = a.diff);
385
+ }), t.warn("Returning from recursive render XAX", l, p), { elem: l, diff: p };
386
+ }, "recursiveRender"), ue = /* @__PURE__ */ w(async (e, n) => {
387
+ var r, s, d, c, o, l;
388
+ const f = new k({
389
+ multigraph: !0,
390
+ compound: !0
391
+ }).setGraph({
392
+ rankdir: e.direction,
393
+ nodesep: ((r = e.config) == null ? void 0 : r.nodeSpacing) || ((d = (s = e.config) == null ? void 0 : s.flowchart) == null ? void 0 : d.nodeSpacing) || e.nodeSpacing,
394
+ ranksep: ((c = e.config) == null ? void 0 : c.rankSpacing) || ((l = (o = e.config) == null ? void 0 : o.flowchart) == null ? void 0 : l.rankSpacing) || e.rankSpacing,
395
+ marginx: 8,
396
+ marginy: 8
397
+ }).setDefaultEdgeLabel(function() {
398
+ return {};
399
+ }), E = n.select("g");
400
+ L(E, e.markers, e.type, e.diagramId), M(), j(), F(), ne(), e.nodes.forEach((h) => {
401
+ f.setNode(h.id, { ...h }), h.parentId && f.setParent(h.id, h.parentId);
402
+ }), t.debug("Edges:", e.edges), e.edges.forEach((h) => {
403
+ if (h.start === h.end) {
404
+ const p = h.start, y = p + "---" + p + "---1", g = p + "---" + p + "---2", a = f.node(p);
405
+ f.setNode(y, {
406
+ domId: y,
407
+ id: y,
408
+ parentId: a.parentId,
409
+ labelStyle: "",
410
+ label: "",
411
+ padding: 0,
412
+ shape: "labelRect",
413
+ // shape: 'rect',
414
+ style: "",
415
+ width: 10,
416
+ height: 10
417
+ }), f.setParent(y, a.parentId), f.setNode(g, {
418
+ domId: g,
419
+ id: g,
420
+ parentId: a.parentId,
421
+ labelStyle: "",
422
+ padding: 0,
423
+ // shape: 'rect',
424
+ shape: "labelRect",
425
+ label: "",
426
+ style: "",
427
+ width: 10,
428
+ height: 10
429
+ }), f.setParent(g, a.parentId);
430
+ const i = structuredClone(h), v = structuredClone(h), m = structuredClone(h);
431
+ i.label = "", i.arrowTypeEnd = "none", i.id = p + "-cyclic-special-1", v.arrowTypeEnd = "none", v.id = p + "-cyclic-special-mid", m.label = "", a.isGroup && (i.fromCluster = p, m.toCluster = p), m.id = p + "-cyclic-special-2", f.setEdge(p, y, i, p + "-cyclic-special-0"), f.setEdge(y, g, v, p + "-cyclic-special-1"), f.setEdge(g, p, m, p + "-cyc<lic-special-2");
432
+ } else
433
+ f.setEdge(h.start, h.end, { ...h }, h.id);
434
+ }), t.warn("Graph at first:", JSON.stringify(X(f))), ie(f), t.warn("Graph after XAX:", JSON.stringify(X(f)));
435
+ const C = Y();
436
+ await T(
437
+ E,
438
+ f,
439
+ e.type,
440
+ e.diagramId,
441
+ void 0,
442
+ C
443
+ );
444
+ }, "render");
445
+ export {
446
+ ue as render
447
+ };