@kong-ui-public/documentation 0.4.19 → 0.4.20

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 (42) hide show
  1. package/dist/{arc-COsOHw50-C9iRzo98.js → arc-COsOHw50-8b0vvcWq.js} +31 -31
  2. package/dist/{blockDiagram-91b80b7a-BKGTNNj9-DRpDtGmh.js → blockDiagram-91b80b7a-BKGTNNj9-pqE_enew.js} +5 -5
  3. package/dist/{c4Diagram-b2a90758-BL_2KQjG-DzcyQrIW.js → c4Diagram-b2a90758-BL_2KQjG-CDMqw02J.js} +2 -2
  4. package/dist/channel-ByAWxImn-Cm6gPSuY.js +5 -0
  5. package/dist/{classDiagram-30eddba6-k40qxgte-CwcMszjH.js → classDiagram-30eddba6-k40qxgte-BjlY99VJ.js} +5 -5
  6. package/dist/{classDiagram-v2-f2df5561-Bhszhjj1-DDKkcKs5.js → classDiagram-v2-f2df5561-Bhszhjj1-BXjyowVF.js} +5 -5
  7. package/dist/{clone-B9jLUWz8-D8JWw9w8.js → clone-B9jLUWz8-B_0rcCoo.js} +1 -1
  8. package/dist/{createText-6b48ae7d-CwDinsnJ-Cu8l2Npn.js → createText-6b48ae7d-CwDinsnJ-DaXMLq6o.js} +2 -2
  9. package/dist/documentation.es.js +4 -4
  10. package/dist/documentation.umd.js +76 -76
  11. package/dist/{edges-d32062c0-D81gGEnb-Dx3zO_em.js → edges-d32062c0-D81gGEnb-Dz0apkQG.js} +45 -45
  12. package/dist/{erDiagram-47591fe2-Ct0H1qRr-BT1e4kcz.js → erDiagram-47591fe2-Ct0H1qRr-CfxVZWGk.js} +4 -4
  13. package/dist/{flowDb-4b19a42f-DUQIsrJ6-Cx4J0SDV.js → flowDb-4b19a42f-DUQIsrJ6-BZeyLbaL.js} +1 -1
  14. package/dist/{flowDiagram-5540d9b9-lDK0hXfd-B7nTp1Ow.js → flowDiagram-5540d9b9-lDK0hXfd-DSlzf5Zs.js} +6 -6
  15. package/dist/{flowDiagram-v2-3b53844e-C-MZcHj1-CRI7-nX2.js → flowDiagram-v2-3b53844e-C-MZcHj1-DRuOUcaX.js} +5 -5
  16. package/dist/{flowchart-elk-definition-5fe447d6-Cl1YzK8W-DUtzoI95.js → flowchart-elk-definition-5fe447d6-Cl1YzK8W-Bn6CXlME.js} +4470 -4459
  17. package/dist/{ganttDiagram-9a3bba1f-DgegevHg-Dnd48qsT.js → ganttDiagram-9a3bba1f-DgegevHg-FjtZIgs3.js} +2 -2
  18. package/dist/{gitGraphDiagram-96e6b4ee-B544kZVD-Ds9cICFs.js → gitGraphDiagram-96e6b4ee-B544kZVD-DS3U7u7x.js} +1 -1
  19. package/dist/{graph-nSQNMZNt-1Zx0M3uO.js → graph-nSQNMZNt-WwQ66jlk.js} +226 -216
  20. package/dist/{index-xwCd1OzE.js → index-B2yqGQ7M.js} +101 -94
  21. package/dist/{index-fc10efb0-BQFKNTyl-BdJOA2P3.js → index-fc10efb0-BQFKNTyl-DcfuI7jC.js} +6 -6
  22. package/dist/{infoDiagram-bcd20f53-DA00HiLo-DzCdMjzM.js → infoDiagram-bcd20f53-DA00HiLo-DGWjVZk3.js} +12 -12
  23. package/dist/{journeyDiagram-4fe6b3dc-Dy2VexAM-Bg-KZCAV.js → journeyDiagram-4fe6b3dc-Dy2VexAM-BH-dvv4G.js} +50 -50
  24. package/dist/{layout-CsrWmvDo-v2_rFy6R.js → layout-CsrWmvDo-DWZkjCNe.js} +331 -321
  25. package/dist/{line-_Hv2N8bu-DrMVavBT.js → line-_Hv2N8bu-f1gyQCDH.js} +1 -1
  26. package/dist/{linear-Bq62Qb31-Bjior_ce.js → linear-Bq62Qb31-ng9-yWgD.js} +35 -35
  27. package/dist/{mindmap-definition-f354de21-6GdeE-da-pTppd7Xw.js → mindmap-definition-f354de21-6GdeE-da-rihm8Sdq.js} +432 -432
  28. package/dist/{pieDiagram-79897490--sueuFsN-CypYOMk7.js → pieDiagram-79897490--sueuFsN-CYUjBaRR.js} +12 -12
  29. package/dist/{quadrantDiagram-62f64e94-B45V10Ws-DdADLB2x.js → quadrantDiagram-62f64e94-B45V10Ws-6IK0wm6a.js} +2 -2
  30. package/dist/{requirementDiagram-05bf5f74-DKrzFj3--CY2rfWob.js → requirementDiagram-05bf5f74-DKrzFj3--_AWsFotz.js} +4 -4
  31. package/dist/{sankeyDiagram-97764748-Cal39XvH-vpwLqAXQ.js → sankeyDiagram-97764748-Cal39XvH-mcOTDG5E.js} +1 -1
  32. package/dist/{sequenceDiagram-acc0e65c-C7SBKcFC-D6wvY-06.js → sequenceDiagram-acc0e65c-C7SBKcFC-Cg_BNnXE.js} +290 -290
  33. package/dist/{stateDiagram-0ff1cf1a-CeTkJw-0-Di3fo0N3.js → stateDiagram-0ff1cf1a-CeTkJw-0-BMASGNWc.js} +5 -5
  34. package/dist/{stateDiagram-v2-9a9d610d-B6v4YFRe-BGfo9HO9.js → stateDiagram-v2-9a9d610d-B6v4YFRe-D_tcA6wS.js} +5 -5
  35. package/dist/{styles-3ed67cfa-BKhmbt4H-C_loWuBL.js → styles-3ed67cfa-BKhmbt4H-abIa6vZU.js} +4 -4
  36. package/dist/{styles-991ebdfc-D52vcIGN-DvArqWeB.js → styles-991ebdfc-D52vcIGN-CLTEdyii.js} +1 -1
  37. package/dist/{styles-d20c7d72-0tQ-upPv-DY7ACpcb.js → styles-d20c7d72-0tQ-upPv-DaojUxDU.js} +1 -1
  38. package/dist/{svgDrawCommon-5ccd53ef-CUtig_WQ-DhwwSpmA.js → svgDrawCommon-5ccd53ef-CUtig_WQ-CF530_Cl.js} +1 -1
  39. package/dist/{timeline-definition-fea2a41d-DMC1sAGv-C0IHxruF.js → timeline-definition-fea2a41d-DMC1sAGv-DCM5EaJv.js} +2 -2
  40. package/dist/{xychartDiagram-ab372869-BsavOqc0-D2H7T7LH.js → xychartDiagram-ab372869-BsavOqc0-DP2IGmLs.js} +12 -12
  41. package/package.json +2 -2
  42. package/dist/channel-ByAWxImn-BzW5YEfX.js +0 -5
@@ -1,11 +1,11 @@
1
- import { m as Zt, g as Ee, y as we, x as ve, c as at, s as Gt, b as _e, a as ke, j as v, aN as te, b1 as nt, A as Pe, l as K, d as It, r as ee, b0 as $t, b2 as Le, b3 as Et, e as Ie, h as Pt, i as Me, z as $ } from "./index-xwCd1OzE.js";
2
- import { l as Ne, x as Ae, y as Se, h as Oe, m as Wt, g as Mt } from "./svgDrawCommon-5ccd53ef-CUtig_WQ-DhwwSpmA.js";
1
+ import { m as Zt, g as Ee, y as we, x as ve, c as at, s as Gt, b as _e, a as ke, j as v, aO as te, b2 as nt, A as Pe, l as K, d as It, r as ee, b1 as $t, b3 as Le, b4 as Et, e as Ie, h as Pt, i as Me, z as $ } from "./index-B2yqGQ7M.js";
2
+ import { l as Ne, x as Ae, y as Se, h as Oe, m as Wt, g as Mt } from "./svgDrawCommon-5ccd53ef-CUtig_WQ-CF530_Cl.js";
3
3
  var Yt = function() {
4
4
  var t = function(it, T, k, f) {
5
5
  for (k = k || {}, f = it.length; f--; k[it[f]] = T)
6
6
  ;
7
7
  return k;
8
- }, e = [1, 2], c = [1, 3], a = [1, 4], s = [2, 4], i = [1, 9], l = [1, 11], n = [1, 13], h = [1, 14], r = [1, 16], u = [1, 17], b = [1, 18], g = [1, 24], y = [1, 25], w = [1, 26], _ = [1, 27], L = [1, 28], R = [1, 29], N = [1, 30], C = [1, 31], S = [1, 32], F = [1, 33], W = [1, 34], X = [1, 35], G = [1, 36], q = [1, 37], z = [1, 38], B = [1, 39], V = [1, 41], J = [1, 42], H = [1, 43], Q = [1, 44], tt = [1, 45], M = [1, 46], m = [1, 4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 47, 48, 49, 50, 52, 53, 54, 59, 60, 61, 62, 70], P = [4, 5, 16, 50, 52, 53], Z = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 50, 52, 53, 54, 59, 60, 61, 62, 70], rt = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 49, 50, 52, 53, 54, 59, 60, 61, 62, 70], I = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 48, 50, 52, 53, 54, 59, 60, 61, 62, 70], Ut = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 47, 50, 52, 53, 54, 59, 60, 61, 62, 70], pt = [68, 69, 70], ct = [1, 120], At = {
8
+ }, e = [1, 2], l = [1, 3], a = [1, 4], s = [2, 4], i = [1, 9], n = [1, 11], c = [1, 13], h = [1, 14], r = [1, 16], u = [1, 17], b = [1, 18], g = [1, 24], y = [1, 25], w = [1, 26], _ = [1, 27], L = [1, 28], R = [1, 29], N = [1, 30], C = [1, 31], S = [1, 32], F = [1, 33], W = [1, 34], X = [1, 35], G = [1, 36], q = [1, 37], z = [1, 38], B = [1, 39], V = [1, 41], J = [1, 42], H = [1, 43], Q = [1, 44], tt = [1, 45], M = [1, 46], m = [1, 4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 47, 48, 49, 50, 52, 53, 54, 59, 60, 61, 62, 70], P = [4, 5, 16, 50, 52, 53], Z = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 50, 52, 53, 54, 59, 60, 61, 62, 70], rt = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 49, 50, 52, 53, 54, 59, 60, 61, 62, 70], I = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 48, 50, 52, 53, 54, 59, 60, 61, 62, 70], Ut = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 47, 50, 52, 53, 54, 59, 60, 61, 62, 70], pt = [68, 69, 70], ct = [1, 120], At = {
9
9
  trace: function() {
10
10
  },
11
11
  yy: {},
@@ -201,7 +201,7 @@ var Yt = function() {
201
201
  break;
202
202
  }
203
203
  },
204
- table: [{ 3: 1, 4: e, 5: c, 6: a }, { 1: [3] }, { 3: 5, 4: e, 5: c, 6: a }, { 3: 6, 4: e, 5: c, 6: a }, t([1, 4, 5, 13, 14, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 50, 52, 53, 54, 59, 60, 61, 62, 70], s, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: i, 5: l, 8: 8, 9: 10, 12: 12, 13: n, 14: h, 17: 15, 18: r, 21: u, 22: 40, 23: b, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: y, 31: w, 33: _, 35: L, 36: R, 37: N, 38: C, 39: S, 41: F, 43: W, 44: X, 46: G, 50: q, 52: z, 53: B, 54: V, 59: J, 60: H, 61: Q, 62: tt, 70: M }, t(m, [2, 5]), { 9: 47, 12: 12, 13: n, 14: h, 17: 15, 18: r, 21: u, 22: 40, 23: b, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: y, 31: w, 33: _, 35: L, 36: R, 37: N, 38: C, 39: S, 41: F, 43: W, 44: X, 46: G, 50: q, 52: z, 53: B, 54: V, 59: J, 60: H, 61: Q, 62: tt, 70: M }, t(m, [2, 7]), t(m, [2, 8]), t(m, [2, 14]), { 12: 48, 50: q, 52: z, 53: B }, { 15: [1, 49] }, { 5: [1, 50] }, { 5: [1, 53], 19: [1, 51], 20: [1, 52] }, { 22: 54, 70: M }, { 22: 55, 70: M }, { 5: [1, 56] }, { 5: [1, 57] }, { 5: [1, 58] }, { 5: [1, 59] }, { 5: [1, 60] }, t(m, [2, 29]), t(m, [2, 30]), { 32: [1, 61] }, { 34: [1, 62] }, t(m, [2, 33]), { 15: [1, 63] }, { 15: [1, 64] }, { 15: [1, 65] }, { 15: [1, 66] }, { 15: [1, 67] }, { 15: [1, 68] }, { 15: [1, 69] }, { 15: [1, 70] }, { 22: 71, 70: M }, { 22: 72, 70: M }, { 22: 73, 70: M }, { 67: 74, 71: [1, 75], 72: [1, 76], 73: [1, 77], 74: [1, 78], 75: [1, 79], 76: [1, 80], 77: [1, 81], 78: [1, 82] }, { 55: 83, 57: [1, 84], 65: [1, 85], 66: [1, 86] }, { 22: 87, 70: M }, { 22: 88, 70: M }, { 22: 89, 70: M }, { 22: 90, 70: M }, t([5, 51, 64, 71, 72, 73, 74, 75, 76, 77, 78, 79], [2, 68]), t(m, [2, 6]), t(m, [2, 15]), t(P, [2, 9], { 10: 91 }), t(m, [2, 17]), { 5: [1, 93], 19: [1, 92] }, { 5: [1, 94] }, t(m, [2, 21]), { 5: [1, 95] }, { 5: [1, 96] }, t(m, [2, 24]), t(m, [2, 25]), t(m, [2, 26]), t(m, [2, 27]), t(m, [2, 28]), t(m, [2, 31]), t(m, [2, 32]), t(Z, s, { 7: 97 }), t(Z, s, { 7: 98 }), t(Z, s, { 7: 99 }), t(rt, s, { 40: 100, 7: 101 }), t(I, s, { 42: 102, 7: 103 }), t(I, s, { 7: 103, 42: 104 }), t(Ut, s, { 45: 105, 7: 106 }), t(Z, s, { 7: 107 }), { 5: [1, 109], 51: [1, 108] }, { 5: [1, 111], 51: [1, 110] }, { 5: [1, 112] }, { 22: 115, 68: [1, 113], 69: [1, 114], 70: M }, t(pt, [2, 69]), t(pt, [2, 70]), t(pt, [2, 71]), t(pt, [2, 72]), t(pt, [2, 73]), t(pt, [2, 74]), t(pt, [2, 75]), t(pt, [2, 76]), { 22: 116, 70: M }, { 22: 118, 58: 117, 70: M }, { 70: [2, 63] }, { 70: [2, 64] }, { 56: 119, 79: ct }, { 56: 121, 79: ct }, { 56: 122, 79: ct }, { 56: 123, 79: ct }, { 4: [1, 126], 5: [1, 128], 11: 125, 12: 127, 16: [1, 124], 50: q, 52: z, 53: B }, { 5: [1, 129] }, t(m, [2, 19]), t(m, [2, 20]), t(m, [2, 22]), t(m, [2, 23]), { 4: i, 5: l, 8: 8, 9: 10, 12: 12, 13: n, 14: h, 16: [1, 130], 17: 15, 18: r, 21: u, 22: 40, 23: b, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: y, 31: w, 33: _, 35: L, 36: R, 37: N, 38: C, 39: S, 41: F, 43: W, 44: X, 46: G, 50: q, 52: z, 53: B, 54: V, 59: J, 60: H, 61: Q, 62: tt, 70: M }, { 4: i, 5: l, 8: 8, 9: 10, 12: 12, 13: n, 14: h, 16: [1, 131], 17: 15, 18: r, 21: u, 22: 40, 23: b, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: y, 31: w, 33: _, 35: L, 36: R, 37: N, 38: C, 39: S, 41: F, 43: W, 44: X, 46: G, 50: q, 52: z, 53: B, 54: V, 59: J, 60: H, 61: Q, 62: tt, 70: M }, { 4: i, 5: l, 8: 8, 9: 10, 12: 12, 13: n, 14: h, 16: [1, 132], 17: 15, 18: r, 21: u, 22: 40, 23: b, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: y, 31: w, 33: _, 35: L, 36: R, 37: N, 38: C, 39: S, 41: F, 43: W, 44: X, 46: G, 50: q, 52: z, 53: B, 54: V, 59: J, 60: H, 61: Q, 62: tt, 70: M }, { 16: [1, 133] }, { 4: i, 5: l, 8: 8, 9: 10, 12: 12, 13: n, 14: h, 16: [2, 46], 17: 15, 18: r, 21: u, 22: 40, 23: b, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: y, 31: w, 33: _, 35: L, 36: R, 37: N, 38: C, 39: S, 41: F, 43: W, 44: X, 46: G, 49: [1, 134], 50: q, 52: z, 53: B, 54: V, 59: J, 60: H, 61: Q, 62: tt, 70: M }, { 16: [1, 135] }, { 4: i, 5: l, 8: 8, 9: 10, 12: 12, 13: n, 14: h, 16: [2, 44], 17: 15, 18: r, 21: u, 22: 40, 23: b, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: y, 31: w, 33: _, 35: L, 36: R, 37: N, 38: C, 39: S, 41: F, 43: W, 44: X, 46: G, 48: [1, 136], 50: q, 52: z, 53: B, 54: V, 59: J, 60: H, 61: Q, 62: tt, 70: M }, { 16: [1, 137] }, { 16: [1, 138] }, { 4: i, 5: l, 8: 8, 9: 10, 12: 12, 13: n, 14: h, 16: [2, 42], 17: 15, 18: r, 21: u, 22: 40, 23: b, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: y, 31: w, 33: _, 35: L, 36: R, 37: N, 38: C, 39: S, 41: F, 43: W, 44: X, 46: G, 47: [1, 139], 50: q, 52: z, 53: B, 54: V, 59: J, 60: H, 61: Q, 62: tt, 70: M }, { 4: i, 5: l, 8: 8, 9: 10, 12: 12, 13: n, 14: h, 16: [1, 140], 17: 15, 18: r, 21: u, 22: 40, 23: b, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: y, 31: w, 33: _, 35: L, 36: R, 37: N, 38: C, 39: S, 41: F, 43: W, 44: X, 46: G, 50: q, 52: z, 53: B, 54: V, 59: J, 60: H, 61: Q, 62: tt, 70: M }, { 15: [1, 141] }, t(m, [2, 49]), { 15: [1, 142] }, t(m, [2, 51]), t(m, [2, 52]), { 22: 143, 70: M }, { 22: 144, 70: M }, { 56: 145, 79: ct }, { 56: 146, 79: ct }, { 56: 147, 79: ct }, { 64: [1, 148], 79: [2, 62] }, { 5: [2, 55] }, { 5: [2, 77] }, { 5: [2, 56] }, { 5: [2, 57] }, { 5: [2, 58] }, t(m, [2, 16]), t(P, [2, 10]), { 12: 149, 50: q, 52: z, 53: B }, t(P, [2, 12]), t(P, [2, 13]), t(m, [2, 18]), t(m, [2, 34]), t(m, [2, 35]), t(m, [2, 36]), t(m, [2, 37]), { 15: [1, 150] }, t(m, [2, 38]), { 15: [1, 151] }, t(m, [2, 39]), t(m, [2, 40]), { 15: [1, 152] }, t(m, [2, 41]), { 5: [1, 153] }, { 5: [1, 154] }, { 56: 155, 79: ct }, { 56: 156, 79: ct }, { 5: [2, 67] }, { 5: [2, 53] }, { 5: [2, 54] }, { 22: 157, 70: M }, t(P, [2, 11]), t(rt, s, { 7: 101, 40: 158 }), t(I, s, { 7: 103, 42: 159 }), t(Ut, s, { 7: 106, 45: 160 }), t(m, [2, 48]), t(m, [2, 50]), { 5: [2, 65] }, { 5: [2, 66] }, { 79: [2, 61] }, { 16: [2, 47] }, { 16: [2, 45] }, { 16: [2, 43] }],
204
+ table: [{ 3: 1, 4: e, 5: l, 6: a }, { 1: [3] }, { 3: 5, 4: e, 5: l, 6: a }, { 3: 6, 4: e, 5: l, 6: a }, t([1, 4, 5, 13, 14, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 50, 52, 53, 54, 59, 60, 61, 62, 70], s, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: i, 5: n, 8: 8, 9: 10, 12: 12, 13: c, 14: h, 17: 15, 18: r, 21: u, 22: 40, 23: b, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: y, 31: w, 33: _, 35: L, 36: R, 37: N, 38: C, 39: S, 41: F, 43: W, 44: X, 46: G, 50: q, 52: z, 53: B, 54: V, 59: J, 60: H, 61: Q, 62: tt, 70: M }, t(m, [2, 5]), { 9: 47, 12: 12, 13: c, 14: h, 17: 15, 18: r, 21: u, 22: 40, 23: b, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: y, 31: w, 33: _, 35: L, 36: R, 37: N, 38: C, 39: S, 41: F, 43: W, 44: X, 46: G, 50: q, 52: z, 53: B, 54: V, 59: J, 60: H, 61: Q, 62: tt, 70: M }, t(m, [2, 7]), t(m, [2, 8]), t(m, [2, 14]), { 12: 48, 50: q, 52: z, 53: B }, { 15: [1, 49] }, { 5: [1, 50] }, { 5: [1, 53], 19: [1, 51], 20: [1, 52] }, { 22: 54, 70: M }, { 22: 55, 70: M }, { 5: [1, 56] }, { 5: [1, 57] }, { 5: [1, 58] }, { 5: [1, 59] }, { 5: [1, 60] }, t(m, [2, 29]), t(m, [2, 30]), { 32: [1, 61] }, { 34: [1, 62] }, t(m, [2, 33]), { 15: [1, 63] }, { 15: [1, 64] }, { 15: [1, 65] }, { 15: [1, 66] }, { 15: [1, 67] }, { 15: [1, 68] }, { 15: [1, 69] }, { 15: [1, 70] }, { 22: 71, 70: M }, { 22: 72, 70: M }, { 22: 73, 70: M }, { 67: 74, 71: [1, 75], 72: [1, 76], 73: [1, 77], 74: [1, 78], 75: [1, 79], 76: [1, 80], 77: [1, 81], 78: [1, 82] }, { 55: 83, 57: [1, 84], 65: [1, 85], 66: [1, 86] }, { 22: 87, 70: M }, { 22: 88, 70: M }, { 22: 89, 70: M }, { 22: 90, 70: M }, t([5, 51, 64, 71, 72, 73, 74, 75, 76, 77, 78, 79], [2, 68]), t(m, [2, 6]), t(m, [2, 15]), t(P, [2, 9], { 10: 91 }), t(m, [2, 17]), { 5: [1, 93], 19: [1, 92] }, { 5: [1, 94] }, t(m, [2, 21]), { 5: [1, 95] }, { 5: [1, 96] }, t(m, [2, 24]), t(m, [2, 25]), t(m, [2, 26]), t(m, [2, 27]), t(m, [2, 28]), t(m, [2, 31]), t(m, [2, 32]), t(Z, s, { 7: 97 }), t(Z, s, { 7: 98 }), t(Z, s, { 7: 99 }), t(rt, s, { 40: 100, 7: 101 }), t(I, s, { 42: 102, 7: 103 }), t(I, s, { 7: 103, 42: 104 }), t(Ut, s, { 45: 105, 7: 106 }), t(Z, s, { 7: 107 }), { 5: [1, 109], 51: [1, 108] }, { 5: [1, 111], 51: [1, 110] }, { 5: [1, 112] }, { 22: 115, 68: [1, 113], 69: [1, 114], 70: M }, t(pt, [2, 69]), t(pt, [2, 70]), t(pt, [2, 71]), t(pt, [2, 72]), t(pt, [2, 73]), t(pt, [2, 74]), t(pt, [2, 75]), t(pt, [2, 76]), { 22: 116, 70: M }, { 22: 118, 58: 117, 70: M }, { 70: [2, 63] }, { 70: [2, 64] }, { 56: 119, 79: ct }, { 56: 121, 79: ct }, { 56: 122, 79: ct }, { 56: 123, 79: ct }, { 4: [1, 126], 5: [1, 128], 11: 125, 12: 127, 16: [1, 124], 50: q, 52: z, 53: B }, { 5: [1, 129] }, t(m, [2, 19]), t(m, [2, 20]), t(m, [2, 22]), t(m, [2, 23]), { 4: i, 5: n, 8: 8, 9: 10, 12: 12, 13: c, 14: h, 16: [1, 130], 17: 15, 18: r, 21: u, 22: 40, 23: b, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: y, 31: w, 33: _, 35: L, 36: R, 37: N, 38: C, 39: S, 41: F, 43: W, 44: X, 46: G, 50: q, 52: z, 53: B, 54: V, 59: J, 60: H, 61: Q, 62: tt, 70: M }, { 4: i, 5: n, 8: 8, 9: 10, 12: 12, 13: c, 14: h, 16: [1, 131], 17: 15, 18: r, 21: u, 22: 40, 23: b, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: y, 31: w, 33: _, 35: L, 36: R, 37: N, 38: C, 39: S, 41: F, 43: W, 44: X, 46: G, 50: q, 52: z, 53: B, 54: V, 59: J, 60: H, 61: Q, 62: tt, 70: M }, { 4: i, 5: n, 8: 8, 9: 10, 12: 12, 13: c, 14: h, 16: [1, 132], 17: 15, 18: r, 21: u, 22: 40, 23: b, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: y, 31: w, 33: _, 35: L, 36: R, 37: N, 38: C, 39: S, 41: F, 43: W, 44: X, 46: G, 50: q, 52: z, 53: B, 54: V, 59: J, 60: H, 61: Q, 62: tt, 70: M }, { 16: [1, 133] }, { 4: i, 5: n, 8: 8, 9: 10, 12: 12, 13: c, 14: h, 16: [2, 46], 17: 15, 18: r, 21: u, 22: 40, 23: b, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: y, 31: w, 33: _, 35: L, 36: R, 37: N, 38: C, 39: S, 41: F, 43: W, 44: X, 46: G, 49: [1, 134], 50: q, 52: z, 53: B, 54: V, 59: J, 60: H, 61: Q, 62: tt, 70: M }, { 16: [1, 135] }, { 4: i, 5: n, 8: 8, 9: 10, 12: 12, 13: c, 14: h, 16: [2, 44], 17: 15, 18: r, 21: u, 22: 40, 23: b, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: y, 31: w, 33: _, 35: L, 36: R, 37: N, 38: C, 39: S, 41: F, 43: W, 44: X, 46: G, 48: [1, 136], 50: q, 52: z, 53: B, 54: V, 59: J, 60: H, 61: Q, 62: tt, 70: M }, { 16: [1, 137] }, { 16: [1, 138] }, { 4: i, 5: n, 8: 8, 9: 10, 12: 12, 13: c, 14: h, 16: [2, 42], 17: 15, 18: r, 21: u, 22: 40, 23: b, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: y, 31: w, 33: _, 35: L, 36: R, 37: N, 38: C, 39: S, 41: F, 43: W, 44: X, 46: G, 47: [1, 139], 50: q, 52: z, 53: B, 54: V, 59: J, 60: H, 61: Q, 62: tt, 70: M }, { 4: i, 5: n, 8: 8, 9: 10, 12: 12, 13: c, 14: h, 16: [1, 140], 17: 15, 18: r, 21: u, 22: 40, 23: b, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: y, 31: w, 33: _, 35: L, 36: R, 37: N, 38: C, 39: S, 41: F, 43: W, 44: X, 46: G, 50: q, 52: z, 53: B, 54: V, 59: J, 60: H, 61: Q, 62: tt, 70: M }, { 15: [1, 141] }, t(m, [2, 49]), { 15: [1, 142] }, t(m, [2, 51]), t(m, [2, 52]), { 22: 143, 70: M }, { 22: 144, 70: M }, { 56: 145, 79: ct }, { 56: 146, 79: ct }, { 56: 147, 79: ct }, { 64: [1, 148], 79: [2, 62] }, { 5: [2, 55] }, { 5: [2, 77] }, { 5: [2, 56] }, { 5: [2, 57] }, { 5: [2, 58] }, t(m, [2, 16]), t(P, [2, 10]), { 12: 149, 50: q, 52: z, 53: B }, t(P, [2, 12]), t(P, [2, 13]), t(m, [2, 18]), t(m, [2, 34]), t(m, [2, 35]), t(m, [2, 36]), t(m, [2, 37]), { 15: [1, 150] }, t(m, [2, 38]), { 15: [1, 151] }, t(m, [2, 39]), t(m, [2, 40]), { 15: [1, 152] }, t(m, [2, 41]), { 5: [1, 153] }, { 5: [1, 154] }, { 56: 155, 79: ct }, { 56: 156, 79: ct }, { 5: [2, 67] }, { 5: [2, 53] }, { 5: [2, 54] }, { 22: 157, 70: M }, t(P, [2, 11]), t(rt, s, { 7: 101, 40: 158 }), t(I, s, { 7: 103, 42: 159 }), t(Ut, s, { 7: 106, 45: 160 }), t(m, [2, 48]), t(m, [2, 50]), { 5: [2, 65] }, { 5: [2, 66] }, { 79: [2, 61] }, { 16: [2, 47] }, { 16: [2, 45] }, { 16: [2, 43] }],
205
205
  defaultActions: { 5: [2, 1], 6: [2, 2], 85: [2, 63], 86: [2, 64], 119: [2, 55], 120: [2, 77], 121: [2, 56], 122: [2, 57], 123: [2, 58], 145: [2, 67], 146: [2, 53], 147: [2, 54], 155: [2, 65], 156: [2, 66], 157: [2, 61], 158: [2, 47], 159: [2, 45], 160: [2, 43] },
206
206
  parseError: function(it, T) {
207
207
  if (T.recoverable)
@@ -625,7 +625,7 @@ const E = new Re(() => ({
625
625
  fill: t.color,
626
626
  actorKeys: []
627
627
  }), E.records.currentBox = E.records.boxes.slice(-1)[0];
628
- }, Bt = function(t, e, c, a) {
628
+ }, Bt = function(t, e, l, a) {
629
629
  let s = E.records.currentBox;
630
630
  const i = E.records.actors[t];
631
631
  if (i) {
@@ -633,14 +633,14 @@ const E = new Re(() => ({
633
633
  throw new Error(
634
634
  "A same participant should only be defined in one Box: " + i.name + " can't be in '" + i.box.name + "' and in '" + E.records.currentBox.name + "' at the same time."
635
635
  );
636
- if (s = i.box ? i.box : E.records.currentBox, i.box = s, i && e === i.name && c == null)
636
+ if (s = i.box ? i.box : E.records.currentBox, i.box = s, i && e === i.name && l == null)
637
637
  return;
638
638
  }
639
- (c == null || c.text == null) && (c = { text: e, wrap: null, type: a }), (a == null || c.text == null) && (c = { text: e, wrap: null, type: a }), E.records.actors[t] = {
639
+ (l == null || l.text == null) && (l = { text: e, wrap: null, type: a }), (a == null || l.text == null) && (l = { text: e, wrap: null, type: a }), E.records.actors[t] = {
640
640
  box: s,
641
641
  name: e,
642
- description: c.text,
643
- wrap: c.wrap === void 0 && xt() || !!c.wrap,
642
+ description: l.text,
643
+ wrap: l.wrap === void 0 && xt() || !!l.wrap,
644
644
  prevActor: E.records.prevActor,
645
645
  links: {},
646
646
  properties: {},
@@ -649,19 +649,19 @@ const E = new Re(() => ({
649
649
  type: a || "participant"
650
650
  }, E.records.prevActor && E.records.actors[E.records.prevActor] && (E.records.actors[E.records.prevActor].nextActor = t), E.records.currentBox && E.records.currentBox.actorKeys.push(t), E.records.prevActor = t;
651
651
  }, $e = (t) => {
652
- let e, c = 0;
652
+ let e, l = 0;
653
653
  for (e = 0; e < E.records.messages.length; e++)
654
- E.records.messages[e].type === Tt.ACTIVE_START && E.records.messages[e].from.actor === t && c++, E.records.messages[e].type === Tt.ACTIVE_END && E.records.messages[e].from.actor === t && c--;
655
- return c;
656
- }, Ye = function(t, e, c, a) {
654
+ E.records.messages[e].type === Tt.ACTIVE_START && E.records.messages[e].from.actor === t && l++, E.records.messages[e].type === Tt.ACTIVE_END && E.records.messages[e].from.actor === t && l--;
655
+ return l;
656
+ }, Ye = function(t, e, l, a) {
657
657
  E.records.messages.push({
658
658
  from: t,
659
659
  to: e,
660
- message: c.text,
661
- wrap: c.wrap === void 0 && xt() || !!c.wrap,
660
+ message: l.text,
661
+ wrap: l.wrap === void 0 && xt() || !!l.wrap,
662
662
  answer: a
663
663
  });
664
- }, O = function(t, e, c = { text: void 0, wrap: void 0 }, a, s = !1) {
664
+ }, O = function(t, e, l = { text: void 0, wrap: void 0 }, a, s = !1) {
665
665
  if (a === Tt.ACTIVE_END && $e(t.actor) < 1) {
666
666
  let i = new Error("Trying to inactivate an inactive participant (" + t.actor + ")");
667
667
  throw i.hash = {
@@ -675,8 +675,8 @@ const E = new Re(() => ({
675
675
  return E.records.messages.push({
676
676
  from: t,
677
677
  to: e,
678
- message: c.text,
679
- wrap: c.wrap === void 0 && xt() || !!c.wrap,
678
+ message: l.text,
679
+ wrap: l.wrap === void 0 && xt() || !!l.wrap,
680
680
  type: a,
681
681
  activate: s
682
682
  }), !0;
@@ -707,22 +707,22 @@ const E = new Re(() => ({
707
707
  }, xt = () => E.records.wrapEnabled !== void 0 ? E.records.wrapEnabled : at().sequence.wrap, Qe = function() {
708
708
  E.reset(), Pe();
709
709
  }, Ze = function(t) {
710
- const e = t.trim(), c = {
710
+ const e = t.trim(), l = {
711
711
  text: e.replace(/^:?(?:no)?wrap:/, "").trim(),
712
712
  wrap: e.match(/^:?wrap:/) !== null ? !0 : e.match(/^:?nowrap:/) !== null ? !1 : void 0
713
713
  };
714
- return K.debug("parseMessage:", c), c;
714
+ return K.debug("parseMessage:", l), l;
715
715
  }, Ge = function(t) {
716
716
  const e = t.match(/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/);
717
- let c = e != null && e[1] ? e[1].trim() : "transparent", a = e != null && e[2] ? e[2].trim() : void 0;
717
+ let l = e != null && e[1] ? e[1].trim() : "transparent", a = e != null && e[2] ? e[2].trim() : void 0;
718
718
  if (window && window.CSS)
719
- window.CSS.supports("color", c) || (c = "transparent", a = t.trim());
719
+ window.CSS.supports("color", l) || (l = "transparent", a = t.trim());
720
720
  else {
721
721
  const s = new Option().style;
722
- s.color = c, s.color !== c && (c = "transparent", a = t.trim());
722
+ s.color = l, s.color !== l && (l = "transparent", a = t.trim());
723
723
  }
724
724
  return {
725
- color: c,
725
+ color: l,
726
726
  text: a !== void 0 ? It(a.replace(/^:?(?:no)?wrap:/, ""), at()) : void 0,
727
727
  wrap: a !== void 0 ? a.match(/^:?wrap:/) !== null ? !0 : a.match(/^:?nowrap:/) !== null ? !1 : void 0 : void 0
728
728
  };
@@ -764,57 +764,57 @@ const E = new Re(() => ({
764
764
  LEFTOF: 0,
765
765
  RIGHTOF: 1,
766
766
  OVER: 2
767
- }, ae = function(t, e, c) {
767
+ }, ae = function(t, e, l) {
768
768
  const a = {
769
769
  actor: t,
770
770
  placement: e,
771
- message: c.text,
772
- wrap: c.wrap === void 0 && xt() || !!c.wrap
771
+ message: l.text,
772
+ wrap: l.wrap === void 0 && xt() || !!l.wrap
773
773
  }, s = [].concat(t, t);
774
774
  E.records.notes.push(a), E.records.messages.push({
775
775
  from: s[0],
776
776
  to: s[1],
777
- message: c.text,
778
- wrap: c.wrap === void 0 && xt() || !!c.wrap,
777
+ message: l.text,
778
+ wrap: l.wrap === void 0 && xt() || !!l.wrap,
779
779
  type: Tt.NOTE,
780
780
  placement: e
781
781
  });
782
782
  }, re = function(t, e) {
783
- const c = wt(t);
783
+ const l = wt(t);
784
784
  try {
785
785
  let a = It(e.text, at());
786
786
  a = a.replace(/&amp;/g, "&"), a = a.replace(/&equals;/g, "=");
787
787
  const s = JSON.parse(a);
788
- qt(c, s);
788
+ qt(l, s);
789
789
  } catch (a) {
790
790
  K.error("error while parsing actor link text", a);
791
791
  }
792
792
  }, a0 = function(t, e) {
793
- const c = wt(t);
793
+ const l = wt(t);
794
794
  try {
795
- const l = {};
796
- let n = It(e.text, at());
797
- var a = n.indexOf("@");
798
- n = n.replace(/&amp;/g, "&"), n = n.replace(/&equals;/g, "=");
799
- var s = n.slice(0, a - 1).trim(), i = n.slice(a + 1).trim();
800
- l[s] = i, qt(c, l);
801
- } catch (l) {
802
- K.error("error while parsing actor link text", l);
795
+ const n = {};
796
+ let c = It(e.text, at());
797
+ var a = c.indexOf("@");
798
+ c = c.replace(/&amp;/g, "&"), c = c.replace(/&equals;/g, "=");
799
+ var s = c.slice(0, a - 1).trim(), i = c.slice(a + 1).trim();
800
+ n[s] = i, qt(l, n);
801
+ } catch (n) {
802
+ K.error("error while parsing actor link text", n);
803
803
  }
804
804
  };
805
805
  function qt(t, e) {
806
806
  if (t.links == null)
807
807
  t.links = e;
808
808
  else
809
- for (let c in e)
810
- t.links[c] = e[c];
809
+ for (let l in e)
810
+ t.links[l] = e[l];
811
811
  }
812
812
  const ie = function(t, e) {
813
- const c = wt(t);
813
+ const l = wt(t);
814
814
  try {
815
815
  let a = It(e.text, at());
816
816
  const s = JSON.parse(a);
817
- se(c, s);
817
+ se(l, s);
818
818
  } catch (a) {
819
819
  K.error("error while parsing actor properties text", a);
820
820
  }
@@ -823,17 +823,17 @@ function se(t, e) {
823
823
  if (t.properties == null)
824
824
  t.properties = e;
825
825
  else
826
- for (let c in e)
827
- t.properties[c] = e[c];
826
+ for (let l in e)
827
+ t.properties[l] = e[l];
828
828
  }
829
829
  function r0() {
830
830
  E.records.currentBox = void 0;
831
831
  }
832
832
  const oe = function(t, e) {
833
- const c = wt(t), a = document.getElementById(e.text);
833
+ const l = wt(t), a = document.getElementById(e.text);
834
834
  try {
835
835
  const s = a.innerHTML, i = JSON.parse(s);
836
- i.properties && se(c, i.properties), i.links && qt(c, i.links);
836
+ i.properties && se(l, i.properties), i.links && qt(l, i.links);
837
837
  } catch (s) {
838
838
  K.error("error while parsing actor details text", s);
839
839
  }
@@ -1126,27 +1126,27 @@ const oe = function(t, e) {
1126
1126
  }
1127
1127
  `, o0 = s0, ut = 18 * 2, ce = "actor-top", le = "actor-bottom", zt = function(t, e) {
1128
1128
  return Ne(t, e);
1129
- }, n0 = function(t, e, c, a, s) {
1129
+ }, n0 = function(t, e, l, a, s) {
1130
1130
  if (e.links === void 0 || e.links === null || Object.keys(e.links).length === 0)
1131
1131
  return { height: 0, width: 0 };
1132
- const i = e.links, l = e.actorCnt, n = e.rectData;
1132
+ const i = e.links, n = e.actorCnt, c = e.rectData;
1133
1133
  var h = "none";
1134
1134
  s && (h = "block !important");
1135
1135
  const r = t.append("g");
1136
- r.attr("id", "actor" + l + "_popup"), r.attr("class", "actorPopupMenu"), r.attr("display", h);
1136
+ r.attr("id", "actor" + n + "_popup"), r.attr("class", "actorPopupMenu"), r.attr("display", h);
1137
1137
  var u = "";
1138
- n.class !== void 0 && (u = " " + n.class);
1139
- let b = n.width > c ? n.width : c;
1138
+ c.class !== void 0 && (u = " " + c.class);
1139
+ let b = c.width > l ? c.width : l;
1140
1140
  const g = r.append("rect");
1141
- if (g.attr("class", "actorPopupMenuPanel" + u), g.attr("x", n.x), g.attr("y", n.height), g.attr("fill", n.fill), g.attr("stroke", n.stroke), g.attr("width", b), g.attr("height", n.height), g.attr("rx", n.rx), g.attr("ry", n.ry), i != null) {
1141
+ if (g.attr("class", "actorPopupMenuPanel" + u), g.attr("x", c.x), g.attr("y", c.height), g.attr("fill", c.fill), g.attr("stroke", c.stroke), g.attr("width", b), g.attr("height", c.height), g.attr("rx", c.rx), g.attr("ry", c.ry), i != null) {
1142
1142
  var y = 20;
1143
1143
  for (let L in i) {
1144
1144
  var w = r.append("a"), _ = Zt.sanitizeUrl(i[L]);
1145
1145
  w.attr("xlink:href", _), w.attr("target", "_blank"), _0(a)(
1146
1146
  L,
1147
1147
  w,
1148
- n.x + 10,
1149
- n.height + y,
1148
+ c.x + 10,
1149
+ c.height + y,
1150
1150
  b,
1151
1151
  20,
1152
1152
  { class: "actor" },
@@ -1154,30 +1154,30 @@ const oe = function(t, e) {
1154
1154
  ), y += 30;
1155
1155
  }
1156
1156
  }
1157
- return g.attr("height", y), { height: n.height + y, width: b };
1157
+ return g.attr("height", y), { height: c.height + y, width: b };
1158
1158
  }, c0 = function(t) {
1159
1159
  return "var pu = document.getElementById('" + t + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
1160
- }, Lt = async function(t, e, c = null) {
1160
+ }, Lt = async function(t, e, l = null) {
1161
1161
  let a = t.append("foreignObject");
1162
1162
  const s = await ee(e.text, $t()), i = a.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(s).node().getBoundingClientRect();
1163
1163
  if (a.attr("height", Math.round(i.height)).attr("width", Math.round(i.width)), e.class === "noteText") {
1164
- const l = t.node().firstChild;
1165
- l.setAttribute("height", i.height + 2 * e.textMargin);
1166
- const n = l.getBBox();
1167
- a.attr("x", Math.round(n.x + n.width / 2 - i.width / 2)).attr("y", Math.round(n.y + n.height / 2 - i.height / 2));
1168
- } else if (c) {
1169
- let { startx: l, stopx: n, starty: h } = c;
1170
- if (l > n) {
1171
- const r = l;
1172
- l = n, n = r;
1164
+ const n = t.node().firstChild;
1165
+ n.setAttribute("height", i.height + 2 * e.textMargin);
1166
+ const c = n.getBBox();
1167
+ a.attr("x", Math.round(c.x + c.width / 2 - i.width / 2)).attr("y", Math.round(c.y + c.height / 2 - i.height / 2));
1168
+ } else if (l) {
1169
+ let { startx: n, stopx: c, starty: h } = l;
1170
+ if (n > c) {
1171
+ const r = n;
1172
+ n = c, c = r;
1173
1173
  }
1174
- a.attr("x", Math.round(l + Math.abs(l - n) / 2 - i.width / 2)), e.class === "loopText" ? a.attr("y", Math.round(h)) : a.attr("y", Math.round(h - i.height));
1174
+ a.attr("x", Math.round(n + Math.abs(n - c) / 2 - i.width / 2)), e.class === "loopText" ? a.attr("y", Math.round(h)) : a.attr("y", Math.round(h - i.height));
1175
1175
  }
1176
1176
  return [a];
1177
1177
  }, bt = function(t, e) {
1178
- let c = 0, a = 0;
1179
- const s = e.text.split(v.lineBreakRegex), [i, l] = te(e.fontSize);
1180
- let n = [], h = 0, r = () => e.y;
1178
+ let l = 0, a = 0;
1179
+ const s = e.text.split(v.lineBreakRegex), [i, n] = te(e.fontSize);
1180
+ let c = [], h = 0, r = () => e.y;
1181
1181
  if (e.valign !== void 0 && e.textMargin !== void 0 && e.textMargin > 0)
1182
1182
  switch (e.valign) {
1183
1183
  case "top":
@@ -1186,12 +1186,12 @@ const oe = function(t, e) {
1186
1186
  break;
1187
1187
  case "middle":
1188
1188
  case "center":
1189
- r = () => Math.round(e.y + (c + a + e.textMargin) / 2);
1189
+ r = () => Math.round(e.y + (l + a + e.textMargin) / 2);
1190
1190
  break;
1191
1191
  case "bottom":
1192
1192
  case "end":
1193
1193
  r = () => Math.round(
1194
- e.y + (c + a + 2 * e.textMargin) - e.textMargin
1194
+ e.y + (l + a + 2 * e.textMargin) - e.textMargin
1195
1195
  );
1196
1196
  break;
1197
1197
  }
@@ -1213,33 +1213,33 @@ const oe = function(t, e) {
1213
1213
  for (let [u, b] of s.entries()) {
1214
1214
  e.textMargin !== void 0 && e.textMargin === 0 && i !== void 0 && (h = u * i);
1215
1215
  const g = t.append("text");
1216
- g.attr("x", e.x), g.attr("y", r()), e.anchor !== void 0 && g.attr("text-anchor", e.anchor).attr("dominant-baseline", e.dominantBaseline).attr("alignment-baseline", e.alignmentBaseline), e.fontFamily !== void 0 && g.style("font-family", e.fontFamily), l !== void 0 && g.style("font-size", l), e.fontWeight !== void 0 && g.style("font-weight", e.fontWeight), e.fill !== void 0 && g.attr("fill", e.fill), e.class !== void 0 && g.attr("class", e.class), e.dy !== void 0 ? g.attr("dy", e.dy) : h !== 0 && g.attr("dy", h);
1216
+ g.attr("x", e.x), g.attr("y", r()), e.anchor !== void 0 && g.attr("text-anchor", e.anchor).attr("dominant-baseline", e.dominantBaseline).attr("alignment-baseline", e.alignmentBaseline), e.fontFamily !== void 0 && g.style("font-family", e.fontFamily), n !== void 0 && g.style("font-size", n), e.fontWeight !== void 0 && g.style("font-weight", e.fontWeight), e.fill !== void 0 && g.attr("fill", e.fill), e.class !== void 0 && g.attr("class", e.class), e.dy !== void 0 ? g.attr("dy", e.dy) : h !== 0 && g.attr("dy", h);
1217
1217
  const y = b || Le;
1218
1218
  if (e.tspan) {
1219
1219
  const w = g.append("tspan");
1220
1220
  w.attr("x", e.x), e.fill !== void 0 && w.attr("fill", e.fill), w.text(y);
1221
1221
  } else
1222
1222
  g.text(y);
1223
- e.valign !== void 0 && e.textMargin !== void 0 && e.textMargin > 0 && (a += (g._groups || g)[0][0].getBBox().height, c = a), n.push(g);
1223
+ e.valign !== void 0 && e.textMargin !== void 0 && e.textMargin > 0 && (a += (g._groups || g)[0][0].getBBox().height, l = a), c.push(g);
1224
1224
  }
1225
- return n;
1225
+ return c;
1226
1226
  }, de = function(t, e) {
1227
- function c(s, i, l, n, h) {
1228
- return s + "," + i + " " + (s + l) + "," + i + " " + (s + l) + "," + (i + n - h) + " " + (s + l - h * 1.2) + "," + (i + n) + " " + s + "," + (i + n);
1227
+ function l(s, i, n, c, h) {
1228
+ return s + "," + i + " " + (s + n) + "," + i + " " + (s + n) + "," + (i + c - h) + " " + (s + n - h * 1.2) + "," + (i + c) + " " + s + "," + (i + c);
1229
1229
  }
1230
1230
  const a = t.append("polygon");
1231
- return a.attr("points", c(e.x, e.y, e.width, e.height, 7)), a.attr("class", "labelBox"), e.y = e.y + e.height / 2, bt(t, e), a;
1231
+ return a.attr("points", l(e.x, e.y, e.width, e.height, 7)), a.attr("class", "labelBox"), e.y = e.y + e.height / 2, bt(t, e), a;
1232
1232
  };
1233
1233
  let ot = -1;
1234
- const pe = (t, e, c, a) => {
1235
- t.select && c.forEach((s) => {
1236
- const i = e[s], l = t.select("#actor" + i.actorCnt);
1237
- !a.mirrorActors && i.stopy ? l.attr("y2", i.stopy + i.height / 2) : a.mirrorActors && l.attr("y2", i.stopy);
1234
+ const pe = (t, e, l, a) => {
1235
+ t.select && l.forEach((s) => {
1236
+ const i = e[s], n = t.select("#actor" + i.actorCnt);
1237
+ !a.mirrorActors && i.stopy ? n.attr("y2", i.stopy + i.height / 2) : a.mirrorActors && n.attr("y2", i.stopy);
1238
1238
  });
1239
- }, l0 = async function(t, e, c, a) {
1240
- const s = a ? e.stopy : e.starty, i = e.x + e.width / 2, l = s + 5, n = t.append("g").lower();
1241
- var h = n;
1242
- a || (ot++, Object.keys(e.links || {}).length && !c.forceMenus && h.attr("onclick", c0(`actor${ot}_popup`)).attr("cursor", "pointer"), h.append("line").attr("id", "actor" + ot).attr("x1", i).attr("y1", l).attr("x2", i).attr("y2", 2e3).attr("class", "actor-line").attr("class", "200").attr("stroke-width", "0.5px").attr("stroke", "#999"), h = n.append("g"), e.actorCnt = ot, e.links != null && h.attr("id", "root-" + ot));
1239
+ }, l0 = async function(t, e, l, a) {
1240
+ const s = a ? e.stopy : e.starty, i = e.x + e.width / 2, n = s + 5, c = t.append("g").lower();
1241
+ var h = c;
1242
+ a || (ot++, Object.keys(e.links || {}).length && !l.forceMenus && h.attr("onclick", c0(`actor${ot}_popup`)).attr("cursor", "pointer"), h.append("line").attr("id", "actor" + ot).attr("x1", i).attr("y1", n).attr("x2", i).attr("y2", 2e3).attr("class", "actor-line").attr("class", "200").attr("stroke-width", "0.5px").attr("stroke", "#999"), h = c.append("g"), e.actorCnt = ot, e.links != null && h.attr("id", "root-" + ot));
1243
1243
  const r = Mt();
1244
1244
  var u = "actor";
1245
1245
  e.properties != null && e.properties.class ? u = e.properties.class : r.fill = "#eaeaea", a ? u += ` ${le}` : u += ` ${ce}`, r.x = e.x, r.y = s, r.width = e.width, r.height = e.height, r.class = u, r.rx = 3, r.ry = 3, r.name = e.name;
@@ -1248,7 +1248,7 @@ const pe = (t, e, c, a) => {
1248
1248
  const y = e.properties.icon.trim();
1249
1249
  y.charAt(0) === "@" ? Se(h, r.x + r.width - 20, r.y + 10, y.substr(1)) : Oe(h, r.x + r.width - 20, r.y + 10, y);
1250
1250
  }
1251
- await Ht(c, nt(e.description))(
1251
+ await Ht(l, nt(e.description))(
1252
1252
  e.description,
1253
1253
  h,
1254
1254
  r.x,
@@ -1256,7 +1256,7 @@ const pe = (t, e, c, a) => {
1256
1256
  r.width,
1257
1257
  r.height,
1258
1258
  { class: "actor" },
1259
- c
1259
+ l
1260
1260
  );
1261
1261
  let g = e.height;
1262
1262
  if (b.node) {
@@ -1264,37 +1264,37 @@ const pe = (t, e, c, a) => {
1264
1264
  e.height = y.height, g = y.height;
1265
1265
  }
1266
1266
  return g;
1267
- }, d0 = async function(t, e, c, a) {
1268
- const s = a ? e.stopy : e.starty, i = e.x + e.width / 2, l = s + 80;
1269
- t.lower(), a || (ot++, t.append("line").attr("id", "actor" + ot).attr("x1", i).attr("y1", l).attr("x2", i).attr("y2", 2e3).attr("class", "actor-line").attr("class", "200").attr("stroke-width", "0.5px").attr("stroke", "#999"), e.actorCnt = ot);
1270
- const n = t.append("g");
1267
+ }, d0 = async function(t, e, l, a) {
1268
+ const s = a ? e.stopy : e.starty, i = e.x + e.width / 2, n = s + 80;
1269
+ t.lower(), a || (ot++, t.append("line").attr("id", "actor" + ot).attr("x1", i).attr("y1", n).attr("x2", i).attr("y2", 2e3).attr("class", "actor-line").attr("class", "200").attr("stroke-width", "0.5px").attr("stroke", "#999"), e.actorCnt = ot);
1270
+ const c = t.append("g");
1271
1271
  let h = "actor-man";
1272
- a ? h += ` ${le}` : h += ` ${ce}`, n.attr("class", h), n.attr("name", e.name);
1272
+ a ? h += ` ${le}` : h += ` ${ce}`, c.attr("class", h), c.attr("name", e.name);
1273
1273
  const r = Mt();
1274
- r.x = e.x, r.y = s, r.fill = "#eaeaea", r.width = e.width, r.height = e.height, r.class = "actor", r.rx = 3, r.ry = 3, n.append("line").attr("id", "actor-man-torso" + ot).attr("x1", i).attr("y1", s + 25).attr("x2", i).attr("y2", s + 45), n.append("line").attr("id", "actor-man-arms" + ot).attr("x1", i - ut / 2).attr("y1", s + 33).attr("x2", i + ut / 2).attr("y2", s + 33), n.append("line").attr("x1", i - ut / 2).attr("y1", s + 60).attr("x2", i).attr("y2", s + 45), n.append("line").attr("x1", i).attr("y1", s + 45).attr("x2", i + ut / 2 - 2).attr("y2", s + 60);
1275
- const u = n.append("circle");
1274
+ r.x = e.x, r.y = s, r.fill = "#eaeaea", r.width = e.width, r.height = e.height, r.class = "actor", r.rx = 3, r.ry = 3, c.append("line").attr("id", "actor-man-torso" + ot).attr("x1", i).attr("y1", s + 25).attr("x2", i).attr("y2", s + 45), c.append("line").attr("id", "actor-man-arms" + ot).attr("x1", i - ut / 2).attr("y1", s + 33).attr("x2", i + ut / 2).attr("y2", s + 33), c.append("line").attr("x1", i - ut / 2).attr("y1", s + 60).attr("x2", i).attr("y2", s + 45), c.append("line").attr("x1", i).attr("y1", s + 45).attr("x2", i + ut / 2 - 2).attr("y2", s + 60);
1275
+ const u = c.append("circle");
1276
1276
  u.attr("cx", e.x + e.width / 2), u.attr("cy", s + 10), u.attr("r", 15), u.attr("width", e.width), u.attr("height", e.height);
1277
- const b = n.node().getBBox();
1278
- return e.height = b.height, await Ht(c, nt(e.description))(
1277
+ const b = c.node().getBBox();
1278
+ return e.height = b.height, await Ht(l, nt(e.description))(
1279
1279
  e.description,
1280
- n,
1280
+ c,
1281
1281
  r.x,
1282
1282
  r.y + 35,
1283
1283
  r.width,
1284
1284
  r.height,
1285
1285
  { class: "actor" },
1286
- c
1286
+ l
1287
1287
  ), e.height;
1288
- }, p0 = async function(t, e, c, a) {
1288
+ }, p0 = async function(t, e, l, a) {
1289
1289
  switch (e.type) {
1290
1290
  case "actor":
1291
- return await d0(t, e, c, a);
1291
+ return await d0(t, e, l, a);
1292
1292
  case "participant":
1293
- return await l0(t, e, c, a);
1293
+ return await l0(t, e, l, a);
1294
1294
  }
1295
- }, h0 = async function(t, e, c) {
1295
+ }, h0 = async function(t, e, l) {
1296
1296
  const a = t.append("g");
1297
- he(a, e), e.name && await Ht(c)(
1297
+ he(a, e), e.name && await Ht(l)(
1298
1298
  e.name,
1299
1299
  a,
1300
1300
  e.x,
@@ -1302,19 +1302,19 @@ const pe = (t, e, c, a) => {
1302
1302
  e.width,
1303
1303
  0,
1304
1304
  { class: "text" },
1305
- c
1305
+ l
1306
1306
  ), a.lower();
1307
1307
  }, g0 = function(t) {
1308
1308
  return t.append("g");
1309
- }, u0 = function(t, e, c, a, s) {
1310
- const i = Mt(), l = e.anchored;
1311
- i.x = e.startx, i.y = e.starty, i.class = "activation" + s % 3, i.width = e.stopx - e.startx, i.height = c - e.starty, zt(l, i);
1312
- }, x0 = async function(t, e, c, a) {
1309
+ }, u0 = function(t, e, l, a, s) {
1310
+ const i = Mt(), n = e.anchored;
1311
+ i.x = e.startx, i.y = e.starty, i.class = "activation" + s % 3, i.width = e.stopx - e.startx, i.height = l - e.starty, zt(n, i);
1312
+ }, x0 = async function(t, e, l, a) {
1313
1313
  const {
1314
1314
  boxMargin: s,
1315
1315
  boxTextMargin: i,
1316
- labelBoxHeight: l,
1317
- labelBoxWidth: n,
1316
+ labelBoxHeight: n,
1317
+ labelBoxWidth: c,
1318
1318
  messageFontFamily: h,
1319
1319
  messageFontSize: r,
1320
1320
  messageFontWeight: u
@@ -1328,7 +1328,7 @@ const pe = (t, e, c, a) => {
1328
1328
  );
1329
1329
  });
1330
1330
  let y = Wt();
1331
- y.text = c, y.x = e.startx, y.y = e.starty, y.fontFamily = h, y.fontSize = r, y.fontWeight = u, y.anchor = "middle", y.valign = "middle", y.tspan = !1, y.width = n || 50, y.height = l || 20, y.textMargin = i, y.class = "labelText", de(b, y), y = ge(), y.text = e.title, y.x = e.startx + n / 2 + (e.stopx - e.startx) / 2, y.y = e.starty + s + i, y.anchor = "middle", y.valign = "middle", y.textMargin = i, y.class = "loopText", y.fontFamily = h, y.fontSize = r, y.fontWeight = u, y.wrap = !0;
1331
+ y.text = l, y.x = e.startx, y.y = e.starty, y.fontFamily = h, y.fontSize = r, y.fontWeight = u, y.anchor = "middle", y.valign = "middle", y.tspan = !1, y.width = c || 50, y.height = n || 20, y.textMargin = i, y.class = "labelText", de(b, y), y = ge(), y.text = e.title, y.x = e.startx + c / 2 + (e.stopx - e.startx) / 2, y.y = e.starty + s + i, y.anchor = "middle", y.valign = "middle", y.textMargin = i, y.class = "loopText", y.fontFamily = h, y.fontSize = r, y.fontWeight = u, y.wrap = !0;
1332
1332
  let w = nt(y.text) ? await Lt(b, y, e) : bt(b, y);
1333
1333
  if (e.sectionTitles !== void 0) {
1334
1334
  for (const [_, L] of Object.entries(e.sectionTitles))
@@ -1394,54 +1394,54 @@ const pe = (t, e, c, a) => {
1394
1394
  ry: 0
1395
1395
  };
1396
1396
  }, Ht = /* @__PURE__ */ function() {
1397
- function t(i, l, n, h, r, u, b) {
1398
- const g = l.append("text").attr("x", n + r / 2).attr("y", h + u / 2 + 5).style("text-anchor", "middle").text(i);
1397
+ function t(i, n, c, h, r, u, b) {
1398
+ const g = n.append("text").attr("x", c + r / 2).attr("y", h + u / 2 + 5).style("text-anchor", "middle").text(i);
1399
1399
  s(g, b);
1400
1400
  }
1401
- function e(i, l, n, h, r, u, b, g) {
1401
+ function e(i, n, c, h, r, u, b, g) {
1402
1402
  const { actorFontSize: y, actorFontFamily: w, actorFontWeight: _ } = g, [L, R] = te(y), N = i.split(v.lineBreakRegex);
1403
1403
  for (let C = 0; C < N.length; C++) {
1404
- const S = C * L - L * (N.length - 1) / 2, F = l.append("text").attr("x", n + r / 2).attr("y", h).style("text-anchor", "middle").style("font-size", R).style("font-weight", _).style("font-family", w);
1405
- F.append("tspan").attr("x", n + r / 2).attr("dy", S).text(N[C]), F.attr("y", h + u / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), s(F, b);
1404
+ const S = C * L - L * (N.length - 1) / 2, F = n.append("text").attr("x", c + r / 2).attr("y", h).style("text-anchor", "middle").style("font-size", R).style("font-weight", _).style("font-family", w);
1405
+ F.append("tspan").attr("x", c + r / 2).attr("dy", S).text(N[C]), F.attr("y", h + u / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), s(F, b);
1406
1406
  }
1407
1407
  }
1408
- function c(i, l, n, h, r, u, b, g) {
1409
- const y = l.append("switch"), w = y.append("foreignObject").attr("x", n).attr("y", h).attr("width", r).attr("height", u).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
1410
- w.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), e(i, y, n, h, r, u, b, g), s(w, b);
1408
+ function l(i, n, c, h, r, u, b, g) {
1409
+ const y = n.append("switch"), w = y.append("foreignObject").attr("x", c).attr("y", h).attr("width", r).attr("height", u).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
1410
+ w.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), e(i, y, c, h, r, u, b, g), s(w, b);
1411
1411
  }
1412
- async function a(i, l, n, h, r, u, b, g) {
1413
- const y = await Et(i, $t()), w = l.append("switch"), _ = w.append("foreignObject").attr("x", n + r / 2 - y.width / 2).attr("y", h + u / 2 - y.height / 2).attr("width", y.width).attr("height", y.height).append("xhtml:div").style("height", "100%").style("width", "100%");
1414
- _.append("div").style("text-align", "center").style("vertical-align", "middle").html(await ee(i, $t())), e(i, w, n, h, r, u, b, g), s(_, b);
1412
+ async function a(i, n, c, h, r, u, b, g) {
1413
+ const y = await Et(i, $t()), w = n.append("switch"), _ = w.append("foreignObject").attr("x", c + r / 2 - y.width / 2).attr("y", h + u / 2 - y.height / 2).attr("width", y.width).attr("height", y.height).append("xhtml:div").style("height", "100%").style("width", "100%");
1414
+ _.append("div").style("text-align", "center").style("vertical-align", "middle").html(await ee(i, $t())), e(i, w, c, h, r, u, b, g), s(_, b);
1415
1415
  }
1416
- function s(i, l) {
1417
- for (const n in l)
1418
- l.hasOwnProperty(n) && i.attr(n, l[n]);
1416
+ function s(i, n) {
1417
+ for (const c in n)
1418
+ n.hasOwnProperty(c) && i.attr(c, n[c]);
1419
1419
  }
1420
- return function(i, l = !1) {
1421
- return l ? a : i.textPlacement === "fo" ? c : i.textPlacement === "old" ? t : e;
1420
+ return function(i, n = !1) {
1421
+ return n ? a : i.textPlacement === "fo" ? l : i.textPlacement === "old" ? t : e;
1422
1422
  };
1423
1423
  }(), _0 = /* @__PURE__ */ function() {
1424
- function t(s, i, l, n, h, r, u) {
1425
- const b = i.append("text").attr("x", l).attr("y", n).style("text-anchor", "start").text(s);
1424
+ function t(s, i, n, c, h, r, u) {
1425
+ const b = i.append("text").attr("x", n).attr("y", c).style("text-anchor", "start").text(s);
1426
1426
  a(b, u);
1427
1427
  }
1428
- function e(s, i, l, n, h, r, u, b) {
1428
+ function e(s, i, n, c, h, r, u, b) {
1429
1429
  const { actorFontSize: g, actorFontFamily: y, actorFontWeight: w } = b, _ = s.split(v.lineBreakRegex);
1430
1430
  for (let L = 0; L < _.length; L++) {
1431
- const R = L * g - g * (_.length - 1) / 2, N = i.append("text").attr("x", l).attr("y", n).style("text-anchor", "start").style("font-size", g).style("font-weight", w).style("font-family", y);
1432
- N.append("tspan").attr("x", l).attr("dy", R).text(_[L]), N.attr("y", n + r / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), a(N, u);
1431
+ const R = L * g - g * (_.length - 1) / 2, N = i.append("text").attr("x", n).attr("y", c).style("text-anchor", "start").style("font-size", g).style("font-weight", w).style("font-family", y);
1432
+ N.append("tspan").attr("x", n).attr("dy", R).text(_[L]), N.attr("y", c + r / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), a(N, u);
1433
1433
  }
1434
1434
  }
1435
- function c(s, i, l, n, h, r, u, b) {
1436
- const g = i.append("switch"), y = g.append("foreignObject").attr("x", l).attr("y", n).attr("width", h).attr("height", r).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
1437
- y.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(s), e(s, g, l, n, h, r, u, b), a(y, u);
1435
+ function l(s, i, n, c, h, r, u, b) {
1436
+ const g = i.append("switch"), y = g.append("foreignObject").attr("x", n).attr("y", c).attr("width", h).attr("height", r).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
1437
+ y.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(s), e(s, g, n, c, h, r, u, b), a(y, u);
1438
1438
  }
1439
1439
  function a(s, i) {
1440
- for (const l in i)
1441
- i.hasOwnProperty(l) && s.attr(l, i[l]);
1440
+ for (const n in i)
1441
+ i.hasOwnProperty(n) && s.attr(n, i[n]);
1442
1442
  }
1443
1443
  return function(s) {
1444
- return s.textPlacement === "fo" ? c : s.textPlacement === "old" ? t : e;
1444
+ return s.textPlacement === "fo" ? l : s.textPlacement === "old" ? t : e;
1445
1445
  };
1446
1446
  }(), D = {
1447
1447
  drawRect: zt,
@@ -1528,27 +1528,27 @@ const x = {
1528
1528
  stopy: void 0
1529
1529
  }, this.verticalPos = 0, xe(at());
1530
1530
  },
1531
- updateVal: function(t, e, c, a) {
1532
- t[e] === void 0 ? t[e] = c : t[e] = a(c, t[e]);
1531
+ updateVal: function(t, e, l, a) {
1532
+ t[e] === void 0 ? t[e] = l : t[e] = a(l, t[e]);
1533
1533
  },
1534
- updateBounds: function(t, e, c, a) {
1534
+ updateBounds: function(t, e, l, a) {
1535
1535
  const s = this;
1536
1536
  let i = 0;
1537
- function l(n) {
1537
+ function n(c) {
1538
1538
  return function(h) {
1539
1539
  i++;
1540
1540
  const r = s.sequenceItems.length - i + 1;
1541
- s.updateVal(h, "starty", e - r * o.boxMargin, Math.min), s.updateVal(h, "stopy", a + r * o.boxMargin, Math.max), s.updateVal(x.data, "startx", t - r * o.boxMargin, Math.min), s.updateVal(x.data, "stopx", c + r * o.boxMargin, Math.max), n !== "activation" && (s.updateVal(h, "startx", t - r * o.boxMargin, Math.min), s.updateVal(h, "stopx", c + r * o.boxMargin, Math.max), s.updateVal(x.data, "starty", e - r * o.boxMargin, Math.min), s.updateVal(x.data, "stopy", a + r * o.boxMargin, Math.max));
1541
+ s.updateVal(h, "starty", e - r * o.boxMargin, Math.min), s.updateVal(h, "stopy", a + r * o.boxMargin, Math.max), s.updateVal(x.data, "startx", t - r * o.boxMargin, Math.min), s.updateVal(x.data, "stopx", l + r * o.boxMargin, Math.max), c !== "activation" && (s.updateVal(h, "startx", t - r * o.boxMargin, Math.min), s.updateVal(h, "stopx", l + r * o.boxMargin, Math.max), s.updateVal(x.data, "starty", e - r * o.boxMargin, Math.min), s.updateVal(x.data, "stopy", a + r * o.boxMargin, Math.max));
1542
1542
  };
1543
1543
  }
1544
- this.sequenceItems.forEach(l()), this.activations.forEach(l("activation"));
1544
+ this.sequenceItems.forEach(n()), this.activations.forEach(n("activation"));
1545
1545
  },
1546
- insert: function(t, e, c, a) {
1547
- const s = v.getMin(t, c), i = v.getMax(t, c), l = v.getMin(e, a), n = v.getMax(e, a);
1548
- this.updateVal(x.data, "startx", s, Math.min), this.updateVal(x.data, "starty", l, Math.min), this.updateVal(x.data, "stopx", i, Math.max), this.updateVal(x.data, "stopy", n, Math.max), this.updateBounds(s, l, i, n);
1546
+ insert: function(t, e, l, a) {
1547
+ const s = v.getMin(t, l), i = v.getMax(t, l), n = v.getMin(e, a), c = v.getMax(e, a);
1548
+ this.updateVal(x.data, "startx", s, Math.min), this.updateVal(x.data, "starty", n, Math.min), this.updateVal(x.data, "stopx", i, Math.max), this.updateVal(x.data, "stopy", c, Math.max), this.updateBounds(s, n, i, c);
1549
1549
  },
1550
- newActivation: function(t, e, c) {
1551
- const a = c[t.from.actor], s = Nt(t.from.actor).length || 0, i = a.x + a.width / 2 + (s - 1) * o.activationWidth / 2;
1550
+ newActivation: function(t, e, l) {
1551
+ const a = l[t.from.actor], s = Nt(t.from.actor).length || 0, i = a.x + a.width / 2 + (s - 1) * o.activationWidth / 2;
1552
1552
  this.activations.push({
1553
1553
  startx: i,
1554
1554
  starty: this.verticalPos + 2,
@@ -1559,8 +1559,8 @@ const x = {
1559
1559
  });
1560
1560
  },
1561
1561
  endActivation: function(t) {
1562
- const e = this.activations.map(function(c) {
1563
- return c.actor;
1562
+ const e = this.activations.map(function(l) {
1563
+ return l.actor;
1564
1564
  }).lastIndexOf(t.from.actor);
1565
1565
  return this.activations.splice(e, 1)[0];
1566
1566
  },
@@ -1607,14 +1607,14 @@ const x = {
1607
1607
  }
1608
1608
  }, k0 = async function(t, e) {
1609
1609
  x.bumpVerticalPos(o.boxMargin), e.height = o.boxMargin, e.starty = x.getVerticalPos();
1610
- const c = Mt();
1611
- c.x = e.startx, c.y = e.starty, c.width = e.width || o.width, c.class = "note";
1612
- const a = t.append("g"), s = D.drawRect(a, c), i = Wt();
1613
- i.x = e.startx, i.y = e.starty, i.width = c.width, i.dy = "1em", i.text = e.message, i.class = "noteText", i.fontFamily = o.noteFontFamily, i.fontSize = o.noteFontSize, i.fontWeight = o.noteFontWeight, i.anchor = o.noteAlign, i.textMargin = o.noteMargin, i.valign = "center";
1614
- const l = nt(i.text) ? await Lt(a, i) : bt(a, i), n = Math.round(
1615
- l.map((h) => (h._groups || h)[0][0].getBBox().height).reduce((h, r) => h + r)
1610
+ const l = Mt();
1611
+ l.x = e.startx, l.y = e.starty, l.width = e.width || o.width, l.class = "note";
1612
+ const a = t.append("g"), s = D.drawRect(a, l), i = Wt();
1613
+ i.x = e.startx, i.y = e.starty, i.width = l.width, i.dy = "1em", i.text = e.message, i.class = "noteText", i.fontFamily = o.noteFontFamily, i.fontSize = o.noteFontSize, i.fontWeight = o.noteFontWeight, i.anchor = o.noteAlign, i.textMargin = o.noteMargin, i.valign = "center";
1614
+ const n = nt(i.text) ? await Lt(a, i) : bt(a, i), c = Math.round(
1615
+ n.map((h) => (h._groups || h)[0][0].getBBox().height).reduce((h, r) => h + r)
1616
1616
  );
1617
- s.attr("height", n + 2 * o.noteMargin), e.height += n + 2 * o.noteMargin, x.bumpVerticalPos(n + 2 * o.noteMargin), e.stopy = e.starty + n + 2 * o.noteMargin, e.stopx = e.startx + c.width, x.insert(e.startx, e.starty, e.stopx, e.stopy), x.models.addNote(e);
1617
+ s.attr("height", c + 2 * o.noteMargin), e.height += c + 2 * o.noteMargin, x.bumpVerticalPos(c + 2 * o.noteMargin), e.stopy = e.starty + c + 2 * o.noteMargin, e.stopx = e.startx + l.width, x.insert(e.startx, e.starty, e.stopx, e.stopy), x.models.addNote(e);
1618
1618
  }, yt = (t) => ({
1619
1619
  fontFamily: t.messageFontFamily,
1620
1620
  fontSize: t.messageFontSize,
@@ -1630,75 +1630,75 @@ const x = {
1630
1630
  });
1631
1631
  async function P0(t, e) {
1632
1632
  x.bumpVerticalPos(10);
1633
- const { startx: c, stopx: a, message: s } = e, i = v.splitBreaks(s).length, l = nt(s), n = l ? await Et(s, at()) : $.calculateTextDimensions(s, yt(o));
1634
- if (!l) {
1635
- const b = n.height / i;
1633
+ const { startx: l, stopx: a, message: s } = e, i = v.splitBreaks(s).length, n = nt(s), c = n ? await Et(s, at()) : $.calculateTextDimensions(s, yt(o));
1634
+ if (!n) {
1635
+ const b = c.height / i;
1636
1636
  e.height += b, x.bumpVerticalPos(b);
1637
1637
  }
1638
- let h, r = n.height - 10;
1639
- const u = n.width;
1640
- if (c === a) {
1638
+ let h, r = c.height - 10;
1639
+ const u = c.width;
1640
+ if (l === a) {
1641
1641
  h = x.getVerticalPos() + r, o.rightAngles || (r += o.boxMargin, h = x.getVerticalPos() + r), r += 30;
1642
1642
  const b = v.getMax(u / 2, o.width / 2);
1643
1643
  x.insert(
1644
- c - b,
1644
+ l - b,
1645
1645
  x.getVerticalPos() - 10 + r,
1646
1646
  a + b,
1647
1647
  x.getVerticalPos() + 30 + r
1648
1648
  );
1649
1649
  } else
1650
- r += o.boxMargin, h = x.getVerticalPos() + r, x.insert(c, h - 10, a, h);
1650
+ r += o.boxMargin, h = x.getVerticalPos() + r, x.insert(l, h - 10, a, h);
1651
1651
  return x.bumpVerticalPos(r), e.height += r, e.stopy = e.starty + e.height, x.insert(e.fromBounds, e.starty, e.toBounds, e.stopy), h;
1652
1652
  }
1653
- const L0 = async function(t, e, c, a) {
1654
- const { startx: s, stopx: i, starty: l, message: n, type: h, sequenceIndex: r, sequenceVisible: u } = e, b = $.calculateTextDimensions(n, yt(o)), g = Wt();
1655
- g.x = s, g.y = l + 10, g.width = i - s, g.class = "messageText", g.dy = "1em", g.text = n, g.fontFamily = o.messageFontFamily, g.fontSize = o.messageFontSize, g.fontWeight = o.messageFontWeight, g.anchor = o.messageAlign, g.valign = "center", g.textMargin = o.wrapPadding, g.tspan = !1, nt(g.text) ? await Lt(t, g, { startx: s, stopx: i, starty: c }) : bt(t, g);
1653
+ const L0 = async function(t, e, l, a) {
1654
+ const { startx: s, stopx: i, starty: n, message: c, type: h, sequenceIndex: r, sequenceVisible: u } = e, b = $.calculateTextDimensions(c, yt(o)), g = Wt();
1655
+ g.x = s, g.y = n + 10, g.width = i - s, g.class = "messageText", g.dy = "1em", g.text = c, g.fontFamily = o.messageFontFamily, g.fontSize = o.messageFontSize, g.fontWeight = o.messageFontWeight, g.anchor = o.messageAlign, g.valign = "center", g.textMargin = o.wrapPadding, g.tspan = !1, nt(g.text) ? await Lt(t, g, { startx: s, stopx: i, starty: l }) : bt(t, g);
1656
1656
  const y = b.width;
1657
1657
  let w;
1658
1658
  s === i ? o.rightAngles ? w = t.append("path").attr(
1659
1659
  "d",
1660
- `M ${s},${c} H ${s + v.getMax(o.width / 2, y / 2)} V ${c + 25} H ${s}`
1660
+ `M ${s},${l} H ${s + v.getMax(o.width / 2, y / 2)} V ${l + 25} H ${s}`
1661
1661
  ) : w = t.append("path").attr(
1662
1662
  "d",
1663
- "M " + s + "," + c + " C " + (s + 60) + "," + (c - 10) + " " + (s + 60) + "," + (c + 30) + " " + s + "," + (c + 20)
1664
- ) : (w = t.append("line"), w.attr("x1", s), w.attr("y1", c), w.attr("x2", i), w.attr("y2", c)), h === a.db.LINETYPE.DOTTED || h === a.db.LINETYPE.DOTTED_CROSS || h === a.db.LINETYPE.DOTTED_POINT || h === a.db.LINETYPE.DOTTED_OPEN ? (w.style("stroke-dasharray", "3, 3"), w.attr("class", "messageLine1")) : w.attr("class", "messageLine0");
1663
+ "M " + s + "," + l + " C " + (s + 60) + "," + (l - 10) + " " + (s + 60) + "," + (l + 30) + " " + s + "," + (l + 20)
1664
+ ) : (w = t.append("line"), w.attr("x1", s), w.attr("y1", l), w.attr("x2", i), w.attr("y2", l)), h === a.db.LINETYPE.DOTTED || h === a.db.LINETYPE.DOTTED_CROSS || h === a.db.LINETYPE.DOTTED_POINT || h === a.db.LINETYPE.DOTTED_OPEN ? (w.style("stroke-dasharray", "3, 3"), w.attr("class", "messageLine1")) : w.attr("class", "messageLine0");
1665
1665
  let _ = "";
1666
- o.arrowMarkerAbsolute && (_ = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, _ = _.replace(/\(/g, "\\("), _ = _.replace(/\)/g, "\\)")), w.attr("stroke-width", 2), w.attr("stroke", "none"), w.style("fill", "none"), (h === a.db.LINETYPE.SOLID || h === a.db.LINETYPE.DOTTED) && w.attr("marker-end", "url(" + _ + "#arrowhead)"), (h === a.db.LINETYPE.SOLID_POINT || h === a.db.LINETYPE.DOTTED_POINT) && w.attr("marker-end", "url(" + _ + "#filled-head)"), (h === a.db.LINETYPE.SOLID_CROSS || h === a.db.LINETYPE.DOTTED_CROSS) && w.attr("marker-end", "url(" + _ + "#crosshead)"), (u || o.showSequenceNumbers) && (w.attr("marker-start", "url(" + _ + "#sequencenumber)"), t.append("text").attr("x", s).attr("y", c + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(r));
1667
- }, I0 = async function(t, e, c, a, s, i, l) {
1668
- let n = 0, h = 0, r, u = 0;
1666
+ o.arrowMarkerAbsolute && (_ = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, _ = _.replace(/\(/g, "\\("), _ = _.replace(/\)/g, "\\)")), w.attr("stroke-width", 2), w.attr("stroke", "none"), w.style("fill", "none"), (h === a.db.LINETYPE.SOLID || h === a.db.LINETYPE.DOTTED) && w.attr("marker-end", "url(" + _ + "#arrowhead)"), (h === a.db.LINETYPE.SOLID_POINT || h === a.db.LINETYPE.DOTTED_POINT) && w.attr("marker-end", "url(" + _ + "#filled-head)"), (h === a.db.LINETYPE.SOLID_CROSS || h === a.db.LINETYPE.DOTTED_CROSS) && w.attr("marker-end", "url(" + _ + "#crosshead)"), (u || o.showSequenceNumbers) && (w.attr("marker-start", "url(" + _ + "#sequencenumber)"), t.append("text").attr("x", s).attr("y", l + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(r));
1667
+ }, I0 = async function(t, e, l, a, s, i, n) {
1668
+ let c = 0, h = 0, r, u = 0;
1669
1669
  for (const b of a) {
1670
1670
  const g = e[b], y = g.box;
1671
- r && r != y && (x.models.addBox(r), h += o.boxMargin + r.margin), y && y != r && (y.x = n + h, y.y = s, h += y.margin), g.width = g.width || o.width, g.height = v.getMax(g.height || o.height, o.height), g.margin = g.margin || o.actorMargin, u = v.getMax(u, g.height), c[g.name] && (h += g.width / 2), g.x = n + h, g.starty = x.getVerticalPos(), x.insert(g.x, s, g.x + g.width, g.height), n += g.width + h, g.box && (g.box.width = n + y.margin - g.box.x), h = g.margin, r = g.box, x.models.addActor(g);
1671
+ r && r != y && (n || x.models.addBox(r), h += o.boxMargin + r.margin), y && y != r && (n || (y.x = c + h, y.y = s), h += y.margin), g.width = g.width || o.width, g.height = v.getMax(g.height || o.height, o.height), g.margin = g.margin || o.actorMargin, u = v.getMax(u, g.height), l[g.name] && (h += g.width / 2), g.x = c + h, g.starty = x.getVerticalPos(), x.insert(g.x, s, g.x + g.width, g.height), c += g.width + h, g.box && (g.box.width = c + y.margin - g.box.x), h = g.margin, r = g.box, x.models.addActor(g);
1672
1672
  }
1673
- r && !l && x.models.addBox(r), x.bumpVerticalPos(u);
1674
- }, Ft = async function(t, e, c, a) {
1673
+ r && !n && x.models.addBox(r), x.bumpVerticalPos(u);
1674
+ }, Ft = async function(t, e, l, a) {
1675
1675
  if (a) {
1676
1676
  let s = 0;
1677
1677
  x.bumpVerticalPos(o.boxMargin * 2);
1678
- for (const i of c) {
1679
- const l = e[i];
1680
- l.stopy || (l.stopy = x.getVerticalPos());
1681
- const n = await D.drawActor(t, l, o, !0);
1682
- s = v.getMax(s, n);
1678
+ for (const i of l) {
1679
+ const n = e[i];
1680
+ n.stopy || (n.stopy = x.getVerticalPos());
1681
+ const c = await D.drawActor(t, n, o, !0);
1682
+ s = v.getMax(s, c);
1683
1683
  }
1684
1684
  x.bumpVerticalPos(s + o.boxMargin);
1685
1685
  } else
1686
- for (const s of c) {
1686
+ for (const s of l) {
1687
1687
  const i = e[s];
1688
1688
  await D.drawActor(t, i, o, !1);
1689
1689
  }
1690
- }, ue = function(t, e, c, a) {
1690
+ }, ue = function(t, e, l, a) {
1691
1691
  let s = 0, i = 0;
1692
- for (const l of c) {
1693
- const n = e[l], h = S0(n), r = D.drawPopup(
1692
+ for (const n of l) {
1693
+ const c = e[n], h = S0(c), r = D.drawPopup(
1694
1694
  t,
1695
- n,
1695
+ c,
1696
1696
  h,
1697
1697
  o,
1698
1698
  o.forceMenus,
1699
1699
  a
1700
1700
  );
1701
- r.height > s && (s = r.height), r.width + n.x > i && (i = r.width + n.x);
1701
+ r.height > s && (s = r.height), r.width + c.x > i && (i = r.width + c.x);
1702
1702
  }
1703
1703
  return { maxHeight: s, maxWidth: i };
1704
1704
  }, xe = function(t) {
@@ -1708,26 +1708,26 @@ const L0 = async function(t, e, c, a) {
1708
1708
  return e.actor === t;
1709
1709
  });
1710
1710
  }, Qt = function(t, e) {
1711
- const c = e[t], a = Nt(t), s = a.reduce(function(l, n) {
1712
- return v.getMin(l, n.startx);
1713
- }, c.x + c.width / 2 - 1), i = a.reduce(function(l, n) {
1714
- return v.getMax(l, n.stopx);
1715
- }, c.x + c.width / 2 + 1);
1711
+ const l = e[t], a = Nt(t), s = a.reduce(function(n, c) {
1712
+ return v.getMin(n, c.startx);
1713
+ }, l.x + l.width / 2 - 1), i = a.reduce(function(n, c) {
1714
+ return v.getMax(n, c.stopx);
1715
+ }, l.x + l.width / 2 + 1);
1716
1716
  return [s, i];
1717
1717
  };
1718
- function st(t, e, c, a, s) {
1719
- x.bumpVerticalPos(c);
1718
+ function st(t, e, l, a, s) {
1719
+ x.bumpVerticalPos(l);
1720
1720
  let i = a;
1721
1721
  if (e.id && e.message && t[e.id]) {
1722
- const l = t[e.id].width, n = yt(o);
1723
- e.message = $.wrapLabel(`[${e.message}]`, l - 2 * o.wrapPadding, n), e.width = l, e.wrap = !0;
1724
- const h = $.calculateTextDimensions(e.message, n), r = v.getMax(h.height, o.labelBoxHeight);
1722
+ const n = t[e.id].width, c = yt(o);
1723
+ e.message = $.wrapLabel(`[${e.message}]`, n - 2 * o.wrapPadding, c), e.width = n, e.wrap = !0;
1724
+ const h = $.calculateTextDimensions(e.message, c), r = v.getMax(h.height, o.labelBoxHeight);
1725
1725
  i = a + r, K.debug(`${r} - ${e.message}`);
1726
1726
  }
1727
1727
  s(e), x.bumpVerticalPos(i);
1728
1728
  }
1729
- function M0(t, e, c, a, s, i, l) {
1730
- function n(r, u) {
1729
+ function M0(t, e, l, a, s, i, n) {
1730
+ function c(r, u) {
1731
1731
  r.x < s[t.from].x ? (x.insert(
1732
1732
  e.stopx - u,
1733
1733
  e.starty,
@@ -1755,31 +1755,31 @@ function M0(t, e, c, a, s, i, l) {
1755
1755
  }
1756
1756
  if (i[t.to] == a) {
1757
1757
  const r = s[t.to], u = r.type == "actor" ? ut / 2 + 3 : r.width / 2 + 3;
1758
- n(r, u), r.starty = c - r.height / 2, x.bumpVerticalPos(r.height / 2);
1759
- } else if (l[t.from] == a) {
1758
+ c(r, u), r.starty = l - r.height / 2, x.bumpVerticalPos(r.height / 2);
1759
+ } else if (n[t.from] == a) {
1760
1760
  const r = s[t.from];
1761
1761
  if (o.mirrorActors) {
1762
1762
  const u = r.type == "actor" ? ut / 2 : r.width / 2;
1763
1763
  h(r, u);
1764
1764
  }
1765
- r.stopy = c - r.height / 2, x.bumpVerticalPos(r.height / 2);
1766
- } else if (l[t.to] == a) {
1765
+ r.stopy = l - r.height / 2, x.bumpVerticalPos(r.height / 2);
1766
+ } else if (n[t.to] == a) {
1767
1767
  const r = s[t.to];
1768
1768
  if (o.mirrorActors) {
1769
1769
  const u = r.type == "actor" ? ut / 2 + 3 : r.width / 2 + 3;
1770
- n(r, u);
1770
+ c(r, u);
1771
1771
  }
1772
- r.stopy = c - r.height / 2, x.bumpVerticalPos(r.height / 2);
1772
+ r.stopy = l - r.height / 2, x.bumpVerticalPos(r.height / 2);
1773
1773
  }
1774
1774
  }
1775
- const N0 = async function(t, e, c, a) {
1775
+ const N0 = async function(t, e, l, a) {
1776
1776
  const { securityLevel: s, sequence: i } = at();
1777
1777
  o = i;
1778
- let l;
1779
- s === "sandbox" && (l = Pt("#i" + e));
1780
- const n = s === "sandbox" ? Pt(l.nodes()[0].contentDocument.body) : Pt("body"), h = s === "sandbox" ? l.nodes()[0].contentDocument : document;
1778
+ let n;
1779
+ s === "sandbox" && (n = Pt("#i" + e));
1780
+ const c = s === "sandbox" ? Pt(n.nodes()[0].contentDocument.body) : Pt("body"), h = s === "sandbox" ? n.nodes()[0].contentDocument : document;
1781
1781
  x.init(), K.debug(a.db);
1782
- const r = s === "sandbox" ? n.select(`[id="${e}"]`) : Pt(`[id="${e}"]`), u = a.db.getActors(), b = a.db.getCreatedActors(), g = a.db.getDestroyedActors(), y = a.db.getBoxes();
1782
+ const r = s === "sandbox" ? c.select(`[id="${e}"]`) : Pt(`[id="${e}"]`), u = a.db.getActors(), b = a.db.getCreatedActors(), g = a.db.getDestroyedActors(), y = a.db.getBoxes();
1783
1783
  let w = a.db.getActorKeys();
1784
1784
  const _ = a.db.getMessages(), L = a.db.getDiagramTitle(), R = a.db.hasAtLeastOneBox(), N = a.db.hasAtLeastOneBoxWithTitle(), C = await A0(u, _, a);
1785
1785
  if (o.height = await O0(u, C, y), D.insertComputerIcon(r), D.insertDatabaseIcon(r), D.insertClockIcon(r), R && (x.bumpVerticalPos(o.boxMargin), N && x.bumpVerticalPos(y[0].textMaxHeight)), o.hideUnusedParticipants === !0) {
@@ -1981,33 +1981,33 @@ const N0 = async function(t, e, c, a) {
1981
1981
  V.startx - o.diagramMarginX + " -" + (o.diagramMarginY + M) + " " + tt + " " + (H + M)
1982
1982
  ), K.debug("models:", x.models);
1983
1983
  };
1984
- async function A0(t, e, c) {
1984
+ async function A0(t, e, l) {
1985
1985
  const a = {};
1986
1986
  for (const s of e)
1987
1987
  if (t[s.to] && t[s.from]) {
1988
1988
  const i = t[s.to];
1989
- if (s.placement === c.db.PLACEMENT.LEFTOF && !i.prevActor || s.placement === c.db.PLACEMENT.RIGHTOF && !i.nextActor)
1989
+ if (s.placement === l.db.PLACEMENT.LEFTOF && !i.prevActor || s.placement === l.db.PLACEMENT.RIGHTOF && !i.nextActor)
1990
1990
  continue;
1991
- const l = s.placement !== void 0, n = !l, h = l ? ft(o) : yt(o), r = s.wrap ? $.wrapLabel(s.message, o.width - 2 * o.wrapPadding, h) : s.message, u = (nt(r) ? await Et(s.message, at()) : $.calculateTextDimensions(r, h)).width + 2 * o.wrapPadding;
1992
- n && s.from === i.nextActor ? a[s.to] = v.getMax(
1991
+ const n = s.placement !== void 0, c = !n, h = n ? ft(o) : yt(o), r = s.wrap ? $.wrapLabel(s.message, o.width - 2 * o.wrapPadding, h) : s.message, u = (nt(r) ? await Et(s.message, at()) : $.calculateTextDimensions(r, h)).width + 2 * o.wrapPadding;
1992
+ c && s.from === i.nextActor ? a[s.to] = v.getMax(
1993
1993
  a[s.to] || 0,
1994
1994
  u
1995
- ) : n && s.from === i.prevActor ? a[s.from] = v.getMax(
1995
+ ) : c && s.from === i.prevActor ? a[s.from] = v.getMax(
1996
1996
  a[s.from] || 0,
1997
1997
  u
1998
- ) : n && s.from === s.to ? (a[s.from] = v.getMax(
1998
+ ) : c && s.from === s.to ? (a[s.from] = v.getMax(
1999
1999
  a[s.from] || 0,
2000
2000
  u / 2
2001
2001
  ), a[s.to] = v.getMax(
2002
2002
  a[s.to] || 0,
2003
2003
  u / 2
2004
- )) : s.placement === c.db.PLACEMENT.RIGHTOF ? a[s.from] = v.getMax(
2004
+ )) : s.placement === l.db.PLACEMENT.RIGHTOF ? a[s.from] = v.getMax(
2005
2005
  a[s.from] || 0,
2006
2006
  u
2007
- ) : s.placement === c.db.PLACEMENT.LEFTOF ? a[i.prevActor] = v.getMax(
2007
+ ) : s.placement === l.db.PLACEMENT.LEFTOF ? a[i.prevActor] = v.getMax(
2008
2008
  a[i.prevActor] || 0,
2009
2009
  u
2010
- ) : s.placement === c.db.PLACEMENT.OVER && (i.prevActor && (a[i.prevActor] = v.getMax(
2010
+ ) : s.placement === l.db.PLACEMENT.OVER && (i.prevActor && (a[i.prevActor] = v.getMax(
2011
2011
  a[i.prevActor] || 0,
2012
2012
  u / 2
2013
2013
  )), i.nextActor && (a[s.from] = v.getMax(
@@ -2019,60 +2019,60 @@ async function A0(t, e, c) {
2019
2019
  }
2020
2020
  const S0 = function(t) {
2021
2021
  let e = 0;
2022
- const c = Vt(o);
2022
+ const l = Vt(o);
2023
2023
  for (const a in t.links) {
2024
- const s = $.calculateTextDimensions(a, c).width + 2 * o.wrapPadding + 2 * o.boxMargin;
2024
+ const s = $.calculateTextDimensions(a, l).width + 2 * o.wrapPadding + 2 * o.boxMargin;
2025
2025
  e < s && (e = s);
2026
2026
  }
2027
2027
  return e;
2028
2028
  };
2029
- async function O0(t, e, c) {
2029
+ async function O0(t, e, l) {
2030
2030
  let a = 0;
2031
2031
  for (const i of Object.keys(t)) {
2032
- const l = t[i];
2033
- l.wrap && (l.description = $.wrapLabel(
2034
- l.description,
2032
+ const n = t[i];
2033
+ n.wrap && (n.description = $.wrapLabel(
2034
+ n.description,
2035
2035
  o.width - 2 * o.wrapPadding,
2036
2036
  Vt(o)
2037
2037
  ));
2038
- const n = nt(l.description) ? await Et(l.description, at()) : $.calculateTextDimensions(l.description, Vt(o));
2039
- l.width = l.wrap ? o.width : v.getMax(o.width, n.width + 2 * o.wrapPadding), l.height = l.wrap ? v.getMax(n.height, o.height) : o.height, a = v.getMax(a, l.height);
2038
+ const c = nt(n.description) ? await Et(n.description, at()) : $.calculateTextDimensions(n.description, Vt(o));
2039
+ n.width = n.wrap ? o.width : v.getMax(o.width, c.width + 2 * o.wrapPadding), n.height = n.wrap ? v.getMax(c.height, o.height) : o.height, a = v.getMax(a, n.height);
2040
2040
  }
2041
2041
  for (const i in e) {
2042
- const l = t[i];
2043
- if (!l)
2042
+ const n = t[i];
2043
+ if (!n)
2044
2044
  continue;
2045
- const n = t[l.nextActor];
2046
- if (!n) {
2047
- const r = e[i] + o.actorMargin - l.width / 2;
2048
- l.margin = v.getMax(r, o.actorMargin);
2045
+ const c = t[n.nextActor];
2046
+ if (!c) {
2047
+ const r = e[i] + o.actorMargin - n.width / 2;
2048
+ n.margin = v.getMax(r, o.actorMargin);
2049
2049
  continue;
2050
2050
  }
2051
- const h = e[i] + o.actorMargin - l.width / 2 - n.width / 2;
2052
- l.margin = v.getMax(h, o.actorMargin);
2051
+ const h = e[i] + o.actorMargin - n.width / 2 - c.width / 2;
2052
+ n.margin = v.getMax(h, o.actorMargin);
2053
2053
  }
2054
2054
  let s = 0;
2055
- return c.forEach((i) => {
2056
- const l = yt(o);
2057
- let n = i.actorKeys.reduce((u, b) => u += t[b].width + (t[b].margin || 0), 0);
2058
- n -= 2 * o.boxTextMargin, i.wrap && (i.name = $.wrapLabel(i.name, n - 2 * o.wrapPadding, l));
2059
- const h = $.calculateTextDimensions(i.name, l);
2055
+ return l.forEach((i) => {
2056
+ const n = yt(o);
2057
+ let c = i.actorKeys.reduce((u, b) => u += t[b].width + (t[b].margin || 0), 0);
2058
+ c -= 2 * o.boxTextMargin, i.wrap && (i.name = $.wrapLabel(i.name, c - 2 * o.wrapPadding, n));
2059
+ const h = $.calculateTextDimensions(i.name, n);
2060
2060
  s = v.getMax(h.height, s);
2061
- const r = v.getMax(n, h.width + 2 * o.wrapPadding);
2062
- if (i.margin = o.boxTextMargin, n < r) {
2063
- const u = (r - n) / 2;
2061
+ const r = v.getMax(c, h.width + 2 * o.wrapPadding);
2062
+ if (i.margin = o.boxTextMargin, c < r) {
2063
+ const u = (r - c) / 2;
2064
2064
  i.margin += u;
2065
2065
  }
2066
- }), c.forEach((i) => i.textMaxHeight = s), v.getMax(a, o.height);
2066
+ }), l.forEach((i) => i.textMaxHeight = s), v.getMax(a, o.height);
2067
2067
  }
2068
- const D0 = async function(t, e, c) {
2068
+ const D0 = async function(t, e, l) {
2069
2069
  const a = e[t.from].x, s = e[t.to].x, i = t.wrap && t.message;
2070
- let l = nt(t.message) ? await Et(t.message, at()) : $.calculateTextDimensions(
2070
+ let n = nt(t.message) ? await Et(t.message, at()) : $.calculateTextDimensions(
2071
2071
  i ? $.wrapLabel(t.message, o.width, ft(o)) : t.message,
2072
2072
  ft(o)
2073
2073
  );
2074
- const n = {
2075
- width: i ? o.width : v.getMax(o.width, l.width + 2 * o.noteMargin),
2074
+ const c = {
2075
+ width: i ? o.width : v.getMax(o.width, n.width + 2 * o.noteMargin),
2076
2076
  height: 0,
2077
2077
  startx: e[t.from].x,
2078
2078
  stopx: 0,
@@ -2080,47 +2080,47 @@ const D0 = async function(t, e, c) {
2080
2080
  stopy: 0,
2081
2081
  message: t.message
2082
2082
  };
2083
- return t.placement === c.db.PLACEMENT.RIGHTOF ? (n.width = i ? v.getMax(o.width, l.width) : v.getMax(
2083
+ return t.placement === l.db.PLACEMENT.RIGHTOF ? (c.width = i ? v.getMax(o.width, n.width) : v.getMax(
2084
2084
  e[t.from].width / 2 + e[t.to].width / 2,
2085
- l.width + 2 * o.noteMargin
2086
- ), n.startx = a + (e[t.from].width + o.actorMargin) / 2) : t.placement === c.db.PLACEMENT.LEFTOF ? (n.width = i ? v.getMax(o.width, l.width + 2 * o.noteMargin) : v.getMax(
2085
+ n.width + 2 * o.noteMargin
2086
+ ), c.startx = a + (e[t.from].width + o.actorMargin) / 2) : t.placement === l.db.PLACEMENT.LEFTOF ? (c.width = i ? v.getMax(o.width, n.width + 2 * o.noteMargin) : v.getMax(
2087
2087
  e[t.from].width / 2 + e[t.to].width / 2,
2088
- l.width + 2 * o.noteMargin
2089
- ), n.startx = a - n.width + (e[t.from].width - o.actorMargin) / 2) : t.to === t.from ? (l = $.calculateTextDimensions(
2088
+ n.width + 2 * o.noteMargin
2089
+ ), c.startx = a - c.width + (e[t.from].width - o.actorMargin) / 2) : t.to === t.from ? (n = $.calculateTextDimensions(
2090
2090
  i ? $.wrapLabel(
2091
2091
  t.message,
2092
2092
  v.getMax(o.width, e[t.from].width),
2093
2093
  ft(o)
2094
2094
  ) : t.message,
2095
2095
  ft(o)
2096
- ), n.width = i ? v.getMax(o.width, e[t.from].width) : v.getMax(
2096
+ ), c.width = i ? v.getMax(o.width, e[t.from].width) : v.getMax(
2097
2097
  e[t.from].width,
2098
2098
  o.width,
2099
- l.width + 2 * o.noteMargin
2100
- ), n.startx = a + (e[t.from].width - n.width) / 2) : (n.width = Math.abs(a + e[t.from].width / 2 - (s + e[t.to].width / 2)) + o.actorMargin, n.startx = a < s ? a + e[t.from].width / 2 - o.actorMargin / 2 : s + e[t.to].width / 2 - o.actorMargin / 2), i && (n.message = $.wrapLabel(
2099
+ n.width + 2 * o.noteMargin
2100
+ ), c.startx = a + (e[t.from].width - c.width) / 2) : (c.width = Math.abs(a + e[t.from].width / 2 - (s + e[t.to].width / 2)) + o.actorMargin, c.startx = a < s ? a + e[t.from].width / 2 - o.actorMargin / 2 : s + e[t.to].width / 2 - o.actorMargin / 2), i && (c.message = $.wrapLabel(
2101
2101
  t.message,
2102
- n.width - 2 * o.wrapPadding,
2102
+ c.width - 2 * o.wrapPadding,
2103
2103
  ft(o)
2104
2104
  )), K.debug(
2105
- `NM:[${n.startx},${n.stopx},${n.starty},${n.stopy}:${n.width},${n.height}=${t.message}]`
2106
- ), n;
2107
- }, R0 = function(t, e, c) {
2105
+ `NM:[${c.startx},${c.stopx},${c.starty},${c.stopy}:${c.width},${c.height}=${t.message}]`
2106
+ ), c;
2107
+ }, R0 = function(t, e, l) {
2108
2108
  if (![
2109
- c.db.LINETYPE.SOLID_OPEN,
2110
- c.db.LINETYPE.DOTTED_OPEN,
2111
- c.db.LINETYPE.SOLID,
2112
- c.db.LINETYPE.DOTTED,
2113
- c.db.LINETYPE.SOLID_CROSS,
2114
- c.db.LINETYPE.DOTTED_CROSS,
2115
- c.db.LINETYPE.SOLID_POINT,
2116
- c.db.LINETYPE.DOTTED_POINT
2109
+ l.db.LINETYPE.SOLID_OPEN,
2110
+ l.db.LINETYPE.DOTTED_OPEN,
2111
+ l.db.LINETYPE.SOLID,
2112
+ l.db.LINETYPE.DOTTED,
2113
+ l.db.LINETYPE.SOLID_CROSS,
2114
+ l.db.LINETYPE.DOTTED_CROSS,
2115
+ l.db.LINETYPE.SOLID_POINT,
2116
+ l.db.LINETYPE.DOTTED_POINT
2117
2117
  ].includes(t.type))
2118
2118
  return {};
2119
- const [a, s] = Qt(t.from, e), [i, l] = Qt(t.to, e), n = a <= i, h = n ? s : a;
2120
- let r = n ? i : l;
2121
- const u = Math.abs(i - l) > 2, b = (_) => n ? -_ : _;
2122
- t.from === t.to ? r = h : (t.activate && !u && (r += b(o.activationWidth / 2 - 1)), [c.db.LINETYPE.SOLID_OPEN, c.db.LINETYPE.DOTTED_OPEN].includes(t.type) || (r += b(3)));
2123
- const g = [a, s, i, l], y = Math.abs(h - r);
2119
+ const [a, s] = Qt(t.from, e), [i, n] = Qt(t.to, e), c = a <= i, h = c ? s : a;
2120
+ let r = c ? i : n;
2121
+ const u = Math.abs(i - n) > 2, b = (_) => c ? -_ : _;
2122
+ t.from === t.to ? r = h : (t.activate && !u && (r += b(o.activationWidth / 2 - 1)), [l.db.LINETYPE.SOLID_OPEN, l.db.LINETYPE.DOTTED_OPEN].includes(t.type) || (r += b(3)));
2123
+ const g = [a, s, i, n], y = Math.abs(h - r);
2124
2124
  t.wrap && t.message && (t.message = $.wrapLabel(
2125
2125
  t.message,
2126
2126
  v.getMax(y + 2 * o.wrapPadding, o.width),
@@ -2144,9 +2144,9 @@ const D0 = async function(t, e, c) {
2144
2144
  fromBounds: Math.min.apply(null, g),
2145
2145
  toBounds: Math.max.apply(null, g)
2146
2146
  };
2147
- }, C0 = async function(t, e, c, a) {
2147
+ }, C0 = async function(t, e, l, a) {
2148
2148
  const s = {}, i = [];
2149
- let l, n, h;
2149
+ let n, c, h;
2150
2150
  for (const r of t) {
2151
2151
  switch (r.id = $.random({ length: 10 }), r.type) {
2152
2152
  case a.db.LINETYPE.LOOP_START:
@@ -2167,7 +2167,7 @@ const D0 = async function(t, e, c) {
2167
2167
  case a.db.LINETYPE.ALT_ELSE:
2168
2168
  case a.db.LINETYPE.PAR_AND:
2169
2169
  case a.db.LINETYPE.CRITICAL_OPTION:
2170
- r.message && (l = i.pop(), s[l.id] = l, s[r.id] = l, i.push(l));
2170
+ r.message && (n = i.pop(), s[n.id] = n, s[r.id] = n, i.push(n));
2171
2171
  break;
2172
2172
  case a.db.LINETYPE.LOOP_END:
2173
2173
  case a.db.LINETYPE.ALT_END:
@@ -2175,7 +2175,7 @@ const D0 = async function(t, e, c) {
2175
2175
  case a.db.LINETYPE.PAR_END:
2176
2176
  case a.db.LINETYPE.CRITICAL_END:
2177
2177
  case a.db.LINETYPE.BREAK_END:
2178
- l = i.pop(), s[l.id] = l;
2178
+ n = i.pop(), s[n.id] = n;
2179
2179
  break;
2180
2180
  case a.db.LINETYPE.ACTIVE_START:
2181
2181
  {
@@ -2195,22 +2195,22 @@ const D0 = async function(t, e, c) {
2195
2195
  }
2196
2196
  break;
2197
2197
  }
2198
- r.placement !== void 0 ? (n = await D0(r, e, a), r.noteModel = n, i.forEach((u) => {
2199
- l = u, l.from = v.getMin(l.from, n.startx), l.to = v.getMax(l.to, n.startx + n.width), l.width = v.getMax(l.width, Math.abs(l.from - l.to)) - o.labelBoxWidth;
2198
+ r.placement !== void 0 ? (c = await D0(r, e, a), r.noteModel = c, i.forEach((u) => {
2199
+ n = u, n.from = v.getMin(n.from, c.startx), n.to = v.getMax(n.to, c.startx + c.width), n.width = v.getMax(n.width, Math.abs(n.from - n.to)) - o.labelBoxWidth;
2200
2200
  })) : (h = R0(r, e, a), r.msgModel = h, h.startx && h.stopx && i.length > 0 && i.forEach((u) => {
2201
- if (l = u, h.startx === h.stopx) {
2201
+ if (n = u, h.startx === h.stopx) {
2202
2202
  const b = e[r.from], g = e[r.to];
2203
- l.from = v.getMin(
2203
+ n.from = v.getMin(
2204
2204
  b.x - h.width / 2,
2205
2205
  b.x - b.width / 2,
2206
- l.from
2207
- ), l.to = v.getMax(
2206
+ n.from
2207
+ ), n.to = v.getMax(
2208
2208
  g.x + h.width / 2,
2209
2209
  g.x + b.width / 2,
2210
- l.to
2211
- ), l.width = v.getMax(l.width, Math.abs(l.to - l.from)) - o.labelBoxWidth;
2210
+ n.to
2211
+ ), n.width = v.getMax(n.width, Math.abs(n.to - n.from)) - o.labelBoxWidth;
2212
2212
  } else
2213
- l.from = v.getMin(h.startx, l.from), l.to = v.getMax(h.stopx, l.to), l.width = v.getMax(l.width, h.width) - o.labelBoxWidth;
2213
+ n.from = v.getMin(h.startx, n.from), n.to = v.getMax(h.stopx, n.to), n.width = v.getMax(n.width, h.width) - o.labelBoxWidth;
2214
2214
  }));
2215
2215
  }
2216
2216
  return x.activations = [], K.debug("Loop type widths:", s), s;