1 | import { select } from "d3";
|
2 | import { G as defaultConfig, s as setAccTitle, g as getAccTitle, a as getAccDescription, b as setAccDescription, r as setDiagramTitle, t as getDiagramTitle, c as getConfig, m as mermaidAPI, l as log, u as utils, v as clear$1, e as common } from "./mermaid-a953d906.js";
|
3 | var parser = function() {
|
4 | var o = function(k, v, o2, l) {
|
5 | for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v)
|
6 | ;
|
7 | return o2;
|
8 | }, $V0 = [1, 9], $V1 = [1, 7], $V2 = [1, 6], $V3 = [1, 8], $V4 = [1, 20, 21, 22, 23, 38, 44, 46, 48, 52, 66, 67, 87, 88, 89, 90, 91, 92, 96, 106, 107, 110, 112, 113, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128], $V5 = [2, 10], $V6 = [1, 20], $V7 = [1, 21], $V8 = [1, 22], $V9 = [1, 23], $Va = [1, 30], $Vb = [1, 32], $Vc = [1, 33], $Vd = [1, 34], $Ve = [1, 62], $Vf = [1, 48], $Vg = [1, 52], $Vh = [1, 36], $Vi = [1, 37], $Vj = [1, 38], $Vk = [1, 39], $Vl = [1, 40], $Vm = [1, 56], $Vn = [1, 63], $Vo = [1, 51], $Vp = [1, 53], $Vq = [1, 55], $Vr = [1, 59], $Vs = [1, 60], $Vt = [1, 41], $Vu = [1, 42], $Vv = [1, 43], $Vw = [1, 44], $Vx = [1, 61], $Vy = [1, 50], $Vz = [1, 54], $VA = [1, 57], $VB = [1, 58], $VC = [1, 49], $VD = [1, 66], $VE = [1, 71], $VF = [1, 20, 21, 22, 23, 38, 42, 44, 46, 48, 52, 66, 67, 87, 88, 89, 90, 91, 92, 96, 106, 107, 110, 112, 113, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128], $VG = [1, 75], $VH = [1, 74], $VI = [1, 76], $VJ = [20, 21, 23, 81, 82], $VK = [1, 99], $VL = [1, 104], $VM = [1, 107], $VN = [1, 108], $VO = [1, 101], $VP = [1, 106], $VQ = [1, 109], $VR = [1, 102], $VS = [1, 114], $VT = [1, 113], $VU = [1, 103], $VV = [1, 105], $VW = [1, 110], $VX = [1, 111], $VY = [1, 112], $VZ = [1, 115], $V_ = [20, 21, 22, 23, 81, 82], $V$ = [20, 21, 22, 23, 53, 81, 82], $V01 = [20, 21, 22, 23, 40, 52, 53, 55, 57, 59, 61, 63, 65, 66, 67, 69, 71, 73, 74, 76, 81, 82, 92, 96, 106, 107, 110, 112, 113, 123, 124, 125, 126, 127, 128], $V11 = [20, 21, 23], $V21 = [20, 21, 23, 52, 66, 67, 81, 82, 92, 96, 106, 107, 110, 112, 113, 123, 124, 125, 126, 127, 128], $V31 = [1, 12, 20, 21, 22, 23, 24, 38, 42, 44, 46, 48, 52, 66, 67, 87, 88, 89, 90, 91, 92, 96, 106, 107, 110, 112, 113, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128], $V41 = [52, 66, 67, 92, 96, 106, 107, 110, 112, 113, 123, 124, 125, 126, 127, 128], $V51 = [1, 150], $V61 = [1, 158], $V71 = [1, 159], $V81 = [1, 160], $V91 = [1, 161], $Va1 = [1, 145], $Vb1 = [1, 146], $Vc1 = [1, 141], $Vd1 = [1, 142], $Ve1 = [1, 153], $Vf1 = [1, 154], $Vg1 = [1, 155], $Vh1 = [1, 156], $Vi1 = [1, 157], $Vj1 = [1, 162], $Vk1 = [1, 163], $Vl1 = [1, 148], $Vm1 = [1, 151], $Vn1 = [1, 147], $Vo1 = [1, 144], $Vp1 = [20, 21, 22, 23, 38, 42, 44, 46, 48, 52, 66, 67, 87, 88, 89, 90, 91, 92, 96, 106, 107, 110, 112, 113, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128], $Vq1 = [1, 166], $Vr1 = [20, 21, 22, 23, 26, 52, 66, 67, 92, 106, 107, 110, 112, 113, 123, 124, 125, 126, 127, 128], $Vs1 = [20, 21, 22, 23, 24, 26, 38, 40, 41, 42, 52, 56, 58, 60, 62, 64, 66, 67, 68, 70, 72, 73, 75, 77, 81, 82, 87, 88, 89, 90, 91, 92, 93, 96, 106, 107, 110, 112, 113, 114, 115, 123, 124, 125, 126, 127, 128], $Vt1 = [12, 21, 22, 24], $Vu1 = [22, 107], $Vv1 = [1, 251], $Vw1 = [1, 246], $Vx1 = [1, 247], $Vy1 = [1, 255], $Vz1 = [1, 252], $VA1 = [1, 249], $VB1 = [1, 248], $VC1 = [1, 250], $VD1 = [1, 253], $VE1 = [1, 254], $VF1 = [1, 256], $VG1 = [1, 274], $VH1 = [20, 21, 23, 107], $VI1 = [20, 21, 22, 23, 66, 67, 87, 103, 106, 107, 110, 111, 112, 113, 114];
|
9 | var parser2 = {
|
10 | trace: function trace() {
|
11 | },
|
12 | yy: {},
|
13 | symbols_: { "error": 2, "start": 3, "mermaidDoc": 4, "directive": 5, "openDirective": 6, "typeDirective": 7, "closeDirective": 8, "separator": 9, ":": 10, "argDirective": 11, "open_directive": 12, "type_directive": 13, "arg_directive": 14, "close_directive": 15, "graphConfig": 16, "document": 17, "line": 18, "statement": 19, "SEMI": 20, "NEWLINE": 21, "SPACE": 22, "EOF": 23, "GRAPH": 24, "NODIR": 25, "DIR": 26, "FirstStmtSeperator": 27, "ending": 28, "endToken": 29, "spaceList": 30, "spaceListNewline": 31, "verticeStatement": 32, "styleStatement": 33, "linkStyleStatement": 34, "classDefStatement": 35, "classStatement": 36, "clickStatement": 37, "subgraph": 38, "text": 39, "SQS": 40, "SQE": 41, "end": 42, "direction": 43, "acc_title": 44, "acc_title_value": 45, "acc_descr": 46, "acc_descr_value": 47, "acc_descr_multiline_value": 48, "link": 49, "node": 50, "vertex": 51, "AMP": 52, "STYLE_SEPARATOR": 53, "idString": 54, "DOUBLECIRCLESTART": 55, "DOUBLECIRCLEEND": 56, "PS": 57, "PE": 58, "(-": 59, "-)": 60, "STADIUMSTART": 61, "STADIUMEND": 62, "SUBROUTINESTART": 63, "SUBROUTINEEND": 64, "VERTEX_WITH_PROPS_START": 65, "ALPHA": 66, "COLON": 67, "PIPE": 68, "CYLINDERSTART": 69, "CYLINDEREND": 70, "DIAMOND_START": 71, "DIAMOND_STOP": 72, "TAGEND": 73, "TRAPSTART": 74, "TRAPEND": 75, "INVTRAPSTART": 76, "INVTRAPEND": 77, "linkStatement": 78, "arrowText": 79, "TESTSTR": 80, "START_LINK": 81, "LINK": 82, "textToken": 83, "STR": 84, "MD_STR": 85, "keywords": 86, "STYLE": 87, "LINKSTYLE": 88, "CLASSDEF": 89, "CLASS": 90, "CLICK": 91, "DOWN": 92, "UP": 93, "textNoTags": 94, "textNoTagsToken": 95, "DEFAULT": 96, "stylesOpt": 97, "alphaNum": 98, "CALLBACKNAME": 99, "CALLBACKARGS": 100, "HREF": 101, "LINK_TARGET": 102, "HEX": 103, "numList": 104, "INTERPOLATE": 105, "NUM": 106, "COMMA": 107, "style": 108, "styleComponent": 109, "MINUS": 110, "UNIT": 111, "BRKT": 112, "DOT": 113, "PCT": 114, "TAGSTART": 115, "alphaNumToken": 116, "idStringToken": 117, "alphaNumStatement": 118, "direction_tb": 119, "direction_bt": 120, "direction_rl": 121, "direction_lr": 122, "PUNCTUATION": 123, "UNICODE_TEXT": 124, "PLUS": 125, "EQUALS": 126, "MULT": 127, "UNDERSCORE": 128, "graphCodeTokens": 129, "ARROW_CROSS": 130, "ARROW_POINT": 131, "ARROW_CIRCLE": 132, "ARROW_OPEN": 133, "QUOTE": 134, "$accept": 0, "$end": 1 },
|
14 | terminals_: { 2: "error", 10: ":", 12: "open_directive", 13: "type_directive", 14: "arg_directive", 15: "close_directive", 20: "SEMI", 21: "NEWLINE", 22: "SPACE", 23: "EOF", 24: "GRAPH", 25: "NODIR", 26: "DIR", 38: "subgraph", 40: "SQS", 41: "SQE", 42: "end", 44: "acc_title", 45: "acc_title_value", 46: "acc_descr", 47: "acc_descr_value", 48: "acc_descr_multiline_value", 52: "AMP", 53: "STYLE_SEPARATOR", 55: "DOUBLECIRCLESTART", 56: "DOUBLECIRCLEEND", 57: "PS", 58: "PE", 59: "(-", 60: "-)", 61: "STADIUMSTART", 62: "STADIUMEND", 63: "SUBROUTINESTART", 64: "SUBROUTINEEND", 65: "VERTEX_WITH_PROPS_START", 66: "ALPHA", 67: "COLON", 68: "PIPE", 69: "CYLINDERSTART", 70: "CYLINDEREND", 71: "DIAMOND_START", 72: "DIAMOND_STOP", 73: "TAGEND", 74: "TRAPSTART", 75: "TRAPEND", 76: "INVTRAPSTART", 77: "INVTRAPEND", 80: "TESTSTR", 81: "START_LINK", 82: "LINK", 84: "STR", 85: "MD_STR", 87: "STYLE", 88: "LINKSTYLE", 89: "CLASSDEF", 90: "CLASS", 91: "CLICK", 92: "DOWN", 93: "UP", 96: "DEFAULT", 99: "CALLBACKNAME", 100: "CALLBACKARGS", 101: "HREF", 102: "LINK_TARGET", 103: "HEX", 105: "INTERPOLATE", 106: "NUM", 107: "COMMA", 110: "MINUS", 111: "UNIT", 112: "BRKT", 113: "DOT", 114: "PCT", 115: "TAGSTART", 119: "direction_tb", 120: "direction_bt", 121: "direction_rl", 122: "direction_lr", 123: "PUNCTUATION", 124: "UNICODE_TEXT", 125: "PLUS", 126: "EQUALS", 127: "MULT", 128: "UNDERSCORE", 130: "ARROW_CROSS", 131: "ARROW_POINT", 132: "ARROW_CIRCLE", 133: "ARROW_OPEN", 134: "QUOTE" },
|
15 | productions_: [0, [3, 1], [3, 2], [5, 4], [5, 6], [6, 1], [7, 1], [11, 1], [8, 1], [4, 2], [17, 0], [17, 2], [18, 1], [18, 1], [18, 1], [18, 1], [18, 1], [16, 2], [16, 2], [16, 2], [16, 3], [28, 2], [28, 1], [29, 1], [29, 1], [29, 1], [27, 1], [27, 1], [27, 2], [31, 2], [31, 2], [31, 1], [31, 1], [30, 2], [30, 1], [19, 2], [19, 2], [19, 2], [19, 2], [19, 2], [19, 2], [19, 9], [19, 6], [19, 4], [19, 1], [19, 2], [19, 2], [19, 1], [9, 1], [9, 1], [9, 1], [32, 3], [32, 4], [32, 2], [32, 1], [50, 1], [50, 5], [50, 3], [51, 4], [51, 4], [51, 6], [51, 4], [51, 4], [51, 4], [51, 8], [51, 4], [51, 4], [51, 4], [51, 6], [51, 4], [51, 4], [51, 4], [51, 4], [51, 4], [51, 1], [49, 2], [49, 3], [49, 3], [49, 1], [49, 3], [78, 1], [79, 3], [39, 1], [39, 2], [39, 1], [39, 1], [86, 1], [86, 1], [86, 1], [86, 1], [86, 1], [86, 1], [86, 1], [86, 1], [86, 1], [86, 1], [86, 1], [94, 1], [94, 2], [35, 5], [35, 5], [36, 5], [37, 2], [37, 4], [37, 3], [37, 5], [37, 2], [37, 4], [37, 4], [37, 6], [37, 2], [37, 4], [37, 2], [37, 4], [37, 4], [37, 6], [33, 5], [33, 5], [34, 5], [34, 5], [34, 9], [34, 9], [34, 7], [34, 7], [104, 1], [104, 3], [97, 1], [97, 3], [108, 1], [108, 2], [109, 1], [109, 1], [109, 1], [109, 1], [109, 1], [109, 1], [109, 1], [109, 1], [109, 1], [109, 1], [109, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [95, 1], [95, 1], [95, 1], [95, 1], [54, 1], [54, 2], [98, 1], [98, 2], [118, 1], [118, 1], [118, 1], [118, 1], [43, 1], [43, 1], [43, 1], [43, 1], [116, 1], [116, 1], [116, 1], [116, 1], [116, 1], [116, 1], [116, 1], [116, 1], [116, 1], [116, 1], [116, 1], [116, 1], [116, 1], [117, 1], [117, 1], [117, 1], [117, 1], [117, 1], [117, 1], [117, 1], [117, 1], [117, 1], [117, 1], [117, 1], [117, 1], [117, 1], [117, 1], [117, 1], [117, 1], [129, 1], [129, 1], [129, 1], [129, 1], [129, 1], [129, 1], [129, 1], [129, 1], [129, 1], [129, 1], [129, 1], [129, 1], [129, 1], [129, 1], [129, 1], [129, 1], [129, 1], [129, 1], [129, 1], [129, 1], [129, 1], [129, 1], [129, 1], [129, 1], [129, 1], [129, 1]],
|
16 | performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
|
17 | var $0 = $$.length - 1;
|
18 | switch (yystate) {
|
19 | case 5:
|
20 | yy.parseDirective("%%{", "open_directive");
|
21 | break;
|
22 | case 6:
|
23 | yy.parseDirective($$[$0], "type_directive");
|
24 | break;
|
25 | case 7:
|
26 | $$[$0] = $$[$0].trim().replace(/'/g, '"');
|
27 | yy.parseDirective($$[$0], "arg_directive");
|
28 | break;
|
29 | case 8:
|
30 | yy.parseDirective("}%%", "close_directive", "flowchart");
|
31 | break;
|
32 | case 10:
|
33 | this.$ = [];
|
34 | break;
|
35 | case 11:
|
36 | if (!Array.isArray($$[$0]) || $$[$0].length > 0) {
|
37 | $$[$0 - 1].push($$[$0]);
|
38 | }
|
39 | this.$ = $$[$0 - 1];
|
40 | break;
|
41 | case 12:
|
42 | case 97:
|
43 | case 153:
|
44 | case 155:
|
45 | case 156:
|
46 | this.$ = $$[$0];
|
47 | break;
|
48 | case 19:
|
49 | yy.setDirection("TB");
|
50 | this.$ = "TB";
|
51 | break;
|
52 | case 20:
|
53 | yy.setDirection($$[$0 - 1]);
|
54 | this.$ = $$[$0 - 1];
|
55 | break;
|
56 | case 35:
|
57 | this.$ = $$[$0 - 1].nodes;
|
58 | break;
|
59 | case 36:
|
60 | case 37:
|
61 | case 38:
|
62 | case 39:
|
63 | case 40:
|
64 | this.$ = [];
|
65 | break;
|
66 | case 41:
|
67 | this.$ = yy.addSubGraph($$[$0 - 6], $$[$0 - 1], $$[$0 - 4]);
|
68 | break;
|
69 | case 42:
|
70 | this.$ = yy.addSubGraph($$[$0 - 3], $$[$0 - 1], $$[$0 - 3]);
|
71 | break;
|
72 | case 43:
|
73 | this.$ = yy.addSubGraph(void 0, $$[$0 - 1], void 0);
|
74 | break;
|
75 | case 45:
|
76 | this.$ = $$[$0].trim();
|
77 | yy.setAccTitle(this.$);
|
78 | break;
|
79 | case 46:
|
80 | case 47:
|
81 | this.$ = $$[$0].trim();
|
82 | yy.setAccDescription(this.$);
|
83 | break;
|
84 | case 51:
|
85 | yy.addLink($$[$0 - 2].stmt, $$[$0], $$[$0 - 1]);
|
86 | this.$ = { stmt: $$[$0], nodes: $$[$0].concat($$[$0 - 2].nodes) };
|
87 | break;
|
88 | case 52:
|
89 | yy.addLink($$[$0 - 3].stmt, $$[$0 - 1], $$[$0 - 2]);
|
90 | this.$ = { stmt: $$[$0 - 1], nodes: $$[$0 - 1].concat($$[$0 - 3].nodes) };
|
91 | break;
|
92 | case 53:
|
93 | this.$ = { stmt: $$[$0 - 1], nodes: $$[$0 - 1] };
|
94 | break;
|
95 | case 54:
|
96 | this.$ = { stmt: $$[$0], nodes: $$[$0] };
|
97 | break;
|
98 | case 55:
|
99 | this.$ = [$$[$0]];
|
100 | break;
|
101 | case 56:
|
102 | this.$ = $$[$0 - 4].concat($$[$0]);
|
103 | break;
|
104 | case 57:
|
105 | this.$ = [$$[$0 - 2]];
|
106 | yy.setClass($$[$0 - 2], $$[$0]);
|
107 | break;
|
108 | case 58:
|
109 | this.$ = $$[$0 - 3];
|
110 | yy.addVertex($$[$0 - 3], $$[$0 - 1], "square");
|
111 | break;
|
112 | case 59:
|
113 | this.$ = $$[$0 - 3];
|
114 | yy.addVertex($$[$0 - 3], $$[$0 - 1], "doublecircle");
|
115 | break;
|
116 | case 60:
|
117 | this.$ = $$[$0 - 5];
|
118 | yy.addVertex($$[$0 - 5], $$[$0 - 2], "circle");
|
119 | break;
|
120 | case 61:
|
121 | this.$ = $$[$0 - 3];
|
122 | yy.addVertex($$[$0 - 3], $$[$0 - 1], "ellipse");
|
123 | break;
|
124 | case 62:
|
125 | this.$ = $$[$0 - 3];
|
126 | yy.addVertex($$[$0 - 3], $$[$0 - 1], "stadium");
|
127 | break;
|
128 | case 63:
|
129 | this.$ = $$[$0 - 3];
|
130 | yy.addVertex($$[$0 - 3], $$[$0 - 1], "subroutine");
|
131 | break;
|
132 | case 64:
|
133 | this.$ = $$[$0 - 7];
|
134 | yy.addVertex($$[$0 - 7], $$[$0 - 1], "rect", void 0, void 0, void 0, Object.fromEntries([[$$[$0 - 5], $$[$0 - 3]]]));
|
135 | break;
|
136 | case 65:
|
137 | this.$ = $$[$0 - 3];
|
138 | yy.addVertex($$[$0 - 3], $$[$0 - 1], "cylinder");
|
139 | break;
|
140 | case 66:
|
141 | this.$ = $$[$0 - 3];
|
142 | yy.addVertex($$[$0 - 3], $$[$0 - 1], "round");
|
143 | break;
|
144 | case 67:
|
145 | this.$ = $$[$0 - 3];
|
146 | yy.addVertex($$[$0 - 3], $$[$0 - 1], "diamond");
|
147 | break;
|
148 | case 68:
|
149 | this.$ = $$[$0 - 5];
|
150 | yy.addVertex($$[$0 - 5], $$[$0 - 2], "hexagon");
|
151 | break;
|
152 | case 69:
|
153 | this.$ = $$[$0 - 3];
|
154 | yy.addVertex($$[$0 - 3], $$[$0 - 1], "odd");
|
155 | break;
|
156 | case 70:
|
157 | this.$ = $$[$0 - 3];
|
158 | yy.addVertex($$[$0 - 3], $$[$0 - 1], "trapezoid");
|
159 | break;
|
160 | case 71:
|
161 | this.$ = $$[$0 - 3];
|
162 | yy.addVertex($$[$0 - 3], $$[$0 - 1], "inv_trapezoid");
|
163 | break;
|
164 | case 72:
|
165 | this.$ = $$[$0 - 3];
|
166 | yy.addVertex($$[$0 - 3], $$[$0 - 1], "lean_right");
|
167 | break;
|
168 | case 73:
|
169 | this.$ = $$[$0 - 3];
|
170 | yy.addVertex($$[$0 - 3], $$[$0 - 1], "lean_left");
|
171 | break;
|
172 | case 74:
|
173 | this.$ = $$[$0];
|
174 | yy.addVertex($$[$0]);
|
175 | break;
|
176 | case 75:
|
177 | $$[$0 - 1].text = $$[$0];
|
178 | this.$ = $$[$0 - 1];
|
179 | break;
|
180 | case 76:
|
181 | case 77:
|
182 | $$[$0 - 2].text = $$[$0 - 1];
|
183 | this.$ = $$[$0 - 2];
|
184 | break;
|
185 | case 78:
|
186 | this.$ = $$[$0];
|
187 | break;
|
188 | case 79:
|
189 | var inf = yy.destructLink($$[$0], $$[$0 - 2]);
|
190 | this.$ = { "type": inf.type, "stroke": inf.stroke, "length": inf.length, "text": $$[$0 - 1] };
|
191 | break;
|
192 | case 80:
|
193 | var inf = yy.destructLink($$[$0]);
|
194 | this.$ = { "type": inf.type, "stroke": inf.stroke, "length": inf.length };
|
195 | break;
|
196 | case 81:
|
197 | this.$ = $$[$0 - 1];
|
198 | break;
|
199 | case 82:
|
200 | this.$ = { text: $$[$0], type: "text" };
|
201 | break;
|
202 | case 83:
|
203 | this.$ = { text: $$[$0 - 1].text + "" + $$[$0], type: $$[$0 - 1].type };
|
204 | break;
|
205 | case 84:
|
206 | this.$ = { text: $$[$0], type: "text" };
|
207 | break;
|
208 | case 85:
|
209 | this.$ = { text: $$[$0], type: "markdown" };
|
210 | break;
|
211 | case 98:
|
212 | case 154:
|
213 | this.$ = $$[$0 - 1] + "" + $$[$0];
|
214 | break;
|
215 | case 99:
|
216 | case 100:
|
217 | this.$ = $$[$0 - 4];
|
218 | yy.addClass($$[$0 - 2], $$[$0]);
|
219 | break;
|
220 | case 101:
|
221 | this.$ = $$[$0 - 4];
|
222 | yy.setClass($$[$0 - 2], $$[$0]);
|
223 | break;
|
224 | case 102:
|
225 | case 110:
|
226 | this.$ = $$[$0 - 1];
|
227 | yy.setClickEvent($$[$0 - 1], $$[$0]);
|
228 | break;
|
229 | case 103:
|
230 | case 111:
|
231 | this.$ = $$[$0 - 3];
|
232 | yy.setClickEvent($$[$0 - 3], $$[$0 - 2]);
|
233 | yy.setTooltip($$[$0 - 3], $$[$0]);
|
234 | break;
|
235 | case 104:
|
236 | this.$ = $$[$0 - 2];
|
237 | yy.setClickEvent($$[$0 - 2], $$[$0 - 1], $$[$0]);
|
238 | break;
|
239 | case 105:
|
240 | this.$ = $$[$0 - 4];
|
241 | yy.setClickEvent($$[$0 - 4], $$[$0 - 3], $$[$0 - 2]);
|
242 | yy.setTooltip($$[$0 - 4], $$[$0]);
|
243 | break;
|
244 | case 106:
|
245 | case 112:
|
246 | this.$ = $$[$0 - 1];
|
247 | yy.setLink($$[$0 - 1], $$[$0]);
|
248 | break;
|
249 | case 107:
|
250 | case 113:
|
251 | this.$ = $$[$0 - 3];
|
252 | yy.setLink($$[$0 - 3], $$[$0 - 2]);
|
253 | yy.setTooltip($$[$0 - 3], $$[$0]);
|
254 | break;
|
255 | case 108:
|
256 | case 114:
|
257 | this.$ = $$[$0 - 3];
|
258 | yy.setLink($$[$0 - 3], $$[$0 - 2], $$[$0]);
|
259 | break;
|
260 | case 109:
|
261 | case 115:
|
262 | this.$ = $$[$0 - 5];
|
263 | yy.setLink($$[$0 - 5], $$[$0 - 4], $$[$0]);
|
264 | yy.setTooltip($$[$0 - 5], $$[$0 - 2]);
|
265 | break;
|
266 | case 116:
|
267 | this.$ = $$[$0 - 4];
|
268 | yy.addVertex($$[$0 - 2], void 0, void 0, $$[$0]);
|
269 | break;
|
270 | case 117:
|
271 | case 119:
|
272 | this.$ = $$[$0 - 4];
|
273 | yy.updateLink($$[$0 - 2], $$[$0]);
|
274 | break;
|
275 | case 118:
|
276 | this.$ = $$[$0 - 4];
|
277 | yy.updateLink([$$[$0 - 2]], $$[$0]);
|
278 | break;
|
279 | case 120:
|
280 | this.$ = $$[$0 - 8];
|
281 | yy.updateLinkInterpolate([$$[$0 - 6]], $$[$0 - 2]);
|
282 | yy.updateLink([$$[$0 - 6]], $$[$0]);
|
283 | break;
|
284 | case 121:
|
285 | this.$ = $$[$0 - 8];
|
286 | yy.updateLinkInterpolate($$[$0 - 6], $$[$0 - 2]);
|
287 | yy.updateLink($$[$0 - 6], $$[$0]);
|
288 | break;
|
289 | case 122:
|
290 | this.$ = $$[$0 - 6];
|
291 | yy.updateLinkInterpolate([$$[$0 - 4]], $$[$0]);
|
292 | break;
|
293 | case 123:
|
294 | this.$ = $$[$0 - 6];
|
295 | yy.updateLinkInterpolate($$[$0 - 4], $$[$0]);
|
296 | break;
|
297 | case 124:
|
298 | case 126:
|
299 | this.$ = [$$[$0]];
|
300 | break;
|
301 | case 125:
|
302 | case 127:
|
303 | $$[$0 - 2].push($$[$0]);
|
304 | this.$ = $$[$0 - 2];
|
305 | break;
|
306 | case 129:
|
307 | this.$ = $$[$0 - 1] + $$[$0];
|
308 | break;
|
309 | case 151:
|
310 | this.$ = $$[$0];
|
311 | break;
|
312 | case 152:
|
313 | this.$ = $$[$0 - 1] + "" + $$[$0];
|
314 | break;
|
315 | case 157:
|
316 | this.$ = "v";
|
317 | break;
|
318 | case 158:
|
319 | this.$ = "-";
|
320 | break;
|
321 | case 159:
|
322 | this.$ = { stmt: "dir", value: "TB" };
|
323 | break;
|
324 | case 160:
|
325 | this.$ = { stmt: "dir", value: "BT" };
|
326 | break;
|
327 | case 161:
|
328 | this.$ = { stmt: "dir", value: "RL" };
|
329 | break;
|
330 | case 162:
|
331 | this.$ = { stmt: "dir", value: "LR" };
|
332 | break;
|
333 | }
|
334 | },
|
335 | table: [{ 3: 1, 4: 2, 5: 3, 6: 5, 12: $V0, 16: 4, 21: $V1, 22: $V2, 24: $V3 }, { 1: [3] }, { 1: [2, 1] }, { 3: 10, 4: 2, 5: 3, 6: 5, 12: $V0, 16: 4, 21: $V1, 22: $V2, 24: $V3 }, o($V4, $V5, { 17: 11 }), { 7: 12, 13: [1, 13] }, { 16: 14, 21: $V1, 22: $V2, 24: $V3 }, { 16: 15, 21: $V1, 22: $V2, 24: $V3 }, { 25: [1, 16], 26: [1, 17] }, { 13: [2, 5] }, { 1: [2, 2] }, { 1: [2, 9], 18: 18, 19: 19, 20: $V6, 21: $V7, 22: $V8, 23: $V9, 32: 24, 33: 25, 34: 26, 35: 27, 36: 28, 37: 29, 38: $Va, 43: 31, 44: $Vb, 46: $Vc, 48: $Vd, 50: 35, 51: 45, 52: $Ve, 54: 46, 66: $Vf, 67: $Vg, 87: $Vh, 88: $Vi, 89: $Vj, 90: $Vk, 91: $Vl, 92: $Vm, 96: $Vn, 106: $Vo, 107: $Vp, 110: $Vq, 112: $Vr, 113: $Vs, 117: 47, 119: $Vt, 120: $Vu, 121: $Vv, 122: $Vw, 123: $Vx, 124: $Vy, 125: $Vz, 126: $VA, 127: $VB, 128: $VC }, { 8: 64, 10: [1, 65], 15: $VD }, o([10, 15], [2, 6]), o($V4, [2, 17]), o($V4, [2, 18]), o($V4, [2, 19]), { 20: [1, 68], 21: [1, 69], 22: $VE, 27: 67, 30: 70 }, o($VF, [2, 11]), o($VF, [2, 12]), o($VF, [2, 13]), o($VF, [2, 14]), o($VF, [2, 15]), o($VF, [2, 16]), { 9: 72, 20: $VG, 21: $VH, 23: $VI, 49: 73, 78: 77, 81: [1, 78], 82: [1, 79] }, { 9: 80, 20: $VG, 21: $VH, 23: $VI }, { 9: 81, 20: $VG, 21: $VH, 23: $VI }, { 9: 82, 20: $VG, 21: $VH, 23: $VI }, { 9: 83, 20: $VG, 21: $VH, 23: $VI }, { 9: 84, 20: $VG, 21: $VH, 23: $VI }, { 9: 86, 20: $VG, 21: $VH, 22: [1, 85], 23: $VI }, o($VF, [2, 44]), { 45: [1, 87] }, { 47: [1, 88] }, o($VF, [2, 47]), o($VJ, [2, 54], { 30: 89, 22: $VE }), { 22: [1, 90] }, { 22: [1, 91] }, { 22: [1, 92] }, { 22: [1, 93] }, { 26: $VK, 52: $VL, 66: $VM, 67: $VN, 84: [1, 97], 92: $VO, 98: 96, 99: [1, 94], 101: [1, 95], 106: $VP, 107: $VQ, 110: $VR, 112: $VS, 113: $VT, 116: 100, 118: 98, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, o($VF, [2, 159]), o($VF, [2, 160]), o($VF, [2, 161]), o($VF, [2, 162]), o($V_, [2, 55], { 53: [1, 116] }), o($V$, [2, 74], { 117: 129, 40: [1, 117], 52: $Ve, 55: [1, 118], 57: [1, 119], 59: [1, 120], 61: [1, 121], 63: [1, 122], 65: [1, 123], 66: $Vf, 67: $Vg, 69: [1, 124], 71: [1, 125], 73: [1, 126], 74: [1, 127], 76: [1, 128], 92: $Vm, 96: $Vn, 106: $Vo, 107: $Vp, 110: $Vq, 112: $Vr, 113: $Vs, 123: $Vx, 124: $Vy, 125: $Vz, 126: $VA, 127: $VB, 128: $VC }), o($V01, [2, 151]), o($V01, [2, 176]), o($V01, [2, 177]), o($V01, [2, 178]), o($V01, [2, 179]), o($V01, [2, 180]), o($V01, [2, 181]), o($V01, [2, 182]), o($V01, [2, 183]), o($V01, [2, 184]), o($V01, [2, 185]), o($V01, [2, 186]), o($V01, [2, 187]), o($V01, [2, 188]), o($V01, [2, 189]), o($V01, [2, 190]), o($V01, [2, 191]), { 9: 130, 20: $VG, 21: $VH, 23: $VI }, { 11: 131, 14: [1, 132] }, o($V11, [2, 8]), o($V4, [2, 20]), o($V4, [2, 26]), o($V4, [2, 27]), { 21: [1, 133] }, o($V21, [2, 34], { 30: 134, 22: $VE }), o($VF, [2, 35]), { 50: 135, 51: 45, 52: $Ve, 54: 46, 66: $Vf, 67: $Vg, 92: $Vm, 96: $Vn, 106: $Vo, 107: $Vp, 110: $Vq, 112: $Vr, 113: $Vs, 117: 47, 123: $Vx, 124: $Vy, 125: $Vz, 126: $VA, 127: $VB, 128: $VC }, o($V31, [2, 48]), o($V31, [2, 49]), o($V31, [2, 50]), o($V41, [2, 78], { 79: 136, 68: [1, 138], 80: [1, 137] }), { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 39: 139, 42: $V91, 52: $VL, 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 140, 84: $Vc1, 85: $Vd1, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, o([52, 66, 67, 68, 80, 92, 96, 106, 107, 110, 112, 113, 123, 124, 125, 126, 127, 128], [2, 80]), o($VF, [2, 36]), o($VF, [2, 37]), o($VF, [2, 38]), o($VF, [2, 39]), o($VF, [2, 40]), { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 39: 164, 42: $V91, 52: $VL, 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 140, 84: $Vc1, 85: $Vd1, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, o($Vp1, $V5, { 17: 165 }), o($VF, [2, 45]), o($VF, [2, 46]), o($VJ, [2, 53], { 52: $Vq1 }), { 26: $VK, 52: $VL, 66: $VM, 67: $VN, 92: $VO, 98: 167, 103: [1, 168], 106: $VP, 107: $VQ, 110: $VR, 112: $VS, 113: $VT, 116: 100, 118: 98, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 96: [1, 169], 104: 170, 106: [1, 171] }, { 26: $VK, 52: $VL, 66: $VM, 67: $VN, 92: $VO, 96: [1, 172], 98: 173, 106: $VP, 107: $VQ, 110: $VR, 112: $VS, 113: $VT, 116: 100, 118: 98, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 26: $VK, 52: $VL, 66: $VM, 67: $VN, 92: $VO, 98: 174, 106: $VP, 107: $VQ, 110: $VR, 112: $VS, 113: $VT, 116: 100, 118: 98, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, o($V11, [2, 102], { 22: [1, 175], 100: [1, 176] }), o($V11, [2, 106], { 22: [1, 177] }), o($V11, [2, 110], { 116: 100, 118: 179, 22: [1, 178], 26: $VK, 52: $VL, 66: $VM, 67: $VN, 92: $VO, 106: $VP, 107: $VQ, 110: $VR, 112: $VS, 113: $VT, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }), o($V11, [2, 112], { 22: [1, 180] }), o($Vr1, [2, 153]), o($Vr1, [2, 155]), o($Vr1, [2, 156]), o($Vr1, [2, 157]), o($Vr1, [2, 158]), o($Vs1, [2, 163]), o($Vs1, [2, 164]), o($Vs1, [2, 165]), o($Vs1, [2, 166]), o($Vs1, [2, 167]), o($Vs1, [2, 168]), o($Vs1, [2, 169]), o($Vs1, [2, 170]), o($Vs1, [2, 171]), o($Vs1, [2, 172]), o($Vs1, [2, 173]), o($Vs1, [2, 174]), o($Vs1, [2, 175]), { 52: $Ve, 54: 181, 66: $Vf, 67: $Vg, 92: $Vm, 96: $Vn, 106: $Vo, 107: $Vp, 110: $Vq, 112: $Vr, 113: $Vs, 117: 47, 123: $Vx, 124: $Vy, 125: $Vz, 126: $VA, 127: $VB, 128: $VC }, { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 39: 182, 42: $V91, 52: $VL, 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 140, 84: $Vc1, 85: $Vd1, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 39: 183, 42: $V91, 52: $VL, 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 140, 84: $Vc1, 85: $Vd1, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 39: 185, 42: $V91, 52: $VL, 57: [1, 184], 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 140, 84: $Vc1, 85: $Vd1, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 39: 186, 42: $V91, 52: $VL, 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 140, 84: $Vc1, 85: $Vd1, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 39: 187, 42: $V91, 52: $VL, 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 140, 84: $Vc1, 85: $Vd1, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 39: 188, 42: $V91, 52: $VL, 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 140, 84: $Vc1, 85: $Vd1, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 66: [1, 189] }, { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 39: 190, 42: $V91, 52: $VL, 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 140, 84: $Vc1, 85: $Vd1, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 39: 191, 42: $V91, 52: $VL, 66: $VM, 67: $VN, 71: [1, 192], 73: $Va1, 81: $Vb1, 83: 140, 84: $Vc1, 85: $Vd1, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 39: 193, 42: $V91, 52: $VL, 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 140, 84: $Vc1, 85: $Vd1, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 39: 194, 42: $V91, 52: $VL, 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 140, 84: $Vc1, 85: $Vd1, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 39: 195, 42: $V91, 52: $VL, 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 140, 84: $Vc1, 85: $Vd1, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, o($V01, [2, 152]), o($Vt1, [2, 3]), { 8: 196, 15: $VD }, { 15: [2, 7] }, o($V4, [2, 28]), o($V21, [2, 33]), o($VJ, [2, 51], { 30: 197, 22: $VE }), o($V41, [2, 75], { 22: [1, 198] }), { 22: [1, 199] }, { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 39: 200, 42: $V91, 52: $VL, 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 140, 84: $Vc1, 85: $Vd1, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 42: $V91, 52: $VL, 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 82: [1, 201], 83: 202, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, o($Vs1, [2, 82]), o($Vs1, [2, 84]), o($Vs1, [2, 85]), o($Vs1, [2, 141]), o($Vs1, [2, 142]), o($Vs1, [2, 143]), o($Vs1, [2, 144]), o($Vs1, [2, 145]), o($Vs1, [2, 146]), o($Vs1, [2, 147]), o($Vs1, [2, 148]), o($Vs1, [2, 149]), o($Vs1, [2, 150]), o($Vs1, [2, 86]), o($Vs1, [2, 87]), o($Vs1, [2, 88]), o($Vs1, [2, 89]), o($Vs1, [2, 90]), o($Vs1, [2, 91]), o($Vs1, [2, 92]), o($Vs1, [2, 93]), o($Vs1, [2, 94]), o($Vs1, [2, 95]), o($Vs1, [2, 96]), { 9: 204, 20: $VG, 21: $VH, 22: $V51, 23: $VI, 24: $V61, 26: $V71, 38: $V81, 40: [1, 203], 42: $V91, 52: $VL, 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 202, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 18: 18, 19: 19, 20: $V6, 21: $V7, 22: $V8, 23: $V9, 32: 24, 33: 25, 34: 26, 35: 27, 36: 28, 37: 29, 38: $Va, 42: [1, 205], 43: 31, 44: $Vb, 46: $Vc, 48: $Vd, 50: 35, 51: 45, 52: $Ve, 54: 46, 66: $Vf, 67: $Vg, 87: $Vh, 88: $Vi, 89: $Vj, 90: $Vk, 91: $Vl, 92: $Vm, 96: $Vn, 106: $Vo, 107: $Vp, 110: $Vq, 112: $Vr, 113: $Vs, 117: 47, 119: $Vt, 120: $Vu, 121: $Vv, 122: $Vw, 123: $Vx, 124: $Vy, 125: $Vz, 126: $VA, 127: $VB, 128: $VC }, { 22: $VE, 30: 206 }, { 22: [1, 207], 26: $VK, 52: $VL, 66: $VM, 67: $VN, 92: $VO, 106: $VP, 107: $VQ, 110: $VR, 112: $VS, 113: $VT, 116: 100, 118: 179, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 22: [1, 208] }, { 22: [1, 209] }, { 22: [1, 210], 107: [1, 211] }, o($Vu1, [2, 124]), { 22: [1, 212] }, { 22: [1, 213], 26: $VK, 52: $VL, 66: $VM, 67: $VN, 92: $VO, 106: $VP, 107: $VQ, 110: $VR, 112: $VS, 113: $VT, 116: 100, 118: 179, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 22: [1, 214], 26: $VK, 52: $VL, 66: $VM, 67: $VN, 92: $VO, 106: $VP, 107: $VQ, 110: $VR, 112: $VS, 113: $VT, 116: 100, 118: 179, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 84: [1, 215] }, o($V11, [2, 104], { 22: [1, 216] }), { 84: [1, 217], 102: [1, 218] }, { 84: [1, 219] }, o($Vr1, [2, 154]), { 84: [1, 220], 102: [1, 221] }, o($V_, [2, 57], { 117: 129, 52: $Ve, 66: $Vf, 67: $Vg, 92: $Vm, 96: $Vn, 106: $Vo, 107: $Vp, 110: $Vq, 112: $Vr, 113: $Vs, 123: $Vx, 124: $Vy, 125: $Vz, 126: $VA, 127: $VB, 128: $VC }), { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 41: [1, 222], 42: $V91, 52: $VL, 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 202, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 42: $V91, 52: $VL, 56: [1, 223], 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 202, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 39: 224, 42: $V91, 52: $VL, 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 140, 84: $Vc1, 85: $Vd1, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 42: $V91, 52: $VL, 58: [1, 225], 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 202, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 42: $V91, 52: $VL, 60: [1, 226], 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 202, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 42: $V91, 52: $VL, 62: [1, 227], 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 202, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 42: $V91, 52: $VL, 64: [1, 228], 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 202, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 67: [1, 229] }, { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 42: $V91, 52: $VL, 66: $VM, 67: $VN, 70: [1, 230], 73: $Va1, 81: $Vb1, 83: 202, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 42: $V91, 52: $VL, 66: $VM, 67: $VN, 72: [1, 231], 73: $Va1, 81: $Vb1, 83: 202, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 39: 232, 42: $V91, 52: $VL, 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 140, 84: $Vc1, 85: $Vd1, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 41: [1, 233], 42: $V91, 52: $VL, 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 202, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 42: $V91, 52: $VL, 66: $VM, 67: $VN, 73: $Va1, 75: [1, 234], 77: [1, 235], 81: $Vb1, 83: 202, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 42: $V91, 52: $VL, 66: $VM, 67: $VN, 73: $Va1, 75: [1, 237], 77: [1, 236], 81: $Vb1, 83: 202, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 9: 238, 20: $VG, 21: $VH, 23: $VI }, o($VJ, [2, 52], { 52: $Vq1 }), o($V41, [2, 77]), o($V41, [2, 76]), { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 42: $V91, 52: $VL, 66: $VM, 67: $VN, 68: [1, 239], 73: $Va1, 81: $Vb1, 83: 202, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, o($V41, [2, 79]), o($Vs1, [2, 83]), { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 39: 240, 42: $V91, 52: $VL, 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 140, 84: $Vc1, 85: $Vd1, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, o($Vp1, $V5, { 17: 241 }), o($VF, [2, 43]), { 51: 242, 52: $Ve, 54: 46, 66: $Vf, 67: $Vg, 92: $Vm, 96: $Vn, 106: $Vo, 107: $Vp, 110: $Vq, 112: $Vr, 113: $Vs, 117: 47, 123: $Vx, 124: $Vy, 125: $Vz, 126: $VA, 127: $VB, 128: $VC }, { 22: $Vv1, 66: $Vw1, 67: $Vx1, 87: $Vy1, 97: 243, 103: $Vz1, 106: $VA1, 108: 244, 109: 245, 110: $VB1, 111: $VC1, 112: $VD1, 113: $VE1, 114: $VF1 }, { 22: $Vv1, 66: $Vw1, 67: $Vx1, 87: $Vy1, 97: 257, 103: $Vz1, 106: $VA1, 108: 244, 109: 245, 110: $VB1, 111: $VC1, 112: $VD1, 113: $VE1, 114: $VF1 }, { 22: $Vv1, 66: $Vw1, 67: $Vx1, 87: $Vy1, 97: 258, 103: $Vz1, 105: [1, 259], 106: $VA1, 108: 244, 109: 245, 110: $VB1, 111: $VC1, 112: $VD1, 113: $VE1, 114: $VF1 }, { 22: $Vv1, 66: $Vw1, 67: $Vx1, 87: $Vy1, 97: 260, 103: $Vz1, 105: [1, 261], 106: $VA1, 108: 244, 109: 245, 110: $VB1, 111: $VC1, 112: $VD1, 113: $VE1, 114: $VF1 }, { 106: [1, 262] }, { 22: $Vv1, 66: $Vw1, 67: $Vx1, 87: $Vy1, 97: 263, 103: $Vz1, 106: $VA1, 108: 244, 109: 245, 110: $VB1, 111: $VC1, 112: $VD1, 113: $VE1, 114: $VF1 }, { 22: $Vv1, 66: $Vw1, 67: $Vx1, 87: $Vy1, 97: 264, 103: $Vz1, 106: $VA1, 108: 244, 109: 245, 110: $VB1, 111: $VC1, 112: $VD1, 113: $VE1, 114: $VF1 }, { 26: $VK, 52: $VL, 66: $VM, 67: $VN, 92: $VO, 98: 265, 106: $VP, 107: $VQ, 110: $VR, 112: $VS, 113: $VT, 116: 100, 118: 98, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, o($V11, [2, 103]), { 84: [1, 266] }, o($V11, [2, 107], { 22: [1, 267] }), o($V11, [2, 108]), o($V11, [2, 111]), o($V11, [2, 113], { 22: [1, 268] }), o($V11, [2, 114]), o($V$, [2, 58]), o($V$, [2, 59]), { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 42: $V91, 52: $VL, 58: [1, 269], 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 202, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, o($V$, [2, 66]), o($V$, [2, 61]), o($V$, [2, 62]), o($V$, [2, 63]), { 66: [1, 270] }, o($V$, [2, 65]), o($V$, [2, 67]), { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 42: $V91, 52: $VL, 66: $VM, 67: $VN, 72: [1, 271], 73: $Va1, 81: $Vb1, 83: 202, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, o($V$, [2, 69]), o($V$, [2, 70]), o($V$, [2, 72]), o($V$, [2, 71]), o($V$, [2, 73]), o($Vt1, [2, 4]), o([22, 52, 66, 67, 92, 96, 106, 107, 110, 112, 113, 123, 124, 125, 126, 127, 128], [2, 81]), { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 41: [1, 272], 42: $V91, 52: $VL, 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 202, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 18: 18, 19: 19, 20: $V6, 21: $V7, 22: $V8, 23: $V9, 32: 24, 33: 25, 34: 26, 35: 27, 36: 28, 37: 29, 38: $Va, 42: [1, 273], 43: 31, 44: $Vb, 46: $Vc, 48: $Vd, 50: 35, 51: 45, 52: $Ve, 54: 46, 66: $Vf, 67: $Vg, 87: $Vh, 88: $Vi, 89: $Vj, 90: $Vk, 91: $Vl, 92: $Vm, 96: $Vn, 106: $Vo, 107: $Vp, 110: $Vq, 112: $Vr, 113: $Vs, 117: 47, 119: $Vt, 120: $Vu, 121: $Vv, 122: $Vw, 123: $Vx, 124: $Vy, 125: $Vz, 126: $VA, 127: $VB, 128: $VC }, o($V_, [2, 56]), o($V11, [2, 116], { 107: $VG1 }), o($VH1, [2, 126], { 109: 275, 22: $Vv1, 66: $Vw1, 67: $Vx1, 87: $Vy1, 103: $Vz1, 106: $VA1, 110: $VB1, 111: $VC1, 112: $VD1, 113: $VE1, 114: $VF1 }), o($VI1, [2, 128]), o($VI1, [2, 130]), o($VI1, [2, 131]), o($VI1, [2, 132]), o($VI1, [2, 133]), o($VI1, [2, 134]), o($VI1, [2, 135]), o($VI1, [2, 136]), o($VI1, [2, 137]), o($VI1, [2, 138]), o($VI1, [2, 139]), o($VI1, [2, 140]), o($V11, [2, 117], { 107: $VG1 }), o($V11, [2, 118], { 107: $VG1 }), { 22: [1, 276] }, o($V11, [2, 119], { 107: $VG1 }), { 22: [1, 277] }, o($Vu1, [2, 125]), o($V11, [2, 99], { 107: $VG1 }), o($V11, [2, 100], { 107: $VG1 }), o($V11, [2, 101], { 116: 100, 118: 179, 26: $VK, 52: $VL, 66: $VM, 67: $VN, 92: $VO, 106: $VP, 107: $VQ, 110: $VR, 112: $VS, 113: $VT, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }), o($V11, [2, 105]), { 102: [1, 278] }, { 102: [1, 279] }, { 58: [1, 280] }, { 68: [1, 281] }, { 72: [1, 282] }, { 9: 283, 20: $VG, 21: $VH, 23: $VI }, o($VF, [2, 42]), { 22: $Vv1, 66: $Vw1, 67: $Vx1, 87: $Vy1, 103: $Vz1, 106: $VA1, 108: 284, 109: 245, 110: $VB1, 111: $VC1, 112: $VD1, 113: $VE1, 114: $VF1 }, o($VI1, [2, 129]), { 26: $VK, 52: $VL, 66: $VM, 67: $VN, 92: $VO, 98: 285, 106: $VP, 107: $VQ, 110: $VR, 112: $VS, 113: $VT, 116: 100, 118: 98, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 26: $VK, 52: $VL, 66: $VM, 67: $VN, 92: $VO, 98: 286, 106: $VP, 107: $VQ, 110: $VR, 112: $VS, 113: $VT, 116: 100, 118: 98, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, o($V11, [2, 109]), o($V11, [2, 115]), o($V$, [2, 60]), { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 39: 287, 42: $V91, 52: $VL, 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 140, 84: $Vc1, 85: $Vd1, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, o($V$, [2, 68]), o($Vp1, $V5, { 17: 288 }), o($VH1, [2, 127], { 109: 275, 22: $Vv1, 66: $Vw1, 67: $Vx1, 87: $Vy1, 103: $Vz1, 106: $VA1, 110: $VB1, 111: $VC1, 112: $VD1, 113: $VE1, 114: $VF1 }), o($V11, [2, 122], { 116: 100, 118: 179, 22: [1, 289], 26: $VK, 52: $VL, 66: $VM, 67: $VN, 92: $VO, 106: $VP, 107: $VQ, 110: $VR, 112: $VS, 113: $VT, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }), o($V11, [2, 123], { 116: 100, 118: 179, 22: [1, 290], 26: $VK, 52: $VL, 66: $VM, 67: $VN, 92: $VO, 106: $VP, 107: $VQ, 110: $VR, 112: $VS, 113: $VT, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }), { 22: $V51, 24: $V61, 26: $V71, 38: $V81, 41: [1, 291], 42: $V91, 52: $VL, 66: $VM, 67: $VN, 73: $Va1, 81: $Vb1, 83: 202, 86: 152, 87: $Ve1, 88: $Vf1, 89: $Vg1, 90: $Vh1, 91: $Vi1, 92: $Vj1, 93: $Vk1, 95: 143, 96: $Vl1, 106: $VP, 107: $VQ, 110: $Vm1, 112: $VS, 113: $VT, 114: $Vn1, 115: $Vo1, 116: 149, 123: $VU, 124: $VV, 125: $VW, 126: $VX, 127: $VY, 128: $VZ }, { 18: 18, 19: 19, 20: $V6, 21: $V7, 22: $V8, 23: $V9, 32: 24, 33: 25, 34: 26, 35: 27, 36: 28, 37: 29, 38: $Va, 42: [1, 292], 43: 31, 44: $Vb, 46: $Vc, 48: $Vd, 50: 35, 51: 45, 52: $Ve, 54: 46, 66: $Vf, 67: $Vg, 87: $Vh, 88: $Vi, 89: $Vj, 90: $Vk, 91: $Vl, 92: $Vm, 96: $Vn, 106: $Vo, 107: $Vp, 110: $Vq, 112: $Vr, 113: $Vs, 117: 47, 119: $Vt, 120: $Vu, 121: $Vv, 122: $Vw, 123: $Vx, 124: $Vy, 125: $Vz, 126: $VA, 127: $VB, 128: $VC }, { 22: $Vv1, 66: $Vw1, 67: $Vx1, 87: $Vy1, 97: 293, 103: $Vz1, 106: $VA1, 108: 244, 109: 245, 110: $VB1, 111: $VC1, 112: $VD1, 113: $VE1, 114: $VF1 }, { 22: $Vv1, 66: $Vw1, 67: $Vx1, 87: $Vy1, 97: 294, 103: $Vz1, 106: $VA1, 108: 244, 109: 245, 110: $VB1, 111: $VC1, 112: $VD1, 113: $VE1, 114: $VF1 }, o($V$, [2, 64]), o($VF, [2, 41]), o($V11, [2, 120], { 107: $VG1 }), o($V11, [2, 121], { 107: $VG1 })],
|
336 | defaultActions: { 2: [2, 1], 9: [2, 5], 10: [2, 2], 132: [2, 7] },
|
337 | parseError: function parseError(str, hash) {
|
338 | if (hash.recoverable) {
|
339 | this.trace(str);
|
340 | } else {
|
341 | var error = new Error(str);
|
342 | error.hash = hash;
|
343 | throw error;
|
344 | }
|
345 | },
|
346 | parse: function parse(input) {
|
347 | var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
|
348 | var args = lstack.slice.call(arguments, 1);
|
349 | var lexer2 = Object.create(this.lexer);
|
350 | var sharedState = { yy: {} };
|
351 | for (var k in this.yy) {
|
352 | if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
|
353 | sharedState.yy[k] = this.yy[k];
|
354 | }
|
355 | }
|
356 | lexer2.setInput(input, sharedState.yy);
|
357 | sharedState.yy.lexer = lexer2;
|
358 | sharedState.yy.parser = this;
|
359 | if (typeof lexer2.yylloc == "undefined") {
|
360 | lexer2.yylloc = {};
|
361 | }
|
362 | var yyloc = lexer2.yylloc;
|
363 | lstack.push(yyloc);
|
364 | var ranges = lexer2.options && lexer2.options.ranges;
|
365 | if (typeof sharedState.yy.parseError === "function") {
|
366 | this.parseError = sharedState.yy.parseError;
|
367 | } else {
|
368 | this.parseError = Object.getPrototypeOf(this).parseError;
|
369 | }
|
370 | function lex2() {
|
371 | var token;
|
372 | token = tstack.pop() || lexer2.lex() || EOF;
|
373 | if (typeof token !== "number") {
|
374 | if (token instanceof Array) {
|
375 | tstack = token;
|
376 | token = tstack.pop();
|
377 | }
|
378 | token = self.symbols_[token] || token;
|
379 | }
|
380 | return token;
|
381 | }
|
382 | var symbol, state, action, r, yyval = {}, p, len, newState, expected;
|
383 | while (true) {
|
384 | state = stack[stack.length - 1];
|
385 | if (this.defaultActions[state]) {
|
386 | action = this.defaultActions[state];
|
387 | } else {
|
388 | if (symbol === null || typeof symbol == "undefined") {
|
389 | symbol = lex2();
|
390 | }
|
391 | action = table[state] && table[state][symbol];
|
392 | }
|
393 | if (typeof action === "undefined" || !action.length || !action[0]) {
|
394 | var errStr = "";
|
395 | expected = [];
|
396 | for (p in table[state]) {
|
397 | if (this.terminals_[p] && p > TERROR) {
|
398 | expected.push("'" + this.terminals_[p] + "'");
|
399 | }
|
400 | }
|
401 | if (lexer2.showPosition) {
|
402 | errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
|
403 | } else {
|
404 | errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
|
405 | }
|
406 | this.parseError(errStr, {
|
407 | text: lexer2.match,
|
408 | token: this.terminals_[symbol] || symbol,
|
409 | line: lexer2.yylineno,
|
410 | loc: yyloc,
|
411 | expected
|
412 | });
|
413 | }
|
414 | if (action[0] instanceof Array && action.length > 1) {
|
415 | throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
|
416 | }
|
417 | switch (action[0]) {
|
418 | case 1:
|
419 | stack.push(symbol);
|
420 | vstack.push(lexer2.yytext);
|
421 | lstack.push(lexer2.yylloc);
|
422 | stack.push(action[1]);
|
423 | symbol = null;
|
424 | {
|
425 | yyleng = lexer2.yyleng;
|
426 | yytext = lexer2.yytext;
|
427 | yylineno = lexer2.yylineno;
|
428 | yyloc = lexer2.yylloc;
|
429 | }
|
430 | break;
|
431 | case 2:
|
432 | len = this.productions_[action[1]][1];
|
433 | yyval.$ = vstack[vstack.length - len];
|
434 | yyval._$ = {
|
435 | first_line: lstack[lstack.length - (len || 1)].first_line,
|
436 | last_line: lstack[lstack.length - 1].last_line,
|
437 | first_column: lstack[lstack.length - (len || 1)].first_column,
|
438 | last_column: lstack[lstack.length - 1].last_column
|
439 | };
|
440 | if (ranges) {
|
441 | yyval._$.range = [
|
442 | lstack[lstack.length - (len || 1)].range[0],
|
443 | lstack[lstack.length - 1].range[1]
|
444 | ];
|
445 | }
|
446 | r = this.performAction.apply(yyval, [
|
447 | yytext,
|
448 | yyleng,
|
449 | yylineno,
|
450 | sharedState.yy,
|
451 | action[1],
|
452 | vstack,
|
453 | lstack
|
454 | ].concat(args));
|
455 | if (typeof r !== "undefined") {
|
456 | return r;
|
457 | }
|
458 | if (len) {
|
459 | stack = stack.slice(0, -1 * len * 2);
|
460 | vstack = vstack.slice(0, -1 * len);
|
461 | lstack = lstack.slice(0, -1 * len);
|
462 | }
|
463 | stack.push(this.productions_[action[1]][0]);
|
464 | vstack.push(yyval.$);
|
465 | lstack.push(yyval._$);
|
466 | newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
|
467 | stack.push(newState);
|
468 | break;
|
469 | case 3:
|
470 | return true;
|
471 | }
|
472 | }
|
473 | return true;
|
474 | }
|
475 | };
|
476 | var lexer = function() {
|
477 | var lexer2 = {
|
478 | EOF: 1,
|
479 | parseError: function parseError(str, hash) {
|
480 | if (this.yy.parser) {
|
481 | this.yy.parser.parseError(str, hash);
|
482 | } else {
|
483 | throw new Error(str);
|
484 | }
|
485 | },
|
486 | // resets the lexer, sets new input
|
487 | setInput: function(input, yy) {
|
488 | this.yy = yy || this.yy || {};
|
489 | this._input = input;
|
490 | this._more = this._backtrack = this.done = false;
|
491 | this.yylineno = this.yyleng = 0;
|
492 | this.yytext = this.matched = this.match = "";
|
493 | this.conditionStack = ["INITIAL"];
|
494 | this.yylloc = {
|
495 | first_line: 1,
|
496 | first_column: 0,
|
497 | last_line: 1,
|
498 | last_column: 0
|
499 | };
|
500 | if (this.options.ranges) {
|
501 | this.yylloc.range = [0, 0];
|
502 | }
|
503 | this.offset = 0;
|
504 | return this;
|
505 | },
|
506 | // consumes and returns one char from the input
|
507 | input: function() {
|
508 | var ch = this._input[0];
|
509 | this.yytext += ch;
|
510 | this.yyleng++;
|
511 | this.offset++;
|
512 | this.match += ch;
|
513 | this.matched += ch;
|
514 | var lines = ch.match(/(?:\r\n?|\n).*/g);
|
515 | if (lines) {
|
516 | this.yylineno++;
|
517 | this.yylloc.last_line++;
|
518 | } else {
|
519 | this.yylloc.last_column++;
|
520 | }
|
521 | if (this.options.ranges) {
|
522 | this.yylloc.range[1]++;
|
523 | }
|
524 | this._input = this._input.slice(1);
|
525 | return ch;
|
526 | },
|
527 | // unshifts one char (or a string) into the input
|
528 | unput: function(ch) {
|
529 | var len = ch.length;
|
530 | var lines = ch.split(/(?:\r\n?|\n)/g);
|
531 | this._input = ch + this._input;
|
532 | this.yytext = this.yytext.substr(0, this.yytext.length - len);
|
533 | this.offset -= len;
|
534 | var oldLines = this.match.split(/(?:\r\n?|\n)/g);
|
535 | this.match = this.match.substr(0, this.match.length - 1);
|
536 | this.matched = this.matched.substr(0, this.matched.length - 1);
|
537 | if (lines.length - 1) {
|
538 | this.yylineno -= lines.length - 1;
|
539 | }
|
540 | var r = this.yylloc.range;
|
541 | this.yylloc = {
|
542 | first_line: this.yylloc.first_line,
|
543 | last_line: this.yylineno + 1,
|
544 | first_column: this.yylloc.first_column,
|
545 | 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
|
546 | };
|
547 | if (this.options.ranges) {
|
548 | this.yylloc.range = [r[0], r[0] + this.yyleng - len];
|
549 | }
|
550 | this.yyleng = this.yytext.length;
|
551 | return this;
|
552 | },
|
553 | // When called from action, caches matched text and appends it on next action
|
554 | more: function() {
|
555 | this._more = true;
|
556 | return this;
|
557 | },
|
558 | // 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.
|
559 | reject: function() {
|
560 | if (this.options.backtrack_lexer) {
|
561 | this._backtrack = true;
|
562 | } else {
|
563 | 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(), {
|
564 | text: "",
|
565 | token: null,
|
566 | line: this.yylineno
|
567 | });
|
568 | }
|
569 | return this;
|
570 | },
|
571 | // retain first n characters of the match
|
572 | less: function(n) {
|
573 | this.unput(this.match.slice(n));
|
574 | },
|
575 | // displays already matched input, i.e. for error messages
|
576 | pastInput: function() {
|
577 | var past = this.matched.substr(0, this.matched.length - this.match.length);
|
578 | return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
|
579 | },
|
580 | // displays upcoming input, i.e. for error messages
|
581 | upcomingInput: function() {
|
582 | var next = this.match;
|
583 | if (next.length < 20) {
|
584 | next += this._input.substr(0, 20 - next.length);
|
585 | }
|
586 | return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
|
587 | },
|
588 | // displays the character position where the lexing error occurred, i.e. for error messages
|
589 | showPosition: function() {
|
590 | var pre = this.pastInput();
|
591 | var c = new Array(pre.length + 1).join("-");
|
592 | return pre + this.upcomingInput() + "\n" + c + "^";
|
593 | },
|
594 | // test the lexed token: return FALSE when not a match, otherwise return token
|
595 | test_match: function(match, indexed_rule) {
|
596 | var token, lines, backup;
|
597 | if (this.options.backtrack_lexer) {
|
598 | backup = {
|
599 | yylineno: this.yylineno,
|
600 | yylloc: {
|
601 | first_line: this.yylloc.first_line,
|
602 | last_line: this.last_line,
|
603 | first_column: this.yylloc.first_column,
|
604 | last_column: this.yylloc.last_column
|
605 | },
|
606 | yytext: this.yytext,
|
607 | match: this.match,
|
608 | matches: this.matches,
|
609 | matched: this.matched,
|
610 | yyleng: this.yyleng,
|
611 | offset: this.offset,
|
612 | _more: this._more,
|
613 | _input: this._input,
|
614 | yy: this.yy,
|
615 | conditionStack: this.conditionStack.slice(0),
|
616 | done: this.done
|
617 | };
|
618 | if (this.options.ranges) {
|
619 | backup.yylloc.range = this.yylloc.range.slice(0);
|
620 | }
|
621 | }
|
622 | lines = match[0].match(/(?:\r\n?|\n).*/g);
|
623 | if (lines) {
|
624 | this.yylineno += lines.length;
|
625 | }
|
626 | this.yylloc = {
|
627 | first_line: this.yylloc.last_line,
|
628 | last_line: this.yylineno + 1,
|
629 | first_column: this.yylloc.last_column,
|
630 | last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
|
631 | };
|
632 | this.yytext += match[0];
|
633 | this.match += match[0];
|
634 | this.matches = match;
|
635 | this.yyleng = this.yytext.length;
|
636 | if (this.options.ranges) {
|
637 | this.yylloc.range = [this.offset, this.offset += this.yyleng];
|
638 | }
|
639 | this._more = false;
|
640 | this._backtrack = false;
|
641 | this._input = this._input.slice(match[0].length);
|
642 | this.matched += match[0];
|
643 | token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
|
644 | if (this.done && this._input) {
|
645 | this.done = false;
|
646 | }
|
647 | if (token) {
|
648 | return token;
|
649 | } else if (this._backtrack) {
|
650 | for (var k in backup) {
|
651 | this[k] = backup[k];
|
652 | }
|
653 | return false;
|
654 | }
|
655 | return false;
|
656 | },
|
657 | // return next match in input
|
658 | next: function() {
|
659 | if (this.done) {
|
660 | return this.EOF;
|
661 | }
|
662 | if (!this._input) {
|
663 | this.done = true;
|
664 | }
|
665 | var token, match, tempMatch, index;
|
666 | if (!this._more) {
|
667 | this.yytext = "";
|
668 | this.match = "";
|
669 | }
|
670 | var rules = this._currentRules();
|
671 | for (var i = 0; i < rules.length; i++) {
|
672 | tempMatch = this._input.match(this.rules[rules[i]]);
|
673 | if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
|
674 | match = tempMatch;
|
675 | index = i;
|
676 | if (this.options.backtrack_lexer) {
|
677 | token = this.test_match(tempMatch, rules[i]);
|
678 | if (token !== false) {
|
679 | return token;
|
680 | } else if (this._backtrack) {
|
681 | match = false;
|
682 | continue;
|
683 | } else {
|
684 | return false;
|
685 | }
|
686 | } else if (!this.options.flex) {
|
687 | break;
|
688 | }
|
689 | }
|
690 | }
|
691 | if (match) {
|
692 | token = this.test_match(match, rules[index]);
|
693 | if (token !== false) {
|
694 | return token;
|
695 | }
|
696 | return false;
|
697 | }
|
698 | if (this._input === "") {
|
699 | return this.EOF;
|
700 | } else {
|
701 | return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
702 | text: "",
|
703 | token: null,
|
704 | line: this.yylineno
|
705 | });
|
706 | }
|
707 | },
|
708 | // return next match that has a token
|
709 | lex: function lex2() {
|
710 | var r = this.next();
|
711 | if (r) {
|
712 | return r;
|
713 | } else {
|
714 | return this.lex();
|
715 | }
|
716 | },
|
717 | // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
718 | begin: function begin(condition) {
|
719 | this.conditionStack.push(condition);
|
720 | },
|
721 | // pop the previously active lexer condition state off the condition stack
|
722 | popState: function popState() {
|
723 | var n = this.conditionStack.length - 1;
|
724 | if (n > 0) {
|
725 | return this.conditionStack.pop();
|
726 | } else {
|
727 | return this.conditionStack[0];
|
728 | }
|
729 | },
|
730 | // produce the lexer rule set which is active for the currently active lexer condition state
|
731 | _currentRules: function _currentRules() {
|
732 | if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
|
733 | return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
|
734 | } else {
|
735 | return this.conditions["INITIAL"].rules;
|
736 | }
|
737 | },
|
738 | // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
739 | topState: function topState(n) {
|
740 | n = this.conditionStack.length - 1 - Math.abs(n || 0);
|
741 | if (n >= 0) {
|
742 | return this.conditionStack[n];
|
743 | } else {
|
744 | return "INITIAL";
|
745 | }
|
746 | },
|
747 | // alias for begin(condition)
|
748 | pushState: function pushState(condition) {
|
749 | this.begin(condition);
|
750 | },
|
751 | // return the number of states currently on the stack
|
752 | stateStackSize: function stateStackSize() {
|
753 | return this.conditionStack.length;
|
754 | },
|
755 | options: {},
|
756 | performAction: function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
|
757 | switch ($avoiding_name_collisions) {
|
758 | case 0:
|
759 | this.begin("open_directive");
|
760 | return 12;
|
761 | case 1:
|
762 | this.begin("type_directive");
|
763 | return 13;
|
764 | case 2:
|
765 | this.popState();
|
766 | this.begin("arg_directive");
|
767 | return 10;
|
768 | case 3:
|
769 | this.popState();
|
770 | this.popState();
|
771 | return 15;
|
772 | case 4:
|
773 | return 14;
|
774 | case 5:
|
775 | this.begin("acc_title");
|
776 | return 44;
|
777 | case 6:
|
778 | this.popState();
|
779 | return "acc_title_value";
|
780 | case 7:
|
781 | this.begin("acc_descr");
|
782 | return 46;
|
783 | case 8:
|
784 | this.popState();
|
785 | return "acc_descr_value";
|
786 | case 9:
|
787 | this.begin("acc_descr_multiline");
|
788 | break;
|
789 | case 10:
|
790 | this.popState();
|
791 | break;
|
792 | case 11:
|
793 | return "acc_descr_multiline_value";
|
794 | case 12:
|
795 | this.begin("md_string");
|
796 | break;
|
797 | case 13:
|
798 | return "MD_STR";
|
799 | case 14:
|
800 | this.popState();
|
801 | break;
|
802 | case 15:
|
803 | this.begin("string");
|
804 | break;
|
805 | case 16:
|
806 | this.popState();
|
807 | break;
|
808 | case 17:
|
809 | return "STR";
|
810 | case 18:
|
811 | return 87;
|
812 | case 19:
|
813 | return 96;
|
814 | case 20:
|
815 | return 88;
|
816 | case 21:
|
817 | return 105;
|
818 | case 22:
|
819 | return 89;
|
820 | case 23:
|
821 | return 90;
|
822 | case 24:
|
823 | this.begin("href");
|
824 | break;
|
825 | case 25:
|
826 | this.popState();
|
827 | break;
|
828 | case 26:
|
829 | return 101;
|
830 | case 27:
|
831 | this.begin("callbackname");
|
832 | break;
|
833 | case 28:
|
834 | this.popState();
|
835 | break;
|
836 | case 29:
|
837 | this.popState();
|
838 | this.begin("callbackargs");
|
839 | break;
|
840 | case 30:
|
841 | return 99;
|
842 | case 31:
|
843 | this.popState();
|
844 | break;
|
845 | case 32:
|
846 | return 100;
|
847 | case 33:
|
848 | this.begin("click");
|
849 | break;
|
850 | case 34:
|
851 | this.popState();
|
852 | break;
|
853 | case 35:
|
854 | return 91;
|
855 | case 36:
|
856 | if (yy.lex.firstGraph()) {
|
857 | this.begin("dir");
|
858 | }
|
859 | return 24;
|
860 | case 37:
|
861 | if (yy.lex.firstGraph()) {
|
862 | this.begin("dir");
|
863 | }
|
864 | return 24;
|
865 | case 38:
|
866 | if (yy.lex.firstGraph()) {
|
867 | this.begin("dir");
|
868 | }
|
869 | return 24;
|
870 | case 39:
|
871 | return 38;
|
872 | case 40:
|
873 | return 42;
|
874 | case 41:
|
875 | return 102;
|
876 | case 42:
|
877 | return 102;
|
878 | case 43:
|
879 | return 102;
|
880 | case 44:
|
881 | return 102;
|
882 | case 45:
|
883 | this.popState();
|
884 | return 25;
|
885 | case 46:
|
886 | this.popState();
|
887 | return 26;
|
888 | case 47:
|
889 | this.popState();
|
890 | return 26;
|
891 | case 48:
|
892 | this.popState();
|
893 | return 26;
|
894 | case 49:
|
895 | this.popState();
|
896 | return 26;
|
897 | case 50:
|
898 | this.popState();
|
899 | return 26;
|
900 | case 51:
|
901 | this.popState();
|
902 | return 26;
|
903 | case 52:
|
904 | this.popState();
|
905 | return 26;
|
906 | case 53:
|
907 | this.popState();
|
908 | return 26;
|
909 | case 54:
|
910 | this.popState();
|
911 | return 26;
|
912 | case 55:
|
913 | this.popState();
|
914 | return 26;
|
915 | case 56:
|
916 | return 119;
|
917 | case 57:
|
918 | return 120;
|
919 | case 58:
|
920 | return 121;
|
921 | case 59:
|
922 | return 122;
|
923 | case 60:
|
924 | return 106;
|
925 | case 61:
|
926 | return 112;
|
927 | case 62:
|
928 | return 53;
|
929 | case 63:
|
930 | return 67;
|
931 | case 64:
|
932 | return 52;
|
933 | case 65:
|
934 | return 20;
|
935 | case 66:
|
936 | return 107;
|
937 | case 67:
|
938 | return 127;
|
939 | case 68:
|
940 | return 82;
|
941 | case 69:
|
942 | return 82;
|
943 | case 70:
|
944 | return 82;
|
945 | case 71:
|
946 | return 82;
|
947 | case 72:
|
948 | return 81;
|
949 | case 73:
|
950 | return 81;
|
951 | case 74:
|
952 | return 81;
|
953 | case 75:
|
954 | return 59;
|
955 | case 76:
|
956 | return 60;
|
957 | case 77:
|
958 | return 61;
|
959 | case 78:
|
960 | return 62;
|
961 | case 79:
|
962 | return 63;
|
963 | case 80:
|
964 | return 64;
|
965 | case 81:
|
966 | return 65;
|
967 | case 82:
|
968 | return 69;
|
969 | case 83:
|
970 | return 70;
|
971 | case 84:
|
972 | return 55;
|
973 | case 85:
|
974 | return 56;
|
975 | case 86:
|
976 | return 110;
|
977 | case 87:
|
978 | return 113;
|
979 | case 88:
|
980 | return 128;
|
981 | case 89:
|
982 | return 125;
|
983 | case 90:
|
984 | return 114;
|
985 | case 91:
|
986 | return 126;
|
987 | case 92:
|
988 | return 126;
|
989 | case 93:
|
990 | return 115;
|
991 | case 94:
|
992 | return 73;
|
993 | case 95:
|
994 | return 93;
|
995 | case 96:
|
996 | return "SEP";
|
997 | case 97:
|
998 | return 92;
|
999 | case 98:
|
1000 | return 66;
|
1001 | case 99:
|
1002 | return 75;
|
1003 | case 100:
|
1004 | return 74;
|
1005 | case 101:
|
1006 | return 77;
|
1007 | case 102:
|
1008 | return 76;
|
1009 | case 103:
|
1010 | return 123;
|
1011 | case 104:
|
1012 | return 124;
|
1013 | case 105:
|
1014 | return 68;
|
1015 | case 106:
|
1016 | return 57;
|
1017 | case 107:
|
1018 | return 58;
|
1019 | case 108:
|
1020 | return 40;
|
1021 | case 109:
|
1022 | return 41;
|
1023 | case 110:
|
1024 | return 71;
|
1025 | case 111:
|
1026 | return 72;
|
1027 | case 112:
|
1028 | return 134;
|
1029 | case 113:
|
1030 | return 21;
|
1031 | case 114:
|
1032 | return 22;
|
1033 | case 115:
|
1034 | return 23;
|
1035 | }
|
1036 | },
|
1037 | rules: [/^(?:%%\{)/, /^(?:((?:(?!\}%%)[^:.])*))/, /^(?::)/, /^(?:\}%%)/, /^(?:((?:(?!\}%%).|\n)*))/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:["][`])/, /^(?:[^`"]+)/, /^(?:[`]["])/, /^(?:["])/, /^(?:["])/, /^(?:[^"]*)/, /^(?:style\b)/, /^(?:default\b)/, /^(?:linkStyle\b)/, /^(?:interpolate\b)/, /^(?:classDef\b)/, /^(?:class\b)/, /^(?:href[\s]+["])/, /^(?:["])/, /^(?:[^"]*)/, /^(?:call[\s]+)/, /^(?:\([\s]*\))/, /^(?:\()/, /^(?:[^(]*)/, /^(?:\))/, /^(?:[^)]*)/, /^(?:click[\s]+)/, /^(?:[\s\n])/, /^(?:[^\s\n]*)/, /^(?:flowchart-elk\b)/, /^(?:graph\b)/, /^(?:flowchart\b)/, /^(?:subgraph\b)/, /^(?:end\b\s*)/, /^(?:_self\b)/, /^(?:_blank\b)/, /^(?:_parent\b)/, /^(?:_top\b)/, /^(?:(\r?\n)*\s*\n)/, /^(?:\s*LR\b)/, /^(?:\s*RL\b)/, /^(?:\s*TB\b)/, /^(?:\s*BT\b)/, /^(?:\s*TD\b)/, /^(?:\s*BR\b)/, /^(?:\s*<)/, /^(?:\s*>)/, /^(?:\s*\^)/, /^(?:\s*v\b)/, /^(?:.*direction\s+TB[^\n]*)/, /^(?:.*direction\s+BT[^\n]*)/, /^(?:.*direction\s+RL[^\n]*)/, /^(?:.*direction\s+LR[^\n]*)/, /^(?:[0-9]+)/, /^(?:#)/, /^(?::::)/, /^(?::)/, /^(?:&)/, /^(?:;)/, /^(?:,)/, /^(?:\*)/, /^(?:\s*[xo<]?--+[-xo>]\s*)/, /^(?:\s*[xo<]?==+[=xo>]\s*)/, /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, /^(?:\s*~~[\~]+\s*)/, /^(?:\s*[xo<]?--\s*)/, /^(?:\s*[xo<]?==\s*)/, /^(?:\s*[xo<]?-\.\s*)/, /^(?:\(-)/, /^(?:-\))/, /^(?:\(\[)/, /^(?:\]\))/, /^(?:\[\[)/, /^(?:\]\])/, /^(?:\[\|)/, /^(?:\[\()/, /^(?:\)\])/, /^(?:\(\(\()/, /^(?:\)\)\))/, /^(?:-)/, /^(?:\.)/, /^(?:[\_])/, /^(?:\+)/, /^(?:%)/, /^(?:=)/, /^(?:=)/, /^(?:<)/, /^(?:>)/, /^(?:\^)/, /^(?:\\\|)/, /^(?:v\b)/, /^(?:[A-Za-z]+)/, /^(?:\\\])/, /^(?:\[\/)/, /^(?:\/\])/, /^(?:\[\\)/, /^(?:[!"#$%&'*+,-.`?\\_/])/, /^(?:[\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])/, /^(?:\|)/, /^(?:\()/, /^(?:\))/, /^(?:\[)/, /^(?:\])/, /^(?:\{)/, /^(?:\})/, /^(?:")/, /^(?:(\r?\n)+)/, /^(?:\s)/, /^(?:$)/],
|
1038 | conditions: { "close_directive": { "rules": [], "inclusive": false }, "arg_directive": { "rules": [3, 4], "inclusive": false }, "type_directive": { "rules": [2, 3], "inclusive": false }, "open_directive": { "rules": [1], "inclusive": false }, "callbackargs": { "rules": [31, 32], "inclusive": false }, "callbackname": { "rules": [28, 29, 30], "inclusive": false }, "href": { "rules": [25, 26], "inclusive": false }, "click": { "rules": [34, 35], "inclusive": false }, "vertex": { "rules": [], "inclusive": false }, "dir": { "rules": [45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55], "inclusive": false }, "acc_descr_multiline": { "rules": [10, 11], "inclusive": false }, "acc_descr": { "rules": [8], "inclusive": false }, "acc_title": { "rules": [6], "inclusive": false }, "md_string": { "rules": [13, 14], "inclusive": false }, "string": { "rules": [16, 17], "inclusive": false }, "INITIAL": { "rules": [0, 5, 7, 9, 12, 15, 18, 19, 20, 21, 22, 23, 24, 27, 33, 36, 37, 38, 39, 40, 41, 42, 43, 44, 56, 57, 58, 59, 60, 61, 62, 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, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115], "inclusive": true } }
|
1039 | };
|
1040 | return lexer2;
|
1041 | }();
|
1042 | parser2.lexer = lexer;
|
1043 | function Parser() {
|
1044 | this.yy = {};
|
1045 | }
|
1046 | Parser.prototype = parser2;
|
1047 | parser2.Parser = Parser;
|
1048 | return new Parser();
|
1049 | }();
|
1050 | parser.parser = parser;
|
1051 | const parser$1 = parser;
|
1052 | const MERMAID_DOM_ID_PREFIX = "flowchart-";
|
1053 | let vertexCounter = 0;
|
1054 | let config = getConfig();
|
1055 | let vertices = {};
|
1056 | let edges = [];
|
1057 | let classes = {};
|
1058 | let subGraphs = [];
|
1059 | let subGraphLookup = {};
|
1060 | let tooltips = {};
|
1061 | let subCount = 0;
|
1062 | let firstGraphFlag = true;
|
1063 | let direction;
|
1064 | let version;
|
1065 | let funs = [];
|
1066 | const sanitizeText = (txt) => common.sanitizeText(txt, config);
|
1067 | const parseDirective = function(statement, context, type) {
|
1068 | mermaidAPI.parseDirective(this, statement, context, type);
|
1069 | };
|
1070 | const lookUpDomId = function(id) {
|
1071 | const veritceKeys = Object.keys(vertices);
|
1072 | for (const veritceKey of veritceKeys) {
|
1073 | if (vertices[veritceKey].id === id) {
|
1074 | return vertices[veritceKey].domId;
|
1075 | }
|
1076 | }
|
1077 | return id;
|
1078 | };
|
1079 | const addVertex = function(_id, textObj, type, style, classes2, dir, props = {}) {
|
1080 | let txt;
|
1081 | let id = _id;
|
1082 | if (id === void 0) {
|
1083 | return;
|
1084 | }
|
1085 | if (id.trim().length === 0) {
|
1086 | return;
|
1087 | }
|
1088 | if (vertices[id] === void 0) {
|
1089 | vertices[id] = {
|
1090 | id,
|
1091 | labelType: "text",
|
1092 | domId: MERMAID_DOM_ID_PREFIX + id + "-" + vertexCounter,
|
1093 | styles: [],
|
1094 | classes: []
|
1095 | };
|
1096 | }
|
1097 | vertexCounter++;
|
1098 | if (textObj !== void 0) {
|
1099 | config = getConfig();
|
1100 | txt = sanitizeText(textObj.text.trim());
|
1101 | vertices[id].labelType = textObj.type;
|
1102 | if (txt[0] === '"' && txt[txt.length - 1] === '"') {
|
1103 | txt = txt.substring(1, txt.length - 1);
|
1104 | }
|
1105 | vertices[id].text = txt;
|
1106 | } else {
|
1107 | if (vertices[id].text === void 0) {
|
1108 | vertices[id].text = _id;
|
1109 | }
|
1110 | }
|
1111 | if (type !== void 0) {
|
1112 | vertices[id].type = type;
|
1113 | }
|
1114 | if (style !== void 0 && style !== null) {
|
1115 | style.forEach(function(s) {
|
1116 | vertices[id].styles.push(s);
|
1117 | });
|
1118 | }
|
1119 | if (classes2 !== void 0 && classes2 !== null) {
|
1120 | classes2.forEach(function(s) {
|
1121 | vertices[id].classes.push(s);
|
1122 | });
|
1123 | }
|
1124 | if (dir !== void 0) {
|
1125 | vertices[id].dir = dir;
|
1126 | }
|
1127 | if (vertices[id].props === void 0) {
|
1128 | vertices[id].props = props;
|
1129 | } else if (props !== void 0) {
|
1130 | Object.assign(vertices[id].props, props);
|
1131 | }
|
1132 | };
|
1133 | const addSingleLink = function(_start, _end, type) {
|
1134 | let start = _start;
|
1135 | let end = _end;
|
1136 | const edge = { start, end, type: void 0, text: "", labelType: "text" };
|
1137 | log.info("abc78 Got edge...", edge);
|
1138 | const linkTextObj = type.text;
|
1139 | if (linkTextObj !== void 0) {
|
1140 | edge.text = sanitizeText(linkTextObj.text.trim());
|
1141 | if (edge.text[0] === '"' && edge.text[edge.text.length - 1] === '"') {
|
1142 | edge.text = edge.text.substring(1, edge.text.length - 1);
|
1143 | }
|
1144 | edge.labelType = linkTextObj.type;
|
1145 | }
|
1146 | if (type !== void 0) {
|
1147 | edge.type = type.type;
|
1148 | edge.stroke = type.stroke;
|
1149 | edge.length = type.length;
|
1150 | }
|
1151 | edges.push(edge);
|
1152 | };
|
1153 | const addLink = function(_start, _end, type) {
|
1154 | log.info("addLink (abc78)", _start, _end, type);
|
1155 | let i, j;
|
1156 | for (i = 0; i < _start.length; i++) {
|
1157 | for (j = 0; j < _end.length; j++) {
|
1158 | addSingleLink(_start[i], _end[j], type);
|
1159 | }
|
1160 | }
|
1161 | };
|
1162 | const updateLinkInterpolate = function(positions, interp) {
|
1163 | positions.forEach(function(pos) {
|
1164 | if (pos === "default") {
|
1165 | edges.defaultInterpolate = interp;
|
1166 | } else {
|
1167 | edges[pos].interpolate = interp;
|
1168 | }
|
1169 | });
|
1170 | };
|
1171 | const updateLink = function(positions, style) {
|
1172 | positions.forEach(function(pos) {
|
1173 | if (pos === "default") {
|
1174 | edges.defaultStyle = style;
|
1175 | } else {
|
1176 | if (utils.isSubstringInArray("fill", style) === -1) {
|
1177 | style.push("fill:none");
|
1178 | }
|
1179 | edges[pos].style = style;
|
1180 | }
|
1181 | });
|
1182 | };
|
1183 | const addClass = function(id, style) {
|
1184 | if (classes[id] === void 0) {
|
1185 | classes[id] = { id, styles: [], textStyles: [] };
|
1186 | }
|
1187 | if (style !== void 0 && style !== null) {
|
1188 | style.forEach(function(s) {
|
1189 | if (s.match("color")) {
|
1190 | const newStyle1 = s.replace("fill", "bgFill");
|
1191 | const newStyle2 = newStyle1.replace("color", "fill");
|
1192 | classes[id].textStyles.push(newStyle2);
|
1193 | }
|
1194 | classes[id].styles.push(s);
|
1195 | });
|
1196 | }
|
1197 | };
|
1198 | const setDirection = function(dir) {
|
1199 | direction = dir;
|
1200 | if (direction.match(/.*</)) {
|
1201 | direction = "RL";
|
1202 | }
|
1203 | if (direction.match(/.*\^/)) {
|
1204 | direction = "BT";
|
1205 | }
|
1206 | if (direction.match(/.*>/)) {
|
1207 | direction = "LR";
|
1208 | }
|
1209 | if (direction.match(/.*v/)) {
|
1210 | direction = "TB";
|
1211 | }
|
1212 | if (direction === "TD") {
|
1213 | direction = "TB";
|
1214 | }
|
1215 | };
|
1216 | const setClass = function(ids, className) {
|
1217 | ids.split(",").forEach(function(_id) {
|
1218 | let id = _id;
|
1219 | if (vertices[id] !== void 0) {
|
1220 | vertices[id].classes.push(className);
|
1221 | }
|
1222 | if (subGraphLookup[id] !== void 0) {
|
1223 | subGraphLookup[id].classes.push(className);
|
1224 | }
|
1225 | });
|
1226 | };
|
1227 | const setTooltip = function(ids, tooltip) {
|
1228 | ids.split(",").forEach(function(id) {
|
1229 | if (tooltip !== void 0) {
|
1230 | tooltips[version === "gen-1" ? lookUpDomId(id) : id] = sanitizeText(tooltip);
|
1231 | }
|
1232 | });
|
1233 | };
|
1234 | const setClickFun = function(id, functionName, functionArgs) {
|
1235 | let domId = lookUpDomId(id);
|
1236 | if (getConfig().securityLevel !== "loose") {
|
1237 | return;
|
1238 | }
|
1239 | if (functionName === void 0) {
|
1240 | return;
|
1241 | }
|
1242 | let argList = [];
|
1243 | if (typeof functionArgs === "string") {
|
1244 | argList = functionArgs.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
|
1245 | for (let i = 0; i < argList.length; i++) {
|
1246 | let item = argList[i].trim();
|
1247 | if (item.charAt(0) === '"' && item.charAt(item.length - 1) === '"') {
|
1248 | item = item.substr(1, item.length - 2);
|
1249 | }
|
1250 | argList[i] = item;
|
1251 | }
|
1252 | }
|
1253 | if (argList.length === 0) {
|
1254 | argList.push(id);
|
1255 | }
|
1256 | if (vertices[id] !== void 0) {
|
1257 | vertices[id].haveCallback = true;
|
1258 | funs.push(function() {
|
1259 | const elem = document.querySelector(`[id="${domId}"]`);
|
1260 | if (elem !== null) {
|
1261 | elem.addEventListener(
|
1262 | "click",
|
1263 | function() {
|
1264 | utils.runFunc(functionName, ...argList);
|
1265 | },
|
1266 | false
|
1267 | );
|
1268 | }
|
1269 | });
|
1270 | }
|
1271 | };
|
1272 | const setLink = function(ids, linkStr, target) {
|
1273 | ids.split(",").forEach(function(id) {
|
1274 | if (vertices[id] !== void 0) {
|
1275 | vertices[id].link = utils.formatUrl(linkStr, config);
|
1276 | vertices[id].linkTarget = target;
|
1277 | }
|
1278 | });
|
1279 | setClass(ids, "clickable");
|
1280 | };
|
1281 | const getTooltip = function(id) {
|
1282 | return tooltips[id];
|
1283 | };
|
1284 | const setClickEvent = function(ids, functionName, functionArgs) {
|
1285 | ids.split(",").forEach(function(id) {
|
1286 | setClickFun(id, functionName, functionArgs);
|
1287 | });
|
1288 | setClass(ids, "clickable");
|
1289 | };
|
1290 | const bindFunctions = function(element) {
|
1291 | funs.forEach(function(fun) {
|
1292 | fun(element);
|
1293 | });
|
1294 | };
|
1295 | const getDirection = function() {
|
1296 | return direction.trim();
|
1297 | };
|
1298 | const getVertices = function() {
|
1299 | return vertices;
|
1300 | };
|
1301 | const getEdges = function() {
|
1302 | return edges;
|
1303 | };
|
1304 | const getClasses = function() {
|
1305 | return classes;
|
1306 | };
|
1307 | const setupToolTips = function(element) {
|
1308 | let tooltipElem = select(".mermaidTooltip");
|
1309 | if ((tooltipElem._groups || tooltipElem)[0][0] === null) {
|
1310 | tooltipElem = select("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0);
|
1311 | }
|
1312 | const svg = select(element).select("svg");
|
1313 | const nodes = svg.selectAll("g.node");
|
1314 | nodes.on("mouseover", function() {
|
1315 | const el = select(this);
|
1316 | const title = el.attr("title");
|
1317 | if (title === null) {
|
1318 | return;
|
1319 | }
|
1320 | const rect = this.getBoundingClientRect();
|
1321 | tooltipElem.transition().duration(200).style("opacity", ".9");
|
1322 | 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");
|
1323 | tooltipElem.html(tooltipElem.html().replace(/<br\/>/g, "<br/>"));
|
1324 | el.classed("hover", true);
|
1325 | }).on("mouseout", function() {
|
1326 | tooltipElem.transition().duration(500).style("opacity", 0);
|
1327 | const el = select(this);
|
1328 | el.classed("hover", false);
|
1329 | });
|
1330 | };
|
1331 | funs.push(setupToolTips);
|
1332 | const clear = function(ver = "gen-1") {
|
1333 | vertices = {};
|
1334 | classes = {};
|
1335 | edges = [];
|
1336 | funs = [setupToolTips];
|
1337 | subGraphs = [];
|
1338 | subGraphLookup = {};
|
1339 | subCount = 0;
|
1340 | tooltips = [];
|
1341 | firstGraphFlag = true;
|
1342 | version = ver;
|
1343 | clear$1();
|
1344 | };
|
1345 | const setGen = (ver) => {
|
1346 | version = ver || "gen-2";
|
1347 | };
|
1348 | const defaultStyle = function() {
|
1349 | return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;";
|
1350 | };
|
1351 | const addSubGraph = function(_id, list, _title) {
|
1352 | let id = _id.text.trim();
|
1353 | let title = _title.text;
|
1354 | if (_id === _title && _title.text.match(/\s/)) {
|
1355 | id = void 0;
|
1356 | }
|
1357 | function uniq(a) {
|
1358 | const prims = { boolean: {}, number: {}, string: {} };
|
1359 | const objs = [];
|
1360 | let dir2;
|
1361 | const nodeList2 = a.filter(function(item) {
|
1362 | const type = typeof item;
|
1363 | if (item.stmt && item.stmt === "dir") {
|
1364 | dir2 = item.value;
|
1365 | return false;
|
1366 | }
|
1367 | if (item.trim() === "") {
|
1368 | return false;
|
1369 | }
|
1370 | if (type in prims) {
|
1371 | return prims[type].hasOwnProperty(item) ? false : prims[type][item] = true;
|
1372 | } else {
|
1373 | return objs.includes(item) ? false : objs.push(item);
|
1374 | }
|
1375 | });
|
1376 | return { nodeList: nodeList2, dir: dir2 };
|
1377 | }
|
1378 | let nodeList = [];
|
1379 | const { nodeList: nl, dir } = uniq(nodeList.concat.apply(nodeList, list));
|
1380 | nodeList = nl;
|
1381 | if (version === "gen-1") {
|
1382 | for (let i = 0; i < nodeList.length; i++) {
|
1383 | nodeList[i] = lookUpDomId(nodeList[i]);
|
1384 | }
|
1385 | }
|
1386 | id = id || "subGraph" + subCount;
|
1387 | title = title || "";
|
1388 | title = sanitizeText(title);
|
1389 | subCount = subCount + 1;
|
1390 | const subGraph = {
|
1391 | id,
|
1392 | nodes: nodeList,
|
1393 | title: title.trim(),
|
1394 | classes: [],
|
1395 | dir,
|
1396 | labelType: _title.type
|
1397 | };
|
1398 | log.info("Adding", subGraph.id, subGraph.nodes, subGraph.dir);
|
1399 | subGraph.nodes = makeUniq(subGraph, subGraphs).nodes;
|
1400 | subGraphs.push(subGraph);
|
1401 | subGraphLookup[id] = subGraph;
|
1402 | return id;
|
1403 | };
|
1404 | const getPosForId = function(id) {
|
1405 | for (const [i, subGraph] of subGraphs.entries()) {
|
1406 | if (subGraph.id === id) {
|
1407 | return i;
|
1408 | }
|
1409 | }
|
1410 | return -1;
|
1411 | };
|
1412 | let secCount = -1;
|
1413 | const posCrossRef = [];
|
1414 | const indexNodes2 = function(id, pos) {
|
1415 | const nodes = subGraphs[pos].nodes;
|
1416 | secCount = secCount + 1;
|
1417 | if (secCount > 2e3) {
|
1418 | return;
|
1419 | }
|
1420 | posCrossRef[secCount] = pos;
|
1421 | if (subGraphs[pos].id === id) {
|
1422 | return {
|
1423 | result: true,
|
1424 | count: 0
|
1425 | };
|
1426 | }
|
1427 | let count = 0;
|
1428 | let posCount = 1;
|
1429 | while (count < nodes.length) {
|
1430 | const childPos = getPosForId(nodes[count]);
|
1431 | if (childPos >= 0) {
|
1432 | const res = indexNodes2(id, childPos);
|
1433 | if (res.result) {
|
1434 | return {
|
1435 | result: true,
|
1436 | count: posCount + res.count
|
1437 | };
|
1438 | } else {
|
1439 | posCount = posCount + res.count;
|
1440 | }
|
1441 | }
|
1442 | count = count + 1;
|
1443 | }
|
1444 | return {
|
1445 | result: false,
|
1446 | count: posCount
|
1447 | };
|
1448 | };
|
1449 | const getDepthFirstPos = function(pos) {
|
1450 | return posCrossRef[pos];
|
1451 | };
|
1452 | const indexNodes = function() {
|
1453 | secCount = -1;
|
1454 | if (subGraphs.length > 0) {
|
1455 | indexNodes2("none", subGraphs.length - 1);
|
1456 | }
|
1457 | };
|
1458 | const getSubGraphs = function() {
|
1459 | return subGraphs;
|
1460 | };
|
1461 | const firstGraph = () => {
|
1462 | if (firstGraphFlag) {
|
1463 | firstGraphFlag = false;
|
1464 | return true;
|
1465 | }
|
1466 | return false;
|
1467 | };
|
1468 | const destructStartLink = (_str) => {
|
1469 | let str = _str.trim();
|
1470 | let type = "arrow_open";
|
1471 | switch (str[0]) {
|
1472 | case "<":
|
1473 | type = "arrow_point";
|
1474 | str = str.slice(1);
|
1475 | break;
|
1476 | case "x":
|
1477 | type = "arrow_cross";
|
1478 | str = str.slice(1);
|
1479 | break;
|
1480 | case "o":
|
1481 | type = "arrow_circle";
|
1482 | str = str.slice(1);
|
1483 | break;
|
1484 | }
|
1485 | let stroke = "normal";
|
1486 | if (str.includes("=")) {
|
1487 | stroke = "thick";
|
1488 | }
|
1489 | if (str.includes(".")) {
|
1490 | stroke = "dotted";
|
1491 | }
|
1492 | return { type, stroke };
|
1493 | };
|
1494 | const countChar = (char, str) => {
|
1495 | const length = str.length;
|
1496 | let count = 0;
|
1497 | for (let i = 0; i < length; ++i) {
|
1498 | if (str[i] === char) {
|
1499 | ++count;
|
1500 | }
|
1501 | }
|
1502 | return count;
|
1503 | };
|
1504 | const destructEndLink = (_str) => {
|
1505 | const str = _str.trim();
|
1506 | let line = str.slice(0, -1);
|
1507 | let type = "arrow_open";
|
1508 | switch (str.slice(-1)) {
|
1509 | case "x":
|
1510 | type = "arrow_cross";
|
1511 | if (str[0] === "x") {
|
1512 | type = "double_" + type;
|
1513 | line = line.slice(1);
|
1514 | }
|
1515 | break;
|
1516 | case ">":
|
1517 | type = "arrow_point";
|
1518 | if (str[0] === "<") {
|
1519 | type = "double_" + type;
|
1520 | line = line.slice(1);
|
1521 | }
|
1522 | break;
|
1523 | case "o":
|
1524 | type = "arrow_circle";
|
1525 | if (str[0] === "o") {
|
1526 | type = "double_" + type;
|
1527 | line = line.slice(1);
|
1528 | }
|
1529 | break;
|
1530 | }
|
1531 | let stroke = "normal";
|
1532 | let length = line.length - 1;
|
1533 | if (line[0] === "=") {
|
1534 | stroke = "thick";
|
1535 | }
|
1536 | if (line[0] === "~") {
|
1537 | stroke = "invisible";
|
1538 | }
|
1539 | let dots = countChar(".", line);
|
1540 | if (dots) {
|
1541 | stroke = "dotted";
|
1542 | length = dots;
|
1543 | }
|
1544 | return { type, stroke, length };
|
1545 | };
|
1546 | const destructLink = (_str, _startStr) => {
|
1547 | const info = destructEndLink(_str);
|
1548 | let startInfo;
|
1549 | if (_startStr) {
|
1550 | startInfo = destructStartLink(_startStr);
|
1551 | if (startInfo.stroke !== info.stroke) {
|
1552 | return { type: "INVALID", stroke: "INVALID" };
|
1553 | }
|
1554 | if (startInfo.type === "arrow_open") {
|
1555 | startInfo.type = info.type;
|
1556 | } else {
|
1557 | if (startInfo.type !== info.type) {
|
1558 | return { type: "INVALID", stroke: "INVALID" };
|
1559 | }
|
1560 | startInfo.type = "double_" + startInfo.type;
|
1561 | }
|
1562 | if (startInfo.type === "double_arrow") {
|
1563 | startInfo.type = "double_arrow_point";
|
1564 | }
|
1565 | startInfo.length = info.length;
|
1566 | return startInfo;
|
1567 | }
|
1568 | return info;
|
1569 | };
|
1570 | const exists = (allSgs, _id) => {
|
1571 | let res = false;
|
1572 | allSgs.forEach((sg) => {
|
1573 | const pos = sg.nodes.indexOf(_id);
|
1574 | if (pos >= 0) {
|
1575 | res = true;
|
1576 | }
|
1577 | });
|
1578 | return res;
|
1579 | };
|
1580 | const makeUniq = (sg, allSubgraphs) => {
|
1581 | const res = [];
|
1582 | sg.nodes.forEach((_id, pos) => {
|
1583 | if (!exists(allSubgraphs, _id)) {
|
1584 | res.push(sg.nodes[pos]);
|
1585 | }
|
1586 | });
|
1587 | return { nodes: res };
|
1588 | };
|
1589 | const lex = {
|
1590 | firstGraph
|
1591 | };
|
1592 | const flowDb = {
|
1593 | parseDirective,
|
1594 | defaultConfig: () => defaultConfig.flowchart,
|
1595 | setAccTitle,
|
1596 | getAccTitle,
|
1597 | getAccDescription,
|
1598 | setAccDescription,
|
1599 | addVertex,
|
1600 | lookUpDomId,
|
1601 | addLink,
|
1602 | updateLinkInterpolate,
|
1603 | updateLink,
|
1604 | addClass,
|
1605 | setDirection,
|
1606 | setClass,
|
1607 | setTooltip,
|
1608 | getTooltip,
|
1609 | setClickEvent,
|
1610 | setLink,
|
1611 | bindFunctions,
|
1612 | getDirection,
|
1613 | getVertices,
|
1614 | getEdges,
|
1615 | getClasses,
|
1616 | clear,
|
1617 | setGen,
|
1618 | defaultStyle,
|
1619 | addSubGraph,
|
1620 | getDepthFirstPos,
|
1621 | indexNodes,
|
1622 | getSubGraphs,
|
1623 | destructLink,
|
1624 | lex,
|
1625 | exists,
|
1626 | makeUniq,
|
1627 | setDiagramTitle,
|
1628 | getDiagramTitle
|
1629 | };
|
1630 | const db = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1631 | __proto__: null,
|
1632 | addClass,
|
1633 | addLink,
|
1634 | addSingleLink,
|
1635 | addSubGraph,
|
1636 | addVertex,
|
1637 | bindFunctions,
|
1638 | clear,
|
1639 | default: flowDb,
|
1640 | defaultStyle,
|
1641 | destructLink,
|
1642 | firstGraph,
|
1643 | getClasses,
|
1644 | getDepthFirstPos,
|
1645 | getDirection,
|
1646 | getEdges,
|
1647 | getSubGraphs,
|
1648 | getTooltip,
|
1649 | getVertices,
|
1650 | indexNodes,
|
1651 | lex,
|
1652 | lookUpDomId,
|
1653 | parseDirective,
|
1654 | setClass,
|
1655 | setClickEvent,
|
1656 | setDirection,
|
1657 | setGen,
|
1658 | setLink,
|
1659 | updateLink,
|
1660 | updateLinkInterpolate
|
1661 | }, Symbol.toStringTag, { value: "Module" }));
|
1662 | export {
|
1663 | db as d,
|
1664 | flowDb as f,
|
1665 | parser$1 as p
|
1666 | };
|