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