@kong-ui-public/documentation 1.4.17-pr.2665.525593492.0 → 1.4.17
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-BCsiP0lE-DJBdvZNn.js +151 -0
- package/dist/{_baseUniq-SAfYgIkf-buEvGj9H.js → _baseUniq-CsvgMmt0-CCBG5z_B.js} +165 -165
- package/dist/arc-DYb5Ak6k-js8YHzj6.js +83 -0
- package/dist/architecture-U656AL7Q-LZu-yAfZ-CQD6AyxA.js +5 -0
- package/dist/architectureDiagram-KFL7JDKH-BK_an8l5-D20M_MXF.js +4665 -0
- package/dist/blockDiagram-ZYB65J3Q-C0KtqCEe-pwEm3-ie.js +2265 -0
- package/dist/{c4Diagram-6F5ED5ID-D5yqWyf0-DzlUmurv.js → c4Diagram-AAMF2YG6-DYHWlrmc-C6NWDsTV.js} +4 -4
- package/dist/{channel-bVcNKbrJ-NqcPkfCx.js → channel-3QVQMCTA-BwyrTaJi.js} +1 -1
- package/dist/{chunk-TMUBEWPD-BRIzn5gH-alZ9Sg3f.js → chunk-ANTBXLJU-BhR1MDfy-Bec7kb00.js} +1 -1
- package/dist/{chunk-KFBOBJHC-nixdujtH-CrTZo7r-.js → chunk-FHKO5MBM-z_nuC8Da-Dge2Nbr5.js} +1 -1
- package/dist/chunk-GLLZNHP4-DgwBbAOT-BUrsAxH8.js +19 -0
- package/dist/chunk-JBRWN2VN-CHua2TSC-BYWS19Oz.js +1374 -0
- package/dist/chunk-LXBSTHXV-CoED0jHL-Cc8w4JL1.js +1382 -0
- package/dist/chunk-NRVI72HA-DxsqT4Dt-Bo_vu9qn.js +20 -0
- package/dist/{chunk-ASOPGD6M-B5bA_saK-BiT875Ve.js → chunk-OMD6QJNC-_VI6zVGr-Bb4P7zNG.js} +1 -1
- package/dist/chunk-WVR4S24B-C4HIWky3-CkJ0DHSJ.js +8 -0
- package/dist/classDiagram-3BZAVTQC-DrmNjTt_-CS9fxl_R.js +16 -0
- package/dist/classDiagram-v2-QTMF73CY-DrmNjTt_-CS9fxl_R.js +16 -0
- package/dist/{clone-_5SW34SG-DOuhA6mG.js → clone-C0dvnYv6-BozdSvey.js} +1 -1
- package/dist/cytoscape.esm-CjI2IsL8-DYIumutE.js +18721 -0
- package/dist/{dagre-4EVJKHTY-CcAruc30-B3UMlKNl.js → dagre-2BBEFEWP-Bh_bYuL8-Cej31YXN.js} +53 -53
- package/dist/defaultLocale-D7EN2tov-CK6dgF7Y.js +171 -0
- package/dist/diagram-4IRLE6MV-34TaesxP-XfF-gcP2.js +533 -0
- package/dist/diagram-GUPCWM2R-Cr4-5_uX-B8mxM1Uc.js +143 -0
- package/dist/diagram-RP2FKANI-COpvHjzI-C-_mZxuk.js +221 -0
- package/dist/documentation.es.js +1 -1
- package/dist/documentation.umd.js +860 -399
- package/dist/erDiagram-HZWUO2LU-Cu2MerRS-KziSgDQg.js +840 -0
- package/dist/flowDiagram-THRYKUMA-CfrQTB8C-BYn8LF24.js +1627 -0
- package/dist/ganttDiagram-WV7ZQ7D5-gkieebY_-C7YOriZ4.js +2504 -0
- package/dist/gitGraph-F6HP7TQM-suE5ufvy-CQDQV2yP.js +5 -0
- package/dist/{gitGraphDiagram-NRZ2UAAF-B-t90-9e-BkGPAEnk.js → gitGraphDiagram-OJR772UL-CYA7EIoU-Bqc1qZk4.js} +103 -103
- package/dist/{graph-BYZMvqpu-BXRs5843.js → graph-B_1gOUDz-Dm6REFzZ.js} +2 -2
- package/dist/{index-CMZig9xg.js → index-BDD0CD9m.js} +9834 -9540
- package/dist/info-NVLQJR56-CdsHk-Jf-tf8zb8tD.js +5 -0
- package/dist/infoDiagram-6WOFNB3A-ajp3t5Lm-D80dGo5F.js +24 -0
- package/dist/{journeyDiagram-G5WM74LC-BE7U42Ad-y6YegUqL.js → journeyDiagram-FFXJYRFH-kgCEEPLo-CakI8CyJ.js} +357 -333
- package/dist/{kanban-definition-QRCXZQQD-C-5-UNRm-BOYYKTAB.js → kanban-definition-KOZQBZVT-CmM4CHe6-rjuufCiO.js} +75 -73
- package/dist/{katex-Qk2jHgyB-_qyJ_37x.js → katex-C0Lgw_Sx-CbX2I1cQ.js} +1864 -1814
- package/dist/{layout-BHI4imdk-CESYC-il.js → layout-9vIfpCf3-FfABA43y.js} +81 -81
- package/dist/linear-C-k9vokG-Md9dfBfB.js +259 -0
- package/dist/{mermaid-parser.core-Ce96PX3Q-CV9ue_xr.js → mermaid-parser.core-DHL9WXVx-DeKF3RZx.js} +4080 -3590
- package/dist/{mindmap-definition-GWI6TPTV-C98Syvj2-DUWC1UH5.js → mindmap-definition-LNHGMQRG-BsypuFYj-DSVrvuog.js} +1112 -1100
- package/dist/packet-BFZMPI3H-BcK9kJ-B-BxxCPBGn.js +5 -0
- package/dist/pie-7BOR55EZ-Vt5px0F3-BM7egbMh.js +5 -0
- package/dist/pieDiagram-DBDJKBY4-Bam6gKTi-BOqYeC6c.js +161 -0
- package/dist/{quadrantDiagram-OS5C2QUG-M57vVPSx-BRx-dMGe.js → quadrantDiagram-YPSRARAO-CJwMw09m-CN2OO-Le.js} +2 -2
- package/dist/radar-NHE76QYJ-Br11XWE4-4RP4MPFA.js +5 -0
- package/dist/requirementDiagram-EGVEC5DT-DkRytT0X-C2zigskn.js +850 -0
- package/dist/{sankeyDiagram-Y46BX6SQ-D6EdYPdp-D2Qzxmhx.js → sankeyDiagram-HRAUVNP4-08s1UHMk-2j8idkNs.js} +198 -193
- package/dist/{sequenceDiagram-G6AWOVSC-B171TAb1-KCpoI-Ck.js → sequenceDiagram-WFGC7UMF-6_s7-CN7-D-oTpLFJ.js} +1001 -992
- package/dist/stateDiagram-UUKSUZ4H-eWajY90l-BlM614AN.js +263 -0
- package/dist/stateDiagram-v2-EYPG3UTE-Dh7Ngu1O-YVMiocHE.js +16 -0
- package/dist/style.css +1 -1
- package/dist/timeline-definition-3HZDQTIS-4TPEOhE8-fDDLVlO8.js +799 -0
- package/dist/treemap-KMMF4GRG-nu7WEuPi-C1YG24W8.js +5 -0
- package/dist/{xychartDiagram-6QU3TZC5-CqbTSF5W-CUbJ50KT.js → xychartDiagram-FDP5SA34-BbtKlU7T-D1BI5nWs.js} +459 -423
- package/package.json +4 -4
- package/dist/_basePickBy-zlkqRmFy-D6w9JBLu.js +0 -151
- package/dist/arc-CK9P6CkJ-DVgfRhzX.js +0 -83
- package/dist/architecture-I3QFYML2-DJzmbE4M-C3v7Cpg0.js +0 -5
- package/dist/architectureDiagram-UYN6MBPD-DkZdgpXi-BTThTJ0F.js +0 -4592
- package/dist/blockDiagram-ZHA2E4KO-DnCMGCMN-DBXa-baO.js +0 -2247
- package/dist/chunk-5HRBRIJM-BjQ8go1b-CJmT3AYe.js +0 -24
- package/dist/chunk-7U56Z5CX-awhAxjZ0-Cs_UWlwk.js +0 -1213
- package/dist/chunk-T2TOU4HS-DqOVhIzl-O3PUl7Qp.js +0 -1301
- package/dist/classDiagram-LNE6IOMH-fQzyXfo--DYLd8UQH.js +0 -14
- package/dist/classDiagram-v2-MQ7JQ4JX-fQzyXfo--DYLd8UQH.js +0 -14
- package/dist/cytoscape.esm-DAyNQ0qu-i5PnoWfE.js +0 -16110
- package/dist/diagram-QW4FP2JN-DZT_0aFO-SYzM51ke.js +0 -126
- package/dist/erDiagram-6RL3IURR-BfgUC5jv-BrebVho-.js +0 -937
- package/dist/flowDiagram-7ASYPVHJ-Bo9CnsE7-Ds2vln_y.js +0 -1484
- package/dist/ganttDiagram-NTVNEXSI-8E9hjd6N-fR_cmeDc.js +0 -2491
- package/dist/gitGraph-YCYPL57B-BnErPIwo-DXUTceC1.js +0 -5
- package/dist/info-46DW6VJ7-DPpbx_vA-omPXKuBd.js +0 -5
- package/dist/infoDiagram-A4XQUW5V-Bo9uoOcA-CnlgI27B.js +0 -22
- package/dist/linear-C2PheBya-BHVXLcru.js +0 -423
- package/dist/packet-W2GHVCYJ-BLiQbm7T-BD1xX8XM.js +0 -5
- package/dist/pie-BEWT4RHE-D3Mbo3mT-B4n38n6N.js +0 -5
- package/dist/pieDiagram-YF2LJOPJ-BJV27s9B-DA7hy5wG.js +0 -161
- package/dist/requirementDiagram-MIRIMTAZ-D0KDg7rf-CRMUyo68.js +0 -768
- package/dist/stateDiagram-MAYHULR4-D7FUnT9_-aCApnrI4.js +0 -268
- package/dist/stateDiagram-v2-4JROLMXI-Cyc74STT-D-7hwTRo.js +0 -14
- package/dist/timeline-definition-U7ZMHBDA-Bw-dp1yf-C01CsNUU.js +0 -804
|
@@ -1,1213 +0,0 @@
|
|
|
1
|
-
import { u as xe, b as $e } from "./chunk-5HRBRIJM-BjQ8go1b-CJmT3AYe.js";
|
|
2
|
-
import { _ as i, aj as De, ak as ve, a5 as Ce, a6 as Le, a8 as Ae, a7 as Ie, l as k, g as v, an as we, ao as Re, ag as M, aq as Ne, bj as Oe } from "./index-CMZig9xg.js";
|
|
3
|
-
var It = function() {
|
|
4
|
-
var t = /* @__PURE__ */ i(function(L, a, n, y) {
|
|
5
|
-
for (n = n || {}, y = L.length; y--; n[L[y]] = a) ;
|
|
6
|
-
return n;
|
|
7
|
-
}, "o"), e = [1, 2], l = [1, 3], o = [1, 4], r = [2, 4], h = [1, 9], p = [1, 11], g = [1, 16], u = [1, 17], m = [1, 18], _ = [1, 19], A = [1, 32], H = [1, 20], P = [1, 21], I = [1, 22], d = [1, 23], C = [1, 24], w = [1, 26], Y = [1, 27], G = [1, 28], N = [1, 29], O = [1, 30], it = [1, 31], rt = [1, 34], at = [1, 35], nt = [1, 36], ot = [1, 37], q = [1, 33], f = [1, 4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], lt = [1, 4, 5, 14, 15, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], Gt = [4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], Et = {
|
|
8
|
-
trace: /* @__PURE__ */ i(function() {
|
|
9
|
-
}, "trace"),
|
|
10
|
-
yy: {},
|
|
11
|
-
symbols_: { error: 2, start: 3, SPACE: 4, NL: 5, SD: 6, document: 7, line: 8, statement: 9, classDefStatement: 10, styleStatement: 11, cssClassStatement: 12, idStatement: 13, DESCR: 14, "-->": 15, HIDE_EMPTY: 16, scale: 17, WIDTH: 18, COMPOSIT_STATE: 19, STRUCT_START: 20, STRUCT_STOP: 21, STATE_DESCR: 22, AS: 23, ID: 24, FORK: 25, JOIN: 26, CHOICE: 27, CONCURRENT: 28, note: 29, notePosition: 30, NOTE_TEXT: 31, direction: 32, acc_title: 33, acc_title_value: 34, acc_descr: 35, acc_descr_value: 36, acc_descr_multiline_value: 37, classDef: 38, CLASSDEF_ID: 39, CLASSDEF_STYLEOPTS: 40, DEFAULT: 41, style: 42, STYLE_IDS: 43, STYLEDEF_STYLEOPTS: 44, class: 45, CLASSENTITY_IDS: 46, STYLECLASS: 47, direction_tb: 48, direction_bt: 49, direction_rl: 50, direction_lr: 51, eol: 52, ";": 53, EDGE_STATE: 54, STYLE_SEPARATOR: 55, left_of: 56, right_of: 57, $accept: 0, $end: 1 },
|
|
12
|
-
terminals_: { 2: "error", 4: "SPACE", 5: "NL", 6: "SD", 14: "DESCR", 15: "-->", 16: "HIDE_EMPTY", 17: "scale", 18: "WIDTH", 19: "COMPOSIT_STATE", 20: "STRUCT_START", 21: "STRUCT_STOP", 22: "STATE_DESCR", 23: "AS", 24: "ID", 25: "FORK", 26: "JOIN", 27: "CHOICE", 28: "CONCURRENT", 29: "note", 31: "NOTE_TEXT", 33: "acc_title", 34: "acc_title_value", 35: "acc_descr", 36: "acc_descr_value", 37: "acc_descr_multiline_value", 38: "classDef", 39: "CLASSDEF_ID", 40: "CLASSDEF_STYLEOPTS", 41: "DEFAULT", 42: "style", 43: "STYLE_IDS", 44: "STYLEDEF_STYLEOPTS", 45: "class", 46: "CLASSENTITY_IDS", 47: "STYLECLASS", 48: "direction_tb", 49: "direction_bt", 50: "direction_rl", 51: "direction_lr", 53: ";", 54: "EDGE_STATE", 55: "STYLE_SEPARATOR", 56: "left_of", 57: "right_of" },
|
|
13
|
-
productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [8, 1], [8, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 2], [9, 3], [9, 4], [9, 1], [9, 2], [9, 1], [9, 4], [9, 3], [9, 6], [9, 1], [9, 1], [9, 1], [9, 1], [9, 4], [9, 4], [9, 1], [9, 2], [9, 2], [9, 1], [10, 3], [10, 3], [11, 3], [12, 3], [32, 1], [32, 1], [32, 1], [32, 1], [52, 1], [52, 1], [13, 1], [13, 1], [13, 3], [13, 3], [30, 1], [30, 1]],
|
|
14
|
-
performAction: /* @__PURE__ */ i(function(L, a, n, y, S, s, T) {
|
|
15
|
-
var c = s.length - 1;
|
|
16
|
-
switch (S) {
|
|
17
|
-
case 3:
|
|
18
|
-
return y.setRootDoc(s[c]), s[c];
|
|
19
|
-
case 4:
|
|
20
|
-
this.$ = [];
|
|
21
|
-
break;
|
|
22
|
-
case 5:
|
|
23
|
-
s[c] != "nl" && (s[c - 1].push(s[c]), this.$ = s[c - 1]);
|
|
24
|
-
break;
|
|
25
|
-
case 6:
|
|
26
|
-
case 7:
|
|
27
|
-
this.$ = s[c];
|
|
28
|
-
break;
|
|
29
|
-
case 8:
|
|
30
|
-
this.$ = "nl";
|
|
31
|
-
break;
|
|
32
|
-
case 12:
|
|
33
|
-
this.$ = s[c];
|
|
34
|
-
break;
|
|
35
|
-
case 13:
|
|
36
|
-
const X = s[c - 1];
|
|
37
|
-
X.description = y.trimColon(s[c]), this.$ = X;
|
|
38
|
-
break;
|
|
39
|
-
case 14:
|
|
40
|
-
this.$ = { stmt: "relation", state1: s[c - 2], state2: s[c] };
|
|
41
|
-
break;
|
|
42
|
-
case 15:
|
|
43
|
-
const xt = y.trimColon(s[c]);
|
|
44
|
-
this.$ = { stmt: "relation", state1: s[c - 3], state2: s[c - 1], description: xt };
|
|
45
|
-
break;
|
|
46
|
-
case 19:
|
|
47
|
-
this.$ = { stmt: "state", id: s[c - 3], type: "default", description: "", doc: s[c - 1] };
|
|
48
|
-
break;
|
|
49
|
-
case 20:
|
|
50
|
-
var z = s[c], J = s[c - 2].trim();
|
|
51
|
-
if (s[c].match(":")) {
|
|
52
|
-
var ht = s[c].split(":");
|
|
53
|
-
z = ht[0], J = [J, ht[1]];
|
|
54
|
-
}
|
|
55
|
-
this.$ = { stmt: "state", id: z, type: "default", description: J };
|
|
56
|
-
break;
|
|
57
|
-
case 21:
|
|
58
|
-
this.$ = { stmt: "state", id: s[c - 3], type: "default", description: s[c - 5], doc: s[c - 1] };
|
|
59
|
-
break;
|
|
60
|
-
case 22:
|
|
61
|
-
this.$ = { stmt: "state", id: s[c], type: "fork" };
|
|
62
|
-
break;
|
|
63
|
-
case 23:
|
|
64
|
-
this.$ = { stmt: "state", id: s[c], type: "join" };
|
|
65
|
-
break;
|
|
66
|
-
case 24:
|
|
67
|
-
this.$ = { stmt: "state", id: s[c], type: "choice" };
|
|
68
|
-
break;
|
|
69
|
-
case 25:
|
|
70
|
-
this.$ = { stmt: "state", id: y.getDividerId(), type: "divider" };
|
|
71
|
-
break;
|
|
72
|
-
case 26:
|
|
73
|
-
this.$ = { stmt: "state", id: s[c - 1].trim(), note: { position: s[c - 2].trim(), text: s[c].trim() } };
|
|
74
|
-
break;
|
|
75
|
-
case 29:
|
|
76
|
-
this.$ = s[c].trim(), y.setAccTitle(this.$);
|
|
77
|
-
break;
|
|
78
|
-
case 30:
|
|
79
|
-
case 31:
|
|
80
|
-
this.$ = s[c].trim(), y.setAccDescription(this.$);
|
|
81
|
-
break;
|
|
82
|
-
case 32:
|
|
83
|
-
case 33:
|
|
84
|
-
this.$ = { stmt: "classDef", id: s[c - 1].trim(), classes: s[c].trim() };
|
|
85
|
-
break;
|
|
86
|
-
case 34:
|
|
87
|
-
this.$ = { stmt: "style", id: s[c - 1].trim(), styleClass: s[c].trim() };
|
|
88
|
-
break;
|
|
89
|
-
case 35:
|
|
90
|
-
this.$ = { stmt: "applyClass", id: s[c - 1].trim(), styleClass: s[c].trim() };
|
|
91
|
-
break;
|
|
92
|
-
case 36:
|
|
93
|
-
y.setDirection("TB"), this.$ = { stmt: "dir", value: "TB" };
|
|
94
|
-
break;
|
|
95
|
-
case 37:
|
|
96
|
-
y.setDirection("BT"), this.$ = { stmt: "dir", value: "BT" };
|
|
97
|
-
break;
|
|
98
|
-
case 38:
|
|
99
|
-
y.setDirection("RL"), this.$ = { stmt: "dir", value: "RL" };
|
|
100
|
-
break;
|
|
101
|
-
case 39:
|
|
102
|
-
y.setDirection("LR"), this.$ = { stmt: "dir", value: "LR" };
|
|
103
|
-
break;
|
|
104
|
-
case 42:
|
|
105
|
-
case 43:
|
|
106
|
-
this.$ = { stmt: "state", id: s[c].trim(), type: "default", description: "" };
|
|
107
|
-
break;
|
|
108
|
-
case 44:
|
|
109
|
-
this.$ = { stmt: "state", id: s[c - 2].trim(), classes: [s[c].trim()], type: "default", description: "" };
|
|
110
|
-
break;
|
|
111
|
-
case 45:
|
|
112
|
-
this.$ = { stmt: "state", id: s[c - 2].trim(), classes: [s[c].trim()], type: "default", description: "" };
|
|
113
|
-
break;
|
|
114
|
-
}
|
|
115
|
-
}, "anonymous"),
|
|
116
|
-
table: [{ 3: 1, 4: e, 5: l, 6: o }, { 1: [3] }, { 3: 5, 4: e, 5: l, 6: o }, { 3: 6, 4: e, 5: l, 6: o }, t([1, 4, 5, 16, 17, 19, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], r, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: h, 5: p, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: g, 17: u, 19: m, 22: _, 24: A, 25: H, 26: P, 27: I, 28: d, 29: C, 32: 25, 33: w, 35: Y, 37: G, 38: N, 42: O, 45: it, 48: rt, 49: at, 50: nt, 51: ot, 54: q }, t(f, [2, 5]), { 9: 38, 10: 12, 11: 13, 12: 14, 13: 15, 16: g, 17: u, 19: m, 22: _, 24: A, 25: H, 26: P, 27: I, 28: d, 29: C, 32: 25, 33: w, 35: Y, 37: G, 38: N, 42: O, 45: it, 48: rt, 49: at, 50: nt, 51: ot, 54: q }, t(f, [2, 7]), t(f, [2, 8]), t(f, [2, 9]), t(f, [2, 10]), t(f, [2, 11]), t(f, [2, 12], { 14: [1, 39], 15: [1, 40] }), t(f, [2, 16]), { 18: [1, 41] }, t(f, [2, 18], { 20: [1, 42] }), { 23: [1, 43] }, t(f, [2, 22]), t(f, [2, 23]), t(f, [2, 24]), t(f, [2, 25]), { 30: 44, 31: [1, 45], 56: [1, 46], 57: [1, 47] }, t(f, [2, 28]), { 34: [1, 48] }, { 36: [1, 49] }, t(f, [2, 31]), { 39: [1, 50], 41: [1, 51] }, { 43: [1, 52] }, { 46: [1, 53] }, t(lt, [2, 42], { 55: [1, 54] }), t(lt, [2, 43], { 55: [1, 55] }), t(f, [2, 36]), t(f, [2, 37]), t(f, [2, 38]), t(f, [2, 39]), t(f, [2, 6]), t(f, [2, 13]), { 13: 56, 24: A, 54: q }, t(f, [2, 17]), t(Gt, r, { 7: 57 }), { 24: [1, 58] }, { 24: [1, 59] }, { 23: [1, 60] }, { 24: [2, 46] }, { 24: [2, 47] }, t(f, [2, 29]), t(f, [2, 30]), { 40: [1, 61] }, { 40: [1, 62] }, { 44: [1, 63] }, { 47: [1, 64] }, { 24: [1, 65] }, { 24: [1, 66] }, t(f, [2, 14], { 14: [1, 67] }), { 4: h, 5: p, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: g, 17: u, 19: m, 21: [1, 68], 22: _, 24: A, 25: H, 26: P, 27: I, 28: d, 29: C, 32: 25, 33: w, 35: Y, 37: G, 38: N, 42: O, 45: it, 48: rt, 49: at, 50: nt, 51: ot, 54: q }, t(f, [2, 20], { 20: [1, 69] }), { 31: [1, 70] }, { 24: [1, 71] }, t(f, [2, 32]), t(f, [2, 33]), t(f, [2, 34]), t(f, [2, 35]), t(lt, [2, 44]), t(lt, [2, 45]), t(f, [2, 15]), t(f, [2, 19]), t(Gt, r, { 7: 72 }), t(f, [2, 26]), t(f, [2, 27]), { 4: h, 5: p, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: g, 17: u, 19: m, 21: [1, 73], 22: _, 24: A, 25: H, 26: P, 27: I, 28: d, 29: C, 32: 25, 33: w, 35: Y, 37: G, 38: N, 42: O, 45: it, 48: rt, 49: at, 50: nt, 51: ot, 54: q }, t(f, [2, 21])],
|
|
117
|
-
defaultActions: { 5: [2, 1], 6: [2, 2], 46: [2, 46], 47: [2, 47] },
|
|
118
|
-
parseError: /* @__PURE__ */ i(function(L, a) {
|
|
119
|
-
if (a.recoverable)
|
|
120
|
-
this.trace(L);
|
|
121
|
-
else {
|
|
122
|
-
var n = new Error(L);
|
|
123
|
-
throw n.hash = a, n;
|
|
124
|
-
}
|
|
125
|
-
}, "parseError"),
|
|
126
|
-
parse: /* @__PURE__ */ i(function(L) {
|
|
127
|
-
var a = this, n = [0], y = [], S = [null], s = [], T = this.table, c = "", z = 0, J = 0, ht = 2, X = 1, xt = s.slice.call(arguments, 1), b = Object.create(this.lexer), j = { yy: {} };
|
|
128
|
-
for (var $t in this.yy)
|
|
129
|
-
Object.prototype.hasOwnProperty.call(this.yy, $t) && (j.yy[$t] = this.yy[$t]);
|
|
130
|
-
b.setInput(L, j.yy), j.yy.lexer = b, j.yy.parser = this, typeof b.yylloc > "u" && (b.yylloc = {});
|
|
131
|
-
var Dt = b.yylloc;
|
|
132
|
-
s.push(Dt);
|
|
133
|
-
var Te = b.options && b.options.ranges;
|
|
134
|
-
typeof j.yy.parseError == "function" ? this.parseError = j.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
135
|
-
function Ee($) {
|
|
136
|
-
n.length = n.length - 2 * $, S.length = S.length - $, s.length = s.length - $;
|
|
137
|
-
}
|
|
138
|
-
i(Ee, "popStack");
|
|
139
|
-
function zt() {
|
|
140
|
-
var $;
|
|
141
|
-
return $ = y.pop() || b.lex() || X, typeof $ != "number" && ($ instanceof Array && (y = $, $ = y.pop()), $ = a.symbols_[$] || $), $;
|
|
142
|
-
}
|
|
143
|
-
i(zt, "lex");
|
|
144
|
-
for (var E, U, D, vt, W = {}, ut, R, jt, dt; ; ) {
|
|
145
|
-
if (U = n[n.length - 1], this.defaultActions[U] ? D = this.defaultActions[U] : ((E === null || typeof E > "u") && (E = zt()), D = T[U] && T[U][E]), typeof D > "u" || !D.length || !D[0]) {
|
|
146
|
-
var Ct = "";
|
|
147
|
-
dt = [];
|
|
148
|
-
for (ut in T[U])
|
|
149
|
-
this.terminals_[ut] && ut > ht && dt.push("'" + this.terminals_[ut] + "'");
|
|
150
|
-
b.showPosition ? Ct = "Parse error on line " + (z + 1) + `:
|
|
151
|
-
` + b.showPosition() + `
|
|
152
|
-
Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Ct = "Parse error on line " + (z + 1) + ": Unexpected " + (E == X ? "end of input" : "'" + (this.terminals_[E] || E) + "'"), this.parseError(Ct, {
|
|
153
|
-
text: b.match,
|
|
154
|
-
token: this.terminals_[E] || E,
|
|
155
|
-
line: b.yylineno,
|
|
156
|
-
loc: Dt,
|
|
157
|
-
expected: dt
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
if (D[0] instanceof Array && D.length > 1)
|
|
161
|
-
throw new Error("Parse Error: multiple actions possible at state: " + U + ", token: " + E);
|
|
162
|
-
switch (D[0]) {
|
|
163
|
-
case 1:
|
|
164
|
-
n.push(E), S.push(b.yytext), s.push(b.yylloc), n.push(D[1]), E = null, J = b.yyleng, c = b.yytext, z = b.yylineno, Dt = b.yylloc;
|
|
165
|
-
break;
|
|
166
|
-
case 2:
|
|
167
|
-
if (R = this.productions_[D[1]][1], W.$ = S[S.length - R], W._$ = {
|
|
168
|
-
first_line: s[s.length - (R || 1)].first_line,
|
|
169
|
-
last_line: s[s.length - 1].last_line,
|
|
170
|
-
first_column: s[s.length - (R || 1)].first_column,
|
|
171
|
-
last_column: s[s.length - 1].last_column
|
|
172
|
-
}, Te && (W._$.range = [
|
|
173
|
-
s[s.length - (R || 1)].range[0],
|
|
174
|
-
s[s.length - 1].range[1]
|
|
175
|
-
]), vt = this.performAction.apply(W, [
|
|
176
|
-
c,
|
|
177
|
-
J,
|
|
178
|
-
z,
|
|
179
|
-
j.yy,
|
|
180
|
-
D[1],
|
|
181
|
-
S,
|
|
182
|
-
s
|
|
183
|
-
].concat(xt)), typeof vt < "u")
|
|
184
|
-
return vt;
|
|
185
|
-
R && (n = n.slice(0, -1 * R * 2), S = S.slice(0, -1 * R), s = s.slice(0, -1 * R)), n.push(this.productions_[D[1]][0]), S.push(W.$), s.push(W._$), jt = T[n[n.length - 2]][n[n.length - 1]], n.push(jt);
|
|
186
|
-
break;
|
|
187
|
-
case 3:
|
|
188
|
-
return !0;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
return !0;
|
|
192
|
-
}, "parse")
|
|
193
|
-
}, ke = /* @__PURE__ */ function() {
|
|
194
|
-
var L = {
|
|
195
|
-
EOF: 1,
|
|
196
|
-
parseError: /* @__PURE__ */ i(function(a, n) {
|
|
197
|
-
if (this.yy.parser)
|
|
198
|
-
this.yy.parser.parseError(a, n);
|
|
199
|
-
else
|
|
200
|
-
throw new Error(a);
|
|
201
|
-
}, "parseError"),
|
|
202
|
-
// resets the lexer, sets new input
|
|
203
|
-
setInput: /* @__PURE__ */ i(function(a, n) {
|
|
204
|
-
return this.yy = n || this.yy || {}, this._input = a, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
205
|
-
first_line: 1,
|
|
206
|
-
first_column: 0,
|
|
207
|
-
last_line: 1,
|
|
208
|
-
last_column: 0
|
|
209
|
-
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
210
|
-
}, "setInput"),
|
|
211
|
-
// consumes and returns one char from the input
|
|
212
|
-
input: /* @__PURE__ */ i(function() {
|
|
213
|
-
var a = this._input[0];
|
|
214
|
-
this.yytext += a, this.yyleng++, this.offset++, this.match += a, this.matched += a;
|
|
215
|
-
var n = a.match(/(?:\r\n?|\n).*/g);
|
|
216
|
-
return n ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), a;
|
|
217
|
-
}, "input"),
|
|
218
|
-
// unshifts one char (or a string) into the input
|
|
219
|
-
unput: /* @__PURE__ */ i(function(a) {
|
|
220
|
-
var n = a.length, y = a.split(/(?:\r\n?|\n)/g);
|
|
221
|
-
this._input = a + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
|
|
222
|
-
var S = this.match.split(/(?:\r\n?|\n)/g);
|
|
223
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), y.length - 1 && (this.yylineno -= y.length - 1);
|
|
224
|
-
var s = this.yylloc.range;
|
|
225
|
-
return this.yylloc = {
|
|
226
|
-
first_line: this.yylloc.first_line,
|
|
227
|
-
last_line: this.yylineno + 1,
|
|
228
|
-
first_column: this.yylloc.first_column,
|
|
229
|
-
last_column: y ? (y.length === S.length ? this.yylloc.first_column : 0) + S[S.length - y.length].length - y[0].length : this.yylloc.first_column - n
|
|
230
|
-
}, this.options.ranges && (this.yylloc.range = [s[0], s[0] + this.yyleng - n]), this.yyleng = this.yytext.length, this;
|
|
231
|
-
}, "unput"),
|
|
232
|
-
// When called from action, caches matched text and appends it on next action
|
|
233
|
-
more: /* @__PURE__ */ i(function() {
|
|
234
|
-
return this._more = !0, this;
|
|
235
|
-
}, "more"),
|
|
236
|
-
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
|
|
237
|
-
reject: /* @__PURE__ */ i(function() {
|
|
238
|
-
if (this.options.backtrack_lexer)
|
|
239
|
-
this._backtrack = !0;
|
|
240
|
-
else
|
|
241
|
-
return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
242
|
-
` + this.showPosition(), {
|
|
243
|
-
text: "",
|
|
244
|
-
token: null,
|
|
245
|
-
line: this.yylineno
|
|
246
|
-
});
|
|
247
|
-
return this;
|
|
248
|
-
}, "reject"),
|
|
249
|
-
// retain first n characters of the match
|
|
250
|
-
less: /* @__PURE__ */ i(function(a) {
|
|
251
|
-
this.unput(this.match.slice(a));
|
|
252
|
-
}, "less"),
|
|
253
|
-
// displays already matched input, i.e. for error messages
|
|
254
|
-
pastInput: /* @__PURE__ */ i(function() {
|
|
255
|
-
var a = this.matched.substr(0, this.matched.length - this.match.length);
|
|
256
|
-
return (a.length > 20 ? "..." : "") + a.substr(-20).replace(/\n/g, "");
|
|
257
|
-
}, "pastInput"),
|
|
258
|
-
// displays upcoming input, i.e. for error messages
|
|
259
|
-
upcomingInput: /* @__PURE__ */ i(function() {
|
|
260
|
-
var a = this.match;
|
|
261
|
-
return a.length < 20 && (a += this._input.substr(0, 20 - a.length)), (a.substr(0, 20) + (a.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
262
|
-
}, "upcomingInput"),
|
|
263
|
-
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
264
|
-
showPosition: /* @__PURE__ */ i(function() {
|
|
265
|
-
var a = this.pastInput(), n = new Array(a.length + 1).join("-");
|
|
266
|
-
return a + this.upcomingInput() + `
|
|
267
|
-
` + n + "^";
|
|
268
|
-
}, "showPosition"),
|
|
269
|
-
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
270
|
-
test_match: /* @__PURE__ */ i(function(a, n) {
|
|
271
|
-
var y, S, s;
|
|
272
|
-
if (this.options.backtrack_lexer && (s = {
|
|
273
|
-
yylineno: this.yylineno,
|
|
274
|
-
yylloc: {
|
|
275
|
-
first_line: this.yylloc.first_line,
|
|
276
|
-
last_line: this.last_line,
|
|
277
|
-
first_column: this.yylloc.first_column,
|
|
278
|
-
last_column: this.yylloc.last_column
|
|
279
|
-
},
|
|
280
|
-
yytext: this.yytext,
|
|
281
|
-
match: this.match,
|
|
282
|
-
matches: this.matches,
|
|
283
|
-
matched: this.matched,
|
|
284
|
-
yyleng: this.yyleng,
|
|
285
|
-
offset: this.offset,
|
|
286
|
-
_more: this._more,
|
|
287
|
-
_input: this._input,
|
|
288
|
-
yy: this.yy,
|
|
289
|
-
conditionStack: this.conditionStack.slice(0),
|
|
290
|
-
done: this.done
|
|
291
|
-
}, this.options.ranges && (s.yylloc.range = this.yylloc.range.slice(0))), S = a[0].match(/(?:\r\n?|\n).*/g), S && (this.yylineno += S.length), this.yylloc = {
|
|
292
|
-
first_line: this.yylloc.last_line,
|
|
293
|
-
last_line: this.yylineno + 1,
|
|
294
|
-
first_column: this.yylloc.last_column,
|
|
295
|
-
last_column: S ? S[S.length - 1].length - S[S.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + a[0].length
|
|
296
|
-
}, this.yytext += a[0], this.match += a[0], this.matches = a, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(a[0].length), this.matched += a[0], y = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), y)
|
|
297
|
-
return y;
|
|
298
|
-
if (this._backtrack) {
|
|
299
|
-
for (var T in s)
|
|
300
|
-
this[T] = s[T];
|
|
301
|
-
return !1;
|
|
302
|
-
}
|
|
303
|
-
return !1;
|
|
304
|
-
}, "test_match"),
|
|
305
|
-
// return next match in input
|
|
306
|
-
next: /* @__PURE__ */ i(function() {
|
|
307
|
-
if (this.done)
|
|
308
|
-
return this.EOF;
|
|
309
|
-
this._input || (this.done = !0);
|
|
310
|
-
var a, n, y, S;
|
|
311
|
-
this._more || (this.yytext = "", this.match = "");
|
|
312
|
-
for (var s = this._currentRules(), T = 0; T < s.length; T++)
|
|
313
|
-
if (y = this._input.match(this.rules[s[T]]), y && (!n || y[0].length > n[0].length)) {
|
|
314
|
-
if (n = y, S = T, this.options.backtrack_lexer) {
|
|
315
|
-
if (a = this.test_match(y, s[T]), a !== !1)
|
|
316
|
-
return a;
|
|
317
|
-
if (this._backtrack) {
|
|
318
|
-
n = !1;
|
|
319
|
-
continue;
|
|
320
|
-
} else
|
|
321
|
-
return !1;
|
|
322
|
-
} else if (!this.options.flex)
|
|
323
|
-
break;
|
|
324
|
-
}
|
|
325
|
-
return n ? (a = this.test_match(n, s[S]), a !== !1 ? a : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
326
|
-
` + this.showPosition(), {
|
|
327
|
-
text: "",
|
|
328
|
-
token: null,
|
|
329
|
-
line: this.yylineno
|
|
330
|
-
});
|
|
331
|
-
}, "next"),
|
|
332
|
-
// return next match that has a token
|
|
333
|
-
lex: /* @__PURE__ */ i(function() {
|
|
334
|
-
var a = this.next();
|
|
335
|
-
return a || this.lex();
|
|
336
|
-
}, "lex"),
|
|
337
|
-
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
338
|
-
begin: /* @__PURE__ */ i(function(a) {
|
|
339
|
-
this.conditionStack.push(a);
|
|
340
|
-
}, "begin"),
|
|
341
|
-
// pop the previously active lexer condition state off the condition stack
|
|
342
|
-
popState: /* @__PURE__ */ i(function() {
|
|
343
|
-
var a = this.conditionStack.length - 1;
|
|
344
|
-
return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
345
|
-
}, "popState"),
|
|
346
|
-
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
347
|
-
_currentRules: /* @__PURE__ */ i(function() {
|
|
348
|
-
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
349
|
-
}, "_currentRules"),
|
|
350
|
-
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
351
|
-
topState: /* @__PURE__ */ i(function(a) {
|
|
352
|
-
return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
|
|
353
|
-
}, "topState"),
|
|
354
|
-
// alias for begin(condition)
|
|
355
|
-
pushState: /* @__PURE__ */ i(function(a) {
|
|
356
|
-
this.begin(a);
|
|
357
|
-
}, "pushState"),
|
|
358
|
-
// return the number of states currently on the stack
|
|
359
|
-
stateStackSize: /* @__PURE__ */ i(function() {
|
|
360
|
-
return this.conditionStack.length;
|
|
361
|
-
}, "stateStackSize"),
|
|
362
|
-
options: { "case-insensitive": !0 },
|
|
363
|
-
performAction: /* @__PURE__ */ i(function(a, n, y, S) {
|
|
364
|
-
switch (y) {
|
|
365
|
-
case 0:
|
|
366
|
-
return 41;
|
|
367
|
-
case 1:
|
|
368
|
-
return 48;
|
|
369
|
-
case 2:
|
|
370
|
-
return 49;
|
|
371
|
-
case 3:
|
|
372
|
-
return 50;
|
|
373
|
-
case 4:
|
|
374
|
-
return 51;
|
|
375
|
-
case 5:
|
|
376
|
-
break;
|
|
377
|
-
case 6:
|
|
378
|
-
break;
|
|
379
|
-
case 7:
|
|
380
|
-
return 5;
|
|
381
|
-
case 8:
|
|
382
|
-
break;
|
|
383
|
-
case 9:
|
|
384
|
-
break;
|
|
385
|
-
case 10:
|
|
386
|
-
break;
|
|
387
|
-
case 11:
|
|
388
|
-
break;
|
|
389
|
-
case 12:
|
|
390
|
-
return this.pushState("SCALE"), 17;
|
|
391
|
-
case 13:
|
|
392
|
-
return 18;
|
|
393
|
-
case 14:
|
|
394
|
-
this.popState();
|
|
395
|
-
break;
|
|
396
|
-
case 15:
|
|
397
|
-
return this.begin("acc_title"), 33;
|
|
398
|
-
case 16:
|
|
399
|
-
return this.popState(), "acc_title_value";
|
|
400
|
-
case 17:
|
|
401
|
-
return this.begin("acc_descr"), 35;
|
|
402
|
-
case 18:
|
|
403
|
-
return this.popState(), "acc_descr_value";
|
|
404
|
-
case 19:
|
|
405
|
-
this.begin("acc_descr_multiline");
|
|
406
|
-
break;
|
|
407
|
-
case 20:
|
|
408
|
-
this.popState();
|
|
409
|
-
break;
|
|
410
|
-
case 21:
|
|
411
|
-
return "acc_descr_multiline_value";
|
|
412
|
-
case 22:
|
|
413
|
-
return this.pushState("CLASSDEF"), 38;
|
|
414
|
-
case 23:
|
|
415
|
-
return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
|
|
416
|
-
case 24:
|
|
417
|
-
return this.popState(), this.pushState("CLASSDEFID"), 39;
|
|
418
|
-
case 25:
|
|
419
|
-
return this.popState(), 40;
|
|
420
|
-
case 26:
|
|
421
|
-
return this.pushState("CLASS"), 45;
|
|
422
|
-
case 27:
|
|
423
|
-
return this.popState(), this.pushState("CLASS_STYLE"), 46;
|
|
424
|
-
case 28:
|
|
425
|
-
return this.popState(), 47;
|
|
426
|
-
case 29:
|
|
427
|
-
return this.pushState("STYLE"), 42;
|
|
428
|
-
case 30:
|
|
429
|
-
return this.popState(), this.pushState("STYLEDEF_STYLES"), 43;
|
|
430
|
-
case 31:
|
|
431
|
-
return this.popState(), 44;
|
|
432
|
-
case 32:
|
|
433
|
-
return this.pushState("SCALE"), 17;
|
|
434
|
-
case 33:
|
|
435
|
-
return 18;
|
|
436
|
-
case 34:
|
|
437
|
-
this.popState();
|
|
438
|
-
break;
|
|
439
|
-
case 35:
|
|
440
|
-
this.pushState("STATE");
|
|
441
|
-
break;
|
|
442
|
-
case 36:
|
|
443
|
-
return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 25;
|
|
444
|
-
case 37:
|
|
445
|
-
return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 26;
|
|
446
|
-
case 38:
|
|
447
|
-
return this.popState(), n.yytext = n.yytext.slice(0, -10).trim(), 27;
|
|
448
|
-
case 39:
|
|
449
|
-
return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 25;
|
|
450
|
-
case 40:
|
|
451
|
-
return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 26;
|
|
452
|
-
case 41:
|
|
453
|
-
return this.popState(), n.yytext = n.yytext.slice(0, -10).trim(), 27;
|
|
454
|
-
case 42:
|
|
455
|
-
return 48;
|
|
456
|
-
case 43:
|
|
457
|
-
return 49;
|
|
458
|
-
case 44:
|
|
459
|
-
return 50;
|
|
460
|
-
case 45:
|
|
461
|
-
return 51;
|
|
462
|
-
case 46:
|
|
463
|
-
this.pushState("STATE_STRING");
|
|
464
|
-
break;
|
|
465
|
-
case 47:
|
|
466
|
-
return this.pushState("STATE_ID"), "AS";
|
|
467
|
-
case 48:
|
|
468
|
-
return this.popState(), "ID";
|
|
469
|
-
case 49:
|
|
470
|
-
this.popState();
|
|
471
|
-
break;
|
|
472
|
-
case 50:
|
|
473
|
-
return "STATE_DESCR";
|
|
474
|
-
case 51:
|
|
475
|
-
return 19;
|
|
476
|
-
case 52:
|
|
477
|
-
this.popState();
|
|
478
|
-
break;
|
|
479
|
-
case 53:
|
|
480
|
-
return this.popState(), this.pushState("struct"), 20;
|
|
481
|
-
case 54:
|
|
482
|
-
break;
|
|
483
|
-
case 55:
|
|
484
|
-
return this.popState(), 21;
|
|
485
|
-
case 56:
|
|
486
|
-
break;
|
|
487
|
-
case 57:
|
|
488
|
-
return this.begin("NOTE"), 29;
|
|
489
|
-
case 58:
|
|
490
|
-
return this.popState(), this.pushState("NOTE_ID"), 56;
|
|
491
|
-
case 59:
|
|
492
|
-
return this.popState(), this.pushState("NOTE_ID"), 57;
|
|
493
|
-
case 60:
|
|
494
|
-
this.popState(), this.pushState("FLOATING_NOTE");
|
|
495
|
-
break;
|
|
496
|
-
case 61:
|
|
497
|
-
return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS";
|
|
498
|
-
case 62:
|
|
499
|
-
break;
|
|
500
|
-
case 63:
|
|
501
|
-
return "NOTE_TEXT";
|
|
502
|
-
case 64:
|
|
503
|
-
return this.popState(), "ID";
|
|
504
|
-
case 65:
|
|
505
|
-
return this.popState(), this.pushState("NOTE_TEXT"), 24;
|
|
506
|
-
case 66:
|
|
507
|
-
return this.popState(), n.yytext = n.yytext.substr(2).trim(), 31;
|
|
508
|
-
case 67:
|
|
509
|
-
return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 31;
|
|
510
|
-
case 68:
|
|
511
|
-
return 6;
|
|
512
|
-
case 69:
|
|
513
|
-
return 6;
|
|
514
|
-
case 70:
|
|
515
|
-
return 16;
|
|
516
|
-
case 71:
|
|
517
|
-
return 54;
|
|
518
|
-
case 72:
|
|
519
|
-
return 24;
|
|
520
|
-
case 73:
|
|
521
|
-
return n.yytext = n.yytext.trim(), 14;
|
|
522
|
-
case 74:
|
|
523
|
-
return 15;
|
|
524
|
-
case 75:
|
|
525
|
-
return 28;
|
|
526
|
-
case 76:
|
|
527
|
-
return 55;
|
|
528
|
-
case 77:
|
|
529
|
-
return 5;
|
|
530
|
-
case 78:
|
|
531
|
-
return "INVALID";
|
|
532
|
-
}
|
|
533
|
-
}, "anonymous"),
|
|
534
|
-
rules: [/^(?:default\b)/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:[\s]+)/i, /^(?:((?!\n)\s)+)/i, /^(?:#[^\n]*)/i, /^(?:%[^\n]*)/i, /^(?:scale\s+)/i, /^(?:\d+)/i, /^(?:\s+width\b)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:classDef\s+)/i, /^(?:DEFAULT\s+)/i, /^(?:\w+\s+)/i, /^(?:[^\n]*)/i, /^(?:class\s+)/i, /^(?:(\w+)+((,\s*\w+)*))/i, /^(?:[^\n]*)/i, /^(?:style\s+)/i, /^(?:[\w,]+\s+)/i, /^(?:[^\n]*)/i, /^(?:scale\s+)/i, /^(?:\d+)/i, /^(?:\s+width\b)/i, /^(?:state\s+)/i, /^(?:.*<<fork>>)/i, /^(?:.*<<join>>)/i, /^(?:.*<<choice>>)/i, /^(?:.*\[\[fork\]\])/i, /^(?:.*\[\[join\]\])/i, /^(?:.*\[\[choice\]\])/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:["])/i, /^(?:\s*as\s+)/i, /^(?:[^\n\{]*)/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[^\n\s\{]+)/i, /^(?:\n)/i, /^(?:\{)/i, /^(?:%%(?!\{)[^\n]*)/i, /^(?:\})/i, /^(?:[\n])/i, /^(?:note\s+)/i, /^(?:left of\b)/i, /^(?:right of\b)/i, /^(?:")/i, /^(?:\s*as\s*)/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[^\n]*)/i, /^(?:\s*[^:\n\s\-]+)/i, /^(?:\s*:[^:\n;]+)/i, /^(?:[\s\S]*?end note\b)/i, /^(?:stateDiagram\s+)/i, /^(?:stateDiagram-v2\s+)/i, /^(?:hide empty description\b)/i, /^(?:\[\*\])/i, /^(?:[^:\n\s\-\{]+)/i, /^(?:\s*:[^:\n;]+)/i, /^(?:-->)/i, /^(?:--)/i, /^(?::::)/i, /^(?:$)/i, /^(?:.)/i],
|
|
535
|
-
conditions: { LINE: { rules: [9, 10], inclusive: !1 }, struct: { rules: [9, 10, 22, 26, 29, 35, 42, 43, 44, 45, 54, 55, 56, 57, 71, 72, 73, 74, 75], inclusive: !1 }, FLOATING_NOTE_ID: { rules: [64], inclusive: !1 }, FLOATING_NOTE: { rules: [61, 62, 63], inclusive: !1 }, NOTE_TEXT: { rules: [66, 67], inclusive: !1 }, NOTE_ID: { rules: [65], inclusive: !1 }, NOTE: { rules: [58, 59, 60], inclusive: !1 }, STYLEDEF_STYLEOPTS: { rules: [], inclusive: !1 }, STYLEDEF_STYLES: { rules: [31], inclusive: !1 }, STYLE_IDS: { rules: [], inclusive: !1 }, STYLE: { rules: [30], inclusive: !1 }, CLASS_STYLE: { rules: [28], inclusive: !1 }, CLASS: { rules: [27], inclusive: !1 }, CLASSDEFID: { rules: [25], inclusive: !1 }, CLASSDEF: { rules: [23, 24], inclusive: !1 }, acc_descr_multiline: { rules: [20, 21], inclusive: !1 }, acc_descr: { rules: [18], inclusive: !1 }, acc_title: { rules: [16], inclusive: !1 }, SCALE: { rules: [13, 14, 33, 34], inclusive: !1 }, ALIAS: { rules: [], inclusive: !1 }, STATE_ID: { rules: [48], inclusive: !1 }, STATE_STRING: { rules: [49, 50], inclusive: !1 }, FORK_STATE: { rules: [], inclusive: !1 }, STATE: { rules: [9, 10, 36, 37, 38, 39, 40, 41, 46, 47, 51, 52, 53], inclusive: !1 }, ID: { rules: [9, 10], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 15, 17, 19, 22, 26, 29, 32, 35, 53, 57, 68, 69, 70, 71, 72, 73, 74, 76, 77, 78], inclusive: !0 } }
|
|
536
|
-
};
|
|
537
|
-
return L;
|
|
538
|
-
}();
|
|
539
|
-
Et.lexer = ke;
|
|
540
|
-
function ct() {
|
|
541
|
-
this.yy = {};
|
|
542
|
-
}
|
|
543
|
-
return i(ct, "Parser"), ct.prototype = Et, Et.Parser = ct, new ct();
|
|
544
|
-
}();
|
|
545
|
-
It.parser = It;
|
|
546
|
-
var vs = It, Be = "LR", qt = "TB", St = "state", Rt = "relation", Fe = "classDef", Pe = "style", Ye = "applyClass", et = "default", Xt = "divider", Qt = "fill:none", Zt = "fill: #333", te = "c", ee = "text", se = "normal", Lt = "rect", At = "rectWithTitle", Ge = "stateStart", ze = "stateEnd", Ut = "divider", Mt = "roundedWithTitle", je = "note", Ue = "noteGroup", st = "statediagram", Me = "state", Ve = `${st}-${Me}`, ie = "transition", He = "note", Je = "note-edge", We = `${ie} ${Je}`, Ke = `${st}-${He}`, qe = "cluster", Xe = `${st}-${qe}`, Qe = "cluster-alt", Ze = `${st}-${Qe}`, re = "parent", ae = "note", ts = "state", Nt = "----", es = `${Nt}${ae}`, Vt = `${Nt}${re}`, ne = /* @__PURE__ */ i((t, e = qt) => {
|
|
547
|
-
if (!t.doc)
|
|
548
|
-
return e;
|
|
549
|
-
let l = e;
|
|
550
|
-
for (const o of t.doc)
|
|
551
|
-
o.stmt === "dir" && (l = o.value);
|
|
552
|
-
return l;
|
|
553
|
-
}, "getDir"), ss = /* @__PURE__ */ i(function(t, e) {
|
|
554
|
-
return e.db.extract(e.db.getRootDocV2()), e.db.getClasses();
|
|
555
|
-
}, "getClasses"), is = /* @__PURE__ */ i(async function(t, e, l, o) {
|
|
556
|
-
k.info("REF0:"), k.info("Drawing state diagram (v2)", e);
|
|
557
|
-
const { securityLevel: r, state: h, layout: p } = v();
|
|
558
|
-
o.db.extract(o.db.getRootDocV2());
|
|
559
|
-
const g = o.db.getData(), u = xe(e, r);
|
|
560
|
-
g.type = o.type, g.layoutAlgorithm = p, g.nodeSpacing = (h == null ? void 0 : h.nodeSpacing) || 50, g.rankSpacing = (h == null ? void 0 : h.rankSpacing) || 50, g.markers = ["barb"], g.diagramId = e, await we(g, u), Re.insertTitle(
|
|
561
|
-
u,
|
|
562
|
-
"statediagramTitleText",
|
|
563
|
-
(h == null ? void 0 : h.titleTopMargin) ?? 25,
|
|
564
|
-
o.db.getDiagramTitle()
|
|
565
|
-
), $e(u, 8, st, (h == null ? void 0 : h.useMaxWidth) ?? !0);
|
|
566
|
-
}, "draw"), Cs = {
|
|
567
|
-
getClasses: ss,
|
|
568
|
-
draw: is,
|
|
569
|
-
getDir: ne
|
|
570
|
-
}, yt = /* @__PURE__ */ new Map(), B = 0;
|
|
571
|
-
function ft(t = "", e = 0, l = "", o = Nt) {
|
|
572
|
-
const r = l !== null && l.length > 0 ? `${o}${l}` : "";
|
|
573
|
-
return `${ts}-${t}${r}-${e}`;
|
|
574
|
-
}
|
|
575
|
-
i(ft, "stateDomId");
|
|
576
|
-
var rs = /* @__PURE__ */ i((t, e, l, o, r, h, p, g) => {
|
|
577
|
-
k.trace("items", e), e.forEach((u) => {
|
|
578
|
-
switch (u.stmt) {
|
|
579
|
-
case St:
|
|
580
|
-
Z(t, u, l, o, r, h, p, g);
|
|
581
|
-
break;
|
|
582
|
-
case et:
|
|
583
|
-
Z(t, u, l, o, r, h, p, g);
|
|
584
|
-
break;
|
|
585
|
-
case Rt:
|
|
586
|
-
{
|
|
587
|
-
Z(
|
|
588
|
-
t,
|
|
589
|
-
u.state1,
|
|
590
|
-
l,
|
|
591
|
-
o,
|
|
592
|
-
r,
|
|
593
|
-
h,
|
|
594
|
-
p,
|
|
595
|
-
g
|
|
596
|
-
), Z(
|
|
597
|
-
t,
|
|
598
|
-
u.state2,
|
|
599
|
-
l,
|
|
600
|
-
o,
|
|
601
|
-
r,
|
|
602
|
-
h,
|
|
603
|
-
p,
|
|
604
|
-
g
|
|
605
|
-
);
|
|
606
|
-
const m = {
|
|
607
|
-
id: "edge" + B,
|
|
608
|
-
start: u.state1.id,
|
|
609
|
-
end: u.state2.id,
|
|
610
|
-
arrowhead: "normal",
|
|
611
|
-
arrowTypeEnd: "arrow_barb",
|
|
612
|
-
style: Qt,
|
|
613
|
-
labelStyle: "",
|
|
614
|
-
label: M.sanitizeText(u.description, v()),
|
|
615
|
-
arrowheadStyle: Zt,
|
|
616
|
-
labelpos: te,
|
|
617
|
-
labelType: ee,
|
|
618
|
-
thickness: se,
|
|
619
|
-
classes: ie,
|
|
620
|
-
look: p
|
|
621
|
-
};
|
|
622
|
-
r.push(m), B++;
|
|
623
|
-
}
|
|
624
|
-
break;
|
|
625
|
-
}
|
|
626
|
-
});
|
|
627
|
-
}, "setupDoc"), Ht = /* @__PURE__ */ i((t, e = qt) => {
|
|
628
|
-
let l = e;
|
|
629
|
-
if (t.doc)
|
|
630
|
-
for (const o of t.doc)
|
|
631
|
-
o.stmt === "dir" && (l = o.value);
|
|
632
|
-
return l;
|
|
633
|
-
}, "getDir");
|
|
634
|
-
function Q(t, e, l) {
|
|
635
|
-
if (!e.id || e.id === "</join></fork>" || e.id === "</choice>")
|
|
636
|
-
return;
|
|
637
|
-
e.cssClasses && (Array.isArray(e.cssCompiledStyles) || (e.cssCompiledStyles = []), e.cssClasses.split(" ").forEach((r) => {
|
|
638
|
-
if (l.get(r)) {
|
|
639
|
-
const h = l.get(r);
|
|
640
|
-
e.cssCompiledStyles = [...e.cssCompiledStyles, ...h.styles];
|
|
641
|
-
}
|
|
642
|
-
}));
|
|
643
|
-
const o = t.find((r) => r.id === e.id);
|
|
644
|
-
o ? Object.assign(o, e) : t.push(e);
|
|
645
|
-
}
|
|
646
|
-
i(Q, "insertOrUpdateNode");
|
|
647
|
-
function oe(t) {
|
|
648
|
-
var e;
|
|
649
|
-
return ((e = t == null ? void 0 : t.classes) == null ? void 0 : e.join(" ")) ?? "";
|
|
650
|
-
}
|
|
651
|
-
i(oe, "getClassesFromDbInfo");
|
|
652
|
-
function le(t) {
|
|
653
|
-
return (t == null ? void 0 : t.styles) ?? [];
|
|
654
|
-
}
|
|
655
|
-
i(le, "getStylesFromDbInfo");
|
|
656
|
-
var Z = /* @__PURE__ */ i((t, e, l, o, r, h, p, g) => {
|
|
657
|
-
var u, m;
|
|
658
|
-
const _ = e.id, A = l.get(_), H = oe(A), P = le(A);
|
|
659
|
-
if (k.info("dataFetcher parsedItem", e, A, P), _ !== "root") {
|
|
660
|
-
let I = Lt;
|
|
661
|
-
e.start === !0 ? I = Ge : e.start === !1 && (I = ze), e.type !== et && (I = e.type), yt.get(_) || yt.set(_, {
|
|
662
|
-
id: _,
|
|
663
|
-
shape: I,
|
|
664
|
-
description: M.sanitizeText(_, v()),
|
|
665
|
-
cssClasses: `${H} ${Ve}`,
|
|
666
|
-
cssStyles: P
|
|
667
|
-
});
|
|
668
|
-
const d = yt.get(_);
|
|
669
|
-
e.description && (Array.isArray(d.description) ? (d.shape = At, d.description.push(e.description)) : ((u = d.description) == null ? void 0 : u.length) > 0 ? (d.shape = At, d.description === _ ? d.description = [e.description] : d.description = [d.description, e.description]) : (d.shape = Lt, d.description = e.description), d.description = M.sanitizeTextOrArray(d.description, v())), ((m = d.description) == null ? void 0 : m.length) === 1 && d.shape === At && (d.type === "group" ? d.shape = Mt : d.shape = Lt), !d.type && e.doc && (k.info("Setting cluster for XCX", _, Ht(e)), d.type = "group", d.isGroup = !0, d.dir = Ht(e), d.shape = e.type === Xt ? Ut : Mt, d.cssClasses = `${d.cssClasses} ${Xe} ${h ? Ze : ""}`);
|
|
670
|
-
const C = {
|
|
671
|
-
labelStyle: "",
|
|
672
|
-
shape: d.shape,
|
|
673
|
-
label: d.description,
|
|
674
|
-
cssClasses: d.cssClasses,
|
|
675
|
-
cssCompiledStyles: [],
|
|
676
|
-
cssStyles: d.cssStyles,
|
|
677
|
-
id: _,
|
|
678
|
-
dir: d.dir,
|
|
679
|
-
domId: ft(_, B),
|
|
680
|
-
type: d.type,
|
|
681
|
-
isGroup: d.type === "group",
|
|
682
|
-
padding: 8,
|
|
683
|
-
rx: 10,
|
|
684
|
-
ry: 10,
|
|
685
|
-
look: p
|
|
686
|
-
};
|
|
687
|
-
if (C.shape === Ut && (C.label = ""), t && t.id !== "root" && (k.trace("Setting node ", _, " to be child of its parent ", t.id), C.parentId = t.id), C.centerLabel = !0, e.note) {
|
|
688
|
-
const w = {
|
|
689
|
-
labelStyle: "",
|
|
690
|
-
shape: je,
|
|
691
|
-
label: e.note.text,
|
|
692
|
-
cssClasses: Ke,
|
|
693
|
-
// useHtmlLabels: false,
|
|
694
|
-
cssStyles: [],
|
|
695
|
-
cssCompilesStyles: [],
|
|
696
|
-
id: _ + es + "-" + B,
|
|
697
|
-
domId: ft(_, B, ae),
|
|
698
|
-
type: d.type,
|
|
699
|
-
isGroup: d.type === "group",
|
|
700
|
-
padding: v().flowchart.padding,
|
|
701
|
-
look: p,
|
|
702
|
-
position: e.note.position
|
|
703
|
-
}, Y = _ + Vt, G = {
|
|
704
|
-
labelStyle: "",
|
|
705
|
-
shape: Ue,
|
|
706
|
-
label: e.note.text,
|
|
707
|
-
cssClasses: d.cssClasses,
|
|
708
|
-
cssStyles: [],
|
|
709
|
-
id: _ + Vt,
|
|
710
|
-
domId: ft(_, B, re),
|
|
711
|
-
type: "group",
|
|
712
|
-
isGroup: !0,
|
|
713
|
-
padding: 16,
|
|
714
|
-
//getConfig().flowchart.padding
|
|
715
|
-
look: p,
|
|
716
|
-
position: e.note.position
|
|
717
|
-
};
|
|
718
|
-
B++, G.id = Y, w.parentId = Y, Q(o, G, g), Q(o, w, g), Q(o, C, g);
|
|
719
|
-
let N = _, O = w.id;
|
|
720
|
-
e.note.position === "left of" && (N = w.id, O = _), r.push({
|
|
721
|
-
id: N + "-" + O,
|
|
722
|
-
start: N,
|
|
723
|
-
end: O,
|
|
724
|
-
arrowhead: "none",
|
|
725
|
-
arrowTypeEnd: "",
|
|
726
|
-
style: Qt,
|
|
727
|
-
labelStyle: "",
|
|
728
|
-
classes: We,
|
|
729
|
-
arrowheadStyle: Zt,
|
|
730
|
-
labelpos: te,
|
|
731
|
-
labelType: ee,
|
|
732
|
-
thickness: se,
|
|
733
|
-
look: p
|
|
734
|
-
});
|
|
735
|
-
} else
|
|
736
|
-
Q(o, C, g);
|
|
737
|
-
}
|
|
738
|
-
e.doc && (k.trace("Adding nodes children "), rs(e, e.doc, l, o, r, !h, p, g));
|
|
739
|
-
}, "dataFetcher"), as = /* @__PURE__ */ i(() => {
|
|
740
|
-
yt.clear(), B = 0;
|
|
741
|
-
}, "reset"), Ot = "[*]", ce = "start", he = Ot, ue = "end", Jt = "color", Wt = "fill", ns = "bgFill", os = ",";
|
|
742
|
-
function Bt() {
|
|
743
|
-
return /* @__PURE__ */ new Map();
|
|
744
|
-
}
|
|
745
|
-
i(Bt, "newClassesList");
|
|
746
|
-
var mt = [], Ft = [], de = Be, _t = [], K = Bt(), pe = /* @__PURE__ */ i(() => ({
|
|
747
|
-
/** @type {{ id1: string, id2: string, relationTitle: string }[]} */
|
|
748
|
-
relations: [],
|
|
749
|
-
states: /* @__PURE__ */ new Map(),
|
|
750
|
-
documents: {}
|
|
751
|
-
}), "newDoc"), bt = {
|
|
752
|
-
root: pe()
|
|
753
|
-
}, x = bt.root, tt = 0, Kt = 0, ls = {
|
|
754
|
-
LINE: 0,
|
|
755
|
-
DOTTED_LINE: 1
|
|
756
|
-
}, cs = {
|
|
757
|
-
AGGREGATION: 0,
|
|
758
|
-
EXTENSION: 1,
|
|
759
|
-
COMPOSITION: 2,
|
|
760
|
-
DEPENDENCY: 3
|
|
761
|
-
}, pt = /* @__PURE__ */ i((t) => JSON.parse(JSON.stringify(t)), "clone"), hs = /* @__PURE__ */ i((t) => {
|
|
762
|
-
k.info("Setting root doc", t), _t = t;
|
|
763
|
-
}, "setRootDoc"), us = /* @__PURE__ */ i(() => _t, "getRootDoc"), gt = /* @__PURE__ */ i((t, e, l) => {
|
|
764
|
-
if (e.stmt === Rt)
|
|
765
|
-
gt(t, e.state1, !0), gt(t, e.state2, !1);
|
|
766
|
-
else if (e.stmt === St && (e.id === "[*]" ? (e.id = l ? t.id + "_start" : t.id + "_end", e.start = l) : e.id = e.id.trim()), e.doc) {
|
|
767
|
-
const o = [];
|
|
768
|
-
let r = [], h;
|
|
769
|
-
for (h = 0; h < e.doc.length; h++)
|
|
770
|
-
if (e.doc[h].type === Xt) {
|
|
771
|
-
const p = pt(e.doc[h]);
|
|
772
|
-
p.doc = pt(r), o.push(p), r = [];
|
|
773
|
-
} else
|
|
774
|
-
r.push(e.doc[h]);
|
|
775
|
-
if (o.length > 0 && r.length > 0) {
|
|
776
|
-
const p = {
|
|
777
|
-
stmt: St,
|
|
778
|
-
id: Oe(),
|
|
779
|
-
type: "divider",
|
|
780
|
-
doc: pt(r)
|
|
781
|
-
};
|
|
782
|
-
o.push(pt(p)), e.doc = o;
|
|
783
|
-
}
|
|
784
|
-
e.doc.forEach((p) => gt(e, p, !0));
|
|
785
|
-
}
|
|
786
|
-
}, "docTranslator"), Pt = /* @__PURE__ */ i(() => (gt({ id: "root" }, { id: "root", doc: _t }, !0), { id: "root", doc: _t }), "getRootDocV2"), ds = /* @__PURE__ */ i((t) => {
|
|
787
|
-
let e;
|
|
788
|
-
t.doc ? e = t.doc : e = t, k.info(e), ye(!0), k.info("Extract initial document:", e), e.forEach((r) => {
|
|
789
|
-
switch (k.warn("Statement", r.stmt), r.stmt) {
|
|
790
|
-
case St:
|
|
791
|
-
F(
|
|
792
|
-
r.id.trim(),
|
|
793
|
-
r.type,
|
|
794
|
-
r.doc,
|
|
795
|
-
r.description,
|
|
796
|
-
r.note,
|
|
797
|
-
r.classes,
|
|
798
|
-
r.styles,
|
|
799
|
-
r.textStyles
|
|
800
|
-
);
|
|
801
|
-
break;
|
|
802
|
-
case Rt:
|
|
803
|
-
_e(r.state1, r.state2, r.description);
|
|
804
|
-
break;
|
|
805
|
-
case Fe:
|
|
806
|
-
be(r.id.trim(), r.classes);
|
|
807
|
-
break;
|
|
808
|
-
case Pe:
|
|
809
|
-
{
|
|
810
|
-
const h = r.id.trim().split(","), p = r.styleClass.split(",");
|
|
811
|
-
h.forEach((g) => {
|
|
812
|
-
let u = V(g);
|
|
813
|
-
if (u === void 0) {
|
|
814
|
-
const m = g.trim();
|
|
815
|
-
F(m), u = V(m);
|
|
816
|
-
}
|
|
817
|
-
u.styles = p.map((m) => {
|
|
818
|
-
var _;
|
|
819
|
-
return (_ = m.replace(/;/g, "")) == null ? void 0 : _.trim();
|
|
820
|
-
});
|
|
821
|
-
});
|
|
822
|
-
}
|
|
823
|
-
break;
|
|
824
|
-
case Ye:
|
|
825
|
-
Yt(r.id.trim(), r.styleClass);
|
|
826
|
-
break;
|
|
827
|
-
}
|
|
828
|
-
});
|
|
829
|
-
const l = fe(), o = v().look;
|
|
830
|
-
as(), Z(void 0, Pt(), l, mt, Ft, !0, o, K), mt.forEach((r) => {
|
|
831
|
-
if (Array.isArray(r.label)) {
|
|
832
|
-
if (r.description = r.label.slice(1), r.isGroup && r.description.length > 0)
|
|
833
|
-
throw new Error(
|
|
834
|
-
"Group nodes can only have label. Remove the additional description for node [" + r.id + "]"
|
|
835
|
-
);
|
|
836
|
-
r.label = r.label[0];
|
|
837
|
-
}
|
|
838
|
-
});
|
|
839
|
-
}, "extract"), F = /* @__PURE__ */ i(function(t, e = et, l = null, o = null, r = null, h = null, p = null, g = null) {
|
|
840
|
-
const u = t == null ? void 0 : t.trim();
|
|
841
|
-
if (x.states.has(u) ? (x.states.get(u).doc || (x.states.get(u).doc = l), x.states.get(u).type || (x.states.get(u).type = e)) : (k.info("Adding state ", u, o), x.states.set(u, {
|
|
842
|
-
id: u,
|
|
843
|
-
descriptions: [],
|
|
844
|
-
type: e,
|
|
845
|
-
doc: l,
|
|
846
|
-
note: r,
|
|
847
|
-
classes: [],
|
|
848
|
-
styles: [],
|
|
849
|
-
textStyles: []
|
|
850
|
-
})), o && (k.info("Setting state description", u, o), typeof o == "string" && wt(u, o.trim()), typeof o == "object" && o.forEach((m) => wt(u, m.trim()))), r) {
|
|
851
|
-
const m = x.states.get(u);
|
|
852
|
-
m.note = r, m.note.text = M.sanitizeText(m.note.text, v());
|
|
853
|
-
}
|
|
854
|
-
h && (k.info("Setting state classes", u, h), (typeof h == "string" ? [h] : h).forEach((m) => Yt(u, m.trim()))), p && (k.info("Setting state styles", u, p), (typeof p == "string" ? [p] : p).forEach((m) => ms(u, m.trim()))), g && (k.info("Setting state styles", u, p), (typeof g == "string" ? [g] : g).forEach((m) => _s(u, m.trim())));
|
|
855
|
-
}, "addState"), ye = /* @__PURE__ */ i(function(t) {
|
|
856
|
-
mt = [], Ft = [], bt = {
|
|
857
|
-
root: pe()
|
|
858
|
-
}, x = bt.root, tt = 0, K = Bt(), t || Ne();
|
|
859
|
-
}, "clear"), V = /* @__PURE__ */ i(function(t) {
|
|
860
|
-
return x.states.get(t);
|
|
861
|
-
}, "getState"), fe = /* @__PURE__ */ i(function() {
|
|
862
|
-
return x.states;
|
|
863
|
-
}, "getStates"), ps = /* @__PURE__ */ i(function() {
|
|
864
|
-
k.info("Documents = ", bt);
|
|
865
|
-
}, "logDocuments"), ys = /* @__PURE__ */ i(function() {
|
|
866
|
-
return x.relations;
|
|
867
|
-
}, "getRelations");
|
|
868
|
-
function kt(t = "") {
|
|
869
|
-
let e = t;
|
|
870
|
-
return t === Ot && (tt++, e = `${ce}${tt}`), e;
|
|
871
|
-
}
|
|
872
|
-
i(kt, "startIdIfNeeded");
|
|
873
|
-
function Tt(t = "", e = et) {
|
|
874
|
-
return t === Ot ? ce : e;
|
|
875
|
-
}
|
|
876
|
-
i(Tt, "startTypeIfNeeded");
|
|
877
|
-
function ge(t = "") {
|
|
878
|
-
let e = t;
|
|
879
|
-
return t === he && (tt++, e = `${ue}${tt}`), e;
|
|
880
|
-
}
|
|
881
|
-
i(ge, "endIdIfNeeded");
|
|
882
|
-
function Se(t = "", e = et) {
|
|
883
|
-
return t === he ? ue : e;
|
|
884
|
-
}
|
|
885
|
-
i(Se, "endTypeIfNeeded");
|
|
886
|
-
function me(t, e, l) {
|
|
887
|
-
let o = kt(t.id.trim()), r = Tt(t.id.trim(), t.type), h = kt(e.id.trim()), p = Tt(e.id.trim(), e.type);
|
|
888
|
-
F(
|
|
889
|
-
o,
|
|
890
|
-
r,
|
|
891
|
-
t.doc,
|
|
892
|
-
t.description,
|
|
893
|
-
t.note,
|
|
894
|
-
t.classes,
|
|
895
|
-
t.styles,
|
|
896
|
-
t.textStyles
|
|
897
|
-
), F(
|
|
898
|
-
h,
|
|
899
|
-
p,
|
|
900
|
-
e.doc,
|
|
901
|
-
e.description,
|
|
902
|
-
e.note,
|
|
903
|
-
e.classes,
|
|
904
|
-
e.styles,
|
|
905
|
-
e.textStyles
|
|
906
|
-
), x.relations.push({
|
|
907
|
-
id1: o,
|
|
908
|
-
id2: h,
|
|
909
|
-
relationTitle: M.sanitizeText(l, v())
|
|
910
|
-
});
|
|
911
|
-
}
|
|
912
|
-
i(me, "addRelationObjs");
|
|
913
|
-
var _e = /* @__PURE__ */ i(function(t, e, l) {
|
|
914
|
-
if (typeof t == "object")
|
|
915
|
-
me(t, e, l);
|
|
916
|
-
else {
|
|
917
|
-
const o = kt(t.trim()), r = Tt(t), h = ge(e.trim()), p = Se(e);
|
|
918
|
-
F(o, r), F(h, p), x.relations.push({
|
|
919
|
-
id1: o,
|
|
920
|
-
id2: h,
|
|
921
|
-
title: M.sanitizeText(l, v())
|
|
922
|
-
});
|
|
923
|
-
}
|
|
924
|
-
}, "addRelation"), wt = /* @__PURE__ */ i(function(t, e) {
|
|
925
|
-
const l = x.states.get(t), o = e.startsWith(":") ? e.replace(":", "").trim() : e;
|
|
926
|
-
l.descriptions.push(M.sanitizeText(o, v()));
|
|
927
|
-
}, "addDescription"), fs = /* @__PURE__ */ i(function(t) {
|
|
928
|
-
return t.substring(0, 1) === ":" ? t.substr(2).trim() : t.trim();
|
|
929
|
-
}, "cleanupLabel"), gs = /* @__PURE__ */ i(() => (Kt++, "divider-id-" + Kt), "getDividerId"), be = /* @__PURE__ */ i(function(t, e = "") {
|
|
930
|
-
K.has(t) || K.set(t, { id: t, styles: [], textStyles: [] });
|
|
931
|
-
const l = K.get(t);
|
|
932
|
-
e != null && e.split(os).forEach((o) => {
|
|
933
|
-
const r = o.replace(/([^;]*);/, "$1").trim();
|
|
934
|
-
if (RegExp(Jt).exec(o)) {
|
|
935
|
-
const h = r.replace(Wt, ns).replace(Jt, Wt);
|
|
936
|
-
l.textStyles.push(h);
|
|
937
|
-
}
|
|
938
|
-
l.styles.push(r);
|
|
939
|
-
});
|
|
940
|
-
}, "addStyleClass"), Ss = /* @__PURE__ */ i(function() {
|
|
941
|
-
return K;
|
|
942
|
-
}, "getClasses"), Yt = /* @__PURE__ */ i(function(t, e) {
|
|
943
|
-
t.split(",").forEach(function(l) {
|
|
944
|
-
let o = V(l);
|
|
945
|
-
if (o === void 0) {
|
|
946
|
-
const r = l.trim();
|
|
947
|
-
F(r), o = V(r);
|
|
948
|
-
}
|
|
949
|
-
o.classes.push(e);
|
|
950
|
-
});
|
|
951
|
-
}, "setCssClass"), ms = /* @__PURE__ */ i(function(t, e) {
|
|
952
|
-
const l = V(t);
|
|
953
|
-
l !== void 0 && l.styles.push(e);
|
|
954
|
-
}, "setStyle"), _s = /* @__PURE__ */ i(function(t, e) {
|
|
955
|
-
const l = V(t);
|
|
956
|
-
l !== void 0 && l.textStyles.push(e);
|
|
957
|
-
}, "setTextStyle"), bs = /* @__PURE__ */ i(() => de, "getDirection"), ks = /* @__PURE__ */ i((t) => {
|
|
958
|
-
de = t;
|
|
959
|
-
}, "setDirection"), Ts = /* @__PURE__ */ i((t) => t && t[0] === ":" ? t.substr(1).trim() : t.trim(), "trimColon"), Es = /* @__PURE__ */ i(() => {
|
|
960
|
-
const t = v();
|
|
961
|
-
return { nodes: mt, edges: Ft, other: {}, config: t, direction: ne(Pt()) };
|
|
962
|
-
}, "getData"), Ls = {
|
|
963
|
-
getConfig: /* @__PURE__ */ i(() => v().state, "getConfig"),
|
|
964
|
-
getData: Es,
|
|
965
|
-
addState: F,
|
|
966
|
-
clear: ye,
|
|
967
|
-
getState: V,
|
|
968
|
-
getStates: fe,
|
|
969
|
-
getRelations: ys,
|
|
970
|
-
getClasses: Ss,
|
|
971
|
-
getDirection: bs,
|
|
972
|
-
addRelation: _e,
|
|
973
|
-
getDividerId: gs,
|
|
974
|
-
setDirection: ks,
|
|
975
|
-
cleanupLabel: fs,
|
|
976
|
-
lineType: ls,
|
|
977
|
-
relationType: cs,
|
|
978
|
-
logDocuments: ps,
|
|
979
|
-
getRootDoc: us,
|
|
980
|
-
setRootDoc: hs,
|
|
981
|
-
getRootDocV2: Pt,
|
|
982
|
-
extract: ds,
|
|
983
|
-
trimColon: Ts,
|
|
984
|
-
getAccTitle: Ie,
|
|
985
|
-
setAccTitle: Ae,
|
|
986
|
-
getAccDescription: Le,
|
|
987
|
-
setAccDescription: Ce,
|
|
988
|
-
addStyleClass: be,
|
|
989
|
-
setCssClass: Yt,
|
|
990
|
-
addDescription: wt,
|
|
991
|
-
setDiagramTitle: ve,
|
|
992
|
-
getDiagramTitle: De
|
|
993
|
-
}, xs = /* @__PURE__ */ i((t) => `
|
|
994
|
-
defs #statediagram-barbEnd {
|
|
995
|
-
fill: ${t.transitionColor};
|
|
996
|
-
stroke: ${t.transitionColor};
|
|
997
|
-
}
|
|
998
|
-
g.stateGroup text {
|
|
999
|
-
fill: ${t.nodeBorder};
|
|
1000
|
-
stroke: none;
|
|
1001
|
-
font-size: 10px;
|
|
1002
|
-
}
|
|
1003
|
-
g.stateGroup text {
|
|
1004
|
-
fill: ${t.textColor};
|
|
1005
|
-
stroke: none;
|
|
1006
|
-
font-size: 10px;
|
|
1007
|
-
|
|
1008
|
-
}
|
|
1009
|
-
g.stateGroup .state-title {
|
|
1010
|
-
font-weight: bolder;
|
|
1011
|
-
fill: ${t.stateLabelColor};
|
|
1012
|
-
}
|
|
1013
|
-
|
|
1014
|
-
g.stateGroup rect {
|
|
1015
|
-
fill: ${t.mainBkg};
|
|
1016
|
-
stroke: ${t.nodeBorder};
|
|
1017
|
-
}
|
|
1018
|
-
|
|
1019
|
-
g.stateGroup line {
|
|
1020
|
-
stroke: ${t.lineColor};
|
|
1021
|
-
stroke-width: 1;
|
|
1022
|
-
}
|
|
1023
|
-
|
|
1024
|
-
.transition {
|
|
1025
|
-
stroke: ${t.transitionColor};
|
|
1026
|
-
stroke-width: 1;
|
|
1027
|
-
fill: none;
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
|
-
.stateGroup .composit {
|
|
1031
|
-
fill: ${t.background};
|
|
1032
|
-
border-bottom: 1px
|
|
1033
|
-
}
|
|
1034
|
-
|
|
1035
|
-
.stateGroup .alt-composit {
|
|
1036
|
-
fill: #e0e0e0;
|
|
1037
|
-
border-bottom: 1px
|
|
1038
|
-
}
|
|
1039
|
-
|
|
1040
|
-
.state-note {
|
|
1041
|
-
stroke: ${t.noteBorderColor};
|
|
1042
|
-
fill: ${t.noteBkgColor};
|
|
1043
|
-
|
|
1044
|
-
text {
|
|
1045
|
-
fill: ${t.noteTextColor};
|
|
1046
|
-
stroke: none;
|
|
1047
|
-
font-size: 10px;
|
|
1048
|
-
}
|
|
1049
|
-
}
|
|
1050
|
-
|
|
1051
|
-
.stateLabel .box {
|
|
1052
|
-
stroke: none;
|
|
1053
|
-
stroke-width: 0;
|
|
1054
|
-
fill: ${t.mainBkg};
|
|
1055
|
-
opacity: 0.5;
|
|
1056
|
-
}
|
|
1057
|
-
|
|
1058
|
-
.edgeLabel .label rect {
|
|
1059
|
-
fill: ${t.labelBackgroundColor};
|
|
1060
|
-
opacity: 0.5;
|
|
1061
|
-
}
|
|
1062
|
-
.edgeLabel {
|
|
1063
|
-
background-color: ${t.edgeLabelBackground};
|
|
1064
|
-
p {
|
|
1065
|
-
background-color: ${t.edgeLabelBackground};
|
|
1066
|
-
}
|
|
1067
|
-
rect {
|
|
1068
|
-
opacity: 0.5;
|
|
1069
|
-
background-color: ${t.edgeLabelBackground};
|
|
1070
|
-
fill: ${t.edgeLabelBackground};
|
|
1071
|
-
}
|
|
1072
|
-
text-align: center;
|
|
1073
|
-
}
|
|
1074
|
-
.edgeLabel .label text {
|
|
1075
|
-
fill: ${t.transitionLabelColor || t.tertiaryTextColor};
|
|
1076
|
-
}
|
|
1077
|
-
.label div .edgeLabel {
|
|
1078
|
-
color: ${t.transitionLabelColor || t.tertiaryTextColor};
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
|
-
.stateLabel text {
|
|
1082
|
-
fill: ${t.stateLabelColor};
|
|
1083
|
-
font-size: 10px;
|
|
1084
|
-
font-weight: bold;
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
|
-
.node circle.state-start {
|
|
1088
|
-
fill: ${t.specialStateColor};
|
|
1089
|
-
stroke: ${t.specialStateColor};
|
|
1090
|
-
}
|
|
1091
|
-
|
|
1092
|
-
.node .fork-join {
|
|
1093
|
-
fill: ${t.specialStateColor};
|
|
1094
|
-
stroke: ${t.specialStateColor};
|
|
1095
|
-
}
|
|
1096
|
-
|
|
1097
|
-
.node circle.state-end {
|
|
1098
|
-
fill: ${t.innerEndBackground};
|
|
1099
|
-
stroke: ${t.background};
|
|
1100
|
-
stroke-width: 1.5
|
|
1101
|
-
}
|
|
1102
|
-
.end-state-inner {
|
|
1103
|
-
fill: ${t.compositeBackground || t.background};
|
|
1104
|
-
// stroke: ${t.background};
|
|
1105
|
-
stroke-width: 1.5
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
|
-
.node rect {
|
|
1109
|
-
fill: ${t.stateBkg || t.mainBkg};
|
|
1110
|
-
stroke: ${t.stateBorder || t.nodeBorder};
|
|
1111
|
-
stroke-width: 1px;
|
|
1112
|
-
}
|
|
1113
|
-
.node polygon {
|
|
1114
|
-
fill: ${t.mainBkg};
|
|
1115
|
-
stroke: ${t.stateBorder || t.nodeBorder};;
|
|
1116
|
-
stroke-width: 1px;
|
|
1117
|
-
}
|
|
1118
|
-
#statediagram-barbEnd {
|
|
1119
|
-
fill: ${t.lineColor};
|
|
1120
|
-
}
|
|
1121
|
-
|
|
1122
|
-
.statediagram-cluster rect {
|
|
1123
|
-
fill: ${t.compositeTitleBackground};
|
|
1124
|
-
stroke: ${t.stateBorder || t.nodeBorder};
|
|
1125
|
-
stroke-width: 1px;
|
|
1126
|
-
}
|
|
1127
|
-
|
|
1128
|
-
.cluster-label, .nodeLabel {
|
|
1129
|
-
color: ${t.stateLabelColor};
|
|
1130
|
-
// line-height: 1;
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
.statediagram-cluster rect.outer {
|
|
1134
|
-
rx: 5px;
|
|
1135
|
-
ry: 5px;
|
|
1136
|
-
}
|
|
1137
|
-
.statediagram-state .divider {
|
|
1138
|
-
stroke: ${t.stateBorder || t.nodeBorder};
|
|
1139
|
-
}
|
|
1140
|
-
|
|
1141
|
-
.statediagram-state .title-state {
|
|
1142
|
-
rx: 5px;
|
|
1143
|
-
ry: 5px;
|
|
1144
|
-
}
|
|
1145
|
-
.statediagram-cluster.statediagram-cluster .inner {
|
|
1146
|
-
fill: ${t.compositeBackground || t.background};
|
|
1147
|
-
}
|
|
1148
|
-
.statediagram-cluster.statediagram-cluster-alt .inner {
|
|
1149
|
-
fill: ${t.altBackground ? t.altBackground : "#efefef"};
|
|
1150
|
-
}
|
|
1151
|
-
|
|
1152
|
-
.statediagram-cluster .inner {
|
|
1153
|
-
rx:0;
|
|
1154
|
-
ry:0;
|
|
1155
|
-
}
|
|
1156
|
-
|
|
1157
|
-
.statediagram-state rect.basic {
|
|
1158
|
-
rx: 5px;
|
|
1159
|
-
ry: 5px;
|
|
1160
|
-
}
|
|
1161
|
-
.statediagram-state rect.divider {
|
|
1162
|
-
stroke-dasharray: 10,10;
|
|
1163
|
-
fill: ${t.altBackground ? t.altBackground : "#efefef"};
|
|
1164
|
-
}
|
|
1165
|
-
|
|
1166
|
-
.note-edge {
|
|
1167
|
-
stroke-dasharray: 5;
|
|
1168
|
-
}
|
|
1169
|
-
|
|
1170
|
-
.statediagram-note rect {
|
|
1171
|
-
fill: ${t.noteBkgColor};
|
|
1172
|
-
stroke: ${t.noteBorderColor};
|
|
1173
|
-
stroke-width: 1px;
|
|
1174
|
-
rx: 0;
|
|
1175
|
-
ry: 0;
|
|
1176
|
-
}
|
|
1177
|
-
.statediagram-note rect {
|
|
1178
|
-
fill: ${t.noteBkgColor};
|
|
1179
|
-
stroke: ${t.noteBorderColor};
|
|
1180
|
-
stroke-width: 1px;
|
|
1181
|
-
rx: 0;
|
|
1182
|
-
ry: 0;
|
|
1183
|
-
}
|
|
1184
|
-
|
|
1185
|
-
.statediagram-note text {
|
|
1186
|
-
fill: ${t.noteTextColor};
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
.statediagram-note .nodeLabel {
|
|
1190
|
-
color: ${t.noteTextColor};
|
|
1191
|
-
}
|
|
1192
|
-
.statediagram .edgeLabel {
|
|
1193
|
-
color: red; // ${t.noteTextColor};
|
|
1194
|
-
}
|
|
1195
|
-
|
|
1196
|
-
#dependencyStart, #dependencyEnd {
|
|
1197
|
-
fill: ${t.lineColor};
|
|
1198
|
-
stroke: ${t.lineColor};
|
|
1199
|
-
stroke-width: 1;
|
|
1200
|
-
}
|
|
1201
|
-
|
|
1202
|
-
.statediagramTitleText {
|
|
1203
|
-
text-anchor: middle;
|
|
1204
|
-
font-size: 18px;
|
|
1205
|
-
fill: ${t.textColor};
|
|
1206
|
-
}
|
|
1207
|
-
`, "getStyles"), As = xs;
|
|
1208
|
-
export {
|
|
1209
|
-
vs as A,
|
|
1210
|
-
As as I,
|
|
1211
|
-
Cs as L,
|
|
1212
|
-
Ls as R
|
|
1213
|
-
};
|