@marimo-team/islands 0.14.11-dev2 → 0.14.11-dev21
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/{ConnectedDataExplorerComponent-Dl7Gx8nj.js → ConnectedDataExplorerComponent-B98UAJGl.js} +4 -4
- package/dist/{ImageComparisonComponent-IsA0pccG.js → ImageComparisonComponent-3rx-X1eA.js} +1 -1
- package/dist/{VegaLite-C3jfIIJl.js → VegaLite-bssctYsi.js} +6961 -7180
- package/dist/{_baseUniq-DXGCzwrs.js → _baseUniq-n5nuGCm-.js} +36 -36
- package/dist/{any-language-editor-BbtP_crK.js → any-language-editor-CTuUQiXP.js} +1 -1
- package/dist/{architectureDiagram-IEHRJDOE-B5UTatfK.js → architectureDiagram-NQ2NVSRB-Ghs-gTjF.js} +897 -894
- package/dist/assets/{worker-BcyuOSTi.js → save-worker-fI5ofStJ.js} +1076 -1649
- package/dist/assets/{save-worker-BIDtxCd1.js → worker-Bfk1FrzG.js} +1627 -1747
- package/dist/assets/worker-BldghCZh.js +3752 -0
- package/dist/{blockDiagram-JOT3LUYC-BsdaPVqe.js → blockDiagram-PHRCVELO-BJrdpvE8.js} +534 -522
- package/dist/{c4Diagram-VJAJSXHY-mAt84R4z.js → c4Diagram-6F6E4RAY-C3mvzJPu.js} +4 -4
- package/dist/{channel-BQIWHLpc.js → channel-Dv_KwBSx.js} +1 -1
- package/dist/{chunk-4BMEZGHF-CKIxJWxP.js → chunk-353BL4L5-DE1uUKLI.js} +1 -1
- package/dist/{chunk-D6G4REZN-CgGV16Ao.js → chunk-67H74DCK-BSe-uUSS.js} +1 -1
- package/dist/chunk-6OLS64BW-lmSfyWue.js +1383 -0
- package/dist/{chunk-XZIHB7SX-Bwue5JjE.js → chunk-AACKK3MU-DAmuROVD.js} +1 -1
- package/dist/chunk-BFAMUDN2-D9C6R9UM.js +8 -0
- package/dist/chunk-E2GYISFI-BzFDmP6o.js +19 -0
- package/dist/{chunk-A2AXSNBT-wMvlVMnZ.js → chunk-QEP2MXWD-BILXx23p.js} +30 -27
- package/dist/chunk-SKB7J2MH-CxMkQppY.js +20 -0
- package/dist/{classDiagram-GIVACNV2-DOmcKRwM.js → classDiagram-BGRH5UQR-BbYr5aD9.js} +2 -2
- package/dist/{classDiagram-v2-COTLJTTW-DOmcKRwM.js → classDiagram-v2-O24JOBDK-BbYr5aD9.js} +2 -2
- package/dist/{clone-PHSHUhb-.js → clone-DuBujAk0.js} +1 -1
- package/dist/{dagre-OKDRZEBW-D5HNBllU.js → dagre-FFZHY6LT-DO5nLpLx.js} +8 -8
- package/dist/{data-editor-Coz_zrsX.js → data-editor-C8yM5wyh.js} +213 -201
- package/dist/diagram-3EMPZRKU-B1rYMJMS.js +313 -0
- package/dist/diagram-5UYTHUR4-BUu8PsmE.js +137 -0
- package/dist/{diagram-SSKATNLV-BsO89QJN.js → diagram-ZTM2IBQH-lz_uZrYh.js} +3 -3
- package/dist/{erDiagram-Q7BY3M3F-DWIMKTfS.js → erDiagram-R3QVA2FD-D_A2jrJV.js} +6 -5
- package/dist/{flowDiagram-4HSFHLVR-CnO0wmaL.js → flowDiagram-PKI6S5ZS-Bv6D_bIf.js} +283 -278
- package/dist/{ganttDiagram-APWFNJXF-otclLFL4.js → ganttDiagram-EK5VF46D-CbkaARm4.js} +453 -439
- package/dist/{gitGraphDiagram-7IBYFJ6S-C7F3RAja.js → gitGraphDiagram-GW3U2K7C-B8ZGoOT-.js} +35 -35
- package/dist/{graph-Btsdly6D.js → graph-txVVq_De.js} +3 -3
- package/dist/{index-BreCkhLm.js → index-BI6tloBb.js} +3 -3
- package/dist/{index-CcRF-HlA.js → index-CFJazcU-.js} +4 -4
- package/dist/{index-BGmzdYRo.js → index-OiR0LgXX.js} +6 -3
- package/dist/{index-z8OyYHEh.js → index-fJDj-gSp.js} +1 -1
- package/dist/index-pBmAzQJl.js +235 -0
- package/dist/{infoDiagram-PH2N3AL5-BwcXDzwE.js → infoDiagram-RLU2ROGC-DJw6nWp0.js} +5 -3
- package/dist/journeyDiagram-EWQZEKCU-1oCDdLcB.js +836 -0
- package/dist/{kanban-definition-NDS4AKOZ-3NJYjnpz.js → kanban-definition-ILFWEQ3N-nKJ02Ox0.js} +41 -39
- package/dist/{layout-qfivsCI_.js → layout-CbUwX9d6.js} +49 -49
- package/dist/{linear-D_Kojy5s.js → linear-sn9_bxtB.js} +22 -22
- package/dist/{main-DLuap1gp.js → main-D9-48wlP.js} +45053 -45130
- package/dist/main.js +1 -1
- package/dist/{mermaid-DCIbF0Rd.js → mermaid-CRRCnedu.js} +4925 -4853
- package/dist/min-CYaGuxZ4.js +80 -0
- package/dist/{mindmap-definition-ALO5MXBD-BtSBR7-c.js → mindmap-definition-CZNETY7S-CV62GMPJ.js} +3 -3
- package/dist/{pieDiagram-IB7DONF6-TiB_3g9z.js → pieDiagram-NIOCPIFQ-Bcs4p6kX.js} +3 -3
- package/dist/{quadrantDiagram-7GDLP6J5-B0DPjp7Z.js → quadrantDiagram-2OG54O6I-BlY5yea6.js} +2 -2
- package/dist/{react-plotly-BXWB3UQ5.js → react-plotly-B1SKP2B-.js} +1 -1
- package/dist/{requirementDiagram-KVF5MWMF-D_IlbRr_.js → requirementDiagram-SO3GGRV7-rmiJc5mh.js} +5 -4
- package/dist/{sankeyDiagram-QLVOVGJD-BHm9uvp_.js → sankeyDiagram-4UZDY2LN-TVzOLFCA.js} +11 -11
- package/dist/{sequenceDiagram-X6HHIX6F-3wcWWNtl.js → sequenceDiagram-ZIKVLSP4-POBNIgPB.js} +151 -149
- package/dist/{slides-component-JEGZbKgL.js → slides-component-5Y9DQzeV.js} +969 -962
- package/dist/stateDiagram-XX37X6EN-lR-7TG5f.js +264 -0
- package/dist/{stateDiagram-v2-YXO3MK2T-DTdt4vFc.js → stateDiagram-v2-GD6S3NHB-CYV2YCSY.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{time-DyZM4tB4.js → time-BytuUgXk.js} +2 -2
- package/dist/{timeline-definition-BDJGKUSR-Of4cvbYH.js → timeline-definition-RI47OAVP-DOrNrVHk.js} +99 -102
- package/dist/{radar-MK3ICKWK-BMSp8zaN.js → treemap-FKARHQ26-BOli4yXg.js} +2469 -2330
- package/dist/{vega-component-Dwc_9OTG.js → vega-component-KZ-3GH6H.js} +21 -21
- package/dist/{xychartDiagram-VJFVF3MP-5Jc993Va.js → xychartDiagram-H2YORKM3-CUOFDcIy.js} +409 -375
- package/package.json +37 -37
- package/dist/assets/worker-Dz6PPEGc.js +0 -4115
- package/dist/chunk-AEK57VVT-BAi7QtEw.js +0 -1416
- package/dist/chunk-RZ5BOZE2-D7Ag0UF8.js +0 -24
- package/dist/diagram-VNBRO52H-CA8VTm7L.js +0 -126
- package/dist/journeyDiagram-U35MCT3I-Co4hTdu9.js +0 -809
- package/dist/min-CQBZldos.js +0 -80
- package/dist/stateDiagram-DGXRK772-DbH3Rdz4.js +0 -271
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
var _a;
|
|
2
|
-
import { a as fe, b as Vt, g as Pt, d as xe, c as Te, e as ye } from "./chunk-
|
|
3
|
-
import { I as Ee } from "./chunk-
|
|
4
|
-
import { _ as u, o as be, c as $, d as It, l as G, j as Jt, e as me, f as we, k as v, b as
|
|
2
|
+
import { a as fe, b as Vt, g as Pt, d as xe, c as Te, e as ye } from "./chunk-67H74DCK-BSe-uUSS.js";
|
|
3
|
+
import { I as Ee } from "./chunk-AACKK3MU-DAmuROVD.js";
|
|
4
|
+
import { _ as u, o as be, c as $, d as It, l as G, j as Jt, e as me, f as we, k as v, b as Kt, s as ve, q as Ie, a as Le, g as _e, t as Pe, z as Ae, i as Lt, u as Y, N as ot, O as Et, P as Zt, Z as ke, Q as Ne, R as Qt, G as Dt } from "./mermaid-CRRCnedu.js";
|
|
5
5
|
var Ct = function() {
|
|
6
|
-
var t = /* @__PURE__ */ u(function(ht, w,
|
|
7
|
-
for (
|
|
8
|
-
return
|
|
9
|
-
}, "o"), e = [1, 2], c = [1, 3], s = [1, 4], r = [2, 4], i = [1, 9], o = [1, 11], h = [1, 13], d = [1, 14], a = [1, 16], f = [1, 17], E = [1, 18], g = [1, 24], T = [1, 25], m = [1, 26],
|
|
6
|
+
var t = /* @__PURE__ */ u(function(ht, w, I, P) {
|
|
7
|
+
for (I = I || {}, P = ht.length; P--; I[ht[P]] = w) ;
|
|
8
|
+
return I;
|
|
9
|
+
}, "o"), e = [1, 2], c = [1, 3], s = [1, 4], r = [2, 4], i = [1, 9], o = [1, 11], h = [1, 13], d = [1, 14], a = [1, 16], f = [1, 17], E = [1, 18], g = [1, 24], T = [1, 25], m = [1, 26], L = [1, 27], A = [1, 28], O = [1, 29], S = [1, 30], B = [1, 31], D = [1, 32], F = [1, 33], q = [1, 34], X = [1, 35], tt = [1, 36], z = [1, 37], H = [1, 38], W = [1, 39], M = [1, 41], J = [1, 42], U = [1, 43], Z = [1, 44], et = [1, 45], N = [1, 46], y = [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], _ = [4, 5, 16, 50, 52, 53], Q = [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], at = [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], k = [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], Ft = [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], it = [68, 69, 70], ct = [1, 122], kt = {
|
|
10
10
|
trace: /* @__PURE__ */ u(function() {
|
|
11
11
|
}, "trace"),
|
|
12
12
|
yy: {},
|
|
13
13
|
symbols_: { error: 2, start: 3, SPACE: 4, NEWLINE: 5, SD: 6, document: 7, line: 8, statement: 9, box_section: 10, box_line: 11, participant_statement: 12, create: 13, box: 14, restOfLine: 15, end: 16, signal: 17, autonumber: 18, NUM: 19, off: 20, activate: 21, actor: 22, deactivate: 23, note_statement: 24, links_statement: 25, link_statement: 26, properties_statement: 27, details_statement: 28, title: 29, legacy_title: 30, acc_title: 31, acc_title_value: 32, acc_descr: 33, acc_descr_value: 34, acc_descr_multiline_value: 35, loop: 36, rect: 37, opt: 38, alt: 39, else_sections: 40, par: 41, par_sections: 42, par_over: 43, critical: 44, option_sections: 45, break: 46, option: 47, and: 48, else: 49, participant: 50, AS: 51, participant_actor: 52, destroy: 53, note: 54, placement: 55, text2: 56, over: 57, actor_pair: 58, links: 59, link: 60, properties: 61, details: 62, spaceList: 63, ",": 64, left_of: 65, right_of: 66, signaltype: 67, "+": 68, "-": 69, ACTOR: 70, SOLID_OPEN_ARROW: 71, DOTTED_OPEN_ARROW: 72, SOLID_ARROW: 73, BIDIRECTIONAL_SOLID_ARROW: 74, DOTTED_ARROW: 75, BIDIRECTIONAL_DOTTED_ARROW: 76, SOLID_CROSS: 77, DOTTED_CROSS: 78, SOLID_POINT: 79, DOTTED_POINT: 80, TXT: 81, $accept: 0, $end: 1 },
|
|
14
14
|
terminals_: { 2: "error", 4: "SPACE", 5: "NEWLINE", 6: "SD", 13: "create", 14: "box", 15: "restOfLine", 16: "end", 18: "autonumber", 19: "NUM", 20: "off", 21: "activate", 23: "deactivate", 29: "title", 30: "legacy_title", 31: "acc_title", 32: "acc_title_value", 33: "acc_descr", 34: "acc_descr_value", 35: "acc_descr_multiline_value", 36: "loop", 37: "rect", 38: "opt", 39: "alt", 41: "par", 43: "par_over", 44: "critical", 46: "break", 47: "option", 48: "and", 49: "else", 50: "participant", 51: "AS", 52: "participant_actor", 53: "destroy", 54: "note", 57: "over", 59: "links", 60: "link", 61: "properties", 62: "details", 64: ",", 65: "left_of", 66: "right_of", 68: "+", 69: "-", 70: "ACTOR", 71: "SOLID_OPEN_ARROW", 72: "DOTTED_OPEN_ARROW", 73: "SOLID_ARROW", 74: "BIDIRECTIONAL_SOLID_ARROW", 75: "DOTTED_ARROW", 76: "BIDIRECTIONAL_DOTTED_ARROW", 77: "SOLID_CROSS", 78: "DOTTED_CROSS", 79: "SOLID_POINT", 80: "DOTTED_POINT", 81: "TXT" },
|
|
15
15
|
productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [8, 1], [8, 1], [10, 0], [10, 2], [11, 2], [11, 1], [11, 1], [9, 1], [9, 2], [9, 4], [9, 2], [9, 4], [9, 3], [9, 3], [9, 2], [9, 3], [9, 3], [9, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [45, 1], [45, 4], [42, 1], [42, 4], [40, 1], [40, 4], [12, 5], [12, 3], [12, 5], [12, 3], [12, 3], [24, 4], [24, 4], [25, 3], [26, 3], [27, 3], [28, 3], [63, 2], [63, 1], [58, 3], [58, 1], [55, 1], [55, 1], [17, 5], [17, 5], [17, 4], [22, 1], [67, 1], [67, 1], [67, 1], [67, 1], [67, 1], [67, 1], [67, 1], [67, 1], [67, 1], [67, 1], [56, 1]],
|
|
16
|
-
performAction: /* @__PURE__ */ u(function(w,
|
|
16
|
+
performAction: /* @__PURE__ */ u(function(w, I, P, b, R, l, yt) {
|
|
17
17
|
var p = l.length - 1;
|
|
18
18
|
switch (R) {
|
|
19
19
|
case 3:
|
|
@@ -208,18 +208,18 @@ var Ct = function() {
|
|
|
208
208
|
break;
|
|
209
209
|
}
|
|
210
210
|
}, "anonymous"),
|
|
211
|
-
table: [{ 3: 1, 4: e, 5: c, 6: s }, { 1: [3] }, { 3: 5, 4: e, 5: c, 6: s }, { 3: 6, 4: e, 5: c, 6: s }, 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], r, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: i, 5: o, 8: 8, 9: 10, 12: 12, 13: h, 14: d, 17: 15, 18: a, 21: f, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: T, 31: m, 33:
|
|
211
|
+
table: [{ 3: 1, 4: e, 5: c, 6: s }, { 1: [3] }, { 3: 5, 4: e, 5: c, 6: s }, { 3: 6, 4: e, 5: c, 6: s }, 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], r, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: i, 5: o, 8: 8, 9: 10, 12: 12, 13: h, 14: d, 17: 15, 18: a, 21: f, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: T, 31: m, 33: L, 35: A, 36: O, 37: S, 38: B, 39: D, 41: F, 43: q, 44: X, 46: tt, 50: z, 52: H, 53: W, 54: M, 59: J, 60: U, 61: Z, 62: et, 70: N }, t(y, [2, 5]), { 9: 47, 12: 12, 13: h, 14: d, 17: 15, 18: a, 21: f, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: T, 31: m, 33: L, 35: A, 36: O, 37: S, 38: B, 39: D, 41: F, 43: q, 44: X, 46: tt, 50: z, 52: H, 53: W, 54: M, 59: J, 60: U, 61: Z, 62: et, 70: N }, t(y, [2, 7]), t(y, [2, 8]), t(y, [2, 14]), { 12: 48, 50: z, 52: H, 53: W }, { 15: [1, 49] }, { 5: [1, 50] }, { 5: [1, 53], 19: [1, 51], 20: [1, 52] }, { 22: 54, 70: N }, { 22: 55, 70: N }, { 5: [1, 56] }, { 5: [1, 57] }, { 5: [1, 58] }, { 5: [1, 59] }, { 5: [1, 60] }, t(y, [2, 29]), t(y, [2, 30]), { 32: [1, 61] }, { 34: [1, 62] }, t(y, [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: N }, { 22: 72, 70: N }, { 22: 73, 70: N }, { 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: N }, { 22: 90, 70: N }, { 22: 91, 70: N }, { 22: 92, 70: N }, t([5, 51, 64, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81], [2, 68]), t(y, [2, 6]), t(y, [2, 15]), t(_, [2, 9], { 10: 93 }), t(y, [2, 17]), { 5: [1, 95], 19: [1, 94] }, { 5: [1, 96] }, t(y, [2, 21]), { 5: [1, 97] }, { 5: [1, 98] }, t(y, [2, 24]), t(y, [2, 25]), t(y, [2, 26]), t(y, [2, 27]), t(y, [2, 28]), t(y, [2, 31]), t(y, [2, 32]), t(Q, r, { 7: 99 }), t(Q, r, { 7: 100 }), t(Q, r, { 7: 101 }), t(at, r, { 40: 102, 7: 103 }), t(k, r, { 42: 104, 7: 105 }), t(k, r, { 7: 105, 42: 106 }), t(Ft, r, { 45: 107, 7: 108 }), t(Q, r, { 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: N }, t(it, [2, 69]), t(it, [2, 70]), t(it, [2, 71]), t(it, [2, 72]), t(it, [2, 73]), t(it, [2, 74]), t(it, [2, 75]), t(it, [2, 76]), t(it, [2, 77]), t(it, [2, 78]), { 22: 118, 70: N }, { 22: 120, 58: 119, 70: N }, { 70: [2, 63] }, { 70: [2, 64] }, { 56: 121, 81: ct }, { 56: 123, 81: ct }, { 56: 124, 81: ct }, { 56: 125, 81: ct }, { 4: [1, 128], 5: [1, 130], 11: 127, 12: 129, 16: [1, 126], 50: z, 52: H, 53: W }, { 5: [1, 131] }, t(y, [2, 19]), t(y, [2, 20]), t(y, [2, 22]), t(y, [2, 23]), { 4: i, 5: o, 8: 8, 9: 10, 12: 12, 13: h, 14: d, 16: [1, 132], 17: 15, 18: a, 21: f, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: T, 31: m, 33: L, 35: A, 36: O, 37: S, 38: B, 39: D, 41: F, 43: q, 44: X, 46: tt, 50: z, 52: H, 53: W, 54: M, 59: J, 60: U, 61: Z, 62: et, 70: N }, { 4: i, 5: o, 8: 8, 9: 10, 12: 12, 13: h, 14: d, 16: [1, 133], 17: 15, 18: a, 21: f, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: T, 31: m, 33: L, 35: A, 36: O, 37: S, 38: B, 39: D, 41: F, 43: q, 44: X, 46: tt, 50: z, 52: H, 53: W, 54: M, 59: J, 60: U, 61: Z, 62: et, 70: N }, { 4: i, 5: o, 8: 8, 9: 10, 12: 12, 13: h, 14: d, 16: [1, 134], 17: 15, 18: a, 21: f, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: T, 31: m, 33: L, 35: A, 36: O, 37: S, 38: B, 39: D, 41: F, 43: q, 44: X, 46: tt, 50: z, 52: H, 53: W, 54: M, 59: J, 60: U, 61: Z, 62: et, 70: N }, { 16: [1, 135] }, { 4: i, 5: o, 8: 8, 9: 10, 12: 12, 13: h, 14: d, 16: [2, 46], 17: 15, 18: a, 21: f, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: T, 31: m, 33: L, 35: A, 36: O, 37: S, 38: B, 39: D, 41: F, 43: q, 44: X, 46: tt, 49: [1, 136], 50: z, 52: H, 53: W, 54: M, 59: J, 60: U, 61: Z, 62: et, 70: N }, { 16: [1, 137] }, { 4: i, 5: o, 8: 8, 9: 10, 12: 12, 13: h, 14: d, 16: [2, 44], 17: 15, 18: a, 21: f, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: T, 31: m, 33: L, 35: A, 36: O, 37: S, 38: B, 39: D, 41: F, 43: q, 44: X, 46: tt, 48: [1, 138], 50: z, 52: H, 53: W, 54: M, 59: J, 60: U, 61: Z, 62: et, 70: N }, { 16: [1, 139] }, { 16: [1, 140] }, { 4: i, 5: o, 8: 8, 9: 10, 12: 12, 13: h, 14: d, 16: [2, 42], 17: 15, 18: a, 21: f, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: T, 31: m, 33: L, 35: A, 36: O, 37: S, 38: B, 39: D, 41: F, 43: q, 44: X, 46: tt, 47: [1, 141], 50: z, 52: H, 53: W, 54: M, 59: J, 60: U, 61: Z, 62: et, 70: N }, { 4: i, 5: o, 8: 8, 9: 10, 12: 12, 13: h, 14: d, 16: [1, 142], 17: 15, 18: a, 21: f, 22: 40, 23: E, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: g, 30: T, 31: m, 33: L, 35: A, 36: O, 37: S, 38: B, 39: D, 41: F, 43: q, 44: X, 46: tt, 50: z, 52: H, 53: W, 54: M, 59: J, 60: U, 61: Z, 62: et, 70: N }, { 15: [1, 143] }, t(y, [2, 49]), { 15: [1, 144] }, t(y, [2, 51]), t(y, [2, 52]), { 22: 145, 70: N }, { 22: 146, 70: N }, { 56: 147, 81: ct }, { 56: 148, 81: ct }, { 56: 149, 81: ct }, { 64: [1, 150], 81: [2, 62] }, { 5: [2, 55] }, { 5: [2, 79] }, { 5: [2, 56] }, { 5: [2, 57] }, { 5: [2, 58] }, t(y, [2, 16]), t(_, [2, 10]), { 12: 151, 50: z, 52: H, 53: W }, t(_, [2, 12]), t(_, [2, 13]), t(y, [2, 18]), t(y, [2, 34]), t(y, [2, 35]), t(y, [2, 36]), t(y, [2, 37]), { 15: [1, 152] }, t(y, [2, 38]), { 15: [1, 153] }, t(y, [2, 39]), t(y, [2, 40]), { 15: [1, 154] }, t(y, [2, 41]), { 5: [1, 155] }, { 5: [1, 156] }, { 56: 157, 81: ct }, { 56: 158, 81: ct }, { 5: [2, 67] }, { 5: [2, 53] }, { 5: [2, 54] }, { 22: 159, 70: N }, t(_, [2, 11]), t(at, r, { 7: 103, 40: 160 }), t(k, r, { 7: 105, 42: 161 }), t(Ft, r, { 7: 108, 45: 162 }), t(y, [2, 48]), t(y, [2, 50]), { 5: [2, 65] }, { 5: [2, 66] }, { 81: [2, 61] }, { 16: [2, 47] }, { 16: [2, 45] }, { 16: [2, 43] }],
|
|
212
212
|
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] },
|
|
213
|
-
parseError: /* @__PURE__ */ u(function(w,
|
|
214
|
-
if (
|
|
213
|
+
parseError: /* @__PURE__ */ u(function(w, I) {
|
|
214
|
+
if (I.recoverable)
|
|
215
215
|
this.trace(w);
|
|
216
216
|
else {
|
|
217
217
|
var P = new Error(w);
|
|
218
|
-
throw P.hash =
|
|
218
|
+
throw P.hash = I, P;
|
|
219
219
|
}
|
|
220
220
|
}, "parseError"),
|
|
221
221
|
parse: /* @__PURE__ */ u(function(w) {
|
|
222
|
-
var
|
|
222
|
+
var I = this, P = [0], b = [], R = [null], l = [], yt = this.table, p = "", mt = 0, qt = 0, de = 2, zt = 1, pe = l.slice.call(arguments, 1), V = Object.create(this.lexer), dt = { yy: {} };
|
|
223
223
|
for (var Nt in this.yy)
|
|
224
224
|
Object.prototype.hasOwnProperty.call(this.yy, Nt) && (dt.yy[Nt] = this.yy[Nt]);
|
|
225
225
|
V.setInput(w, dt.yy), dt.yy.lexer = V, dt.yy.parser = this, typeof V.yylloc > "u" && (V.yylloc = {});
|
|
@@ -233,30 +233,30 @@ var Ct = function() {
|
|
|
233
233
|
u(ge, "popStack");
|
|
234
234
|
function Ht() {
|
|
235
235
|
var j;
|
|
236
|
-
return j = b.pop() || V.lex() || zt, typeof j != "number" && (j instanceof Array && (b = j, j = b.pop()), j =
|
|
236
|
+
return j = b.pop() || V.lex() || zt, typeof j != "number" && (j instanceof Array && (b = j, j = b.pop()), j = I.symbols_[j] || j), j;
|
|
237
237
|
}
|
|
238
238
|
u(Ht, "lex");
|
|
239
|
-
for (var
|
|
240
|
-
if (pt = P[P.length - 1], this.defaultActions[pt] ? st = this.defaultActions[pt] : ((
|
|
239
|
+
for (var K, pt, st, Mt, ft = {}, wt, lt, Ut, vt; ; ) {
|
|
240
|
+
if (pt = P[P.length - 1], this.defaultActions[pt] ? st = this.defaultActions[pt] : ((K === null || typeof K > "u") && (K = Ht()), st = yt[pt] && yt[pt][K]), typeof st > "u" || !st.length || !st[0]) {
|
|
241
241
|
var Rt = "";
|
|
242
242
|
vt = [];
|
|
243
243
|
for (wt in yt[pt])
|
|
244
244
|
this.terminals_[wt] && wt > de && vt.push("'" + this.terminals_[wt] + "'");
|
|
245
245
|
V.showPosition ? Rt = "Parse error on line " + (mt + 1) + `:
|
|
246
246
|
` + V.showPosition() + `
|
|
247
|
-
Expecting ` + vt.join(", ") + ", got '" + (this.terminals_[
|
|
247
|
+
Expecting ` + vt.join(", ") + ", got '" + (this.terminals_[K] || K) + "'" : Rt = "Parse error on line " + (mt + 1) + ": Unexpected " + (K == zt ? "end of input" : "'" + (this.terminals_[K] || K) + "'"), this.parseError(Rt, {
|
|
248
248
|
text: V.match,
|
|
249
|
-
token: this.terminals_[
|
|
249
|
+
token: this.terminals_[K] || K,
|
|
250
250
|
line: V.yylineno,
|
|
251
251
|
loc: St,
|
|
252
252
|
expected: vt
|
|
253
253
|
});
|
|
254
254
|
}
|
|
255
255
|
if (st[0] instanceof Array && st.length > 1)
|
|
256
|
-
throw new Error("Parse Error: multiple actions possible at state: " + pt + ", token: " +
|
|
256
|
+
throw new Error("Parse Error: multiple actions possible at state: " + pt + ", token: " + K);
|
|
257
257
|
switch (st[0]) {
|
|
258
258
|
case 1:
|
|
259
|
-
P.push(
|
|
259
|
+
P.push(K), R.push(V.yytext), l.push(V.yylloc), P.push(st[1]), K = null, qt = V.yyleng, p = V.yytext, mt = V.yylineno, St = V.yylloc;
|
|
260
260
|
break;
|
|
261
261
|
case 2:
|
|
262
262
|
if (lt = this.productions_[st[1]][1], ft.$ = R[R.length - lt], ft._$ = {
|
|
@@ -277,7 +277,7 @@ Expecting ` + vt.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : Rt =
|
|
|
277
277
|
l
|
|
278
278
|
].concat(pe)), typeof Mt < "u")
|
|
279
279
|
return Mt;
|
|
280
|
-
lt && (P = P.slice(0, -1 * lt * 2), R = R.slice(0, -1 * lt), l = l.slice(0, -1 * lt)), P.push(this.productions_[st[1]][0]), R.push(ft.$), l.push(ft._$),
|
|
280
|
+
lt && (P = P.slice(0, -1 * lt * 2), R = R.slice(0, -1 * lt), l = l.slice(0, -1 * lt)), P.push(this.productions_[st[1]][0]), R.push(ft.$), l.push(ft._$), Ut = yt[P[P.length - 2]][P[P.length - 1]], P.push(Ut);
|
|
281
281
|
break;
|
|
282
282
|
case 3:
|
|
283
283
|
return true;
|
|
@@ -288,15 +288,15 @@ Expecting ` + vt.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : Rt =
|
|
|
288
288
|
}, he = /* @__PURE__ */ function() {
|
|
289
289
|
var ht = {
|
|
290
290
|
EOF: 1,
|
|
291
|
-
parseError: /* @__PURE__ */ u(function(
|
|
291
|
+
parseError: /* @__PURE__ */ u(function(I, P) {
|
|
292
292
|
if (this.yy.parser)
|
|
293
|
-
this.yy.parser.parseError(
|
|
293
|
+
this.yy.parser.parseError(I, P);
|
|
294
294
|
else
|
|
295
|
-
throw new Error(
|
|
295
|
+
throw new Error(I);
|
|
296
296
|
}, "parseError"),
|
|
297
297
|
// resets the lexer, sets new input
|
|
298
|
-
setInput: /* @__PURE__ */ u(function(w,
|
|
299
|
-
return this.yy =
|
|
298
|
+
setInput: /* @__PURE__ */ u(function(w, I) {
|
|
299
|
+
return this.yy = I || this.yy || {}, this._input = w, this._more = this._backtrack = this.done = false, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
300
300
|
first_line: 1,
|
|
301
301
|
first_column: 0,
|
|
302
302
|
last_line: 1,
|
|
@@ -307,13 +307,13 @@ Expecting ` + vt.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : Rt =
|
|
|
307
307
|
input: /* @__PURE__ */ u(function() {
|
|
308
308
|
var w = this._input[0];
|
|
309
309
|
this.yytext += w, this.yyleng++, this.offset++, this.match += w, this.matched += w;
|
|
310
|
-
var
|
|
311
|
-
return
|
|
310
|
+
var I = w.match(/(?:\r\n?|\n).*/g);
|
|
311
|
+
return I ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), w;
|
|
312
312
|
}, "input"),
|
|
313
313
|
// unshifts one char (or a string) into the input
|
|
314
314
|
unput: /* @__PURE__ */ u(function(w) {
|
|
315
|
-
var
|
|
316
|
-
this._input = w + this._input, this.yytext = this.yytext.substr(0, this.yytext.length -
|
|
315
|
+
var I = w.length, P = w.split(/(?:\r\n?|\n)/g);
|
|
316
|
+
this._input = w + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - I), this.offset -= I;
|
|
317
317
|
var b = this.match.split(/(?:\r\n?|\n)/g);
|
|
318
318
|
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), P.length - 1 && (this.yylineno -= P.length - 1);
|
|
319
319
|
var R = this.yylloc.range;
|
|
@@ -321,8 +321,8 @@ Expecting ` + vt.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : Rt =
|
|
|
321
321
|
first_line: this.yylloc.first_line,
|
|
322
322
|
last_line: this.yylineno + 1,
|
|
323
323
|
first_column: this.yylloc.first_column,
|
|
324
|
-
last_column: P ? (P.length === b.length ? this.yylloc.first_column : 0) + b[b.length - P.length].length - P[0].length : this.yylloc.first_column -
|
|
325
|
-
}, this.options.ranges && (this.yylloc.range = [R[0], R[0] + this.yyleng -
|
|
324
|
+
last_column: P ? (P.length === b.length ? this.yylloc.first_column : 0) + b[b.length - P.length].length - P[0].length : this.yylloc.first_column - I
|
|
325
|
+
}, this.options.ranges && (this.yylloc.range = [R[0], R[0] + this.yyleng - I]), this.yyleng = this.yytext.length, this;
|
|
326
326
|
}, "unput"),
|
|
327
327
|
// When called from action, caches matched text and appends it on next action
|
|
328
328
|
more: /* @__PURE__ */ u(function() {
|
|
@@ -357,12 +357,12 @@ Expecting ` + vt.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : Rt =
|
|
|
357
357
|
}, "upcomingInput"),
|
|
358
358
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
359
359
|
showPosition: /* @__PURE__ */ u(function() {
|
|
360
|
-
var w = this.pastInput(),
|
|
360
|
+
var w = this.pastInput(), I = new Array(w.length + 1).join("-");
|
|
361
361
|
return w + this.upcomingInput() + `
|
|
362
|
-
` +
|
|
362
|
+
` + I + "^";
|
|
363
363
|
}, "showPosition"),
|
|
364
364
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
365
|
-
test_match: /* @__PURE__ */ u(function(w,
|
|
365
|
+
test_match: /* @__PURE__ */ u(function(w, I) {
|
|
366
366
|
var P, b, R;
|
|
367
367
|
if (this.options.backtrack_lexer && (R = {
|
|
368
368
|
yylineno: this.yylineno,
|
|
@@ -388,7 +388,7 @@ Expecting ` + vt.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : Rt =
|
|
|
388
388
|
last_line: this.yylineno + 1,
|
|
389
389
|
first_column: this.yylloc.last_column,
|
|
390
390
|
last_column: b ? b[b.length - 1].length - b[b.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + w[0].length
|
|
391
|
-
}, this.yytext += w[0], this.match += w[0], this.matches = w, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = false, this._backtrack = false, this._input = this._input.slice(w[0].length), this.matched += w[0], P = this.performAction.call(this, this.yy, this,
|
|
391
|
+
}, this.yytext += w[0], this.match += w[0], this.matches = w, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = false, this._backtrack = false, this._input = this._input.slice(w[0].length), this.matched += w[0], P = this.performAction.call(this, this.yy, this, I, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = false), P)
|
|
392
392
|
return P;
|
|
393
393
|
if (this._backtrack) {
|
|
394
394
|
for (var l in R)
|
|
@@ -402,22 +402,22 @@ Expecting ` + vt.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : Rt =
|
|
|
402
402
|
if (this.done)
|
|
403
403
|
return this.EOF;
|
|
404
404
|
this._input || (this.done = true);
|
|
405
|
-
var w,
|
|
405
|
+
var w, I, P, b;
|
|
406
406
|
this._more || (this.yytext = "", this.match = "");
|
|
407
407
|
for (var R = this._currentRules(), l = 0; l < R.length; l++)
|
|
408
|
-
if (P = this._input.match(this.rules[R[l]]), P && (!
|
|
409
|
-
if (
|
|
408
|
+
if (P = this._input.match(this.rules[R[l]]), P && (!I || P[0].length > I[0].length)) {
|
|
409
|
+
if (I = P, b = l, this.options.backtrack_lexer) {
|
|
410
410
|
if (w = this.test_match(P, R[l]), w !== false)
|
|
411
411
|
return w;
|
|
412
412
|
if (this._backtrack) {
|
|
413
|
-
|
|
413
|
+
I = false;
|
|
414
414
|
continue;
|
|
415
415
|
} else
|
|
416
416
|
return false;
|
|
417
417
|
} else if (!this.options.flex)
|
|
418
418
|
break;
|
|
419
419
|
}
|
|
420
|
-
return
|
|
420
|
+
return I ? (w = this.test_match(I, R[b]), w !== false ? w : false) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
421
421
|
` + this.showPosition(), {
|
|
422
422
|
text: "",
|
|
423
423
|
token: null,
|
|
@@ -426,36 +426,36 @@ Expecting ` + vt.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : Rt =
|
|
|
426
426
|
}, "next"),
|
|
427
427
|
// return next match that has a token
|
|
428
428
|
lex: /* @__PURE__ */ u(function() {
|
|
429
|
-
var
|
|
430
|
-
return
|
|
429
|
+
var I = this.next();
|
|
430
|
+
return I || this.lex();
|
|
431
431
|
}, "lex"),
|
|
432
432
|
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
433
|
-
begin: /* @__PURE__ */ u(function(
|
|
434
|
-
this.conditionStack.push(
|
|
433
|
+
begin: /* @__PURE__ */ u(function(I) {
|
|
434
|
+
this.conditionStack.push(I);
|
|
435
435
|
}, "begin"),
|
|
436
436
|
// pop the previously active lexer condition state off the condition stack
|
|
437
437
|
popState: /* @__PURE__ */ u(function() {
|
|
438
|
-
var
|
|
439
|
-
return
|
|
438
|
+
var I = this.conditionStack.length - 1;
|
|
439
|
+
return I > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
440
440
|
}, "popState"),
|
|
441
441
|
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
442
442
|
_currentRules: /* @__PURE__ */ u(function() {
|
|
443
443
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
444
444
|
}, "_currentRules"),
|
|
445
445
|
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
446
|
-
topState: /* @__PURE__ */ u(function(
|
|
447
|
-
return
|
|
446
|
+
topState: /* @__PURE__ */ u(function(I) {
|
|
447
|
+
return I = this.conditionStack.length - 1 - Math.abs(I || 0), I >= 0 ? this.conditionStack[I] : "INITIAL";
|
|
448
448
|
}, "topState"),
|
|
449
449
|
// alias for begin(condition)
|
|
450
|
-
pushState: /* @__PURE__ */ u(function(
|
|
451
|
-
this.begin(
|
|
450
|
+
pushState: /* @__PURE__ */ u(function(I) {
|
|
451
|
+
this.begin(I);
|
|
452
452
|
}, "pushState"),
|
|
453
453
|
// return the number of states currently on the stack
|
|
454
454
|
stateStackSize: /* @__PURE__ */ u(function() {
|
|
455
455
|
return this.conditionStack.length;
|
|
456
456
|
}, "stateStackSize"),
|
|
457
457
|
options: { "case-insensitive": true },
|
|
458
|
-
performAction: /* @__PURE__ */ u(function(
|
|
458
|
+
performAction: /* @__PURE__ */ u(function(I, P, b, R) {
|
|
459
459
|
switch (b) {
|
|
460
460
|
case 0:
|
|
461
461
|
return 5;
|
|
@@ -588,17 +588,19 @@ Expecting ` + vt.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : Rt =
|
|
|
588
588
|
case 63:
|
|
589
589
|
return 81;
|
|
590
590
|
case 64:
|
|
591
|
-
return
|
|
591
|
+
return 81;
|
|
592
592
|
case 65:
|
|
593
|
-
return
|
|
593
|
+
return 68;
|
|
594
594
|
case 66:
|
|
595
|
-
return
|
|
595
|
+
return 69;
|
|
596
596
|
case 67:
|
|
597
|
+
return 5;
|
|
598
|
+
case 68:
|
|
597
599
|
return "INVALID";
|
|
598
600
|
}
|
|
599
601
|
}, "anonymous"),
|
|
600
|
-
rules: [/^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:((?!\n)\s)+)/i, /^(?:#[^\n]*)/i, /^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[0-9]+(?=[ \n]+))/i, /^(?:box\b)/i, /^(?:participant\b)/i, /^(?:actor\b)/i, /^(?:create\b)/i, /^(?:destroy\b)/i, /^(?:[^\<->\->:\n,;]+?([\-]*[^\<->\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i, /^(?:as\b)/i, /^(?:(?:))/i, /^(?:loop\b)/i, /^(?:rect\b)/i, /^(?:opt\b)/i, /^(?:alt\b)/i, /^(?:else\b)/i, /^(?:par\b)/i, /^(?:par_over\b)/i, /^(?:and\b)/i, /^(?:critical\b)/i, /^(?:option\b)/i, /^(?:break\b)/i, /^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i, /^(?:end\b)/i, /^(?:left of\b)/i, /^(?:right of\b)/i, /^(?:links\b)/i, /^(?:link\b)/i, /^(?:properties\b)/i, /^(?:details\b)/i, /^(?:over\b)/i, /^(?:note\b)/i, /^(?:activate\b)/i, /^(?:deactivate\b)/i, /^(?:title\s[^#\n;]+)/i, /^(?:title:\s[^#\n;]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:sequenceDiagram\b)/i, /^(?:autonumber\b)/i, /^(?:off\b)/i, /^(?:,)/i, /^(?:;)/i, /^(?:[^\+\<->\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\<->\->:\n,;]+)*)/i, /^(?:->>)/i, /^(?:<<->>)/i, /^(?:-->>)/i, /^(?:<<-->>)/i, /^(?:->)/i, /^(?:-->)/i, /^(?:-[x])/i, /^(?:--[x])/i, /^(?:-[\)])/i, /^(?:--[\)])/i, /^(?::(?:(?:no)?wrap)?[^#\n;]
|
|
601
|
-
conditions: { acc_descr_multiline: { rules: [45, 46], inclusive: false }, acc_descr: { rules: [43], inclusive: false }, acc_title: { rules: [41], inclusive: false }, ID: { rules: [2, 3, 12], inclusive: false }, ALIAS: { rules: [2, 3, 13, 14], inclusive: false }, LINE: { rules: [2, 3, 26], inclusive: false }, INITIAL: { rules: [0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 42, 44, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67], inclusive: true } }
|
|
602
|
+
rules: [/^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:((?!\n)\s)+)/i, /^(?:#[^\n]*)/i, /^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[0-9]+(?=[ \n]+))/i, /^(?:box\b)/i, /^(?:participant\b)/i, /^(?:actor\b)/i, /^(?:create\b)/i, /^(?:destroy\b)/i, /^(?:[^\<->\->:\n,;]+?([\-]*[^\<->\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i, /^(?:as\b)/i, /^(?:(?:))/i, /^(?:loop\b)/i, /^(?:rect\b)/i, /^(?:opt\b)/i, /^(?:alt\b)/i, /^(?:else\b)/i, /^(?:par\b)/i, /^(?:par_over\b)/i, /^(?:and\b)/i, /^(?:critical\b)/i, /^(?:option\b)/i, /^(?:break\b)/i, /^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i, /^(?:end\b)/i, /^(?:left of\b)/i, /^(?:right of\b)/i, /^(?:links\b)/i, /^(?:link\b)/i, /^(?:properties\b)/i, /^(?:details\b)/i, /^(?:over\b)/i, /^(?:note\b)/i, /^(?:activate\b)/i, /^(?:deactivate\b)/i, /^(?:title\s[^#\n;]+)/i, /^(?:title:\s[^#\n;]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:sequenceDiagram\b)/i, /^(?:autonumber\b)/i, /^(?:off\b)/i, /^(?:,)/i, /^(?:;)/i, /^(?:[^\+\<->\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\<->\->:\n,;]+)*)/i, /^(?:->>)/i, /^(?:<<->>)/i, /^(?:-->>)/i, /^(?:<<-->>)/i, /^(?:->)/i, /^(?:-->)/i, /^(?:-[x])/i, /^(?:--[x])/i, /^(?:-[\)])/i, /^(?:--[\)])/i, /^(?::(?:(?:no)?wrap)?[^#\n;]*)/i, /^(?::)/i, /^(?:\+)/i, /^(?:-)/i, /^(?:$)/i, /^(?:.)/i],
|
|
603
|
+
conditions: { acc_descr_multiline: { rules: [45, 46], inclusive: false }, acc_descr: { rules: [43], inclusive: false }, acc_title: { rules: [41], inclusive: false }, ID: { rules: [2, 3, 12], inclusive: false }, ALIAS: { rules: [2, 3, 13, 14], inclusive: false }, LINE: { rules: [2, 3, 26], inclusive: false }, INITIAL: { rules: [0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 42, 44, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68], inclusive: true } }
|
|
602
604
|
};
|
|
603
605
|
return ht;
|
|
604
606
|
}();
|
|
@@ -609,7 +611,7 @@ Expecting ` + vt.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : Rt =
|
|
|
609
611
|
return u(bt, "Parser"), bt.prototype = kt, kt.Parser = bt, new bt();
|
|
610
612
|
}();
|
|
611
613
|
Ct.parser = Ct;
|
|
612
|
-
var
|
|
614
|
+
var Se = Ct, Me = {
|
|
613
615
|
SOLID: 0,
|
|
614
616
|
DOTTED: 1,
|
|
615
617
|
NOTE: 2,
|
|
@@ -642,14 +644,14 @@ var Ne = Ct, Se = {
|
|
|
642
644
|
PAR_OVER_START: 32,
|
|
643
645
|
BIDIRECTIONAL_SOLID: 33,
|
|
644
646
|
BIDIRECTIONAL_DOTTED: 34
|
|
645
|
-
},
|
|
647
|
+
}, Re = {
|
|
646
648
|
FILLED: 0,
|
|
647
649
|
OPEN: 1
|
|
648
|
-
},
|
|
650
|
+
}, De = {
|
|
649
651
|
LEFTOF: 0,
|
|
650
652
|
RIGHTOF: 1,
|
|
651
653
|
OVER: 2
|
|
652
|
-
},
|
|
654
|
+
}, Ce = (_a = class {
|
|
653
655
|
constructor() {
|
|
654
656
|
this.state = new Ee(() => ({
|
|
655
657
|
prevActor: void 0,
|
|
@@ -664,7 +666,7 @@ var Ne = Ct, Se = {
|
|
|
664
666
|
currentBox: void 0,
|
|
665
667
|
lastCreated: void 0,
|
|
666
668
|
lastDestroyed: void 0
|
|
667
|
-
})), this.setAccTitle =
|
|
669
|
+
})), this.setAccTitle = Kt, this.setAccDescription = ve, this.setDiagramTitle = Ie, this.getAccTitle = Le, this.getAccDescription = _e, this.getDiagramTitle = Pe, this.apply = this.apply.bind(this), this.parseBoxData = this.parseBoxData.bind(this), this.parseMessage = this.parseMessage.bind(this), this.clear(), this.setWrap($().wrap), this.LINETYPE = Me, this.ARROWTYPE = Re, this.PLACEMENT = De;
|
|
668
670
|
}
|
|
669
671
|
addBox(t) {
|
|
670
672
|
this.state.records.boxes.push({
|
|
@@ -1006,7 +1008,7 @@ var Ne = Ct, Se = {
|
|
|
1006
1008
|
this.addSignal(void 0, void 0, void 0, t.signalType);
|
|
1007
1009
|
break;
|
|
1008
1010
|
case "setAccTitle":
|
|
1009
|
-
|
|
1011
|
+
Kt(t.text);
|
|
1010
1012
|
break;
|
|
1011
1013
|
case "parStart":
|
|
1012
1014
|
this.addSignal(void 0, void 0, t.parText, t.signalType);
|
|
@@ -1037,7 +1039,7 @@ var Ne = Ct, Se = {
|
|
|
1037
1039
|
getConfig() {
|
|
1038
1040
|
return $().sequence;
|
|
1039
1041
|
}
|
|
1040
|
-
}, u(_a, "SequenceDB"), _a),
|
|
1042
|
+
}, u(_a, "SequenceDB"), _a), Oe = /* @__PURE__ */ u((t) => `.actor {
|
|
1041
1043
|
stroke: ${t.actorBorder};
|
|
1042
1044
|
fill: ${t.actorBkg};
|
|
1043
1045
|
}
|
|
@@ -1153,9 +1155,9 @@ var Ne = Ct, Se = {
|
|
|
1153
1155
|
fill: ${t.actorBkg};
|
|
1154
1156
|
stroke-width: 2px;
|
|
1155
1157
|
}
|
|
1156
|
-
`, "getStyles"),
|
|
1158
|
+
`, "getStyles"), Be = Oe, ut = 18 * 2, jt = "actor-top", $t = "actor-bottom", Ve = "actor-box", Gt = "actor-man", Yt = /* @__PURE__ */ u(function(t, e) {
|
|
1157
1159
|
return xe(t, e);
|
|
1158
|
-
}, "drawRect"),
|
|
1160
|
+
}, "drawRect"), Ye = /* @__PURE__ */ u(function(t, e, c, s, r) {
|
|
1159
1161
|
if (e.links === void 0 || e.links === null || Object.keys(e.links).length === 0)
|
|
1160
1162
|
return { height: 0, width: 0 };
|
|
1161
1163
|
const i = e.links, o = e.actorCnt, h = e.rectData;
|
|
@@ -1170,8 +1172,8 @@ var Ne = Ct, Se = {
|
|
|
1170
1172
|
if (g.attr("class", "actorPopupMenuPanel" + f), g.attr("x", h.x), g.attr("y", h.height), g.attr("fill", h.fill), g.attr("stroke", h.stroke), g.attr("width", E), g.attr("height", h.height), g.attr("rx", h.rx), g.attr("ry", h.ry), i != null) {
|
|
1171
1173
|
var T = 20;
|
|
1172
1174
|
for (let A in i) {
|
|
1173
|
-
var m = a.append("a"),
|
|
1174
|
-
m.attr("xlink:href",
|
|
1175
|
+
var m = a.append("a"), L = Jt.sanitizeUrl(i[A]);
|
|
1176
|
+
m.attr("xlink:href", L), m.attr("target", "_blank"), ss(s)(
|
|
1175
1177
|
A,
|
|
1176
1178
|
m,
|
|
1177
1179
|
h.x + 10,
|
|
@@ -1184,7 +1186,7 @@ var Ne = Ct, Se = {
|
|
|
1184
1186
|
}
|
|
1185
1187
|
}
|
|
1186
1188
|
return g.attr("height", T), { height: h.height + T, width: E };
|
|
1187
|
-
}, "drawPopup"),
|
|
1189
|
+
}, "drawPopup"), We = /* @__PURE__ */ u(function(t) {
|
|
1188
1190
|
return "var pu = document.getElementById('" + t + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
|
|
1189
1191
|
}, "popupMenuToggle"), _t = /* @__PURE__ */ u(async function(t, e, c = null) {
|
|
1190
1192
|
let s = t.append("foreignObject");
|
|
@@ -1264,11 +1266,11 @@ var Ne = Ct, Se = {
|
|
|
1264
1266
|
const i = e.get(r), o = t.select("#actor" + i.actorCnt);
|
|
1265
1267
|
!s.mirrorActors && i.stopy ? o.attr("y2", i.stopy + i.height / 2) : s.mirrorActors && o.attr("y2", i.stopy);
|
|
1266
1268
|
});
|
|
1267
|
-
}, "fixLifeLineHeights"),
|
|
1269
|
+
}, "fixLifeLineHeights"), Fe = /* @__PURE__ */ u(function(t, e, c, s) {
|
|
1268
1270
|
var _a2, _b;
|
|
1269
1271
|
const r = s ? e.stopy : e.starty, i = e.x + e.width / 2, o = r + e.height, h = t.append("g").lower();
|
|
1270
1272
|
var d = h;
|
|
1271
|
-
s || (nt++, Object.keys(e.links || {}).length && !c.forceMenus && d.attr("onclick",
|
|
1273
|
+
s || (nt++, Object.keys(e.links || {}).length && !c.forceMenus && d.attr("onclick", We(`actor${nt}_popup`)).attr("cursor", "pointer"), d.append("line").attr("id", "actor" + nt).attr("x1", i).attr("y1", o).attr("x2", i).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", e.name), d = h.append("g"), e.actorCnt = nt, e.links != null && d.attr("id", "root-" + nt));
|
|
1272
1274
|
const a = Pt();
|
|
1273
1275
|
var f = "actor";
|
|
1274
1276
|
((_a2 = e.properties) == null ? void 0 : _a2.class) ? f = e.properties.class : a.fill = "#eaeaea", s ? f += ` ${$t}` : f += ` ${jt}`, a.x = e.x, a.y = r, a.width = e.width, a.height = e.height, a.class = f, a.rx = 3, a.ry = 3, a.name = e.name;
|
|
@@ -1284,7 +1286,7 @@ var Ne = Ct, Se = {
|
|
|
1284
1286
|
a.y,
|
|
1285
1287
|
a.width,
|
|
1286
1288
|
a.height,
|
|
1287
|
-
{ class: `actor ${
|
|
1289
|
+
{ class: `actor ${Ve}` },
|
|
1288
1290
|
c
|
|
1289
1291
|
);
|
|
1290
1292
|
let g = e.height;
|
|
@@ -1293,7 +1295,7 @@ var Ne = Ct, Se = {
|
|
|
1293
1295
|
e.height = T.height, g = T.height;
|
|
1294
1296
|
}
|
|
1295
1297
|
return g;
|
|
1296
|
-
}, "drawActorTypeParticipant"),
|
|
1298
|
+
}, "drawActorTypeParticipant"), qe = /* @__PURE__ */ u(function(t, e, c, s) {
|
|
1297
1299
|
const r = s ? e.stopy : e.starty, i = e.x + e.width / 2, o = r + 80, h = t.append("g").lower();
|
|
1298
1300
|
s || (nt++, h.append("line").attr("id", "actor" + nt).attr("x1", i).attr("y1", o).attr("x2", i).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", e.name), e.actorCnt = nt);
|
|
1299
1301
|
const d = t.append("g");
|
|
@@ -1314,14 +1316,14 @@ var Ne = Ct, Se = {
|
|
|
1314
1316
|
{ class: `actor ${Gt}` },
|
|
1315
1317
|
c
|
|
1316
1318
|
), e.height;
|
|
1317
|
-
}, "drawActorTypeActor"),
|
|
1319
|
+
}, "drawActorTypeActor"), ze = /* @__PURE__ */ u(async function(t, e, c, s) {
|
|
1318
1320
|
switch (e.type) {
|
|
1319
1321
|
case "actor":
|
|
1320
|
-
return await
|
|
1322
|
+
return await qe(t, e, c, s);
|
|
1321
1323
|
case "participant":
|
|
1322
|
-
return await
|
|
1324
|
+
return await Fe(t, e, c, s);
|
|
1323
1325
|
}
|
|
1324
|
-
}, "drawActor"),
|
|
1326
|
+
}, "drawActor"), He = /* @__PURE__ */ u(function(t, e, c) {
|
|
1325
1327
|
const r = t.append("g");
|
|
1326
1328
|
se(r, e), e.name && Wt(c)(
|
|
1327
1329
|
e.name,
|
|
@@ -1333,12 +1335,12 @@ var Ne = Ct, Se = {
|
|
|
1333
1335
|
{ class: "text" },
|
|
1334
1336
|
c
|
|
1335
1337
|
), r.lower();
|
|
1336
|
-
}, "drawBox"),
|
|
1338
|
+
}, "drawBox"), Ue = /* @__PURE__ */ u(function(t) {
|
|
1337
1339
|
return t.append("g");
|
|
1338
1340
|
}, "anchorElement"), Ke = /* @__PURE__ */ u(function(t, e, c, s, r) {
|
|
1339
1341
|
const i = Pt(), o = e.anchored;
|
|
1340
1342
|
i.x = e.startx, i.y = e.starty, i.class = "activation" + r % 3, i.width = e.stopx - e.startx, i.height = c - e.starty, Yt(o, i);
|
|
1341
|
-
}, "drawActivation"),
|
|
1343
|
+
}, "drawActivation"), Ge = /* @__PURE__ */ u(async function(t, e, c, s) {
|
|
1342
1344
|
const {
|
|
1343
1345
|
boxMargin: r,
|
|
1344
1346
|
boxTextMargin: i,
|
|
@@ -1347,11 +1349,11 @@ var Ne = Ct, Se = {
|
|
|
1347
1349
|
messageFontFamily: d,
|
|
1348
1350
|
messageFontSize: a,
|
|
1349
1351
|
messageFontWeight: f
|
|
1350
|
-
} = s, E = t.append("g"), g = /* @__PURE__ */ u(function(
|
|
1351
|
-
return E.append("line").attr("x1",
|
|
1352
|
+
} = s, E = t.append("g"), g = /* @__PURE__ */ u(function(L, A, O, S) {
|
|
1353
|
+
return E.append("line").attr("x1", L).attr("y1", A).attr("x2", O).attr("y2", S).attr("class", "loopLine");
|
|
1352
1354
|
}, "drawLoopLine");
|
|
1353
|
-
g(e.startx, e.starty, e.stopx, e.starty), g(e.stopx, e.starty, e.stopx, e.stopy), g(e.startx, e.stopy, e.stopx, e.stopy), g(e.startx, e.starty, e.startx, e.stopy), e.sections !== void 0 && e.sections.forEach(function(
|
|
1354
|
-
g(e.startx,
|
|
1355
|
+
g(e.startx, e.starty, e.stopx, e.starty), g(e.stopx, e.starty, e.stopx, e.stopy), g(e.startx, e.stopy, e.stopx, e.stopy), g(e.startx, e.starty, e.startx, e.stopy), e.sections !== void 0 && e.sections.forEach(function(L) {
|
|
1356
|
+
g(e.startx, L.y, e.stopx, L.y).style(
|
|
1355
1357
|
"stroke-dasharray",
|
|
1356
1358
|
"3, 3"
|
|
1357
1359
|
);
|
|
@@ -1360,40 +1362,40 @@ var Ne = Ct, Se = {
|
|
|
1360
1362
|
T.text = c, T.x = e.startx, T.y = e.starty, T.fontFamily = d, T.fontSize = a, T.fontWeight = f, T.anchor = "middle", T.valign = "middle", T.tspan = false, T.width = h || 50, T.height = o || 20, T.textMargin = i, T.class = "labelText", te(E, T), T = ae(), T.text = e.title, T.x = e.startx + h / 2 + (e.stopx - e.startx) / 2, T.y = e.starty + r + i, T.anchor = "middle", T.valign = "middle", T.textMargin = i, T.class = "loopText", T.fontFamily = d, T.fontSize = a, T.fontWeight = f, T.wrap = true;
|
|
1361
1363
|
let m = ot(T.text) ? await _t(E, T, e) : Tt(E, T);
|
|
1362
1364
|
if (e.sectionTitles !== void 0) {
|
|
1363
|
-
for (const [
|
|
1365
|
+
for (const [L, A] of Object.entries(e.sectionTitles))
|
|
1364
1366
|
if (A.message) {
|
|
1365
|
-
T.text = A.message, T.x = e.startx + (e.stopx - e.startx) / 2, T.y = e.sections[
|
|
1367
|
+
T.text = A.message, T.x = e.startx + (e.stopx - e.startx) / 2, T.y = e.sections[L].y + r + i, T.class = "loopText", T.anchor = "middle", T.valign = "middle", T.tspan = false, T.fontFamily = d, T.fontSize = a, T.fontWeight = f, T.wrap = e.wrap, ot(T.text) ? (e.starty = e.sections[L].y, await _t(E, T, e)) : Tt(E, T);
|
|
1366
1368
|
let O = Math.round(
|
|
1367
1369
|
m.map((S) => (S._groups || S)[0][0].getBBox().height).reduce((S, B) => S + B)
|
|
1368
1370
|
);
|
|
1369
|
-
e.sections[
|
|
1371
|
+
e.sections[L].height += O - (r + i);
|
|
1370
1372
|
}
|
|
1371
1373
|
}
|
|
1372
1374
|
return e.height = Math.round(e.stopy - e.starty), E;
|
|
1373
1375
|
}, "drawLoop"), se = /* @__PURE__ */ u(function(t, e) {
|
|
1374
1376
|
fe(t, e);
|
|
1375
|
-
}, "drawBackgroundRect"),
|
|
1377
|
+
}, "drawBackgroundRect"), Xe = /* @__PURE__ */ u(function(t) {
|
|
1376
1378
|
t.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr(
|
|
1377
1379
|
"d",
|
|
1378
1380
|
"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"
|
|
1379
1381
|
);
|
|
1380
|
-
}, "insertDatabaseIcon"),
|
|
1382
|
+
}, "insertDatabaseIcon"), Je = /* @__PURE__ */ u(function(t) {
|
|
1381
1383
|
t.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
|
|
1382
1384
|
"d",
|
|
1383
1385
|
"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"
|
|
1384
1386
|
);
|
|
1385
|
-
}, "insertComputerIcon"),
|
|
1387
|
+
}, "insertComputerIcon"), Ze = /* @__PURE__ */ u(function(t) {
|
|
1386
1388
|
t.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
|
|
1387
1389
|
"d",
|
|
1388
1390
|
"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"
|
|
1389
1391
|
);
|
|
1390
|
-
}, "insertClockIcon"),
|
|
1392
|
+
}, "insertClockIcon"), Qe = /* @__PURE__ */ u(function(t) {
|
|
1391
1393
|
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");
|
|
1392
|
-
}, "insertArrowHead"),
|
|
1394
|
+
}, "insertArrowHead"), je = /* @__PURE__ */ u(function(t) {
|
|
1393
1395
|
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");
|
|
1394
|
-
}, "insertArrowFilledHead"),
|
|
1396
|
+
}, "insertArrowFilledHead"), $e = /* @__PURE__ */ u(function(t) {
|
|
1395
1397
|
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);
|
|
1396
|
-
}, "insertSequenceNumber"),
|
|
1398
|
+
}, "insertSequenceNumber"), ts = /* @__PURE__ */ u(function(t) {
|
|
1397
1399
|
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");
|
|
1398
1400
|
}, "insertArrowCrossHead"), ae = /* @__PURE__ */ u(function() {
|
|
1399
1401
|
return {
|
|
@@ -1410,7 +1412,7 @@ var Ne = Ct, Se = {
|
|
|
1410
1412
|
tspan: true,
|
|
1411
1413
|
valign: void 0
|
|
1412
1414
|
};
|
|
1413
|
-
}, "getTextObj"),
|
|
1415
|
+
}, "getTextObj"), es = /* @__PURE__ */ u(function() {
|
|
1414
1416
|
return {
|
|
1415
1417
|
x: 0,
|
|
1416
1418
|
y: 0,
|
|
@@ -1429,16 +1431,16 @@ var Ne = Ct, Se = {
|
|
|
1429
1431
|
}
|
|
1430
1432
|
u(t, "byText");
|
|
1431
1433
|
function e(i, o, h, d, a, f, E, g) {
|
|
1432
|
-
const { actorFontSize: T, actorFontFamily: m, actorFontWeight:
|
|
1434
|
+
const { actorFontSize: T, actorFontFamily: m, actorFontWeight: L } = g, [A, O] = Zt(T), S = i.split(v.lineBreakRegex);
|
|
1433
1435
|
for (let B = 0; B < S.length; B++) {
|
|
1434
|
-
const D = B * A - A * (S.length - 1) / 2, F = o.append("text").attr("x", h + a / 2).attr("y", d).style("text-anchor", "middle").style("font-size", O).style("font-weight",
|
|
1436
|
+
const D = B * A - A * (S.length - 1) / 2, F = o.append("text").attr("x", h + a / 2).attr("y", d).style("text-anchor", "middle").style("font-size", O).style("font-weight", L).style("font-family", m);
|
|
1435
1437
|
F.append("tspan").attr("x", h + a / 2).attr("dy", D).text(S[B]), F.attr("y", d + f / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), r(F, E);
|
|
1436
1438
|
}
|
|
1437
1439
|
}
|
|
1438
1440
|
u(e, "byTspan");
|
|
1439
1441
|
function c(i, o, h, d, a, f, E, g) {
|
|
1440
|
-
const T = o.append("switch"),
|
|
1441
|
-
|
|
1442
|
+
const T = o.append("switch"), L = T.append("foreignObject").attr("x", h).attr("y", d).attr("width", a).attr("height", f).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
1443
|
+
L.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), e(i, T, h, d, a, f, E, g), r(L, E);
|
|
1442
1444
|
}
|
|
1443
1445
|
u(c, "byFo");
|
|
1444
1446
|
async function s(i, o, h, d, a, f, E, g) {
|
|
@@ -1453,17 +1455,17 @@ var Ne = Ct, Se = {
|
|
|
1453
1455
|
return u(r, "_setTextAttrs"), function(i, o = false) {
|
|
1454
1456
|
return o ? s : i.textPlacement === "fo" ? c : i.textPlacement === "old" ? t : e;
|
|
1455
1457
|
};
|
|
1456
|
-
}(),
|
|
1458
|
+
}(), ss = /* @__PURE__ */ function() {
|
|
1457
1459
|
function t(r, i, o, h, d, a, f) {
|
|
1458
1460
|
const E = i.append("text").attr("x", o).attr("y", h).style("text-anchor", "start").text(r);
|
|
1459
1461
|
s(E, f);
|
|
1460
1462
|
}
|
|
1461
1463
|
u(t, "byText");
|
|
1462
1464
|
function e(r, i, o, h, d, a, f, E) {
|
|
1463
|
-
const { actorFontSize: g, actorFontFamily: T, actorFontWeight: m } = E,
|
|
1464
|
-
for (let A = 0; A <
|
|
1465
|
-
const O = A * g - g * (
|
|
1466
|
-
S.append("tspan").attr("x", o).attr("dy", O).text(
|
|
1465
|
+
const { actorFontSize: g, actorFontFamily: T, actorFontWeight: m } = E, L = r.split(v.lineBreakRegex);
|
|
1466
|
+
for (let A = 0; A < L.length; A++) {
|
|
1467
|
+
const O = A * g - g * (L.length - 1) / 2, S = i.append("text").attr("x", o).attr("y", h).style("text-anchor", "start").style("font-size", g).style("font-weight", m).style("font-family", T);
|
|
1468
|
+
S.append("tspan").attr("x", o).attr("dy", O).text(L[A]), S.attr("y", h + a / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), s(S, f);
|
|
1467
1469
|
}
|
|
1468
1470
|
}
|
|
1469
1471
|
u(e, "byTspan");
|
|
@@ -1483,22 +1485,22 @@ var Ne = Ct, Se = {
|
|
|
1483
1485
|
drawRect: Yt,
|
|
1484
1486
|
drawText: Tt,
|
|
1485
1487
|
drawLabel: te,
|
|
1486
|
-
drawActor:
|
|
1487
|
-
drawBox:
|
|
1488
|
-
drawPopup:
|
|
1489
|
-
anchorElement:
|
|
1488
|
+
drawActor: ze,
|
|
1489
|
+
drawBox: He,
|
|
1490
|
+
drawPopup: Ye,
|
|
1491
|
+
anchorElement: Ue,
|
|
1490
1492
|
drawActivation: Ke,
|
|
1491
|
-
drawLoop:
|
|
1493
|
+
drawLoop: Ge,
|
|
1492
1494
|
drawBackgroundRect: se,
|
|
1493
|
-
insertArrowHead:
|
|
1494
|
-
insertArrowFilledHead:
|
|
1495
|
-
insertSequenceNumber:
|
|
1496
|
-
insertArrowCrossHead:
|
|
1497
|
-
insertDatabaseIcon:
|
|
1498
|
-
insertComputerIcon:
|
|
1499
|
-
insertClockIcon:
|
|
1495
|
+
insertArrowHead: Qe,
|
|
1496
|
+
insertArrowFilledHead: je,
|
|
1497
|
+
insertSequenceNumber: $e,
|
|
1498
|
+
insertArrowCrossHead: ts,
|
|
1499
|
+
insertDatabaseIcon: Xe,
|
|
1500
|
+
insertComputerIcon: Je,
|
|
1501
|
+
insertClockIcon: Ze,
|
|
1500
1502
|
getTextObj: ae,
|
|
1501
|
-
getNoteRect:
|
|
1503
|
+
getNoteRect: es,
|
|
1502
1504
|
fixLifeLineHeights: ee,
|
|
1503
1505
|
sanitizeUrl: Jt.sanitizeUrl
|
|
1504
1506
|
}, n = {}, x = {
|
|
@@ -1639,7 +1641,7 @@ var Ne = Ct, Se = {
|
|
|
1639
1641
|
getBounds: /* @__PURE__ */ u(function() {
|
|
1640
1642
|
return { bounds: this.data, models: this.models };
|
|
1641
1643
|
}, "getBounds")
|
|
1642
|
-
},
|
|
1644
|
+
}, as = /* @__PURE__ */ u(async function(t, e) {
|
|
1643
1645
|
x.bumpVerticalPos(n.boxMargin), e.height = n.boxMargin, e.starty = x.getVerticalPos();
|
|
1644
1646
|
const c = Pt();
|
|
1645
1647
|
c.x = e.startx, c.y = e.starty, c.width = e.width || n.width, c.class = "note";
|
|
@@ -1685,7 +1687,7 @@ async function re(t, e) {
|
|
|
1685
1687
|
return x.bumpVerticalPos(a), e.height += a, e.stopy = e.starty + e.height, x.insert(e.fromBounds, e.starty, e.toBounds, e.stopy), d;
|
|
1686
1688
|
}
|
|
1687
1689
|
u(re, "boundMessage");
|
|
1688
|
-
var
|
|
1690
|
+
var rs = /* @__PURE__ */ u(async function(t, e, c, s) {
|
|
1689
1691
|
const { startx: r, stopx: i, starty: o, message: h, type: d, sequenceIndex: a, sequenceVisible: f } = e, E = Y.calculateTextDimensions(h, gt(n)), g = Vt();
|
|
1690
1692
|
g.x = r, g.y = o + 10, g.width = i - r, g.class = "messageText", g.dy = "1em", g.text = h, g.fontFamily = n.messageFontFamily, g.fontSize = n.messageFontSize, g.fontWeight = n.messageFontWeight, g.anchor = n.messageAlign, g.valign = "center", g.textMargin = n.wrapPadding, g.tspan = false, ot(g.text) ? await _t(t, g, { startx: r, stopx: i, starty: c }) : Tt(t, g);
|
|
1691
1693
|
const T = E.width;
|
|
@@ -1697,9 +1699,9 @@ var as = /* @__PURE__ */ u(async function(t, e, c, s) {
|
|
|
1697
1699
|
"d",
|
|
1698
1700
|
"M " + r + "," + c + " C " + (r + 60) + "," + (c - 10) + " " + (r + 60) + "," + (c + 30) + " " + r + "," + (c + 20)
|
|
1699
1701
|
) : (m = t.append("line"), m.attr("x1", r), m.attr("y1", c), m.attr("x2", i), m.attr("y2", c)), d === s.db.LINETYPE.DOTTED || d === s.db.LINETYPE.DOTTED_CROSS || d === s.db.LINETYPE.DOTTED_POINT || d === s.db.LINETYPE.DOTTED_OPEN || d === s.db.LINETYPE.BIDIRECTIONAL_DOTTED ? (m.style("stroke-dasharray", "3, 3"), m.attr("class", "messageLine1")) : m.attr("class", "messageLine0");
|
|
1700
|
-
let
|
|
1701
|
-
n.arrowMarkerAbsolute && (
|
|
1702
|
-
}, "drawMessage"),
|
|
1702
|
+
let L = "";
|
|
1703
|
+
n.arrowMarkerAbsolute && (L = Ne(true)), m.attr("stroke-width", 2), m.attr("stroke", "none"), m.style("fill", "none"), (d === s.db.LINETYPE.SOLID || d === s.db.LINETYPE.DOTTED) && m.attr("marker-end", "url(" + L + "#arrowhead)"), (d === s.db.LINETYPE.BIDIRECTIONAL_SOLID || d === s.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (m.attr("marker-start", "url(" + L + "#arrowhead)"), m.attr("marker-end", "url(" + L + "#arrowhead)")), (d === s.db.LINETYPE.SOLID_POINT || d === s.db.LINETYPE.DOTTED_POINT) && m.attr("marker-end", "url(" + L + "#filled-head)"), (d === s.db.LINETYPE.SOLID_CROSS || d === s.db.LINETYPE.DOTTED_CROSS) && m.attr("marker-end", "url(" + L + "#crosshead)"), (f || n.showSequenceNumbers) && (m.attr("marker-start", "url(" + L + "#sequencenumber)"), t.append("text").attr("x", r).attr("y", c + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(a));
|
|
1704
|
+
}, "drawMessage"), is = /* @__PURE__ */ u(function(t, e, c, s, r, i, o) {
|
|
1703
1705
|
let h = 0, d = 0, a, f = 0;
|
|
1704
1706
|
for (const E of s) {
|
|
1705
1707
|
const g = e.get(E), T = g.box;
|
|
@@ -1725,7 +1727,7 @@ var as = /* @__PURE__ */ u(async function(t, e, c, s) {
|
|
|
1725
1727
|
}, "drawActors"), ie = /* @__PURE__ */ u(function(t, e, c, s) {
|
|
1726
1728
|
let r = 0, i = 0;
|
|
1727
1729
|
for (const o of c) {
|
|
1728
|
-
const h = e.get(o), d =
|
|
1730
|
+
const h = e.get(o), d = os(h), a = C.drawPopup(
|
|
1729
1731
|
t,
|
|
1730
1732
|
h,
|
|
1731
1733
|
d,
|
|
@@ -1816,7 +1818,7 @@ function oe(t, e, c, s, r, i, o) {
|
|
|
1816
1818
|
}
|
|
1817
1819
|
}
|
|
1818
1820
|
u(oe, "adjustCreatedDestroyedData");
|
|
1819
|
-
var
|
|
1821
|
+
var ns = /* @__PURE__ */ u(async function(t, e, c, s) {
|
|
1820
1822
|
const { securityLevel: r, sequence: i } = $();
|
|
1821
1823
|
n = i;
|
|
1822
1824
|
let o;
|
|
@@ -1825,15 +1827,15 @@ var is = /* @__PURE__ */ u(async function(t, e, c, s) {
|
|
|
1825
1827
|
x.init(), G.debug(s.db);
|
|
1826
1828
|
const a = r === "sandbox" ? h.select(`[id="${e}"]`) : It(`[id="${e}"]`), f = s.db.getActors(), E = s.db.getCreatedActors(), g = s.db.getDestroyedActors(), T = s.db.getBoxes();
|
|
1827
1829
|
let m = s.db.getActorKeys();
|
|
1828
|
-
const
|
|
1830
|
+
const L = s.db.getMessages(), A = s.db.getDiagramTitle(), O = s.db.hasAtLeastOneBox(), S = s.db.hasAtLeastOneBoxWithTitle(), B = await ce(f, L, s);
|
|
1829
1831
|
if (n.height = await le(f, B, T), C.insertComputerIcon(a), C.insertDatabaseIcon(a), C.insertClockIcon(a), O && (x.bumpVerticalPos(n.boxMargin), S && x.bumpVerticalPos(T[0].textMaxHeight)), n.hideUnusedParticipants === true) {
|
|
1830
1832
|
const y = /* @__PURE__ */ new Set();
|
|
1831
|
-
|
|
1833
|
+
L.forEach((_) => {
|
|
1832
1834
|
y.add(_.from), y.add(_.to);
|
|
1833
1835
|
}), m = m.filter((_) => y.has(_));
|
|
1834
1836
|
}
|
|
1835
|
-
|
|
1836
|
-
const D = await
|
|
1837
|
+
is(a, f, E, m, 0, L, false);
|
|
1838
|
+
const D = await hs(L, f, B, s);
|
|
1837
1839
|
C.insertArrowHead(a), C.insertArrowCrossHead(a), C.insertArrowFilledHead(a), C.insertSequenceNumber(a);
|
|
1838
1840
|
function F(y, _) {
|
|
1839
1841
|
const Q = x.endActivation(y);
|
|
@@ -1849,11 +1851,11 @@ var is = /* @__PURE__ */ u(async function(t, e, c, s) {
|
|
|
1849
1851
|
let q = 1, X = 1;
|
|
1850
1852
|
const tt = [], z = [];
|
|
1851
1853
|
let H = 0;
|
|
1852
|
-
for (const y of
|
|
1854
|
+
for (const y of L) {
|
|
1853
1855
|
let _, Q, at;
|
|
1854
1856
|
switch (y.type) {
|
|
1855
1857
|
case s.db.LINETYPE.NOTE:
|
|
1856
|
-
x.resetVerticalPos(), Q = y.noteModel, await
|
|
1858
|
+
x.resetVerticalPos(), Q = y.noteModel, await as(a, Q);
|
|
1857
1859
|
break;
|
|
1858
1860
|
case s.db.LINETYPE.ACTIVE_START:
|
|
1859
1861
|
x.newActivation(y, a, f);
|
|
@@ -2008,7 +2010,7 @@ var is = /* @__PURE__ */ u(async function(t, e, c, s) {
|
|
|
2008
2010
|
}
|
|
2009
2011
|
G.debug("createdActors", E), G.debug("destroyedActors", g), await Bt(a, f, m, false);
|
|
2010
2012
|
for (const y of tt)
|
|
2011
|
-
await
|
|
2013
|
+
await rs(a, y.messageModel, y.lineStartY, s);
|
|
2012
2014
|
n.mirrorActors && await Bt(a, f, m, true), z.forEach((y) => C.drawBackgroundRect(a, y)), ee(a, f, m, n);
|
|
2013
2015
|
for (const y of x.models.boxes)
|
|
2014
2016
|
y.height = x.getVerticalPos() - y.y, x.insert(y.x, y.y, y.x + y.width, y.height), y.startx = y.x, y.starty = y.y, y.stopx = y.startx + y.width, y.stopy = y.starty + y.height, y.stroke = "rgb(0,0,0, 0.5)", C.drawBox(a, y, n);
|
|
@@ -2017,16 +2019,16 @@ var is = /* @__PURE__ */ u(async function(t, e, c, s) {
|
|
|
2017
2019
|
M.startx === void 0 && (M.startx = 0), M.starty === void 0 && (M.starty = 0), M.stopx === void 0 && (M.stopx = 0), M.stopy === void 0 && (M.stopy = 0);
|
|
2018
2020
|
let J = M.stopy - M.starty;
|
|
2019
2021
|
J < W.maxHeight && (J = W.maxHeight);
|
|
2020
|
-
let
|
|
2021
|
-
n.mirrorActors && (
|
|
2022
|
+
let U = J + 2 * n.diagramMarginY;
|
|
2023
|
+
n.mirrorActors && (U = U - n.boxMargin + n.bottomMarginAdj);
|
|
2022
2024
|
let Z = M.stopx - M.startx;
|
|
2023
2025
|
Z < W.maxWidth && (Z = W.maxWidth);
|
|
2024
2026
|
const et = Z + 2 * n.diagramMarginX;
|
|
2025
|
-
A && a.append("text").text(A).attr("x", (M.stopx - M.startx) / 2 - 2 * n.diagramMarginX).attr("y", -25), me(a,
|
|
2027
|
+
A && a.append("text").text(A).attr("x", (M.stopx - M.startx) / 2 - 2 * n.diagramMarginX).attr("y", -25), me(a, U, et, n.useMaxWidth);
|
|
2026
2028
|
const N = A ? 40 : 0;
|
|
2027
2029
|
a.attr(
|
|
2028
2030
|
"viewBox",
|
|
2029
|
-
M.startx - n.diagramMarginX + " -" + (n.diagramMarginY + N) + " " + et + " " + (
|
|
2031
|
+
M.startx - n.diagramMarginX + " -" + (n.diagramMarginY + N) + " " + et + " " + (U + N)
|
|
2030
2032
|
), G.debug("models:", x.models);
|
|
2031
2033
|
}, "draw");
|
|
2032
2034
|
async function ce(t, e, c) {
|
|
@@ -2066,7 +2068,7 @@ async function ce(t, e, c) {
|
|
|
2066
2068
|
return G.debug("maxMessageWidthPerActor:", s), s;
|
|
2067
2069
|
}
|
|
2068
2070
|
u(ce, "getMaxMessageWidthPerActor");
|
|
2069
|
-
var
|
|
2071
|
+
var os = /* @__PURE__ */ u(function(t) {
|
|
2070
2072
|
let e = 0;
|
|
2071
2073
|
const c = Ot(n);
|
|
2072
2074
|
for (const s in t.links) {
|
|
@@ -2115,7 +2117,7 @@ async function le(t, e, c) {
|
|
|
2115
2117
|
}), c.forEach((i) => i.textMaxHeight = r), v.getMax(s, n.height);
|
|
2116
2118
|
}
|
|
2117
2119
|
u(le, "calculateActorMargins");
|
|
2118
|
-
var
|
|
2120
|
+
var cs = /* @__PURE__ */ u(async function(t, e, c) {
|
|
2119
2121
|
const s = e.get(t.from), r = e.get(t.to), i = s.x, o = r.x, h = t.wrap && t.message;
|
|
2120
2122
|
let d = ot(t.message) ? await Et(t.message, $()) : Y.calculateTextDimensions(
|
|
2121
2123
|
h ? Y.wrapLabel(t.message, n.width, xt(n)) : t.message,
|
|
@@ -2146,7 +2148,7 @@ var os = /* @__PURE__ */ u(async function(t, e, c) {
|
|
|
2146
2148
|
)), G.debug(
|
|
2147
2149
|
`NM:[${a.startx},${a.stopx},${a.starty},${a.stopy}:${a.width},${a.height}=${t.message}]`
|
|
2148
2150
|
), a;
|
|
2149
|
-
}, "buildNoteModel"),
|
|
2151
|
+
}, "buildNoteModel"), ls = /* @__PURE__ */ u(function(t, e, c) {
|
|
2150
2152
|
if (![
|
|
2151
2153
|
c.db.LINETYPE.SOLID_OPEN,
|
|
2152
2154
|
c.db.LINETYPE.DOTTED_OPEN,
|
|
@@ -2162,7 +2164,7 @@ var os = /* @__PURE__ */ u(async function(t, e, c) {
|
|
|
2162
2164
|
return {};
|
|
2163
2165
|
const [s, r] = Xt(t.from, e), [i, o] = Xt(t.to, e), h = s <= i;
|
|
2164
2166
|
let d = h ? r : s, a = h ? i : o;
|
|
2165
|
-
const f = Math.abs(i - o) > 2, E = /* @__PURE__ */ u((
|
|
2167
|
+
const f = Math.abs(i - o) > 2, E = /* @__PURE__ */ u((L) => h ? -L : L, "adjustValue");
|
|
2166
2168
|
t.from === t.to ? a = d : (t.activate && !f && (a += E(n.activationWidth / 2 - 1)), [c.db.LINETYPE.SOLID_OPEN, c.db.LINETYPE.DOTTED_OPEN].includes(t.type) || (a += E(3)), [c.db.LINETYPE.BIDIRECTIONAL_SOLID, c.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(
|
|
2167
2169
|
t.type
|
|
2168
2170
|
) && (d -= E(3)));
|
|
@@ -2190,7 +2192,7 @@ var os = /* @__PURE__ */ u(async function(t, e, c) {
|
|
|
2190
2192
|
fromBounds: Math.min.apply(null, g),
|
|
2191
2193
|
toBounds: Math.max.apply(null, g)
|
|
2192
2194
|
};
|
|
2193
|
-
}, "buildMessageModel"),
|
|
2195
|
+
}, "buildMessageModel"), hs = /* @__PURE__ */ u(async function(t, e, c, s) {
|
|
2194
2196
|
const r = {}, i = [];
|
|
2195
2197
|
let o, h, d;
|
|
2196
2198
|
for (const a of t) {
|
|
@@ -2241,9 +2243,9 @@ var os = /* @__PURE__ */ u(async function(t, e, c) {
|
|
|
2241
2243
|
}
|
|
2242
2244
|
break;
|
|
2243
2245
|
}
|
|
2244
|
-
a.placement !== void 0 ? (h = await
|
|
2246
|
+
a.placement !== void 0 ? (h = await cs(a, e, s), a.noteModel = h, i.forEach((E) => {
|
|
2245
2247
|
o = E, o.from = v.getMin(o.from, h.startx), o.to = v.getMax(o.to, h.startx + h.width), o.width = v.getMax(o.width, Math.abs(o.from - o.to)) - n.labelBoxWidth;
|
|
2246
|
-
})) : (d =
|
|
2248
|
+
})) : (d = ls(a, e, s), a.msgModel = d, d.startx && d.stopx && i.length > 0 && i.forEach((E) => {
|
|
2247
2249
|
if (o = E, d.startx === d.stopx) {
|
|
2248
2250
|
const g = e.get(a.from), T = e.get(a.to);
|
|
2249
2251
|
o.from = v.getMin(
|
|
@@ -2260,23 +2262,23 @@ var os = /* @__PURE__ */ u(async function(t, e, c) {
|
|
|
2260
2262
|
}));
|
|
2261
2263
|
}
|
|
2262
2264
|
return x.activations = [], G.debug("Loop type widths:", r), r;
|
|
2263
|
-
}, "calculateLoopBounds"),
|
|
2265
|
+
}, "calculateLoopBounds"), ds = {
|
|
2264
2266
|
bounds: x,
|
|
2265
2267
|
drawActors: Bt,
|
|
2266
2268
|
drawActorsPopup: ie,
|
|
2267
2269
|
setConf: ne,
|
|
2268
|
-
draw:
|
|
2269
|
-
},
|
|
2270
|
-
parser:
|
|
2270
|
+
draw: ns
|
|
2271
|
+
}, fs = {
|
|
2272
|
+
parser: Se,
|
|
2271
2273
|
get db() {
|
|
2272
|
-
return new
|
|
2274
|
+
return new Ce();
|
|
2273
2275
|
},
|
|
2274
|
-
renderer:
|
|
2275
|
-
styles:
|
|
2276
|
+
renderer: ds,
|
|
2277
|
+
styles: Be,
|
|
2276
2278
|
init: /* @__PURE__ */ u((t) => {
|
|
2277
2279
|
t.sequence || (t.sequence = {}), t.wrap && (t.sequence.wrap = t.wrap, be({ sequence: { wrap: t.wrap } }));
|
|
2278
2280
|
}, "init")
|
|
2279
2281
|
};
|
|
2280
2282
|
export {
|
|
2281
|
-
|
|
2283
|
+
fs as diagram
|
|
2282
2284
|
};
|