@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,768 +0,0 @@
|
|
|
1
|
-
import { _ as n, a6 as Me, a5 as De, a7 as Pe, a8 as Ue, g as ke, a9 as oe, aa as Ye, aq as Ve, l as xe, ay as Be, ag as Ne } from "./index-CMZig9xg.js";
|
|
2
|
-
import { L as Qe } from "./graph-BYZMvqpu-BXRs5843.js";
|
|
3
|
-
import { o as Ke } from "./layout-BHI4imdk-CESYC-il.js";
|
|
4
|
-
var he = function() {
|
|
5
|
-
var e = /* @__PURE__ */ n(function(w, t, a, r) {
|
|
6
|
-
for (a = a || {}, r = w.length; r--; a[w[r]] = t) ;
|
|
7
|
-
return a;
|
|
8
|
-
}, "o"), i = [1, 3], o = [1, 4], c = [1, 5], h = [1, 6], y = [5, 6, 8, 9, 11, 13, 31, 32, 33, 34, 35, 36, 44, 62, 63], u = [1, 18], l = [2, 7], p = [1, 22], _ = [1, 23], R = [1, 24], m = [1, 25], I = [1, 26], q = [1, 27], v = [1, 20], A = [1, 28], $ = [1, 29], D = [62, 63], ye = [5, 8, 9, 11, 13, 31, 32, 33, 34, 35, 36, 44, 51, 53, 62, 63], pe = [1, 47], de = [1, 48], ge = [1, 49], _e = [1, 50], Ee = [1, 51], Re = [1, 52], fe = [1, 53], C = [53, 54], P = [1, 64], U = [1, 60], Y = [1, 61], V = [1, 62], B = [1, 63], Q = [1, 65], G = [1, 69], z = [1, 70], X = [1, 67], J = [1, 68], S = [5, 8, 9, 11, 13, 31, 32, 33, 34, 35, 36, 44, 62, 63], re = {
|
|
9
|
-
trace: /* @__PURE__ */ n(function() {
|
|
10
|
-
}, "trace"),
|
|
11
|
-
yy: {},
|
|
12
|
-
symbols_: { error: 2, start: 3, directive: 4, NEWLINE: 5, RD: 6, diagram: 7, EOF: 8, acc_title: 9, acc_title_value: 10, acc_descr: 11, acc_descr_value: 12, acc_descr_multiline_value: 13, requirementDef: 14, elementDef: 15, relationshipDef: 16, requirementType: 17, requirementName: 18, STRUCT_START: 19, requirementBody: 20, ID: 21, COLONSEP: 22, id: 23, TEXT: 24, text: 25, RISK: 26, riskLevel: 27, VERIFYMTHD: 28, verifyType: 29, STRUCT_STOP: 30, REQUIREMENT: 31, FUNCTIONAL_REQUIREMENT: 32, INTERFACE_REQUIREMENT: 33, PERFORMANCE_REQUIREMENT: 34, PHYSICAL_REQUIREMENT: 35, DESIGN_CONSTRAINT: 36, LOW_RISK: 37, MED_RISK: 38, HIGH_RISK: 39, VERIFY_ANALYSIS: 40, VERIFY_DEMONSTRATION: 41, VERIFY_INSPECTION: 42, VERIFY_TEST: 43, ELEMENT: 44, elementName: 45, elementBody: 46, TYPE: 47, type: 48, DOCREF: 49, ref: 50, END_ARROW_L: 51, relationship: 52, LINE: 53, END_ARROW_R: 54, CONTAINS: 55, COPIES: 56, DERIVES: 57, SATISFIES: 58, VERIFIES: 59, REFINES: 60, TRACES: 61, unqString: 62, qString: 63, $accept: 0, $end: 1 },
|
|
13
|
-
terminals_: { 2: "error", 5: "NEWLINE", 6: "RD", 8: "EOF", 9: "acc_title", 10: "acc_title_value", 11: "acc_descr", 12: "acc_descr_value", 13: "acc_descr_multiline_value", 19: "STRUCT_START", 21: "ID", 22: "COLONSEP", 24: "TEXT", 26: "RISK", 28: "VERIFYMTHD", 30: "STRUCT_STOP", 31: "REQUIREMENT", 32: "FUNCTIONAL_REQUIREMENT", 33: "INTERFACE_REQUIREMENT", 34: "PERFORMANCE_REQUIREMENT", 35: "PHYSICAL_REQUIREMENT", 36: "DESIGN_CONSTRAINT", 37: "LOW_RISK", 38: "MED_RISK", 39: "HIGH_RISK", 40: "VERIFY_ANALYSIS", 41: "VERIFY_DEMONSTRATION", 42: "VERIFY_INSPECTION", 43: "VERIFY_TEST", 44: "ELEMENT", 47: "TYPE", 49: "DOCREF", 51: "END_ARROW_L", 53: "LINE", 54: "END_ARROW_R", 55: "CONTAINS", 56: "COPIES", 57: "DERIVES", 58: "SATISFIES", 59: "VERIFIES", 60: "REFINES", 61: "TRACES", 62: "unqString", 63: "qString" },
|
|
14
|
-
productions_: [0, [3, 3], [3, 2], [3, 4], [4, 2], [4, 2], [4, 1], [7, 0], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [14, 5], [20, 5], [20, 5], [20, 5], [20, 5], [20, 2], [20, 1], [17, 1], [17, 1], [17, 1], [17, 1], [17, 1], [17, 1], [27, 1], [27, 1], [27, 1], [29, 1], [29, 1], [29, 1], [29, 1], [15, 5], [46, 5], [46, 5], [46, 2], [46, 1], [16, 5], [16, 5], [52, 1], [52, 1], [52, 1], [52, 1], [52, 1], [52, 1], [52, 1], [18, 1], [18, 1], [23, 1], [23, 1], [25, 1], [25, 1], [45, 1], [45, 1], [48, 1], [48, 1], [50, 1], [50, 1]],
|
|
15
|
-
performAction: /* @__PURE__ */ n(function(w, t, a, r, d, s, b) {
|
|
16
|
-
var E = s.length - 1;
|
|
17
|
-
switch (d) {
|
|
18
|
-
case 4:
|
|
19
|
-
this.$ = s[E].trim(), r.setAccTitle(this.$);
|
|
20
|
-
break;
|
|
21
|
-
case 5:
|
|
22
|
-
case 6:
|
|
23
|
-
this.$ = s[E].trim(), r.setAccDescription(this.$);
|
|
24
|
-
break;
|
|
25
|
-
case 7:
|
|
26
|
-
this.$ = [];
|
|
27
|
-
break;
|
|
28
|
-
case 13:
|
|
29
|
-
r.addRequirement(s[E - 3], s[E - 4]);
|
|
30
|
-
break;
|
|
31
|
-
case 14:
|
|
32
|
-
r.setNewReqId(s[E - 2]);
|
|
33
|
-
break;
|
|
34
|
-
case 15:
|
|
35
|
-
r.setNewReqText(s[E - 2]);
|
|
36
|
-
break;
|
|
37
|
-
case 16:
|
|
38
|
-
r.setNewReqRisk(s[E - 2]);
|
|
39
|
-
break;
|
|
40
|
-
case 17:
|
|
41
|
-
r.setNewReqVerifyMethod(s[E - 2]);
|
|
42
|
-
break;
|
|
43
|
-
case 20:
|
|
44
|
-
this.$ = r.RequirementType.REQUIREMENT;
|
|
45
|
-
break;
|
|
46
|
-
case 21:
|
|
47
|
-
this.$ = r.RequirementType.FUNCTIONAL_REQUIREMENT;
|
|
48
|
-
break;
|
|
49
|
-
case 22:
|
|
50
|
-
this.$ = r.RequirementType.INTERFACE_REQUIREMENT;
|
|
51
|
-
break;
|
|
52
|
-
case 23:
|
|
53
|
-
this.$ = r.RequirementType.PERFORMANCE_REQUIREMENT;
|
|
54
|
-
break;
|
|
55
|
-
case 24:
|
|
56
|
-
this.$ = r.RequirementType.PHYSICAL_REQUIREMENT;
|
|
57
|
-
break;
|
|
58
|
-
case 25:
|
|
59
|
-
this.$ = r.RequirementType.DESIGN_CONSTRAINT;
|
|
60
|
-
break;
|
|
61
|
-
case 26:
|
|
62
|
-
this.$ = r.RiskLevel.LOW_RISK;
|
|
63
|
-
break;
|
|
64
|
-
case 27:
|
|
65
|
-
this.$ = r.RiskLevel.MED_RISK;
|
|
66
|
-
break;
|
|
67
|
-
case 28:
|
|
68
|
-
this.$ = r.RiskLevel.HIGH_RISK;
|
|
69
|
-
break;
|
|
70
|
-
case 29:
|
|
71
|
-
this.$ = r.VerifyType.VERIFY_ANALYSIS;
|
|
72
|
-
break;
|
|
73
|
-
case 30:
|
|
74
|
-
this.$ = r.VerifyType.VERIFY_DEMONSTRATION;
|
|
75
|
-
break;
|
|
76
|
-
case 31:
|
|
77
|
-
this.$ = r.VerifyType.VERIFY_INSPECTION;
|
|
78
|
-
break;
|
|
79
|
-
case 32:
|
|
80
|
-
this.$ = r.VerifyType.VERIFY_TEST;
|
|
81
|
-
break;
|
|
82
|
-
case 33:
|
|
83
|
-
r.addElement(s[E - 3]);
|
|
84
|
-
break;
|
|
85
|
-
case 34:
|
|
86
|
-
r.setNewElementType(s[E - 2]);
|
|
87
|
-
break;
|
|
88
|
-
case 35:
|
|
89
|
-
r.setNewElementDocRef(s[E - 2]);
|
|
90
|
-
break;
|
|
91
|
-
case 38:
|
|
92
|
-
r.addRelationship(s[E - 2], s[E], s[E - 4]);
|
|
93
|
-
break;
|
|
94
|
-
case 39:
|
|
95
|
-
r.addRelationship(s[E - 2], s[E - 4], s[E]);
|
|
96
|
-
break;
|
|
97
|
-
case 40:
|
|
98
|
-
this.$ = r.Relationships.CONTAINS;
|
|
99
|
-
break;
|
|
100
|
-
case 41:
|
|
101
|
-
this.$ = r.Relationships.COPIES;
|
|
102
|
-
break;
|
|
103
|
-
case 42:
|
|
104
|
-
this.$ = r.Relationships.DERIVES;
|
|
105
|
-
break;
|
|
106
|
-
case 43:
|
|
107
|
-
this.$ = r.Relationships.SATISFIES;
|
|
108
|
-
break;
|
|
109
|
-
case 44:
|
|
110
|
-
this.$ = r.Relationships.VERIFIES;
|
|
111
|
-
break;
|
|
112
|
-
case 45:
|
|
113
|
-
this.$ = r.Relationships.REFINES;
|
|
114
|
-
break;
|
|
115
|
-
case 46:
|
|
116
|
-
this.$ = r.Relationships.TRACES;
|
|
117
|
-
break;
|
|
118
|
-
}
|
|
119
|
-
}, "anonymous"),
|
|
120
|
-
table: [{ 3: 1, 4: 2, 6: i, 9: o, 11: c, 13: h }, { 1: [3] }, { 3: 8, 4: 2, 5: [1, 7], 6: i, 9: o, 11: c, 13: h }, { 5: [1, 9] }, { 10: [1, 10] }, { 12: [1, 11] }, e(y, [2, 6]), { 3: 12, 4: 2, 6: i, 9: o, 11: c, 13: h }, { 1: [2, 2] }, { 4: 17, 5: u, 7: 13, 8: l, 9: o, 11: c, 13: h, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: p, 32: _, 33: R, 34: m, 35: I, 36: q, 44: v, 62: A, 63: $ }, e(y, [2, 4]), e(y, [2, 5]), { 1: [2, 1] }, { 8: [1, 30] }, { 4: 17, 5: u, 7: 31, 8: l, 9: o, 11: c, 13: h, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: p, 32: _, 33: R, 34: m, 35: I, 36: q, 44: v, 62: A, 63: $ }, { 4: 17, 5: u, 7: 32, 8: l, 9: o, 11: c, 13: h, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: p, 32: _, 33: R, 34: m, 35: I, 36: q, 44: v, 62: A, 63: $ }, { 4: 17, 5: u, 7: 33, 8: l, 9: o, 11: c, 13: h, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: p, 32: _, 33: R, 34: m, 35: I, 36: q, 44: v, 62: A, 63: $ }, { 4: 17, 5: u, 7: 34, 8: l, 9: o, 11: c, 13: h, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: p, 32: _, 33: R, 34: m, 35: I, 36: q, 44: v, 62: A, 63: $ }, { 4: 17, 5: u, 7: 35, 8: l, 9: o, 11: c, 13: h, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: p, 32: _, 33: R, 34: m, 35: I, 36: q, 44: v, 62: A, 63: $ }, { 18: 36, 62: [1, 37], 63: [1, 38] }, { 45: 39, 62: [1, 40], 63: [1, 41] }, { 51: [1, 42], 53: [1, 43] }, e(D, [2, 20]), e(D, [2, 21]), e(D, [2, 22]), e(D, [2, 23]), e(D, [2, 24]), e(D, [2, 25]), e(ye, [2, 49]), e(ye, [2, 50]), { 1: [2, 3] }, { 8: [2, 8] }, { 8: [2, 9] }, { 8: [2, 10] }, { 8: [2, 11] }, { 8: [2, 12] }, { 19: [1, 44] }, { 19: [2, 47] }, { 19: [2, 48] }, { 19: [1, 45] }, { 19: [2, 53] }, { 19: [2, 54] }, { 52: 46, 55: pe, 56: de, 57: ge, 58: _e, 59: Ee, 60: Re, 61: fe }, { 52: 54, 55: pe, 56: de, 57: ge, 58: _e, 59: Ee, 60: Re, 61: fe }, { 5: [1, 55] }, { 5: [1, 56] }, { 53: [1, 57] }, e(C, [2, 40]), e(C, [2, 41]), e(C, [2, 42]), e(C, [2, 43]), e(C, [2, 44]), e(C, [2, 45]), e(C, [2, 46]), { 54: [1, 58] }, { 5: P, 20: 59, 21: U, 24: Y, 26: V, 28: B, 30: Q }, { 5: G, 30: z, 46: 66, 47: X, 49: J }, { 23: 71, 62: A, 63: $ }, { 23: 72, 62: A, 63: $ }, e(S, [2, 13]), { 22: [1, 73] }, { 22: [1, 74] }, { 22: [1, 75] }, { 22: [1, 76] }, { 5: P, 20: 77, 21: U, 24: Y, 26: V, 28: B, 30: Q }, e(S, [2, 19]), e(S, [2, 33]), { 22: [1, 78] }, { 22: [1, 79] }, { 5: G, 30: z, 46: 80, 47: X, 49: J }, e(S, [2, 37]), e(S, [2, 38]), e(S, [2, 39]), { 23: 81, 62: A, 63: $ }, { 25: 82, 62: [1, 83], 63: [1, 84] }, { 27: 85, 37: [1, 86], 38: [1, 87], 39: [1, 88] }, { 29: 89, 40: [1, 90], 41: [1, 91], 42: [1, 92], 43: [1, 93] }, e(S, [2, 18]), { 48: 94, 62: [1, 95], 63: [1, 96] }, { 50: 97, 62: [1, 98], 63: [1, 99] }, e(S, [2, 36]), { 5: [1, 100] }, { 5: [1, 101] }, { 5: [2, 51] }, { 5: [2, 52] }, { 5: [1, 102] }, { 5: [2, 26] }, { 5: [2, 27] }, { 5: [2, 28] }, { 5: [1, 103] }, { 5: [2, 29] }, { 5: [2, 30] }, { 5: [2, 31] }, { 5: [2, 32] }, { 5: [1, 104] }, { 5: [2, 55] }, { 5: [2, 56] }, { 5: [1, 105] }, { 5: [2, 57] }, { 5: [2, 58] }, { 5: P, 20: 106, 21: U, 24: Y, 26: V, 28: B, 30: Q }, { 5: P, 20: 107, 21: U, 24: Y, 26: V, 28: B, 30: Q }, { 5: P, 20: 108, 21: U, 24: Y, 26: V, 28: B, 30: Q }, { 5: P, 20: 109, 21: U, 24: Y, 26: V, 28: B, 30: Q }, { 5: G, 30: z, 46: 110, 47: X, 49: J }, { 5: G, 30: z, 46: 111, 47: X, 49: J }, e(S, [2, 14]), e(S, [2, 15]), e(S, [2, 16]), e(S, [2, 17]), e(S, [2, 34]), e(S, [2, 35])],
|
|
121
|
-
defaultActions: { 8: [2, 2], 12: [2, 1], 30: [2, 3], 31: [2, 8], 32: [2, 9], 33: [2, 10], 34: [2, 11], 35: [2, 12], 37: [2, 47], 38: [2, 48], 40: [2, 53], 41: [2, 54], 83: [2, 51], 84: [2, 52], 86: [2, 26], 87: [2, 27], 88: [2, 28], 90: [2, 29], 91: [2, 30], 92: [2, 31], 93: [2, 32], 95: [2, 55], 96: [2, 56], 98: [2, 57], 99: [2, 58] },
|
|
122
|
-
parseError: /* @__PURE__ */ n(function(w, t) {
|
|
123
|
-
if (t.recoverable)
|
|
124
|
-
this.trace(w);
|
|
125
|
-
else {
|
|
126
|
-
var a = new Error(w);
|
|
127
|
-
throw a.hash = t, a;
|
|
128
|
-
}
|
|
129
|
-
}, "parseError"),
|
|
130
|
-
parse: /* @__PURE__ */ n(function(w) {
|
|
131
|
-
var t = this, a = [0], r = [], d = [null], s = [], b = this.table, E = "", ee = 0, me = 0, Oe = 2, Ie = 1, Le = s.slice.call(arguments, 1), f = Object.create(this.lexer), F = { yy: {} };
|
|
132
|
-
for (var ne in this.yy)
|
|
133
|
-
Object.prototype.hasOwnProperty.call(this.yy, ne) && (F.yy[ne] = this.yy[ne]);
|
|
134
|
-
f.setInput(w, F.yy), F.yy.lexer = f, F.yy.parser = this, typeof f.yylloc > "u" && (f.yylloc = {});
|
|
135
|
-
var se = f.yylloc;
|
|
136
|
-
s.push(se);
|
|
137
|
-
var Ce = f.options && f.options.ranges;
|
|
138
|
-
typeof F.yy.parseError == "function" ? this.parseError = F.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
139
|
-
function Fe(k) {
|
|
140
|
-
a.length = a.length - 2 * k, d.length = d.length - k, s.length = s.length - k;
|
|
141
|
-
}
|
|
142
|
-
n(Fe, "popStack");
|
|
143
|
-
function Se() {
|
|
144
|
-
var k;
|
|
145
|
-
return k = r.pop() || f.lex() || Ie, typeof k != "number" && (k instanceof Array && (r = k, k = r.pop()), k = t.symbols_[k] || k), k;
|
|
146
|
-
}
|
|
147
|
-
n(Se, "lex");
|
|
148
|
-
for (var N, M, x, ae, K = {}, te, O, be, ie; ; ) {
|
|
149
|
-
if (M = a[a.length - 1], this.defaultActions[M] ? x = this.defaultActions[M] : ((N === null || typeof N > "u") && (N = Se()), x = b[M] && b[M][N]), typeof x > "u" || !x.length || !x[0]) {
|
|
150
|
-
var le = "";
|
|
151
|
-
ie = [];
|
|
152
|
-
for (te in b[M])
|
|
153
|
-
this.terminals_[te] && te > Oe && ie.push("'" + this.terminals_[te] + "'");
|
|
154
|
-
f.showPosition ? le = "Parse error on line " + (ee + 1) + `:
|
|
155
|
-
` + f.showPosition() + `
|
|
156
|
-
Expecting ` + ie.join(", ") + ", got '" + (this.terminals_[N] || N) + "'" : le = "Parse error on line " + (ee + 1) + ": Unexpected " + (N == Ie ? "end of input" : "'" + (this.terminals_[N] || N) + "'"), this.parseError(le, {
|
|
157
|
-
text: f.match,
|
|
158
|
-
token: this.terminals_[N] || N,
|
|
159
|
-
line: f.yylineno,
|
|
160
|
-
loc: se,
|
|
161
|
-
expected: ie
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
if (x[0] instanceof Array && x.length > 1)
|
|
165
|
-
throw new Error("Parse Error: multiple actions possible at state: " + M + ", token: " + N);
|
|
166
|
-
switch (x[0]) {
|
|
167
|
-
case 1:
|
|
168
|
-
a.push(N), d.push(f.yytext), s.push(f.yylloc), a.push(x[1]), N = null, me = f.yyleng, E = f.yytext, ee = f.yylineno, se = f.yylloc;
|
|
169
|
-
break;
|
|
170
|
-
case 2:
|
|
171
|
-
if (O = this.productions_[x[1]][1], K.$ = d[d.length - O], K._$ = {
|
|
172
|
-
first_line: s[s.length - (O || 1)].first_line,
|
|
173
|
-
last_line: s[s.length - 1].last_line,
|
|
174
|
-
first_column: s[s.length - (O || 1)].first_column,
|
|
175
|
-
last_column: s[s.length - 1].last_column
|
|
176
|
-
}, Ce && (K._$.range = [
|
|
177
|
-
s[s.length - (O || 1)].range[0],
|
|
178
|
-
s[s.length - 1].range[1]
|
|
179
|
-
]), ae = this.performAction.apply(K, [
|
|
180
|
-
E,
|
|
181
|
-
me,
|
|
182
|
-
ee,
|
|
183
|
-
F.yy,
|
|
184
|
-
x[1],
|
|
185
|
-
d,
|
|
186
|
-
s
|
|
187
|
-
].concat(Le)), typeof ae < "u")
|
|
188
|
-
return ae;
|
|
189
|
-
O && (a = a.slice(0, -1 * O * 2), d = d.slice(0, -1 * O), s = s.slice(0, -1 * O)), a.push(this.productions_[x[1]][0]), d.push(K.$), s.push(K._$), be = b[a[a.length - 2]][a[a.length - 1]], a.push(be);
|
|
190
|
-
break;
|
|
191
|
-
case 3:
|
|
192
|
-
return !0;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
return !0;
|
|
196
|
-
}, "parse")
|
|
197
|
-
}, $e = /* @__PURE__ */ function() {
|
|
198
|
-
var w = {
|
|
199
|
-
EOF: 1,
|
|
200
|
-
parseError: /* @__PURE__ */ n(function(t, a) {
|
|
201
|
-
if (this.yy.parser)
|
|
202
|
-
this.yy.parser.parseError(t, a);
|
|
203
|
-
else
|
|
204
|
-
throw new Error(t);
|
|
205
|
-
}, "parseError"),
|
|
206
|
-
// resets the lexer, sets new input
|
|
207
|
-
setInput: /* @__PURE__ */ n(function(t, a) {
|
|
208
|
-
return this.yy = a || this.yy || {}, this._input = t, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
209
|
-
first_line: 1,
|
|
210
|
-
first_column: 0,
|
|
211
|
-
last_line: 1,
|
|
212
|
-
last_column: 0
|
|
213
|
-
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
214
|
-
}, "setInput"),
|
|
215
|
-
// consumes and returns one char from the input
|
|
216
|
-
input: /* @__PURE__ */ n(function() {
|
|
217
|
-
var t = this._input[0];
|
|
218
|
-
this.yytext += t, this.yyleng++, this.offset++, this.match += t, this.matched += t;
|
|
219
|
-
var a = t.match(/(?:\r\n?|\n).*/g);
|
|
220
|
-
return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), t;
|
|
221
|
-
}, "input"),
|
|
222
|
-
// unshifts one char (or a string) into the input
|
|
223
|
-
unput: /* @__PURE__ */ n(function(t) {
|
|
224
|
-
var a = t.length, r = t.split(/(?:\r\n?|\n)/g);
|
|
225
|
-
this._input = t + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
|
|
226
|
-
var d = this.match.split(/(?:\r\n?|\n)/g);
|
|
227
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), r.length - 1 && (this.yylineno -= r.length - 1);
|
|
228
|
-
var s = this.yylloc.range;
|
|
229
|
-
return this.yylloc = {
|
|
230
|
-
first_line: this.yylloc.first_line,
|
|
231
|
-
last_line: this.yylineno + 1,
|
|
232
|
-
first_column: this.yylloc.first_column,
|
|
233
|
-
last_column: r ? (r.length === d.length ? this.yylloc.first_column : 0) + d[d.length - r.length].length - r[0].length : this.yylloc.first_column - a
|
|
234
|
-
}, this.options.ranges && (this.yylloc.range = [s[0], s[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
|
|
235
|
-
}, "unput"),
|
|
236
|
-
// When called from action, caches matched text and appends it on next action
|
|
237
|
-
more: /* @__PURE__ */ n(function() {
|
|
238
|
-
return this._more = !0, this;
|
|
239
|
-
}, "more"),
|
|
240
|
-
// 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.
|
|
241
|
-
reject: /* @__PURE__ */ n(function() {
|
|
242
|
-
if (this.options.backtrack_lexer)
|
|
243
|
-
this._backtrack = !0;
|
|
244
|
-
else
|
|
245
|
-
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).
|
|
246
|
-
` + this.showPosition(), {
|
|
247
|
-
text: "",
|
|
248
|
-
token: null,
|
|
249
|
-
line: this.yylineno
|
|
250
|
-
});
|
|
251
|
-
return this;
|
|
252
|
-
}, "reject"),
|
|
253
|
-
// retain first n characters of the match
|
|
254
|
-
less: /* @__PURE__ */ n(function(t) {
|
|
255
|
-
this.unput(this.match.slice(t));
|
|
256
|
-
}, "less"),
|
|
257
|
-
// displays already matched input, i.e. for error messages
|
|
258
|
-
pastInput: /* @__PURE__ */ n(function() {
|
|
259
|
-
var t = this.matched.substr(0, this.matched.length - this.match.length);
|
|
260
|
-
return (t.length > 20 ? "..." : "") + t.substr(-20).replace(/\n/g, "");
|
|
261
|
-
}, "pastInput"),
|
|
262
|
-
// displays upcoming input, i.e. for error messages
|
|
263
|
-
upcomingInput: /* @__PURE__ */ n(function() {
|
|
264
|
-
var t = this.match;
|
|
265
|
-
return t.length < 20 && (t += this._input.substr(0, 20 - t.length)), (t.substr(0, 20) + (t.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
266
|
-
}, "upcomingInput"),
|
|
267
|
-
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
268
|
-
showPosition: /* @__PURE__ */ n(function() {
|
|
269
|
-
var t = this.pastInput(), a = new Array(t.length + 1).join("-");
|
|
270
|
-
return t + this.upcomingInput() + `
|
|
271
|
-
` + a + "^";
|
|
272
|
-
}, "showPosition"),
|
|
273
|
-
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
274
|
-
test_match: /* @__PURE__ */ n(function(t, a) {
|
|
275
|
-
var r, d, s;
|
|
276
|
-
if (this.options.backtrack_lexer && (s = {
|
|
277
|
-
yylineno: this.yylineno,
|
|
278
|
-
yylloc: {
|
|
279
|
-
first_line: this.yylloc.first_line,
|
|
280
|
-
last_line: this.last_line,
|
|
281
|
-
first_column: this.yylloc.first_column,
|
|
282
|
-
last_column: this.yylloc.last_column
|
|
283
|
-
},
|
|
284
|
-
yytext: this.yytext,
|
|
285
|
-
match: this.match,
|
|
286
|
-
matches: this.matches,
|
|
287
|
-
matched: this.matched,
|
|
288
|
-
yyleng: this.yyleng,
|
|
289
|
-
offset: this.offset,
|
|
290
|
-
_more: this._more,
|
|
291
|
-
_input: this._input,
|
|
292
|
-
yy: this.yy,
|
|
293
|
-
conditionStack: this.conditionStack.slice(0),
|
|
294
|
-
done: this.done
|
|
295
|
-
}, this.options.ranges && (s.yylloc.range = this.yylloc.range.slice(0))), d = t[0].match(/(?:\r\n?|\n).*/g), d && (this.yylineno += d.length), this.yylloc = {
|
|
296
|
-
first_line: this.yylloc.last_line,
|
|
297
|
-
last_line: this.yylineno + 1,
|
|
298
|
-
first_column: this.yylloc.last_column,
|
|
299
|
-
last_column: d ? d[d.length - 1].length - d[d.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + t[0].length
|
|
300
|
-
}, this.yytext += t[0], this.match += t[0], this.matches = t, 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(t[0].length), this.matched += t[0], r = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), r)
|
|
301
|
-
return r;
|
|
302
|
-
if (this._backtrack) {
|
|
303
|
-
for (var b in s)
|
|
304
|
-
this[b] = s[b];
|
|
305
|
-
return !1;
|
|
306
|
-
}
|
|
307
|
-
return !1;
|
|
308
|
-
}, "test_match"),
|
|
309
|
-
// return next match in input
|
|
310
|
-
next: /* @__PURE__ */ n(function() {
|
|
311
|
-
if (this.done)
|
|
312
|
-
return this.EOF;
|
|
313
|
-
this._input || (this.done = !0);
|
|
314
|
-
var t, a, r, d;
|
|
315
|
-
this._more || (this.yytext = "", this.match = "");
|
|
316
|
-
for (var s = this._currentRules(), b = 0; b < s.length; b++)
|
|
317
|
-
if (r = this._input.match(this.rules[s[b]]), r && (!a || r[0].length > a[0].length)) {
|
|
318
|
-
if (a = r, d = b, this.options.backtrack_lexer) {
|
|
319
|
-
if (t = this.test_match(r, s[b]), t !== !1)
|
|
320
|
-
return t;
|
|
321
|
-
if (this._backtrack) {
|
|
322
|
-
a = !1;
|
|
323
|
-
continue;
|
|
324
|
-
} else
|
|
325
|
-
return !1;
|
|
326
|
-
} else if (!this.options.flex)
|
|
327
|
-
break;
|
|
328
|
-
}
|
|
329
|
-
return a ? (t = this.test_match(a, s[d]), t !== !1 ? t : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
330
|
-
` + this.showPosition(), {
|
|
331
|
-
text: "",
|
|
332
|
-
token: null,
|
|
333
|
-
line: this.yylineno
|
|
334
|
-
});
|
|
335
|
-
}, "next"),
|
|
336
|
-
// return next match that has a token
|
|
337
|
-
lex: /* @__PURE__ */ n(function() {
|
|
338
|
-
var t = this.next();
|
|
339
|
-
return t || this.lex();
|
|
340
|
-
}, "lex"),
|
|
341
|
-
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
342
|
-
begin: /* @__PURE__ */ n(function(t) {
|
|
343
|
-
this.conditionStack.push(t);
|
|
344
|
-
}, "begin"),
|
|
345
|
-
// pop the previously active lexer condition state off the condition stack
|
|
346
|
-
popState: /* @__PURE__ */ n(function() {
|
|
347
|
-
var t = this.conditionStack.length - 1;
|
|
348
|
-
return t > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
349
|
-
}, "popState"),
|
|
350
|
-
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
351
|
-
_currentRules: /* @__PURE__ */ n(function() {
|
|
352
|
-
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
353
|
-
}, "_currentRules"),
|
|
354
|
-
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
355
|
-
topState: /* @__PURE__ */ n(function(t) {
|
|
356
|
-
return t = this.conditionStack.length - 1 - Math.abs(t || 0), t >= 0 ? this.conditionStack[t] : "INITIAL";
|
|
357
|
-
}, "topState"),
|
|
358
|
-
// alias for begin(condition)
|
|
359
|
-
pushState: /* @__PURE__ */ n(function(t) {
|
|
360
|
-
this.begin(t);
|
|
361
|
-
}, "pushState"),
|
|
362
|
-
// return the number of states currently on the stack
|
|
363
|
-
stateStackSize: /* @__PURE__ */ n(function() {
|
|
364
|
-
return this.conditionStack.length;
|
|
365
|
-
}, "stateStackSize"),
|
|
366
|
-
options: { "case-insensitive": !0 },
|
|
367
|
-
performAction: /* @__PURE__ */ n(function(t, a, r, d) {
|
|
368
|
-
switch (r) {
|
|
369
|
-
case 0:
|
|
370
|
-
return "title";
|
|
371
|
-
case 1:
|
|
372
|
-
return this.begin("acc_title"), 9;
|
|
373
|
-
case 2:
|
|
374
|
-
return this.popState(), "acc_title_value";
|
|
375
|
-
case 3:
|
|
376
|
-
return this.begin("acc_descr"), 11;
|
|
377
|
-
case 4:
|
|
378
|
-
return this.popState(), "acc_descr_value";
|
|
379
|
-
case 5:
|
|
380
|
-
this.begin("acc_descr_multiline");
|
|
381
|
-
break;
|
|
382
|
-
case 6:
|
|
383
|
-
this.popState();
|
|
384
|
-
break;
|
|
385
|
-
case 7:
|
|
386
|
-
return "acc_descr_multiline_value";
|
|
387
|
-
case 8:
|
|
388
|
-
return 5;
|
|
389
|
-
case 9:
|
|
390
|
-
break;
|
|
391
|
-
case 10:
|
|
392
|
-
break;
|
|
393
|
-
case 11:
|
|
394
|
-
break;
|
|
395
|
-
case 12:
|
|
396
|
-
return 8;
|
|
397
|
-
case 13:
|
|
398
|
-
return 6;
|
|
399
|
-
case 14:
|
|
400
|
-
return 19;
|
|
401
|
-
case 15:
|
|
402
|
-
return 30;
|
|
403
|
-
case 16:
|
|
404
|
-
return 22;
|
|
405
|
-
case 17:
|
|
406
|
-
return 21;
|
|
407
|
-
case 18:
|
|
408
|
-
return 24;
|
|
409
|
-
case 19:
|
|
410
|
-
return 26;
|
|
411
|
-
case 20:
|
|
412
|
-
return 28;
|
|
413
|
-
case 21:
|
|
414
|
-
return 31;
|
|
415
|
-
case 22:
|
|
416
|
-
return 32;
|
|
417
|
-
case 23:
|
|
418
|
-
return 33;
|
|
419
|
-
case 24:
|
|
420
|
-
return 34;
|
|
421
|
-
case 25:
|
|
422
|
-
return 35;
|
|
423
|
-
case 26:
|
|
424
|
-
return 36;
|
|
425
|
-
case 27:
|
|
426
|
-
return 37;
|
|
427
|
-
case 28:
|
|
428
|
-
return 38;
|
|
429
|
-
case 29:
|
|
430
|
-
return 39;
|
|
431
|
-
case 30:
|
|
432
|
-
return 40;
|
|
433
|
-
case 31:
|
|
434
|
-
return 41;
|
|
435
|
-
case 32:
|
|
436
|
-
return 42;
|
|
437
|
-
case 33:
|
|
438
|
-
return 43;
|
|
439
|
-
case 34:
|
|
440
|
-
return 44;
|
|
441
|
-
case 35:
|
|
442
|
-
return 55;
|
|
443
|
-
case 36:
|
|
444
|
-
return 56;
|
|
445
|
-
case 37:
|
|
446
|
-
return 57;
|
|
447
|
-
case 38:
|
|
448
|
-
return 58;
|
|
449
|
-
case 39:
|
|
450
|
-
return 59;
|
|
451
|
-
case 40:
|
|
452
|
-
return 60;
|
|
453
|
-
case 41:
|
|
454
|
-
return 61;
|
|
455
|
-
case 42:
|
|
456
|
-
return 47;
|
|
457
|
-
case 43:
|
|
458
|
-
return 49;
|
|
459
|
-
case 44:
|
|
460
|
-
return 51;
|
|
461
|
-
case 45:
|
|
462
|
-
return 54;
|
|
463
|
-
case 46:
|
|
464
|
-
return 53;
|
|
465
|
-
case 47:
|
|
466
|
-
this.begin("string");
|
|
467
|
-
break;
|
|
468
|
-
case 48:
|
|
469
|
-
this.popState();
|
|
470
|
-
break;
|
|
471
|
-
case 49:
|
|
472
|
-
return "qString";
|
|
473
|
-
case 50:
|
|
474
|
-
return a.yytext = a.yytext.trim(), 62;
|
|
475
|
-
}
|
|
476
|
-
}, "anonymous"),
|
|
477
|
-
rules: [/^(?:title\s[^#\n;]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:(\r?\n)+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:%[^\n]*)/i, /^(?:$)/i, /^(?:requirementDiagram\b)/i, /^(?:\{)/i, /^(?:\})/i, /^(?::)/i, /^(?:id\b)/i, /^(?:text\b)/i, /^(?:risk\b)/i, /^(?:verifyMethod\b)/i, /^(?:requirement\b)/i, /^(?:functionalRequirement\b)/i, /^(?:interfaceRequirement\b)/i, /^(?:performanceRequirement\b)/i, /^(?:physicalRequirement\b)/i, /^(?:designConstraint\b)/i, /^(?:low\b)/i, /^(?:medium\b)/i, /^(?:high\b)/i, /^(?:analysis\b)/i, /^(?:demonstration\b)/i, /^(?:inspection\b)/i, /^(?:test\b)/i, /^(?:element\b)/i, /^(?:contains\b)/i, /^(?:copies\b)/i, /^(?:derives\b)/i, /^(?:satisfies\b)/i, /^(?:verifies\b)/i, /^(?:refines\b)/i, /^(?:traces\b)/i, /^(?:type\b)/i, /^(?:docref\b)/i, /^(?:<-)/i, /^(?:->)/i, /^(?:-)/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[\w][^\r\n\{\<\>\-\=]*)/i],
|
|
478
|
-
conditions: { acc_descr_multiline: { rules: [6, 7], inclusive: !1 }, acc_descr: { rules: [4], inclusive: !1 }, acc_title: { rules: [2], inclusive: !1 }, unqString: { rules: [], inclusive: !1 }, token: { rules: [], inclusive: !1 }, string: { rules: [48, 49], inclusive: !1 }, INITIAL: { rules: [0, 1, 3, 5, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 50], inclusive: !0 } }
|
|
479
|
-
};
|
|
480
|
-
return w;
|
|
481
|
-
}();
|
|
482
|
-
re.lexer = $e;
|
|
483
|
-
function Z() {
|
|
484
|
-
this.yy = {};
|
|
485
|
-
}
|
|
486
|
-
return n(Z, "Parser"), Z.prototype = re, re.Parser = Z, new Z();
|
|
487
|
-
}();
|
|
488
|
-
he.parser = he;
|
|
489
|
-
var We = he, ue = [], T = {}, H = /* @__PURE__ */ new Map(), L = {}, j = /* @__PURE__ */ new Map(), He = {
|
|
490
|
-
REQUIREMENT: "Requirement",
|
|
491
|
-
FUNCTIONAL_REQUIREMENT: "Functional Requirement",
|
|
492
|
-
INTERFACE_REQUIREMENT: "Interface Requirement",
|
|
493
|
-
PERFORMANCE_REQUIREMENT: "Performance Requirement",
|
|
494
|
-
PHYSICAL_REQUIREMENT: "Physical Requirement",
|
|
495
|
-
DESIGN_CONSTRAINT: "Design Constraint"
|
|
496
|
-
}, je = {
|
|
497
|
-
LOW_RISK: "Low",
|
|
498
|
-
MED_RISK: "Medium",
|
|
499
|
-
HIGH_RISK: "High"
|
|
500
|
-
}, Ge = {
|
|
501
|
-
VERIFY_ANALYSIS: "Analysis",
|
|
502
|
-
VERIFY_DEMONSTRATION: "Demonstration",
|
|
503
|
-
VERIFY_INSPECTION: "Inspection",
|
|
504
|
-
VERIFY_TEST: "Test"
|
|
505
|
-
}, ze = {
|
|
506
|
-
CONTAINS: "contains",
|
|
507
|
-
COPIES: "copies",
|
|
508
|
-
DERIVES: "derives",
|
|
509
|
-
SATISFIES: "satisfies",
|
|
510
|
-
VERIFIES: "verifies",
|
|
511
|
-
REFINES: "refines",
|
|
512
|
-
TRACES: "traces"
|
|
513
|
-
}, Xe = /* @__PURE__ */ n((e, i) => (H.has(e) || H.set(e, {
|
|
514
|
-
name: e,
|
|
515
|
-
type: i,
|
|
516
|
-
id: T.id,
|
|
517
|
-
text: T.text,
|
|
518
|
-
risk: T.risk,
|
|
519
|
-
verifyMethod: T.verifyMethod
|
|
520
|
-
}), T = {}, H.get(e)), "addRequirement"), Je = /* @__PURE__ */ n(() => H, "getRequirements"), Ze = /* @__PURE__ */ n((e) => {
|
|
521
|
-
T !== void 0 && (T.id = e);
|
|
522
|
-
}, "setNewReqId"), et = /* @__PURE__ */ n((e) => {
|
|
523
|
-
T !== void 0 && (T.text = e);
|
|
524
|
-
}, "setNewReqText"), tt = /* @__PURE__ */ n((e) => {
|
|
525
|
-
T !== void 0 && (T.risk = e);
|
|
526
|
-
}, "setNewReqRisk"), it = /* @__PURE__ */ n((e) => {
|
|
527
|
-
T !== void 0 && (T.verifyMethod = e);
|
|
528
|
-
}, "setNewReqVerifyMethod"), rt = /* @__PURE__ */ n((e) => (j.has(e) || (j.set(e, {
|
|
529
|
-
name: e,
|
|
530
|
-
type: L.type,
|
|
531
|
-
docRef: L.docRef
|
|
532
|
-
}), xe.info("Added new requirement: ", e)), L = {}, j.get(e)), "addElement"), nt = /* @__PURE__ */ n(() => j, "getElements"), st = /* @__PURE__ */ n((e) => {
|
|
533
|
-
L !== void 0 && (L.type = e);
|
|
534
|
-
}, "setNewElementType"), at = /* @__PURE__ */ n((e) => {
|
|
535
|
-
L !== void 0 && (L.docRef = e);
|
|
536
|
-
}, "setNewElementDocRef"), lt = /* @__PURE__ */ n((e, i, o) => {
|
|
537
|
-
ue.push({
|
|
538
|
-
type: e,
|
|
539
|
-
src: i,
|
|
540
|
-
dst: o
|
|
541
|
-
});
|
|
542
|
-
}, "addRelationship"), ot = /* @__PURE__ */ n(() => ue, "getRelationships"), ht = /* @__PURE__ */ n(() => {
|
|
543
|
-
ue = [], T = {}, H = /* @__PURE__ */ new Map(), L = {}, j = /* @__PURE__ */ new Map(), Ve();
|
|
544
|
-
}, "clear"), ct = {
|
|
545
|
-
RequirementType: He,
|
|
546
|
-
RiskLevel: je,
|
|
547
|
-
VerifyType: Ge,
|
|
548
|
-
Relationships: ze,
|
|
549
|
-
getConfig: /* @__PURE__ */ n(() => ke().req, "getConfig"),
|
|
550
|
-
addRequirement: Xe,
|
|
551
|
-
getRequirements: Je,
|
|
552
|
-
setNewReqId: Ze,
|
|
553
|
-
setNewReqText: et,
|
|
554
|
-
setNewReqRisk: tt,
|
|
555
|
-
setNewReqVerifyMethod: it,
|
|
556
|
-
setAccTitle: Ue,
|
|
557
|
-
getAccTitle: Pe,
|
|
558
|
-
setAccDescription: De,
|
|
559
|
-
getAccDescription: Me,
|
|
560
|
-
addElement: rt,
|
|
561
|
-
getElements: nt,
|
|
562
|
-
setNewElementType: st,
|
|
563
|
-
setNewElementDocRef: at,
|
|
564
|
-
addRelationship: lt,
|
|
565
|
-
getRelationships: ot,
|
|
566
|
-
clear: ht
|
|
567
|
-
}, ut = /* @__PURE__ */ n((e) => `
|
|
568
|
-
|
|
569
|
-
marker {
|
|
570
|
-
fill: ${e.relationColor};
|
|
571
|
-
stroke: ${e.relationColor};
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
marker.cross {
|
|
575
|
-
stroke: ${e.lineColor};
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
svg {
|
|
579
|
-
font-family: ${e.fontFamily};
|
|
580
|
-
font-size: ${e.fontSize};
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
.reqBox {
|
|
584
|
-
fill: ${e.requirementBackground};
|
|
585
|
-
fill-opacity: 1.0;
|
|
586
|
-
stroke: ${e.requirementBorderColor};
|
|
587
|
-
stroke-width: ${e.requirementBorderSize};
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
.reqTitle, .reqLabel{
|
|
591
|
-
fill: ${e.requirementTextColor};
|
|
592
|
-
}
|
|
593
|
-
.reqLabelBox {
|
|
594
|
-
fill: ${e.relationLabelBackground};
|
|
595
|
-
fill-opacity: 1.0;
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
.req-title-line {
|
|
599
|
-
stroke: ${e.requirementBorderColor};
|
|
600
|
-
stroke-width: ${e.requirementBorderSize};
|
|
601
|
-
}
|
|
602
|
-
.relationshipLine {
|
|
603
|
-
stroke: ${e.relationColor};
|
|
604
|
-
stroke-width: 1;
|
|
605
|
-
}
|
|
606
|
-
.relationshipLabel {
|
|
607
|
-
fill: ${e.relationLabelColor};
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
`, "getStyles"), yt = ut, ce = {
|
|
611
|
-
CONTAINS: "contains",
|
|
612
|
-
ARROW: "arrow"
|
|
613
|
-
}, pt = /* @__PURE__ */ n((e, i) => {
|
|
614
|
-
let o = e.append("defs").append("marker").attr("id", ce.CONTAINS + "_line_ending").attr("refX", 0).attr("refY", i.line_height / 2).attr("markerWidth", i.line_height).attr("markerHeight", i.line_height).attr("orient", "auto").append("g");
|
|
615
|
-
o.append("circle").attr("cx", i.line_height / 2).attr("cy", i.line_height / 2).attr("r", i.line_height / 2).attr("fill", "none"), o.append("line").attr("x1", 0).attr("x2", i.line_height).attr("y1", i.line_height / 2).attr("y2", i.line_height / 2).attr("stroke-width", 1), o.append("line").attr("y1", 0).attr("y2", i.line_height).attr("x1", i.line_height / 2).attr("x2", i.line_height / 2).attr("stroke-width", 1), e.append("defs").append("marker").attr("id", ce.ARROW + "_line_ending").attr("refX", i.line_height).attr("refY", 0.5 * i.line_height).attr("markerWidth", i.line_height).attr("markerHeight", i.line_height).attr("orient", "auto").append("path").attr(
|
|
616
|
-
"d",
|
|
617
|
-
`M0,0
|
|
618
|
-
L${i.line_height},${i.line_height / 2}
|
|
619
|
-
M${i.line_height},${i.line_height / 2}
|
|
620
|
-
L0,${i.line_height}`
|
|
621
|
-
).attr("stroke-width", 1);
|
|
622
|
-
}, "insertLineEndings"), Ae = {
|
|
623
|
-
ReqMarkers: ce,
|
|
624
|
-
insertLineEndings: pt
|
|
625
|
-
}, g = {}, Te = 0, we = /* @__PURE__ */ n((e, i) => e.insert("rect", "#" + i).attr("class", "req reqBox").attr("x", 0).attr("y", 0).attr("width", g.rect_min_width + "px").attr("height", g.rect_min_height + "px"), "newRectNode"), qe = /* @__PURE__ */ n((e, i, o) => {
|
|
626
|
-
let c = g.rect_min_width / 2, h = e.append("text").attr("class", "req reqLabel reqTitle").attr("id", i).attr("x", c).attr("y", g.rect_padding).attr("dominant-baseline", "hanging"), y = 0;
|
|
627
|
-
o.forEach((_) => {
|
|
628
|
-
y == 0 ? h.append("tspan").attr("text-anchor", "middle").attr("x", g.rect_min_width / 2).attr("dy", 0).text(_) : h.append("tspan").attr("text-anchor", "middle").attr("x", g.rect_min_width / 2).attr("dy", g.line_height * 0.75).text(_), y++;
|
|
629
|
-
});
|
|
630
|
-
let u = 1.5 * g.rect_padding, l = y * g.line_height * 0.75, p = u + l;
|
|
631
|
-
return e.append("line").attr("class", "req-title-line").attr("x1", "0").attr("x2", g.rect_min_width).attr("y1", p).attr("y2", p), {
|
|
632
|
-
titleNode: h,
|
|
633
|
-
y: p
|
|
634
|
-
};
|
|
635
|
-
}, "newTitleNode"), ve = /* @__PURE__ */ n((e, i, o, c) => {
|
|
636
|
-
let h = e.append("text").attr("class", "req reqLabel").attr("id", i).attr("x", g.rect_padding).attr("y", c).attr("dominant-baseline", "hanging"), y = 0;
|
|
637
|
-
const u = 30;
|
|
638
|
-
let l = [];
|
|
639
|
-
return o.forEach((p) => {
|
|
640
|
-
let _ = p.length;
|
|
641
|
-
for (; _ > u && y < 3; ) {
|
|
642
|
-
let R = p.substring(0, u);
|
|
643
|
-
p = p.substring(u, p.length), _ = p.length, l[l.length] = R, y++;
|
|
644
|
-
}
|
|
645
|
-
if (y == 3) {
|
|
646
|
-
let R = l[l.length - 1];
|
|
647
|
-
l[l.length - 1] = R.substring(0, R.length - 4) + "...";
|
|
648
|
-
} else
|
|
649
|
-
l[l.length] = p;
|
|
650
|
-
y = 0;
|
|
651
|
-
}), l.forEach((p) => {
|
|
652
|
-
h.append("tspan").attr("x", g.rect_padding).attr("dy", g.line_height).text(p);
|
|
653
|
-
}), h;
|
|
654
|
-
}, "newBodyNode"), dt = /* @__PURE__ */ n((e, i, o, c) => {
|
|
655
|
-
const h = i.node().getTotalLength(), y = i.node().getPointAtLength(h * 0.5), u = "rel" + Te;
|
|
656
|
-
Te++;
|
|
657
|
-
const l = e.append("text").attr("class", "req relationshipLabel").attr("id", u).attr("x", y.x).attr("y", y.y).attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(c).node().getBBox();
|
|
658
|
-
e.insert("rect", "#" + u).attr("class", "req reqLabelBox").attr("x", y.x - l.width / 2).attr("y", y.y - l.height / 2).attr("width", l.width).attr("height", l.height).attr("fill", "white").attr("fill-opacity", "85%");
|
|
659
|
-
}, "addEdgeLabel"), gt = /* @__PURE__ */ n(function(e, i, o, c, h) {
|
|
660
|
-
const y = o.edge(W(i.src), W(i.dst)), u = Be().x(function(p) {
|
|
661
|
-
return p.x;
|
|
662
|
-
}).y(function(p) {
|
|
663
|
-
return p.y;
|
|
664
|
-
}), l = e.insert("path", "#" + c).attr("class", "er relationshipLine").attr("d", u(y.points)).attr("fill", "none");
|
|
665
|
-
i.type == h.db.Relationships.CONTAINS ? l.attr(
|
|
666
|
-
"marker-start",
|
|
667
|
-
"url(" + Ne.getUrl(g.arrowMarkerAbsolute) + "#" + i.type + "_line_ending)"
|
|
668
|
-
) : (l.attr("stroke-dasharray", "10,7"), l.attr(
|
|
669
|
-
"marker-end",
|
|
670
|
-
"url(" + Ne.getUrl(g.arrowMarkerAbsolute) + "#" + Ae.ReqMarkers.ARROW + "_line_ending)"
|
|
671
|
-
)), dt(e, l, g, `<<${i.type}>>`);
|
|
672
|
-
}, "drawRelationshipFromLayout"), _t = /* @__PURE__ */ n((e, i, o) => {
|
|
673
|
-
e.forEach((c, h) => {
|
|
674
|
-
h = W(h), xe.info("Added new requirement: ", h);
|
|
675
|
-
const y = o.append("g").attr("id", h), u = "req-" + h, l = we(y, u);
|
|
676
|
-
let p = [], _ = qe(y, h + "_title", [
|
|
677
|
-
`<<${c.type}>>`,
|
|
678
|
-
`${c.name}`
|
|
679
|
-
]);
|
|
680
|
-
p.push(_.titleNode);
|
|
681
|
-
let R = ve(
|
|
682
|
-
y,
|
|
683
|
-
h + "_body",
|
|
684
|
-
[
|
|
685
|
-
`Id: ${c.id}`,
|
|
686
|
-
`Text: ${c.text}`,
|
|
687
|
-
`Risk: ${c.risk}`,
|
|
688
|
-
`Verification: ${c.verifyMethod}`
|
|
689
|
-
],
|
|
690
|
-
_.y
|
|
691
|
-
);
|
|
692
|
-
p.push(R);
|
|
693
|
-
const m = l.node().getBBox();
|
|
694
|
-
i.setNode(h, {
|
|
695
|
-
width: m.width,
|
|
696
|
-
height: m.height,
|
|
697
|
-
shape: "rect",
|
|
698
|
-
id: h
|
|
699
|
-
});
|
|
700
|
-
});
|
|
701
|
-
}, "drawReqs"), Et = /* @__PURE__ */ n((e, i, o) => {
|
|
702
|
-
e.forEach((c, h) => {
|
|
703
|
-
const y = W(h), u = o.append("g").attr("id", y), l = "element-" + y, p = we(u, l);
|
|
704
|
-
let _ = [], R = qe(u, l + "_title", ["<<Element>>", `${h}`]);
|
|
705
|
-
_.push(R.titleNode);
|
|
706
|
-
let m = ve(
|
|
707
|
-
u,
|
|
708
|
-
l + "_body",
|
|
709
|
-
[`Type: ${c.type || "Not Specified"}`, `Doc Ref: ${c.docRef || "None"}`],
|
|
710
|
-
R.y
|
|
711
|
-
);
|
|
712
|
-
_.push(m);
|
|
713
|
-
const I = p.node().getBBox();
|
|
714
|
-
i.setNode(y, {
|
|
715
|
-
width: I.width,
|
|
716
|
-
height: I.height,
|
|
717
|
-
shape: "rect",
|
|
718
|
-
id: y
|
|
719
|
-
});
|
|
720
|
-
});
|
|
721
|
-
}, "drawElements"), Rt = /* @__PURE__ */ n((e, i) => (e.forEach(function(o) {
|
|
722
|
-
let c = W(o.src), h = W(o.dst);
|
|
723
|
-
i.setEdge(c, h, { relationship: o });
|
|
724
|
-
}), e), "addRelationships"), ft = /* @__PURE__ */ n(function(e, i) {
|
|
725
|
-
i.nodes().forEach(function(o) {
|
|
726
|
-
o !== void 0 && i.node(o) !== void 0 && (e.select("#" + o), e.select("#" + o).attr(
|
|
727
|
-
"transform",
|
|
728
|
-
"translate(" + (i.node(o).x - i.node(o).width / 2) + "," + (i.node(o).y - i.node(o).height / 2) + " )"
|
|
729
|
-
));
|
|
730
|
-
});
|
|
731
|
-
}, "adjustEntities"), W = /* @__PURE__ */ n((e) => e.replace(/\s/g, "").replace(/\./g, "_"), "elementString"), mt = /* @__PURE__ */ n((e, i, o, c) => {
|
|
732
|
-
g = ke().requirement;
|
|
733
|
-
const h = g.securityLevel;
|
|
734
|
-
let y;
|
|
735
|
-
h === "sandbox" && (y = oe("#i" + i));
|
|
736
|
-
const u = (h === "sandbox" ? oe(y.nodes()[0].contentDocument.body) : oe("body")).select(`[id='${i}']`);
|
|
737
|
-
Ae.insertLineEndings(u, g);
|
|
738
|
-
const l = new Qe({
|
|
739
|
-
multigraph: !1,
|
|
740
|
-
compound: !1,
|
|
741
|
-
directed: !0
|
|
742
|
-
}).setGraph({
|
|
743
|
-
rankdir: g.layoutDirection,
|
|
744
|
-
marginx: 20,
|
|
745
|
-
marginy: 20,
|
|
746
|
-
nodesep: 100,
|
|
747
|
-
edgesep: 100,
|
|
748
|
-
ranksep: 100
|
|
749
|
-
}).setDefaultEdgeLabel(function() {
|
|
750
|
-
return {};
|
|
751
|
-
});
|
|
752
|
-
let p = c.db.getRequirements(), _ = c.db.getElements(), R = c.db.getRelationships();
|
|
753
|
-
_t(p, l, u), Et(_, l, u), Rt(R, l), Ke(l), ft(u, l), R.forEach(function(A) {
|
|
754
|
-
gt(u, A, l, i, c);
|
|
755
|
-
});
|
|
756
|
-
const m = g.rect_padding, I = u.node().getBBox(), q = I.width + m * 2, v = I.height + m * 2;
|
|
757
|
-
Ye(u, v, q, g.useMaxWidth), u.attr("viewBox", `${I.x - m} ${I.y - m} ${q} ${v}`);
|
|
758
|
-
}, "draw"), It = {
|
|
759
|
-
draw: mt
|
|
760
|
-
}, Tt = {
|
|
761
|
-
parser: We,
|
|
762
|
-
db: ct,
|
|
763
|
-
renderer: It,
|
|
764
|
-
styles: yt
|
|
765
|
-
};
|
|
766
|
-
export {
|
|
767
|
-
Tt as diagram
|
|
768
|
-
};
|