@readme/markdown 9.3.0 → 9.3.1
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/10.node.js +20064 -19229
- package/dist/10.node.js.map +1 -1
- package/dist/122.node.js +23 -0
- package/dist/122.node.js.map +1 -0
- package/dist/{17.node.js → 135.node.js} +109 -110
- package/dist/135.node.js.map +1 -0
- package/dist/136.node.js +23 -0
- package/dist/136.node.js.map +1 -0
- package/dist/{52.node.js → 188.node.js} +211 -196
- package/dist/188.node.js.map +1 -0
- package/dist/214.node.js +1280 -0
- package/dist/214.node.js.map +1 -0
- package/dist/23.node.js +2563 -0
- package/dist/23.node.js.map +1 -0
- package/dist/{867.node.js → 311.node.js} +95 -95
- package/dist/{867.node.js.map → 311.node.js.map} +1 -1
- package/dist/{940.node.js → 339.node.js} +3 -75
- package/dist/339.node.js.map +1 -0
- package/dist/354.node.js +23 -0
- package/dist/354.node.js.map +1 -0
- package/dist/359.node.js +2001 -0
- package/dist/359.node.js.map +1 -0
- package/dist/364.node.js +4435 -0
- package/dist/364.node.js.map +1 -0
- package/dist/{429.node.js → 371.node.js} +196 -139
- package/dist/371.node.js.map +1 -0
- package/dist/{687.node.js → 38.node.js} +761 -761
- package/dist/38.node.js.map +1 -0
- package/dist/391.node.js +522 -0
- package/dist/391.node.js.map +1 -0
- package/dist/462.node.js +23 -0
- package/dist/462.node.js.map +1 -0
- package/dist/48.node.js +57 -0
- package/dist/48.node.js.map +1 -0
- package/dist/486.node.js +16267 -14851
- package/dist/486.node.js.map +1 -1
- package/dist/537.node.js +59 -0
- package/dist/537.node.js.map +1 -0
- package/dist/550.node.js +201 -1408
- package/dist/550.node.js.map +1 -1
- package/dist/{403.node.js → 572.node.js} +118 -118
- package/dist/572.node.js.map +1 -0
- package/dist/580.node.js +1324 -0
- package/dist/580.node.js.map +1 -0
- package/dist/{952.node.js → 649.node.js} +39 -39
- package/dist/{952.node.js.map → 649.node.js.map} +1 -1
- package/dist/740.node.js +23 -0
- package/dist/740.node.js.map +1 -0
- package/dist/741.node.js +23 -0
- package/dist/741.node.js.map +1 -0
- package/dist/779.node.js +57 -0
- package/dist/779.node.js.map +1 -0
- package/dist/805.node.js +1355 -0
- package/dist/805.node.js.map +1 -0
- package/dist/{246.node.js → 855.node.js} +671 -495
- package/dist/855.node.js.map +1 -0
- package/dist/{11.node.js → 870.node.js} +70 -63
- package/dist/870.node.js.map +1 -0
- package/dist/874.node.js +57 -0
- package/dist/874.node.js.map +1 -0
- package/dist/881.node.js +1344 -720
- package/dist/881.node.js.map +1 -1
- package/dist/{906.node.js → 890.node.js} +147 -147
- package/dist/{906.node.js.map → 890.node.js.map} +1 -1
- package/dist/898.node.js +361 -0
- package/dist/898.node.js.map +1 -0
- package/dist/{551.node.js → 912.node.js} +133 -133
- package/dist/{551.node.js.map → 912.node.js.map} +1 -1
- package/dist/{745.node.js → 915.node.js} +86 -85
- package/dist/915.node.js.map +1 -0
- package/dist/982.node.js +1132 -0
- package/dist/982.node.js.map +1 -0
- package/dist/995.node.js +189 -159
- package/dist/995.node.js.map +1 -1
- package/dist/lib/plain.d.ts +1 -1
- package/dist/main.js +1881 -331
- package/dist/main.node.js +1872 -332
- package/dist/main.node.js.map +1 -1
- package/package.json +1 -2
- package/dist/11.node.js.map +0 -1
- package/dist/120.node.js +0 -23
- package/dist/120.node.js.map +0 -1
- package/dist/134.node.js +0 -23
- package/dist/134.node.js.map +0 -1
- package/dist/150.node.js +0 -1892
- package/dist/150.node.js.map +0 -1
- package/dist/17.node.js.map +0 -1
- package/dist/246.node.js.map +0 -1
- package/dist/351.node.js +0 -2404
- package/dist/351.node.js.map +0 -1
- package/dist/366.node.js +0 -1185
- package/dist/366.node.js.map +0 -1
- package/dist/403.node.js.map +0 -1
- package/dist/429.node.js.map +0 -1
- package/dist/485.node.js +0 -518
- package/dist/485.node.js.map +0 -1
- package/dist/488.node.js +0 -59
- package/dist/488.node.js.map +0 -1
- package/dist/510.node.js +0 -250
- package/dist/510.node.js.map +0 -1
- package/dist/52.node.js.map +0 -1
- package/dist/617.node.js +0 -23
- package/dist/617.node.js.map +0 -1
- package/dist/687.node.js.map +0 -1
- package/dist/745.node.js.map +0 -1
- package/dist/775.node.js +0 -1904
- package/dist/775.node.js.map +0 -1
- package/dist/788.node.js +0 -1025
- package/dist/788.node.js.map +0 -1
- package/dist/81.node.js +0 -386
- package/dist/81.node.js.map +0 -1
- package/dist/849.node.js +0 -2590
- package/dist/849.node.js.map +0 -1
- package/dist/863.node.js +0 -23
- package/dist/863.node.js.map +0 -1
- package/dist/885.node.js +0 -52
- package/dist/885.node.js.map +0 -1
- package/dist/896.node.js +0 -1617
- package/dist/896.node.js.map +0 -1
- package/dist/91.node.js +0 -23
- package/dist/91.node.js.map +0 -1
- package/dist/940.node.js.map +0 -1
package/dist/580.node.js
ADDED
|
@@ -0,0 +1,1324 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.id = 580;
|
|
3
|
+
exports.ids = [580];
|
|
4
|
+
exports.modules = {
|
|
5
|
+
|
|
6
|
+
/***/ 5051:
|
|
7
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8
|
+
|
|
9
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10
|
+
/* harmony export */ A: () => (/* binding */ getDiagramElement),
|
|
11
|
+
/* harmony export */ P: () => (/* binding */ setupViewPortForSVG)
|
|
12
|
+
/* harmony export */ });
|
|
13
|
+
/* harmony import */ var _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3804);
|
|
14
|
+
/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8066);
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
// src/rendering-util/insertElementsForSize.js
|
|
18
|
+
|
|
19
|
+
var getDiagramElement = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((id, securityLevel) => {
|
|
20
|
+
let sandboxElement;
|
|
21
|
+
if (securityLevel === "sandbox") {
|
|
22
|
+
sandboxElement = (0,d3__WEBPACK_IMPORTED_MODULE_1__/* .select */ .Ltv)("#i" + id);
|
|
23
|
+
}
|
|
24
|
+
const root = securityLevel === "sandbox" ? (0,d3__WEBPACK_IMPORTED_MODULE_1__/* .select */ .Ltv)(sandboxElement.nodes()[0].contentDocument.body) : (0,d3__WEBPACK_IMPORTED_MODULE_1__/* .select */ .Ltv)("body");
|
|
25
|
+
const svg = root.select(`[id="${id}"]`);
|
|
26
|
+
return svg;
|
|
27
|
+
}, "getDiagramElement");
|
|
28
|
+
|
|
29
|
+
// src/rendering-util/setupViewPortForSVG.ts
|
|
30
|
+
var setupViewPortForSVG = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((svg, padding, cssDiagram, useMaxWidth) => {
|
|
31
|
+
svg.attr("class", cssDiagram);
|
|
32
|
+
const { width, height, x, y } = calculateDimensionsWithPadding(svg, padding);
|
|
33
|
+
(0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .configureSvgSize */ .a$)(svg, height, width, useMaxWidth);
|
|
34
|
+
const viewBox = createViewBox(x, y, width, height, padding);
|
|
35
|
+
svg.attr("viewBox", viewBox);
|
|
36
|
+
_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .log */ .Rm.debug(`viewBox configured: ${viewBox} with padding: ${padding}`);
|
|
37
|
+
}, "setupViewPortForSVG");
|
|
38
|
+
var calculateDimensionsWithPadding = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((svg, padding) => {
|
|
39
|
+
const bounds = svg.node()?.getBBox() || { width: 0, height: 0, x: 0, y: 0 };
|
|
40
|
+
return {
|
|
41
|
+
width: bounds.width + padding * 2,
|
|
42
|
+
height: bounds.height + padding * 2,
|
|
43
|
+
x: bounds.x,
|
|
44
|
+
y: bounds.y
|
|
45
|
+
};
|
|
46
|
+
}, "calculateDimensionsWithPadding");
|
|
47
|
+
var createViewBox = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((x, y, width, height, padding) => {
|
|
48
|
+
return `${x - padding} ${y - padding} ${width} ${height}`;
|
|
49
|
+
}, "createViewBox");
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
/***/ }),
|
|
55
|
+
|
|
56
|
+
/***/ 580:
|
|
57
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
58
|
+
|
|
59
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
60
|
+
/* harmony export */ diagram: () => (/* binding */ diagram)
|
|
61
|
+
/* harmony export */ });
|
|
62
|
+
/* harmony import */ var _chunk_RZ5BOZE2_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5051);
|
|
63
|
+
/* harmony import */ var _chunk_TYCBKAJE_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4065);
|
|
64
|
+
/* harmony import */ var _chunk_IIMUDSI4_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3416);
|
|
65
|
+
/* harmony import */ var _chunk_VV3M67IP_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4746);
|
|
66
|
+
/* harmony import */ var _chunk_HRU6DDCH_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(778);
|
|
67
|
+
/* harmony import */ var _chunk_K557N5IZ_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7590);
|
|
68
|
+
/* harmony import */ var _chunk_H2D2JQ3I_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4059);
|
|
69
|
+
/* harmony import */ var _chunk_C3MQ5ANM_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6499);
|
|
70
|
+
/* harmony import */ var _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(8430);
|
|
71
|
+
/* harmony import */ var _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(3804);
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
// src/diagrams/requirement/parser/requirementDiagram.jison
|
|
84
|
+
var parser = function() {
|
|
85
|
+
var o = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(function(k, v, o2, l) {
|
|
86
|
+
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
|
|
87
|
+
return o2;
|
|
88
|
+
}, "o"), $V0 = [1, 3], $V1 = [1, 4], $V2 = [1, 5], $V3 = [1, 6], $V4 = [5, 6, 8, 9, 11, 13, 21, 22, 23, 24, 41, 42, 43, 44, 45, 46, 54, 72, 74, 77, 89, 90], $V5 = [1, 22], $V6 = [2, 7], $V7 = [1, 26], $V8 = [1, 27], $V9 = [1, 28], $Va = [1, 29], $Vb = [1, 33], $Vc = [1, 34], $Vd = [1, 35], $Ve = [1, 36], $Vf = [1, 37], $Vg = [1, 38], $Vh = [1, 24], $Vi = [1, 31], $Vj = [1, 32], $Vk = [1, 30], $Vl = [1, 39], $Vm = [1, 40], $Vn = [5, 8, 9, 11, 13, 21, 22, 23, 24, 41, 42, 43, 44, 45, 46, 54, 72, 74, 77, 89, 90], $Vo = [1, 61], $Vp = [89, 90], $Vq = [5, 8, 9, 11, 13, 21, 22, 23, 24, 27, 29, 41, 42, 43, 44, 45, 46, 54, 61, 63, 72, 74, 75, 76, 77, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90], $Vr = [27, 29], $Vs = [1, 70], $Vt = [1, 71], $Vu = [1, 72], $Vv = [1, 73], $Vw = [1, 74], $Vx = [1, 75], $Vy = [1, 76], $Vz = [1, 83], $VA = [1, 80], $VB = [1, 84], $VC = [1, 85], $VD = [1, 86], $VE = [1, 87], $VF = [1, 88], $VG = [1, 89], $VH = [1, 90], $VI = [1, 91], $VJ = [1, 92], $VK = [5, 8, 9, 11, 13, 21, 22, 23, 24, 27, 41, 42, 43, 44, 45, 46, 54, 72, 74, 75, 76, 77, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90], $VL = [63, 64], $VM = [1, 101], $VN = [5, 8, 9, 11, 13, 21, 22, 23, 24, 41, 42, 43, 44, 45, 46, 54, 72, 74, 76, 77, 89, 90], $VO = [5, 8, 9, 11, 13, 21, 22, 23, 24, 41, 42, 43, 44, 45, 46, 54, 72, 74, 75, 76, 77, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90], $VP = [1, 110], $VQ = [1, 106], $VR = [1, 107], $VS = [1, 108], $VT = [1, 109], $VU = [1, 111], $VV = [1, 116], $VW = [1, 117], $VX = [1, 114], $VY = [1, 115];
|
|
89
|
+
var parser2 = {
|
|
90
|
+
trace: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(function trace() {
|
|
91
|
+
}, "trace"),
|
|
92
|
+
yy: {},
|
|
93
|
+
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, "direction": 17, "styleStatement": 18, "classDefStatement": 19, "classStatement": 20, "direction_tb": 21, "direction_bt": 22, "direction_rl": 23, "direction_lr": 24, "requirementType": 25, "requirementName": 26, "STRUCT_START": 27, "requirementBody": 28, "STYLE_SEPARATOR": 29, "idList": 30, "ID": 31, "COLONSEP": 32, "id": 33, "TEXT": 34, "text": 35, "RISK": 36, "riskLevel": 37, "VERIFYMTHD": 38, "verifyType": 39, "STRUCT_STOP": 40, "REQUIREMENT": 41, "FUNCTIONAL_REQUIREMENT": 42, "INTERFACE_REQUIREMENT": 43, "PERFORMANCE_REQUIREMENT": 44, "PHYSICAL_REQUIREMENT": 45, "DESIGN_CONSTRAINT": 46, "LOW_RISK": 47, "MED_RISK": 48, "HIGH_RISK": 49, "VERIFY_ANALYSIS": 50, "VERIFY_DEMONSTRATION": 51, "VERIFY_INSPECTION": 52, "VERIFY_TEST": 53, "ELEMENT": 54, "elementName": 55, "elementBody": 56, "TYPE": 57, "type": 58, "DOCREF": 59, "ref": 60, "END_ARROW_L": 61, "relationship": 62, "LINE": 63, "END_ARROW_R": 64, "CONTAINS": 65, "COPIES": 66, "DERIVES": 67, "SATISFIES": 68, "VERIFIES": 69, "REFINES": 70, "TRACES": 71, "CLASSDEF": 72, "stylesOpt": 73, "CLASS": 74, "ALPHA": 75, "COMMA": 76, "STYLE": 77, "style": 78, "styleComponent": 79, "NUM": 80, "COLON": 81, "UNIT": 82, "SPACE": 83, "BRKT": 84, "PCT": 85, "MINUS": 86, "LABEL": 87, "SEMICOLON": 88, "unqString": 89, "qString": 90, "$accept": 0, "$end": 1 },
|
|
94
|
+
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", 21: "direction_tb", 22: "direction_bt", 23: "direction_rl", 24: "direction_lr", 27: "STRUCT_START", 29: "STYLE_SEPARATOR", 31: "ID", 32: "COLONSEP", 34: "TEXT", 36: "RISK", 38: "VERIFYMTHD", 40: "STRUCT_STOP", 41: "REQUIREMENT", 42: "FUNCTIONAL_REQUIREMENT", 43: "INTERFACE_REQUIREMENT", 44: "PERFORMANCE_REQUIREMENT", 45: "PHYSICAL_REQUIREMENT", 46: "DESIGN_CONSTRAINT", 47: "LOW_RISK", 48: "MED_RISK", 49: "HIGH_RISK", 50: "VERIFY_ANALYSIS", 51: "VERIFY_DEMONSTRATION", 52: "VERIFY_INSPECTION", 53: "VERIFY_TEST", 54: "ELEMENT", 57: "TYPE", 59: "DOCREF", 61: "END_ARROW_L", 63: "LINE", 64: "END_ARROW_R", 65: "CONTAINS", 66: "COPIES", 67: "DERIVES", 68: "SATISFIES", 69: "VERIFIES", 70: "REFINES", 71: "TRACES", 72: "CLASSDEF", 74: "CLASS", 75: "ALPHA", 76: "COMMA", 77: "STYLE", 80: "NUM", 81: "COLON", 82: "UNIT", 83: "SPACE", 84: "BRKT", 85: "PCT", 86: "MINUS", 87: "LABEL", 88: "SEMICOLON", 89: "unqString", 90: "qString" },
|
|
95
|
+
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], [7, 2], [7, 2], [7, 2], [7, 2], [17, 1], [17, 1], [17, 1], [17, 1], [14, 5], [14, 7], [28, 5], [28, 5], [28, 5], [28, 5], [28, 2], [28, 1], [25, 1], [25, 1], [25, 1], [25, 1], [25, 1], [25, 1], [37, 1], [37, 1], [37, 1], [39, 1], [39, 1], [39, 1], [39, 1], [15, 5], [15, 7], [56, 5], [56, 5], [56, 2], [56, 1], [16, 5], [16, 5], [62, 1], [62, 1], [62, 1], [62, 1], [62, 1], [62, 1], [62, 1], [19, 3], [20, 3], [20, 3], [30, 1], [30, 3], [30, 1], [30, 3], [18, 3], [73, 1], [73, 3], [78, 1], [78, 2], [79, 1], [79, 1], [79, 1], [79, 1], [79, 1], [79, 1], [79, 1], [79, 1], [79, 1], [79, 1], [26, 1], [26, 1], [33, 1], [33, 1], [35, 1], [35, 1], [55, 1], [55, 1], [58, 1], [58, 1], [60, 1], [60, 1]],
|
|
96
|
+
performAction: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
|
|
97
|
+
var $0 = $$.length - 1;
|
|
98
|
+
switch (yystate) {
|
|
99
|
+
case 4:
|
|
100
|
+
this.$ = $$[$0].trim();
|
|
101
|
+
yy.setAccTitle(this.$);
|
|
102
|
+
break;
|
|
103
|
+
case 5:
|
|
104
|
+
case 6:
|
|
105
|
+
this.$ = $$[$0].trim();
|
|
106
|
+
yy.setAccDescription(this.$);
|
|
107
|
+
break;
|
|
108
|
+
case 7:
|
|
109
|
+
this.$ = [];
|
|
110
|
+
break;
|
|
111
|
+
case 17:
|
|
112
|
+
yy.setDirection("TB");
|
|
113
|
+
break;
|
|
114
|
+
case 18:
|
|
115
|
+
yy.setDirection("BT");
|
|
116
|
+
break;
|
|
117
|
+
case 19:
|
|
118
|
+
yy.setDirection("RL");
|
|
119
|
+
break;
|
|
120
|
+
case 20:
|
|
121
|
+
yy.setDirection("LR");
|
|
122
|
+
break;
|
|
123
|
+
case 21:
|
|
124
|
+
yy.addRequirement($$[$0 - 3], $$[$0 - 4]);
|
|
125
|
+
break;
|
|
126
|
+
case 22:
|
|
127
|
+
yy.addRequirement($$[$0 - 5], $$[$0 - 6]);
|
|
128
|
+
yy.setClass([$$[$0 - 5]], $$[$0 - 3]);
|
|
129
|
+
break;
|
|
130
|
+
case 23:
|
|
131
|
+
yy.setNewReqId($$[$0 - 2]);
|
|
132
|
+
break;
|
|
133
|
+
case 24:
|
|
134
|
+
yy.setNewReqText($$[$0 - 2]);
|
|
135
|
+
break;
|
|
136
|
+
case 25:
|
|
137
|
+
yy.setNewReqRisk($$[$0 - 2]);
|
|
138
|
+
break;
|
|
139
|
+
case 26:
|
|
140
|
+
yy.setNewReqVerifyMethod($$[$0 - 2]);
|
|
141
|
+
break;
|
|
142
|
+
case 29:
|
|
143
|
+
this.$ = yy.RequirementType.REQUIREMENT;
|
|
144
|
+
break;
|
|
145
|
+
case 30:
|
|
146
|
+
this.$ = yy.RequirementType.FUNCTIONAL_REQUIREMENT;
|
|
147
|
+
break;
|
|
148
|
+
case 31:
|
|
149
|
+
this.$ = yy.RequirementType.INTERFACE_REQUIREMENT;
|
|
150
|
+
break;
|
|
151
|
+
case 32:
|
|
152
|
+
this.$ = yy.RequirementType.PERFORMANCE_REQUIREMENT;
|
|
153
|
+
break;
|
|
154
|
+
case 33:
|
|
155
|
+
this.$ = yy.RequirementType.PHYSICAL_REQUIREMENT;
|
|
156
|
+
break;
|
|
157
|
+
case 34:
|
|
158
|
+
this.$ = yy.RequirementType.DESIGN_CONSTRAINT;
|
|
159
|
+
break;
|
|
160
|
+
case 35:
|
|
161
|
+
this.$ = yy.RiskLevel.LOW_RISK;
|
|
162
|
+
break;
|
|
163
|
+
case 36:
|
|
164
|
+
this.$ = yy.RiskLevel.MED_RISK;
|
|
165
|
+
break;
|
|
166
|
+
case 37:
|
|
167
|
+
this.$ = yy.RiskLevel.HIGH_RISK;
|
|
168
|
+
break;
|
|
169
|
+
case 38:
|
|
170
|
+
this.$ = yy.VerifyType.VERIFY_ANALYSIS;
|
|
171
|
+
break;
|
|
172
|
+
case 39:
|
|
173
|
+
this.$ = yy.VerifyType.VERIFY_DEMONSTRATION;
|
|
174
|
+
break;
|
|
175
|
+
case 40:
|
|
176
|
+
this.$ = yy.VerifyType.VERIFY_INSPECTION;
|
|
177
|
+
break;
|
|
178
|
+
case 41:
|
|
179
|
+
this.$ = yy.VerifyType.VERIFY_TEST;
|
|
180
|
+
break;
|
|
181
|
+
case 42:
|
|
182
|
+
yy.addElement($$[$0 - 3]);
|
|
183
|
+
break;
|
|
184
|
+
case 43:
|
|
185
|
+
yy.addElement($$[$0 - 5]);
|
|
186
|
+
yy.setClass([$$[$0 - 5]], $$[$0 - 3]);
|
|
187
|
+
break;
|
|
188
|
+
case 44:
|
|
189
|
+
yy.setNewElementType($$[$0 - 2]);
|
|
190
|
+
break;
|
|
191
|
+
case 45:
|
|
192
|
+
yy.setNewElementDocRef($$[$0 - 2]);
|
|
193
|
+
break;
|
|
194
|
+
case 48:
|
|
195
|
+
yy.addRelationship($$[$0 - 2], $$[$0], $$[$0 - 4]);
|
|
196
|
+
break;
|
|
197
|
+
case 49:
|
|
198
|
+
yy.addRelationship($$[$0 - 2], $$[$0 - 4], $$[$0]);
|
|
199
|
+
break;
|
|
200
|
+
case 50:
|
|
201
|
+
this.$ = yy.Relationships.CONTAINS;
|
|
202
|
+
break;
|
|
203
|
+
case 51:
|
|
204
|
+
this.$ = yy.Relationships.COPIES;
|
|
205
|
+
break;
|
|
206
|
+
case 52:
|
|
207
|
+
this.$ = yy.Relationships.DERIVES;
|
|
208
|
+
break;
|
|
209
|
+
case 53:
|
|
210
|
+
this.$ = yy.Relationships.SATISFIES;
|
|
211
|
+
break;
|
|
212
|
+
case 54:
|
|
213
|
+
this.$ = yy.Relationships.VERIFIES;
|
|
214
|
+
break;
|
|
215
|
+
case 55:
|
|
216
|
+
this.$ = yy.Relationships.REFINES;
|
|
217
|
+
break;
|
|
218
|
+
case 56:
|
|
219
|
+
this.$ = yy.Relationships.TRACES;
|
|
220
|
+
break;
|
|
221
|
+
case 57:
|
|
222
|
+
this.$ = $$[$0 - 2];
|
|
223
|
+
yy.defineClass($$[$0 - 1], $$[$0]);
|
|
224
|
+
break;
|
|
225
|
+
case 58:
|
|
226
|
+
yy.setClass($$[$0 - 1], $$[$0]);
|
|
227
|
+
break;
|
|
228
|
+
case 59:
|
|
229
|
+
yy.setClass([$$[$0 - 2]], $$[$0]);
|
|
230
|
+
break;
|
|
231
|
+
case 60:
|
|
232
|
+
case 62:
|
|
233
|
+
this.$ = [$$[$0]];
|
|
234
|
+
break;
|
|
235
|
+
case 61:
|
|
236
|
+
case 63:
|
|
237
|
+
this.$ = $$[$0 - 2].concat([$$[$0]]);
|
|
238
|
+
break;
|
|
239
|
+
case 64:
|
|
240
|
+
this.$ = $$[$0 - 2];
|
|
241
|
+
yy.setCssStyle($$[$0 - 1], $$[$0]);
|
|
242
|
+
break;
|
|
243
|
+
case 65:
|
|
244
|
+
this.$ = [$$[$0]];
|
|
245
|
+
break;
|
|
246
|
+
case 66:
|
|
247
|
+
$$[$0 - 2].push($$[$0]);
|
|
248
|
+
this.$ = $$[$0 - 2];
|
|
249
|
+
break;
|
|
250
|
+
case 68:
|
|
251
|
+
this.$ = $$[$0 - 1] + $$[$0];
|
|
252
|
+
break;
|
|
253
|
+
}
|
|
254
|
+
}, "anonymous"),
|
|
255
|
+
table: [{ 3: 1, 4: 2, 6: $V0, 9: $V1, 11: $V2, 13: $V3 }, { 1: [3] }, { 3: 8, 4: 2, 5: [1, 7], 6: $V0, 9: $V1, 11: $V2, 13: $V3 }, { 5: [1, 9] }, { 10: [1, 10] }, { 12: [1, 11] }, o($V4, [2, 6]), { 3: 12, 4: 2, 6: $V0, 9: $V1, 11: $V2, 13: $V3 }, { 1: [2, 2] }, { 4: 17, 5: $V5, 7: 13, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, o($V4, [2, 4]), o($V4, [2, 5]), { 1: [2, 1] }, { 8: [1, 41] }, { 4: 17, 5: $V5, 7: 42, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, { 4: 17, 5: $V5, 7: 43, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, { 4: 17, 5: $V5, 7: 44, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, { 4: 17, 5: $V5, 7: 45, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, { 4: 17, 5: $V5, 7: 46, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, { 4: 17, 5: $V5, 7: 47, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, { 4: 17, 5: $V5, 7: 48, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, { 4: 17, 5: $V5, 7: 49, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, { 4: 17, 5: $V5, 7: 50, 8: $V6, 9: $V1, 11: $V2, 13: $V3, 14: 14, 15: 15, 16: 16, 17: 18, 18: 19, 19: 20, 20: 21, 21: $V7, 22: $V8, 23: $V9, 24: $Va, 25: 23, 33: 25, 41: $Vb, 42: $Vc, 43: $Vd, 44: $Ve, 45: $Vf, 46: $Vg, 54: $Vh, 72: $Vi, 74: $Vj, 77: $Vk, 89: $Vl, 90: $Vm }, { 26: 51, 89: [1, 52], 90: [1, 53] }, { 55: 54, 89: [1, 55], 90: [1, 56] }, { 29: [1, 59], 61: [1, 57], 63: [1, 58] }, o($Vn, [2, 17]), o($Vn, [2, 18]), o($Vn, [2, 19]), o($Vn, [2, 20]), { 30: 60, 33: 62, 75: $Vo, 89: $Vl, 90: $Vm }, { 30: 63, 33: 62, 75: $Vo, 89: $Vl, 90: $Vm }, { 30: 64, 33: 62, 75: $Vo, 89: $Vl, 90: $Vm }, o($Vp, [2, 29]), o($Vp, [2, 30]), o($Vp, [2, 31]), o($Vp, [2, 32]), o($Vp, [2, 33]), o($Vp, [2, 34]), o($Vq, [2, 81]), o($Vq, [2, 82]), { 1: [2, 3] }, { 8: [2, 8] }, { 8: [2, 9] }, { 8: [2, 10] }, { 8: [2, 11] }, { 8: [2, 12] }, { 8: [2, 13] }, { 8: [2, 14] }, { 8: [2, 15] }, { 8: [2, 16] }, { 27: [1, 65], 29: [1, 66] }, o($Vr, [2, 79]), o($Vr, [2, 80]), { 27: [1, 67], 29: [1, 68] }, o($Vr, [2, 85]), o($Vr, [2, 86]), { 62: 69, 65: $Vs, 66: $Vt, 67: $Vu, 68: $Vv, 69: $Vw, 70: $Vx, 71: $Vy }, { 62: 77, 65: $Vs, 66: $Vt, 67: $Vu, 68: $Vv, 69: $Vw, 70: $Vx, 71: $Vy }, { 30: 78, 33: 62, 75: $Vo, 89: $Vl, 90: $Vm }, { 73: 79, 75: $Vz, 76: $VA, 78: 81, 79: 82, 80: $VB, 81: $VC, 82: $VD, 83: $VE, 84: $VF, 85: $VG, 86: $VH, 87: $VI, 88: $VJ }, o($VK, [2, 60]), o($VK, [2, 62]), { 73: 93, 75: $Vz, 76: $VA, 78: 81, 79: 82, 80: $VB, 81: $VC, 82: $VD, 83: $VE, 84: $VF, 85: $VG, 86: $VH, 87: $VI, 88: $VJ }, { 30: 94, 33: 62, 75: $Vo, 76: $VA, 89: $Vl, 90: $Vm }, { 5: [1, 95] }, { 30: 96, 33: 62, 75: $Vo, 89: $Vl, 90: $Vm }, { 5: [1, 97] }, { 30: 98, 33: 62, 75: $Vo, 89: $Vl, 90: $Vm }, { 63: [1, 99] }, o($VL, [2, 50]), o($VL, [2, 51]), o($VL, [2, 52]), o($VL, [2, 53]), o($VL, [2, 54]), o($VL, [2, 55]), o($VL, [2, 56]), { 64: [1, 100] }, o($Vn, [2, 59], { 76: $VA }), o($Vn, [2, 64], { 76: $VM }), { 33: 103, 75: [1, 102], 89: $Vl, 90: $Vm }, o($VN, [2, 65], { 79: 104, 75: $Vz, 80: $VB, 81: $VC, 82: $VD, 83: $VE, 84: $VF, 85: $VG, 86: $VH, 87: $VI, 88: $VJ }), o($VO, [2, 67]), o($VO, [2, 69]), o($VO, [2, 70]), o($VO, [2, 71]), o($VO, [2, 72]), o($VO, [2, 73]), o($VO, [2, 74]), o($VO, [2, 75]), o($VO, [2, 76]), o($VO, [2, 77]), o($VO, [2, 78]), o($Vn, [2, 57], { 76: $VM }), o($Vn, [2, 58], { 76: $VA }), { 5: $VP, 28: 105, 31: $VQ, 34: $VR, 36: $VS, 38: $VT, 40: $VU }, { 27: [1, 112], 76: $VA }, { 5: $VV, 40: $VW, 56: 113, 57: $VX, 59: $VY }, { 27: [1, 118], 76: $VA }, { 33: 119, 89: $Vl, 90: $Vm }, { 33: 120, 89: $Vl, 90: $Vm }, { 75: $Vz, 78: 121, 79: 82, 80: $VB, 81: $VC, 82: $VD, 83: $VE, 84: $VF, 85: $VG, 86: $VH, 87: $VI, 88: $VJ }, o($VK, [2, 61]), o($VK, [2, 63]), o($VO, [2, 68]), o($Vn, [2, 21]), { 32: [1, 122] }, { 32: [1, 123] }, { 32: [1, 124] }, { 32: [1, 125] }, { 5: $VP, 28: 126, 31: $VQ, 34: $VR, 36: $VS, 38: $VT, 40: $VU }, o($Vn, [2, 28]), { 5: [1, 127] }, o($Vn, [2, 42]), { 32: [1, 128] }, { 32: [1, 129] }, { 5: $VV, 40: $VW, 56: 130, 57: $VX, 59: $VY }, o($Vn, [2, 47]), { 5: [1, 131] }, o($Vn, [2, 48]), o($Vn, [2, 49]), o($VN, [2, 66], { 79: 104, 75: $Vz, 80: $VB, 81: $VC, 82: $VD, 83: $VE, 84: $VF, 85: $VG, 86: $VH, 87: $VI, 88: $VJ }), { 33: 132, 89: $Vl, 90: $Vm }, { 35: 133, 89: [1, 134], 90: [1, 135] }, { 37: 136, 47: [1, 137], 48: [1, 138], 49: [1, 139] }, { 39: 140, 50: [1, 141], 51: [1, 142], 52: [1, 143], 53: [1, 144] }, o($Vn, [2, 27]), { 5: $VP, 28: 145, 31: $VQ, 34: $VR, 36: $VS, 38: $VT, 40: $VU }, { 58: 146, 89: [1, 147], 90: [1, 148] }, { 60: 149, 89: [1, 150], 90: [1, 151] }, o($Vn, [2, 46]), { 5: $VV, 40: $VW, 56: 152, 57: $VX, 59: $VY }, { 5: [1, 153] }, { 5: [1, 154] }, { 5: [2, 83] }, { 5: [2, 84] }, { 5: [1, 155] }, { 5: [2, 35] }, { 5: [2, 36] }, { 5: [2, 37] }, { 5: [1, 156] }, { 5: [2, 38] }, { 5: [2, 39] }, { 5: [2, 40] }, { 5: [2, 41] }, o($Vn, [2, 22]), { 5: [1, 157] }, { 5: [2, 87] }, { 5: [2, 88] }, { 5: [1, 158] }, { 5: [2, 89] }, { 5: [2, 90] }, o($Vn, [2, 43]), { 5: $VP, 28: 159, 31: $VQ, 34: $VR, 36: $VS, 38: $VT, 40: $VU }, { 5: $VP, 28: 160, 31: $VQ, 34: $VR, 36: $VS, 38: $VT, 40: $VU }, { 5: $VP, 28: 161, 31: $VQ, 34: $VR, 36: $VS, 38: $VT, 40: $VU }, { 5: $VP, 28: 162, 31: $VQ, 34: $VR, 36: $VS, 38: $VT, 40: $VU }, { 5: $VV, 40: $VW, 56: 163, 57: $VX, 59: $VY }, { 5: $VV, 40: $VW, 56: 164, 57: $VX, 59: $VY }, o($Vn, [2, 23]), o($Vn, [2, 24]), o($Vn, [2, 25]), o($Vn, [2, 26]), o($Vn, [2, 44]), o($Vn, [2, 45])],
|
|
256
|
+
defaultActions: { 8: [2, 2], 12: [2, 1], 41: [2, 3], 42: [2, 8], 43: [2, 9], 44: [2, 10], 45: [2, 11], 46: [2, 12], 47: [2, 13], 48: [2, 14], 49: [2, 15], 50: [2, 16], 134: [2, 83], 135: [2, 84], 137: [2, 35], 138: [2, 36], 139: [2, 37], 141: [2, 38], 142: [2, 39], 143: [2, 40], 144: [2, 41], 147: [2, 87], 148: [2, 88], 150: [2, 89], 151: [2, 90] },
|
|
257
|
+
parseError: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(function parseError(str, hash) {
|
|
258
|
+
if (hash.recoverable) {
|
|
259
|
+
this.trace(str);
|
|
260
|
+
} else {
|
|
261
|
+
var error = new Error(str);
|
|
262
|
+
error.hash = hash;
|
|
263
|
+
throw error;
|
|
264
|
+
}
|
|
265
|
+
}, "parseError"),
|
|
266
|
+
parse: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(function parse(input) {
|
|
267
|
+
var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
|
|
268
|
+
var args = lstack.slice.call(arguments, 1);
|
|
269
|
+
var lexer2 = Object.create(this.lexer);
|
|
270
|
+
var sharedState = { yy: {} };
|
|
271
|
+
for (var k in this.yy) {
|
|
272
|
+
if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
|
|
273
|
+
sharedState.yy[k] = this.yy[k];
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
lexer2.setInput(input, sharedState.yy);
|
|
277
|
+
sharedState.yy.lexer = lexer2;
|
|
278
|
+
sharedState.yy.parser = this;
|
|
279
|
+
if (typeof lexer2.yylloc == "undefined") {
|
|
280
|
+
lexer2.yylloc = {};
|
|
281
|
+
}
|
|
282
|
+
var yyloc = lexer2.yylloc;
|
|
283
|
+
lstack.push(yyloc);
|
|
284
|
+
var ranges = lexer2.options && lexer2.options.ranges;
|
|
285
|
+
if (typeof sharedState.yy.parseError === "function") {
|
|
286
|
+
this.parseError = sharedState.yy.parseError;
|
|
287
|
+
} else {
|
|
288
|
+
this.parseError = Object.getPrototypeOf(this).parseError;
|
|
289
|
+
}
|
|
290
|
+
function popStack(n) {
|
|
291
|
+
stack.length = stack.length - 2 * n;
|
|
292
|
+
vstack.length = vstack.length - n;
|
|
293
|
+
lstack.length = lstack.length - n;
|
|
294
|
+
}
|
|
295
|
+
(0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(popStack, "popStack");
|
|
296
|
+
function lex() {
|
|
297
|
+
var token;
|
|
298
|
+
token = tstack.pop() || lexer2.lex() || EOF;
|
|
299
|
+
if (typeof token !== "number") {
|
|
300
|
+
if (token instanceof Array) {
|
|
301
|
+
tstack = token;
|
|
302
|
+
token = tstack.pop();
|
|
303
|
+
}
|
|
304
|
+
token = self.symbols_[token] || token;
|
|
305
|
+
}
|
|
306
|
+
return token;
|
|
307
|
+
}
|
|
308
|
+
(0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(lex, "lex");
|
|
309
|
+
var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
|
|
310
|
+
while (true) {
|
|
311
|
+
state = stack[stack.length - 1];
|
|
312
|
+
if (this.defaultActions[state]) {
|
|
313
|
+
action = this.defaultActions[state];
|
|
314
|
+
} else {
|
|
315
|
+
if (symbol === null || typeof symbol == "undefined") {
|
|
316
|
+
symbol = lex();
|
|
317
|
+
}
|
|
318
|
+
action = table[state] && table[state][symbol];
|
|
319
|
+
}
|
|
320
|
+
if (typeof action === "undefined" || !action.length || !action[0]) {
|
|
321
|
+
var errStr = "";
|
|
322
|
+
expected = [];
|
|
323
|
+
for (p in table[state]) {
|
|
324
|
+
if (this.terminals_[p] && p > TERROR) {
|
|
325
|
+
expected.push("'" + this.terminals_[p] + "'");
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
if (lexer2.showPosition) {
|
|
329
|
+
errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
|
|
330
|
+
} else {
|
|
331
|
+
errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
|
|
332
|
+
}
|
|
333
|
+
this.parseError(errStr, {
|
|
334
|
+
text: lexer2.match,
|
|
335
|
+
token: this.terminals_[symbol] || symbol,
|
|
336
|
+
line: lexer2.yylineno,
|
|
337
|
+
loc: yyloc,
|
|
338
|
+
expected
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
if (action[0] instanceof Array && action.length > 1) {
|
|
342
|
+
throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
|
|
343
|
+
}
|
|
344
|
+
switch (action[0]) {
|
|
345
|
+
case 1:
|
|
346
|
+
stack.push(symbol);
|
|
347
|
+
vstack.push(lexer2.yytext);
|
|
348
|
+
lstack.push(lexer2.yylloc);
|
|
349
|
+
stack.push(action[1]);
|
|
350
|
+
symbol = null;
|
|
351
|
+
if (!preErrorSymbol) {
|
|
352
|
+
yyleng = lexer2.yyleng;
|
|
353
|
+
yytext = lexer2.yytext;
|
|
354
|
+
yylineno = lexer2.yylineno;
|
|
355
|
+
yyloc = lexer2.yylloc;
|
|
356
|
+
if (recovering > 0) {
|
|
357
|
+
recovering--;
|
|
358
|
+
}
|
|
359
|
+
} else {
|
|
360
|
+
symbol = preErrorSymbol;
|
|
361
|
+
preErrorSymbol = null;
|
|
362
|
+
}
|
|
363
|
+
break;
|
|
364
|
+
case 2:
|
|
365
|
+
len = this.productions_[action[1]][1];
|
|
366
|
+
yyval.$ = vstack[vstack.length - len];
|
|
367
|
+
yyval._$ = {
|
|
368
|
+
first_line: lstack[lstack.length - (len || 1)].first_line,
|
|
369
|
+
last_line: lstack[lstack.length - 1].last_line,
|
|
370
|
+
first_column: lstack[lstack.length - (len || 1)].first_column,
|
|
371
|
+
last_column: lstack[lstack.length - 1].last_column
|
|
372
|
+
};
|
|
373
|
+
if (ranges) {
|
|
374
|
+
yyval._$.range = [
|
|
375
|
+
lstack[lstack.length - (len || 1)].range[0],
|
|
376
|
+
lstack[lstack.length - 1].range[1]
|
|
377
|
+
];
|
|
378
|
+
}
|
|
379
|
+
r = this.performAction.apply(yyval, [
|
|
380
|
+
yytext,
|
|
381
|
+
yyleng,
|
|
382
|
+
yylineno,
|
|
383
|
+
sharedState.yy,
|
|
384
|
+
action[1],
|
|
385
|
+
vstack,
|
|
386
|
+
lstack
|
|
387
|
+
].concat(args));
|
|
388
|
+
if (typeof r !== "undefined") {
|
|
389
|
+
return r;
|
|
390
|
+
}
|
|
391
|
+
if (len) {
|
|
392
|
+
stack = stack.slice(0, -1 * len * 2);
|
|
393
|
+
vstack = vstack.slice(0, -1 * len);
|
|
394
|
+
lstack = lstack.slice(0, -1 * len);
|
|
395
|
+
}
|
|
396
|
+
stack.push(this.productions_[action[1]][0]);
|
|
397
|
+
vstack.push(yyval.$);
|
|
398
|
+
lstack.push(yyval._$);
|
|
399
|
+
newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
|
|
400
|
+
stack.push(newState);
|
|
401
|
+
break;
|
|
402
|
+
case 3:
|
|
403
|
+
return true;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
return true;
|
|
407
|
+
}, "parse")
|
|
408
|
+
};
|
|
409
|
+
var lexer = /* @__PURE__ */ function() {
|
|
410
|
+
var lexer2 = {
|
|
411
|
+
EOF: 1,
|
|
412
|
+
parseError: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(function parseError(str, hash) {
|
|
413
|
+
if (this.yy.parser) {
|
|
414
|
+
this.yy.parser.parseError(str, hash);
|
|
415
|
+
} else {
|
|
416
|
+
throw new Error(str);
|
|
417
|
+
}
|
|
418
|
+
}, "parseError"),
|
|
419
|
+
// resets the lexer, sets new input
|
|
420
|
+
setInput: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(function(input, yy) {
|
|
421
|
+
this.yy = yy || this.yy || {};
|
|
422
|
+
this._input = input;
|
|
423
|
+
this._more = this._backtrack = this.done = false;
|
|
424
|
+
this.yylineno = this.yyleng = 0;
|
|
425
|
+
this.yytext = this.matched = this.match = "";
|
|
426
|
+
this.conditionStack = ["INITIAL"];
|
|
427
|
+
this.yylloc = {
|
|
428
|
+
first_line: 1,
|
|
429
|
+
first_column: 0,
|
|
430
|
+
last_line: 1,
|
|
431
|
+
last_column: 0
|
|
432
|
+
};
|
|
433
|
+
if (this.options.ranges) {
|
|
434
|
+
this.yylloc.range = [0, 0];
|
|
435
|
+
}
|
|
436
|
+
this.offset = 0;
|
|
437
|
+
return this;
|
|
438
|
+
}, "setInput"),
|
|
439
|
+
// consumes and returns one char from the input
|
|
440
|
+
input: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(function() {
|
|
441
|
+
var ch = this._input[0];
|
|
442
|
+
this.yytext += ch;
|
|
443
|
+
this.yyleng++;
|
|
444
|
+
this.offset++;
|
|
445
|
+
this.match += ch;
|
|
446
|
+
this.matched += ch;
|
|
447
|
+
var lines = ch.match(/(?:\r\n?|\n).*/g);
|
|
448
|
+
if (lines) {
|
|
449
|
+
this.yylineno++;
|
|
450
|
+
this.yylloc.last_line++;
|
|
451
|
+
} else {
|
|
452
|
+
this.yylloc.last_column++;
|
|
453
|
+
}
|
|
454
|
+
if (this.options.ranges) {
|
|
455
|
+
this.yylloc.range[1]++;
|
|
456
|
+
}
|
|
457
|
+
this._input = this._input.slice(1);
|
|
458
|
+
return ch;
|
|
459
|
+
}, "input"),
|
|
460
|
+
// unshifts one char (or a string) into the input
|
|
461
|
+
unput: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(function(ch) {
|
|
462
|
+
var len = ch.length;
|
|
463
|
+
var lines = ch.split(/(?:\r\n?|\n)/g);
|
|
464
|
+
this._input = ch + this._input;
|
|
465
|
+
this.yytext = this.yytext.substr(0, this.yytext.length - len);
|
|
466
|
+
this.offset -= len;
|
|
467
|
+
var oldLines = this.match.split(/(?:\r\n?|\n)/g);
|
|
468
|
+
this.match = this.match.substr(0, this.match.length - 1);
|
|
469
|
+
this.matched = this.matched.substr(0, this.matched.length - 1);
|
|
470
|
+
if (lines.length - 1) {
|
|
471
|
+
this.yylineno -= lines.length - 1;
|
|
472
|
+
}
|
|
473
|
+
var r = this.yylloc.range;
|
|
474
|
+
this.yylloc = {
|
|
475
|
+
first_line: this.yylloc.first_line,
|
|
476
|
+
last_line: this.yylineno + 1,
|
|
477
|
+
first_column: this.yylloc.first_column,
|
|
478
|
+
last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
|
|
479
|
+
};
|
|
480
|
+
if (this.options.ranges) {
|
|
481
|
+
this.yylloc.range = [r[0], r[0] + this.yyleng - len];
|
|
482
|
+
}
|
|
483
|
+
this.yyleng = this.yytext.length;
|
|
484
|
+
return this;
|
|
485
|
+
}, "unput"),
|
|
486
|
+
// When called from action, caches matched text and appends it on next action
|
|
487
|
+
more: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(function() {
|
|
488
|
+
this._more = true;
|
|
489
|
+
return this;
|
|
490
|
+
}, "more"),
|
|
491
|
+
// 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.
|
|
492
|
+
reject: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(function() {
|
|
493
|
+
if (this.options.backtrack_lexer) {
|
|
494
|
+
this._backtrack = true;
|
|
495
|
+
} else {
|
|
496
|
+
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).\n" + this.showPosition(), {
|
|
497
|
+
text: "",
|
|
498
|
+
token: null,
|
|
499
|
+
line: this.yylineno
|
|
500
|
+
});
|
|
501
|
+
}
|
|
502
|
+
return this;
|
|
503
|
+
}, "reject"),
|
|
504
|
+
// retain first n characters of the match
|
|
505
|
+
less: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(function(n) {
|
|
506
|
+
this.unput(this.match.slice(n));
|
|
507
|
+
}, "less"),
|
|
508
|
+
// displays already matched input, i.e. for error messages
|
|
509
|
+
pastInput: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(function() {
|
|
510
|
+
var past = this.matched.substr(0, this.matched.length - this.match.length);
|
|
511
|
+
return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
|
|
512
|
+
}, "pastInput"),
|
|
513
|
+
// displays upcoming input, i.e. for error messages
|
|
514
|
+
upcomingInput: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(function() {
|
|
515
|
+
var next = this.match;
|
|
516
|
+
if (next.length < 20) {
|
|
517
|
+
next += this._input.substr(0, 20 - next.length);
|
|
518
|
+
}
|
|
519
|
+
return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
520
|
+
}, "upcomingInput"),
|
|
521
|
+
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
522
|
+
showPosition: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(function() {
|
|
523
|
+
var pre = this.pastInput();
|
|
524
|
+
var c = new Array(pre.length + 1).join("-");
|
|
525
|
+
return pre + this.upcomingInput() + "\n" + c + "^";
|
|
526
|
+
}, "showPosition"),
|
|
527
|
+
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
528
|
+
test_match: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(function(match, indexed_rule) {
|
|
529
|
+
var token, lines, backup;
|
|
530
|
+
if (this.options.backtrack_lexer) {
|
|
531
|
+
backup = {
|
|
532
|
+
yylineno: this.yylineno,
|
|
533
|
+
yylloc: {
|
|
534
|
+
first_line: this.yylloc.first_line,
|
|
535
|
+
last_line: this.last_line,
|
|
536
|
+
first_column: this.yylloc.first_column,
|
|
537
|
+
last_column: this.yylloc.last_column
|
|
538
|
+
},
|
|
539
|
+
yytext: this.yytext,
|
|
540
|
+
match: this.match,
|
|
541
|
+
matches: this.matches,
|
|
542
|
+
matched: this.matched,
|
|
543
|
+
yyleng: this.yyleng,
|
|
544
|
+
offset: this.offset,
|
|
545
|
+
_more: this._more,
|
|
546
|
+
_input: this._input,
|
|
547
|
+
yy: this.yy,
|
|
548
|
+
conditionStack: this.conditionStack.slice(0),
|
|
549
|
+
done: this.done
|
|
550
|
+
};
|
|
551
|
+
if (this.options.ranges) {
|
|
552
|
+
backup.yylloc.range = this.yylloc.range.slice(0);
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
lines = match[0].match(/(?:\r\n?|\n).*/g);
|
|
556
|
+
if (lines) {
|
|
557
|
+
this.yylineno += lines.length;
|
|
558
|
+
}
|
|
559
|
+
this.yylloc = {
|
|
560
|
+
first_line: this.yylloc.last_line,
|
|
561
|
+
last_line: this.yylineno + 1,
|
|
562
|
+
first_column: this.yylloc.last_column,
|
|
563
|
+
last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
|
|
564
|
+
};
|
|
565
|
+
this.yytext += match[0];
|
|
566
|
+
this.match += match[0];
|
|
567
|
+
this.matches = match;
|
|
568
|
+
this.yyleng = this.yytext.length;
|
|
569
|
+
if (this.options.ranges) {
|
|
570
|
+
this.yylloc.range = [this.offset, this.offset += this.yyleng];
|
|
571
|
+
}
|
|
572
|
+
this._more = false;
|
|
573
|
+
this._backtrack = false;
|
|
574
|
+
this._input = this._input.slice(match[0].length);
|
|
575
|
+
this.matched += match[0];
|
|
576
|
+
token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
|
|
577
|
+
if (this.done && this._input) {
|
|
578
|
+
this.done = false;
|
|
579
|
+
}
|
|
580
|
+
if (token) {
|
|
581
|
+
return token;
|
|
582
|
+
} else if (this._backtrack) {
|
|
583
|
+
for (var k in backup) {
|
|
584
|
+
this[k] = backup[k];
|
|
585
|
+
}
|
|
586
|
+
return false;
|
|
587
|
+
}
|
|
588
|
+
return false;
|
|
589
|
+
}, "test_match"),
|
|
590
|
+
// return next match in input
|
|
591
|
+
next: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(function() {
|
|
592
|
+
if (this.done) {
|
|
593
|
+
return this.EOF;
|
|
594
|
+
}
|
|
595
|
+
if (!this._input) {
|
|
596
|
+
this.done = true;
|
|
597
|
+
}
|
|
598
|
+
var token, match, tempMatch, index;
|
|
599
|
+
if (!this._more) {
|
|
600
|
+
this.yytext = "";
|
|
601
|
+
this.match = "";
|
|
602
|
+
}
|
|
603
|
+
var rules = this._currentRules();
|
|
604
|
+
for (var i = 0; i < rules.length; i++) {
|
|
605
|
+
tempMatch = this._input.match(this.rules[rules[i]]);
|
|
606
|
+
if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
|
|
607
|
+
match = tempMatch;
|
|
608
|
+
index = i;
|
|
609
|
+
if (this.options.backtrack_lexer) {
|
|
610
|
+
token = this.test_match(tempMatch, rules[i]);
|
|
611
|
+
if (token !== false) {
|
|
612
|
+
return token;
|
|
613
|
+
} else if (this._backtrack) {
|
|
614
|
+
match = false;
|
|
615
|
+
continue;
|
|
616
|
+
} else {
|
|
617
|
+
return false;
|
|
618
|
+
}
|
|
619
|
+
} else if (!this.options.flex) {
|
|
620
|
+
break;
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
if (match) {
|
|
625
|
+
token = this.test_match(match, rules[index]);
|
|
626
|
+
if (token !== false) {
|
|
627
|
+
return token;
|
|
628
|
+
}
|
|
629
|
+
return false;
|
|
630
|
+
}
|
|
631
|
+
if (this._input === "") {
|
|
632
|
+
return this.EOF;
|
|
633
|
+
} else {
|
|
634
|
+
return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
635
|
+
text: "",
|
|
636
|
+
token: null,
|
|
637
|
+
line: this.yylineno
|
|
638
|
+
});
|
|
639
|
+
}
|
|
640
|
+
}, "next"),
|
|
641
|
+
// return next match that has a token
|
|
642
|
+
lex: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(function lex() {
|
|
643
|
+
var r = this.next();
|
|
644
|
+
if (r) {
|
|
645
|
+
return r;
|
|
646
|
+
} else {
|
|
647
|
+
return this.lex();
|
|
648
|
+
}
|
|
649
|
+
}, "lex"),
|
|
650
|
+
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
651
|
+
begin: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(function begin(condition) {
|
|
652
|
+
this.conditionStack.push(condition);
|
|
653
|
+
}, "begin"),
|
|
654
|
+
// pop the previously active lexer condition state off the condition stack
|
|
655
|
+
popState: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(function popState() {
|
|
656
|
+
var n = this.conditionStack.length - 1;
|
|
657
|
+
if (n > 0) {
|
|
658
|
+
return this.conditionStack.pop();
|
|
659
|
+
} else {
|
|
660
|
+
return this.conditionStack[0];
|
|
661
|
+
}
|
|
662
|
+
}, "popState"),
|
|
663
|
+
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
664
|
+
_currentRules: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(function _currentRules() {
|
|
665
|
+
if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
|
|
666
|
+
return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
|
|
667
|
+
} else {
|
|
668
|
+
return this.conditions["INITIAL"].rules;
|
|
669
|
+
}
|
|
670
|
+
}, "_currentRules"),
|
|
671
|
+
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
672
|
+
topState: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(function topState(n) {
|
|
673
|
+
n = this.conditionStack.length - 1 - Math.abs(n || 0);
|
|
674
|
+
if (n >= 0) {
|
|
675
|
+
return this.conditionStack[n];
|
|
676
|
+
} else {
|
|
677
|
+
return "INITIAL";
|
|
678
|
+
}
|
|
679
|
+
}, "topState"),
|
|
680
|
+
// alias for begin(condition)
|
|
681
|
+
pushState: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(function pushState(condition) {
|
|
682
|
+
this.begin(condition);
|
|
683
|
+
}, "pushState"),
|
|
684
|
+
// return the number of states currently on the stack
|
|
685
|
+
stateStackSize: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(function stateStackSize() {
|
|
686
|
+
return this.conditionStack.length;
|
|
687
|
+
}, "stateStackSize"),
|
|
688
|
+
options: { "case-insensitive": true },
|
|
689
|
+
performAction: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
|
|
690
|
+
var YYSTATE = YY_START;
|
|
691
|
+
switch ($avoiding_name_collisions) {
|
|
692
|
+
case 0:
|
|
693
|
+
return "title";
|
|
694
|
+
break;
|
|
695
|
+
case 1:
|
|
696
|
+
this.begin("acc_title");
|
|
697
|
+
return 9;
|
|
698
|
+
break;
|
|
699
|
+
case 2:
|
|
700
|
+
this.popState();
|
|
701
|
+
return "acc_title_value";
|
|
702
|
+
break;
|
|
703
|
+
case 3:
|
|
704
|
+
this.begin("acc_descr");
|
|
705
|
+
return 11;
|
|
706
|
+
break;
|
|
707
|
+
case 4:
|
|
708
|
+
this.popState();
|
|
709
|
+
return "acc_descr_value";
|
|
710
|
+
break;
|
|
711
|
+
case 5:
|
|
712
|
+
this.begin("acc_descr_multiline");
|
|
713
|
+
break;
|
|
714
|
+
case 6:
|
|
715
|
+
this.popState();
|
|
716
|
+
break;
|
|
717
|
+
case 7:
|
|
718
|
+
return "acc_descr_multiline_value";
|
|
719
|
+
break;
|
|
720
|
+
case 8:
|
|
721
|
+
return 21;
|
|
722
|
+
break;
|
|
723
|
+
case 9:
|
|
724
|
+
return 22;
|
|
725
|
+
break;
|
|
726
|
+
case 10:
|
|
727
|
+
return 23;
|
|
728
|
+
break;
|
|
729
|
+
case 11:
|
|
730
|
+
return 24;
|
|
731
|
+
break;
|
|
732
|
+
case 12:
|
|
733
|
+
return 5;
|
|
734
|
+
break;
|
|
735
|
+
case 13:
|
|
736
|
+
break;
|
|
737
|
+
case 14:
|
|
738
|
+
break;
|
|
739
|
+
case 15:
|
|
740
|
+
break;
|
|
741
|
+
case 16:
|
|
742
|
+
return 8;
|
|
743
|
+
break;
|
|
744
|
+
case 17:
|
|
745
|
+
return 6;
|
|
746
|
+
break;
|
|
747
|
+
case 18:
|
|
748
|
+
return 27;
|
|
749
|
+
break;
|
|
750
|
+
case 19:
|
|
751
|
+
return 40;
|
|
752
|
+
break;
|
|
753
|
+
case 20:
|
|
754
|
+
return 29;
|
|
755
|
+
break;
|
|
756
|
+
case 21:
|
|
757
|
+
return 32;
|
|
758
|
+
break;
|
|
759
|
+
case 22:
|
|
760
|
+
return 31;
|
|
761
|
+
break;
|
|
762
|
+
case 23:
|
|
763
|
+
return 34;
|
|
764
|
+
break;
|
|
765
|
+
case 24:
|
|
766
|
+
return 36;
|
|
767
|
+
break;
|
|
768
|
+
case 25:
|
|
769
|
+
return 38;
|
|
770
|
+
break;
|
|
771
|
+
case 26:
|
|
772
|
+
return 41;
|
|
773
|
+
break;
|
|
774
|
+
case 27:
|
|
775
|
+
return 42;
|
|
776
|
+
break;
|
|
777
|
+
case 28:
|
|
778
|
+
return 43;
|
|
779
|
+
break;
|
|
780
|
+
case 29:
|
|
781
|
+
return 44;
|
|
782
|
+
break;
|
|
783
|
+
case 30:
|
|
784
|
+
return 45;
|
|
785
|
+
break;
|
|
786
|
+
case 31:
|
|
787
|
+
return 46;
|
|
788
|
+
break;
|
|
789
|
+
case 32:
|
|
790
|
+
return 47;
|
|
791
|
+
break;
|
|
792
|
+
case 33:
|
|
793
|
+
return 48;
|
|
794
|
+
break;
|
|
795
|
+
case 34:
|
|
796
|
+
return 49;
|
|
797
|
+
break;
|
|
798
|
+
case 35:
|
|
799
|
+
return 50;
|
|
800
|
+
break;
|
|
801
|
+
case 36:
|
|
802
|
+
return 51;
|
|
803
|
+
break;
|
|
804
|
+
case 37:
|
|
805
|
+
return 52;
|
|
806
|
+
break;
|
|
807
|
+
case 38:
|
|
808
|
+
return 53;
|
|
809
|
+
break;
|
|
810
|
+
case 39:
|
|
811
|
+
return 54;
|
|
812
|
+
break;
|
|
813
|
+
case 40:
|
|
814
|
+
return 65;
|
|
815
|
+
break;
|
|
816
|
+
case 41:
|
|
817
|
+
return 66;
|
|
818
|
+
break;
|
|
819
|
+
case 42:
|
|
820
|
+
return 67;
|
|
821
|
+
break;
|
|
822
|
+
case 43:
|
|
823
|
+
return 68;
|
|
824
|
+
break;
|
|
825
|
+
case 44:
|
|
826
|
+
return 69;
|
|
827
|
+
break;
|
|
828
|
+
case 45:
|
|
829
|
+
return 70;
|
|
830
|
+
break;
|
|
831
|
+
case 46:
|
|
832
|
+
return 71;
|
|
833
|
+
break;
|
|
834
|
+
case 47:
|
|
835
|
+
return 57;
|
|
836
|
+
break;
|
|
837
|
+
case 48:
|
|
838
|
+
return 59;
|
|
839
|
+
break;
|
|
840
|
+
case 49:
|
|
841
|
+
this.begin("style");
|
|
842
|
+
return 77;
|
|
843
|
+
break;
|
|
844
|
+
case 50:
|
|
845
|
+
return 75;
|
|
846
|
+
break;
|
|
847
|
+
case 51:
|
|
848
|
+
return 81;
|
|
849
|
+
break;
|
|
850
|
+
case 52:
|
|
851
|
+
return 88;
|
|
852
|
+
break;
|
|
853
|
+
case 53:
|
|
854
|
+
return "PERCENT";
|
|
855
|
+
break;
|
|
856
|
+
case 54:
|
|
857
|
+
return 86;
|
|
858
|
+
break;
|
|
859
|
+
case 55:
|
|
860
|
+
return 84;
|
|
861
|
+
break;
|
|
862
|
+
case 56:
|
|
863
|
+
break;
|
|
864
|
+
case 57:
|
|
865
|
+
this.begin("string");
|
|
866
|
+
break;
|
|
867
|
+
case 58:
|
|
868
|
+
this.popState();
|
|
869
|
+
break;
|
|
870
|
+
case 59:
|
|
871
|
+
this.begin("style");
|
|
872
|
+
return 72;
|
|
873
|
+
break;
|
|
874
|
+
case 60:
|
|
875
|
+
this.begin("style");
|
|
876
|
+
return 74;
|
|
877
|
+
break;
|
|
878
|
+
case 61:
|
|
879
|
+
return 61;
|
|
880
|
+
break;
|
|
881
|
+
case 62:
|
|
882
|
+
return 64;
|
|
883
|
+
break;
|
|
884
|
+
case 63:
|
|
885
|
+
return 63;
|
|
886
|
+
break;
|
|
887
|
+
case 64:
|
|
888
|
+
this.begin("string");
|
|
889
|
+
break;
|
|
890
|
+
case 65:
|
|
891
|
+
this.popState();
|
|
892
|
+
break;
|
|
893
|
+
case 66:
|
|
894
|
+
return "qString";
|
|
895
|
+
break;
|
|
896
|
+
case 67:
|
|
897
|
+
yy_.yytext = yy_.yytext.trim();
|
|
898
|
+
return 89;
|
|
899
|
+
break;
|
|
900
|
+
case 68:
|
|
901
|
+
return 75;
|
|
902
|
+
break;
|
|
903
|
+
case 69:
|
|
904
|
+
return 80;
|
|
905
|
+
break;
|
|
906
|
+
case 70:
|
|
907
|
+
return 76;
|
|
908
|
+
break;
|
|
909
|
+
}
|
|
910
|
+
}, "anonymous"),
|
|
911
|
+
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, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:(\r?\n)+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:%[^\n]*)/i, /^(?:$)/i, /^(?:requirementDiagram\b)/i, /^(?:\{)/i, /^(?:\})/i, /^(?::{3})/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, /^(?:style\b)/i, /^(?:\w+)/i, /^(?::)/i, /^(?:;)/i, /^(?:%)/i, /^(?:-)/i, /^(?:#)/i, /^(?: )/i, /^(?:["])/i, /^(?:\n)/i, /^(?:classDef\b)/i, /^(?:class\b)/i, /^(?:<-)/i, /^(?:->)/i, /^(?:-)/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i, /^(?:\w+)/i, /^(?:[0-9]+)/i, /^(?:,)/i],
|
|
912
|
+
conditions: { "acc_descr_multiline": { "rules": [6, 7, 68, 69, 70], "inclusive": false }, "acc_descr": { "rules": [4, 68, 69, 70], "inclusive": false }, "acc_title": { "rules": [2, 68, 69, 70], "inclusive": false }, "style": { "rules": [50, 51, 52, 53, 54, 55, 56, 57, 58, 68, 69, 70], "inclusive": false }, "unqString": { "rules": [68, 69, 70], "inclusive": false }, "token": { "rules": [68, 69, 70], "inclusive": false }, "string": { "rules": [65, 66, 68, 69, 70], "inclusive": false }, "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, 48, 49, 59, 60, 61, 62, 63, 64, 67, 68, 69, 70], "inclusive": true } }
|
|
913
|
+
};
|
|
914
|
+
return lexer2;
|
|
915
|
+
}();
|
|
916
|
+
parser2.lexer = lexer;
|
|
917
|
+
function Parser() {
|
|
918
|
+
this.yy = {};
|
|
919
|
+
}
|
|
920
|
+
(0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(Parser, "Parser");
|
|
921
|
+
Parser.prototype = parser2;
|
|
922
|
+
parser2.Parser = Parser;
|
|
923
|
+
return new Parser();
|
|
924
|
+
}();
|
|
925
|
+
parser.parser = parser;
|
|
926
|
+
var requirementDiagram_default = parser;
|
|
927
|
+
|
|
928
|
+
// src/diagrams/requirement/requirementDb.ts
|
|
929
|
+
var RequirementDB = class {
|
|
930
|
+
constructor() {
|
|
931
|
+
this.relations = [];
|
|
932
|
+
this.latestRequirement = this.getInitialRequirement();
|
|
933
|
+
this.requirements = /* @__PURE__ */ new Map();
|
|
934
|
+
this.latestElement = this.getInitialElement();
|
|
935
|
+
this.elements = /* @__PURE__ */ new Map();
|
|
936
|
+
this.classes = /* @__PURE__ */ new Map();
|
|
937
|
+
this.direction = "TB";
|
|
938
|
+
this.RequirementType = {
|
|
939
|
+
REQUIREMENT: "Requirement",
|
|
940
|
+
FUNCTIONAL_REQUIREMENT: "Functional Requirement",
|
|
941
|
+
INTERFACE_REQUIREMENT: "Interface Requirement",
|
|
942
|
+
PERFORMANCE_REQUIREMENT: "Performance Requirement",
|
|
943
|
+
PHYSICAL_REQUIREMENT: "Physical Requirement",
|
|
944
|
+
DESIGN_CONSTRAINT: "Design Constraint"
|
|
945
|
+
};
|
|
946
|
+
this.RiskLevel = {
|
|
947
|
+
LOW_RISK: "Low",
|
|
948
|
+
MED_RISK: "Medium",
|
|
949
|
+
HIGH_RISK: "High"
|
|
950
|
+
};
|
|
951
|
+
this.VerifyType = {
|
|
952
|
+
VERIFY_ANALYSIS: "Analysis",
|
|
953
|
+
VERIFY_DEMONSTRATION: "Demonstration",
|
|
954
|
+
VERIFY_INSPECTION: "Inspection",
|
|
955
|
+
VERIFY_TEST: "Test"
|
|
956
|
+
};
|
|
957
|
+
this.Relationships = {
|
|
958
|
+
CONTAINS: "contains",
|
|
959
|
+
COPIES: "copies",
|
|
960
|
+
DERIVES: "derives",
|
|
961
|
+
SATISFIES: "satisfies",
|
|
962
|
+
VERIFIES: "verifies",
|
|
963
|
+
REFINES: "refines",
|
|
964
|
+
TRACES: "traces"
|
|
965
|
+
};
|
|
966
|
+
this.setAccTitle = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .setAccTitle */ .SV;
|
|
967
|
+
this.getAccTitle = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .getAccTitle */ .iN;
|
|
968
|
+
this.setAccDescription = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .setAccDescription */ .EI;
|
|
969
|
+
this.getAccDescription = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .getAccDescription */ .m7;
|
|
970
|
+
this.setDiagramTitle = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .setDiagramTitle */ .ke;
|
|
971
|
+
this.getDiagramTitle = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .getDiagramTitle */ .ab;
|
|
972
|
+
this.getConfig = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(() => (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .getConfig2 */ .D7)().requirement, "getConfig");
|
|
973
|
+
this.clear();
|
|
974
|
+
this.setDirection = this.setDirection.bind(this);
|
|
975
|
+
this.addRequirement = this.addRequirement.bind(this);
|
|
976
|
+
this.setNewReqId = this.setNewReqId.bind(this);
|
|
977
|
+
this.setNewReqRisk = this.setNewReqRisk.bind(this);
|
|
978
|
+
this.setNewReqText = this.setNewReqText.bind(this);
|
|
979
|
+
this.setNewReqVerifyMethod = this.setNewReqVerifyMethod.bind(this);
|
|
980
|
+
this.addElement = this.addElement.bind(this);
|
|
981
|
+
this.setNewElementType = this.setNewElementType.bind(this);
|
|
982
|
+
this.setNewElementDocRef = this.setNewElementDocRef.bind(this);
|
|
983
|
+
this.addRelationship = this.addRelationship.bind(this);
|
|
984
|
+
this.setCssStyle = this.setCssStyle.bind(this);
|
|
985
|
+
this.setClass = this.setClass.bind(this);
|
|
986
|
+
this.defineClass = this.defineClass.bind(this);
|
|
987
|
+
this.setAccTitle = this.setAccTitle.bind(this);
|
|
988
|
+
this.setAccDescription = this.setAccDescription.bind(this);
|
|
989
|
+
}
|
|
990
|
+
static {
|
|
991
|
+
(0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(this, "RequirementDB");
|
|
992
|
+
}
|
|
993
|
+
getDirection() {
|
|
994
|
+
return this.direction;
|
|
995
|
+
}
|
|
996
|
+
setDirection(dir) {
|
|
997
|
+
this.direction = dir;
|
|
998
|
+
}
|
|
999
|
+
resetLatestRequirement() {
|
|
1000
|
+
this.latestRequirement = this.getInitialRequirement();
|
|
1001
|
+
}
|
|
1002
|
+
resetLatestElement() {
|
|
1003
|
+
this.latestElement = this.getInitialElement();
|
|
1004
|
+
}
|
|
1005
|
+
getInitialRequirement() {
|
|
1006
|
+
return {
|
|
1007
|
+
requirementId: "",
|
|
1008
|
+
text: "",
|
|
1009
|
+
risk: "",
|
|
1010
|
+
verifyMethod: "",
|
|
1011
|
+
name: "",
|
|
1012
|
+
type: "",
|
|
1013
|
+
cssStyles: [],
|
|
1014
|
+
classes: ["default"]
|
|
1015
|
+
};
|
|
1016
|
+
}
|
|
1017
|
+
getInitialElement() {
|
|
1018
|
+
return {
|
|
1019
|
+
name: "",
|
|
1020
|
+
type: "",
|
|
1021
|
+
docRef: "",
|
|
1022
|
+
cssStyles: [],
|
|
1023
|
+
classes: ["default"]
|
|
1024
|
+
};
|
|
1025
|
+
}
|
|
1026
|
+
addRequirement(name, type) {
|
|
1027
|
+
if (!this.requirements.has(name)) {
|
|
1028
|
+
this.requirements.set(name, {
|
|
1029
|
+
name,
|
|
1030
|
+
type,
|
|
1031
|
+
requirementId: this.latestRequirement.requirementId,
|
|
1032
|
+
text: this.latestRequirement.text,
|
|
1033
|
+
risk: this.latestRequirement.risk,
|
|
1034
|
+
verifyMethod: this.latestRequirement.verifyMethod,
|
|
1035
|
+
cssStyles: [],
|
|
1036
|
+
classes: ["default"]
|
|
1037
|
+
});
|
|
1038
|
+
}
|
|
1039
|
+
this.resetLatestRequirement();
|
|
1040
|
+
return this.requirements.get(name);
|
|
1041
|
+
}
|
|
1042
|
+
getRequirements() {
|
|
1043
|
+
return this.requirements;
|
|
1044
|
+
}
|
|
1045
|
+
setNewReqId(id) {
|
|
1046
|
+
if (this.latestRequirement !== void 0) {
|
|
1047
|
+
this.latestRequirement.requirementId = id;
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
setNewReqText(text) {
|
|
1051
|
+
if (this.latestRequirement !== void 0) {
|
|
1052
|
+
this.latestRequirement.text = text;
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
setNewReqRisk(risk) {
|
|
1056
|
+
if (this.latestRequirement !== void 0) {
|
|
1057
|
+
this.latestRequirement.risk = risk;
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
setNewReqVerifyMethod(verifyMethod) {
|
|
1061
|
+
if (this.latestRequirement !== void 0) {
|
|
1062
|
+
this.latestRequirement.verifyMethod = verifyMethod;
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
addElement(name) {
|
|
1066
|
+
if (!this.elements.has(name)) {
|
|
1067
|
+
this.elements.set(name, {
|
|
1068
|
+
name,
|
|
1069
|
+
type: this.latestElement.type,
|
|
1070
|
+
docRef: this.latestElement.docRef,
|
|
1071
|
+
cssStyles: [],
|
|
1072
|
+
classes: ["default"]
|
|
1073
|
+
});
|
|
1074
|
+
_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .log */ .Rm.info("Added new element: ", name);
|
|
1075
|
+
}
|
|
1076
|
+
this.resetLatestElement();
|
|
1077
|
+
return this.elements.get(name);
|
|
1078
|
+
}
|
|
1079
|
+
getElements() {
|
|
1080
|
+
return this.elements;
|
|
1081
|
+
}
|
|
1082
|
+
setNewElementType(type) {
|
|
1083
|
+
if (this.latestElement !== void 0) {
|
|
1084
|
+
this.latestElement.type = type;
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
setNewElementDocRef(docRef) {
|
|
1088
|
+
if (this.latestElement !== void 0) {
|
|
1089
|
+
this.latestElement.docRef = docRef;
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
addRelationship(type, src, dst) {
|
|
1093
|
+
this.relations.push({
|
|
1094
|
+
type,
|
|
1095
|
+
src,
|
|
1096
|
+
dst
|
|
1097
|
+
});
|
|
1098
|
+
}
|
|
1099
|
+
getRelationships() {
|
|
1100
|
+
return this.relations;
|
|
1101
|
+
}
|
|
1102
|
+
clear() {
|
|
1103
|
+
this.relations = [];
|
|
1104
|
+
this.resetLatestRequirement();
|
|
1105
|
+
this.requirements = /* @__PURE__ */ new Map();
|
|
1106
|
+
this.resetLatestElement();
|
|
1107
|
+
this.elements = /* @__PURE__ */ new Map();
|
|
1108
|
+
this.classes = /* @__PURE__ */ new Map();
|
|
1109
|
+
(0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .clear */ .IU)();
|
|
1110
|
+
}
|
|
1111
|
+
setCssStyle(ids, styles) {
|
|
1112
|
+
for (const id of ids) {
|
|
1113
|
+
const node = this.requirements.get(id) ?? this.elements.get(id);
|
|
1114
|
+
if (!styles || !node) {
|
|
1115
|
+
return;
|
|
1116
|
+
}
|
|
1117
|
+
for (const s of styles) {
|
|
1118
|
+
if (s.includes(",")) {
|
|
1119
|
+
node.cssStyles.push(...s.split(","));
|
|
1120
|
+
} else {
|
|
1121
|
+
node.cssStyles.push(s);
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
setClass(ids, classNames) {
|
|
1127
|
+
for (const id of ids) {
|
|
1128
|
+
const node = this.requirements.get(id) ?? this.elements.get(id);
|
|
1129
|
+
if (node) {
|
|
1130
|
+
for (const _class of classNames) {
|
|
1131
|
+
node.classes.push(_class);
|
|
1132
|
+
const styles = this.classes.get(_class)?.styles;
|
|
1133
|
+
if (styles) {
|
|
1134
|
+
node.cssStyles.push(...styles);
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
defineClass(ids, style) {
|
|
1141
|
+
for (const id of ids) {
|
|
1142
|
+
let styleClass = this.classes.get(id);
|
|
1143
|
+
if (styleClass === void 0) {
|
|
1144
|
+
styleClass = { id, styles: [], textStyles: [] };
|
|
1145
|
+
this.classes.set(id, styleClass);
|
|
1146
|
+
}
|
|
1147
|
+
if (style) {
|
|
1148
|
+
style.forEach(function(s) {
|
|
1149
|
+
if (/color/.exec(s)) {
|
|
1150
|
+
const newStyle = s.replace("fill", "bgFill");
|
|
1151
|
+
styleClass.textStyles.push(newStyle);
|
|
1152
|
+
}
|
|
1153
|
+
styleClass.styles.push(s);
|
|
1154
|
+
});
|
|
1155
|
+
}
|
|
1156
|
+
this.requirements.forEach((value) => {
|
|
1157
|
+
if (value.classes.includes(id)) {
|
|
1158
|
+
value.cssStyles.push(...style.flatMap((s) => s.split(",")));
|
|
1159
|
+
}
|
|
1160
|
+
});
|
|
1161
|
+
this.elements.forEach((value) => {
|
|
1162
|
+
if (value.classes.includes(id)) {
|
|
1163
|
+
value.cssStyles.push(...style.flatMap((s) => s.split(",")));
|
|
1164
|
+
}
|
|
1165
|
+
});
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
getClasses() {
|
|
1169
|
+
return this.classes;
|
|
1170
|
+
}
|
|
1171
|
+
getData() {
|
|
1172
|
+
const config = (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .getConfig2 */ .D7)();
|
|
1173
|
+
const nodes = [];
|
|
1174
|
+
const edges = [];
|
|
1175
|
+
for (const requirement of this.requirements.values()) {
|
|
1176
|
+
const node = requirement;
|
|
1177
|
+
node.id = requirement.name;
|
|
1178
|
+
node.cssStyles = requirement.cssStyles;
|
|
1179
|
+
node.cssClasses = requirement.classes.join(" ");
|
|
1180
|
+
node.shape = "requirementBox";
|
|
1181
|
+
node.look = config.look;
|
|
1182
|
+
nodes.push(node);
|
|
1183
|
+
}
|
|
1184
|
+
for (const element of this.elements.values()) {
|
|
1185
|
+
const node = element;
|
|
1186
|
+
node.shape = "requirementBox";
|
|
1187
|
+
node.look = config.look;
|
|
1188
|
+
node.id = element.name;
|
|
1189
|
+
node.cssStyles = element.cssStyles;
|
|
1190
|
+
node.cssClasses = element.classes.join(" ");
|
|
1191
|
+
nodes.push(node);
|
|
1192
|
+
}
|
|
1193
|
+
for (const relation of this.relations) {
|
|
1194
|
+
let counter = 0;
|
|
1195
|
+
const isContains = relation.type === this.Relationships.CONTAINS;
|
|
1196
|
+
const edge = {
|
|
1197
|
+
id: `${relation.src}-${relation.dst}-${counter}`,
|
|
1198
|
+
start: this.requirements.get(relation.src)?.name ?? this.elements.get(relation.src)?.name,
|
|
1199
|
+
end: this.requirements.get(relation.dst)?.name ?? this.elements.get(relation.dst)?.name,
|
|
1200
|
+
label: `<<${relation.type}>>`,
|
|
1201
|
+
classes: "relationshipLine",
|
|
1202
|
+
style: ["fill:none", isContains ? "" : "stroke-dasharray: 10,7"],
|
|
1203
|
+
labelpos: "c",
|
|
1204
|
+
thickness: "normal",
|
|
1205
|
+
type: "normal",
|
|
1206
|
+
pattern: isContains ? "normal" : "dashed",
|
|
1207
|
+
arrowTypeStart: isContains ? "requirement_contains" : "",
|
|
1208
|
+
arrowTypeEnd: isContains ? "" : "requirement_arrow",
|
|
1209
|
+
look: config.look
|
|
1210
|
+
};
|
|
1211
|
+
edges.push(edge);
|
|
1212
|
+
counter++;
|
|
1213
|
+
}
|
|
1214
|
+
return { nodes, edges, other: {}, config, direction: this.getDirection() };
|
|
1215
|
+
}
|
|
1216
|
+
};
|
|
1217
|
+
|
|
1218
|
+
// src/diagrams/requirement/styles.js
|
|
1219
|
+
var getStyles = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)((options) => `
|
|
1220
|
+
|
|
1221
|
+
marker {
|
|
1222
|
+
fill: ${options.relationColor};
|
|
1223
|
+
stroke: ${options.relationColor};
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
marker.cross {
|
|
1227
|
+
stroke: ${options.lineColor};
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
svg {
|
|
1231
|
+
font-family: ${options.fontFamily};
|
|
1232
|
+
font-size: ${options.fontSize};
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
.reqBox {
|
|
1236
|
+
fill: ${options.requirementBackground};
|
|
1237
|
+
fill-opacity: 1.0;
|
|
1238
|
+
stroke: ${options.requirementBorderColor};
|
|
1239
|
+
stroke-width: ${options.requirementBorderSize};
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
.reqTitle, .reqLabel{
|
|
1243
|
+
fill: ${options.requirementTextColor};
|
|
1244
|
+
}
|
|
1245
|
+
.reqLabelBox {
|
|
1246
|
+
fill: ${options.relationLabelBackground};
|
|
1247
|
+
fill-opacity: 1.0;
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
.req-title-line {
|
|
1251
|
+
stroke: ${options.requirementBorderColor};
|
|
1252
|
+
stroke-width: ${options.requirementBorderSize};
|
|
1253
|
+
}
|
|
1254
|
+
.relationshipLine {
|
|
1255
|
+
stroke: ${options.relationColor};
|
|
1256
|
+
stroke-width: 1;
|
|
1257
|
+
}
|
|
1258
|
+
.relationshipLabel {
|
|
1259
|
+
fill: ${options.relationLabelColor};
|
|
1260
|
+
}
|
|
1261
|
+
.divider {
|
|
1262
|
+
stroke: ${options.nodeBorder};
|
|
1263
|
+
stroke-width: 1;
|
|
1264
|
+
}
|
|
1265
|
+
.label {
|
|
1266
|
+
font-family: ${options.fontFamily};
|
|
1267
|
+
color: ${options.nodeTextColor || options.textColor};
|
|
1268
|
+
}
|
|
1269
|
+
.label text,span {
|
|
1270
|
+
fill: ${options.nodeTextColor || options.textColor};
|
|
1271
|
+
color: ${options.nodeTextColor || options.textColor};
|
|
1272
|
+
}
|
|
1273
|
+
.labelBkg {
|
|
1274
|
+
background-color: ${options.edgeLabelBackground};
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
`, "getStyles");
|
|
1278
|
+
var styles_default = getStyles;
|
|
1279
|
+
|
|
1280
|
+
// src/diagrams/requirement/requirementRenderer.ts
|
|
1281
|
+
var requirementRenderer_exports = {};
|
|
1282
|
+
(0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__export */ .VA)(requirementRenderer_exports, {
|
|
1283
|
+
draw: () => draw
|
|
1284
|
+
});
|
|
1285
|
+
var draw = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .__name */ .K2)(async function(text, id, _version, diag) {
|
|
1286
|
+
_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .log */ .Rm.info("REF0:");
|
|
1287
|
+
_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .log */ .Rm.info("Drawing requirement diagram (unified)", id);
|
|
1288
|
+
const { securityLevel, state: conf, layout } = (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_9__/* .getConfig2 */ .D7)();
|
|
1289
|
+
const data4Layout = diag.db.getData();
|
|
1290
|
+
const svg = (0,_chunk_RZ5BOZE2_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getDiagramElement */ .A)(id, securityLevel);
|
|
1291
|
+
data4Layout.type = diag.type;
|
|
1292
|
+
data4Layout.layoutAlgorithm = (0,_chunk_TYCBKAJE_mjs__WEBPACK_IMPORTED_MODULE_1__/* .getRegisteredLayoutAlgorithm */ .q7)(layout);
|
|
1293
|
+
data4Layout.nodeSpacing = conf?.nodeSpacing ?? 50;
|
|
1294
|
+
data4Layout.rankSpacing = conf?.rankSpacing ?? 50;
|
|
1295
|
+
data4Layout.markers = ["requirement_contains", "requirement_arrow"];
|
|
1296
|
+
data4Layout.diagramId = id;
|
|
1297
|
+
await (0,_chunk_TYCBKAJE_mjs__WEBPACK_IMPORTED_MODULE_1__/* .render */ .XX)(data4Layout, svg);
|
|
1298
|
+
const padding = 8;
|
|
1299
|
+
_chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_8__/* .utils_default */ ._K.insertTitle(
|
|
1300
|
+
svg,
|
|
1301
|
+
"requirementDiagramTitleText",
|
|
1302
|
+
conf?.titleTopMargin ?? 25,
|
|
1303
|
+
diag.db.getDiagramTitle()
|
|
1304
|
+
);
|
|
1305
|
+
(0,_chunk_RZ5BOZE2_mjs__WEBPACK_IMPORTED_MODULE_0__/* .setupViewPortForSVG */ .P)(svg, padding, "requirementDiagram", conf?.useMaxWidth ?? true);
|
|
1306
|
+
}, "draw");
|
|
1307
|
+
|
|
1308
|
+
// src/diagrams/requirement/requirementDiagram.ts
|
|
1309
|
+
var diagram = {
|
|
1310
|
+
parser: requirementDiagram_default,
|
|
1311
|
+
get db() {
|
|
1312
|
+
return new RequirementDB();
|
|
1313
|
+
},
|
|
1314
|
+
renderer: requirementRenderer_exports,
|
|
1315
|
+
styles: styles_default
|
|
1316
|
+
};
|
|
1317
|
+
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
/***/ })
|
|
1321
|
+
|
|
1322
|
+
};
|
|
1323
|
+
;
|
|
1324
|
+
//# sourceMappingURL=580.node.js.map
|