@readme/markdown 9.3.0 → 9.3.2
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 +1883 -331
- package/dist/main.node.js +1874 -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/359.node.js
ADDED
|
@@ -0,0 +1,2001 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.id = 359;
|
|
3
|
+
exports.ids = [359];
|
|
4
|
+
exports.modules = {
|
|
5
|
+
|
|
6
|
+
/***/ 1359:
|
|
7
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
8
|
+
|
|
9
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10
|
+
/* harmony export */ Lh: () => (/* binding */ classRenderer_v3_unified_default),
|
|
11
|
+
/* harmony export */ NM: () => (/* binding */ ClassDB),
|
|
12
|
+
/* harmony export */ _$: () => (/* binding */ classDiagram_default),
|
|
13
|
+
/* harmony export */ tM: () => (/* binding */ styles_default)
|
|
14
|
+
/* harmony export */ });
|
|
15
|
+
/* harmony import */ var _chunk_RZ5BOZE2_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5051);
|
|
16
|
+
/* harmony import */ var _chunk_TYCBKAJE_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4065);
|
|
17
|
+
/* harmony import */ var _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8430);
|
|
18
|
+
/* harmony import */ var _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3804);
|
|
19
|
+
/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8066);
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
// src/diagrams/class/parser/classDiagram.jison
|
|
26
|
+
var parser = function() {
|
|
27
|
+
var o = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(k, v, o2, l) {
|
|
28
|
+
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
|
|
29
|
+
return o2;
|
|
30
|
+
}, "o"), $V0 = [1, 18], $V1 = [1, 19], $V2 = [1, 20], $V3 = [1, 41], $V4 = [1, 42], $V5 = [1, 26], $V6 = [1, 24], $V7 = [1, 25], $V8 = [1, 32], $V9 = [1, 33], $Va = [1, 34], $Vb = [1, 45], $Vc = [1, 35], $Vd = [1, 36], $Ve = [1, 37], $Vf = [1, 38], $Vg = [1, 27], $Vh = [1, 28], $Vi = [1, 29], $Vj = [1, 30], $Vk = [1, 31], $Vl = [1, 44], $Vm = [1, 46], $Vn = [1, 43], $Vo = [1, 47], $Vp = [1, 9], $Vq = [1, 8, 9], $Vr = [1, 58], $Vs = [1, 59], $Vt = [1, 60], $Vu = [1, 61], $Vv = [1, 62], $Vw = [1, 63], $Vx = [1, 64], $Vy = [1, 8, 9, 41], $Vz = [1, 76], $VA = [1, 8, 9, 12, 13, 22, 39, 41, 44, 66, 67, 68, 69, 70, 71, 72, 77, 79], $VB = [1, 8, 9, 12, 13, 17, 20, 22, 39, 41, 44, 48, 58, 66, 67, 68, 69, 70, 71, 72, 77, 79, 84, 99, 101, 102], $VC = [13, 58, 84, 99, 101, 102], $VD = [13, 58, 71, 72, 84, 99, 101, 102], $VE = [13, 58, 66, 67, 68, 69, 70, 84, 99, 101, 102], $VF = [1, 98], $VG = [1, 115], $VH = [1, 107], $VI = [1, 113], $VJ = [1, 108], $VK = [1, 109], $VL = [1, 110], $VM = [1, 111], $VN = [1, 112], $VO = [1, 114], $VP = [22, 58, 59, 80, 84, 85, 86, 87, 88, 89], $VQ = [1, 8, 9, 39, 41, 44], $VR = [1, 8, 9, 22], $VS = [1, 143], $VT = [1, 8, 9, 59], $VU = [1, 8, 9, 22, 58, 59, 80, 84, 85, 86, 87, 88, 89];
|
|
31
|
+
var parser2 = {
|
|
32
|
+
trace: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function trace() {
|
|
33
|
+
}, "trace"),
|
|
34
|
+
yy: {},
|
|
35
|
+
symbols_: { "error": 2, "start": 3, "mermaidDoc": 4, "statements": 5, "graphConfig": 6, "CLASS_DIAGRAM": 7, "NEWLINE": 8, "EOF": 9, "statement": 10, "classLabel": 11, "SQS": 12, "STR": 13, "SQE": 14, "namespaceName": 15, "alphaNumToken": 16, "DOT": 17, "className": 18, "classLiteralName": 19, "GENERICTYPE": 20, "relationStatement": 21, "LABEL": 22, "namespaceStatement": 23, "classStatement": 24, "memberStatement": 25, "annotationStatement": 26, "clickStatement": 27, "styleStatement": 28, "cssClassStatement": 29, "noteStatement": 30, "classDefStatement": 31, "direction": 32, "acc_title": 33, "acc_title_value": 34, "acc_descr": 35, "acc_descr_value": 36, "acc_descr_multiline_value": 37, "namespaceIdentifier": 38, "STRUCT_START": 39, "classStatements": 40, "STRUCT_STOP": 41, "NAMESPACE": 42, "classIdentifier": 43, "STYLE_SEPARATOR": 44, "members": 45, "CLASS": 46, "ANNOTATION_START": 47, "ANNOTATION_END": 48, "MEMBER": 49, "SEPARATOR": 50, "relation": 51, "NOTE_FOR": 52, "noteText": 53, "NOTE": 54, "CLASSDEF": 55, "classList": 56, "stylesOpt": 57, "ALPHA": 58, "COMMA": 59, "direction_tb": 60, "direction_bt": 61, "direction_rl": 62, "direction_lr": 63, "relationType": 64, "lineType": 65, "AGGREGATION": 66, "EXTENSION": 67, "COMPOSITION": 68, "DEPENDENCY": 69, "LOLLIPOP": 70, "LINE": 71, "DOTTED_LINE": 72, "CALLBACK": 73, "LINK": 74, "LINK_TARGET": 75, "CLICK": 76, "CALLBACK_NAME": 77, "CALLBACK_ARGS": 78, "HREF": 79, "STYLE": 80, "CSSCLASS": 81, "style": 82, "styleComponent": 83, "NUM": 84, "COLON": 85, "UNIT": 86, "SPACE": 87, "BRKT": 88, "PCT": 89, "commentToken": 90, "textToken": 91, "graphCodeTokens": 92, "textNoTagsToken": 93, "TAGSTART": 94, "TAGEND": 95, "==": 96, "--": 97, "DEFAULT": 98, "MINUS": 99, "keywords": 100, "UNICODE_TEXT": 101, "BQUOTE_STR": 102, "$accept": 0, "$end": 1 },
|
|
36
|
+
terminals_: { 2: "error", 7: "CLASS_DIAGRAM", 8: "NEWLINE", 9: "EOF", 12: "SQS", 13: "STR", 14: "SQE", 17: "DOT", 20: "GENERICTYPE", 22: "LABEL", 33: "acc_title", 34: "acc_title_value", 35: "acc_descr", 36: "acc_descr_value", 37: "acc_descr_multiline_value", 39: "STRUCT_START", 41: "STRUCT_STOP", 42: "NAMESPACE", 44: "STYLE_SEPARATOR", 46: "CLASS", 47: "ANNOTATION_START", 48: "ANNOTATION_END", 49: "MEMBER", 50: "SEPARATOR", 52: "NOTE_FOR", 54: "NOTE", 55: "CLASSDEF", 58: "ALPHA", 59: "COMMA", 60: "direction_tb", 61: "direction_bt", 62: "direction_rl", 63: "direction_lr", 66: "AGGREGATION", 67: "EXTENSION", 68: "COMPOSITION", 69: "DEPENDENCY", 70: "LOLLIPOP", 71: "LINE", 72: "DOTTED_LINE", 73: "CALLBACK", 74: "LINK", 75: "LINK_TARGET", 76: "CLICK", 77: "CALLBACK_NAME", 78: "CALLBACK_ARGS", 79: "HREF", 80: "STYLE", 81: "CSSCLASS", 84: "NUM", 85: "COLON", 86: "UNIT", 87: "SPACE", 88: "BRKT", 89: "PCT", 92: "graphCodeTokens", 94: "TAGSTART", 95: "TAGEND", 96: "==", 97: "--", 98: "DEFAULT", 99: "MINUS", 100: "keywords", 101: "UNICODE_TEXT", 102: "BQUOTE_STR" },
|
|
37
|
+
productions_: [0, [3, 1], [3, 1], [4, 1], [6, 4], [5, 1], [5, 2], [5, 3], [11, 3], [15, 1], [15, 3], [15, 2], [18, 1], [18, 3], [18, 1], [18, 2], [18, 2], [18, 2], [10, 1], [10, 2], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [10, 1], [23, 4], [23, 5], [38, 2], [40, 1], [40, 2], [40, 3], [24, 1], [24, 3], [24, 4], [24, 6], [43, 2], [43, 3], [26, 4], [45, 1], [45, 2], [25, 1], [25, 2], [25, 1], [25, 1], [21, 3], [21, 4], [21, 4], [21, 5], [30, 3], [30, 2], [31, 3], [56, 1], [56, 3], [32, 1], [32, 1], [32, 1], [32, 1], [51, 3], [51, 2], [51, 2], [51, 1], [64, 1], [64, 1], [64, 1], [64, 1], [64, 1], [65, 1], [65, 1], [27, 3], [27, 4], [27, 3], [27, 4], [27, 4], [27, 5], [27, 3], [27, 4], [27, 4], [27, 5], [27, 4], [27, 5], [27, 5], [27, 6], [28, 3], [29, 3], [57, 1], [57, 3], [82, 1], [82, 2], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [90, 1], [90, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [93, 1], [93, 1], [93, 1], [93, 1], [16, 1], [16, 1], [16, 1], [16, 1], [19, 1], [53, 1]],
|
|
38
|
+
performAction: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
|
|
39
|
+
var $0 = $$.length - 1;
|
|
40
|
+
switch (yystate) {
|
|
41
|
+
case 8:
|
|
42
|
+
this.$ = $$[$0 - 1];
|
|
43
|
+
break;
|
|
44
|
+
case 9:
|
|
45
|
+
case 12:
|
|
46
|
+
case 14:
|
|
47
|
+
this.$ = $$[$0];
|
|
48
|
+
break;
|
|
49
|
+
case 10:
|
|
50
|
+
case 13:
|
|
51
|
+
this.$ = $$[$0 - 2] + "." + $$[$0];
|
|
52
|
+
break;
|
|
53
|
+
case 11:
|
|
54
|
+
case 15:
|
|
55
|
+
this.$ = $$[$0 - 1] + $$[$0];
|
|
56
|
+
break;
|
|
57
|
+
case 16:
|
|
58
|
+
case 17:
|
|
59
|
+
this.$ = $$[$0 - 1] + "~" + $$[$0] + "~";
|
|
60
|
+
break;
|
|
61
|
+
case 18:
|
|
62
|
+
yy.addRelation($$[$0]);
|
|
63
|
+
break;
|
|
64
|
+
case 19:
|
|
65
|
+
$$[$0 - 1].title = yy.cleanupLabel($$[$0]);
|
|
66
|
+
yy.addRelation($$[$0 - 1]);
|
|
67
|
+
break;
|
|
68
|
+
case 30:
|
|
69
|
+
this.$ = $$[$0].trim();
|
|
70
|
+
yy.setAccTitle(this.$);
|
|
71
|
+
break;
|
|
72
|
+
case 31:
|
|
73
|
+
case 32:
|
|
74
|
+
this.$ = $$[$0].trim();
|
|
75
|
+
yy.setAccDescription(this.$);
|
|
76
|
+
break;
|
|
77
|
+
case 33:
|
|
78
|
+
yy.addClassesToNamespace($$[$0 - 3], $$[$0 - 1]);
|
|
79
|
+
break;
|
|
80
|
+
case 34:
|
|
81
|
+
yy.addClassesToNamespace($$[$0 - 4], $$[$0 - 1]);
|
|
82
|
+
break;
|
|
83
|
+
case 35:
|
|
84
|
+
this.$ = $$[$0];
|
|
85
|
+
yy.addNamespace($$[$0]);
|
|
86
|
+
break;
|
|
87
|
+
case 36:
|
|
88
|
+
this.$ = [$$[$0]];
|
|
89
|
+
break;
|
|
90
|
+
case 37:
|
|
91
|
+
this.$ = [$$[$0 - 1]];
|
|
92
|
+
break;
|
|
93
|
+
case 38:
|
|
94
|
+
$$[$0].unshift($$[$0 - 2]);
|
|
95
|
+
this.$ = $$[$0];
|
|
96
|
+
break;
|
|
97
|
+
case 40:
|
|
98
|
+
yy.setCssClass($$[$0 - 2], $$[$0]);
|
|
99
|
+
break;
|
|
100
|
+
case 41:
|
|
101
|
+
yy.addMembers($$[$0 - 3], $$[$0 - 1]);
|
|
102
|
+
break;
|
|
103
|
+
case 42:
|
|
104
|
+
yy.setCssClass($$[$0 - 5], $$[$0 - 3]);
|
|
105
|
+
yy.addMembers($$[$0 - 5], $$[$0 - 1]);
|
|
106
|
+
break;
|
|
107
|
+
case 43:
|
|
108
|
+
this.$ = $$[$0];
|
|
109
|
+
yy.addClass($$[$0]);
|
|
110
|
+
break;
|
|
111
|
+
case 44:
|
|
112
|
+
this.$ = $$[$0 - 1];
|
|
113
|
+
yy.addClass($$[$0 - 1]);
|
|
114
|
+
yy.setClassLabel($$[$0 - 1], $$[$0]);
|
|
115
|
+
break;
|
|
116
|
+
case 45:
|
|
117
|
+
yy.addAnnotation($$[$0], $$[$0 - 2]);
|
|
118
|
+
break;
|
|
119
|
+
case 46:
|
|
120
|
+
case 59:
|
|
121
|
+
this.$ = [$$[$0]];
|
|
122
|
+
break;
|
|
123
|
+
case 47:
|
|
124
|
+
$$[$0].push($$[$0 - 1]);
|
|
125
|
+
this.$ = $$[$0];
|
|
126
|
+
break;
|
|
127
|
+
case 48:
|
|
128
|
+
break;
|
|
129
|
+
case 49:
|
|
130
|
+
yy.addMember($$[$0 - 1], yy.cleanupLabel($$[$0]));
|
|
131
|
+
break;
|
|
132
|
+
case 50:
|
|
133
|
+
break;
|
|
134
|
+
case 51:
|
|
135
|
+
break;
|
|
136
|
+
case 52:
|
|
137
|
+
this.$ = { "id1": $$[$0 - 2], "id2": $$[$0], relation: $$[$0 - 1], relationTitle1: "none", relationTitle2: "none" };
|
|
138
|
+
break;
|
|
139
|
+
case 53:
|
|
140
|
+
this.$ = { id1: $$[$0 - 3], id2: $$[$0], relation: $$[$0 - 1], relationTitle1: $$[$0 - 2], relationTitle2: "none" };
|
|
141
|
+
break;
|
|
142
|
+
case 54:
|
|
143
|
+
this.$ = { id1: $$[$0 - 3], id2: $$[$0], relation: $$[$0 - 2], relationTitle1: "none", relationTitle2: $$[$0 - 1] };
|
|
144
|
+
break;
|
|
145
|
+
case 55:
|
|
146
|
+
this.$ = { id1: $$[$0 - 4], id2: $$[$0], relation: $$[$0 - 2], relationTitle1: $$[$0 - 3], relationTitle2: $$[$0 - 1] };
|
|
147
|
+
break;
|
|
148
|
+
case 56:
|
|
149
|
+
yy.addNote($$[$0], $$[$0 - 1]);
|
|
150
|
+
break;
|
|
151
|
+
case 57:
|
|
152
|
+
yy.addNote($$[$0]);
|
|
153
|
+
break;
|
|
154
|
+
case 58:
|
|
155
|
+
this.$ = $$[$0 - 2];
|
|
156
|
+
yy.defineClass($$[$0 - 1], $$[$0]);
|
|
157
|
+
break;
|
|
158
|
+
case 60:
|
|
159
|
+
this.$ = $$[$0 - 2].concat([$$[$0]]);
|
|
160
|
+
break;
|
|
161
|
+
case 61:
|
|
162
|
+
yy.setDirection("TB");
|
|
163
|
+
break;
|
|
164
|
+
case 62:
|
|
165
|
+
yy.setDirection("BT");
|
|
166
|
+
break;
|
|
167
|
+
case 63:
|
|
168
|
+
yy.setDirection("RL");
|
|
169
|
+
break;
|
|
170
|
+
case 64:
|
|
171
|
+
yy.setDirection("LR");
|
|
172
|
+
break;
|
|
173
|
+
case 65:
|
|
174
|
+
this.$ = { type1: $$[$0 - 2], type2: $$[$0], lineType: $$[$0 - 1] };
|
|
175
|
+
break;
|
|
176
|
+
case 66:
|
|
177
|
+
this.$ = { type1: "none", type2: $$[$0], lineType: $$[$0 - 1] };
|
|
178
|
+
break;
|
|
179
|
+
case 67:
|
|
180
|
+
this.$ = { type1: $$[$0 - 1], type2: "none", lineType: $$[$0] };
|
|
181
|
+
break;
|
|
182
|
+
case 68:
|
|
183
|
+
this.$ = { type1: "none", type2: "none", lineType: $$[$0] };
|
|
184
|
+
break;
|
|
185
|
+
case 69:
|
|
186
|
+
this.$ = yy.relationType.AGGREGATION;
|
|
187
|
+
break;
|
|
188
|
+
case 70:
|
|
189
|
+
this.$ = yy.relationType.EXTENSION;
|
|
190
|
+
break;
|
|
191
|
+
case 71:
|
|
192
|
+
this.$ = yy.relationType.COMPOSITION;
|
|
193
|
+
break;
|
|
194
|
+
case 72:
|
|
195
|
+
this.$ = yy.relationType.DEPENDENCY;
|
|
196
|
+
break;
|
|
197
|
+
case 73:
|
|
198
|
+
this.$ = yy.relationType.LOLLIPOP;
|
|
199
|
+
break;
|
|
200
|
+
case 74:
|
|
201
|
+
this.$ = yy.lineType.LINE;
|
|
202
|
+
break;
|
|
203
|
+
case 75:
|
|
204
|
+
this.$ = yy.lineType.DOTTED_LINE;
|
|
205
|
+
break;
|
|
206
|
+
case 76:
|
|
207
|
+
case 82:
|
|
208
|
+
this.$ = $$[$0 - 2];
|
|
209
|
+
yy.setClickEvent($$[$0 - 1], $$[$0]);
|
|
210
|
+
break;
|
|
211
|
+
case 77:
|
|
212
|
+
case 83:
|
|
213
|
+
this.$ = $$[$0 - 3];
|
|
214
|
+
yy.setClickEvent($$[$0 - 2], $$[$0 - 1]);
|
|
215
|
+
yy.setTooltip($$[$0 - 2], $$[$0]);
|
|
216
|
+
break;
|
|
217
|
+
case 78:
|
|
218
|
+
this.$ = $$[$0 - 2];
|
|
219
|
+
yy.setLink($$[$0 - 1], $$[$0]);
|
|
220
|
+
break;
|
|
221
|
+
case 79:
|
|
222
|
+
this.$ = $$[$0 - 3];
|
|
223
|
+
yy.setLink($$[$0 - 2], $$[$0 - 1], $$[$0]);
|
|
224
|
+
break;
|
|
225
|
+
case 80:
|
|
226
|
+
this.$ = $$[$0 - 3];
|
|
227
|
+
yy.setLink($$[$0 - 2], $$[$0 - 1]);
|
|
228
|
+
yy.setTooltip($$[$0 - 2], $$[$0]);
|
|
229
|
+
break;
|
|
230
|
+
case 81:
|
|
231
|
+
this.$ = $$[$0 - 4];
|
|
232
|
+
yy.setLink($$[$0 - 3], $$[$0 - 2], $$[$0]);
|
|
233
|
+
yy.setTooltip($$[$0 - 3], $$[$0 - 1]);
|
|
234
|
+
break;
|
|
235
|
+
case 84:
|
|
236
|
+
this.$ = $$[$0 - 3];
|
|
237
|
+
yy.setClickEvent($$[$0 - 2], $$[$0 - 1], $$[$0]);
|
|
238
|
+
break;
|
|
239
|
+
case 85:
|
|
240
|
+
this.$ = $$[$0 - 4];
|
|
241
|
+
yy.setClickEvent($$[$0 - 3], $$[$0 - 2], $$[$0 - 1]);
|
|
242
|
+
yy.setTooltip($$[$0 - 3], $$[$0]);
|
|
243
|
+
break;
|
|
244
|
+
case 86:
|
|
245
|
+
this.$ = $$[$0 - 3];
|
|
246
|
+
yy.setLink($$[$0 - 2], $$[$0]);
|
|
247
|
+
break;
|
|
248
|
+
case 87:
|
|
249
|
+
this.$ = $$[$0 - 4];
|
|
250
|
+
yy.setLink($$[$0 - 3], $$[$0 - 1], $$[$0]);
|
|
251
|
+
break;
|
|
252
|
+
case 88:
|
|
253
|
+
this.$ = $$[$0 - 4];
|
|
254
|
+
yy.setLink($$[$0 - 3], $$[$0 - 1]);
|
|
255
|
+
yy.setTooltip($$[$0 - 3], $$[$0]);
|
|
256
|
+
break;
|
|
257
|
+
case 89:
|
|
258
|
+
this.$ = $$[$0 - 5];
|
|
259
|
+
yy.setLink($$[$0 - 4], $$[$0 - 2], $$[$0]);
|
|
260
|
+
yy.setTooltip($$[$0 - 4], $$[$0 - 1]);
|
|
261
|
+
break;
|
|
262
|
+
case 90:
|
|
263
|
+
this.$ = $$[$0 - 2];
|
|
264
|
+
yy.setCssStyle($$[$0 - 1], $$[$0]);
|
|
265
|
+
break;
|
|
266
|
+
case 91:
|
|
267
|
+
yy.setCssClass($$[$0 - 1], $$[$0]);
|
|
268
|
+
break;
|
|
269
|
+
case 92:
|
|
270
|
+
this.$ = [$$[$0]];
|
|
271
|
+
break;
|
|
272
|
+
case 93:
|
|
273
|
+
$$[$0 - 2].push($$[$0]);
|
|
274
|
+
this.$ = $$[$0 - 2];
|
|
275
|
+
break;
|
|
276
|
+
case 95:
|
|
277
|
+
this.$ = $$[$0 - 1] + $$[$0];
|
|
278
|
+
break;
|
|
279
|
+
}
|
|
280
|
+
}, "anonymous"),
|
|
281
|
+
table: [{ 3: 1, 4: 2, 5: 3, 6: 4, 7: [1, 6], 10: 5, 16: 39, 18: 21, 19: 40, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: $V0, 35: $V1, 37: $V2, 38: 22, 42: $V3, 43: 23, 46: $V4, 47: $V5, 49: $V6, 50: $V7, 52: $V8, 54: $V9, 55: $Va, 58: $Vb, 60: $Vc, 61: $Vd, 62: $Ve, 63: $Vf, 73: $Vg, 74: $Vh, 76: $Vi, 80: $Vj, 81: $Vk, 84: $Vl, 99: $Vm, 101: $Vn, 102: $Vo }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3] }, o($Vp, [2, 5], { 8: [1, 48] }), { 8: [1, 49] }, o($Vq, [2, 18], { 22: [1, 50] }), o($Vq, [2, 20]), o($Vq, [2, 21]), o($Vq, [2, 22]), o($Vq, [2, 23]), o($Vq, [2, 24]), o($Vq, [2, 25]), o($Vq, [2, 26]), o($Vq, [2, 27]), o($Vq, [2, 28]), o($Vq, [2, 29]), { 34: [1, 51] }, { 36: [1, 52] }, o($Vq, [2, 32]), o($Vq, [2, 48], { 51: 53, 64: 56, 65: 57, 13: [1, 54], 22: [1, 55], 66: $Vr, 67: $Vs, 68: $Vt, 69: $Vu, 70: $Vv, 71: $Vw, 72: $Vx }), { 39: [1, 65] }, o($Vy, [2, 39], { 39: [1, 67], 44: [1, 66] }), o($Vq, [2, 50]), o($Vq, [2, 51]), { 16: 68, 58: $Vb, 84: $Vl, 99: $Vm, 101: $Vn }, { 16: 39, 18: 69, 19: 40, 58: $Vb, 84: $Vl, 99: $Vm, 101: $Vn, 102: $Vo }, { 16: 39, 18: 70, 19: 40, 58: $Vb, 84: $Vl, 99: $Vm, 101: $Vn, 102: $Vo }, { 16: 39, 18: 71, 19: 40, 58: $Vb, 84: $Vl, 99: $Vm, 101: $Vn, 102: $Vo }, { 58: [1, 72] }, { 13: [1, 73] }, { 16: 39, 18: 74, 19: 40, 58: $Vb, 84: $Vl, 99: $Vm, 101: $Vn, 102: $Vo }, { 13: $Vz, 53: 75 }, { 56: 77, 58: [1, 78] }, o($Vq, [2, 61]), o($Vq, [2, 62]), o($Vq, [2, 63]), o($Vq, [2, 64]), o($VA, [2, 12], { 16: 39, 19: 40, 18: 80, 17: [1, 79], 20: [1, 81], 58: $Vb, 84: $Vl, 99: $Vm, 101: $Vn, 102: $Vo }), o($VA, [2, 14], { 20: [1, 82] }), { 15: 83, 16: 84, 58: $Vb, 84: $Vl, 99: $Vm, 101: $Vn }, { 16: 39, 18: 85, 19: 40, 58: $Vb, 84: $Vl, 99: $Vm, 101: $Vn, 102: $Vo }, o($VB, [2, 118]), o($VB, [2, 119]), o($VB, [2, 120]), o($VB, [2, 121]), o([1, 8, 9, 12, 13, 20, 22, 39, 41, 44, 66, 67, 68, 69, 70, 71, 72, 77, 79], [2, 122]), o($Vp, [2, 6], { 10: 5, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 18: 21, 38: 22, 43: 23, 16: 39, 19: 40, 5: 86, 33: $V0, 35: $V1, 37: $V2, 42: $V3, 46: $V4, 47: $V5, 49: $V6, 50: $V7, 52: $V8, 54: $V9, 55: $Va, 58: $Vb, 60: $Vc, 61: $Vd, 62: $Ve, 63: $Vf, 73: $Vg, 74: $Vh, 76: $Vi, 80: $Vj, 81: $Vk, 84: $Vl, 99: $Vm, 101: $Vn, 102: $Vo }), { 5: 87, 10: 5, 16: 39, 18: 21, 19: 40, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: $V0, 35: $V1, 37: $V2, 38: 22, 42: $V3, 43: 23, 46: $V4, 47: $V5, 49: $V6, 50: $V7, 52: $V8, 54: $V9, 55: $Va, 58: $Vb, 60: $Vc, 61: $Vd, 62: $Ve, 63: $Vf, 73: $Vg, 74: $Vh, 76: $Vi, 80: $Vj, 81: $Vk, 84: $Vl, 99: $Vm, 101: $Vn, 102: $Vo }, o($Vq, [2, 19]), o($Vq, [2, 30]), o($Vq, [2, 31]), { 13: [1, 89], 16: 39, 18: 88, 19: 40, 58: $Vb, 84: $Vl, 99: $Vm, 101: $Vn, 102: $Vo }, { 51: 90, 64: 56, 65: 57, 66: $Vr, 67: $Vs, 68: $Vt, 69: $Vu, 70: $Vv, 71: $Vw, 72: $Vx }, o($Vq, [2, 49]), { 65: 91, 71: $Vw, 72: $Vx }, o($VC, [2, 68], { 64: 92, 66: $Vr, 67: $Vs, 68: $Vt, 69: $Vu, 70: $Vv }), o($VD, [2, 69]), o($VD, [2, 70]), o($VD, [2, 71]), o($VD, [2, 72]), o($VD, [2, 73]), o($VE, [2, 74]), o($VE, [2, 75]), { 8: [1, 94], 24: 95, 40: 93, 43: 23, 46: $V4 }, { 16: 96, 58: $Vb, 84: $Vl, 99: $Vm, 101: $Vn }, { 45: 97, 49: $VF }, { 48: [1, 99] }, { 13: [1, 100] }, { 13: [1, 101] }, { 77: [1, 102], 79: [1, 103] }, { 22: $VG, 57: 104, 58: $VH, 80: $VI, 82: 105, 83: 106, 84: $VJ, 85: $VK, 86: $VL, 87: $VM, 88: $VN, 89: $VO }, { 58: [1, 116] }, { 13: $Vz, 53: 117 }, o($Vq, [2, 57]), o($Vq, [2, 123]), { 22: $VG, 57: 118, 58: $VH, 59: [1, 119], 80: $VI, 82: 105, 83: 106, 84: $VJ, 85: $VK, 86: $VL, 87: $VM, 88: $VN, 89: $VO }, o($VP, [2, 59]), { 16: 39, 18: 120, 19: 40, 58: $Vb, 84: $Vl, 99: $Vm, 101: $Vn, 102: $Vo }, o($VA, [2, 15]), o($VA, [2, 16]), o($VA, [2, 17]), { 39: [2, 35] }, { 15: 122, 16: 84, 17: [1, 121], 39: [2, 9], 58: $Vb, 84: $Vl, 99: $Vm, 101: $Vn }, o($VQ, [2, 43], { 11: 123, 12: [1, 124] }), o($Vp, [2, 7]), { 9: [1, 125] }, o($VR, [2, 52]), { 16: 39, 18: 126, 19: 40, 58: $Vb, 84: $Vl, 99: $Vm, 101: $Vn, 102: $Vo }, { 13: [1, 128], 16: 39, 18: 127, 19: 40, 58: $Vb, 84: $Vl, 99: $Vm, 101: $Vn, 102: $Vo }, o($VC, [2, 67], { 64: 129, 66: $Vr, 67: $Vs, 68: $Vt, 69: $Vu, 70: $Vv }), o($VC, [2, 66]), { 41: [1, 130] }, { 24: 95, 40: 131, 43: 23, 46: $V4 }, { 8: [1, 132], 41: [2, 36] }, o($Vy, [2, 40], { 39: [1, 133] }), { 41: [1, 134] }, { 41: [2, 46], 45: 135, 49: $VF }, { 16: 39, 18: 136, 19: 40, 58: $Vb, 84: $Vl, 99: $Vm, 101: $Vn, 102: $Vo }, o($Vq, [2, 76], { 13: [1, 137] }), o($Vq, [2, 78], { 13: [1, 139], 75: [1, 138] }), o($Vq, [2, 82], { 13: [1, 140], 78: [1, 141] }), { 13: [1, 142] }, o($Vq, [2, 90], { 59: $VS }), o($VT, [2, 92], { 83: 144, 22: $VG, 58: $VH, 80: $VI, 84: $VJ, 85: $VK, 86: $VL, 87: $VM, 88: $VN, 89: $VO }), o($VU, [2, 94]), o($VU, [2, 96]), o($VU, [2, 97]), o($VU, [2, 98]), o($VU, [2, 99]), o($VU, [2, 100]), o($VU, [2, 101]), o($VU, [2, 102]), o($VU, [2, 103]), o($VU, [2, 104]), o($Vq, [2, 91]), o($Vq, [2, 56]), o($Vq, [2, 58], { 59: $VS }), { 58: [1, 145] }, o($VA, [2, 13]), { 15: 146, 16: 84, 58: $Vb, 84: $Vl, 99: $Vm, 101: $Vn }, { 39: [2, 11] }, o($VQ, [2, 44]), { 13: [1, 147] }, { 1: [2, 4] }, o($VR, [2, 54]), o($VR, [2, 53]), { 16: 39, 18: 148, 19: 40, 58: $Vb, 84: $Vl, 99: $Vm, 101: $Vn, 102: $Vo }, o($VC, [2, 65]), o($Vq, [2, 33]), { 41: [1, 149] }, { 24: 95, 40: 150, 41: [2, 37], 43: 23, 46: $V4 }, { 45: 151, 49: $VF }, o($Vy, [2, 41]), { 41: [2, 47] }, o($Vq, [2, 45]), o($Vq, [2, 77]), o($Vq, [2, 79]), o($Vq, [2, 80], { 75: [1, 152] }), o($Vq, [2, 83]), o($Vq, [2, 84], { 13: [1, 153] }), o($Vq, [2, 86], { 13: [1, 155], 75: [1, 154] }), { 22: $VG, 58: $VH, 80: $VI, 82: 156, 83: 106, 84: $VJ, 85: $VK, 86: $VL, 87: $VM, 88: $VN, 89: $VO }, o($VU, [2, 95]), o($VP, [2, 60]), { 39: [2, 10] }, { 14: [1, 157] }, o($VR, [2, 55]), o($Vq, [2, 34]), { 41: [2, 38] }, { 41: [1, 158] }, o($Vq, [2, 81]), o($Vq, [2, 85]), o($Vq, [2, 87]), o($Vq, [2, 88], { 75: [1, 159] }), o($VT, [2, 93], { 83: 144, 22: $VG, 58: $VH, 80: $VI, 84: $VJ, 85: $VK, 86: $VL, 87: $VM, 88: $VN, 89: $VO }), o($VQ, [2, 8]), o($Vy, [2, 42]), o($Vq, [2, 89])],
|
|
282
|
+
defaultActions: { 2: [2, 1], 3: [2, 2], 4: [2, 3], 83: [2, 35], 122: [2, 11], 125: [2, 4], 135: [2, 47], 146: [2, 10], 150: [2, 38] },
|
|
283
|
+
parseError: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function parseError(str, hash) {
|
|
284
|
+
if (hash.recoverable) {
|
|
285
|
+
this.trace(str);
|
|
286
|
+
} else {
|
|
287
|
+
var error = new Error(str);
|
|
288
|
+
error.hash = hash;
|
|
289
|
+
throw error;
|
|
290
|
+
}
|
|
291
|
+
}, "parseError"),
|
|
292
|
+
parse: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function parse(input) {
|
|
293
|
+
var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
|
|
294
|
+
var args = lstack.slice.call(arguments, 1);
|
|
295
|
+
var lexer2 = Object.create(this.lexer);
|
|
296
|
+
var sharedState = { yy: {} };
|
|
297
|
+
for (var k in this.yy) {
|
|
298
|
+
if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
|
|
299
|
+
sharedState.yy[k] = this.yy[k];
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
lexer2.setInput(input, sharedState.yy);
|
|
303
|
+
sharedState.yy.lexer = lexer2;
|
|
304
|
+
sharedState.yy.parser = this;
|
|
305
|
+
if (typeof lexer2.yylloc == "undefined") {
|
|
306
|
+
lexer2.yylloc = {};
|
|
307
|
+
}
|
|
308
|
+
var yyloc = lexer2.yylloc;
|
|
309
|
+
lstack.push(yyloc);
|
|
310
|
+
var ranges = lexer2.options && lexer2.options.ranges;
|
|
311
|
+
if (typeof sharedState.yy.parseError === "function") {
|
|
312
|
+
this.parseError = sharedState.yy.parseError;
|
|
313
|
+
} else {
|
|
314
|
+
this.parseError = Object.getPrototypeOf(this).parseError;
|
|
315
|
+
}
|
|
316
|
+
function popStack(n) {
|
|
317
|
+
stack.length = stack.length - 2 * n;
|
|
318
|
+
vstack.length = vstack.length - n;
|
|
319
|
+
lstack.length = lstack.length - n;
|
|
320
|
+
}
|
|
321
|
+
(0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(popStack, "popStack");
|
|
322
|
+
function lex() {
|
|
323
|
+
var token;
|
|
324
|
+
token = tstack.pop() || lexer2.lex() || EOF;
|
|
325
|
+
if (typeof token !== "number") {
|
|
326
|
+
if (token instanceof Array) {
|
|
327
|
+
tstack = token;
|
|
328
|
+
token = tstack.pop();
|
|
329
|
+
}
|
|
330
|
+
token = self.symbols_[token] || token;
|
|
331
|
+
}
|
|
332
|
+
return token;
|
|
333
|
+
}
|
|
334
|
+
(0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(lex, "lex");
|
|
335
|
+
var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
|
|
336
|
+
while (true) {
|
|
337
|
+
state = stack[stack.length - 1];
|
|
338
|
+
if (this.defaultActions[state]) {
|
|
339
|
+
action = this.defaultActions[state];
|
|
340
|
+
} else {
|
|
341
|
+
if (symbol === null || typeof symbol == "undefined") {
|
|
342
|
+
symbol = lex();
|
|
343
|
+
}
|
|
344
|
+
action = table[state] && table[state][symbol];
|
|
345
|
+
}
|
|
346
|
+
if (typeof action === "undefined" || !action.length || !action[0]) {
|
|
347
|
+
var errStr = "";
|
|
348
|
+
expected = [];
|
|
349
|
+
for (p in table[state]) {
|
|
350
|
+
if (this.terminals_[p] && p > TERROR) {
|
|
351
|
+
expected.push("'" + this.terminals_[p] + "'");
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
if (lexer2.showPosition) {
|
|
355
|
+
errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
|
|
356
|
+
} else {
|
|
357
|
+
errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
|
|
358
|
+
}
|
|
359
|
+
this.parseError(errStr, {
|
|
360
|
+
text: lexer2.match,
|
|
361
|
+
token: this.terminals_[symbol] || symbol,
|
|
362
|
+
line: lexer2.yylineno,
|
|
363
|
+
loc: yyloc,
|
|
364
|
+
expected
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
if (action[0] instanceof Array && action.length > 1) {
|
|
368
|
+
throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
|
|
369
|
+
}
|
|
370
|
+
switch (action[0]) {
|
|
371
|
+
case 1:
|
|
372
|
+
stack.push(symbol);
|
|
373
|
+
vstack.push(lexer2.yytext);
|
|
374
|
+
lstack.push(lexer2.yylloc);
|
|
375
|
+
stack.push(action[1]);
|
|
376
|
+
symbol = null;
|
|
377
|
+
if (!preErrorSymbol) {
|
|
378
|
+
yyleng = lexer2.yyleng;
|
|
379
|
+
yytext = lexer2.yytext;
|
|
380
|
+
yylineno = lexer2.yylineno;
|
|
381
|
+
yyloc = lexer2.yylloc;
|
|
382
|
+
if (recovering > 0) {
|
|
383
|
+
recovering--;
|
|
384
|
+
}
|
|
385
|
+
} else {
|
|
386
|
+
symbol = preErrorSymbol;
|
|
387
|
+
preErrorSymbol = null;
|
|
388
|
+
}
|
|
389
|
+
break;
|
|
390
|
+
case 2:
|
|
391
|
+
len = this.productions_[action[1]][1];
|
|
392
|
+
yyval.$ = vstack[vstack.length - len];
|
|
393
|
+
yyval._$ = {
|
|
394
|
+
first_line: lstack[lstack.length - (len || 1)].first_line,
|
|
395
|
+
last_line: lstack[lstack.length - 1].last_line,
|
|
396
|
+
first_column: lstack[lstack.length - (len || 1)].first_column,
|
|
397
|
+
last_column: lstack[lstack.length - 1].last_column
|
|
398
|
+
};
|
|
399
|
+
if (ranges) {
|
|
400
|
+
yyval._$.range = [
|
|
401
|
+
lstack[lstack.length - (len || 1)].range[0],
|
|
402
|
+
lstack[lstack.length - 1].range[1]
|
|
403
|
+
];
|
|
404
|
+
}
|
|
405
|
+
r = this.performAction.apply(yyval, [
|
|
406
|
+
yytext,
|
|
407
|
+
yyleng,
|
|
408
|
+
yylineno,
|
|
409
|
+
sharedState.yy,
|
|
410
|
+
action[1],
|
|
411
|
+
vstack,
|
|
412
|
+
lstack
|
|
413
|
+
].concat(args));
|
|
414
|
+
if (typeof r !== "undefined") {
|
|
415
|
+
return r;
|
|
416
|
+
}
|
|
417
|
+
if (len) {
|
|
418
|
+
stack = stack.slice(0, -1 * len * 2);
|
|
419
|
+
vstack = vstack.slice(0, -1 * len);
|
|
420
|
+
lstack = lstack.slice(0, -1 * len);
|
|
421
|
+
}
|
|
422
|
+
stack.push(this.productions_[action[1]][0]);
|
|
423
|
+
vstack.push(yyval.$);
|
|
424
|
+
lstack.push(yyval._$);
|
|
425
|
+
newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
|
|
426
|
+
stack.push(newState);
|
|
427
|
+
break;
|
|
428
|
+
case 3:
|
|
429
|
+
return true;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
return true;
|
|
433
|
+
}, "parse")
|
|
434
|
+
};
|
|
435
|
+
var lexer = /* @__PURE__ */ function() {
|
|
436
|
+
var lexer2 = {
|
|
437
|
+
EOF: 1,
|
|
438
|
+
parseError: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function parseError(str, hash) {
|
|
439
|
+
if (this.yy.parser) {
|
|
440
|
+
this.yy.parser.parseError(str, hash);
|
|
441
|
+
} else {
|
|
442
|
+
throw new Error(str);
|
|
443
|
+
}
|
|
444
|
+
}, "parseError"),
|
|
445
|
+
// resets the lexer, sets new input
|
|
446
|
+
setInput: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(input, yy) {
|
|
447
|
+
this.yy = yy || this.yy || {};
|
|
448
|
+
this._input = input;
|
|
449
|
+
this._more = this._backtrack = this.done = false;
|
|
450
|
+
this.yylineno = this.yyleng = 0;
|
|
451
|
+
this.yytext = this.matched = this.match = "";
|
|
452
|
+
this.conditionStack = ["INITIAL"];
|
|
453
|
+
this.yylloc = {
|
|
454
|
+
first_line: 1,
|
|
455
|
+
first_column: 0,
|
|
456
|
+
last_line: 1,
|
|
457
|
+
last_column: 0
|
|
458
|
+
};
|
|
459
|
+
if (this.options.ranges) {
|
|
460
|
+
this.yylloc.range = [0, 0];
|
|
461
|
+
}
|
|
462
|
+
this.offset = 0;
|
|
463
|
+
return this;
|
|
464
|
+
}, "setInput"),
|
|
465
|
+
// consumes and returns one char from the input
|
|
466
|
+
input: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
|
|
467
|
+
var ch = this._input[0];
|
|
468
|
+
this.yytext += ch;
|
|
469
|
+
this.yyleng++;
|
|
470
|
+
this.offset++;
|
|
471
|
+
this.match += ch;
|
|
472
|
+
this.matched += ch;
|
|
473
|
+
var lines = ch.match(/(?:\r\n?|\n).*/g);
|
|
474
|
+
if (lines) {
|
|
475
|
+
this.yylineno++;
|
|
476
|
+
this.yylloc.last_line++;
|
|
477
|
+
} else {
|
|
478
|
+
this.yylloc.last_column++;
|
|
479
|
+
}
|
|
480
|
+
if (this.options.ranges) {
|
|
481
|
+
this.yylloc.range[1]++;
|
|
482
|
+
}
|
|
483
|
+
this._input = this._input.slice(1);
|
|
484
|
+
return ch;
|
|
485
|
+
}, "input"),
|
|
486
|
+
// unshifts one char (or a string) into the input
|
|
487
|
+
unput: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(ch) {
|
|
488
|
+
var len = ch.length;
|
|
489
|
+
var lines = ch.split(/(?:\r\n?|\n)/g);
|
|
490
|
+
this._input = ch + this._input;
|
|
491
|
+
this.yytext = this.yytext.substr(0, this.yytext.length - len);
|
|
492
|
+
this.offset -= len;
|
|
493
|
+
var oldLines = this.match.split(/(?:\r\n?|\n)/g);
|
|
494
|
+
this.match = this.match.substr(0, this.match.length - 1);
|
|
495
|
+
this.matched = this.matched.substr(0, this.matched.length - 1);
|
|
496
|
+
if (lines.length - 1) {
|
|
497
|
+
this.yylineno -= lines.length - 1;
|
|
498
|
+
}
|
|
499
|
+
var r = this.yylloc.range;
|
|
500
|
+
this.yylloc = {
|
|
501
|
+
first_line: this.yylloc.first_line,
|
|
502
|
+
last_line: this.yylineno + 1,
|
|
503
|
+
first_column: this.yylloc.first_column,
|
|
504
|
+
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
|
|
505
|
+
};
|
|
506
|
+
if (this.options.ranges) {
|
|
507
|
+
this.yylloc.range = [r[0], r[0] + this.yyleng - len];
|
|
508
|
+
}
|
|
509
|
+
this.yyleng = this.yytext.length;
|
|
510
|
+
return this;
|
|
511
|
+
}, "unput"),
|
|
512
|
+
// When called from action, caches matched text and appends it on next action
|
|
513
|
+
more: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
|
|
514
|
+
this._more = true;
|
|
515
|
+
return this;
|
|
516
|
+
}, "more"),
|
|
517
|
+
// 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.
|
|
518
|
+
reject: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
|
|
519
|
+
if (this.options.backtrack_lexer) {
|
|
520
|
+
this._backtrack = true;
|
|
521
|
+
} else {
|
|
522
|
+
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(), {
|
|
523
|
+
text: "",
|
|
524
|
+
token: null,
|
|
525
|
+
line: this.yylineno
|
|
526
|
+
});
|
|
527
|
+
}
|
|
528
|
+
return this;
|
|
529
|
+
}, "reject"),
|
|
530
|
+
// retain first n characters of the match
|
|
531
|
+
less: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(n) {
|
|
532
|
+
this.unput(this.match.slice(n));
|
|
533
|
+
}, "less"),
|
|
534
|
+
// displays already matched input, i.e. for error messages
|
|
535
|
+
pastInput: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
|
|
536
|
+
var past = this.matched.substr(0, this.matched.length - this.match.length);
|
|
537
|
+
return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
|
|
538
|
+
}, "pastInput"),
|
|
539
|
+
// displays upcoming input, i.e. for error messages
|
|
540
|
+
upcomingInput: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
|
|
541
|
+
var next = this.match;
|
|
542
|
+
if (next.length < 20) {
|
|
543
|
+
next += this._input.substr(0, 20 - next.length);
|
|
544
|
+
}
|
|
545
|
+
return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
546
|
+
}, "upcomingInput"),
|
|
547
|
+
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
548
|
+
showPosition: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
|
|
549
|
+
var pre = this.pastInput();
|
|
550
|
+
var c = new Array(pre.length + 1).join("-");
|
|
551
|
+
return pre + this.upcomingInput() + "\n" + c + "^";
|
|
552
|
+
}, "showPosition"),
|
|
553
|
+
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
554
|
+
test_match: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(match, indexed_rule) {
|
|
555
|
+
var token, lines, backup;
|
|
556
|
+
if (this.options.backtrack_lexer) {
|
|
557
|
+
backup = {
|
|
558
|
+
yylineno: this.yylineno,
|
|
559
|
+
yylloc: {
|
|
560
|
+
first_line: this.yylloc.first_line,
|
|
561
|
+
last_line: this.last_line,
|
|
562
|
+
first_column: this.yylloc.first_column,
|
|
563
|
+
last_column: this.yylloc.last_column
|
|
564
|
+
},
|
|
565
|
+
yytext: this.yytext,
|
|
566
|
+
match: this.match,
|
|
567
|
+
matches: this.matches,
|
|
568
|
+
matched: this.matched,
|
|
569
|
+
yyleng: this.yyleng,
|
|
570
|
+
offset: this.offset,
|
|
571
|
+
_more: this._more,
|
|
572
|
+
_input: this._input,
|
|
573
|
+
yy: this.yy,
|
|
574
|
+
conditionStack: this.conditionStack.slice(0),
|
|
575
|
+
done: this.done
|
|
576
|
+
};
|
|
577
|
+
if (this.options.ranges) {
|
|
578
|
+
backup.yylloc.range = this.yylloc.range.slice(0);
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
lines = match[0].match(/(?:\r\n?|\n).*/g);
|
|
582
|
+
if (lines) {
|
|
583
|
+
this.yylineno += lines.length;
|
|
584
|
+
}
|
|
585
|
+
this.yylloc = {
|
|
586
|
+
first_line: this.yylloc.last_line,
|
|
587
|
+
last_line: this.yylineno + 1,
|
|
588
|
+
first_column: this.yylloc.last_column,
|
|
589
|
+
last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
|
|
590
|
+
};
|
|
591
|
+
this.yytext += match[0];
|
|
592
|
+
this.match += match[0];
|
|
593
|
+
this.matches = match;
|
|
594
|
+
this.yyleng = this.yytext.length;
|
|
595
|
+
if (this.options.ranges) {
|
|
596
|
+
this.yylloc.range = [this.offset, this.offset += this.yyleng];
|
|
597
|
+
}
|
|
598
|
+
this._more = false;
|
|
599
|
+
this._backtrack = false;
|
|
600
|
+
this._input = this._input.slice(match[0].length);
|
|
601
|
+
this.matched += match[0];
|
|
602
|
+
token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
|
|
603
|
+
if (this.done && this._input) {
|
|
604
|
+
this.done = false;
|
|
605
|
+
}
|
|
606
|
+
if (token) {
|
|
607
|
+
return token;
|
|
608
|
+
} else if (this._backtrack) {
|
|
609
|
+
for (var k in backup) {
|
|
610
|
+
this[k] = backup[k];
|
|
611
|
+
}
|
|
612
|
+
return false;
|
|
613
|
+
}
|
|
614
|
+
return false;
|
|
615
|
+
}, "test_match"),
|
|
616
|
+
// return next match in input
|
|
617
|
+
next: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function() {
|
|
618
|
+
if (this.done) {
|
|
619
|
+
return this.EOF;
|
|
620
|
+
}
|
|
621
|
+
if (!this._input) {
|
|
622
|
+
this.done = true;
|
|
623
|
+
}
|
|
624
|
+
var token, match, tempMatch, index;
|
|
625
|
+
if (!this._more) {
|
|
626
|
+
this.yytext = "";
|
|
627
|
+
this.match = "";
|
|
628
|
+
}
|
|
629
|
+
var rules = this._currentRules();
|
|
630
|
+
for (var i = 0; i < rules.length; i++) {
|
|
631
|
+
tempMatch = this._input.match(this.rules[rules[i]]);
|
|
632
|
+
if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
|
|
633
|
+
match = tempMatch;
|
|
634
|
+
index = i;
|
|
635
|
+
if (this.options.backtrack_lexer) {
|
|
636
|
+
token = this.test_match(tempMatch, rules[i]);
|
|
637
|
+
if (token !== false) {
|
|
638
|
+
return token;
|
|
639
|
+
} else if (this._backtrack) {
|
|
640
|
+
match = false;
|
|
641
|
+
continue;
|
|
642
|
+
} else {
|
|
643
|
+
return false;
|
|
644
|
+
}
|
|
645
|
+
} else if (!this.options.flex) {
|
|
646
|
+
break;
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
if (match) {
|
|
651
|
+
token = this.test_match(match, rules[index]);
|
|
652
|
+
if (token !== false) {
|
|
653
|
+
return token;
|
|
654
|
+
}
|
|
655
|
+
return false;
|
|
656
|
+
}
|
|
657
|
+
if (this._input === "") {
|
|
658
|
+
return this.EOF;
|
|
659
|
+
} else {
|
|
660
|
+
return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
661
|
+
text: "",
|
|
662
|
+
token: null,
|
|
663
|
+
line: this.yylineno
|
|
664
|
+
});
|
|
665
|
+
}
|
|
666
|
+
}, "next"),
|
|
667
|
+
// return next match that has a token
|
|
668
|
+
lex: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function lex() {
|
|
669
|
+
var r = this.next();
|
|
670
|
+
if (r) {
|
|
671
|
+
return r;
|
|
672
|
+
} else {
|
|
673
|
+
return this.lex();
|
|
674
|
+
}
|
|
675
|
+
}, "lex"),
|
|
676
|
+
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
677
|
+
begin: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function begin(condition) {
|
|
678
|
+
this.conditionStack.push(condition);
|
|
679
|
+
}, "begin"),
|
|
680
|
+
// pop the previously active lexer condition state off the condition stack
|
|
681
|
+
popState: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function popState() {
|
|
682
|
+
var n = this.conditionStack.length - 1;
|
|
683
|
+
if (n > 0) {
|
|
684
|
+
return this.conditionStack.pop();
|
|
685
|
+
} else {
|
|
686
|
+
return this.conditionStack[0];
|
|
687
|
+
}
|
|
688
|
+
}, "popState"),
|
|
689
|
+
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
690
|
+
_currentRules: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function _currentRules() {
|
|
691
|
+
if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
|
|
692
|
+
return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
|
|
693
|
+
} else {
|
|
694
|
+
return this.conditions["INITIAL"].rules;
|
|
695
|
+
}
|
|
696
|
+
}, "_currentRules"),
|
|
697
|
+
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
698
|
+
topState: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function topState(n) {
|
|
699
|
+
n = this.conditionStack.length - 1 - Math.abs(n || 0);
|
|
700
|
+
if (n >= 0) {
|
|
701
|
+
return this.conditionStack[n];
|
|
702
|
+
} else {
|
|
703
|
+
return "INITIAL";
|
|
704
|
+
}
|
|
705
|
+
}, "topState"),
|
|
706
|
+
// alias for begin(condition)
|
|
707
|
+
pushState: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function pushState(condition) {
|
|
708
|
+
this.begin(condition);
|
|
709
|
+
}, "pushState"),
|
|
710
|
+
// return the number of states currently on the stack
|
|
711
|
+
stateStackSize: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function stateStackSize() {
|
|
712
|
+
return this.conditionStack.length;
|
|
713
|
+
}, "stateStackSize"),
|
|
714
|
+
options: {},
|
|
715
|
+
performAction: /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
|
|
716
|
+
var YYSTATE = YY_START;
|
|
717
|
+
switch ($avoiding_name_collisions) {
|
|
718
|
+
case 0:
|
|
719
|
+
return 60;
|
|
720
|
+
break;
|
|
721
|
+
case 1:
|
|
722
|
+
return 61;
|
|
723
|
+
break;
|
|
724
|
+
case 2:
|
|
725
|
+
return 62;
|
|
726
|
+
break;
|
|
727
|
+
case 3:
|
|
728
|
+
return 63;
|
|
729
|
+
break;
|
|
730
|
+
case 4:
|
|
731
|
+
break;
|
|
732
|
+
case 5:
|
|
733
|
+
break;
|
|
734
|
+
case 6:
|
|
735
|
+
this.begin("acc_title");
|
|
736
|
+
return 33;
|
|
737
|
+
break;
|
|
738
|
+
case 7:
|
|
739
|
+
this.popState();
|
|
740
|
+
return "acc_title_value";
|
|
741
|
+
break;
|
|
742
|
+
case 8:
|
|
743
|
+
this.begin("acc_descr");
|
|
744
|
+
return 35;
|
|
745
|
+
break;
|
|
746
|
+
case 9:
|
|
747
|
+
this.popState();
|
|
748
|
+
return "acc_descr_value";
|
|
749
|
+
break;
|
|
750
|
+
case 10:
|
|
751
|
+
this.begin("acc_descr_multiline");
|
|
752
|
+
break;
|
|
753
|
+
case 11:
|
|
754
|
+
this.popState();
|
|
755
|
+
break;
|
|
756
|
+
case 12:
|
|
757
|
+
return "acc_descr_multiline_value";
|
|
758
|
+
break;
|
|
759
|
+
case 13:
|
|
760
|
+
return 8;
|
|
761
|
+
break;
|
|
762
|
+
case 14:
|
|
763
|
+
break;
|
|
764
|
+
case 15:
|
|
765
|
+
return 7;
|
|
766
|
+
break;
|
|
767
|
+
case 16:
|
|
768
|
+
return 7;
|
|
769
|
+
break;
|
|
770
|
+
case 17:
|
|
771
|
+
return "EDGE_STATE";
|
|
772
|
+
break;
|
|
773
|
+
case 18:
|
|
774
|
+
this.begin("callback_name");
|
|
775
|
+
break;
|
|
776
|
+
case 19:
|
|
777
|
+
this.popState();
|
|
778
|
+
break;
|
|
779
|
+
case 20:
|
|
780
|
+
this.popState();
|
|
781
|
+
this.begin("callback_args");
|
|
782
|
+
break;
|
|
783
|
+
case 21:
|
|
784
|
+
return 77;
|
|
785
|
+
break;
|
|
786
|
+
case 22:
|
|
787
|
+
this.popState();
|
|
788
|
+
break;
|
|
789
|
+
case 23:
|
|
790
|
+
return 78;
|
|
791
|
+
break;
|
|
792
|
+
case 24:
|
|
793
|
+
this.popState();
|
|
794
|
+
break;
|
|
795
|
+
case 25:
|
|
796
|
+
return "STR";
|
|
797
|
+
break;
|
|
798
|
+
case 26:
|
|
799
|
+
this.begin("string");
|
|
800
|
+
break;
|
|
801
|
+
case 27:
|
|
802
|
+
return 80;
|
|
803
|
+
break;
|
|
804
|
+
case 28:
|
|
805
|
+
return 55;
|
|
806
|
+
break;
|
|
807
|
+
case 29:
|
|
808
|
+
this.begin("namespace");
|
|
809
|
+
return 42;
|
|
810
|
+
break;
|
|
811
|
+
case 30:
|
|
812
|
+
this.popState();
|
|
813
|
+
return 8;
|
|
814
|
+
break;
|
|
815
|
+
case 31:
|
|
816
|
+
break;
|
|
817
|
+
case 32:
|
|
818
|
+
this.begin("namespace-body");
|
|
819
|
+
return 39;
|
|
820
|
+
break;
|
|
821
|
+
case 33:
|
|
822
|
+
this.popState();
|
|
823
|
+
return 41;
|
|
824
|
+
break;
|
|
825
|
+
case 34:
|
|
826
|
+
return "EOF_IN_STRUCT";
|
|
827
|
+
break;
|
|
828
|
+
case 35:
|
|
829
|
+
return 8;
|
|
830
|
+
break;
|
|
831
|
+
case 36:
|
|
832
|
+
break;
|
|
833
|
+
case 37:
|
|
834
|
+
return "EDGE_STATE";
|
|
835
|
+
break;
|
|
836
|
+
case 38:
|
|
837
|
+
this.begin("class");
|
|
838
|
+
return 46;
|
|
839
|
+
break;
|
|
840
|
+
case 39:
|
|
841
|
+
this.popState();
|
|
842
|
+
return 8;
|
|
843
|
+
break;
|
|
844
|
+
case 40:
|
|
845
|
+
break;
|
|
846
|
+
case 41:
|
|
847
|
+
this.popState();
|
|
848
|
+
this.popState();
|
|
849
|
+
return 41;
|
|
850
|
+
break;
|
|
851
|
+
case 42:
|
|
852
|
+
this.begin("class-body");
|
|
853
|
+
return 39;
|
|
854
|
+
break;
|
|
855
|
+
case 43:
|
|
856
|
+
this.popState();
|
|
857
|
+
return 41;
|
|
858
|
+
break;
|
|
859
|
+
case 44:
|
|
860
|
+
return "EOF_IN_STRUCT";
|
|
861
|
+
break;
|
|
862
|
+
case 45:
|
|
863
|
+
return "EDGE_STATE";
|
|
864
|
+
break;
|
|
865
|
+
case 46:
|
|
866
|
+
return "OPEN_IN_STRUCT";
|
|
867
|
+
break;
|
|
868
|
+
case 47:
|
|
869
|
+
break;
|
|
870
|
+
case 48:
|
|
871
|
+
return "MEMBER";
|
|
872
|
+
break;
|
|
873
|
+
case 49:
|
|
874
|
+
return 81;
|
|
875
|
+
break;
|
|
876
|
+
case 50:
|
|
877
|
+
return 73;
|
|
878
|
+
break;
|
|
879
|
+
case 51:
|
|
880
|
+
return 74;
|
|
881
|
+
break;
|
|
882
|
+
case 52:
|
|
883
|
+
return 76;
|
|
884
|
+
break;
|
|
885
|
+
case 53:
|
|
886
|
+
return 52;
|
|
887
|
+
break;
|
|
888
|
+
case 54:
|
|
889
|
+
return 54;
|
|
890
|
+
break;
|
|
891
|
+
case 55:
|
|
892
|
+
return 47;
|
|
893
|
+
break;
|
|
894
|
+
case 56:
|
|
895
|
+
return 48;
|
|
896
|
+
break;
|
|
897
|
+
case 57:
|
|
898
|
+
return 79;
|
|
899
|
+
break;
|
|
900
|
+
case 58:
|
|
901
|
+
this.popState();
|
|
902
|
+
break;
|
|
903
|
+
case 59:
|
|
904
|
+
return "GENERICTYPE";
|
|
905
|
+
break;
|
|
906
|
+
case 60:
|
|
907
|
+
this.begin("generic");
|
|
908
|
+
break;
|
|
909
|
+
case 61:
|
|
910
|
+
this.popState();
|
|
911
|
+
break;
|
|
912
|
+
case 62:
|
|
913
|
+
return "BQUOTE_STR";
|
|
914
|
+
break;
|
|
915
|
+
case 63:
|
|
916
|
+
this.begin("bqstring");
|
|
917
|
+
break;
|
|
918
|
+
case 64:
|
|
919
|
+
return 75;
|
|
920
|
+
break;
|
|
921
|
+
case 65:
|
|
922
|
+
return 75;
|
|
923
|
+
break;
|
|
924
|
+
case 66:
|
|
925
|
+
return 75;
|
|
926
|
+
break;
|
|
927
|
+
case 67:
|
|
928
|
+
return 75;
|
|
929
|
+
break;
|
|
930
|
+
case 68:
|
|
931
|
+
return 67;
|
|
932
|
+
break;
|
|
933
|
+
case 69:
|
|
934
|
+
return 67;
|
|
935
|
+
break;
|
|
936
|
+
case 70:
|
|
937
|
+
return 69;
|
|
938
|
+
break;
|
|
939
|
+
case 71:
|
|
940
|
+
return 69;
|
|
941
|
+
break;
|
|
942
|
+
case 72:
|
|
943
|
+
return 68;
|
|
944
|
+
break;
|
|
945
|
+
case 73:
|
|
946
|
+
return 66;
|
|
947
|
+
break;
|
|
948
|
+
case 74:
|
|
949
|
+
return 70;
|
|
950
|
+
break;
|
|
951
|
+
case 75:
|
|
952
|
+
return 71;
|
|
953
|
+
break;
|
|
954
|
+
case 76:
|
|
955
|
+
return 72;
|
|
956
|
+
break;
|
|
957
|
+
case 77:
|
|
958
|
+
return 22;
|
|
959
|
+
break;
|
|
960
|
+
case 78:
|
|
961
|
+
return 44;
|
|
962
|
+
break;
|
|
963
|
+
case 79:
|
|
964
|
+
return 99;
|
|
965
|
+
break;
|
|
966
|
+
case 80:
|
|
967
|
+
return 17;
|
|
968
|
+
break;
|
|
969
|
+
case 81:
|
|
970
|
+
return "PLUS";
|
|
971
|
+
break;
|
|
972
|
+
case 82:
|
|
973
|
+
return 85;
|
|
974
|
+
break;
|
|
975
|
+
case 83:
|
|
976
|
+
return 59;
|
|
977
|
+
break;
|
|
978
|
+
case 84:
|
|
979
|
+
return 88;
|
|
980
|
+
break;
|
|
981
|
+
case 85:
|
|
982
|
+
return 88;
|
|
983
|
+
break;
|
|
984
|
+
case 86:
|
|
985
|
+
return 89;
|
|
986
|
+
break;
|
|
987
|
+
case 87:
|
|
988
|
+
return "EQUALS";
|
|
989
|
+
break;
|
|
990
|
+
case 88:
|
|
991
|
+
return "EQUALS";
|
|
992
|
+
break;
|
|
993
|
+
case 89:
|
|
994
|
+
return 58;
|
|
995
|
+
break;
|
|
996
|
+
case 90:
|
|
997
|
+
return 12;
|
|
998
|
+
break;
|
|
999
|
+
case 91:
|
|
1000
|
+
return 14;
|
|
1001
|
+
break;
|
|
1002
|
+
case 92:
|
|
1003
|
+
return "PUNCTUATION";
|
|
1004
|
+
break;
|
|
1005
|
+
case 93:
|
|
1006
|
+
return 84;
|
|
1007
|
+
break;
|
|
1008
|
+
case 94:
|
|
1009
|
+
return 101;
|
|
1010
|
+
break;
|
|
1011
|
+
case 95:
|
|
1012
|
+
return 87;
|
|
1013
|
+
break;
|
|
1014
|
+
case 96:
|
|
1015
|
+
return 87;
|
|
1016
|
+
break;
|
|
1017
|
+
case 97:
|
|
1018
|
+
return 9;
|
|
1019
|
+
break;
|
|
1020
|
+
}
|
|
1021
|
+
}, "anonymous"),
|
|
1022
|
+
rules: [/^(?:.*direction\s+TB[^\n]*)/, /^(?:.*direction\s+BT[^\n]*)/, /^(?:.*direction\s+RL[^\n]*)/, /^(?:.*direction\s+LR[^\n]*)/, /^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/, /^(?:%%[^\n]*(\r?\n)*)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:classDiagram-v2\b)/, /^(?:classDiagram\b)/, /^(?:\[\*\])/, /^(?:call[\s]+)/, /^(?:\([\s]*\))/, /^(?:\()/, /^(?:[^(]*)/, /^(?:\))/, /^(?:[^)]*)/, /^(?:["])/, /^(?:[^"]*)/, /^(?:["])/, /^(?:style\b)/, /^(?:classDef\b)/, /^(?:namespace\b)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:[{])/, /^(?:[}])/, /^(?:$)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:\[\*\])/, /^(?:class\b)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:[}])/, /^(?:[{])/, /^(?:[}])/, /^(?:$)/, /^(?:\[\*\])/, /^(?:[{])/, /^(?:[\n])/, /^(?:[^{}\n]*)/, /^(?:cssClass\b)/, /^(?:callback\b)/, /^(?:link\b)/, /^(?:click\b)/, /^(?:note for\b)/, /^(?:note\b)/, /^(?:<<)/, /^(?:>>)/, /^(?:href\b)/, /^(?:[~])/, /^(?:[^~]*)/, /^(?:~)/, /^(?:[`])/, /^(?:[^`]+)/, /^(?:[`])/, /^(?:_self\b)/, /^(?:_blank\b)/, /^(?:_parent\b)/, /^(?:_top\b)/, /^(?:\s*<\|)/, /^(?:\s*\|>)/, /^(?:\s*>)/, /^(?:\s*<)/, /^(?:\s*\*)/, /^(?:\s*o\b)/, /^(?:\s*\(\))/, /^(?:--)/, /^(?:\.\.)/, /^(?::{1}[^:\n;]+)/, /^(?::{3})/, /^(?:-)/, /^(?:\.)/, /^(?:\+)/, /^(?::)/, /^(?:,)/, /^(?:#)/, /^(?:#)/, /^(?:%)/, /^(?:=)/, /^(?:=)/, /^(?:\w+)/, /^(?:\[)/, /^(?:\])/, /^(?:[!"#$%&'*+,-.`?\\/])/, /^(?:[0-9]+)/, /^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/, /^(?:\s)/, /^(?:\s)/, /^(?:$)/],
|
|
1023
|
+
conditions: { "namespace-body": { "rules": [26, 33, 34, 35, 36, 37, 38, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], "inclusive": false }, "namespace": { "rules": [26, 29, 30, 31, 32, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], "inclusive": false }, "class-body": { "rules": [26, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], "inclusive": false }, "class": { "rules": [26, 39, 40, 41, 42, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], "inclusive": false }, "acc_descr_multiline": { "rules": [11, 12, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], "inclusive": false }, "acc_descr": { "rules": [9, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], "inclusive": false }, "acc_title": { "rules": [7, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], "inclusive": false }, "callback_args": { "rules": [22, 23, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], "inclusive": false }, "callback_name": { "rules": [19, 20, 21, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], "inclusive": false }, "href": { "rules": [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], "inclusive": false }, "struct": { "rules": [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], "inclusive": false }, "generic": { "rules": [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], "inclusive": false }, "bqstring": { "rules": [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], "inclusive": false }, "string": { "rules": [24, 25, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], "inclusive": false }, "INITIAL": { "rules": [0, 1, 2, 3, 4, 5, 6, 8, 10, 13, 14, 15, 16, 17, 18, 26, 27, 28, 29, 38, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97], "inclusive": true } }
|
|
1024
|
+
};
|
|
1025
|
+
return lexer2;
|
|
1026
|
+
}();
|
|
1027
|
+
parser2.lexer = lexer;
|
|
1028
|
+
function Parser() {
|
|
1029
|
+
this.yy = {};
|
|
1030
|
+
}
|
|
1031
|
+
(0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(Parser, "Parser");
|
|
1032
|
+
Parser.prototype = parser2;
|
|
1033
|
+
parser2.Parser = Parser;
|
|
1034
|
+
return new Parser();
|
|
1035
|
+
}();
|
|
1036
|
+
parser.parser = parser;
|
|
1037
|
+
var classDiagram_default = parser;
|
|
1038
|
+
|
|
1039
|
+
// src/diagrams/class/classDb.ts
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
// src/diagrams/class/classTypes.ts
|
|
1043
|
+
var visibilityValues = ["#", "+", "~", "-", ""];
|
|
1044
|
+
var ClassMember = class {
|
|
1045
|
+
static {
|
|
1046
|
+
(0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(this, "ClassMember");
|
|
1047
|
+
}
|
|
1048
|
+
constructor(input, memberType) {
|
|
1049
|
+
this.memberType = memberType;
|
|
1050
|
+
this.visibility = "";
|
|
1051
|
+
this.classifier = "";
|
|
1052
|
+
this.text = "";
|
|
1053
|
+
const sanitizedInput = (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .sanitizeText */ .jZ)(input, (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)());
|
|
1054
|
+
this.parseMember(sanitizedInput);
|
|
1055
|
+
}
|
|
1056
|
+
getDisplayDetails() {
|
|
1057
|
+
let displayText = this.visibility + (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .parseGenericTypes */ .QO)(this.id);
|
|
1058
|
+
if (this.memberType === "method") {
|
|
1059
|
+
displayText += `(${(0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .parseGenericTypes */ .QO)(this.parameters.trim())})`;
|
|
1060
|
+
if (this.returnType) {
|
|
1061
|
+
displayText += " : " + (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .parseGenericTypes */ .QO)(this.returnType);
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
displayText = displayText.trim();
|
|
1065
|
+
const cssStyle = this.parseClassifier();
|
|
1066
|
+
return {
|
|
1067
|
+
displayText,
|
|
1068
|
+
cssStyle
|
|
1069
|
+
};
|
|
1070
|
+
}
|
|
1071
|
+
parseMember(input) {
|
|
1072
|
+
let potentialClassifier = "";
|
|
1073
|
+
if (this.memberType === "method") {
|
|
1074
|
+
const methodRegEx = /([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/;
|
|
1075
|
+
const match = methodRegEx.exec(input);
|
|
1076
|
+
if (match) {
|
|
1077
|
+
const detectedVisibility = match[1] ? match[1].trim() : "";
|
|
1078
|
+
if (visibilityValues.includes(detectedVisibility)) {
|
|
1079
|
+
this.visibility = detectedVisibility;
|
|
1080
|
+
}
|
|
1081
|
+
this.id = match[2];
|
|
1082
|
+
this.parameters = match[3] ? match[3].trim() : "";
|
|
1083
|
+
potentialClassifier = match[4] ? match[4].trim() : "";
|
|
1084
|
+
this.returnType = match[5] ? match[5].trim() : "";
|
|
1085
|
+
if (potentialClassifier === "") {
|
|
1086
|
+
const lastChar = this.returnType.substring(this.returnType.length - 1);
|
|
1087
|
+
if (/[$*]/.exec(lastChar)) {
|
|
1088
|
+
potentialClassifier = lastChar;
|
|
1089
|
+
this.returnType = this.returnType.substring(0, this.returnType.length - 1);
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
} else {
|
|
1094
|
+
const length = input.length;
|
|
1095
|
+
const firstChar = input.substring(0, 1);
|
|
1096
|
+
const lastChar = input.substring(length - 1);
|
|
1097
|
+
if (visibilityValues.includes(firstChar)) {
|
|
1098
|
+
this.visibility = firstChar;
|
|
1099
|
+
}
|
|
1100
|
+
if (/[$*]/.exec(lastChar)) {
|
|
1101
|
+
potentialClassifier = lastChar;
|
|
1102
|
+
}
|
|
1103
|
+
this.id = input.substring(
|
|
1104
|
+
this.visibility === "" ? 0 : 1,
|
|
1105
|
+
potentialClassifier === "" ? length : length - 1
|
|
1106
|
+
);
|
|
1107
|
+
}
|
|
1108
|
+
this.classifier = potentialClassifier;
|
|
1109
|
+
this.id = this.id.startsWith(" ") ? " " + this.id.trim() : this.id.trim();
|
|
1110
|
+
const combinedText = `${this.visibility ? "\\" + this.visibility : ""}${(0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .parseGenericTypes */ .QO)(this.id)}${this.memberType === "method" ? `(${(0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .parseGenericTypes */ .QO)(this.parameters)})${this.returnType ? " : " + (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .parseGenericTypes */ .QO)(this.returnType) : ""}` : ""}`;
|
|
1111
|
+
this.text = combinedText.replaceAll("<", "<").replaceAll(">", ">");
|
|
1112
|
+
if (this.text.startsWith("\\<")) {
|
|
1113
|
+
this.text = this.text.replace("\\<", "~");
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
parseClassifier() {
|
|
1117
|
+
switch (this.classifier) {
|
|
1118
|
+
case "*":
|
|
1119
|
+
return "font-style:italic;";
|
|
1120
|
+
case "$":
|
|
1121
|
+
return "text-decoration:underline;";
|
|
1122
|
+
default:
|
|
1123
|
+
return "";
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
};
|
|
1127
|
+
|
|
1128
|
+
// src/diagrams/class/classDb.ts
|
|
1129
|
+
var MERMAID_DOM_ID_PREFIX = "classId-";
|
|
1130
|
+
var classCounter = 0;
|
|
1131
|
+
var sanitizeText2 = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)((txt) => _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.sanitizeText(txt, (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)()), "sanitizeText");
|
|
1132
|
+
var ClassDB = class {
|
|
1133
|
+
constructor() {
|
|
1134
|
+
this.relations = [];
|
|
1135
|
+
this.classes = /* @__PURE__ */ new Map();
|
|
1136
|
+
this.styleClasses = /* @__PURE__ */ new Map();
|
|
1137
|
+
this.notes = [];
|
|
1138
|
+
this.interfaces = [];
|
|
1139
|
+
// private static classCounter = 0;
|
|
1140
|
+
this.namespaces = /* @__PURE__ */ new Map();
|
|
1141
|
+
this.namespaceCounter = 0;
|
|
1142
|
+
this.functions = [];
|
|
1143
|
+
this.lineType = {
|
|
1144
|
+
LINE: 0,
|
|
1145
|
+
DOTTED_LINE: 1
|
|
1146
|
+
};
|
|
1147
|
+
this.relationType = {
|
|
1148
|
+
AGGREGATION: 0,
|
|
1149
|
+
EXTENSION: 1,
|
|
1150
|
+
COMPOSITION: 2,
|
|
1151
|
+
DEPENDENCY: 3,
|
|
1152
|
+
LOLLIPOP: 4
|
|
1153
|
+
};
|
|
1154
|
+
this.setupToolTips = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)((element) => {
|
|
1155
|
+
let tooltipElem = (0,d3__WEBPACK_IMPORTED_MODULE_4__/* .select */ .Ltv)(".mermaidTooltip");
|
|
1156
|
+
if ((tooltipElem._groups || tooltipElem)[0][0] === null) {
|
|
1157
|
+
tooltipElem = (0,d3__WEBPACK_IMPORTED_MODULE_4__/* .select */ .Ltv)("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0);
|
|
1158
|
+
}
|
|
1159
|
+
const svg = (0,d3__WEBPACK_IMPORTED_MODULE_4__/* .select */ .Ltv)(element).select("svg");
|
|
1160
|
+
const nodes = svg.selectAll("g.node");
|
|
1161
|
+
nodes.on("mouseover", (event) => {
|
|
1162
|
+
const el = (0,d3__WEBPACK_IMPORTED_MODULE_4__/* .select */ .Ltv)(event.currentTarget);
|
|
1163
|
+
const title = el.attr("title");
|
|
1164
|
+
if (title === null) {
|
|
1165
|
+
return;
|
|
1166
|
+
}
|
|
1167
|
+
const rect = this.getBoundingClientRect();
|
|
1168
|
+
tooltipElem.transition().duration(200).style("opacity", ".9");
|
|
1169
|
+
tooltipElem.text(el.attr("title")).style("left", window.scrollX + rect.left + (rect.right - rect.left) / 2 + "px").style("top", window.scrollY + rect.top - 14 + document.body.scrollTop + "px");
|
|
1170
|
+
tooltipElem.html(tooltipElem.html().replace(/<br\/>/g, "<br/>"));
|
|
1171
|
+
el.classed("hover", true);
|
|
1172
|
+
}).on("mouseout", (event) => {
|
|
1173
|
+
tooltipElem.transition().duration(500).style("opacity", 0);
|
|
1174
|
+
const el = (0,d3__WEBPACK_IMPORTED_MODULE_4__/* .select */ .Ltv)(event.currentTarget);
|
|
1175
|
+
el.classed("hover", false);
|
|
1176
|
+
});
|
|
1177
|
+
}, "setupToolTips");
|
|
1178
|
+
this.direction = "TB";
|
|
1179
|
+
this.setAccTitle = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .setAccTitle */ .SV;
|
|
1180
|
+
this.getAccTitle = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getAccTitle */ .iN;
|
|
1181
|
+
this.setAccDescription = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .setAccDescription */ .EI;
|
|
1182
|
+
this.getAccDescription = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getAccDescription */ .m7;
|
|
1183
|
+
this.setDiagramTitle = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .setDiagramTitle */ .ke;
|
|
1184
|
+
this.getDiagramTitle = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getDiagramTitle */ .ab;
|
|
1185
|
+
this.getConfig = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(() => (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)().class, "getConfig");
|
|
1186
|
+
this.functions.push(this.setupToolTips.bind(this));
|
|
1187
|
+
this.clear();
|
|
1188
|
+
this.addRelation = this.addRelation.bind(this);
|
|
1189
|
+
this.addClassesToNamespace = this.addClassesToNamespace.bind(this);
|
|
1190
|
+
this.addNamespace = this.addNamespace.bind(this);
|
|
1191
|
+
this.setCssClass = this.setCssClass.bind(this);
|
|
1192
|
+
this.addMembers = this.addMembers.bind(this);
|
|
1193
|
+
this.addClass = this.addClass.bind(this);
|
|
1194
|
+
this.setClassLabel = this.setClassLabel.bind(this);
|
|
1195
|
+
this.addAnnotation = this.addAnnotation.bind(this);
|
|
1196
|
+
this.addMember = this.addMember.bind(this);
|
|
1197
|
+
this.cleanupLabel = this.cleanupLabel.bind(this);
|
|
1198
|
+
this.addNote = this.addNote.bind(this);
|
|
1199
|
+
this.defineClass = this.defineClass.bind(this);
|
|
1200
|
+
this.setDirection = this.setDirection.bind(this);
|
|
1201
|
+
this.setLink = this.setLink.bind(this);
|
|
1202
|
+
this.bindFunctions = this.bindFunctions.bind(this);
|
|
1203
|
+
this.clear = this.clear.bind(this);
|
|
1204
|
+
this.setTooltip = this.setTooltip.bind(this);
|
|
1205
|
+
this.setClickEvent = this.setClickEvent.bind(this);
|
|
1206
|
+
this.setCssStyle = this.setCssStyle.bind(this);
|
|
1207
|
+
}
|
|
1208
|
+
static {
|
|
1209
|
+
(0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(this, "ClassDB");
|
|
1210
|
+
}
|
|
1211
|
+
splitClassNameAndType(_id) {
|
|
1212
|
+
const id = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.sanitizeText(_id, (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)());
|
|
1213
|
+
let genericType = "";
|
|
1214
|
+
let className = id;
|
|
1215
|
+
if (id.indexOf("~") > 0) {
|
|
1216
|
+
const split = id.split("~");
|
|
1217
|
+
className = sanitizeText2(split[0]);
|
|
1218
|
+
genericType = sanitizeText2(split[1]);
|
|
1219
|
+
}
|
|
1220
|
+
return { className, type: genericType };
|
|
1221
|
+
}
|
|
1222
|
+
setClassLabel(_id, label) {
|
|
1223
|
+
const id = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.sanitizeText(_id, (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)());
|
|
1224
|
+
if (label) {
|
|
1225
|
+
label = sanitizeText2(label);
|
|
1226
|
+
}
|
|
1227
|
+
const { className } = this.splitClassNameAndType(id);
|
|
1228
|
+
this.classes.get(className).label = label;
|
|
1229
|
+
this.classes.get(className).text = `${label}${this.classes.get(className).type ? `<${this.classes.get(className).type}>` : ""}`;
|
|
1230
|
+
}
|
|
1231
|
+
/**
|
|
1232
|
+
* Function called by parser when a node definition has been found.
|
|
1233
|
+
*
|
|
1234
|
+
* @param id - Id of the class to add
|
|
1235
|
+
* @public
|
|
1236
|
+
*/
|
|
1237
|
+
addClass(_id) {
|
|
1238
|
+
const id = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.sanitizeText(_id, (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)());
|
|
1239
|
+
const { className, type } = this.splitClassNameAndType(id);
|
|
1240
|
+
if (this.classes.has(className)) {
|
|
1241
|
+
return;
|
|
1242
|
+
}
|
|
1243
|
+
const name = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.sanitizeText(className, (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)());
|
|
1244
|
+
this.classes.set(name, {
|
|
1245
|
+
id: name,
|
|
1246
|
+
type,
|
|
1247
|
+
label: name,
|
|
1248
|
+
text: `${name}${type ? `<${type}>` : ""}`,
|
|
1249
|
+
shape: "classBox",
|
|
1250
|
+
cssClasses: "default",
|
|
1251
|
+
methods: [],
|
|
1252
|
+
members: [],
|
|
1253
|
+
annotations: [],
|
|
1254
|
+
styles: [],
|
|
1255
|
+
domId: MERMAID_DOM_ID_PREFIX + name + "-" + classCounter
|
|
1256
|
+
});
|
|
1257
|
+
classCounter++;
|
|
1258
|
+
}
|
|
1259
|
+
addInterface(label, classId) {
|
|
1260
|
+
const classInterface = {
|
|
1261
|
+
id: `interface${this.interfaces.length}`,
|
|
1262
|
+
label,
|
|
1263
|
+
classId
|
|
1264
|
+
};
|
|
1265
|
+
this.interfaces.push(classInterface);
|
|
1266
|
+
}
|
|
1267
|
+
/**
|
|
1268
|
+
* Function to lookup domId from id in the graph definition.
|
|
1269
|
+
*
|
|
1270
|
+
* @param id - class ID to lookup
|
|
1271
|
+
* @public
|
|
1272
|
+
*/
|
|
1273
|
+
lookUpDomId(_id) {
|
|
1274
|
+
const id = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.sanitizeText(_id, (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)());
|
|
1275
|
+
if (this.classes.has(id)) {
|
|
1276
|
+
return this.classes.get(id).domId;
|
|
1277
|
+
}
|
|
1278
|
+
throw new Error("Class not found: " + id);
|
|
1279
|
+
}
|
|
1280
|
+
clear() {
|
|
1281
|
+
this.relations = [];
|
|
1282
|
+
this.classes = /* @__PURE__ */ new Map();
|
|
1283
|
+
this.notes = [];
|
|
1284
|
+
this.interfaces = [];
|
|
1285
|
+
this.functions = [];
|
|
1286
|
+
this.functions.push(this.setupToolTips.bind(this));
|
|
1287
|
+
this.namespaces = /* @__PURE__ */ new Map();
|
|
1288
|
+
this.namespaceCounter = 0;
|
|
1289
|
+
this.direction = "TB";
|
|
1290
|
+
(0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .clear */ .IU)();
|
|
1291
|
+
}
|
|
1292
|
+
getClass(id) {
|
|
1293
|
+
return this.classes.get(id);
|
|
1294
|
+
}
|
|
1295
|
+
getClasses() {
|
|
1296
|
+
return this.classes;
|
|
1297
|
+
}
|
|
1298
|
+
getRelations() {
|
|
1299
|
+
return this.relations;
|
|
1300
|
+
}
|
|
1301
|
+
getNotes() {
|
|
1302
|
+
return this.notes;
|
|
1303
|
+
}
|
|
1304
|
+
addRelation(classRelation) {
|
|
1305
|
+
_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.debug("Adding relation: " + JSON.stringify(classRelation));
|
|
1306
|
+
const invalidTypes = [
|
|
1307
|
+
this.relationType.LOLLIPOP,
|
|
1308
|
+
this.relationType.AGGREGATION,
|
|
1309
|
+
this.relationType.COMPOSITION,
|
|
1310
|
+
this.relationType.DEPENDENCY,
|
|
1311
|
+
this.relationType.EXTENSION
|
|
1312
|
+
];
|
|
1313
|
+
if (classRelation.relation.type1 === this.relationType.LOLLIPOP && !invalidTypes.includes(classRelation.relation.type2)) {
|
|
1314
|
+
this.addClass(classRelation.id2);
|
|
1315
|
+
this.addInterface(classRelation.id1, classRelation.id2);
|
|
1316
|
+
classRelation.id1 = `interface${this.interfaces.length - 1}`;
|
|
1317
|
+
} else if (classRelation.relation.type2 === this.relationType.LOLLIPOP && !invalidTypes.includes(classRelation.relation.type1)) {
|
|
1318
|
+
this.addClass(classRelation.id1);
|
|
1319
|
+
this.addInterface(classRelation.id2, classRelation.id1);
|
|
1320
|
+
classRelation.id2 = `interface${this.interfaces.length - 1}`;
|
|
1321
|
+
} else {
|
|
1322
|
+
this.addClass(classRelation.id1);
|
|
1323
|
+
this.addClass(classRelation.id2);
|
|
1324
|
+
}
|
|
1325
|
+
classRelation.id1 = this.splitClassNameAndType(classRelation.id1).className;
|
|
1326
|
+
classRelation.id2 = this.splitClassNameAndType(classRelation.id2).className;
|
|
1327
|
+
classRelation.relationTitle1 = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.sanitizeText(
|
|
1328
|
+
classRelation.relationTitle1.trim(),
|
|
1329
|
+
(0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)()
|
|
1330
|
+
);
|
|
1331
|
+
classRelation.relationTitle2 = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.sanitizeText(
|
|
1332
|
+
classRelation.relationTitle2.trim(),
|
|
1333
|
+
(0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)()
|
|
1334
|
+
);
|
|
1335
|
+
this.relations.push(classRelation);
|
|
1336
|
+
}
|
|
1337
|
+
/**
|
|
1338
|
+
* Adds an annotation to the specified class Annotations mark special properties of the given type
|
|
1339
|
+
* (like 'interface' or 'service')
|
|
1340
|
+
*
|
|
1341
|
+
* @param className - The class name
|
|
1342
|
+
* @param annotation - The name of the annotation without any brackets
|
|
1343
|
+
* @public
|
|
1344
|
+
*/
|
|
1345
|
+
addAnnotation(className, annotation) {
|
|
1346
|
+
const validatedClassName = this.splitClassNameAndType(className).className;
|
|
1347
|
+
this.classes.get(validatedClassName).annotations.push(annotation);
|
|
1348
|
+
}
|
|
1349
|
+
/**
|
|
1350
|
+
* Adds a member to the specified class
|
|
1351
|
+
*
|
|
1352
|
+
* @param className - The class name
|
|
1353
|
+
* @param member - The full name of the member. If the member is enclosed in `<<brackets>>` it is
|
|
1354
|
+
* treated as an annotation If the member is ending with a closing bracket ) it is treated as a
|
|
1355
|
+
* method Otherwise the member will be treated as a normal property
|
|
1356
|
+
* @public
|
|
1357
|
+
*/
|
|
1358
|
+
addMember(className, member) {
|
|
1359
|
+
this.addClass(className);
|
|
1360
|
+
const validatedClassName = this.splitClassNameAndType(className).className;
|
|
1361
|
+
const theClass = this.classes.get(validatedClassName);
|
|
1362
|
+
if (typeof member === "string") {
|
|
1363
|
+
const memberString = member.trim();
|
|
1364
|
+
if (memberString.startsWith("<<") && memberString.endsWith(">>")) {
|
|
1365
|
+
theClass.annotations.push(sanitizeText2(memberString.substring(2, memberString.length - 2)));
|
|
1366
|
+
} else if (memberString.indexOf(")") > 0) {
|
|
1367
|
+
theClass.methods.push(new ClassMember(memberString, "method"));
|
|
1368
|
+
} else if (memberString) {
|
|
1369
|
+
theClass.members.push(new ClassMember(memberString, "attribute"));
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
addMembers(className, members) {
|
|
1374
|
+
if (Array.isArray(members)) {
|
|
1375
|
+
members.reverse();
|
|
1376
|
+
members.forEach((member) => this.addMember(className, member));
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
addNote(text, className) {
|
|
1380
|
+
const note = {
|
|
1381
|
+
id: `note${this.notes.length}`,
|
|
1382
|
+
class: className,
|
|
1383
|
+
text
|
|
1384
|
+
};
|
|
1385
|
+
this.notes.push(note);
|
|
1386
|
+
}
|
|
1387
|
+
cleanupLabel(label) {
|
|
1388
|
+
if (label.startsWith(":")) {
|
|
1389
|
+
label = label.substring(1);
|
|
1390
|
+
}
|
|
1391
|
+
return sanitizeText2(label.trim());
|
|
1392
|
+
}
|
|
1393
|
+
/**
|
|
1394
|
+
* Called by parser when assigning cssClass to a class
|
|
1395
|
+
*
|
|
1396
|
+
* @param ids - Comma separated list of ids
|
|
1397
|
+
* @param className - Class to add
|
|
1398
|
+
*/
|
|
1399
|
+
setCssClass(ids, className) {
|
|
1400
|
+
ids.split(",").forEach((_id) => {
|
|
1401
|
+
let id = _id;
|
|
1402
|
+
if (/\d/.exec(_id[0])) {
|
|
1403
|
+
id = MERMAID_DOM_ID_PREFIX + id;
|
|
1404
|
+
}
|
|
1405
|
+
const classNode = this.classes.get(id);
|
|
1406
|
+
if (classNode) {
|
|
1407
|
+
classNode.cssClasses += " " + className;
|
|
1408
|
+
}
|
|
1409
|
+
});
|
|
1410
|
+
}
|
|
1411
|
+
defineClass(ids, style) {
|
|
1412
|
+
for (const id of ids) {
|
|
1413
|
+
let styleClass = this.styleClasses.get(id);
|
|
1414
|
+
if (styleClass === void 0) {
|
|
1415
|
+
styleClass = { id, styles: [], textStyles: [] };
|
|
1416
|
+
this.styleClasses.set(id, styleClass);
|
|
1417
|
+
}
|
|
1418
|
+
if (style) {
|
|
1419
|
+
style.forEach((s) => {
|
|
1420
|
+
if (/color/.exec(s)) {
|
|
1421
|
+
const newStyle = s.replace("fill", "bgFill");
|
|
1422
|
+
styleClass.textStyles.push(newStyle);
|
|
1423
|
+
}
|
|
1424
|
+
styleClass.styles.push(s);
|
|
1425
|
+
});
|
|
1426
|
+
}
|
|
1427
|
+
this.classes.forEach((value) => {
|
|
1428
|
+
if (value.cssClasses.includes(id)) {
|
|
1429
|
+
value.styles.push(...style.flatMap((s) => s.split(",")));
|
|
1430
|
+
}
|
|
1431
|
+
});
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
/**
|
|
1435
|
+
* Called by parser when a tooltip is found, e.g. a clickable element.
|
|
1436
|
+
*
|
|
1437
|
+
* @param ids - Comma separated list of ids
|
|
1438
|
+
* @param tooltip - Tooltip to add
|
|
1439
|
+
*/
|
|
1440
|
+
setTooltip(ids, tooltip) {
|
|
1441
|
+
ids.split(",").forEach((id) => {
|
|
1442
|
+
if (tooltip !== void 0) {
|
|
1443
|
+
this.classes.get(id).tooltip = sanitizeText2(tooltip);
|
|
1444
|
+
}
|
|
1445
|
+
});
|
|
1446
|
+
}
|
|
1447
|
+
getTooltip(id, namespace) {
|
|
1448
|
+
if (namespace && this.namespaces.has(namespace)) {
|
|
1449
|
+
return this.namespaces.get(namespace).classes.get(id).tooltip;
|
|
1450
|
+
}
|
|
1451
|
+
return this.classes.get(id).tooltip;
|
|
1452
|
+
}
|
|
1453
|
+
/**
|
|
1454
|
+
* Called by parser when a link is found. Adds the URL to the vertex data.
|
|
1455
|
+
*
|
|
1456
|
+
* @param ids - Comma separated list of ids
|
|
1457
|
+
* @param linkStr - URL to create a link for
|
|
1458
|
+
* @param target - Target of the link, _blank by default as originally defined in the svgDraw.js file
|
|
1459
|
+
*/
|
|
1460
|
+
setLink(ids, linkStr, target) {
|
|
1461
|
+
const config = (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)();
|
|
1462
|
+
ids.split(",").forEach((_id) => {
|
|
1463
|
+
let id = _id;
|
|
1464
|
+
if (/\d/.exec(_id[0])) {
|
|
1465
|
+
id = MERMAID_DOM_ID_PREFIX + id;
|
|
1466
|
+
}
|
|
1467
|
+
const theClass = this.classes.get(id);
|
|
1468
|
+
if (theClass) {
|
|
1469
|
+
theClass.link = _chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.formatUrl(linkStr, config);
|
|
1470
|
+
if (config.securityLevel === "sandbox") {
|
|
1471
|
+
theClass.linkTarget = "_top";
|
|
1472
|
+
} else if (typeof target === "string") {
|
|
1473
|
+
theClass.linkTarget = sanitizeText2(target);
|
|
1474
|
+
} else {
|
|
1475
|
+
theClass.linkTarget = "_blank";
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
});
|
|
1479
|
+
this.setCssClass(ids, "clickable");
|
|
1480
|
+
}
|
|
1481
|
+
/**
|
|
1482
|
+
* Called by parser when a click definition is found. Registers an event handler.
|
|
1483
|
+
*
|
|
1484
|
+
* @param ids - Comma separated list of ids
|
|
1485
|
+
* @param functionName - Function to be called on click
|
|
1486
|
+
* @param functionArgs - Function args the function should be called with
|
|
1487
|
+
*/
|
|
1488
|
+
setClickEvent(ids, functionName, functionArgs) {
|
|
1489
|
+
ids.split(",").forEach((id) => {
|
|
1490
|
+
this.setClickFunc(id, functionName, functionArgs);
|
|
1491
|
+
this.classes.get(id).haveCallback = true;
|
|
1492
|
+
});
|
|
1493
|
+
this.setCssClass(ids, "clickable");
|
|
1494
|
+
}
|
|
1495
|
+
setClickFunc(_domId, functionName, functionArgs) {
|
|
1496
|
+
const domId = _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .common_default */ .Y2.sanitizeText(_domId, (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)());
|
|
1497
|
+
const config = (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)();
|
|
1498
|
+
if (config.securityLevel !== "loose") {
|
|
1499
|
+
return;
|
|
1500
|
+
}
|
|
1501
|
+
if (functionName === void 0) {
|
|
1502
|
+
return;
|
|
1503
|
+
}
|
|
1504
|
+
const id = domId;
|
|
1505
|
+
if (this.classes.has(id)) {
|
|
1506
|
+
const elemId = this.lookUpDomId(id);
|
|
1507
|
+
let argList = [];
|
|
1508
|
+
if (typeof functionArgs === "string") {
|
|
1509
|
+
argList = functionArgs.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
|
|
1510
|
+
for (let i = 0; i < argList.length; i++) {
|
|
1511
|
+
let item = argList[i].trim();
|
|
1512
|
+
if (item.startsWith('"') && item.endsWith('"')) {
|
|
1513
|
+
item = item.substr(1, item.length - 2);
|
|
1514
|
+
}
|
|
1515
|
+
argList[i] = item;
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
if (argList.length === 0) {
|
|
1519
|
+
argList.push(elemId);
|
|
1520
|
+
}
|
|
1521
|
+
this.functions.push(() => {
|
|
1522
|
+
const elem = document.querySelector(`[id="${elemId}"]`);
|
|
1523
|
+
if (elem !== null) {
|
|
1524
|
+
elem.addEventListener(
|
|
1525
|
+
"click",
|
|
1526
|
+
() => {
|
|
1527
|
+
_chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.runFunc(functionName, ...argList);
|
|
1528
|
+
},
|
|
1529
|
+
false
|
|
1530
|
+
);
|
|
1531
|
+
}
|
|
1532
|
+
});
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1535
|
+
bindFunctions(element) {
|
|
1536
|
+
this.functions.forEach((fun) => {
|
|
1537
|
+
fun(element);
|
|
1538
|
+
});
|
|
1539
|
+
}
|
|
1540
|
+
getDirection() {
|
|
1541
|
+
return this.direction;
|
|
1542
|
+
}
|
|
1543
|
+
setDirection(dir) {
|
|
1544
|
+
this.direction = dir;
|
|
1545
|
+
}
|
|
1546
|
+
/**
|
|
1547
|
+
* Function called by parser when a namespace definition has been found.
|
|
1548
|
+
*
|
|
1549
|
+
* @param id - Id of the namespace to add
|
|
1550
|
+
* @public
|
|
1551
|
+
*/
|
|
1552
|
+
addNamespace(id) {
|
|
1553
|
+
if (this.namespaces.has(id)) {
|
|
1554
|
+
return;
|
|
1555
|
+
}
|
|
1556
|
+
this.namespaces.set(id, {
|
|
1557
|
+
id,
|
|
1558
|
+
classes: /* @__PURE__ */ new Map(),
|
|
1559
|
+
children: {},
|
|
1560
|
+
domId: MERMAID_DOM_ID_PREFIX + id + "-" + this.namespaceCounter
|
|
1561
|
+
});
|
|
1562
|
+
this.namespaceCounter++;
|
|
1563
|
+
}
|
|
1564
|
+
getNamespace(name) {
|
|
1565
|
+
return this.namespaces.get(name);
|
|
1566
|
+
}
|
|
1567
|
+
getNamespaces() {
|
|
1568
|
+
return this.namespaces;
|
|
1569
|
+
}
|
|
1570
|
+
/**
|
|
1571
|
+
* Function called by parser when a namespace definition has been found.
|
|
1572
|
+
*
|
|
1573
|
+
* @param id - Id of the namespace to add
|
|
1574
|
+
* @param classNames - Ids of the class to add
|
|
1575
|
+
* @public
|
|
1576
|
+
*/
|
|
1577
|
+
addClassesToNamespace(id, classNames) {
|
|
1578
|
+
if (!this.namespaces.has(id)) {
|
|
1579
|
+
return;
|
|
1580
|
+
}
|
|
1581
|
+
for (const name of classNames) {
|
|
1582
|
+
const { className } = this.splitClassNameAndType(name);
|
|
1583
|
+
this.classes.get(className).parent = id;
|
|
1584
|
+
this.namespaces.get(id).classes.set(className, this.classes.get(className));
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1587
|
+
setCssStyle(id, styles) {
|
|
1588
|
+
const thisClass = this.classes.get(id);
|
|
1589
|
+
if (!styles || !thisClass) {
|
|
1590
|
+
return;
|
|
1591
|
+
}
|
|
1592
|
+
for (const s of styles) {
|
|
1593
|
+
if (s.includes(",")) {
|
|
1594
|
+
thisClass.styles.push(...s.split(","));
|
|
1595
|
+
} else {
|
|
1596
|
+
thisClass.styles.push(s);
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
/**
|
|
1601
|
+
* Gets the arrow marker for a type index
|
|
1602
|
+
*
|
|
1603
|
+
* @param type - The type to look for
|
|
1604
|
+
* @returns The arrow marker
|
|
1605
|
+
*/
|
|
1606
|
+
getArrowMarker(type) {
|
|
1607
|
+
let marker;
|
|
1608
|
+
switch (type) {
|
|
1609
|
+
case 0:
|
|
1610
|
+
marker = "aggregation";
|
|
1611
|
+
break;
|
|
1612
|
+
case 1:
|
|
1613
|
+
marker = "extension";
|
|
1614
|
+
break;
|
|
1615
|
+
case 2:
|
|
1616
|
+
marker = "composition";
|
|
1617
|
+
break;
|
|
1618
|
+
case 3:
|
|
1619
|
+
marker = "dependency";
|
|
1620
|
+
break;
|
|
1621
|
+
case 4:
|
|
1622
|
+
marker = "lollipop";
|
|
1623
|
+
break;
|
|
1624
|
+
default:
|
|
1625
|
+
marker = "none";
|
|
1626
|
+
}
|
|
1627
|
+
return marker;
|
|
1628
|
+
}
|
|
1629
|
+
getData() {
|
|
1630
|
+
const nodes = [];
|
|
1631
|
+
const edges = [];
|
|
1632
|
+
const config = (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)();
|
|
1633
|
+
for (const namespaceKey of this.namespaces.keys()) {
|
|
1634
|
+
const namespace = this.namespaces.get(namespaceKey);
|
|
1635
|
+
if (namespace) {
|
|
1636
|
+
const node = {
|
|
1637
|
+
id: namespace.id,
|
|
1638
|
+
label: namespace.id,
|
|
1639
|
+
isGroup: true,
|
|
1640
|
+
padding: config.class.padding ?? 16,
|
|
1641
|
+
// parent node must be one of [rect, roundedWithTitle, noteGroup, divider]
|
|
1642
|
+
shape: "rect",
|
|
1643
|
+
cssStyles: ["fill: none", "stroke: black"],
|
|
1644
|
+
look: config.look
|
|
1645
|
+
};
|
|
1646
|
+
nodes.push(node);
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
for (const classKey of this.classes.keys()) {
|
|
1650
|
+
const classNode = this.classes.get(classKey);
|
|
1651
|
+
if (classNode) {
|
|
1652
|
+
const node = classNode;
|
|
1653
|
+
node.parentId = classNode.parent;
|
|
1654
|
+
node.look = config.look;
|
|
1655
|
+
nodes.push(node);
|
|
1656
|
+
}
|
|
1657
|
+
}
|
|
1658
|
+
let cnt = 0;
|
|
1659
|
+
for (const note of this.notes) {
|
|
1660
|
+
cnt++;
|
|
1661
|
+
const noteNode = {
|
|
1662
|
+
id: note.id,
|
|
1663
|
+
label: note.text,
|
|
1664
|
+
isGroup: false,
|
|
1665
|
+
shape: "note",
|
|
1666
|
+
padding: config.class.padding ?? 6,
|
|
1667
|
+
cssStyles: [
|
|
1668
|
+
"text-align: left",
|
|
1669
|
+
"white-space: nowrap",
|
|
1670
|
+
`fill: ${config.themeVariables.noteBkgColor}`,
|
|
1671
|
+
`stroke: ${config.themeVariables.noteBorderColor}`
|
|
1672
|
+
],
|
|
1673
|
+
look: config.look
|
|
1674
|
+
};
|
|
1675
|
+
nodes.push(noteNode);
|
|
1676
|
+
const noteClassId = this.classes.get(note.class)?.id ?? "";
|
|
1677
|
+
if (noteClassId) {
|
|
1678
|
+
const edge = {
|
|
1679
|
+
id: `edgeNote${cnt}`,
|
|
1680
|
+
start: note.id,
|
|
1681
|
+
end: noteClassId,
|
|
1682
|
+
type: "normal",
|
|
1683
|
+
thickness: "normal",
|
|
1684
|
+
classes: "relation",
|
|
1685
|
+
arrowTypeStart: "none",
|
|
1686
|
+
arrowTypeEnd: "none",
|
|
1687
|
+
arrowheadStyle: "",
|
|
1688
|
+
labelStyle: [""],
|
|
1689
|
+
style: ["fill: none"],
|
|
1690
|
+
pattern: "dotted",
|
|
1691
|
+
look: config.look
|
|
1692
|
+
};
|
|
1693
|
+
edges.push(edge);
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
for (const _interface of this.interfaces) {
|
|
1697
|
+
const interfaceNode = {
|
|
1698
|
+
id: _interface.id,
|
|
1699
|
+
label: _interface.label,
|
|
1700
|
+
isGroup: false,
|
|
1701
|
+
shape: "rect",
|
|
1702
|
+
cssStyles: ["opacity: 0;"],
|
|
1703
|
+
look: config.look
|
|
1704
|
+
};
|
|
1705
|
+
nodes.push(interfaceNode);
|
|
1706
|
+
}
|
|
1707
|
+
cnt = 0;
|
|
1708
|
+
for (const classRelation of this.relations) {
|
|
1709
|
+
cnt++;
|
|
1710
|
+
const edge = {
|
|
1711
|
+
id: (0,_chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__/* .getEdgeId */ .rY)(classRelation.id1, classRelation.id2, {
|
|
1712
|
+
prefix: "id",
|
|
1713
|
+
counter: cnt
|
|
1714
|
+
}),
|
|
1715
|
+
start: classRelation.id1,
|
|
1716
|
+
end: classRelation.id2,
|
|
1717
|
+
type: "normal",
|
|
1718
|
+
label: classRelation.title,
|
|
1719
|
+
labelpos: "c",
|
|
1720
|
+
thickness: "normal",
|
|
1721
|
+
classes: "relation",
|
|
1722
|
+
arrowTypeStart: this.getArrowMarker(classRelation.relation.type1),
|
|
1723
|
+
arrowTypeEnd: this.getArrowMarker(classRelation.relation.type2),
|
|
1724
|
+
startLabelRight: classRelation.relationTitle1 === "none" ? "" : classRelation.relationTitle1,
|
|
1725
|
+
endLabelLeft: classRelation.relationTitle2 === "none" ? "" : classRelation.relationTitle2,
|
|
1726
|
+
arrowheadStyle: "",
|
|
1727
|
+
labelStyle: ["display: inline-block"],
|
|
1728
|
+
style: classRelation.style || "",
|
|
1729
|
+
pattern: classRelation.relation.lineType == 1 ? "dashed" : "solid",
|
|
1730
|
+
look: config.look
|
|
1731
|
+
};
|
|
1732
|
+
edges.push(edge);
|
|
1733
|
+
}
|
|
1734
|
+
return { nodes, edges, other: {}, config, direction: this.getDirection() };
|
|
1735
|
+
}
|
|
1736
|
+
};
|
|
1737
|
+
|
|
1738
|
+
// src/diagrams/class/styles.js
|
|
1739
|
+
var getStyles = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)((options) => `g.classGroup text {
|
|
1740
|
+
fill: ${options.nodeBorder || options.classText};
|
|
1741
|
+
stroke: none;
|
|
1742
|
+
font-family: ${options.fontFamily};
|
|
1743
|
+
font-size: 10px;
|
|
1744
|
+
|
|
1745
|
+
.title {
|
|
1746
|
+
font-weight: bolder;
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
.nodeLabel, .edgeLabel {
|
|
1752
|
+
color: ${options.classText};
|
|
1753
|
+
}
|
|
1754
|
+
.edgeLabel .label rect {
|
|
1755
|
+
fill: ${options.mainBkg};
|
|
1756
|
+
}
|
|
1757
|
+
.label text {
|
|
1758
|
+
fill: ${options.classText};
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
.labelBkg {
|
|
1762
|
+
background: ${options.mainBkg};
|
|
1763
|
+
}
|
|
1764
|
+
.edgeLabel .label span {
|
|
1765
|
+
background: ${options.mainBkg};
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
.classTitle {
|
|
1769
|
+
font-weight: bolder;
|
|
1770
|
+
}
|
|
1771
|
+
.node rect,
|
|
1772
|
+
.node circle,
|
|
1773
|
+
.node ellipse,
|
|
1774
|
+
.node polygon,
|
|
1775
|
+
.node path {
|
|
1776
|
+
fill: ${options.mainBkg};
|
|
1777
|
+
stroke: ${options.nodeBorder};
|
|
1778
|
+
stroke-width: 1px;
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1781
|
+
|
|
1782
|
+
.divider {
|
|
1783
|
+
stroke: ${options.nodeBorder};
|
|
1784
|
+
stroke-width: 1;
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1787
|
+
g.clickable {
|
|
1788
|
+
cursor: pointer;
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
g.classGroup rect {
|
|
1792
|
+
fill: ${options.mainBkg};
|
|
1793
|
+
stroke: ${options.nodeBorder};
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
g.classGroup line {
|
|
1797
|
+
stroke: ${options.nodeBorder};
|
|
1798
|
+
stroke-width: 1;
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
.classLabel .box {
|
|
1802
|
+
stroke: none;
|
|
1803
|
+
stroke-width: 0;
|
|
1804
|
+
fill: ${options.mainBkg};
|
|
1805
|
+
opacity: 0.5;
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1808
|
+
.classLabel .label {
|
|
1809
|
+
fill: ${options.nodeBorder};
|
|
1810
|
+
font-size: 10px;
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
.relation {
|
|
1814
|
+
stroke: ${options.lineColor};
|
|
1815
|
+
stroke-width: 1;
|
|
1816
|
+
fill: none;
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1819
|
+
.dashed-line{
|
|
1820
|
+
stroke-dasharray: 3;
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
.dotted-line{
|
|
1824
|
+
stroke-dasharray: 1 2;
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1827
|
+
#compositionStart, .composition {
|
|
1828
|
+
fill: ${options.lineColor} !important;
|
|
1829
|
+
stroke: ${options.lineColor} !important;
|
|
1830
|
+
stroke-width: 1;
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
#compositionEnd, .composition {
|
|
1834
|
+
fill: ${options.lineColor} !important;
|
|
1835
|
+
stroke: ${options.lineColor} !important;
|
|
1836
|
+
stroke-width: 1;
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
#dependencyStart, .dependency {
|
|
1840
|
+
fill: ${options.lineColor} !important;
|
|
1841
|
+
stroke: ${options.lineColor} !important;
|
|
1842
|
+
stroke-width: 1;
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1845
|
+
#dependencyStart, .dependency {
|
|
1846
|
+
fill: ${options.lineColor} !important;
|
|
1847
|
+
stroke: ${options.lineColor} !important;
|
|
1848
|
+
stroke-width: 1;
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
#extensionStart, .extension {
|
|
1852
|
+
fill: transparent !important;
|
|
1853
|
+
stroke: ${options.lineColor} !important;
|
|
1854
|
+
stroke-width: 1;
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
#extensionEnd, .extension {
|
|
1858
|
+
fill: transparent !important;
|
|
1859
|
+
stroke: ${options.lineColor} !important;
|
|
1860
|
+
stroke-width: 1;
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
#aggregationStart, .aggregation {
|
|
1864
|
+
fill: transparent !important;
|
|
1865
|
+
stroke: ${options.lineColor} !important;
|
|
1866
|
+
stroke-width: 1;
|
|
1867
|
+
}
|
|
1868
|
+
|
|
1869
|
+
#aggregationEnd, .aggregation {
|
|
1870
|
+
fill: transparent !important;
|
|
1871
|
+
stroke: ${options.lineColor} !important;
|
|
1872
|
+
stroke-width: 1;
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1875
|
+
#lollipopStart, .lollipop {
|
|
1876
|
+
fill: ${options.mainBkg} !important;
|
|
1877
|
+
stroke: ${options.lineColor} !important;
|
|
1878
|
+
stroke-width: 1;
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
#lollipopEnd, .lollipop {
|
|
1882
|
+
fill: ${options.mainBkg} !important;
|
|
1883
|
+
stroke: ${options.lineColor} !important;
|
|
1884
|
+
stroke-width: 1;
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1887
|
+
.edgeTerminals {
|
|
1888
|
+
font-size: 11px;
|
|
1889
|
+
line-height: initial;
|
|
1890
|
+
}
|
|
1891
|
+
|
|
1892
|
+
.classTitleText {
|
|
1893
|
+
text-anchor: middle;
|
|
1894
|
+
font-size: 18px;
|
|
1895
|
+
fill: ${options.textColor};
|
|
1896
|
+
}
|
|
1897
|
+
`, "getStyles");
|
|
1898
|
+
var styles_default = getStyles;
|
|
1899
|
+
|
|
1900
|
+
// src/diagrams/class/classRenderer-v3-unified.ts
|
|
1901
|
+
var getDir = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)((parsedItem, defaultDir = "TB") => {
|
|
1902
|
+
if (!parsedItem.doc) {
|
|
1903
|
+
return defaultDir;
|
|
1904
|
+
}
|
|
1905
|
+
let dir = defaultDir;
|
|
1906
|
+
for (const parsedItemDoc of parsedItem.doc) {
|
|
1907
|
+
if (parsedItemDoc.stmt === "dir") {
|
|
1908
|
+
dir = parsedItemDoc.value;
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
return dir;
|
|
1912
|
+
}, "getDir");
|
|
1913
|
+
var getClasses = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(function(text, diagramObj) {
|
|
1914
|
+
return diagramObj.db.getClasses();
|
|
1915
|
+
}, "getClasses");
|
|
1916
|
+
var draw = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .__name */ .K2)(async function(text, id, _version, diag) {
|
|
1917
|
+
_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.info("REF0:");
|
|
1918
|
+
_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .log */ .Rm.info("Drawing class diagram (v3)", id);
|
|
1919
|
+
const { securityLevel, state: conf, layout } = (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_3__/* .getConfig2 */ .D7)();
|
|
1920
|
+
const data4Layout = diag.db.getData();
|
|
1921
|
+
const svg = (0,_chunk_RZ5BOZE2_mjs__WEBPACK_IMPORTED_MODULE_0__/* .getDiagramElement */ .A)(id, securityLevel);
|
|
1922
|
+
data4Layout.type = diag.type;
|
|
1923
|
+
data4Layout.layoutAlgorithm = (0,_chunk_TYCBKAJE_mjs__WEBPACK_IMPORTED_MODULE_1__/* .getRegisteredLayoutAlgorithm */ .q7)(layout);
|
|
1924
|
+
data4Layout.nodeSpacing = conf?.nodeSpacing || 50;
|
|
1925
|
+
data4Layout.rankSpacing = conf?.rankSpacing || 50;
|
|
1926
|
+
data4Layout.markers = ["aggregation", "extension", "composition", "dependency", "lollipop"];
|
|
1927
|
+
data4Layout.diagramId = id;
|
|
1928
|
+
await (0,_chunk_TYCBKAJE_mjs__WEBPACK_IMPORTED_MODULE_1__/* .render */ .XX)(data4Layout, svg);
|
|
1929
|
+
const padding = 8;
|
|
1930
|
+
_chunk_O4NI6UNU_mjs__WEBPACK_IMPORTED_MODULE_2__/* .utils_default */ ._K.insertTitle(
|
|
1931
|
+
svg,
|
|
1932
|
+
"classDiagramTitleText",
|
|
1933
|
+
conf?.titleTopMargin ?? 25,
|
|
1934
|
+
diag.db.getDiagramTitle()
|
|
1935
|
+
);
|
|
1936
|
+
(0,_chunk_RZ5BOZE2_mjs__WEBPACK_IMPORTED_MODULE_0__/* .setupViewPortForSVG */ .P)(svg, padding, "classDiagram", conf?.useMaxWidth ?? true);
|
|
1937
|
+
}, "draw");
|
|
1938
|
+
var classRenderer_v3_unified_default = {
|
|
1939
|
+
getClasses,
|
|
1940
|
+
draw,
|
|
1941
|
+
getDir
|
|
1942
|
+
};
|
|
1943
|
+
|
|
1944
|
+
|
|
1945
|
+
|
|
1946
|
+
|
|
1947
|
+
/***/ }),
|
|
1948
|
+
|
|
1949
|
+
/***/ 5051:
|
|
1950
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1951
|
+
|
|
1952
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1953
|
+
/* harmony export */ A: () => (/* binding */ getDiagramElement),
|
|
1954
|
+
/* harmony export */ P: () => (/* binding */ setupViewPortForSVG)
|
|
1955
|
+
/* harmony export */ });
|
|
1956
|
+
/* harmony import */ var _chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3804);
|
|
1957
|
+
/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8066);
|
|
1958
|
+
|
|
1959
|
+
|
|
1960
|
+
// src/rendering-util/insertElementsForSize.js
|
|
1961
|
+
|
|
1962
|
+
var getDiagramElement = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((id, securityLevel) => {
|
|
1963
|
+
let sandboxElement;
|
|
1964
|
+
if (securityLevel === "sandbox") {
|
|
1965
|
+
sandboxElement = (0,d3__WEBPACK_IMPORTED_MODULE_1__/* .select */ .Ltv)("#i" + id);
|
|
1966
|
+
}
|
|
1967
|
+
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");
|
|
1968
|
+
const svg = root.select(`[id="${id}"]`);
|
|
1969
|
+
return svg;
|
|
1970
|
+
}, "getDiagramElement");
|
|
1971
|
+
|
|
1972
|
+
// src/rendering-util/setupViewPortForSVG.ts
|
|
1973
|
+
var setupViewPortForSVG = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((svg, padding, cssDiagram, useMaxWidth) => {
|
|
1974
|
+
svg.attr("class", cssDiagram);
|
|
1975
|
+
const { width, height, x, y } = calculateDimensionsWithPadding(svg, padding);
|
|
1976
|
+
(0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .configureSvgSize */ .a$)(svg, height, width, useMaxWidth);
|
|
1977
|
+
const viewBox = createViewBox(x, y, width, height, padding);
|
|
1978
|
+
svg.attr("viewBox", viewBox);
|
|
1979
|
+
_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .log */ .Rm.debug(`viewBox configured: ${viewBox} with padding: ${padding}`);
|
|
1980
|
+
}, "setupViewPortForSVG");
|
|
1981
|
+
var calculateDimensionsWithPadding = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((svg, padding) => {
|
|
1982
|
+
const bounds = svg.node()?.getBBox() || { width: 0, height: 0, x: 0, y: 0 };
|
|
1983
|
+
return {
|
|
1984
|
+
width: bounds.width + padding * 2,
|
|
1985
|
+
height: bounds.height + padding * 2,
|
|
1986
|
+
x: bounds.x,
|
|
1987
|
+
y: bounds.y
|
|
1988
|
+
};
|
|
1989
|
+
}, "calculateDimensionsWithPadding");
|
|
1990
|
+
var createViewBox = /* @__PURE__ */ (0,_chunk_YTJNT7DU_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__name */ .K2)((x, y, width, height, padding) => {
|
|
1991
|
+
return `${x - padding} ${y - padding} ${width} ${height}`;
|
|
1992
|
+
}, "createViewBox");
|
|
1993
|
+
|
|
1994
|
+
|
|
1995
|
+
|
|
1996
|
+
|
|
1997
|
+
/***/ })
|
|
1998
|
+
|
|
1999
|
+
};
|
|
2000
|
+
;
|
|
2001
|
+
//# sourceMappingURL=359.node.js.map
|