@umami/shiso 1.11.0 → 1.13.0

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.
Files changed (148) hide show
  1. package/bin/shiso.mjs +20 -1
  2. package/dist/chunks/App.js +412 -51
  3. package/dist/chunks/abnfDiagram-VCTEODGH.js +109 -0
  4. package/dist/chunks/arc.js +130 -0
  5. package/dist/chunks/architecture-7GRP2DOG.js +4 -0
  6. package/dist/chunks/architectureDiagram-5GKGNRK7.js +7466 -0
  7. package/dist/chunks/array.js +8 -0
  8. package/dist/chunks/blockDiagram-I7D4REHJ.js +2546 -0
  9. package/dist/chunks/c4Diagram-7LVT6UL2.js +3654 -0
  10. package/dist/chunks/channel.js +9 -0
  11. package/dist/chunks/chunk-2Q5K7J3B.js +21 -0
  12. package/dist/chunks/chunk-4HAMMTFA.js +6106 -0
  13. package/dist/chunks/chunk-5VM5RSS4.js +21 -0
  14. package/dist/chunks/chunk-75Z2AOVW.js +2185 -0
  15. package/dist/chunks/chunk-DU6HZSFF.js +8729 -0
  16. package/dist/chunks/chunk-F27PBJKO.js +95 -0
  17. package/dist/chunks/chunk-FOHPRMQF.js +27162 -0
  18. package/dist/chunks/chunk-GMAD6QVW.js +2369 -0
  19. package/dist/chunks/chunk-GVQU2GXP.js +58 -0
  20. package/dist/chunks/chunk-IMKFNOWR.js +2593 -0
  21. package/dist/chunks/chunk-JWPE2WC7.js +12 -0
  22. package/dist/chunks/chunk-L3NEJ4N5.js +420 -0
  23. package/dist/chunks/chunk-OSK3NFVY.js +1029 -0
  24. package/dist/chunks/chunk-P2QGCYS3.js +95 -0
  25. package/dist/chunks/chunk-POPQ4Y6H.js +33 -0
  26. package/dist/chunks/chunk-PWAF6VOD.js +467 -0
  27. package/dist/chunks/chunk-SHT3W25Y.js +4813 -0
  28. package/dist/chunks/chunk-SVP7TREG.js +686 -0
  29. package/dist/chunks/chunk-TICWLB2K.js +3800 -0
  30. package/dist/chunks/chunk-XXDRQBXY.js +12 -0
  31. package/dist/chunks/chunk-Y2CYZVJY.js +15 -0
  32. package/dist/chunks/classDiagram-ZZMXUADV.js +33 -0
  33. package/dist/chunks/classDiagram-v2-VYDZK3BY.js +33 -0
  34. package/dist/chunks/cose-bilkent-JH36ORCC.js +4268 -0
  35. package/dist/chunks/cynefin-OW5HDTMX.js +4 -0
  36. package/dist/chunks/cynefinDiagram-5FMLGOSQ.js +482 -0
  37. package/dist/chunks/cytoscape.esm.js +28282 -0
  38. package/dist/chunks/dagre-GXQ25YYZ.js +583 -0
  39. package/dist/chunks/dagre.js +4235 -0
  40. package/dist/chunks/defaultLocale.js +246 -0
  41. package/dist/chunks/diagram-S7CK7UJ4.js +402 -0
  42. package/dist/chunks/diagram-UQ7AKVKN.js +291 -0
  43. package/dist/chunks/diagram-VSXAHHWV.js +553 -0
  44. package/dist/chunks/diagram-VX7I27RA.js +798 -0
  45. package/dist/chunks/diagram-Z3DM3KII.js +186 -0
  46. package/dist/chunks/dist.js +92 -0
  47. package/dist/chunks/docs.js +989 -93
  48. package/dist/chunks/ebnfDiagram-PWID7BFC.js +123 -0
  49. package/dist/chunks/erDiagram-RLTQ6QDP.js +2295 -0
  50. package/dist/chunks/eventmodeling-NTZA5JFV.js +4 -0
  51. package/dist/chunks/flowDiagram-HODETNUW.js +17 -0
  52. package/dist/chunks/ganttDiagram-EL5Y4UJY.js +3928 -0
  53. package/dist/chunks/gitGraph-4MIJSDKK.js +4 -0
  54. package/dist/chunks/gitGraphDiagram-WWUBYQGX.js +1153 -0
  55. package/dist/chunks/graphlib.js +4194 -0
  56. package/dist/chunks/info-A6RAGUB7.js +4 -0
  57. package/dist/chunks/infoDiagram-27XIBGKW.js +25 -0
  58. package/dist/chunks/init.js +14 -0
  59. package/dist/chunks/ishikawaDiagram-5VMMS53U.js +971 -0
  60. package/dist/chunks/journeyDiagram-3NMN7TZE.js +1226 -0
  61. package/dist/chunks/kanban-definition-UXKFOSKX.js +1241 -0
  62. package/dist/chunks/katex.js +26463 -0
  63. package/dist/chunks/line.js +48 -0
  64. package/dist/chunks/linear.js +391 -0
  65. package/dist/chunks/mermaid-parser.core.js +754 -0
  66. package/dist/chunks/mermaid.core.js +4898 -0
  67. package/dist/chunks/mindmap-definition-YA3MSWOX.js +1309 -0
  68. package/dist/chunks/ordinal.js +84 -0
  69. package/dist/chunks/packet-AYTQ26CC.js +4 -0
  70. package/dist/chunks/path.js +106 -0
  71. package/dist/chunks/pegDiagram-XKGWAZYB.js +115 -0
  72. package/dist/chunks/pie-WAS4IAKB.js +4 -0
  73. package/dist/chunks/pieDiagram-E7YTZNPT.js +297 -0
  74. package/dist/chunks/quadrantDiagram-AXDQQJYC.js +2234 -0
  75. package/dist/chunks/radar-RG4KPBEZ.js +4 -0
  76. package/dist/chunks/railroad-74A4TZTK.js +4 -0
  77. package/dist/chunks/railroad-abnf-HS5TGJTU.js +4 -0
  78. package/dist/chunks/railroad-ebnf-LZEXJU2U.js +4 -0
  79. package/dist/chunks/railroad-peg-WCYAUIDC.js +4 -0
  80. package/dist/chunks/railroadDiagram-O6MQD6OU.js +89 -0
  81. package/dist/chunks/requirementDiagram-BXWQKSXE.js +2464 -0
  82. package/dist/chunks/rough.esm.js +1396 -0
  83. package/dist/chunks/sankeyDiagram-P5KCCOFB.js +1308 -0
  84. package/dist/chunks/sequenceDiagram-WJ2MYXX4.js +5445 -0
  85. package/dist/chunks/sizeCapture-INFHLROL.js +56 -0
  86. package/dist/chunks/src.js +2653 -0
  87. package/dist/chunks/stateDiagram-D77RDMKH.js +368 -0
  88. package/dist/chunks/stateDiagram-v2-MP3YSRHH.js +33 -0
  89. package/dist/chunks/swimlanes-42K2YHIH.js +6925 -0
  90. package/dist/chunks/swimlanesDiagram-VR7AAH4N.js +32 -0
  91. package/dist/chunks/timeline-definition-24CTP7MA.js +1507 -0
  92. package/dist/chunks/treeView-Q6P3EWNA.js +4 -0
  93. package/dist/chunks/treemap-WGGIJYW6.js +4 -0
  94. package/dist/chunks/vennDiagram-4TSXK5OY.js +2803 -0
  95. package/dist/chunks/wardley-WFR3VGLG.js +4 -0
  96. package/dist/chunks/wardleyDiagram-VM6X3IG4.js +877 -0
  97. package/dist/chunks/xychartDiagram-S5SC5T6Z.js +2698 -0
  98. package/dist/components.js +2 -2
  99. package/dist/entry-client.js +2 -2
  100. package/dist/entry-server.js +31 -3
  101. package/docs.schema.json +90 -0
  102. package/mdx.config.ts +13 -97
  103. package/package.json +6 -4
  104. package/scripts/build-runtime.mjs +1 -0
  105. package/scripts/check-content.mjs +358 -0
  106. package/scripts/expand-navigation-globs.mjs +277 -0
  107. package/scripts/expand-openapi-navigation.mjs +94 -0
  108. package/scripts/generate-openapi.mjs +117 -0
  109. package/scripts/generate-search-index.mjs +31 -1
  110. package/scripts/lib/openapi.mjs +653 -0
  111. package/scripts/load-docs-config.mjs +52 -6
  112. package/scripts/load-shiso-config.mjs +45 -3
  113. package/scripts/prerender.mjs +83 -3
  114. package/scripts/vite-docs-config.mjs +27 -6
  115. package/src/App.tsx +0 -1
  116. package/src/components/CodeBlock.tsx +108 -8
  117. package/src/components/DocContent.tsx +18 -0
  118. package/src/components/Docs.tsx +45 -17
  119. package/src/components/OpenApiOperation.tsx +205 -0
  120. package/src/components/SideNav.tsx +13 -2
  121. package/src/components/docs/Changelog.tsx +163 -0
  122. package/src/components/docs/CodeGroup.tsx +6 -2
  123. package/src/components/docs/Mermaid.tsx +164 -0
  124. package/src/components/docs/Panel.tsx +23 -0
  125. package/src/components/docs/ParamField.tsx +17 -5
  126. package/src/components/docs/PropertiesTable.tsx +2 -2
  127. package/src/components/docs/ResponseField.tsx +17 -5
  128. package/src/components/docs/Tiles.tsx +59 -0
  129. package/src/components/docs/Tree.tsx +359 -0
  130. package/src/components/docs/Update.tsx +72 -0
  131. package/src/components/docs/index.ts +7 -0
  132. package/src/components/docs/panel-context.tsx +25 -0
  133. package/src/components/docs/styles.ts +49 -0
  134. package/src/components/icons/index.ts +4 -0
  135. package/src/entry-server.tsx +50 -0
  136. package/src/lib/code-blocks.ts +18 -0
  137. package/src/lib/code-meta.ts +87 -0
  138. package/src/lib/docs-config.ts +4 -1
  139. package/src/lib/openapi.generated.ts +4 -0
  140. package/src/lib/openapi.ts +63 -0
  141. package/src/lib/rehype-shiki.ts +213 -0
  142. package/src/lib/site-model.ts +2 -0
  143. package/src/lib/types.ts +116 -2
  144. package/src/styles/global.css +63 -73
  145. package/types/components.d.ts +79 -0
  146. package/types/config.d.ts +11 -4
  147. package/vite.config.ts +49 -3
  148. package/CHANGELOG.md +0 -171
@@ -0,0 +1,2464 @@
1
+ import { n as __name, t as __export } from "./chunk-Y2CYZVJY.js";
2
+ import { m as log } from "./src.js";
3
+ import { H as setAccDescription, K as setDiagramTitle, U as setAccTitle, a as clear, b as getConfig, v as getAccDescription, w as getDiagramTitle, x as getConfig2, y as getAccTitle } from "./chunk-DU6HZSFF.js";
4
+ import { g as utils_default } from "./chunk-75Z2AOVW.js";
5
+ import "./chunk-PWAF6VOD.js";
6
+ import "./chunk-GMAD6QVW.js";
7
+ import "./chunk-P2QGCYS3.js";
8
+ import "./chunk-4HAMMTFA.js";
9
+ import "./chunk-GVQU2GXP.js";
10
+ import "./chunk-OSK3NFVY.js";
11
+ import { t as getDiagramElement } from "./chunk-XXDRQBXY.js";
12
+ import { t as setupViewPortForSVG } from "./chunk-POPQ4Y6H.js";
13
+ import "./chunk-L3NEJ4N5.js";
14
+ import { d as render, u as getRegisteredLayoutAlgorithm } from "./mermaid.core.js";
15
+
16
+ //#region ../../node_modules/.pnpm/mermaid@11.17.2/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-BXWQKSXE.mjs
17
+ var parser = (function() {
18
+ var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
19
+ for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v);
20
+ return o2;
21
+ }, "o"), $V0 = [1, 3], $V1 = [1, 4], $V2 = [1, 5], $V3 = [1, 6], $V4 = [
22
+ 5,
23
+ 6,
24
+ 8,
25
+ 9,
26
+ 11,
27
+ 13,
28
+ 21,
29
+ 22,
30
+ 23,
31
+ 24,
32
+ 41,
33
+ 42,
34
+ 43,
35
+ 44,
36
+ 45,
37
+ 46,
38
+ 54,
39
+ 72,
40
+ 74,
41
+ 77,
42
+ 89,
43
+ 90
44
+ ], $V5 = [1, 22], $V6 = [2, 7], $V7 = [1, 26], $V8 = [1, 27], $V9 = [1, 28], $Va = [1, 29], $Vb = [1, 33], $Vc = [1, 34], $Vd = [1, 35], $Ve = [1, 36], $Vf = [1, 37], $Vg = [1, 38], $Vh = [1, 24], $Vi = [1, 31], $Vj = [1, 32], $Vk = [1, 30], $Vl = [1, 39], $Vm = [1, 40], $Vn = [
45
+ 5,
46
+ 8,
47
+ 9,
48
+ 11,
49
+ 13,
50
+ 21,
51
+ 22,
52
+ 23,
53
+ 24,
54
+ 41,
55
+ 42,
56
+ 43,
57
+ 44,
58
+ 45,
59
+ 46,
60
+ 54,
61
+ 72,
62
+ 74,
63
+ 77,
64
+ 89,
65
+ 90
66
+ ], $Vo = [1, 61], $Vp = [89, 90], $Vq = [
67
+ 5,
68
+ 8,
69
+ 9,
70
+ 11,
71
+ 13,
72
+ 21,
73
+ 22,
74
+ 23,
75
+ 24,
76
+ 27,
77
+ 29,
78
+ 41,
79
+ 42,
80
+ 43,
81
+ 44,
82
+ 45,
83
+ 46,
84
+ 54,
85
+ 61,
86
+ 63,
87
+ 72,
88
+ 74,
89
+ 75,
90
+ 76,
91
+ 77,
92
+ 80,
93
+ 81,
94
+ 82,
95
+ 83,
96
+ 84,
97
+ 85,
98
+ 86,
99
+ 87,
100
+ 88,
101
+ 89,
102
+ 90
103
+ ], $Vr = [27, 29], $Vs = [1, 70], $Vt = [1, 71], $Vu = [1, 72], $Vv = [1, 73], $Vw = [1, 74], $Vx = [1, 75], $Vy = [1, 76], $Vz = [1, 83], $VA = [1, 80], $VB = [1, 84], $VC = [1, 85], $VD = [1, 86], $VE = [1, 87], $VF = [1, 88], $VG = [1, 89], $VH = [1, 90], $VI = [1, 91], $VJ = [1, 92], $VK = [
104
+ 5,
105
+ 8,
106
+ 9,
107
+ 11,
108
+ 13,
109
+ 21,
110
+ 22,
111
+ 23,
112
+ 24,
113
+ 27,
114
+ 41,
115
+ 42,
116
+ 43,
117
+ 44,
118
+ 45,
119
+ 46,
120
+ 54,
121
+ 72,
122
+ 74,
123
+ 75,
124
+ 76,
125
+ 77,
126
+ 80,
127
+ 81,
128
+ 82,
129
+ 83,
130
+ 84,
131
+ 85,
132
+ 86,
133
+ 87,
134
+ 88,
135
+ 89,
136
+ 90
137
+ ], $VL = [63, 64], $VM = [1, 101], $VN = [
138
+ 5,
139
+ 8,
140
+ 9,
141
+ 11,
142
+ 13,
143
+ 21,
144
+ 22,
145
+ 23,
146
+ 24,
147
+ 41,
148
+ 42,
149
+ 43,
150
+ 44,
151
+ 45,
152
+ 46,
153
+ 54,
154
+ 72,
155
+ 74,
156
+ 76,
157
+ 77,
158
+ 89,
159
+ 90
160
+ ], $VO = [
161
+ 5,
162
+ 8,
163
+ 9,
164
+ 11,
165
+ 13,
166
+ 21,
167
+ 22,
168
+ 23,
169
+ 24,
170
+ 41,
171
+ 42,
172
+ 43,
173
+ 44,
174
+ 45,
175
+ 46,
176
+ 54,
177
+ 72,
178
+ 74,
179
+ 75,
180
+ 76,
181
+ 77,
182
+ 80,
183
+ 81,
184
+ 82,
185
+ 83,
186
+ 84,
187
+ 85,
188
+ 86,
189
+ 87,
190
+ 88,
191
+ 89,
192
+ 90
193
+ ], $VP = [1, 110], $VQ = [1, 106], $VR = [1, 107], $VS = [1, 108], $VT = [1, 109], $VU = [1, 111], $VV = [1, 116], $VW = [1, 117], $VX = [1, 114], $VY = [1, 115];
194
+ var parser2 = {
195
+ trace: /* @__PURE__ */ __name(function trace() {}, "trace"),
196
+ yy: {},
197
+ symbols_: {
198
+ "error": 2,
199
+ "start": 3,
200
+ "directive": 4,
201
+ "NEWLINE": 5,
202
+ "RD": 6,
203
+ "diagram": 7,
204
+ "EOF": 8,
205
+ "acc_title": 9,
206
+ "acc_title_value": 10,
207
+ "acc_descr": 11,
208
+ "acc_descr_value": 12,
209
+ "acc_descr_multiline_value": 13,
210
+ "requirementDef": 14,
211
+ "elementDef": 15,
212
+ "relationshipDef": 16,
213
+ "direction": 17,
214
+ "styleStatement": 18,
215
+ "classDefStatement": 19,
216
+ "classStatement": 20,
217
+ "direction_tb": 21,
218
+ "direction_bt": 22,
219
+ "direction_rl": 23,
220
+ "direction_lr": 24,
221
+ "requirementType": 25,
222
+ "requirementName": 26,
223
+ "STRUCT_START": 27,
224
+ "requirementBody": 28,
225
+ "STYLE_SEPARATOR": 29,
226
+ "idList": 30,
227
+ "ID": 31,
228
+ "COLONSEP": 32,
229
+ "id": 33,
230
+ "TEXT": 34,
231
+ "text": 35,
232
+ "RISK": 36,
233
+ "riskLevel": 37,
234
+ "VERIFYMTHD": 38,
235
+ "verifyType": 39,
236
+ "STRUCT_STOP": 40,
237
+ "REQUIREMENT": 41,
238
+ "FUNCTIONAL_REQUIREMENT": 42,
239
+ "INTERFACE_REQUIREMENT": 43,
240
+ "PERFORMANCE_REQUIREMENT": 44,
241
+ "PHYSICAL_REQUIREMENT": 45,
242
+ "DESIGN_CONSTRAINT": 46,
243
+ "LOW_RISK": 47,
244
+ "MED_RISK": 48,
245
+ "HIGH_RISK": 49,
246
+ "VERIFY_ANALYSIS": 50,
247
+ "VERIFY_DEMONSTRATION": 51,
248
+ "VERIFY_INSPECTION": 52,
249
+ "VERIFY_TEST": 53,
250
+ "ELEMENT": 54,
251
+ "elementName": 55,
252
+ "elementBody": 56,
253
+ "TYPE": 57,
254
+ "type": 58,
255
+ "DOCREF": 59,
256
+ "ref": 60,
257
+ "END_ARROW_L": 61,
258
+ "relationship": 62,
259
+ "LINE": 63,
260
+ "END_ARROW_R": 64,
261
+ "CONTAINS": 65,
262
+ "COPIES": 66,
263
+ "DERIVES": 67,
264
+ "SATISFIES": 68,
265
+ "VERIFIES": 69,
266
+ "REFINES": 70,
267
+ "TRACES": 71,
268
+ "CLASSDEF": 72,
269
+ "stylesOpt": 73,
270
+ "CLASS": 74,
271
+ "ALPHA": 75,
272
+ "COMMA": 76,
273
+ "STYLE": 77,
274
+ "style": 78,
275
+ "styleComponent": 79,
276
+ "NUM": 80,
277
+ "COLON": 81,
278
+ "UNIT": 82,
279
+ "SPACE": 83,
280
+ "BRKT": 84,
281
+ "PCT": 85,
282
+ "MINUS": 86,
283
+ "LABEL": 87,
284
+ "SEMICOLON": 88,
285
+ "unqString": 89,
286
+ "qString": 90,
287
+ "$accept": 0,
288
+ "$end": 1
289
+ },
290
+ terminals_: {
291
+ 2: "error",
292
+ 5: "NEWLINE",
293
+ 6: "RD",
294
+ 8: "EOF",
295
+ 9: "acc_title",
296
+ 10: "acc_title_value",
297
+ 11: "acc_descr",
298
+ 12: "acc_descr_value",
299
+ 13: "acc_descr_multiline_value",
300
+ 21: "direction_tb",
301
+ 22: "direction_bt",
302
+ 23: "direction_rl",
303
+ 24: "direction_lr",
304
+ 27: "STRUCT_START",
305
+ 29: "STYLE_SEPARATOR",
306
+ 31: "ID",
307
+ 32: "COLONSEP",
308
+ 34: "TEXT",
309
+ 36: "RISK",
310
+ 38: "VERIFYMTHD",
311
+ 40: "STRUCT_STOP",
312
+ 41: "REQUIREMENT",
313
+ 42: "FUNCTIONAL_REQUIREMENT",
314
+ 43: "INTERFACE_REQUIREMENT",
315
+ 44: "PERFORMANCE_REQUIREMENT",
316
+ 45: "PHYSICAL_REQUIREMENT",
317
+ 46: "DESIGN_CONSTRAINT",
318
+ 47: "LOW_RISK",
319
+ 48: "MED_RISK",
320
+ 49: "HIGH_RISK",
321
+ 50: "VERIFY_ANALYSIS",
322
+ 51: "VERIFY_DEMONSTRATION",
323
+ 52: "VERIFY_INSPECTION",
324
+ 53: "VERIFY_TEST",
325
+ 54: "ELEMENT",
326
+ 57: "TYPE",
327
+ 59: "DOCREF",
328
+ 61: "END_ARROW_L",
329
+ 63: "LINE",
330
+ 64: "END_ARROW_R",
331
+ 65: "CONTAINS",
332
+ 66: "COPIES",
333
+ 67: "DERIVES",
334
+ 68: "SATISFIES",
335
+ 69: "VERIFIES",
336
+ 70: "REFINES",
337
+ 71: "TRACES",
338
+ 72: "CLASSDEF",
339
+ 74: "CLASS",
340
+ 75: "ALPHA",
341
+ 76: "COMMA",
342
+ 77: "STYLE",
343
+ 80: "NUM",
344
+ 81: "COLON",
345
+ 82: "UNIT",
346
+ 83: "SPACE",
347
+ 84: "BRKT",
348
+ 85: "PCT",
349
+ 86: "MINUS",
350
+ 87: "LABEL",
351
+ 88: "SEMICOLON",
352
+ 89: "unqString",
353
+ 90: "qString"
354
+ },
355
+ productions_: [
356
+ 0,
357
+ [3, 3],
358
+ [3, 2],
359
+ [3, 4],
360
+ [4, 2],
361
+ [4, 2],
362
+ [4, 1],
363
+ [7, 0],
364
+ [7, 2],
365
+ [7, 2],
366
+ [7, 2],
367
+ [7, 2],
368
+ [7, 2],
369
+ [7, 2],
370
+ [7, 2],
371
+ [7, 2],
372
+ [7, 2],
373
+ [17, 1],
374
+ [17, 1],
375
+ [17, 1],
376
+ [17, 1],
377
+ [14, 5],
378
+ [14, 7],
379
+ [28, 5],
380
+ [28, 5],
381
+ [28, 5],
382
+ [28, 5],
383
+ [28, 2],
384
+ [28, 1],
385
+ [25, 1],
386
+ [25, 1],
387
+ [25, 1],
388
+ [25, 1],
389
+ [25, 1],
390
+ [25, 1],
391
+ [37, 1],
392
+ [37, 1],
393
+ [37, 1],
394
+ [39, 1],
395
+ [39, 1],
396
+ [39, 1],
397
+ [39, 1],
398
+ [15, 5],
399
+ [15, 7],
400
+ [56, 5],
401
+ [56, 5],
402
+ [56, 2],
403
+ [56, 1],
404
+ [16, 5],
405
+ [16, 5],
406
+ [62, 1],
407
+ [62, 1],
408
+ [62, 1],
409
+ [62, 1],
410
+ [62, 1],
411
+ [62, 1],
412
+ [62, 1],
413
+ [19, 3],
414
+ [20, 3],
415
+ [20, 3],
416
+ [30, 1],
417
+ [30, 3],
418
+ [30, 1],
419
+ [30, 3],
420
+ [18, 3],
421
+ [73, 1],
422
+ [73, 3],
423
+ [78, 1],
424
+ [78, 2],
425
+ [79, 1],
426
+ [79, 1],
427
+ [79, 1],
428
+ [79, 1],
429
+ [79, 1],
430
+ [79, 1],
431
+ [79, 1],
432
+ [79, 1],
433
+ [79, 1],
434
+ [79, 1],
435
+ [26, 1],
436
+ [26, 1],
437
+ [33, 1],
438
+ [33, 1],
439
+ [35, 1],
440
+ [35, 1],
441
+ [55, 1],
442
+ [55, 1],
443
+ [58, 1],
444
+ [58, 1],
445
+ [60, 1],
446
+ [60, 1]
447
+ ],
448
+ performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
449
+ var $0 = $$.length - 1;
450
+ switch (yystate) {
451
+ case 4:
452
+ this.$ = $$[$0].trim();
453
+ yy.setAccTitle(this.$);
454
+ break;
455
+ case 5:
456
+ case 6:
457
+ this.$ = $$[$0].trim();
458
+ yy.setAccDescription(this.$);
459
+ break;
460
+ case 7:
461
+ this.$ = [];
462
+ break;
463
+ case 17:
464
+ yy.setDirection("TB");
465
+ break;
466
+ case 18:
467
+ yy.setDirection("BT");
468
+ break;
469
+ case 19:
470
+ yy.setDirection("RL");
471
+ break;
472
+ case 20:
473
+ yy.setDirection("LR");
474
+ break;
475
+ case 21:
476
+ yy.addRequirement($$[$0 - 3], $$[$0 - 4]);
477
+ break;
478
+ case 22:
479
+ yy.addRequirement($$[$0 - 5], $$[$0 - 6]);
480
+ yy.setClass([$$[$0 - 5]], $$[$0 - 3]);
481
+ break;
482
+ case 23:
483
+ yy.setNewReqId($$[$0 - 2]);
484
+ break;
485
+ case 24:
486
+ yy.setNewReqText($$[$0 - 2]);
487
+ break;
488
+ case 25:
489
+ yy.setNewReqRisk($$[$0 - 2]);
490
+ break;
491
+ case 26:
492
+ yy.setNewReqVerifyMethod($$[$0 - 2]);
493
+ break;
494
+ case 29:
495
+ this.$ = yy.RequirementType.REQUIREMENT;
496
+ break;
497
+ case 30:
498
+ this.$ = yy.RequirementType.FUNCTIONAL_REQUIREMENT;
499
+ break;
500
+ case 31:
501
+ this.$ = yy.RequirementType.INTERFACE_REQUIREMENT;
502
+ break;
503
+ case 32:
504
+ this.$ = yy.RequirementType.PERFORMANCE_REQUIREMENT;
505
+ break;
506
+ case 33:
507
+ this.$ = yy.RequirementType.PHYSICAL_REQUIREMENT;
508
+ break;
509
+ case 34:
510
+ this.$ = yy.RequirementType.DESIGN_CONSTRAINT;
511
+ break;
512
+ case 35:
513
+ this.$ = yy.RiskLevel.LOW_RISK;
514
+ break;
515
+ case 36:
516
+ this.$ = yy.RiskLevel.MED_RISK;
517
+ break;
518
+ case 37:
519
+ this.$ = yy.RiskLevel.HIGH_RISK;
520
+ break;
521
+ case 38:
522
+ this.$ = yy.VerifyType.VERIFY_ANALYSIS;
523
+ break;
524
+ case 39:
525
+ this.$ = yy.VerifyType.VERIFY_DEMONSTRATION;
526
+ break;
527
+ case 40:
528
+ this.$ = yy.VerifyType.VERIFY_INSPECTION;
529
+ break;
530
+ case 41:
531
+ this.$ = yy.VerifyType.VERIFY_TEST;
532
+ break;
533
+ case 42:
534
+ yy.addElement($$[$0 - 3]);
535
+ break;
536
+ case 43:
537
+ yy.addElement($$[$0 - 5]);
538
+ yy.setClass([$$[$0 - 5]], $$[$0 - 3]);
539
+ break;
540
+ case 44:
541
+ yy.setNewElementType($$[$0 - 2]);
542
+ break;
543
+ case 45:
544
+ yy.setNewElementDocRef($$[$0 - 2]);
545
+ break;
546
+ case 48:
547
+ yy.addRelationship($$[$0 - 2], $$[$0], $$[$0 - 4]);
548
+ break;
549
+ case 49:
550
+ yy.addRelationship($$[$0 - 2], $$[$0 - 4], $$[$0]);
551
+ break;
552
+ case 50:
553
+ this.$ = yy.Relationships.CONTAINS;
554
+ break;
555
+ case 51:
556
+ this.$ = yy.Relationships.COPIES;
557
+ break;
558
+ case 52:
559
+ this.$ = yy.Relationships.DERIVES;
560
+ break;
561
+ case 53:
562
+ this.$ = yy.Relationships.SATISFIES;
563
+ break;
564
+ case 54:
565
+ this.$ = yy.Relationships.VERIFIES;
566
+ break;
567
+ case 55:
568
+ this.$ = yy.Relationships.REFINES;
569
+ break;
570
+ case 56:
571
+ this.$ = yy.Relationships.TRACES;
572
+ break;
573
+ case 57:
574
+ this.$ = $$[$0 - 2];
575
+ yy.defineClass($$[$0 - 1], $$[$0]);
576
+ break;
577
+ case 58:
578
+ yy.setClass($$[$0 - 1], $$[$0]);
579
+ break;
580
+ case 59:
581
+ yy.setClass([$$[$0 - 2]], $$[$0]);
582
+ break;
583
+ case 60:
584
+ case 62:
585
+ this.$ = [$$[$0]];
586
+ break;
587
+ case 61:
588
+ case 63:
589
+ this.$ = $$[$0 - 2].concat([$$[$0]]);
590
+ break;
591
+ case 64:
592
+ this.$ = $$[$0 - 2];
593
+ yy.setCssStyle($$[$0 - 1], $$[$0]);
594
+ break;
595
+ case 65:
596
+ this.$ = [$$[$0]];
597
+ break;
598
+ case 66:
599
+ $$[$0 - 2].push($$[$0]);
600
+ this.$ = $$[$0 - 2];
601
+ break;
602
+ case 68: this.$ = $$[$0 - 1] + $$[$0];
603
+ }
604
+ }, "anonymous"),
605
+ table: [
606
+ {
607
+ 3: 1,
608
+ 4: 2,
609
+ 6: $V0,
610
+ 9: $V1,
611
+ 11: $V2,
612
+ 13: $V3
613
+ },
614
+ { 1: [3] },
615
+ {
616
+ 3: 8,
617
+ 4: 2,
618
+ 5: [1, 7],
619
+ 6: $V0,
620
+ 9: $V1,
621
+ 11: $V2,
622
+ 13: $V3
623
+ },
624
+ { 5: [1, 9] },
625
+ { 10: [1, 10] },
626
+ { 12: [1, 11] },
627
+ o($V4, [2, 6]),
628
+ {
629
+ 3: 12,
630
+ 4: 2,
631
+ 6: $V0,
632
+ 9: $V1,
633
+ 11: $V2,
634
+ 13: $V3
635
+ },
636
+ { 1: [2, 2] },
637
+ {
638
+ 4: 17,
639
+ 5: $V5,
640
+ 7: 13,
641
+ 8: $V6,
642
+ 9: $V1,
643
+ 11: $V2,
644
+ 13: $V3,
645
+ 14: 14,
646
+ 15: 15,
647
+ 16: 16,
648
+ 17: 18,
649
+ 18: 19,
650
+ 19: 20,
651
+ 20: 21,
652
+ 21: $V7,
653
+ 22: $V8,
654
+ 23: $V9,
655
+ 24: $Va,
656
+ 25: 23,
657
+ 33: 25,
658
+ 41: $Vb,
659
+ 42: $Vc,
660
+ 43: $Vd,
661
+ 44: $Ve,
662
+ 45: $Vf,
663
+ 46: $Vg,
664
+ 54: $Vh,
665
+ 72: $Vi,
666
+ 74: $Vj,
667
+ 77: $Vk,
668
+ 89: $Vl,
669
+ 90: $Vm
670
+ },
671
+ o($V4, [2, 4]),
672
+ o($V4, [2, 5]),
673
+ { 1: [2, 1] },
674
+ { 8: [1, 41] },
675
+ {
676
+ 4: 17,
677
+ 5: $V5,
678
+ 7: 42,
679
+ 8: $V6,
680
+ 9: $V1,
681
+ 11: $V2,
682
+ 13: $V3,
683
+ 14: 14,
684
+ 15: 15,
685
+ 16: 16,
686
+ 17: 18,
687
+ 18: 19,
688
+ 19: 20,
689
+ 20: 21,
690
+ 21: $V7,
691
+ 22: $V8,
692
+ 23: $V9,
693
+ 24: $Va,
694
+ 25: 23,
695
+ 33: 25,
696
+ 41: $Vb,
697
+ 42: $Vc,
698
+ 43: $Vd,
699
+ 44: $Ve,
700
+ 45: $Vf,
701
+ 46: $Vg,
702
+ 54: $Vh,
703
+ 72: $Vi,
704
+ 74: $Vj,
705
+ 77: $Vk,
706
+ 89: $Vl,
707
+ 90: $Vm
708
+ },
709
+ {
710
+ 4: 17,
711
+ 5: $V5,
712
+ 7: 43,
713
+ 8: $V6,
714
+ 9: $V1,
715
+ 11: $V2,
716
+ 13: $V3,
717
+ 14: 14,
718
+ 15: 15,
719
+ 16: 16,
720
+ 17: 18,
721
+ 18: 19,
722
+ 19: 20,
723
+ 20: 21,
724
+ 21: $V7,
725
+ 22: $V8,
726
+ 23: $V9,
727
+ 24: $Va,
728
+ 25: 23,
729
+ 33: 25,
730
+ 41: $Vb,
731
+ 42: $Vc,
732
+ 43: $Vd,
733
+ 44: $Ve,
734
+ 45: $Vf,
735
+ 46: $Vg,
736
+ 54: $Vh,
737
+ 72: $Vi,
738
+ 74: $Vj,
739
+ 77: $Vk,
740
+ 89: $Vl,
741
+ 90: $Vm
742
+ },
743
+ {
744
+ 4: 17,
745
+ 5: $V5,
746
+ 7: 44,
747
+ 8: $V6,
748
+ 9: $V1,
749
+ 11: $V2,
750
+ 13: $V3,
751
+ 14: 14,
752
+ 15: 15,
753
+ 16: 16,
754
+ 17: 18,
755
+ 18: 19,
756
+ 19: 20,
757
+ 20: 21,
758
+ 21: $V7,
759
+ 22: $V8,
760
+ 23: $V9,
761
+ 24: $Va,
762
+ 25: 23,
763
+ 33: 25,
764
+ 41: $Vb,
765
+ 42: $Vc,
766
+ 43: $Vd,
767
+ 44: $Ve,
768
+ 45: $Vf,
769
+ 46: $Vg,
770
+ 54: $Vh,
771
+ 72: $Vi,
772
+ 74: $Vj,
773
+ 77: $Vk,
774
+ 89: $Vl,
775
+ 90: $Vm
776
+ },
777
+ {
778
+ 4: 17,
779
+ 5: $V5,
780
+ 7: 45,
781
+ 8: $V6,
782
+ 9: $V1,
783
+ 11: $V2,
784
+ 13: $V3,
785
+ 14: 14,
786
+ 15: 15,
787
+ 16: 16,
788
+ 17: 18,
789
+ 18: 19,
790
+ 19: 20,
791
+ 20: 21,
792
+ 21: $V7,
793
+ 22: $V8,
794
+ 23: $V9,
795
+ 24: $Va,
796
+ 25: 23,
797
+ 33: 25,
798
+ 41: $Vb,
799
+ 42: $Vc,
800
+ 43: $Vd,
801
+ 44: $Ve,
802
+ 45: $Vf,
803
+ 46: $Vg,
804
+ 54: $Vh,
805
+ 72: $Vi,
806
+ 74: $Vj,
807
+ 77: $Vk,
808
+ 89: $Vl,
809
+ 90: $Vm
810
+ },
811
+ {
812
+ 4: 17,
813
+ 5: $V5,
814
+ 7: 46,
815
+ 8: $V6,
816
+ 9: $V1,
817
+ 11: $V2,
818
+ 13: $V3,
819
+ 14: 14,
820
+ 15: 15,
821
+ 16: 16,
822
+ 17: 18,
823
+ 18: 19,
824
+ 19: 20,
825
+ 20: 21,
826
+ 21: $V7,
827
+ 22: $V8,
828
+ 23: $V9,
829
+ 24: $Va,
830
+ 25: 23,
831
+ 33: 25,
832
+ 41: $Vb,
833
+ 42: $Vc,
834
+ 43: $Vd,
835
+ 44: $Ve,
836
+ 45: $Vf,
837
+ 46: $Vg,
838
+ 54: $Vh,
839
+ 72: $Vi,
840
+ 74: $Vj,
841
+ 77: $Vk,
842
+ 89: $Vl,
843
+ 90: $Vm
844
+ },
845
+ {
846
+ 4: 17,
847
+ 5: $V5,
848
+ 7: 47,
849
+ 8: $V6,
850
+ 9: $V1,
851
+ 11: $V2,
852
+ 13: $V3,
853
+ 14: 14,
854
+ 15: 15,
855
+ 16: 16,
856
+ 17: 18,
857
+ 18: 19,
858
+ 19: 20,
859
+ 20: 21,
860
+ 21: $V7,
861
+ 22: $V8,
862
+ 23: $V9,
863
+ 24: $Va,
864
+ 25: 23,
865
+ 33: 25,
866
+ 41: $Vb,
867
+ 42: $Vc,
868
+ 43: $Vd,
869
+ 44: $Ve,
870
+ 45: $Vf,
871
+ 46: $Vg,
872
+ 54: $Vh,
873
+ 72: $Vi,
874
+ 74: $Vj,
875
+ 77: $Vk,
876
+ 89: $Vl,
877
+ 90: $Vm
878
+ },
879
+ {
880
+ 4: 17,
881
+ 5: $V5,
882
+ 7: 48,
883
+ 8: $V6,
884
+ 9: $V1,
885
+ 11: $V2,
886
+ 13: $V3,
887
+ 14: 14,
888
+ 15: 15,
889
+ 16: 16,
890
+ 17: 18,
891
+ 18: 19,
892
+ 19: 20,
893
+ 20: 21,
894
+ 21: $V7,
895
+ 22: $V8,
896
+ 23: $V9,
897
+ 24: $Va,
898
+ 25: 23,
899
+ 33: 25,
900
+ 41: $Vb,
901
+ 42: $Vc,
902
+ 43: $Vd,
903
+ 44: $Ve,
904
+ 45: $Vf,
905
+ 46: $Vg,
906
+ 54: $Vh,
907
+ 72: $Vi,
908
+ 74: $Vj,
909
+ 77: $Vk,
910
+ 89: $Vl,
911
+ 90: $Vm
912
+ },
913
+ {
914
+ 4: 17,
915
+ 5: $V5,
916
+ 7: 49,
917
+ 8: $V6,
918
+ 9: $V1,
919
+ 11: $V2,
920
+ 13: $V3,
921
+ 14: 14,
922
+ 15: 15,
923
+ 16: 16,
924
+ 17: 18,
925
+ 18: 19,
926
+ 19: 20,
927
+ 20: 21,
928
+ 21: $V7,
929
+ 22: $V8,
930
+ 23: $V9,
931
+ 24: $Va,
932
+ 25: 23,
933
+ 33: 25,
934
+ 41: $Vb,
935
+ 42: $Vc,
936
+ 43: $Vd,
937
+ 44: $Ve,
938
+ 45: $Vf,
939
+ 46: $Vg,
940
+ 54: $Vh,
941
+ 72: $Vi,
942
+ 74: $Vj,
943
+ 77: $Vk,
944
+ 89: $Vl,
945
+ 90: $Vm
946
+ },
947
+ {
948
+ 4: 17,
949
+ 5: $V5,
950
+ 7: 50,
951
+ 8: $V6,
952
+ 9: $V1,
953
+ 11: $V2,
954
+ 13: $V3,
955
+ 14: 14,
956
+ 15: 15,
957
+ 16: 16,
958
+ 17: 18,
959
+ 18: 19,
960
+ 19: 20,
961
+ 20: 21,
962
+ 21: $V7,
963
+ 22: $V8,
964
+ 23: $V9,
965
+ 24: $Va,
966
+ 25: 23,
967
+ 33: 25,
968
+ 41: $Vb,
969
+ 42: $Vc,
970
+ 43: $Vd,
971
+ 44: $Ve,
972
+ 45: $Vf,
973
+ 46: $Vg,
974
+ 54: $Vh,
975
+ 72: $Vi,
976
+ 74: $Vj,
977
+ 77: $Vk,
978
+ 89: $Vl,
979
+ 90: $Vm
980
+ },
981
+ {
982
+ 26: 51,
983
+ 89: [1, 52],
984
+ 90: [1, 53]
985
+ },
986
+ {
987
+ 55: 54,
988
+ 89: [1, 55],
989
+ 90: [1, 56]
990
+ },
991
+ {
992
+ 29: [1, 59],
993
+ 61: [1, 57],
994
+ 63: [1, 58]
995
+ },
996
+ o($Vn, [2, 17]),
997
+ o($Vn, [2, 18]),
998
+ o($Vn, [2, 19]),
999
+ o($Vn, [2, 20]),
1000
+ {
1001
+ 30: 60,
1002
+ 33: 62,
1003
+ 75: $Vo,
1004
+ 89: $Vl,
1005
+ 90: $Vm
1006
+ },
1007
+ {
1008
+ 30: 63,
1009
+ 33: 62,
1010
+ 75: $Vo,
1011
+ 89: $Vl,
1012
+ 90: $Vm
1013
+ },
1014
+ {
1015
+ 30: 64,
1016
+ 33: 62,
1017
+ 75: $Vo,
1018
+ 89: $Vl,
1019
+ 90: $Vm
1020
+ },
1021
+ o($Vp, [2, 29]),
1022
+ o($Vp, [2, 30]),
1023
+ o($Vp, [2, 31]),
1024
+ o($Vp, [2, 32]),
1025
+ o($Vp, [2, 33]),
1026
+ o($Vp, [2, 34]),
1027
+ o($Vq, [2, 81]),
1028
+ o($Vq, [2, 82]),
1029
+ { 1: [2, 3] },
1030
+ { 8: [2, 8] },
1031
+ { 8: [2, 9] },
1032
+ { 8: [2, 10] },
1033
+ { 8: [2, 11] },
1034
+ { 8: [2, 12] },
1035
+ { 8: [2, 13] },
1036
+ { 8: [2, 14] },
1037
+ { 8: [2, 15] },
1038
+ { 8: [2, 16] },
1039
+ {
1040
+ 27: [1, 65],
1041
+ 29: [1, 66]
1042
+ },
1043
+ o($Vr, [2, 79]),
1044
+ o($Vr, [2, 80]),
1045
+ {
1046
+ 27: [1, 67],
1047
+ 29: [1, 68]
1048
+ },
1049
+ o($Vr, [2, 85]),
1050
+ o($Vr, [2, 86]),
1051
+ {
1052
+ 62: 69,
1053
+ 65: $Vs,
1054
+ 66: $Vt,
1055
+ 67: $Vu,
1056
+ 68: $Vv,
1057
+ 69: $Vw,
1058
+ 70: $Vx,
1059
+ 71: $Vy
1060
+ },
1061
+ {
1062
+ 62: 77,
1063
+ 65: $Vs,
1064
+ 66: $Vt,
1065
+ 67: $Vu,
1066
+ 68: $Vv,
1067
+ 69: $Vw,
1068
+ 70: $Vx,
1069
+ 71: $Vy
1070
+ },
1071
+ {
1072
+ 30: 78,
1073
+ 33: 62,
1074
+ 75: $Vo,
1075
+ 89: $Vl,
1076
+ 90: $Vm
1077
+ },
1078
+ {
1079
+ 73: 79,
1080
+ 75: $Vz,
1081
+ 76: $VA,
1082
+ 78: 81,
1083
+ 79: 82,
1084
+ 80: $VB,
1085
+ 81: $VC,
1086
+ 82: $VD,
1087
+ 83: $VE,
1088
+ 84: $VF,
1089
+ 85: $VG,
1090
+ 86: $VH,
1091
+ 87: $VI,
1092
+ 88: $VJ
1093
+ },
1094
+ o($VK, [2, 60]),
1095
+ o($VK, [2, 62]),
1096
+ {
1097
+ 73: 93,
1098
+ 75: $Vz,
1099
+ 76: $VA,
1100
+ 78: 81,
1101
+ 79: 82,
1102
+ 80: $VB,
1103
+ 81: $VC,
1104
+ 82: $VD,
1105
+ 83: $VE,
1106
+ 84: $VF,
1107
+ 85: $VG,
1108
+ 86: $VH,
1109
+ 87: $VI,
1110
+ 88: $VJ
1111
+ },
1112
+ {
1113
+ 30: 94,
1114
+ 33: 62,
1115
+ 75: $Vo,
1116
+ 76: $VA,
1117
+ 89: $Vl,
1118
+ 90: $Vm
1119
+ },
1120
+ { 5: [1, 95] },
1121
+ {
1122
+ 30: 96,
1123
+ 33: 62,
1124
+ 75: $Vo,
1125
+ 89: $Vl,
1126
+ 90: $Vm
1127
+ },
1128
+ { 5: [1, 97] },
1129
+ {
1130
+ 30: 98,
1131
+ 33: 62,
1132
+ 75: $Vo,
1133
+ 89: $Vl,
1134
+ 90: $Vm
1135
+ },
1136
+ { 63: [1, 99] },
1137
+ o($VL, [2, 50]),
1138
+ o($VL, [2, 51]),
1139
+ o($VL, [2, 52]),
1140
+ o($VL, [2, 53]),
1141
+ o($VL, [2, 54]),
1142
+ o($VL, [2, 55]),
1143
+ o($VL, [2, 56]),
1144
+ { 64: [1, 100] },
1145
+ o($Vn, [2, 59], { 76: $VA }),
1146
+ o($Vn, [2, 64], { 76: $VM }),
1147
+ {
1148
+ 33: 103,
1149
+ 75: [1, 102],
1150
+ 89: $Vl,
1151
+ 90: $Vm
1152
+ },
1153
+ o($VN, [2, 65], {
1154
+ 79: 104,
1155
+ 75: $Vz,
1156
+ 80: $VB,
1157
+ 81: $VC,
1158
+ 82: $VD,
1159
+ 83: $VE,
1160
+ 84: $VF,
1161
+ 85: $VG,
1162
+ 86: $VH,
1163
+ 87: $VI,
1164
+ 88: $VJ
1165
+ }),
1166
+ o($VO, [2, 67]),
1167
+ o($VO, [2, 69]),
1168
+ o($VO, [2, 70]),
1169
+ o($VO, [2, 71]),
1170
+ o($VO, [2, 72]),
1171
+ o($VO, [2, 73]),
1172
+ o($VO, [2, 74]),
1173
+ o($VO, [2, 75]),
1174
+ o($VO, [2, 76]),
1175
+ o($VO, [2, 77]),
1176
+ o($VO, [2, 78]),
1177
+ o($Vn, [2, 57], { 76: $VM }),
1178
+ o($Vn, [2, 58], { 76: $VA }),
1179
+ {
1180
+ 5: $VP,
1181
+ 28: 105,
1182
+ 31: $VQ,
1183
+ 34: $VR,
1184
+ 36: $VS,
1185
+ 38: $VT,
1186
+ 40: $VU
1187
+ },
1188
+ {
1189
+ 27: [1, 112],
1190
+ 76: $VA
1191
+ },
1192
+ {
1193
+ 5: $VV,
1194
+ 40: $VW,
1195
+ 56: 113,
1196
+ 57: $VX,
1197
+ 59: $VY
1198
+ },
1199
+ {
1200
+ 27: [1, 118],
1201
+ 76: $VA
1202
+ },
1203
+ {
1204
+ 33: 119,
1205
+ 89: $Vl,
1206
+ 90: $Vm
1207
+ },
1208
+ {
1209
+ 33: 120,
1210
+ 89: $Vl,
1211
+ 90: $Vm
1212
+ },
1213
+ {
1214
+ 75: $Vz,
1215
+ 78: 121,
1216
+ 79: 82,
1217
+ 80: $VB,
1218
+ 81: $VC,
1219
+ 82: $VD,
1220
+ 83: $VE,
1221
+ 84: $VF,
1222
+ 85: $VG,
1223
+ 86: $VH,
1224
+ 87: $VI,
1225
+ 88: $VJ
1226
+ },
1227
+ o($VK, [2, 61]),
1228
+ o($VK, [2, 63]),
1229
+ o($VO, [2, 68]),
1230
+ o($Vn, [2, 21]),
1231
+ { 32: [1, 122] },
1232
+ { 32: [1, 123] },
1233
+ { 32: [1, 124] },
1234
+ { 32: [1, 125] },
1235
+ {
1236
+ 5: $VP,
1237
+ 28: 126,
1238
+ 31: $VQ,
1239
+ 34: $VR,
1240
+ 36: $VS,
1241
+ 38: $VT,
1242
+ 40: $VU
1243
+ },
1244
+ o($Vn, [2, 28]),
1245
+ { 5: [1, 127] },
1246
+ o($Vn, [2, 42]),
1247
+ { 32: [1, 128] },
1248
+ { 32: [1, 129] },
1249
+ {
1250
+ 5: $VV,
1251
+ 40: $VW,
1252
+ 56: 130,
1253
+ 57: $VX,
1254
+ 59: $VY
1255
+ },
1256
+ o($Vn, [2, 47]),
1257
+ { 5: [1, 131] },
1258
+ o($Vn, [2, 48]),
1259
+ o($Vn, [2, 49]),
1260
+ o($VN, [2, 66], {
1261
+ 79: 104,
1262
+ 75: $Vz,
1263
+ 80: $VB,
1264
+ 81: $VC,
1265
+ 82: $VD,
1266
+ 83: $VE,
1267
+ 84: $VF,
1268
+ 85: $VG,
1269
+ 86: $VH,
1270
+ 87: $VI,
1271
+ 88: $VJ
1272
+ }),
1273
+ {
1274
+ 33: 132,
1275
+ 89: $Vl,
1276
+ 90: $Vm
1277
+ },
1278
+ {
1279
+ 35: 133,
1280
+ 89: [1, 134],
1281
+ 90: [1, 135]
1282
+ },
1283
+ {
1284
+ 37: 136,
1285
+ 47: [1, 137],
1286
+ 48: [1, 138],
1287
+ 49: [1, 139]
1288
+ },
1289
+ {
1290
+ 39: 140,
1291
+ 50: [1, 141],
1292
+ 51: [1, 142],
1293
+ 52: [1, 143],
1294
+ 53: [1, 144]
1295
+ },
1296
+ o($Vn, [2, 27]),
1297
+ {
1298
+ 5: $VP,
1299
+ 28: 145,
1300
+ 31: $VQ,
1301
+ 34: $VR,
1302
+ 36: $VS,
1303
+ 38: $VT,
1304
+ 40: $VU
1305
+ },
1306
+ {
1307
+ 58: 146,
1308
+ 89: [1, 147],
1309
+ 90: [1, 148]
1310
+ },
1311
+ {
1312
+ 60: 149,
1313
+ 89: [1, 150],
1314
+ 90: [1, 151]
1315
+ },
1316
+ o($Vn, [2, 46]),
1317
+ {
1318
+ 5: $VV,
1319
+ 40: $VW,
1320
+ 56: 152,
1321
+ 57: $VX,
1322
+ 59: $VY
1323
+ },
1324
+ { 5: [1, 153] },
1325
+ { 5: [1, 154] },
1326
+ { 5: [2, 83] },
1327
+ { 5: [2, 84] },
1328
+ { 5: [1, 155] },
1329
+ { 5: [2, 35] },
1330
+ { 5: [2, 36] },
1331
+ { 5: [2, 37] },
1332
+ { 5: [1, 156] },
1333
+ { 5: [2, 38] },
1334
+ { 5: [2, 39] },
1335
+ { 5: [2, 40] },
1336
+ { 5: [2, 41] },
1337
+ o($Vn, [2, 22]),
1338
+ { 5: [1, 157] },
1339
+ { 5: [2, 87] },
1340
+ { 5: [2, 88] },
1341
+ { 5: [1, 158] },
1342
+ { 5: [2, 89] },
1343
+ { 5: [2, 90] },
1344
+ o($Vn, [2, 43]),
1345
+ {
1346
+ 5: $VP,
1347
+ 28: 159,
1348
+ 31: $VQ,
1349
+ 34: $VR,
1350
+ 36: $VS,
1351
+ 38: $VT,
1352
+ 40: $VU
1353
+ },
1354
+ {
1355
+ 5: $VP,
1356
+ 28: 160,
1357
+ 31: $VQ,
1358
+ 34: $VR,
1359
+ 36: $VS,
1360
+ 38: $VT,
1361
+ 40: $VU
1362
+ },
1363
+ {
1364
+ 5: $VP,
1365
+ 28: 161,
1366
+ 31: $VQ,
1367
+ 34: $VR,
1368
+ 36: $VS,
1369
+ 38: $VT,
1370
+ 40: $VU
1371
+ },
1372
+ {
1373
+ 5: $VP,
1374
+ 28: 162,
1375
+ 31: $VQ,
1376
+ 34: $VR,
1377
+ 36: $VS,
1378
+ 38: $VT,
1379
+ 40: $VU
1380
+ },
1381
+ {
1382
+ 5: $VV,
1383
+ 40: $VW,
1384
+ 56: 163,
1385
+ 57: $VX,
1386
+ 59: $VY
1387
+ },
1388
+ {
1389
+ 5: $VV,
1390
+ 40: $VW,
1391
+ 56: 164,
1392
+ 57: $VX,
1393
+ 59: $VY
1394
+ },
1395
+ o($Vn, [2, 23]),
1396
+ o($Vn, [2, 24]),
1397
+ o($Vn, [2, 25]),
1398
+ o($Vn, [2, 26]),
1399
+ o($Vn, [2, 44]),
1400
+ o($Vn, [2, 45])
1401
+ ],
1402
+ defaultActions: {
1403
+ 8: [2, 2],
1404
+ 12: [2, 1],
1405
+ 41: [2, 3],
1406
+ 42: [2, 8],
1407
+ 43: [2, 9],
1408
+ 44: [2, 10],
1409
+ 45: [2, 11],
1410
+ 46: [2, 12],
1411
+ 47: [2, 13],
1412
+ 48: [2, 14],
1413
+ 49: [2, 15],
1414
+ 50: [2, 16],
1415
+ 134: [2, 83],
1416
+ 135: [2, 84],
1417
+ 137: [2, 35],
1418
+ 138: [2, 36],
1419
+ 139: [2, 37],
1420
+ 141: [2, 38],
1421
+ 142: [2, 39],
1422
+ 143: [2, 40],
1423
+ 144: [2, 41],
1424
+ 147: [2, 87],
1425
+ 148: [2, 88],
1426
+ 150: [2, 89],
1427
+ 151: [2, 90]
1428
+ },
1429
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
1430
+ if (hash.recoverable) this.trace(str);
1431
+ else {
1432
+ var error = new Error(str);
1433
+ error.hash = hash;
1434
+ throw error;
1435
+ }
1436
+ }, "parseError"),
1437
+ parse: /* @__PURE__ */ __name(function parse(input) {
1438
+ var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
1439
+ var args = lstack.slice.call(arguments, 1);
1440
+ var lexer2 = Object.create(this.lexer);
1441
+ var sharedState = { yy: {} };
1442
+ for (var k in this.yy) if (Object.prototype.hasOwnProperty.call(this.yy, k)) sharedState.yy[k] = this.yy[k];
1443
+ lexer2.setInput(input, sharedState.yy);
1444
+ sharedState.yy.lexer = lexer2;
1445
+ sharedState.yy.parser = this;
1446
+ if (typeof lexer2.yylloc == "undefined") lexer2.yylloc = {};
1447
+ var yyloc = lexer2.yylloc;
1448
+ lstack.push(yyloc);
1449
+ var ranges = lexer2.options && lexer2.options.ranges;
1450
+ if (typeof sharedState.yy.parseError === "function") this.parseError = sharedState.yy.parseError;
1451
+ else this.parseError = Object.getPrototypeOf(this).parseError;
1452
+ function popStack(n) {
1453
+ stack.length = stack.length - 2 * n;
1454
+ vstack.length = vstack.length - n;
1455
+ lstack.length = lstack.length - n;
1456
+ }
1457
+ __name(popStack, "popStack");
1458
+ function lex() {
1459
+ var token = tstack.pop() || lexer2.lex() || EOF;
1460
+ if (typeof token !== "number") {
1461
+ if (token instanceof Array) {
1462
+ tstack = token;
1463
+ token = tstack.pop();
1464
+ }
1465
+ token = self.symbols_[token] || token;
1466
+ }
1467
+ return token;
1468
+ }
1469
+ __name(lex, "lex");
1470
+ var symbol, preErrorSymbol, state, action, r, yyval = {}, p, len, newState, expected;
1471
+ while (true) {
1472
+ state = stack[stack.length - 1];
1473
+ if (this.defaultActions[state]) action = this.defaultActions[state];
1474
+ else {
1475
+ if (symbol === null || typeof symbol == "undefined") symbol = lex();
1476
+ action = table[state] && table[state][symbol];
1477
+ }
1478
+ if (typeof action === "undefined" || !action.length || !action[0]) {
1479
+ var errStr = "";
1480
+ expected = [];
1481
+ for (p in table[state]) if (this.terminals_[p] && p > TERROR) expected.push("'" + this.terminals_[p] + "'");
1482
+ if (lexer2.showPosition) errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
1483
+ else errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
1484
+ this.parseError(errStr, {
1485
+ text: lexer2.match,
1486
+ token: this.terminals_[symbol] || symbol,
1487
+ line: lexer2.yylineno,
1488
+ loc: yyloc,
1489
+ expected
1490
+ });
1491
+ }
1492
+ if (action[0] instanceof Array && action.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
1493
+ switch (action[0]) {
1494
+ case 1:
1495
+ stack.push(symbol);
1496
+ vstack.push(lexer2.yytext);
1497
+ lstack.push(lexer2.yylloc);
1498
+ stack.push(action[1]);
1499
+ symbol = null;
1500
+ if (!preErrorSymbol) {
1501
+ yyleng = lexer2.yyleng;
1502
+ yytext = lexer2.yytext;
1503
+ yylineno = lexer2.yylineno;
1504
+ yyloc = lexer2.yylloc;
1505
+ if (recovering > 0) recovering--;
1506
+ } else {
1507
+ symbol = preErrorSymbol;
1508
+ preErrorSymbol = null;
1509
+ }
1510
+ break;
1511
+ case 2:
1512
+ len = this.productions_[action[1]][1];
1513
+ yyval.$ = vstack[vstack.length - len];
1514
+ yyval._$ = {
1515
+ first_line: lstack[lstack.length - (len || 1)].first_line,
1516
+ last_line: lstack[lstack.length - 1].last_line,
1517
+ first_column: lstack[lstack.length - (len || 1)].first_column,
1518
+ last_column: lstack[lstack.length - 1].last_column
1519
+ };
1520
+ if (ranges) yyval._$.range = [lstack[lstack.length - (len || 1)].range[0], lstack[lstack.length - 1].range[1]];
1521
+ r = this.performAction.apply(yyval, [
1522
+ yytext,
1523
+ yyleng,
1524
+ yylineno,
1525
+ sharedState.yy,
1526
+ action[1],
1527
+ vstack,
1528
+ lstack
1529
+ ].concat(args));
1530
+ if (typeof r !== "undefined") return r;
1531
+ if (len) {
1532
+ stack = stack.slice(0, -1 * len * 2);
1533
+ vstack = vstack.slice(0, -1 * len);
1534
+ lstack = lstack.slice(0, -1 * len);
1535
+ }
1536
+ stack.push(this.productions_[action[1]][0]);
1537
+ vstack.push(yyval.$);
1538
+ lstack.push(yyval._$);
1539
+ newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
1540
+ stack.push(newState);
1541
+ break;
1542
+ case 3: return true;
1543
+ }
1544
+ }
1545
+ return true;
1546
+ }, "parse")
1547
+ };
1548
+ parser2.lexer = /* @__PURE__ */ (function() {
1549
+ return {
1550
+ EOF: 1,
1551
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
1552
+ if (this.yy.parser) this.yy.parser.parseError(str, hash);
1553
+ else throw new Error(str);
1554
+ }, "parseError"),
1555
+ setInput: /* @__PURE__ */ __name(function(input, yy) {
1556
+ this.yy = yy || this.yy || {};
1557
+ this._input = input;
1558
+ this._more = this._backtrack = this.done = false;
1559
+ this.yylineno = this.yyleng = 0;
1560
+ this.yytext = this.matched = this.match = "";
1561
+ this.conditionStack = ["INITIAL"];
1562
+ this.yylloc = {
1563
+ first_line: 1,
1564
+ first_column: 0,
1565
+ last_line: 1,
1566
+ last_column: 0
1567
+ };
1568
+ if (this.options.ranges) this.yylloc.range = [0, 0];
1569
+ this.offset = 0;
1570
+ return this;
1571
+ }, "setInput"),
1572
+ input: /* @__PURE__ */ __name(function() {
1573
+ var ch = this._input[0];
1574
+ this.yytext += ch;
1575
+ this.yyleng++;
1576
+ this.offset++;
1577
+ this.match += ch;
1578
+ this.matched += ch;
1579
+ if (ch.match(/(?:\r\n?|\n).*/g)) {
1580
+ this.yylineno++;
1581
+ this.yylloc.last_line++;
1582
+ } else this.yylloc.last_column++;
1583
+ if (this.options.ranges) this.yylloc.range[1]++;
1584
+ this._input = this._input.slice(1);
1585
+ return ch;
1586
+ }, "input"),
1587
+ unput: /* @__PURE__ */ __name(function(ch) {
1588
+ var len = ch.length;
1589
+ var lines = ch.split(/(?:\r\n?|\n)/g);
1590
+ this._input = ch + this._input;
1591
+ this.yytext = this.yytext.substr(0, this.yytext.length - len);
1592
+ this.offset -= len;
1593
+ var oldLines = this.match.split(/(?:\r\n?|\n)/g);
1594
+ this.match = this.match.substr(0, this.match.length - 1);
1595
+ this.matched = this.matched.substr(0, this.matched.length - 1);
1596
+ if (lines.length - 1) this.yylineno -= lines.length - 1;
1597
+ var r = this.yylloc.range;
1598
+ this.yylloc = {
1599
+ first_line: this.yylloc.first_line,
1600
+ last_line: this.yylineno + 1,
1601
+ first_column: this.yylloc.first_column,
1602
+ 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
1603
+ };
1604
+ if (this.options.ranges) this.yylloc.range = [r[0], r[0] + this.yyleng - len];
1605
+ this.yyleng = this.yytext.length;
1606
+ return this;
1607
+ }, "unput"),
1608
+ more: /* @__PURE__ */ __name(function() {
1609
+ this._more = true;
1610
+ return this;
1611
+ }, "more"),
1612
+ reject: /* @__PURE__ */ __name(function() {
1613
+ if (this.options.backtrack_lexer) this._backtrack = true;
1614
+ else 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(), {
1615
+ text: "",
1616
+ token: null,
1617
+ line: this.yylineno
1618
+ });
1619
+ return this;
1620
+ }, "reject"),
1621
+ less: /* @__PURE__ */ __name(function(n) {
1622
+ this.unput(this.match.slice(n));
1623
+ }, "less"),
1624
+ pastInput: /* @__PURE__ */ __name(function() {
1625
+ var past = this.matched.substr(0, this.matched.length - this.match.length);
1626
+ return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
1627
+ }, "pastInput"),
1628
+ upcomingInput: /* @__PURE__ */ __name(function() {
1629
+ var next = this.match;
1630
+ if (next.length < 20) next += this._input.substr(0, 20 - next.length);
1631
+ return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
1632
+ }, "upcomingInput"),
1633
+ showPosition: /* @__PURE__ */ __name(function() {
1634
+ var pre = this.pastInput();
1635
+ var c = new Array(pre.length + 1).join("-");
1636
+ return pre + this.upcomingInput() + "\n" + c + "^";
1637
+ }, "showPosition"),
1638
+ test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
1639
+ var token, lines, backup;
1640
+ if (this.options.backtrack_lexer) {
1641
+ backup = {
1642
+ yylineno: this.yylineno,
1643
+ yylloc: {
1644
+ first_line: this.yylloc.first_line,
1645
+ last_line: this.last_line,
1646
+ first_column: this.yylloc.first_column,
1647
+ last_column: this.yylloc.last_column
1648
+ },
1649
+ yytext: this.yytext,
1650
+ match: this.match,
1651
+ matches: this.matches,
1652
+ matched: this.matched,
1653
+ yyleng: this.yyleng,
1654
+ offset: this.offset,
1655
+ _more: this._more,
1656
+ _input: this._input,
1657
+ yy: this.yy,
1658
+ conditionStack: this.conditionStack.slice(0),
1659
+ done: this.done
1660
+ };
1661
+ if (this.options.ranges) backup.yylloc.range = this.yylloc.range.slice(0);
1662
+ }
1663
+ lines = match[0].match(/(?:\r\n?|\n).*/g);
1664
+ if (lines) this.yylineno += lines.length;
1665
+ this.yylloc = {
1666
+ first_line: this.yylloc.last_line,
1667
+ last_line: this.yylineno + 1,
1668
+ first_column: this.yylloc.last_column,
1669
+ last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
1670
+ };
1671
+ this.yytext += match[0];
1672
+ this.match += match[0];
1673
+ this.matches = match;
1674
+ this.yyleng = this.yytext.length;
1675
+ if (this.options.ranges) this.yylloc.range = [this.offset, this.offset += this.yyleng];
1676
+ this._more = false;
1677
+ this._backtrack = false;
1678
+ this._input = this._input.slice(match[0].length);
1679
+ this.matched += match[0];
1680
+ token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
1681
+ if (this.done && this._input) this.done = false;
1682
+ if (token) return token;
1683
+ else if (this._backtrack) {
1684
+ for (var k in backup) this[k] = backup[k];
1685
+ return false;
1686
+ }
1687
+ return false;
1688
+ }, "test_match"),
1689
+ next: /* @__PURE__ */ __name(function() {
1690
+ if (this.done) return this.EOF;
1691
+ if (!this._input) this.done = true;
1692
+ var token, match, tempMatch, index;
1693
+ if (!this._more) {
1694
+ this.yytext = "";
1695
+ this.match = "";
1696
+ }
1697
+ var rules = this._currentRules();
1698
+ for (var i = 0; i < rules.length; i++) {
1699
+ tempMatch = this._input.match(this.rules[rules[i]]);
1700
+ if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
1701
+ match = tempMatch;
1702
+ index = i;
1703
+ if (this.options.backtrack_lexer) {
1704
+ token = this.test_match(tempMatch, rules[i]);
1705
+ if (token !== false) return token;
1706
+ else if (this._backtrack) {
1707
+ match = false;
1708
+ continue;
1709
+ } else return false;
1710
+ } else if (!this.options.flex) break;
1711
+ }
1712
+ }
1713
+ if (match) {
1714
+ token = this.test_match(match, rules[index]);
1715
+ if (token !== false) return token;
1716
+ return false;
1717
+ }
1718
+ if (this._input === "") return this.EOF;
1719
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1720
+ text: "",
1721
+ token: null,
1722
+ line: this.yylineno
1723
+ });
1724
+ }, "next"),
1725
+ lex: /* @__PURE__ */ __name(function lex() {
1726
+ var r = this.next();
1727
+ if (r) return r;
1728
+ else return this.lex();
1729
+ }, "lex"),
1730
+ begin: /* @__PURE__ */ __name(function begin(condition) {
1731
+ this.conditionStack.push(condition);
1732
+ }, "begin"),
1733
+ popState: /* @__PURE__ */ __name(function popState() {
1734
+ if (this.conditionStack.length - 1 > 0) return this.conditionStack.pop();
1735
+ else return this.conditionStack[0];
1736
+ }, "popState"),
1737
+ _currentRules: /* @__PURE__ */ __name(function _currentRules() {
1738
+ if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
1739
+ else return this.conditions["INITIAL"].rules;
1740
+ }, "_currentRules"),
1741
+ topState: /* @__PURE__ */ __name(function topState(n) {
1742
+ n = this.conditionStack.length - 1 - Math.abs(n || 0);
1743
+ if (n >= 0) return this.conditionStack[n];
1744
+ else return "INITIAL";
1745
+ }, "topState"),
1746
+ pushState: /* @__PURE__ */ __name(function pushState(condition) {
1747
+ this.begin(condition);
1748
+ }, "pushState"),
1749
+ stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
1750
+ return this.conditionStack.length;
1751
+ }, "stateStackSize"),
1752
+ options: { "case-insensitive": true },
1753
+ performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
1754
+ switch ($avoiding_name_collisions) {
1755
+ case 0: return "title";
1756
+ case 1:
1757
+ this.begin("acc_title");
1758
+ return 9;
1759
+ case 2:
1760
+ this.popState();
1761
+ return "acc_title_value";
1762
+ case 3:
1763
+ this.begin("acc_descr");
1764
+ return 11;
1765
+ case 4:
1766
+ this.popState();
1767
+ return "acc_descr_value";
1768
+ case 5:
1769
+ this.begin("acc_descr_multiline");
1770
+ break;
1771
+ case 6:
1772
+ this.popState();
1773
+ break;
1774
+ case 7: return "acc_descr_multiline_value";
1775
+ case 8: return 21;
1776
+ case 9: return 22;
1777
+ case 10: return 23;
1778
+ case 11: return 24;
1779
+ case 12: return 5;
1780
+ case 13: break;
1781
+ case 14: break;
1782
+ case 15: break;
1783
+ case 16: return 8;
1784
+ case 17: return 6;
1785
+ case 18: return 27;
1786
+ case 19: return 40;
1787
+ case 20: return 29;
1788
+ case 21: return 32;
1789
+ case 22: return 31;
1790
+ case 23: return 34;
1791
+ case 24: return 36;
1792
+ case 25: return 38;
1793
+ case 26: return 41;
1794
+ case 27: return 42;
1795
+ case 28: return 43;
1796
+ case 29: return 44;
1797
+ case 30: return 45;
1798
+ case 31: return 46;
1799
+ case 32: return 47;
1800
+ case 33: return 48;
1801
+ case 34: return 49;
1802
+ case 35: return 50;
1803
+ case 36: return 51;
1804
+ case 37: return 52;
1805
+ case 38: return 53;
1806
+ case 39: return 54;
1807
+ case 40: return 65;
1808
+ case 41: return 66;
1809
+ case 42: return 67;
1810
+ case 43: return 68;
1811
+ case 44: return 69;
1812
+ case 45: return 70;
1813
+ case 46: return 71;
1814
+ case 47: return 57;
1815
+ case 48: return 59;
1816
+ case 49:
1817
+ this.begin("style");
1818
+ return 77;
1819
+ case 50: return 75;
1820
+ case 51: return 81;
1821
+ case 52: return 88;
1822
+ case 53: return "PERCENT";
1823
+ case 54: return 86;
1824
+ case 55: return 84;
1825
+ case 56: break;
1826
+ case 57:
1827
+ this.begin("string");
1828
+ break;
1829
+ case 58:
1830
+ this.popState();
1831
+ break;
1832
+ case 59:
1833
+ this.begin("style");
1834
+ return 72;
1835
+ case 60:
1836
+ this.begin("style");
1837
+ return 74;
1838
+ case 61: return 61;
1839
+ case 62: return 64;
1840
+ case 63: return 63;
1841
+ case 64:
1842
+ this.begin("string");
1843
+ break;
1844
+ case 65:
1845
+ this.popState();
1846
+ break;
1847
+ case 66: return "qString";
1848
+ case 67:
1849
+ yy_.yytext = yy_.yytext.trim();
1850
+ return 89;
1851
+ case 68: return 75;
1852
+ case 69: return 80;
1853
+ case 70: return 76;
1854
+ }
1855
+ }, "anonymous"),
1856
+ rules: [
1857
+ /^(?:title\s[^#\n;]+)/i,
1858
+ /^(?:accTitle\s*:\s*)/i,
1859
+ /^(?:(?!\n||)*[^\n]*)/i,
1860
+ /^(?:accDescr\s*:\s*)/i,
1861
+ /^(?:(?!\n||)*[^\n]*)/i,
1862
+ /^(?:accDescr\s*\{\s*)/i,
1863
+ /^(?:[\}])/i,
1864
+ /^(?:[^\}]*)/i,
1865
+ /^(?:.*direction\s+TB[^\n]*)/i,
1866
+ /^(?:.*direction\s+BT[^\n]*)/i,
1867
+ /^(?:.*direction\s+RL[^\n]*)/i,
1868
+ /^(?:.*direction\s+LR[^\n]*)/i,
1869
+ /^(?:(\r?\n)+)/i,
1870
+ /^(?:\s+)/i,
1871
+ /^(?:#[^\n]*)/i,
1872
+ /^(?:%[^\n]*)/i,
1873
+ /^(?:$)/i,
1874
+ /^(?:requirementDiagram\b)/i,
1875
+ /^(?:\{)/i,
1876
+ /^(?:\})/i,
1877
+ /^(?::{3})/i,
1878
+ /^(?::)/i,
1879
+ /^(?:id\b)/i,
1880
+ /^(?:text\b)/i,
1881
+ /^(?:risk\b)/i,
1882
+ /^(?:verifyMethod\b)/i,
1883
+ /^(?:requirement\b)/i,
1884
+ /^(?:functionalRequirement\b)/i,
1885
+ /^(?:interfaceRequirement\b)/i,
1886
+ /^(?:performanceRequirement\b)/i,
1887
+ /^(?:physicalRequirement\b)/i,
1888
+ /^(?:designConstraint\b)/i,
1889
+ /^(?:low\b)/i,
1890
+ /^(?:medium\b)/i,
1891
+ /^(?:high\b)/i,
1892
+ /^(?:analysis\b)/i,
1893
+ /^(?:demonstration\b)/i,
1894
+ /^(?:inspection\b)/i,
1895
+ /^(?:test\b)/i,
1896
+ /^(?:element\b)/i,
1897
+ /^(?:contains\b)/i,
1898
+ /^(?:copies\b)/i,
1899
+ /^(?:derives\b)/i,
1900
+ /^(?:satisfies\b)/i,
1901
+ /^(?:verifies\b)/i,
1902
+ /^(?:refines\b)/i,
1903
+ /^(?:traces\b)/i,
1904
+ /^(?:type\b)/i,
1905
+ /^(?:docref\b)/i,
1906
+ /^(?:style\b)/i,
1907
+ /^(?:\w+)/i,
1908
+ /^(?::)/i,
1909
+ /^(?:;)/i,
1910
+ /^(?:%)/i,
1911
+ /^(?:-)/i,
1912
+ /^(?:#)/i,
1913
+ /^(?: )/i,
1914
+ /^(?:["])/i,
1915
+ /^(?:\n)/i,
1916
+ /^(?:classDef\b)/i,
1917
+ /^(?:class\b)/i,
1918
+ /^(?:<-)/i,
1919
+ /^(?:->)/i,
1920
+ /^(?:-)/i,
1921
+ /^(?:["])/i,
1922
+ /^(?:["])/i,
1923
+ /^(?:[^"]*)/i,
1924
+ /^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,
1925
+ /^(?:\w+)/i,
1926
+ /^(?:[0-9]+)/i,
1927
+ /^(?:,)/i
1928
+ ],
1929
+ conditions: {
1930
+ "acc_descr_multiline": {
1931
+ "rules": [
1932
+ 6,
1933
+ 7,
1934
+ 68,
1935
+ 69,
1936
+ 70
1937
+ ],
1938
+ "inclusive": false
1939
+ },
1940
+ "acc_descr": {
1941
+ "rules": [
1942
+ 4,
1943
+ 68,
1944
+ 69,
1945
+ 70
1946
+ ],
1947
+ "inclusive": false
1948
+ },
1949
+ "acc_title": {
1950
+ "rules": [
1951
+ 2,
1952
+ 68,
1953
+ 69,
1954
+ 70
1955
+ ],
1956
+ "inclusive": false
1957
+ },
1958
+ "style": {
1959
+ "rules": [
1960
+ 50,
1961
+ 51,
1962
+ 52,
1963
+ 53,
1964
+ 54,
1965
+ 55,
1966
+ 56,
1967
+ 57,
1968
+ 58,
1969
+ 68,
1970
+ 69,
1971
+ 70
1972
+ ],
1973
+ "inclusive": false
1974
+ },
1975
+ "unqString": {
1976
+ "rules": [
1977
+ 68,
1978
+ 69,
1979
+ 70
1980
+ ],
1981
+ "inclusive": false
1982
+ },
1983
+ "token": {
1984
+ "rules": [
1985
+ 68,
1986
+ 69,
1987
+ 70
1988
+ ],
1989
+ "inclusive": false
1990
+ },
1991
+ "string": {
1992
+ "rules": [
1993
+ 65,
1994
+ 66,
1995
+ 68,
1996
+ 69,
1997
+ 70
1998
+ ],
1999
+ "inclusive": false
2000
+ },
2001
+ "INITIAL": {
2002
+ "rules": [
2003
+ 0,
2004
+ 1,
2005
+ 3,
2006
+ 5,
2007
+ 8,
2008
+ 9,
2009
+ 10,
2010
+ 11,
2011
+ 12,
2012
+ 13,
2013
+ 14,
2014
+ 15,
2015
+ 16,
2016
+ 17,
2017
+ 18,
2018
+ 19,
2019
+ 20,
2020
+ 21,
2021
+ 22,
2022
+ 23,
2023
+ 24,
2024
+ 25,
2025
+ 26,
2026
+ 27,
2027
+ 28,
2028
+ 29,
2029
+ 30,
2030
+ 31,
2031
+ 32,
2032
+ 33,
2033
+ 34,
2034
+ 35,
2035
+ 36,
2036
+ 37,
2037
+ 38,
2038
+ 39,
2039
+ 40,
2040
+ 41,
2041
+ 42,
2042
+ 43,
2043
+ 44,
2044
+ 45,
2045
+ 46,
2046
+ 47,
2047
+ 48,
2048
+ 49,
2049
+ 59,
2050
+ 60,
2051
+ 61,
2052
+ 62,
2053
+ 63,
2054
+ 64,
2055
+ 67,
2056
+ 68,
2057
+ 69,
2058
+ 70
2059
+ ],
2060
+ "inclusive": true
2061
+ }
2062
+ }
2063
+ };
2064
+ })();
2065
+ function Parser() {
2066
+ this.yy = {};
2067
+ }
2068
+ __name(Parser, "Parser");
2069
+ Parser.prototype = parser2;
2070
+ parser2.Parser = Parser;
2071
+ return new Parser();
2072
+ })();
2073
+ parser.parser = parser;
2074
+ var requirementDiagram_default = parser;
2075
+ var RequirementDB = class {
2076
+ constructor() {
2077
+ this.relations = [];
2078
+ this.latestRequirement = this.getInitialRequirement();
2079
+ this.requirements = /* @__PURE__ */ new Map();
2080
+ this.latestElement = this.getInitialElement();
2081
+ this.elements = /* @__PURE__ */ new Map();
2082
+ this.classes = /* @__PURE__ */ new Map();
2083
+ this.direction = "TB";
2084
+ this.RequirementType = {
2085
+ REQUIREMENT: "Requirement",
2086
+ FUNCTIONAL_REQUIREMENT: "Functional Requirement",
2087
+ INTERFACE_REQUIREMENT: "Interface Requirement",
2088
+ PERFORMANCE_REQUIREMENT: "Performance Requirement",
2089
+ PHYSICAL_REQUIREMENT: "Physical Requirement",
2090
+ DESIGN_CONSTRAINT: "Design Constraint"
2091
+ };
2092
+ this.RiskLevel = {
2093
+ LOW_RISK: "Low",
2094
+ MED_RISK: "Medium",
2095
+ HIGH_RISK: "High"
2096
+ };
2097
+ this.VerifyType = {
2098
+ VERIFY_ANALYSIS: "Analysis",
2099
+ VERIFY_DEMONSTRATION: "Demonstration",
2100
+ VERIFY_INSPECTION: "Inspection",
2101
+ VERIFY_TEST: "Test"
2102
+ };
2103
+ this.Relationships = {
2104
+ CONTAINS: "contains",
2105
+ COPIES: "copies",
2106
+ DERIVES: "derives",
2107
+ SATISFIES: "satisfies",
2108
+ VERIFIES: "verifies",
2109
+ REFINES: "refines",
2110
+ TRACES: "traces"
2111
+ };
2112
+ this.setAccTitle = setAccTitle;
2113
+ this.getAccTitle = getAccTitle;
2114
+ this.setAccDescription = setAccDescription;
2115
+ this.getAccDescription = getAccDescription;
2116
+ this.setDiagramTitle = setDiagramTitle;
2117
+ this.getDiagramTitle = getDiagramTitle;
2118
+ this.getConfig = /* @__PURE__ */ __name(() => getConfig2().requirement, "getConfig");
2119
+ this.clear();
2120
+ this.setDirection = this.setDirection.bind(this);
2121
+ this.addRequirement = this.addRequirement.bind(this);
2122
+ this.setNewReqId = this.setNewReqId.bind(this);
2123
+ this.setNewReqRisk = this.setNewReqRisk.bind(this);
2124
+ this.setNewReqText = this.setNewReqText.bind(this);
2125
+ this.setNewReqVerifyMethod = this.setNewReqVerifyMethod.bind(this);
2126
+ this.addElement = this.addElement.bind(this);
2127
+ this.setNewElementType = this.setNewElementType.bind(this);
2128
+ this.setNewElementDocRef = this.setNewElementDocRef.bind(this);
2129
+ this.addRelationship = this.addRelationship.bind(this);
2130
+ this.setCssStyle = this.setCssStyle.bind(this);
2131
+ this.setClass = this.setClass.bind(this);
2132
+ this.defineClass = this.defineClass.bind(this);
2133
+ this.setAccTitle = this.setAccTitle.bind(this);
2134
+ this.setAccDescription = this.setAccDescription.bind(this);
2135
+ }
2136
+ static {
2137
+ __name(this, "RequirementDB");
2138
+ }
2139
+ getDirection() {
2140
+ return this.direction;
2141
+ }
2142
+ setDirection(dir) {
2143
+ this.direction = dir;
2144
+ }
2145
+ resetLatestRequirement() {
2146
+ this.latestRequirement = this.getInitialRequirement();
2147
+ }
2148
+ resetLatestElement() {
2149
+ this.latestElement = this.getInitialElement();
2150
+ }
2151
+ getInitialRequirement() {
2152
+ return {
2153
+ requirementId: "",
2154
+ text: "",
2155
+ risk: "",
2156
+ verifyMethod: "",
2157
+ name: "",
2158
+ type: "",
2159
+ cssStyles: [],
2160
+ classes: ["default"]
2161
+ };
2162
+ }
2163
+ getInitialElement() {
2164
+ return {
2165
+ name: "",
2166
+ type: "",
2167
+ docRef: "",
2168
+ cssStyles: [],
2169
+ classes: ["default"]
2170
+ };
2171
+ }
2172
+ addRequirement(name, type) {
2173
+ if (!this.requirements.has(name)) this.requirements.set(name, {
2174
+ name,
2175
+ type,
2176
+ requirementId: this.latestRequirement.requirementId,
2177
+ text: this.latestRequirement.text,
2178
+ risk: this.latestRequirement.risk,
2179
+ verifyMethod: this.latestRequirement.verifyMethod,
2180
+ cssStyles: [],
2181
+ classes: ["default"]
2182
+ });
2183
+ this.resetLatestRequirement();
2184
+ return this.requirements.get(name);
2185
+ }
2186
+ getRequirements() {
2187
+ return this.requirements;
2188
+ }
2189
+ setNewReqId(id) {
2190
+ if (this.latestRequirement !== void 0) this.latestRequirement.requirementId = id;
2191
+ }
2192
+ setNewReqText(text) {
2193
+ if (this.latestRequirement !== void 0) this.latestRequirement.text = text;
2194
+ }
2195
+ setNewReqRisk(risk) {
2196
+ if (this.latestRequirement !== void 0) this.latestRequirement.risk = risk;
2197
+ }
2198
+ setNewReqVerifyMethod(verifyMethod) {
2199
+ if (this.latestRequirement !== void 0) this.latestRequirement.verifyMethod = verifyMethod;
2200
+ }
2201
+ addElement(name) {
2202
+ if (!this.elements.has(name)) {
2203
+ this.elements.set(name, {
2204
+ name,
2205
+ type: this.latestElement.type,
2206
+ docRef: this.latestElement.docRef,
2207
+ cssStyles: [],
2208
+ classes: ["default"]
2209
+ });
2210
+ log.info("Added new element: ", name);
2211
+ }
2212
+ this.resetLatestElement();
2213
+ return this.elements.get(name);
2214
+ }
2215
+ getElements() {
2216
+ return this.elements;
2217
+ }
2218
+ setNewElementType(type) {
2219
+ if (this.latestElement !== void 0) this.latestElement.type = type;
2220
+ }
2221
+ setNewElementDocRef(docRef) {
2222
+ if (this.latestElement !== void 0) this.latestElement.docRef = docRef;
2223
+ }
2224
+ addRelationship(type, src, dst) {
2225
+ this.relations.push({
2226
+ type,
2227
+ src,
2228
+ dst
2229
+ });
2230
+ }
2231
+ getRelationships() {
2232
+ return this.relations;
2233
+ }
2234
+ clear() {
2235
+ this.relations = [];
2236
+ this.resetLatestRequirement();
2237
+ this.requirements = /* @__PURE__ */ new Map();
2238
+ this.resetLatestElement();
2239
+ this.elements = /* @__PURE__ */ new Map();
2240
+ this.classes = /* @__PURE__ */ new Map();
2241
+ clear();
2242
+ }
2243
+ setCssStyle(ids, styles) {
2244
+ for (const id of ids) {
2245
+ const node = this.requirements.get(id) ?? this.elements.get(id);
2246
+ if (!styles || !node) return;
2247
+ for (const s of styles) if (s.includes(",")) node.cssStyles.push(...s.split(","));
2248
+ else node.cssStyles.push(s);
2249
+ }
2250
+ }
2251
+ setClass(ids, classNames) {
2252
+ for (const id of ids) {
2253
+ const node = this.requirements.get(id) ?? this.elements.get(id);
2254
+ if (node) for (const _class of classNames) {
2255
+ node.classes.push(_class);
2256
+ const styles = this.classes.get(_class)?.styles;
2257
+ if (styles) node.cssStyles.push(...styles);
2258
+ }
2259
+ }
2260
+ }
2261
+ defineClass(ids, style) {
2262
+ for (const id of ids) {
2263
+ let styleClass = this.classes.get(id);
2264
+ if (styleClass === void 0) {
2265
+ styleClass = {
2266
+ id,
2267
+ styles: [],
2268
+ textStyles: []
2269
+ };
2270
+ this.classes.set(id, styleClass);
2271
+ }
2272
+ if (style) style.forEach(function(s) {
2273
+ if (/color/.exec(s)) {
2274
+ const newStyle = s.replace("fill", "bgFill");
2275
+ styleClass.textStyles.push(newStyle);
2276
+ }
2277
+ styleClass.styles.push(s);
2278
+ });
2279
+ this.requirements.forEach((value) => {
2280
+ if (value.classes.includes(id)) value.cssStyles.push(...style.flatMap((s) => s.split(",")));
2281
+ });
2282
+ this.elements.forEach((value) => {
2283
+ if (value.classes.includes(id)) value.cssStyles.push(...style.flatMap((s) => s.split(",")));
2284
+ });
2285
+ }
2286
+ }
2287
+ getClasses() {
2288
+ return this.classes;
2289
+ }
2290
+ getData() {
2291
+ const config = getConfig2();
2292
+ const nodes = [];
2293
+ const edges = [];
2294
+ for (const requirement of this.requirements.values()) {
2295
+ const node = requirement;
2296
+ node.id = requirement.name;
2297
+ node.cssStyles = requirement.cssStyles;
2298
+ node.cssClasses = requirement.classes.join(" ");
2299
+ node.shape = "requirementBox";
2300
+ node.look = config.look;
2301
+ node.colorIndex = nodes.length;
2302
+ nodes.push(node);
2303
+ }
2304
+ for (const element of this.elements.values()) {
2305
+ const node = element;
2306
+ node.shape = "requirementBox";
2307
+ node.look = config.look;
2308
+ node.id = element.name;
2309
+ node.cssStyles = element.cssStyles;
2310
+ node.cssClasses = element.classes.join(" ");
2311
+ node.colorIndex = nodes.length;
2312
+ nodes.push(node);
2313
+ }
2314
+ let counter = 0;
2315
+ for (const relation of this.relations) {
2316
+ const isContains = relation.type === this.Relationships.CONTAINS;
2317
+ const edge = {
2318
+ id: `${relation.src}-${relation.dst}-${counter++}`,
2319
+ start: this.requirements.get(relation.src)?.name ?? this.elements.get(relation.src)?.name,
2320
+ end: this.requirements.get(relation.dst)?.name ?? this.elements.get(relation.dst)?.name,
2321
+ label: `&lt;&lt;${relation.type}&gt;&gt;`,
2322
+ classes: "relationshipLine",
2323
+ style: ["fill:none", isContains ? "" : "stroke-dasharray: 10,7"],
2324
+ labelpos: "c",
2325
+ thickness: "normal",
2326
+ type: "normal",
2327
+ pattern: isContains ? "normal" : "dashed",
2328
+ arrowTypeStart: isContains ? "requirement_contains" : "",
2329
+ arrowTypeEnd: isContains ? "" : "requirement_arrow",
2330
+ look: config.look,
2331
+ labelType: "markdown"
2332
+ };
2333
+ edges.push(edge);
2334
+ }
2335
+ return {
2336
+ nodes,
2337
+ edges,
2338
+ other: {},
2339
+ config,
2340
+ direction: this.getDirection()
2341
+ };
2342
+ }
2343
+ };
2344
+ var genColor = /* @__PURE__ */ __name((options) => {
2345
+ const { themeVariables, look } = getConfig();
2346
+ const { bkgColorArray, borderColorArray } = themeVariables;
2347
+ if (!borderColorArray?.length) return "";
2348
+ let sections = "";
2349
+ for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) sections += `
2350
+
2351
+ [data-look="${look}"][data-color-id="color-${i}"].node path {
2352
+ stroke: ${borderColorArray[i]};
2353
+ fill: ${bkgColorArray?.length ? bkgColorArray[i] : ""};
2354
+ }
2355
+
2356
+ [data-look="${look}"][data-color-id="color-${i}"].node rect {
2357
+ stroke: ${borderColorArray[i]};
2358
+ fill: ${bkgColorArray?.length ? bkgColorArray[i] : ""};
2359
+ }
2360
+ `;
2361
+ return sections;
2362
+ }, "genColor");
2363
+ var styles_default = /* @__PURE__ */ __name((options) => {
2364
+ const { look, themeVariables } = getConfig();
2365
+ const { requirementEdgeLabelBackground } = themeVariables;
2366
+ return `
2367
+ ${genColor(options)}
2368
+ marker {
2369
+ fill: ${options.relationColor};
2370
+ stroke: ${options.relationColor};
2371
+ }
2372
+
2373
+ marker.cross {
2374
+ stroke: ${options.lineColor};
2375
+ }
2376
+
2377
+ svg {
2378
+ font-family: ${options.fontFamily};
2379
+ font-size: ${options.fontSize};
2380
+ }
2381
+
2382
+ .reqBox {
2383
+ fill: ${options.requirementBackground};
2384
+ fill-opacity: 1.0;
2385
+ stroke: ${options.requirementBorderColor};
2386
+ stroke-width: ${options.requirementBorderSize};
2387
+ }
2388
+
2389
+ .reqTitle, .reqLabel{
2390
+ fill: ${options.requirementTextColor};
2391
+ }
2392
+ .reqLabelBox {
2393
+ fill: ${options.relationLabelBackground};
2394
+ fill-opacity: 1.0;
2395
+ }
2396
+
2397
+ .req-title-line {
2398
+ stroke: ${options.requirementBorderColor};
2399
+ stroke-width: ${options.requirementBorderSize};
2400
+ }
2401
+ .relationshipLine {
2402
+ stroke: ${options.relationColor};
2403
+ stroke-width: ${look === "neo" ? options.strokeWidth : "1px"};
2404
+ }
2405
+ .relationshipLabel {
2406
+ fill: ${options.relationLabelColor};
2407
+ }
2408
+ .edgeLabel {
2409
+ background-color: ${options.edgeLabelBackground};
2410
+ }
2411
+ .edgeLabel .label rect {
2412
+ fill: ${options.edgeLabelBackground};
2413
+ }
2414
+ .edgeLabel .label text {
2415
+ fill: ${options.relationLabelColor};
2416
+ }
2417
+ .divider {
2418
+ stroke: ${options.nodeBorder};
2419
+ stroke-width: 1;
2420
+ }
2421
+ .label {
2422
+ font-family: ${options.fontFamily};
2423
+ color: ${options.nodeTextColor || options.textColor};
2424
+ }
2425
+ .label text,span {
2426
+ fill: ${options.nodeTextColor || options.textColor};
2427
+ color: ${options.nodeTextColor || options.textColor};
2428
+ }
2429
+ .labelBkg {
2430
+ background-color: ${requirementEdgeLabelBackground ?? options.edgeLabelBackground};
2431
+ }
2432
+
2433
+ `;
2434
+ }, "getStyles");
2435
+ var requirementRenderer_exports = {};
2436
+ __export(requirementRenderer_exports, { draw: () => draw });
2437
+ var draw = /* @__PURE__ */ __name(async function(text, id, _version, diag) {
2438
+ log.info("REF0:");
2439
+ log.info("Drawing requirement diagram (unified)", id);
2440
+ const { securityLevel, state: conf, layout, look } = getConfig2();
2441
+ const data4Layout = diag.db.getData();
2442
+ const svg = getDiagramElement(id, securityLevel);
2443
+ data4Layout.type = diag.type;
2444
+ data4Layout.layoutAlgorithm = getRegisteredLayoutAlgorithm(layout);
2445
+ data4Layout.nodeSpacing = conf?.nodeSpacing ?? 50;
2446
+ data4Layout.rankSpacing = conf?.rankSpacing ?? 50;
2447
+ data4Layout.markers = look === "neo" ? ["requirement_contains_neo", "requirement_arrow_neo"] : ["requirement_contains", "requirement_arrow"];
2448
+ data4Layout.diagramId = id;
2449
+ await render(data4Layout, svg);
2450
+ const padding = 8;
2451
+ utils_default.insertTitle(svg, "requirementDiagramTitleText", conf?.titleTopMargin ?? 25, diag.db.getDiagramTitle());
2452
+ setupViewPortForSVG(svg, padding, "requirementDiagram", conf?.useMaxWidth ?? true);
2453
+ }, "draw");
2454
+ var diagram = {
2455
+ parser: requirementDiagram_default,
2456
+ get db() {
2457
+ return new RequirementDB();
2458
+ },
2459
+ renderer: requirementRenderer_exports,
2460
+ styles: styles_default
2461
+ };
2462
+
2463
+ //#endregion
2464
+ export { diagram };