@kong-ui-public/documentation 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{_basePickBy-zlkqRmFy-CQP0PMRw.js → _basePickBy-zlkqRmFy-Dq-PK6tA.js} +27 -27
- package/dist/_baseUniq-SAfYgIkf-DhYxnvgt.js +614 -0
- package/dist/{arc-CK9P6CkJ-B3oiAYoG.js → arc-CK9P6CkJ-lihx_wEv.js} +31 -31
- package/dist/{architecture-I3QFYML2-DJzmbE4M-BYAx4I-4.js → architecture-I3QFYML2-DJzmbE4M-B5s0Q1wg.js} +1 -1
- package/dist/{architectureDiagram-UYN6MBPD-DkZdgpXi-BC7nb0IZ.js → architectureDiagram-UYN6MBPD-DkZdgpXi-CC-fAW7y.js} +850 -850
- package/dist/{blockDiagram-ZHA2E4KO-DnCMGCMN-CU7ARVHN.js → blockDiagram-ZHA2E4KO-DnCMGCMN-B9tod6Dk.js} +477 -477
- package/dist/{c4Diagram-6F5ED5ID-D5yqWyf0-DEuKG0sN.js → c4Diagram-6F5ED5ID-D5yqWyf0-B1iuFSQ1.js} +203 -203
- package/dist/{channel-bVcNKbrJ-C4S-4qV3.js → channel-bVcNKbrJ-DEGmvXXN.js} +1 -1
- package/dist/{chunk-5HRBRIJM-BjQ8go1b-733bxiZ-.js → chunk-5HRBRIJM-BjQ8go1b-BszOhLz8.js} +4 -4
- package/dist/{chunk-7U56Z5CX-awhAxjZ0-DpUJ4fo1.js → chunk-7U56Z5CX-awhAxjZ0-CHd4qyz3.js} +120 -120
- package/dist/{chunk-ASOPGD6M-B5bA_saK-C3yF9T7p.js → chunk-ASOPGD6M-B5bA_saK-RaS3hIfR.js} +1 -1
- package/dist/{chunk-KFBOBJHC-nixdujtH-B4639Jmi.js → chunk-KFBOBJHC-nixdujtH-DCajFn7e.js} +1 -1
- package/dist/{chunk-T2TOU4HS-DqOVhIzl-piSN2Cjl.js → chunk-T2TOU4HS-DqOVhIzl-1waDvYDY.js} +229 -229
- package/dist/{chunk-TMUBEWPD-BRIzn5gH-SlHeKBx9.js → chunk-TMUBEWPD-BRIzn5gH-Ch1SRQ7H.js} +1 -1
- package/dist/{classDiagram-LNE6IOMH-fQzyXfo--C9LjXboP.js → classDiagram-LNE6IOMH-fQzyXfo--BpuwdnmV.js} +4 -4
- package/dist/{classDiagram-v2-MQ7JQ4JX-fQzyXfo--C9LjXboP.js → classDiagram-v2-MQ7JQ4JX-fQzyXfo--BpuwdnmV.js} +4 -4
- package/dist/{clone-_5SW34SG-DtUOH1l1.js → clone-_5SW34SG-BWxdvZXA.js} +1 -1
- package/dist/{cytoscape.esm-DAyNQ0qu-B7WxGuVh.js → cytoscape.esm-DAyNQ0qu-i5PnoWfE.js} +976 -976
- package/dist/{dagre-4EVJKHTY-CcAruc30-DaOjmyb6.js → dagre-4EVJKHTY-CcAruc30-H9W22Yky.js} +85 -85
- package/dist/{diagram-QW4FP2JN-DZT_0aFO-YCKYx1k-.js → diagram-QW4FP2JN-DZT_0aFO-AmG94tp5.js} +21 -21
- package/dist/documentation.es.js +1 -1
- package/dist/{erDiagram-6RL3IURR-BfgUC5jv-CS9Q9iKF.js → erDiagram-6RL3IURR-BfgUC5jv-BNzxBFoY.js} +201 -201
- package/dist/{flowDiagram-7ASYPVHJ-Bo9CnsE7-CkM-DJdr.js → flowDiagram-7ASYPVHJ-Bo9CnsE7-CSLq7kw9.js} +222 -222
- package/dist/{ganttDiagram-NTVNEXSI-8E9hjd6N-iN-VNXrV.js → ganttDiagram-NTVNEXSI-8E9hjd6N-CjQQCbaM.js} +16 -16
- package/dist/{gitGraph-YCYPL57B-BnErPIwo-DWobPBzL.js → gitGraph-YCYPL57B-BnErPIwo-DxQPpoWq.js} +1 -1
- package/dist/{gitGraphDiagram-NRZ2UAAF-B-t90-9e-Co4q5oQK.js → gitGraphDiagram-NRZ2UAAF-B-t90-9e-B6JY8bWo.js} +17 -17
- package/dist/{graph-BYZMvqpu-BpeF1PUA.js → graph-BYZMvqpu-CWGqkYZM.js} +43 -43
- package/dist/{index-ZM4BlVwk.js → index-BXOX6oou.js} +3487 -3487
- package/dist/{info-46DW6VJ7-DPpbx_vA-CnDg11wg.js → info-46DW6VJ7-DPpbx_vA-BmAPar7H.js} +1 -1
- package/dist/{infoDiagram-A4XQUW5V-Bo9uoOcA-WvvF1295.js → infoDiagram-A4XQUW5V-Bo9uoOcA-CtFRRRot.js} +2 -2
- package/dist/{journeyDiagram-G5WM74LC-BE7U42Ad-BFF_wJwi.js → journeyDiagram-G5WM74LC-BE7U42Ad-of9fN5Vr.js} +173 -173
- package/dist/{kanban-definition-QRCXZQQD-C-5-UNRm-LjA3yK5r.js → kanban-definition-QRCXZQQD-C-5-UNRm-DecJsseT.js} +168 -168
- package/dist/{katex-Qk2jHgyB-CF_fuFJb.js → katex-Qk2jHgyB-_qyJ_37x.js} +1054 -1054
- package/dist/{layout-BHI4imdk-DgoNZaqw.js → layout-BHI4imdk-BlkmyDbe.js} +19 -19
- package/dist/{linear-C2PheBya-wGRbEA3e.js → linear-C2PheBya-DijeUNjP.js} +2 -2
- package/dist/{mermaid-parser.core-Ce96PX3Q-DPc-bPXG.js → mermaid-parser.core-Ce96PX3Q-DtNzRUJ7.js} +32 -32
- package/dist/{mindmap-definition-GWI6TPTV-C98Syvj2-DOvfo2r8.js → mindmap-definition-GWI6TPTV-C98Syvj2-Btvji3Oh.js} +421 -421
- package/dist/{packet-W2GHVCYJ-BLiQbm7T-DbS7CM6G.js → packet-W2GHVCYJ-BLiQbm7T-E8ztaW67.js} +1 -1
- package/dist/{pie-BEWT4RHE-D3Mbo3mT-DB-aeuYE.js → pie-BEWT4RHE-D3Mbo3mT-BGVGE8TE.js} +1 -1
- package/dist/{pieDiagram-YF2LJOPJ-BJV27s9B-DS-nBsbY.js → pieDiagram-YF2LJOPJ-BJV27s9B-DVrzAwZP.js} +20 -20
- package/dist/{quadrantDiagram-OS5C2QUG-M57vVPSx-DMjI1wdt.js → quadrantDiagram-OS5C2QUG-M57vVPSx-DrN-qVPg.js} +131 -131
- package/dist/{requirementDiagram-MIRIMTAZ-D0KDg7rf-DeEsJ26T.js → requirementDiagram-MIRIMTAZ-D0KDg7rf-FCJNuddX.js} +77 -77
- package/dist/{sankeyDiagram-Y46BX6SQ-D6EdYPdp-BA6cRE1h.js → sankeyDiagram-Y46BX6SQ-D6EdYPdp-ClC_w0Hg.js} +108 -108
- package/dist/{sequenceDiagram-G6AWOVSC-B171TAb1-DMtStdxJ.js → sequenceDiagram-G6AWOVSC-B171TAb1-B6jBix6L.js} +181 -181
- package/dist/{stateDiagram-MAYHULR4-D7FUnT9_-Du3mnoL2.js → stateDiagram-MAYHULR4-D7FUnT9_-B7dSTUAT.js} +81 -81
- package/dist/{stateDiagram-v2-4JROLMXI-Cyc74STT-DR1h52WB.js → stateDiagram-v2-4JROLMXI-Cyc74STT-BhUBvhmS.js} +4 -4
- package/dist/{timeline-definition-U7ZMHBDA-Bw-dp1yf-BO9wUMSJ.js → timeline-definition-U7ZMHBDA-Bw-dp1yf-DAx9hgzp.js} +126 -126
- package/dist/{xychartDiagram-6QU3TZC5-CqbTSF5W-CwiL6udJ.js → xychartDiagram-6QU3TZC5-CqbTSF5W-Dy5Ia8cd.js} +70 -70
- package/package.json +2 -2
- package/dist/_baseUniq-SAfYgIkf-BO_CV6Oz.js +0 -614
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { e as Se } from "./chunk-KFBOBJHC-nixdujtH-
|
|
3
|
-
import { _ as l,
|
|
1
|
+
import { d as Ne, p as zt, y as Nt, x as Me, m as Oe, h as De } from "./chunk-ASOPGD6M-B5bA_saK-RaS3hIfR.js";
|
|
2
|
+
import { e as Se } from "./chunk-KFBOBJHC-nixdujtH-DCajFn7e.js";
|
|
3
|
+
import { _ as l, a6 as Re, a5 as Ce, a8 as ae, ak as Be, aj as $e, a7 as Ye, g as rt, a9 as kt, l as G, ae as se, aa as Ve, ab as Fe, ag as _, ad as Mt, aq as We, ao as Y, bf as wt, bg as lt, aY as re, bh as qe, bi as ie, aD as Yt } from "./index-BXOX6oou.js";
|
|
4
4
|
var Vt = function() {
|
|
5
5
|
var t = /* @__PURE__ */ l(function(ct, E, v, b) {
|
|
6
6
|
for (v = v || {}, b = ct.length; b--; v[ct[b]] = E) ;
|
|
7
7
|
return v;
|
|
8
|
-
}, "o"), e = [1, 2], n = [1, 3], a = [1, 4], s = [2, 4], r = [1, 9], c = [1, 11], h = [1, 13], g = [1, 14], i = [1, 16], x = [1, 17], m = [1, 18], u = [1, 24],
|
|
8
|
+
}, "o"), e = [1, 2], n = [1, 3], a = [1, 4], s = [2, 4], r = [1, 9], c = [1, 11], h = [1, 13], g = [1, 14], i = [1, 16], x = [1, 17], m = [1, 18], u = [1, 24], f = [1, 25], w = [1, 26], L = [1, 27], k = [1, 28], B = [1, 29], O = [1, 30], $ = [1, 31], S = [1, 32], W = [1, 33], q = [1, 34], J = [1, 35], et = [1, 36], z = [1, 37], H = [1, 38], F = [1, 39], D = [1, 41], Z = [1, 42], j = [1, 43], Q = [1, 44], at = [1, 45], M = [1, 46], T = [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], X = [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], it = [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], A = [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], Kt = [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], nt = [68, 69, 70], ht = [1, 122], St = {
|
|
9
9
|
trace: /* @__PURE__ */ l(function() {
|
|
10
10
|
}, "trace"),
|
|
11
11
|
yy: {},
|
|
@@ -207,7 +207,7 @@ var Vt = function() {
|
|
|
207
207
|
break;
|
|
208
208
|
}
|
|
209
209
|
}, "anonymous"),
|
|
210
|
-
table: [{ 3: 1, 4: e, 5: n, 6: a }, { 1: [3] }, { 3: 5, 4: e, 5: n, 6: a }, { 3: 6, 4: e, 5: n, 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: r, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: g, 17: 15, 18: i, 21: x, 22: 40, 23: m, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: u, 30:
|
|
210
|
+
table: [{ 3: 1, 4: e, 5: n, 6: a }, { 1: [3] }, { 3: 5, 4: e, 5: n, 6: a }, { 3: 6, 4: e, 5: n, 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: r, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: g, 17: 15, 18: i, 21: x, 22: 40, 23: m, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: u, 30: f, 31: w, 33: L, 35: k, 36: B, 37: O, 38: $, 39: S, 41: W, 43: q, 44: J, 46: et, 50: z, 52: H, 53: F, 54: D, 59: Z, 60: j, 61: Q, 62: at, 70: M }, t(T, [2, 5]), { 9: 47, 12: 12, 13: h, 14: g, 17: 15, 18: i, 21: x, 22: 40, 23: m, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: u, 30: f, 31: w, 33: L, 35: k, 36: B, 37: O, 38: $, 39: S, 41: W, 43: q, 44: J, 46: et, 50: z, 52: H, 53: F, 54: D, 59: Z, 60: j, 61: Q, 62: at, 70: M }, t(T, [2, 7]), t(T, [2, 8]), t(T, [2, 14]), { 12: 48, 50: z, 52: H, 53: F }, { 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(T, [2, 29]), t(T, [2, 30]), { 32: [1, 61] }, { 34: [1, 62] }, t(T, [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], 79: [1, 83], 80: [1, 84] }, { 55: 85, 57: [1, 86], 65: [1, 87], 66: [1, 88] }, { 22: 89, 70: M }, { 22: 90, 70: M }, { 22: 91, 70: M }, { 22: 92, 70: M }, t([5, 51, 64, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81], [2, 68]), t(T, [2, 6]), t(T, [2, 15]), t(P, [2, 9], { 10: 93 }), t(T, [2, 17]), { 5: [1, 95], 19: [1, 94] }, { 5: [1, 96] }, t(T, [2, 21]), { 5: [1, 97] }, { 5: [1, 98] }, t(T, [2, 24]), t(T, [2, 25]), t(T, [2, 26]), t(T, [2, 27]), t(T, [2, 28]), t(T, [2, 31]), t(T, [2, 32]), t(X, s, { 7: 99 }), t(X, s, { 7: 100 }), t(X, s, { 7: 101 }), t(it, s, { 40: 102, 7: 103 }), t(A, s, { 42: 104, 7: 105 }), t(A, s, { 7: 105, 42: 106 }), t(Kt, s, { 45: 107, 7: 108 }), t(X, s, { 7: 109 }), { 5: [1, 111], 51: [1, 110] }, { 5: [1, 113], 51: [1, 112] }, { 5: [1, 114] }, { 22: 117, 68: [1, 115], 69: [1, 116], 70: M }, t(nt, [2, 69]), t(nt, [2, 70]), t(nt, [2, 71]), t(nt, [2, 72]), t(nt, [2, 73]), t(nt, [2, 74]), t(nt, [2, 75]), t(nt, [2, 76]), t(nt, [2, 77]), t(nt, [2, 78]), { 22: 118, 70: M }, { 22: 120, 58: 119, 70: M }, { 70: [2, 63] }, { 70: [2, 64] }, { 56: 121, 81: ht }, { 56: 123, 81: ht }, { 56: 124, 81: ht }, { 56: 125, 81: ht }, { 4: [1, 128], 5: [1, 130], 11: 127, 12: 129, 16: [1, 126], 50: z, 52: H, 53: F }, { 5: [1, 131] }, t(T, [2, 19]), t(T, [2, 20]), t(T, [2, 22]), t(T, [2, 23]), { 4: r, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: g, 16: [1, 132], 17: 15, 18: i, 21: x, 22: 40, 23: m, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: u, 30: f, 31: w, 33: L, 35: k, 36: B, 37: O, 38: $, 39: S, 41: W, 43: q, 44: J, 46: et, 50: z, 52: H, 53: F, 54: D, 59: Z, 60: j, 61: Q, 62: at, 70: M }, { 4: r, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: g, 16: [1, 133], 17: 15, 18: i, 21: x, 22: 40, 23: m, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: u, 30: f, 31: w, 33: L, 35: k, 36: B, 37: O, 38: $, 39: S, 41: W, 43: q, 44: J, 46: et, 50: z, 52: H, 53: F, 54: D, 59: Z, 60: j, 61: Q, 62: at, 70: M }, { 4: r, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: g, 16: [1, 134], 17: 15, 18: i, 21: x, 22: 40, 23: m, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: u, 30: f, 31: w, 33: L, 35: k, 36: B, 37: O, 38: $, 39: S, 41: W, 43: q, 44: J, 46: et, 50: z, 52: H, 53: F, 54: D, 59: Z, 60: j, 61: Q, 62: at, 70: M }, { 16: [1, 135] }, { 4: r, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: g, 16: [2, 46], 17: 15, 18: i, 21: x, 22: 40, 23: m, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: u, 30: f, 31: w, 33: L, 35: k, 36: B, 37: O, 38: $, 39: S, 41: W, 43: q, 44: J, 46: et, 49: [1, 136], 50: z, 52: H, 53: F, 54: D, 59: Z, 60: j, 61: Q, 62: at, 70: M }, { 16: [1, 137] }, { 4: r, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: g, 16: [2, 44], 17: 15, 18: i, 21: x, 22: 40, 23: m, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: u, 30: f, 31: w, 33: L, 35: k, 36: B, 37: O, 38: $, 39: S, 41: W, 43: q, 44: J, 46: et, 48: [1, 138], 50: z, 52: H, 53: F, 54: D, 59: Z, 60: j, 61: Q, 62: at, 70: M }, { 16: [1, 139] }, { 16: [1, 140] }, { 4: r, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: g, 16: [2, 42], 17: 15, 18: i, 21: x, 22: 40, 23: m, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: u, 30: f, 31: w, 33: L, 35: k, 36: B, 37: O, 38: $, 39: S, 41: W, 43: q, 44: J, 46: et, 47: [1, 141], 50: z, 52: H, 53: F, 54: D, 59: Z, 60: j, 61: Q, 62: at, 70: M }, { 4: r, 5: c, 8: 8, 9: 10, 12: 12, 13: h, 14: g, 16: [1, 142], 17: 15, 18: i, 21: x, 22: 40, 23: m, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: u, 30: f, 31: w, 33: L, 35: k, 36: B, 37: O, 38: $, 39: S, 41: W, 43: q, 44: J, 46: et, 50: z, 52: H, 53: F, 54: D, 59: Z, 60: j, 61: Q, 62: at, 70: M }, { 15: [1, 143] }, t(T, [2, 49]), { 15: [1, 144] }, t(T, [2, 51]), t(T, [2, 52]), { 22: 145, 70: M }, { 22: 146, 70: M }, { 56: 147, 81: ht }, { 56: 148, 81: ht }, { 56: 149, 81: ht }, { 64: [1, 150], 81: [2, 62] }, { 5: [2, 55] }, { 5: [2, 79] }, { 5: [2, 56] }, { 5: [2, 57] }, { 5: [2, 58] }, t(T, [2, 16]), t(P, [2, 10]), { 12: 151, 50: z, 52: H, 53: F }, t(P, [2, 12]), t(P, [2, 13]), t(T, [2, 18]), t(T, [2, 34]), t(T, [2, 35]), t(T, [2, 36]), t(T, [2, 37]), { 15: [1, 152] }, t(T, [2, 38]), { 15: [1, 153] }, t(T, [2, 39]), t(T, [2, 40]), { 15: [1, 154] }, t(T, [2, 41]), { 5: [1, 155] }, { 5: [1, 156] }, { 56: 157, 81: ht }, { 56: 158, 81: ht }, { 5: [2, 67] }, { 5: [2, 53] }, { 5: [2, 54] }, { 22: 159, 70: M }, t(P, [2, 11]), t(it, s, { 7: 103, 40: 160 }), t(A, s, { 7: 105, 42: 161 }), t(Kt, s, { 7: 108, 45: 162 }), t(T, [2, 48]), t(T, [2, 50]), { 5: [2, 65] }, { 5: [2, 66] }, { 81: [2, 61] }, { 16: [2, 47] }, { 16: [2, 45] }, { 16: [2, 43] }],
|
|
211
211
|
defaultActions: { 5: [2, 1], 6: [2, 2], 87: [2, 63], 88: [2, 64], 121: [2, 55], 122: [2, 79], 123: [2, 56], 124: [2, 57], 125: [2, 58], 147: [2, 67], 148: [2, 53], 149: [2, 54], 157: [2, 65], 158: [2, 66], 159: [2, 61], 160: [2, 47], 161: [2, 45], 162: [2, 43] },
|
|
212
212
|
parseError: /* @__PURE__ */ l(function(ct, E) {
|
|
213
213
|
if (E.recoverable)
|
|
@@ -235,7 +235,7 @@ var Vt = function() {
|
|
|
235
235
|
return tt = b.pop() || V.lex() || Jt, typeof tt != "number" && (tt instanceof Array && (b = tt, tt = b.pop()), tt = E.symbols_[tt] || tt), tt;
|
|
236
236
|
}
|
|
237
237
|
l(Zt, "lex");
|
|
238
|
-
for (var K, ut, st, Bt,
|
|
238
|
+
for (var K, ut, st, Bt, ft = {}, vt, pt, Qt, Pt; ; ) {
|
|
239
239
|
if (ut = v[v.length - 1], this.defaultActions[ut] ? st = this.defaultActions[ut] : ((K === null || typeof K > "u") && (K = Zt()), st = U[ut] && U[ut][K]), typeof st > "u" || !st.length || !st[0]) {
|
|
240
240
|
var $t = "";
|
|
241
241
|
Pt = [];
|
|
@@ -258,15 +258,15 @@ Expecting ` + Pt.join(", ") + ", got '" + (this.terminals_[K] || K) + "'" : $t =
|
|
|
258
258
|
v.push(K), N.push(V.yytext), d.push(V.yylloc), v.push(st[1]), K = null, Gt = V.yyleng, p = V.yytext, _t = V.yylineno, Ct = V.yylloc;
|
|
259
259
|
break;
|
|
260
260
|
case 2:
|
|
261
|
-
if (pt = this.productions_[st[1]][1],
|
|
261
|
+
if (pt = this.productions_[st[1]][1], ft.$ = N[N.length - pt], ft._$ = {
|
|
262
262
|
first_line: d[d.length - (pt || 1)].first_line,
|
|
263
263
|
last_line: d[d.length - 1].last_line,
|
|
264
264
|
first_column: d[d.length - (pt || 1)].first_column,
|
|
265
265
|
last_column: d[d.length - 1].last_column
|
|
266
|
-
}, ke && (
|
|
266
|
+
}, ke && (ft._$.range = [
|
|
267
267
|
d[d.length - (pt || 1)].range[0],
|
|
268
268
|
d[d.length - 1].range[1]
|
|
269
|
-
]), Bt = this.performAction.apply(
|
|
269
|
+
]), Bt = this.performAction.apply(ft, [
|
|
270
270
|
p,
|
|
271
271
|
Gt,
|
|
272
272
|
_t,
|
|
@@ -276,7 +276,7 @@ Expecting ` + Pt.join(", ") + ", got '" + (this.terminals_[K] || K) + "'" : $t =
|
|
|
276
276
|
d
|
|
277
277
|
].concat(Pe)), typeof Bt < "u")
|
|
278
278
|
return Bt;
|
|
279
|
-
pt && (v = v.slice(0, -1 * pt * 2), N = N.slice(0, -1 * pt), d = d.slice(0, -1 * pt)), v.push(this.productions_[st[1]][0]), N.push(
|
|
279
|
+
pt && (v = v.slice(0, -1 * pt * 2), N = N.slice(0, -1 * pt), d = d.slice(0, -1 * pt)), v.push(this.productions_[st[1]][0]), N.push(ft.$), d.push(ft._$), Qt = U[v[v.length - 2]][v[v.length - 1]], v.push(Qt);
|
|
280
280
|
break;
|
|
281
281
|
case 3:
|
|
282
282
|
return !0;
|
|
@@ -701,17 +701,17 @@ var ze = Vt, I = new Se(() => ({
|
|
|
701
701
|
return I.records.actors;
|
|
702
702
|
}, "getActors"), Xe = /* @__PURE__ */ l(function() {
|
|
703
703
|
return I.records.createdActors;
|
|
704
|
-
}, "getCreatedActors"),
|
|
704
|
+
}, "getCreatedActors"), ta = /* @__PURE__ */ l(function() {
|
|
705
705
|
return I.records.destroyedActors;
|
|
706
706
|
}, "getDestroyedActors"), It = /* @__PURE__ */ l(function(t) {
|
|
707
707
|
return I.records.actors.get(t);
|
|
708
|
-
}, "getActor"),
|
|
708
|
+
}, "getActor"), ea = /* @__PURE__ */ l(function() {
|
|
709
709
|
return [...I.records.actors.keys()];
|
|
710
|
-
}, "getActorKeys"),
|
|
710
|
+
}, "getActorKeys"), aa = /* @__PURE__ */ l(function() {
|
|
711
711
|
I.records.sequenceNumbersEnabled = !0;
|
|
712
|
-
}, "enableSequenceNumbers"),
|
|
712
|
+
}, "enableSequenceNumbers"), sa = /* @__PURE__ */ l(function() {
|
|
713
713
|
I.records.sequenceNumbersEnabled = !1;
|
|
714
|
-
}, "disableSequenceNumbers"),
|
|
714
|
+
}, "disableSequenceNumbers"), ra = /* @__PURE__ */ l(() => I.records.sequenceNumbersEnabled, "showSequenceNumbers"), ia = /* @__PURE__ */ l(function(t) {
|
|
715
715
|
I.records.wrapEnabled = t;
|
|
716
716
|
}, "setWrap"), oe = /* @__PURE__ */ l((t) => {
|
|
717
717
|
if (t === void 0)
|
|
@@ -722,15 +722,15 @@ var ze = Vt, I = new Se(() => ({
|
|
|
722
722
|
}, "extractWrap"), yt = /* @__PURE__ */ l(() => {
|
|
723
723
|
var t;
|
|
724
724
|
return I.records.wrapEnabled !== void 0 ? I.records.wrapEnabled : ((t = rt().sequence) == null ? void 0 : t.wrap) ?? !1;
|
|
725
|
-
}, "autoWrap"),
|
|
726
|
-
I.reset(),
|
|
727
|
-
}, "clear"),
|
|
725
|
+
}, "autoWrap"), oa = /* @__PURE__ */ l(function() {
|
|
726
|
+
I.reset(), We();
|
|
727
|
+
}, "clear"), na = /* @__PURE__ */ l(function(t) {
|
|
728
728
|
const e = t.trim(), { wrap: n, cleanedText: a } = oe(e), s = {
|
|
729
729
|
text: a,
|
|
730
730
|
wrap: n
|
|
731
731
|
};
|
|
732
732
|
return G.debug(`parseMessage: ${JSON.stringify(s)}`), s;
|
|
733
|
-
}, "parseMessage"),
|
|
733
|
+
}, "parseMessage"), ca = /* @__PURE__ */ l(function(t) {
|
|
734
734
|
const e = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t);
|
|
735
735
|
let n = e != null && e[1] ? e[1].trim() : "transparent", a = e != null && e[2] ? e[2].trim() : void 0;
|
|
736
736
|
if (window != null && window.CSS)
|
|
@@ -778,10 +778,10 @@ var ze = Vt, I = new Se(() => ({
|
|
|
778
778
|
PAR_OVER_START: 32,
|
|
779
779
|
BIDIRECTIONAL_SOLID: 33,
|
|
780
780
|
BIDIRECTIONAL_DOTTED: 34
|
|
781
|
-
},
|
|
781
|
+
}, da = {
|
|
782
782
|
FILLED: 0,
|
|
783
783
|
OPEN: 1
|
|
784
|
-
},
|
|
784
|
+
}, la = {
|
|
785
785
|
LEFTOF: 0,
|
|
786
786
|
RIGHTOF: 1,
|
|
787
787
|
OVER: 2
|
|
@@ -810,7 +810,7 @@ var ze = Vt, I = new Se(() => ({
|
|
|
810
810
|
} catch (a) {
|
|
811
811
|
G.error("error while parsing actor link text", a);
|
|
812
812
|
}
|
|
813
|
-
}, "addLinks"),
|
|
813
|
+
}, "addLinks"), ha = /* @__PURE__ */ l(function(t, e) {
|
|
814
814
|
const n = It(t);
|
|
815
815
|
try {
|
|
816
816
|
const a = {};
|
|
@@ -860,7 +860,7 @@ var he = /* @__PURE__ */ l(function(t, e) {
|
|
|
860
860
|
} catch (s) {
|
|
861
861
|
G.error("error while parsing actor details text", s);
|
|
862
862
|
}
|
|
863
|
-
}, "addDetails"),
|
|
863
|
+
}, "addDetails"), pa = /* @__PURE__ */ l(function(t, e) {
|
|
864
864
|
if ((t == null ? void 0 : t.properties) !== void 0)
|
|
865
865
|
return t.properties[e];
|
|
866
866
|
}, "getActorProperty"), pe = /* @__PURE__ */ l(function(t) {
|
|
@@ -909,7 +909,7 @@ var he = /* @__PURE__ */ l(function(t, e) {
|
|
|
909
909
|
ce(t.actor, t.text);
|
|
910
910
|
break;
|
|
911
911
|
case "addALink":
|
|
912
|
-
|
|
912
|
+
ha(t.actor, t.text);
|
|
913
913
|
break;
|
|
914
914
|
case "addProperties":
|
|
915
915
|
de(t.actor, t.text);
|
|
@@ -967,7 +967,7 @@ var he = /* @__PURE__ */ l(function(t, e) {
|
|
|
967
967
|
R(void 0, void 0, void 0, t.signalType);
|
|
968
968
|
break;
|
|
969
969
|
case "setAccTitle":
|
|
970
|
-
|
|
970
|
+
ae(t.text);
|
|
971
971
|
break;
|
|
972
972
|
case "parStart":
|
|
973
973
|
R(void 0, void 0, t.parText, t.signalType);
|
|
@@ -1002,36 +1002,36 @@ var he = /* @__PURE__ */ l(function(t, e) {
|
|
|
1002
1002
|
addDetails: he,
|
|
1003
1003
|
addProperties: de,
|
|
1004
1004
|
autoWrap: yt,
|
|
1005
|
-
setWrap:
|
|
1006
|
-
enableSequenceNumbers:
|
|
1007
|
-
disableSequenceNumbers:
|
|
1008
|
-
showSequenceNumbers:
|
|
1005
|
+
setWrap: ia,
|
|
1006
|
+
enableSequenceNumbers: aa,
|
|
1007
|
+
disableSequenceNumbers: sa,
|
|
1008
|
+
showSequenceNumbers: ra,
|
|
1009
1009
|
getMessages: Je,
|
|
1010
1010
|
getActors: Qe,
|
|
1011
1011
|
getCreatedActors: Xe,
|
|
1012
|
-
getDestroyedActors:
|
|
1012
|
+
getDestroyedActors: ta,
|
|
1013
1013
|
getActor: It,
|
|
1014
|
-
getActorKeys:
|
|
1015
|
-
getActorProperty:
|
|
1016
|
-
getAccTitle:
|
|
1014
|
+
getActorKeys: ea,
|
|
1015
|
+
getActorProperty: pa,
|
|
1016
|
+
getAccTitle: Ye,
|
|
1017
1017
|
getBoxes: Ze,
|
|
1018
|
-
getDiagramTitle:
|
|
1018
|
+
getDiagramTitle: $e,
|
|
1019
1019
|
setDiagramTitle: Be,
|
|
1020
1020
|
getConfig: /* @__PURE__ */ l(() => rt().sequence, "getConfig"),
|
|
1021
|
-
clear:
|
|
1022
|
-
parseMessage:
|
|
1023
|
-
parseBoxData:
|
|
1021
|
+
clear: oa,
|
|
1022
|
+
parseMessage: na,
|
|
1023
|
+
parseBoxData: ca,
|
|
1024
1024
|
LINETYPE: Et,
|
|
1025
|
-
ARROWTYPE:
|
|
1026
|
-
PLACEMENT:
|
|
1025
|
+
ARROWTYPE: da,
|
|
1026
|
+
PLACEMENT: la,
|
|
1027
1027
|
addNote: ne,
|
|
1028
|
-
setAccTitle:
|
|
1028
|
+
setAccTitle: ae,
|
|
1029
1029
|
apply: pe,
|
|
1030
|
-
setAccDescription:
|
|
1031
|
-
getAccDescription:
|
|
1030
|
+
setAccDescription: Ce,
|
|
1031
|
+
getAccDescription: Re,
|
|
1032
1032
|
hasAtLeastOneBox: Ke,
|
|
1033
1033
|
hasAtLeastOneBoxWithTitle: Ge
|
|
1034
|
-
},
|
|
1034
|
+
}, ga = /* @__PURE__ */ l((t) => `.actor {
|
|
1035
1035
|
stroke: ${t.actorBorder};
|
|
1036
1036
|
fill: ${t.actorBkg};
|
|
1037
1037
|
}
|
|
@@ -1147,9 +1147,9 @@ var he = /* @__PURE__ */ l(function(t, e) {
|
|
|
1147
1147
|
fill: ${t.actorBkg};
|
|
1148
1148
|
stroke-width: 2px;
|
|
1149
1149
|
}
|
|
1150
|
-
`, "getStyles"),
|
|
1151
|
-
return
|
|
1152
|
-
}, "drawRect"),
|
|
1150
|
+
`, "getStyles"), ua = ga, xt = 18 * 2, ge = "actor-top", ue = "actor-bottom", xa = "actor-box", te = "actor-man", jt = /* @__PURE__ */ l(function(t, e) {
|
|
1151
|
+
return Me(t, e);
|
|
1152
|
+
}, "drawRect"), ya = /* @__PURE__ */ l(function(t, e, n, a, s) {
|
|
1153
1153
|
if (e.links === void 0 || e.links === null || Object.keys(e.links).length === 0)
|
|
1154
1154
|
return { height: 0, width: 0 };
|
|
1155
1155
|
const r = e.links, c = e.actorCnt, h = e.rectData;
|
|
@@ -1162,23 +1162,23 @@ var he = /* @__PURE__ */ l(function(t, e) {
|
|
|
1162
1162
|
let m = h.width > n ? h.width : n;
|
|
1163
1163
|
const u = i.append("rect");
|
|
1164
1164
|
if (u.attr("class", "actorPopupMenuPanel" + x), u.attr("x", h.x), u.attr("y", h.height), u.attr("fill", h.fill), u.attr("stroke", h.stroke), u.attr("width", m), u.attr("height", h.height), u.attr("rx", h.rx), u.attr("ry", h.ry), r != null) {
|
|
1165
|
-
var
|
|
1165
|
+
var f = 20;
|
|
1166
1166
|
for (let k in r) {
|
|
1167
|
-
var w = i.append("a"), L =
|
|
1168
|
-
w.attr("xlink:href", L), w.attr("target", "_blank"),
|
|
1167
|
+
var w = i.append("a"), L = se.sanitizeUrl(r[k]);
|
|
1168
|
+
w.attr("xlink:href", L), w.attr("target", "_blank"), Da(a)(
|
|
1169
1169
|
k,
|
|
1170
1170
|
w,
|
|
1171
1171
|
h.x + 10,
|
|
1172
|
-
h.height +
|
|
1172
|
+
h.height + f,
|
|
1173
1173
|
m,
|
|
1174
1174
|
20,
|
|
1175
1175
|
{ class: "actor" },
|
|
1176
1176
|
a
|
|
1177
|
-
),
|
|
1177
|
+
), f += 30;
|
|
1178
1178
|
}
|
|
1179
1179
|
}
|
|
1180
|
-
return u.attr("height",
|
|
1181
|
-
}, "drawPopup"),
|
|
1180
|
+
return u.attr("height", f), { height: h.height + f, width: m };
|
|
1181
|
+
}, "drawPopup"), ma = /* @__PURE__ */ l(function(t) {
|
|
1182
1182
|
return "var pu = document.getElementById('" + t + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
|
|
1183
1183
|
}, "popupMenuToggle"), At = /* @__PURE__ */ l(async function(t, e, n = null) {
|
|
1184
1184
|
let a = t.append("foreignObject");
|
|
@@ -1237,12 +1237,12 @@ var he = /* @__PURE__ */ l(function(t, e) {
|
|
|
1237
1237
|
e.textMargin !== void 0 && e.textMargin === 0 && r !== void 0 && (g = x * r);
|
|
1238
1238
|
const u = t.append("text");
|
|
1239
1239
|
u.attr("x", e.x), u.attr("y", i()), e.anchor !== void 0 && u.attr("text-anchor", e.anchor).attr("dominant-baseline", e.dominantBaseline).attr("alignment-baseline", e.alignmentBaseline), e.fontFamily !== void 0 && u.style("font-family", e.fontFamily), c !== void 0 && u.style("font-size", c), e.fontWeight !== void 0 && u.style("font-weight", e.fontWeight), e.fill !== void 0 && u.attr("fill", e.fill), e.class !== void 0 && u.attr("class", e.class), e.dy !== void 0 ? u.attr("dy", e.dy) : g !== 0 && u.attr("dy", g);
|
|
1240
|
-
const
|
|
1240
|
+
const f = m || qe;
|
|
1241
1241
|
if (e.tspan) {
|
|
1242
1242
|
const w = u.append("tspan");
|
|
1243
|
-
w.attr("x", e.x), e.fill !== void 0 && w.attr("fill", e.fill), w.text(
|
|
1243
|
+
w.attr("x", e.x), e.fill !== void 0 && w.attr("fill", e.fill), w.text(f);
|
|
1244
1244
|
} else
|
|
1245
|
-
u.text(
|
|
1245
|
+
u.text(f);
|
|
1246
1246
|
e.valign !== void 0 && e.textMargin !== void 0 && e.textMargin > 0 && (a += (u._groups || u)[0][0].getBBox().height, n = a), h.push(u);
|
|
1247
1247
|
}
|
|
1248
1248
|
return h;
|
|
@@ -1258,15 +1258,15 @@ var he = /* @__PURE__ */ l(function(t, e) {
|
|
|
1258
1258
|
const r = e.get(s), c = t.select("#actor" + r.actorCnt);
|
|
1259
1259
|
!a.mirrorActors && r.stopy ? c.attr("y2", r.stopy + r.height / 2) : a.mirrorActors && c.attr("y2", r.stopy);
|
|
1260
1260
|
});
|
|
1261
|
-
}, "fixLifeLineHeights"),
|
|
1261
|
+
}, "fixLifeLineHeights"), fa = /* @__PURE__ */ l(function(t, e, n, a) {
|
|
1262
1262
|
var s, r;
|
|
1263
1263
|
const c = a ? e.stopy : e.starty, h = e.x + e.width / 2, g = c + e.height, i = t.append("g").lower();
|
|
1264
1264
|
var x = i;
|
|
1265
|
-
a || (dt++, Object.keys(e.links || {}).length && !n.forceMenus && x.attr("onclick",
|
|
1265
|
+
a || (dt++, Object.keys(e.links || {}).length && !n.forceMenus && x.attr("onclick", ma(`actor${dt}_popup`)).attr("cursor", "pointer"), x.append("line").attr("id", "actor" + dt).attr("x1", h).attr("y1", g).attr("x2", h).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", e.name), x = i.append("g"), e.actorCnt = dt, e.links != null && x.attr("id", "root-" + dt));
|
|
1266
1266
|
const m = Nt();
|
|
1267
1267
|
var u = "actor";
|
|
1268
1268
|
(s = e.properties) != null && s.class ? u = e.properties.class : m.fill = "#eaeaea", a ? u += ` ${ue}` : u += ` ${ge}`, m.x = e.x, m.y = c, m.width = e.width, m.height = e.height, m.class = u, m.rx = 3, m.ry = 3, m.name = e.name;
|
|
1269
|
-
const
|
|
1269
|
+
const f = jt(x, m);
|
|
1270
1270
|
if (e.rectData = m, (r = e.properties) != null && r.icon) {
|
|
1271
1271
|
const L = e.properties.icon.trim();
|
|
1272
1272
|
L.charAt(0) === "@" ? Oe(x, m.x + m.width - 20, m.y + 10, L.substr(1)) : De(x, m.x + m.width - 20, m.y + 10, L);
|
|
@@ -1278,16 +1278,16 @@ var he = /* @__PURE__ */ l(function(t, e) {
|
|
|
1278
1278
|
m.y,
|
|
1279
1279
|
m.width,
|
|
1280
1280
|
m.height,
|
|
1281
|
-
{ class: `actor ${
|
|
1281
|
+
{ class: `actor ${xa}` },
|
|
1282
1282
|
n
|
|
1283
1283
|
);
|
|
1284
1284
|
let w = e.height;
|
|
1285
|
-
if (
|
|
1286
|
-
const L =
|
|
1285
|
+
if (f.node) {
|
|
1286
|
+
const L = f.node().getBBox();
|
|
1287
1287
|
e.height = L.height, w = L.height;
|
|
1288
1288
|
}
|
|
1289
1289
|
return w;
|
|
1290
|
-
}, "drawActorTypeParticipant"),
|
|
1290
|
+
}, "drawActorTypeParticipant"), Ta = /* @__PURE__ */ l(function(t, e, n, a) {
|
|
1291
1291
|
const s = a ? e.stopy : e.starty, r = e.x + e.width / 2, c = s + 80, h = t.append("g").lower();
|
|
1292
1292
|
a || (dt++, h.append("line").attr("id", "actor" + dt).attr("x1", r).attr("y1", c).attr("x2", r).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", e.name), e.actorCnt = dt);
|
|
1293
1293
|
const g = t.append("g");
|
|
@@ -1308,14 +1308,14 @@ var he = /* @__PURE__ */ l(function(t, e) {
|
|
|
1308
1308
|
{ class: `actor ${te}` },
|
|
1309
1309
|
n
|
|
1310
1310
|
), e.height;
|
|
1311
|
-
}, "drawActorTypeActor"),
|
|
1311
|
+
}, "drawActorTypeActor"), ba = /* @__PURE__ */ l(async function(t, e, n, a) {
|
|
1312
1312
|
switch (e.type) {
|
|
1313
1313
|
case "actor":
|
|
1314
|
-
return await
|
|
1314
|
+
return await Ta(t, e, n, a);
|
|
1315
1315
|
case "participant":
|
|
1316
|
-
return await
|
|
1316
|
+
return await fa(t, e, n, a);
|
|
1317
1317
|
}
|
|
1318
|
-
}, "drawActor"),
|
|
1318
|
+
}, "drawActor"), Ea = /* @__PURE__ */ l(function(t, e, n) {
|
|
1319
1319
|
const a = t.append("g");
|
|
1320
1320
|
me(a, e), e.name && Ut(n)(
|
|
1321
1321
|
e.name,
|
|
@@ -1327,12 +1327,12 @@ var he = /* @__PURE__ */ l(function(t, e) {
|
|
|
1327
1327
|
{ class: "text" },
|
|
1328
1328
|
n
|
|
1329
1329
|
), a.lower();
|
|
1330
|
-
}, "drawBox"),
|
|
1330
|
+
}, "drawBox"), wa = /* @__PURE__ */ l(function(t) {
|
|
1331
1331
|
return t.append("g");
|
|
1332
|
-
}, "anchorElement"),
|
|
1332
|
+
}, "anchorElement"), Ia = /* @__PURE__ */ l(function(t, e, n, a, s) {
|
|
1333
1333
|
const r = Nt(), c = e.anchored;
|
|
1334
1334
|
r.x = e.startx, r.y = e.starty, r.class = "activation" + s % 3, r.width = e.stopx - e.startx, r.height = n - e.starty, jt(c, r);
|
|
1335
|
-
}, "drawActivation"),
|
|
1335
|
+
}, "drawActivation"), La = /* @__PURE__ */ l(async function(t, e, n, a) {
|
|
1336
1336
|
const {
|
|
1337
1337
|
boxMargin: s,
|
|
1338
1338
|
boxTextMargin: r,
|
|
@@ -1350,13 +1350,13 @@ var he = /* @__PURE__ */ l(function(t, e) {
|
|
|
1350
1350
|
"3, 3"
|
|
1351
1351
|
);
|
|
1352
1352
|
});
|
|
1353
|
-
let
|
|
1354
|
-
|
|
1355
|
-
let w = lt(
|
|
1353
|
+
let f = zt();
|
|
1354
|
+
f.text = n, f.x = e.startx, f.y = e.starty, f.fontFamily = g, f.fontSize = i, f.fontWeight = x, f.anchor = "middle", f.valign = "middle", f.tspan = !1, f.width = h || 50, f.height = c || 20, f.textMargin = r, f.class = "labelText", xe(m, f), f = fe(), f.text = e.title, f.x = e.startx + h / 2 + (e.stopx - e.startx) / 2, f.y = e.starty + s + r, f.anchor = "middle", f.valign = "middle", f.textMargin = r, f.class = "loopText", f.fontFamily = g, f.fontSize = i, f.fontWeight = x, f.wrap = !0;
|
|
1355
|
+
let w = lt(f.text) ? await At(m, f, e) : bt(m, f);
|
|
1356
1356
|
if (e.sectionTitles !== void 0) {
|
|
1357
1357
|
for (const [L, k] of Object.entries(e.sectionTitles))
|
|
1358
1358
|
if (k.message) {
|
|
1359
|
-
|
|
1359
|
+
f.text = k.message, f.x = e.startx + (e.stopx - e.startx) / 2, f.y = e.sections[L].y + s + r, f.class = "loopText", f.anchor = "middle", f.valign = "middle", f.tspan = !1, f.fontFamily = g, f.fontSize = i, f.fontWeight = x, f.wrap = e.wrap, lt(f.text) ? (e.starty = e.sections[L].y, await At(m, f, e)) : bt(m, f);
|
|
1360
1360
|
let B = Math.round(
|
|
1361
1361
|
w.map((O) => (O._groups || O)[0][0].getBBox().height).reduce((O, $) => O + $)
|
|
1362
1362
|
);
|
|
@@ -1365,31 +1365,31 @@ var he = /* @__PURE__ */ l(function(t, e) {
|
|
|
1365
1365
|
}
|
|
1366
1366
|
return e.height = Math.round(e.stopy - e.starty), m;
|
|
1367
1367
|
}, "drawLoop"), me = /* @__PURE__ */ l(function(t, e) {
|
|
1368
|
-
|
|
1369
|
-
}, "drawBackgroundRect"),
|
|
1368
|
+
Ne(t, e);
|
|
1369
|
+
}, "drawBackgroundRect"), _a = /* @__PURE__ */ l(function(t) {
|
|
1370
1370
|
t.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr(
|
|
1371
1371
|
"d",
|
|
1372
1372
|
"M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z"
|
|
1373
1373
|
);
|
|
1374
|
-
}, "insertDatabaseIcon"),
|
|
1374
|
+
}, "insertDatabaseIcon"), va = /* @__PURE__ */ l(function(t) {
|
|
1375
1375
|
t.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
|
|
1376
1376
|
"d",
|
|
1377
1377
|
"M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z"
|
|
1378
1378
|
);
|
|
1379
|
-
}, "insertComputerIcon"),
|
|
1379
|
+
}, "insertComputerIcon"), Pa = /* @__PURE__ */ l(function(t) {
|
|
1380
1380
|
t.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
|
|
1381
1381
|
"d",
|
|
1382
1382
|
"M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z"
|
|
1383
1383
|
);
|
|
1384
|
-
}, "insertClockIcon"),
|
|
1384
|
+
}, "insertClockIcon"), ka = /* @__PURE__ */ l(function(t) {
|
|
1385
1385
|
t.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 7.9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M -1 0 L 10 5 L 0 10 z");
|
|
1386
|
-
}, "insertArrowHead"),
|
|
1386
|
+
}, "insertArrowHead"), Aa = /* @__PURE__ */ l(function(t) {
|
|
1387
1387
|
t.append("defs").append("marker").attr("id", "filled-head").attr("refX", 15.5).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
|
|
1388
|
-
}, "insertArrowFilledHead"),
|
|
1388
|
+
}, "insertArrowFilledHead"), Na = /* @__PURE__ */ l(function(t) {
|
|
1389
1389
|
t.append("defs").append("marker").attr("id", "sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6);
|
|
1390
|
-
}, "insertSequenceNumber"),
|
|
1390
|
+
}, "insertSequenceNumber"), Ma = /* @__PURE__ */ l(function(t) {
|
|
1391
1391
|
t.append("defs").append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 4.5).append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1pt").attr("d", "M 1,2 L 6,7 M 6,2 L 1,7");
|
|
1392
|
-
}, "insertArrowCrossHead"),
|
|
1392
|
+
}, "insertArrowCrossHead"), fe = /* @__PURE__ */ l(function() {
|
|
1393
1393
|
return {
|
|
1394
1394
|
x: 0,
|
|
1395
1395
|
y: 0,
|
|
@@ -1404,7 +1404,7 @@ var he = /* @__PURE__ */ l(function(t, e) {
|
|
|
1404
1404
|
tspan: !0,
|
|
1405
1405
|
valign: void 0
|
|
1406
1406
|
};
|
|
1407
|
-
}, "getTextObj"),
|
|
1407
|
+
}, "getTextObj"), Oa = /* @__PURE__ */ l(function() {
|
|
1408
1408
|
return {
|
|
1409
1409
|
x: 0,
|
|
1410
1410
|
y: 0,
|
|
@@ -1423,7 +1423,7 @@ var he = /* @__PURE__ */ l(function(t, e) {
|
|
|
1423
1423
|
}
|
|
1424
1424
|
l(t, "byText");
|
|
1425
1425
|
function e(r, c, h, g, i, x, m, u) {
|
|
1426
|
-
const { actorFontSize:
|
|
1426
|
+
const { actorFontSize: f, actorFontFamily: w, actorFontWeight: L } = u, [k, B] = re(f), O = r.split(_.lineBreakRegex);
|
|
1427
1427
|
for (let $ = 0; $ < O.length; $++) {
|
|
1428
1428
|
const S = $ * k - k * (O.length - 1) / 2, W = c.append("text").attr("x", h + i / 2).attr("y", g).style("text-anchor", "middle").style("font-size", B).style("font-weight", L).style("font-family", w);
|
|
1429
1429
|
W.append("tspan").attr("x", h + i / 2).attr("dy", S).text(O[$]), W.attr("y", g + x / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), s(W, m);
|
|
@@ -1431,12 +1431,12 @@ var he = /* @__PURE__ */ l(function(t, e) {
|
|
|
1431
1431
|
}
|
|
1432
1432
|
l(e, "byTspan");
|
|
1433
1433
|
function n(r, c, h, g, i, x, m, u) {
|
|
1434
|
-
const
|
|
1435
|
-
w.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(r), e(r,
|
|
1434
|
+
const f = c.append("switch"), w = f.append("foreignObject").attr("x", h).attr("y", g).attr("width", i).attr("height", x).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
1435
|
+
w.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(r), e(r, f, h, g, i, x, m, u), s(w, m);
|
|
1436
1436
|
}
|
|
1437
1437
|
l(n, "byFo");
|
|
1438
1438
|
async function a(r, c, h, g, i, x, m, u) {
|
|
1439
|
-
const
|
|
1439
|
+
const f = await wt(r, Yt()), w = c.append("switch"), L = w.append("foreignObject").attr("x", h + i / 2 - f.width / 2).attr("y", g + x / 2 - f.height / 2).attr("width", f.width).attr("height", f.height).append("xhtml:div").style("height", "100%").style("width", "100%");
|
|
1440
1440
|
L.append("div").style("text-align", "center").style("vertical-align", "middle").html(await ie(r, Yt())), e(r, w, h, g, i, x, m, u), s(L, m);
|
|
1441
1441
|
}
|
|
1442
1442
|
l(a, "byKatex");
|
|
@@ -1447,23 +1447,23 @@ var he = /* @__PURE__ */ l(function(t, e) {
|
|
|
1447
1447
|
return l(s, "_setTextAttrs"), function(r, c = !1) {
|
|
1448
1448
|
return c ? a : r.textPlacement === "fo" ? n : r.textPlacement === "old" ? t : e;
|
|
1449
1449
|
};
|
|
1450
|
-
}(),
|
|
1450
|
+
}(), Da = /* @__PURE__ */ function() {
|
|
1451
1451
|
function t(s, r, c, h, g, i, x) {
|
|
1452
1452
|
const m = r.append("text").attr("x", c).attr("y", h).style("text-anchor", "start").text(s);
|
|
1453
1453
|
a(m, x);
|
|
1454
1454
|
}
|
|
1455
1455
|
l(t, "byText");
|
|
1456
1456
|
function e(s, r, c, h, g, i, x, m) {
|
|
1457
|
-
const { actorFontSize: u, actorFontFamily:
|
|
1457
|
+
const { actorFontSize: u, actorFontFamily: f, actorFontWeight: w } = m, L = s.split(_.lineBreakRegex);
|
|
1458
1458
|
for (let k = 0; k < L.length; k++) {
|
|
1459
|
-
const B = k * u - u * (L.length - 1) / 2, O = r.append("text").attr("x", c).attr("y", h).style("text-anchor", "start").style("font-size", u).style("font-weight", w).style("font-family",
|
|
1459
|
+
const B = k * u - u * (L.length - 1) / 2, O = r.append("text").attr("x", c).attr("y", h).style("text-anchor", "start").style("font-size", u).style("font-weight", w).style("font-family", f);
|
|
1460
1460
|
O.append("tspan").attr("x", c).attr("dy", B).text(L[k]), O.attr("y", h + i / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), a(O, x);
|
|
1461
1461
|
}
|
|
1462
1462
|
}
|
|
1463
1463
|
l(e, "byTspan");
|
|
1464
1464
|
function n(s, r, c, h, g, i, x, m) {
|
|
1465
|
-
const u = r.append("switch"),
|
|
1466
|
-
|
|
1465
|
+
const u = r.append("switch"), f = u.append("foreignObject").attr("x", c).attr("y", h).attr("width", g).attr("height", i).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
1466
|
+
f.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(s), e(s, u, c, h, g, i, x, m), a(f, x);
|
|
1467
1467
|
}
|
|
1468
1468
|
l(n, "byFo");
|
|
1469
1469
|
function a(s, r) {
|
|
@@ -1477,24 +1477,24 @@ var he = /* @__PURE__ */ l(function(t, e) {
|
|
|
1477
1477
|
drawRect: jt,
|
|
1478
1478
|
drawText: bt,
|
|
1479
1479
|
drawLabel: xe,
|
|
1480
|
-
drawActor:
|
|
1481
|
-
drawBox:
|
|
1482
|
-
drawPopup:
|
|
1483
|
-
anchorElement:
|
|
1484
|
-
drawActivation:
|
|
1485
|
-
drawLoop:
|
|
1480
|
+
drawActor: ba,
|
|
1481
|
+
drawBox: Ea,
|
|
1482
|
+
drawPopup: ya,
|
|
1483
|
+
anchorElement: wa,
|
|
1484
|
+
drawActivation: Ia,
|
|
1485
|
+
drawLoop: La,
|
|
1486
1486
|
drawBackgroundRect: me,
|
|
1487
|
-
insertArrowHead:
|
|
1488
|
-
insertArrowFilledHead:
|
|
1489
|
-
insertSequenceNumber:
|
|
1490
|
-
insertArrowCrossHead:
|
|
1491
|
-
insertDatabaseIcon:
|
|
1492
|
-
insertComputerIcon:
|
|
1493
|
-
insertClockIcon:
|
|
1494
|
-
getTextObj:
|
|
1495
|
-
getNoteRect:
|
|
1487
|
+
insertArrowHead: ka,
|
|
1488
|
+
insertArrowFilledHead: Aa,
|
|
1489
|
+
insertSequenceNumber: Na,
|
|
1490
|
+
insertArrowCrossHead: Ma,
|
|
1491
|
+
insertDatabaseIcon: _a,
|
|
1492
|
+
insertComputerIcon: va,
|
|
1493
|
+
insertClockIcon: Pa,
|
|
1494
|
+
getTextObj: fe,
|
|
1495
|
+
getNoteRect: Oa,
|
|
1496
1496
|
fixLifeLineHeights: ye,
|
|
1497
|
-
sanitizeUrl:
|
|
1497
|
+
sanitizeUrl: se.sanitizeUrl
|
|
1498
1498
|
}, o = {}, y = {
|
|
1499
1499
|
data: {
|
|
1500
1500
|
startx: void 0,
|
|
@@ -1633,7 +1633,7 @@ var he = /* @__PURE__ */ l(function(t, e) {
|
|
|
1633
1633
|
getBounds: /* @__PURE__ */ l(function() {
|
|
1634
1634
|
return { bounds: this.data, models: this.models };
|
|
1635
1635
|
}, "getBounds")
|
|
1636
|
-
},
|
|
1636
|
+
}, Sa = /* @__PURE__ */ l(async function(t, e) {
|
|
1637
1637
|
y.bumpVerticalPos(o.boxMargin), e.height = o.boxMargin, e.starty = y.getVerticalPos();
|
|
1638
1638
|
const n = Nt();
|
|
1639
1639
|
n.x = e.startx, n.y = e.starty, n.width = e.width || o.width, n.class = "note";
|
|
@@ -1647,7 +1647,7 @@ var he = /* @__PURE__ */ l(function(t, e) {
|
|
|
1647
1647
|
fontFamily: t.messageFontFamily,
|
|
1648
1648
|
fontSize: t.messageFontSize,
|
|
1649
1649
|
fontWeight: t.messageFontWeight
|
|
1650
|
-
}), "messageFont"),
|
|
1650
|
+
}), "messageFont"), Tt = /* @__PURE__ */ l((t) => ({
|
|
1651
1651
|
fontFamily: t.noteFontFamily,
|
|
1652
1652
|
fontSize: t.noteFontSize,
|
|
1653
1653
|
fontWeight: t.noteFontWeight
|
|
@@ -1656,7 +1656,7 @@ var he = /* @__PURE__ */ l(function(t, e) {
|
|
|
1656
1656
|
fontSize: t.actorFontSize,
|
|
1657
1657
|
fontWeight: t.actorFontWeight
|
|
1658
1658
|
}), "actorFont");
|
|
1659
|
-
async function
|
|
1659
|
+
async function Te(t, e) {
|
|
1660
1660
|
y.bumpVerticalPos(10);
|
|
1661
1661
|
const { startx: n, stopx: a, message: s } = e, r = _.splitBreaks(s).length, c = lt(s), h = c ? await wt(s, rt()) : Y.calculateTextDimensions(s, mt(o));
|
|
1662
1662
|
if (!c) {
|
|
@@ -1678,26 +1678,26 @@ async function fe(t, e) {
|
|
|
1678
1678
|
i += o.boxMargin, g = y.getVerticalPos() + i, y.insert(n, g - 10, a, g);
|
|
1679
1679
|
return y.bumpVerticalPos(i), e.height += i, e.stopy = e.starty + e.height, y.insert(e.fromBounds, e.starty, e.toBounds, e.stopy), g;
|
|
1680
1680
|
}
|
|
1681
|
-
l(
|
|
1682
|
-
var
|
|
1681
|
+
l(Te, "boundMessage");
|
|
1682
|
+
var Ra = /* @__PURE__ */ l(async function(t, e, n, a) {
|
|
1683
1683
|
const { startx: s, stopx: r, starty: c, message: h, type: g, sequenceIndex: i, sequenceVisible: x } = e, m = Y.calculateTextDimensions(h, mt(o)), u = zt();
|
|
1684
1684
|
u.x = s, u.y = c + 10, u.width = r - s, u.class = "messageText", u.dy = "1em", u.text = h, u.fontFamily = o.messageFontFamily, u.fontSize = o.messageFontSize, u.fontWeight = o.messageFontWeight, u.anchor = o.messageAlign, u.valign = "center", u.textMargin = o.wrapPadding, u.tspan = !1, lt(u.text) ? await At(t, u, { startx: s, stopx: r, starty: n }) : bt(t, u);
|
|
1685
|
-
const
|
|
1685
|
+
const f = m.width;
|
|
1686
1686
|
let w;
|
|
1687
1687
|
s === r ? o.rightAngles ? w = t.append("path").attr(
|
|
1688
1688
|
"d",
|
|
1689
|
-
`M ${s},${n} H ${s + _.getMax(o.width / 2,
|
|
1689
|
+
`M ${s},${n} H ${s + _.getMax(o.width / 2, f / 2)} V ${n + 25} H ${s}`
|
|
1690
1690
|
) : w = t.append("path").attr(
|
|
1691
1691
|
"d",
|
|
1692
1692
|
"M " + s + "," + n + " C " + (s + 60) + "," + (n - 10) + " " + (s + 60) + "," + (n + 30) + " " + s + "," + (n + 20)
|
|
1693
1693
|
) : (w = t.append("line"), w.attr("x1", s), w.attr("y1", n), w.attr("x2", r), w.attr("y2", n)), g === a.db.LINETYPE.DOTTED || g === a.db.LINETYPE.DOTTED_CROSS || g === a.db.LINETYPE.DOTTED_POINT || g === a.db.LINETYPE.DOTTED_OPEN || g === a.db.LINETYPE.BIDIRECTIONAL_DOTTED ? (w.style("stroke-dasharray", "3, 3"), w.attr("class", "messageLine1")) : w.attr("class", "messageLine0");
|
|
1694
1694
|
let L = "";
|
|
1695
1695
|
o.arrowMarkerAbsolute && (L = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, L = L.replace(/\(/g, "\\("), L = L.replace(/\)/g, "\\)")), w.attr("stroke-width", 2), w.attr("stroke", "none"), w.style("fill", "none"), (g === a.db.LINETYPE.SOLID || g === a.db.LINETYPE.DOTTED) && w.attr("marker-end", "url(" + L + "#arrowhead)"), (g === a.db.LINETYPE.BIDIRECTIONAL_SOLID || g === a.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (w.attr("marker-start", "url(" + L + "#arrowhead)"), w.attr("marker-end", "url(" + L + "#arrowhead)")), (g === a.db.LINETYPE.SOLID_POINT || g === a.db.LINETYPE.DOTTED_POINT) && w.attr("marker-end", "url(" + L + "#filled-head)"), (g === a.db.LINETYPE.SOLID_CROSS || g === a.db.LINETYPE.DOTTED_CROSS) && w.attr("marker-end", "url(" + L + "#crosshead)"), (x || o.showSequenceNumbers) && (w.attr("marker-start", "url(" + L + "#sequencenumber)"), t.append("text").attr("x", s).attr("y", n + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(i));
|
|
1696
|
-
}, "drawMessage"),
|
|
1696
|
+
}, "drawMessage"), Ca = /* @__PURE__ */ l(function(t, e, n, a, s, r, c) {
|
|
1697
1697
|
let h = 0, g = 0, i, x = 0;
|
|
1698
1698
|
for (const m of a) {
|
|
1699
|
-
const u = e.get(m),
|
|
1700
|
-
i && i !=
|
|
1699
|
+
const u = e.get(m), f = u.box;
|
|
1700
|
+
i && i != f && (c || y.models.addBox(i), g += o.boxMargin + i.margin), f && f != i && (c || (f.x = h + g, f.y = s), g += f.margin), u.width = u.width || o.width, u.height = _.getMax(u.height || o.height, o.height), u.margin = u.margin || o.actorMargin, x = _.getMax(x, u.height), n.get(u.name) && (g += u.width / 2), u.x = h + g, u.starty = y.getVerticalPos(), y.insert(u.x, s, u.x + u.width, u.height), h += u.width + g, u.box && (u.box.width = h + f.margin - u.box.x), g = u.margin, i = u.box, y.models.addActor(u);
|
|
1701
1701
|
}
|
|
1702
1702
|
i && !c && y.models.addBox(i), y.bumpVerticalPos(x);
|
|
1703
1703
|
}, "addActorRenderingData"), qt = /* @__PURE__ */ l(async function(t, e, n, a) {
|
|
@@ -1719,7 +1719,7 @@ var R0 = /* @__PURE__ */ l(async function(t, e, n, a) {
|
|
|
1719
1719
|
}, "drawActors"), be = /* @__PURE__ */ l(function(t, e, n, a) {
|
|
1720
1720
|
let s = 0, r = 0;
|
|
1721
1721
|
for (const c of n) {
|
|
1722
|
-
const h = e.get(c), g = $
|
|
1722
|
+
const h = e.get(c), g = $a(h), i = C.drawPopup(
|
|
1723
1723
|
t,
|
|
1724
1724
|
h,
|
|
1725
1725
|
g,
|
|
@@ -1731,7 +1731,7 @@ var R0 = /* @__PURE__ */ l(async function(t, e, n, a) {
|
|
|
1731
1731
|
}
|
|
1732
1732
|
return { maxHeight: s, maxWidth: r };
|
|
1733
1733
|
}, "drawActorsPopup"), Ee = /* @__PURE__ */ l(function(t) {
|
|
1734
|
-
|
|
1734
|
+
Fe(o, t), t.fontFamily && (o.actorFontFamily = o.noteFontFamily = o.messageFontFamily = t.fontFamily), t.fontSize && (o.actorFontSize = o.noteFontSize = o.messageFontSize = t.fontSize), t.fontWeight && (o.actorFontWeight = o.noteFontWeight = o.messageFontWeight = t.fontWeight);
|
|
1735
1735
|
}, "setConf"), Dt = /* @__PURE__ */ l(function(t) {
|
|
1736
1736
|
return y.activations.filter(function(e) {
|
|
1737
1737
|
return e.actor === t;
|
|
@@ -1810,55 +1810,55 @@ function we(t, e, n, a, s, r, c) {
|
|
|
1810
1810
|
}
|
|
1811
1811
|
}
|
|
1812
1812
|
l(we, "adjustCreatedDestroyedData");
|
|
1813
|
-
var
|
|
1813
|
+
var Ba = /* @__PURE__ */ l(async function(t, e, n, a) {
|
|
1814
1814
|
const { securityLevel: s, sequence: r } = rt();
|
|
1815
1815
|
o = r;
|
|
1816
1816
|
let c;
|
|
1817
1817
|
s === "sandbox" && (c = kt("#i" + e));
|
|
1818
1818
|
const h = s === "sandbox" ? kt(c.nodes()[0].contentDocument.body) : kt("body"), g = s === "sandbox" ? c.nodes()[0].contentDocument : document;
|
|
1819
1819
|
y.init(), G.debug(a.db);
|
|
1820
|
-
const i = s === "sandbox" ? h.select(`[id="${e}"]`) : kt(`[id="${e}"]`), x = a.db.getActors(), m = a.db.getCreatedActors(), u = a.db.getDestroyedActors(),
|
|
1820
|
+
const i = s === "sandbox" ? h.select(`[id="${e}"]`) : kt(`[id="${e}"]`), x = a.db.getActors(), m = a.db.getCreatedActors(), u = a.db.getDestroyedActors(), f = a.db.getBoxes();
|
|
1821
1821
|
let w = a.db.getActorKeys();
|
|
1822
1822
|
const L = a.db.getMessages(), k = a.db.getDiagramTitle(), B = a.db.hasAtLeastOneBox(), O = a.db.hasAtLeastOneBoxWithTitle(), $ = await Ie(x, L, a);
|
|
1823
|
-
if (o.height = await Le(x, $,
|
|
1824
|
-
const
|
|
1823
|
+
if (o.height = await Le(x, $, f), C.insertComputerIcon(i), C.insertDatabaseIcon(i), C.insertClockIcon(i), B && (y.bumpVerticalPos(o.boxMargin), O && y.bumpVerticalPos(f[0].textMaxHeight)), o.hideUnusedParticipants === !0) {
|
|
1824
|
+
const T = /* @__PURE__ */ new Set();
|
|
1825
1825
|
L.forEach((P) => {
|
|
1826
|
-
|
|
1827
|
-
}), w = w.filter((P) =>
|
|
1826
|
+
T.add(P.from), T.add(P.to);
|
|
1827
|
+
}), w = w.filter((P) => T.has(P));
|
|
1828
1828
|
}
|
|
1829
|
-
|
|
1830
|
-
const S = await
|
|
1829
|
+
Ca(i, x, m, w, 0, L, !1);
|
|
1830
|
+
const S = await Fa(L, x, $, a);
|
|
1831
1831
|
C.insertArrowHead(i), C.insertArrowCrossHead(i), C.insertArrowFilledHead(i), C.insertSequenceNumber(i);
|
|
1832
|
-
function W(
|
|
1833
|
-
const X = y.endActivation(
|
|
1832
|
+
function W(T, P) {
|
|
1833
|
+
const X = y.endActivation(T);
|
|
1834
1834
|
X.starty + 18 > P && (X.starty = P - 6, P += 12), C.drawActivation(
|
|
1835
1835
|
i,
|
|
1836
1836
|
X,
|
|
1837
1837
|
P,
|
|
1838
1838
|
o,
|
|
1839
|
-
Dt(
|
|
1839
|
+
Dt(T.from).length
|
|
1840
1840
|
), y.insert(X.startx, P - 10, X.stopx, P);
|
|
1841
1841
|
}
|
|
1842
1842
|
l(W, "activeEnd");
|
|
1843
1843
|
let q = 1, J = 1;
|
|
1844
1844
|
const et = [], z = [];
|
|
1845
1845
|
let H = 0;
|
|
1846
|
-
for (const
|
|
1846
|
+
for (const T of L) {
|
|
1847
1847
|
let P, X, it;
|
|
1848
|
-
switch (
|
|
1848
|
+
switch (T.type) {
|
|
1849
1849
|
case a.db.LINETYPE.NOTE:
|
|
1850
|
-
y.resetVerticalPos(), X =
|
|
1850
|
+
y.resetVerticalPos(), X = T.noteModel, await Sa(i, X);
|
|
1851
1851
|
break;
|
|
1852
1852
|
case a.db.LINETYPE.ACTIVE_START:
|
|
1853
|
-
y.newActivation(
|
|
1853
|
+
y.newActivation(T, i, x);
|
|
1854
1854
|
break;
|
|
1855
1855
|
case a.db.LINETYPE.ACTIVE_END:
|
|
1856
|
-
W(
|
|
1856
|
+
W(T, y.getVerticalPos());
|
|
1857
1857
|
break;
|
|
1858
1858
|
case a.db.LINETYPE.LOOP_START:
|
|
1859
1859
|
ot(
|
|
1860
1860
|
S,
|
|
1861
|
-
|
|
1861
|
+
T,
|
|
1862
1862
|
o.boxMargin,
|
|
1863
1863
|
o.boxMargin + o.boxTextMargin,
|
|
1864
1864
|
(A) => y.newLoop(A)
|
|
@@ -1870,7 +1870,7 @@ var B0 = /* @__PURE__ */ l(async function(t, e, n, a) {
|
|
|
1870
1870
|
case a.db.LINETYPE.RECT_START:
|
|
1871
1871
|
ot(
|
|
1872
1872
|
S,
|
|
1873
|
-
|
|
1873
|
+
T,
|
|
1874
1874
|
o.boxMargin,
|
|
1875
1875
|
o.boxMargin,
|
|
1876
1876
|
(A) => y.newLoop(void 0, A.message)
|
|
@@ -1882,7 +1882,7 @@ var B0 = /* @__PURE__ */ l(async function(t, e, n, a) {
|
|
|
1882
1882
|
case a.db.LINETYPE.OPT_START:
|
|
1883
1883
|
ot(
|
|
1884
1884
|
S,
|
|
1885
|
-
|
|
1885
|
+
T,
|
|
1886
1886
|
o.boxMargin,
|
|
1887
1887
|
o.boxMargin + o.boxTextMargin,
|
|
1888
1888
|
(A) => y.newLoop(A)
|
|
@@ -1894,7 +1894,7 @@ var B0 = /* @__PURE__ */ l(async function(t, e, n, a) {
|
|
|
1894
1894
|
case a.db.LINETYPE.ALT_START:
|
|
1895
1895
|
ot(
|
|
1896
1896
|
S,
|
|
1897
|
-
|
|
1897
|
+
T,
|
|
1898
1898
|
o.boxMargin,
|
|
1899
1899
|
o.boxMargin + o.boxTextMargin,
|
|
1900
1900
|
(A) => y.newLoop(A)
|
|
@@ -1903,7 +1903,7 @@ var B0 = /* @__PURE__ */ l(async function(t, e, n, a) {
|
|
|
1903
1903
|
case a.db.LINETYPE.ALT_ELSE:
|
|
1904
1904
|
ot(
|
|
1905
1905
|
S,
|
|
1906
|
-
|
|
1906
|
+
T,
|
|
1907
1907
|
o.boxMargin + o.boxTextMargin,
|
|
1908
1908
|
o.boxMargin,
|
|
1909
1909
|
(A) => y.addSectionToLoop(A)
|
|
@@ -1916,7 +1916,7 @@ var B0 = /* @__PURE__ */ l(async function(t, e, n, a) {
|
|
|
1916
1916
|
case a.db.LINETYPE.PAR_OVER_START:
|
|
1917
1917
|
ot(
|
|
1918
1918
|
S,
|
|
1919
|
-
|
|
1919
|
+
T,
|
|
1920
1920
|
o.boxMargin,
|
|
1921
1921
|
o.boxMargin + o.boxTextMargin,
|
|
1922
1922
|
(A) => y.newLoop(A)
|
|
@@ -1925,7 +1925,7 @@ var B0 = /* @__PURE__ */ l(async function(t, e, n, a) {
|
|
|
1925
1925
|
case a.db.LINETYPE.PAR_AND:
|
|
1926
1926
|
ot(
|
|
1927
1927
|
S,
|
|
1928
|
-
|
|
1928
|
+
T,
|
|
1929
1929
|
o.boxMargin + o.boxTextMargin,
|
|
1930
1930
|
o.boxMargin,
|
|
1931
1931
|
(A) => y.addSectionToLoop(A)
|
|
@@ -1935,12 +1935,12 @@ var B0 = /* @__PURE__ */ l(async function(t, e, n, a) {
|
|
|
1935
1935
|
P = y.endLoop(), await C.drawLoop(i, P, "par", o), y.bumpVerticalPos(P.stopy - y.getVerticalPos()), y.models.addLoop(P);
|
|
1936
1936
|
break;
|
|
1937
1937
|
case a.db.LINETYPE.AUTONUMBER:
|
|
1938
|
-
q =
|
|
1938
|
+
q = T.message.start || q, J = T.message.step || J, T.message.visible ? a.db.enableSequenceNumbers() : a.db.disableSequenceNumbers();
|
|
1939
1939
|
break;
|
|
1940
1940
|
case a.db.LINETYPE.CRITICAL_START:
|
|
1941
1941
|
ot(
|
|
1942
1942
|
S,
|
|
1943
|
-
|
|
1943
|
+
T,
|
|
1944
1944
|
o.boxMargin,
|
|
1945
1945
|
o.boxMargin + o.boxTextMargin,
|
|
1946
1946
|
(A) => y.newLoop(A)
|
|
@@ -1949,7 +1949,7 @@ var B0 = /* @__PURE__ */ l(async function(t, e, n, a) {
|
|
|
1949
1949
|
case a.db.LINETYPE.CRITICAL_OPTION:
|
|
1950
1950
|
ot(
|
|
1951
1951
|
S,
|
|
1952
|
-
|
|
1952
|
+
T,
|
|
1953
1953
|
o.boxMargin + o.boxTextMargin,
|
|
1954
1954
|
o.boxMargin,
|
|
1955
1955
|
(A) => y.addSectionToLoop(A)
|
|
@@ -1961,7 +1961,7 @@ var B0 = /* @__PURE__ */ l(async function(t, e, n, a) {
|
|
|
1961
1961
|
case a.db.LINETYPE.BREAK_START:
|
|
1962
1962
|
ot(
|
|
1963
1963
|
S,
|
|
1964
|
-
|
|
1964
|
+
T,
|
|
1965
1965
|
o.boxMargin,
|
|
1966
1966
|
o.boxMargin + o.boxTextMargin,
|
|
1967
1967
|
(A) => y.newLoop(A)
|
|
@@ -1972,10 +1972,10 @@ var B0 = /* @__PURE__ */ l(async function(t, e, n, a) {
|
|
|
1972
1972
|
break;
|
|
1973
1973
|
default:
|
|
1974
1974
|
try {
|
|
1975
|
-
it =
|
|
1976
|
-
const A = await
|
|
1975
|
+
it = T.msgModel, it.starty = y.getVerticalPos(), it.sequenceIndex = q, it.sequenceVisible = a.db.showSequenceNumbers();
|
|
1976
|
+
const A = await Te(i, it);
|
|
1977
1977
|
we(
|
|
1978
|
-
|
|
1978
|
+
T,
|
|
1979
1979
|
it,
|
|
1980
1980
|
A,
|
|
1981
1981
|
H,
|
|
@@ -1998,14 +1998,14 @@ var B0 = /* @__PURE__ */ l(async function(t, e, n, a) {
|
|
|
1998
1998
|
a.db.LINETYPE.DOTTED_POINT,
|
|
1999
1999
|
a.db.LINETYPE.BIDIRECTIONAL_SOLID,
|
|
2000
2000
|
a.db.LINETYPE.BIDIRECTIONAL_DOTTED
|
|
2001
|
-
].includes(
|
|
2001
|
+
].includes(T.type) && (q = q + J), H++;
|
|
2002
2002
|
}
|
|
2003
2003
|
G.debug("createdActors", m), G.debug("destroyedActors", u), await qt(i, x, w, !1);
|
|
2004
|
-
for (const
|
|
2005
|
-
await
|
|
2006
|
-
o.mirrorActors && await qt(i, x, w, !0), z.forEach((
|
|
2007
|
-
for (const
|
|
2008
|
-
|
|
2004
|
+
for (const T of et)
|
|
2005
|
+
await Ra(i, T.messageModel, T.lineStartY, a);
|
|
2006
|
+
o.mirrorActors && await qt(i, x, w, !0), z.forEach((T) => C.drawBackgroundRect(i, T)), ye(i, x, w, o);
|
|
2007
|
+
for (const T of y.models.boxes)
|
|
2008
|
+
T.height = y.getVerticalPos() - T.y, y.insert(T.x, T.y, T.x + T.width, T.height), T.startx = T.x, T.starty = T.y, T.stopx = T.startx + T.width, T.stopy = T.starty + T.height, T.stroke = "rgb(0,0,0, 0.5)", C.drawBox(i, T, o);
|
|
2009
2009
|
B && y.bumpVerticalPos(o.boxMargin);
|
|
2010
2010
|
const F = be(i, x, w, g), { bounds: D } = y.getBounds();
|
|
2011
2011
|
D.startx === void 0 && (D.startx = 0), D.starty === void 0 && (D.starty = 0), D.stopx === void 0 && (D.stopx = 0), D.stopy === void 0 && (D.stopy = 0);
|
|
@@ -2016,7 +2016,7 @@ var B0 = /* @__PURE__ */ l(async function(t, e, n, a) {
|
|
|
2016
2016
|
let Q = D.stopx - D.startx;
|
|
2017
2017
|
Q < F.maxWidth && (Q = F.maxWidth);
|
|
2018
2018
|
const at = Q + 2 * o.diagramMarginX;
|
|
2019
|
-
k && i.append("text").text(k).attr("x", (D.stopx - D.startx) / 2 - 2 * o.diagramMarginX).attr("y", -25),
|
|
2019
|
+
k && i.append("text").text(k).attr("x", (D.stopx - D.startx) / 2 - 2 * o.diagramMarginX).attr("y", -25), Ve(i, j, at, o.useMaxWidth);
|
|
2020
2020
|
const M = k ? 40 : 0;
|
|
2021
2021
|
i.attr(
|
|
2022
2022
|
"viewBox",
|
|
@@ -2030,7 +2030,7 @@ async function Ie(t, e, n) {
|
|
|
2030
2030
|
const r = t.get(s.to);
|
|
2031
2031
|
if (s.placement === n.db.PLACEMENT.LEFTOF && !r.prevActor || s.placement === n.db.PLACEMENT.RIGHTOF && !r.nextActor)
|
|
2032
2032
|
continue;
|
|
2033
|
-
const c = s.placement !== void 0, h = !c, g = c ?
|
|
2033
|
+
const c = s.placement !== void 0, h = !c, g = c ? Tt(o) : mt(o), i = s.wrap ? Y.wrapLabel(s.message, o.width - 2 * o.wrapPadding, g) : s.message, x = (lt(i) ? await wt(s.message, rt()) : Y.calculateTextDimensions(i, g)).width + 2 * o.wrapPadding;
|
|
2034
2034
|
h && s.from === r.nextActor ? a[s.to] = _.getMax(
|
|
2035
2035
|
a[s.to] || 0,
|
|
2036
2036
|
x
|
|
@@ -2060,7 +2060,7 @@ async function Ie(t, e, n) {
|
|
|
2060
2060
|
return G.debug("maxMessageWidthPerActor:", a), a;
|
|
2061
2061
|
}
|
|
2062
2062
|
l(Ie, "getMaxMessageWidthPerActor");
|
|
2063
|
-
var $
|
|
2063
|
+
var $a = /* @__PURE__ */ l(function(t) {
|
|
2064
2064
|
let e = 0;
|
|
2065
2065
|
const n = Wt(o);
|
|
2066
2066
|
for (const a in t.links) {
|
|
@@ -2109,11 +2109,11 @@ async function Le(t, e, n) {
|
|
|
2109
2109
|
}), n.forEach((r) => r.textMaxHeight = s), _.getMax(a, o.height);
|
|
2110
2110
|
}
|
|
2111
2111
|
l(Le, "calculateActorMargins");
|
|
2112
|
-
var
|
|
2112
|
+
var Ya = /* @__PURE__ */ l(async function(t, e, n) {
|
|
2113
2113
|
const a = e.get(t.from), s = e.get(t.to), r = a.x, c = s.x, h = t.wrap && t.message;
|
|
2114
2114
|
let g = lt(t.message) ? await wt(t.message, rt()) : Y.calculateTextDimensions(
|
|
2115
|
-
h ? Y.wrapLabel(t.message, o.width,
|
|
2116
|
-
|
|
2115
|
+
h ? Y.wrapLabel(t.message, o.width, Tt(o)) : t.message,
|
|
2116
|
+
Tt(o)
|
|
2117
2117
|
);
|
|
2118
2118
|
const i = {
|
|
2119
2119
|
width: h ? o.width : _.getMax(o.width, g.width + 2 * o.noteMargin),
|
|
@@ -2131,16 +2131,16 @@ var Y0 = /* @__PURE__ */ l(async function(t, e, n) {
|
|
|
2131
2131
|
a.width / 2 + s.width / 2,
|
|
2132
2132
|
g.width + 2 * o.noteMargin
|
|
2133
2133
|
), i.startx = r - i.width + (a.width - o.actorMargin) / 2) : t.to === t.from ? (g = Y.calculateTextDimensions(
|
|
2134
|
-
h ? Y.wrapLabel(t.message, _.getMax(o.width, a.width),
|
|
2135
|
-
|
|
2134
|
+
h ? Y.wrapLabel(t.message, _.getMax(o.width, a.width), Tt(o)) : t.message,
|
|
2135
|
+
Tt(o)
|
|
2136
2136
|
), i.width = h ? _.getMax(o.width, a.width) : _.getMax(a.width, o.width, g.width + 2 * o.noteMargin), i.startx = r + (a.width - i.width) / 2) : (i.width = Math.abs(r + a.width / 2 - (c + s.width / 2)) + o.actorMargin, i.startx = r < c ? r + a.width / 2 - o.actorMargin / 2 : c + s.width / 2 - o.actorMargin / 2), h && (i.message = Y.wrapLabel(
|
|
2137
2137
|
t.message,
|
|
2138
2138
|
i.width - 2 * o.wrapPadding,
|
|
2139
|
-
|
|
2139
|
+
Tt(o)
|
|
2140
2140
|
)), G.debug(
|
|
2141
2141
|
`NM:[${i.startx},${i.stopx},${i.starty},${i.stopy}:${i.width},${i.height}=${t.message}]`
|
|
2142
2142
|
), i;
|
|
2143
|
-
}, "buildNoteModel"),
|
|
2143
|
+
}, "buildNoteModel"), Va = /* @__PURE__ */ l(function(t, e, n) {
|
|
2144
2144
|
if (![
|
|
2145
2145
|
n.db.LINETYPE.SOLID_OPEN,
|
|
2146
2146
|
n.db.LINETYPE.DOTTED_OPEN,
|
|
@@ -2160,17 +2160,17 @@ var Y0 = /* @__PURE__ */ l(async function(t, e, n) {
|
|
|
2160
2160
|
t.from === t.to ? i = g : (t.activate && !x && (i += m(o.activationWidth / 2 - 1)), [n.db.LINETYPE.SOLID_OPEN, n.db.LINETYPE.DOTTED_OPEN].includes(t.type) || (i += m(3)), [n.db.LINETYPE.BIDIRECTIONAL_SOLID, n.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(
|
|
2161
2161
|
t.type
|
|
2162
2162
|
) && (g -= m(3)));
|
|
2163
|
-
const u = [a, s, r, c],
|
|
2163
|
+
const u = [a, s, r, c], f = Math.abs(g - i);
|
|
2164
2164
|
t.wrap && t.message && (t.message = Y.wrapLabel(
|
|
2165
2165
|
t.message,
|
|
2166
|
-
_.getMax(
|
|
2166
|
+
_.getMax(f + 2 * o.wrapPadding, o.width),
|
|
2167
2167
|
mt(o)
|
|
2168
2168
|
));
|
|
2169
2169
|
const w = Y.calculateTextDimensions(t.message, mt(o));
|
|
2170
2170
|
return {
|
|
2171
2171
|
width: _.getMax(
|
|
2172
2172
|
t.wrap ? 0 : w.width + 2 * o.wrapPadding,
|
|
2173
|
-
|
|
2173
|
+
f + 2 * o.wrapPadding,
|
|
2174
2174
|
o.width
|
|
2175
2175
|
),
|
|
2176
2176
|
height: 0,
|
|
@@ -2184,7 +2184,7 @@ var Y0 = /* @__PURE__ */ l(async function(t, e, n) {
|
|
|
2184
2184
|
fromBounds: Math.min.apply(null, u),
|
|
2185
2185
|
toBounds: Math.max.apply(null, u)
|
|
2186
2186
|
};
|
|
2187
|
-
}, "buildMessageModel"),
|
|
2187
|
+
}, "buildMessageModel"), Fa = /* @__PURE__ */ l(async function(t, e, n, a) {
|
|
2188
2188
|
const s = {}, r = [];
|
|
2189
2189
|
let c, h, g;
|
|
2190
2190
|
for (const i of t) {
|
|
@@ -2219,13 +2219,13 @@ var Y0 = /* @__PURE__ */ l(async function(t, e, n) {
|
|
|
2219
2219
|
break;
|
|
2220
2220
|
case a.db.LINETYPE.ACTIVE_START:
|
|
2221
2221
|
{
|
|
2222
|
-
const x = e.get(i.from ? i.from : i.to.actor), m = Dt(i.from ? i.from : i.to.actor).length, u = x.x + x.width / 2 + (m - 1) * o.activationWidth / 2,
|
|
2222
|
+
const x = e.get(i.from ? i.from : i.to.actor), m = Dt(i.from ? i.from : i.to.actor).length, u = x.x + x.width / 2 + (m - 1) * o.activationWidth / 2, f = {
|
|
2223
2223
|
startx: u,
|
|
2224
2224
|
stopx: u + o.activationWidth,
|
|
2225
2225
|
actor: i.from,
|
|
2226
2226
|
enabled: !0
|
|
2227
2227
|
};
|
|
2228
|
-
y.activations.push(
|
|
2228
|
+
y.activations.push(f);
|
|
2229
2229
|
}
|
|
2230
2230
|
break;
|
|
2231
2231
|
case a.db.LINETYPE.ACTIVE_END:
|
|
@@ -2235,9 +2235,9 @@ var Y0 = /* @__PURE__ */ l(async function(t, e, n) {
|
|
|
2235
2235
|
}
|
|
2236
2236
|
break;
|
|
2237
2237
|
}
|
|
2238
|
-
i.placement !== void 0 ? (h = await
|
|
2238
|
+
i.placement !== void 0 ? (h = await Ya(i, e, a), i.noteModel = h, r.forEach((x) => {
|
|
2239
2239
|
c = x, c.from = _.getMin(c.from, h.startx), c.to = _.getMax(c.to, h.startx + h.width), c.width = _.getMax(c.width, Math.abs(c.from - c.to)) - o.labelBoxWidth;
|
|
2240
|
-
})) : (g =
|
|
2240
|
+
})) : (g = Va(i, e, a), i.msgModel = g, g.startx && g.stopx && r.length > 0 && r.forEach((x) => {
|
|
2241
2241
|
if (c = x, g.startx === g.stopx) {
|
|
2242
2242
|
const m = e.get(i.from), u = e.get(i.to);
|
|
2243
2243
|
c.from = _.getMin(
|
|
@@ -2254,21 +2254,21 @@ var Y0 = /* @__PURE__ */ l(async function(t, e, n) {
|
|
|
2254
2254
|
}));
|
|
2255
2255
|
}
|
|
2256
2256
|
return y.activations = [], G.debug("Loop type widths:", s), s;
|
|
2257
|
-
}, "calculateLoopBounds"),
|
|
2257
|
+
}, "calculateLoopBounds"), Wa = {
|
|
2258
2258
|
bounds: y,
|
|
2259
2259
|
drawActors: qt,
|
|
2260
2260
|
drawActorsPopup: be,
|
|
2261
2261
|
setConf: Ee,
|
|
2262
|
-
draw:
|
|
2263
|
-
},
|
|
2262
|
+
draw: Ba
|
|
2263
|
+
}, ja = {
|
|
2264
2264
|
parser: ze,
|
|
2265
2265
|
db: Xt,
|
|
2266
|
-
renderer:
|
|
2267
|
-
styles:
|
|
2266
|
+
renderer: Wa,
|
|
2267
|
+
styles: ua,
|
|
2268
2268
|
init: /* @__PURE__ */ l(({ wrap: t }) => {
|
|
2269
2269
|
Xt.setWrap(t);
|
|
2270
2270
|
}, "init")
|
|
2271
2271
|
};
|
|
2272
2272
|
export {
|
|
2273
|
-
|
|
2273
|
+
ja as diagram
|
|
2274
2274
|
};
|