@layers-app/editor 0.7.45 → 0.7.46

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 (248) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.d.ts +5 -4
  3. package/dist/index.js +3 -3
  4. package/dist/{layers.dO_EcGnI.js → layers.B88sQYuh.js} +1 -1
  5. package/dist/layers.BgMykHnn.js +154 -0
  6. package/dist/{layers.BNRMPVpZ.js → layers.BtvuN20E.js} +8992 -9643
  7. package/dist/{layers.D7AwxDU3.js → layers.Cfvta__C.js} +1 -1
  8. package/dist/{layers.b9B2NY7n.js → layers.CsQlovyR.js} +2191 -1950
  9. package/dist/layers.Ct1ojjl3.js +1 -0
  10. package/dist/{layers.Cqs6IYG7.js → layers.Hq0pIRX3.js} +24 -24
  11. package/dist/layers.JT_kEFH5.js +129 -0
  12. package/dist/{layers.D10qGvZV.js → layers.NW1lST7i.js} +1 -1
  13. package/dist/layers.pwc3O6Es.js +261 -0
  14. package/package.json +2 -2
  15. package/dist/layers.-kgSm_ki.js +0 -1
  16. package/dist/layers.3H8YMnha.js +0 -960
  17. package/dist/layers.52famHy6.js +0 -1
  18. package/dist/layers.5E21elPk.js +0 -11
  19. package/dist/layers.5VXqgOA9.js +0 -1
  20. package/dist/layers.5VwU1GK1.js +0 -1268
  21. package/dist/layers.7JqFgE4-.js +0 -15
  22. package/dist/layers.7RI58uNS.js +0 -189
  23. package/dist/layers.7SpesQUg.js +0 -40
  24. package/dist/layers.7T_XLunz.js +0 -7
  25. package/dist/layers.8yVEuzdp.js +0 -2238
  26. package/dist/layers.9VxE_IU7.js +0 -6
  27. package/dist/layers.9pNaFvaX.js +0 -1
  28. package/dist/layers.AfB9ZNIL.js +0 -41
  29. package/dist/layers.AwYI6tm5.js +0 -39
  30. package/dist/layers.B-gjjpRn.js +0 -4
  31. package/dist/layers.B09AFCqn.js +0 -37
  32. package/dist/layers.B19hGmey.js +0 -1
  33. package/dist/layers.B1GZzJe5.js +0 -9
  34. package/dist/layers.B1MgjnS3.js +0 -129
  35. package/dist/layers.B3D4g2HH.js +0 -1
  36. package/dist/layers.B4--F20o.js +0 -10
  37. package/dist/layers.B47Vqw3v.js +0 -8
  38. package/dist/layers.B7K7JjK6.js +0 -1510
  39. package/dist/layers.B7Ogzw_9.js +0 -8
  40. package/dist/layers.B9DV1y8l.js +0 -437
  41. package/dist/layers.BAnldxOY.js +0 -61
  42. package/dist/layers.BAtv1CM7.js +0 -1
  43. package/dist/layers.BAuuzKLZ.js +0 -8
  44. package/dist/layers.BBkLpECL.js +0 -41
  45. package/dist/layers.BCFFwcHc.js +0 -8
  46. package/dist/layers.BElVFj7p.js +0 -10
  47. package/dist/layers.BHMGJS6y.js +0 -35
  48. package/dist/layers.BI0na45P.js +0 -39
  49. package/dist/layers.BIeVwYKL.js +0 -1
  50. package/dist/layers.BJDrjORS.js +0 -244
  51. package/dist/layers.BLVqWrAY.js +0 -10
  52. package/dist/layers.BLd2spTm.js +0 -1
  53. package/dist/layers.BMdx5wVt.js +0 -1126
  54. package/dist/layers.BPxT8M1-.js +0 -1619
  55. package/dist/layers.BQ47bUTF.js +0 -207
  56. package/dist/layers.BRQk8xaN.js +0 -52
  57. package/dist/layers.BSTBZrFn.js +0 -1
  58. package/dist/layers.BSd2L4Fm.js +0 -1
  59. package/dist/layers.BT4kTHz7.js +0 -51
  60. package/dist/layers.BaqpKN-R.js +0 -4
  61. package/dist/layers.BbCfEXyj.js +0 -55
  62. package/dist/layers.Bd6ZkqZ7.js +0 -40
  63. package/dist/layers.BdSYcWLH.js +0 -373
  64. package/dist/layers.Be33AcY-.js +0 -1
  65. package/dist/layers.BiIBffqS.js +0 -6
  66. package/dist/layers.BijSGz6X.js +0 -1
  67. package/dist/layers.BioO0hx9.js +0 -10
  68. package/dist/layers.BmE6NOAc.js +0 -41
  69. package/dist/layers.BoRU6N6t.js +0 -1225
  70. package/dist/layers.Boa1dqY1.js +0 -1
  71. package/dist/layers.BpilXLfW.js +0 -6
  72. package/dist/layers.BqYphIWO.js +0 -11
  73. package/dist/layers.Bs1NMWU2.js +0 -9
  74. package/dist/layers.BsKvPJTl.js +0 -10
  75. package/dist/layers.BsZCaVRX.js +0 -22
  76. package/dist/layers.BtKfezUO.js +0 -32
  77. package/dist/layers.BuVXf7W5.js +0 -42
  78. package/dist/layers.BwuvbB4R.js +0 -39
  79. package/dist/layers.BxiXm40L.js +0 -2
  80. package/dist/layers.By8sBqwN.js +0 -116
  81. package/dist/layers.BzGZoEEl.js +0 -10
  82. package/dist/layers.BzLeOHKa.js +0 -796
  83. package/dist/layers.Bz_dhG__.js +0 -39
  84. package/dist/layers.C1KqMlKg.js +0 -1
  85. package/dist/layers.C1i1mw5H.js +0 -39
  86. package/dist/layers.C2RYi1R4.js +0 -9
  87. package/dist/layers.C3J_d41Q.js +0 -1
  88. package/dist/layers.C4I8YhJZ.js +0 -5
  89. package/dist/layers.C5qL4bIV.js +0 -205
  90. package/dist/layers.C6aCloZA.js +0 -38
  91. package/dist/layers.C7u0t-7x.js +0 -1286
  92. package/dist/layers.C8_lu5UH.js +0 -23
  93. package/dist/layers.CAAFE7RU.js +0 -139
  94. package/dist/layers.CB2mPEGO.js +0 -1
  95. package/dist/layers.CBcgiYqo.js +0 -4
  96. package/dist/layers.CCDs3V-r.js +0 -8
  97. package/dist/layers.CDLOFVyh.js +0 -38
  98. package/dist/layers.CGbUBRpT.js +0 -271
  99. package/dist/layers.CHZsXQcr.js +0 -1
  100. package/dist/layers.CIugfnNi.js +0 -3
  101. package/dist/layers.CJjG7mfo.js +0 -122
  102. package/dist/layers.CJuRWDaP.js +0 -4
  103. package/dist/layers.CJx3dksh.js +0 -160
  104. package/dist/layers.CKG-SsM4.js +0 -11
  105. package/dist/layers.CKquYTab.js +0 -1
  106. package/dist/layers.CLVteXPI.js +0 -1
  107. package/dist/layers.CMSKPoUf.js +0 -1
  108. package/dist/layers.CMi59Dge.js +0 -10
  109. package/dist/layers.CPPXzJSG.js +0 -36
  110. package/dist/layers.CQZ1lodE.js +0 -7
  111. package/dist/layers.CQzsYN9o.js +0 -35
  112. package/dist/layers.CRHVKIv6.js +0 -6
  113. package/dist/layers.CSf6dhab.js +0 -6
  114. package/dist/layers.CWNyz0df.js +0 -772
  115. package/dist/layers.CZmZZ456.js +0 -1
  116. package/dist/layers.C_-XV7nk.js +0 -84
  117. package/dist/layers.C_IvrzZ3.js +0 -7
  118. package/dist/layers.Ca9pf4pJ.js +0 -76
  119. package/dist/layers.CbY0jZsb.js +0 -32
  120. package/dist/layers.Cc2rZkMQ.js +0 -1
  121. package/dist/layers.Cd9MRGMA.js +0 -7
  122. package/dist/layers.CexInYJw.js +0 -41
  123. package/dist/layers.CfUjnxzs.js +0 -36
  124. package/dist/layers.CfiPo1zZ.js +0 -10
  125. package/dist/layers.CftSz0vc.js +0 -1
  126. package/dist/layers.Cfv_lKzM.js +0 -10
  127. package/dist/layers.CgV5Zdgg.js +0 -41
  128. package/dist/layers.Cho0M3o5.js +0 -9
  129. package/dist/layers.CiGopRcm.js +0 -1
  130. package/dist/layers.Ck8FKMZm.js +0 -1
  131. package/dist/layers.ClN7_yK6.js +0 -5
  132. package/dist/layers.CmzeQrqF.js +0 -1
  133. package/dist/layers.Cnf9xVrU.js +0 -37
  134. package/dist/layers.Cq1FOBBz.js +0 -1089
  135. package/dist/layers.CqVTtuYm.js +0 -6
  136. package/dist/layers.CtVzpEDj.js +0 -6
  137. package/dist/layers.CvxLmsUR.js +0 -794
  138. package/dist/layers.Cx0MLYpT.js +0 -8
  139. package/dist/layers.CxBPsaPO.js +0 -39
  140. package/dist/layers.Cxm8b7tr.js +0 -39
  141. package/dist/layers.CyodKjZl.js +0 -8
  142. package/dist/layers.Cyzu9PKQ.js +0 -1
  143. package/dist/layers.Cz-fKIJ9.js +0 -36
  144. package/dist/layers.CzhydN8y.js +0 -1
  145. package/dist/layers.D-An1dnI.js +0 -14
  146. package/dist/layers.D-gA0YP7.js +0 -323
  147. package/dist/layers.D0q1Ima3.js +0 -8
  148. package/dist/layers.D0zn4_Mx.js +0 -1
  149. package/dist/layers.D2BUdbOP.js +0 -42
  150. package/dist/layers.D3R9NG6l.js +0 -36
  151. package/dist/layers.D4CL9IrO.js +0 -40
  152. package/dist/layers.D4T8fTcj.js +0 -1223
  153. package/dist/layers.D5rUZxAZ.js +0 -7
  154. package/dist/layers.D6_pquAg.js +0 -5
  155. package/dist/layers.D7jGxypv.js +0 -8
  156. package/dist/layers.D8mu5H7D.js +0 -40
  157. package/dist/layers.D9hwmTsT.js +0 -40
  158. package/dist/layers.DD85x_gL.js +0 -70
  159. package/dist/layers.DEafoGBP.js +0 -276
  160. package/dist/layers.DHntpDKc.js +0 -7
  161. package/dist/layers.DLMNg96A.js +0 -38
  162. package/dist/layers.DLofN-Lu.js +0 -8583
  163. package/dist/layers.DLwuMfdd.js +0 -84
  164. package/dist/layers.DMJTlnQs.js +0 -805
  165. package/dist/layers.DMkBISW1.js +0 -1
  166. package/dist/layers.DN9HoVxI.js +0 -18
  167. package/dist/layers.DN_7Oas1.js +0 -1034
  168. package/dist/layers.DO0LV8uH.js +0 -9
  169. package/dist/layers.DOGjj8Tb.js +0 -9
  170. package/dist/layers.DOU0CUz1.js +0 -9
  171. package/dist/layers.DOrgOHBr.js +0 -1
  172. package/dist/layers.DQ9XoPxf.js +0 -35
  173. package/dist/layers.DRJ1C2cQ.js +0 -907
  174. package/dist/layers.DW4YSj_5.js +0 -425
  175. package/dist/layers.DWZOB_8o.js +0 -48149
  176. package/dist/layers.DXraj6Ay.js +0 -806
  177. package/dist/layers.DZ1kwAKl.js +0 -41
  178. package/dist/layers.DZkyZJBC.js +0 -2966
  179. package/dist/layers.DasUia_A.js +0 -96
  180. package/dist/layers.DbLpb0GU.js +0 -5
  181. package/dist/layers.DbaKVP5e.js +0 -1
  182. package/dist/layers.Des3K8ZW.js +0 -257
  183. package/dist/layers.DfNV-1tq.js +0 -1
  184. package/dist/layers.Dg4R4jUk.js +0 -39
  185. package/dist/layers.DiMecbBf.js +0 -213
  186. package/dist/layers.DjUOC4st.js +0 -16
  187. package/dist/layers.Djrk43ut.js +0 -7
  188. package/dist/layers.DkU_CdUC.js +0 -1
  189. package/dist/layers.DmGGgMLi.js +0 -32
  190. package/dist/layers.DmWCogHY.js +0 -9
  191. package/dist/layers.DmrEOz9f.js +0 -40
  192. package/dist/layers.DoRJikzG.js +0 -33
  193. package/dist/layers.DoUFJmIZ.js +0 -2482
  194. package/dist/layers.DpOQ0SWe.js +0 -41
  195. package/dist/layers.DpTLOdAf.js +0 -2
  196. package/dist/layers.Dpx73nZ5.js +0 -37
  197. package/dist/layers.DrjRMlMd.js +0 -504
  198. package/dist/layers.DsfTLYHN.js +0 -295
  199. package/dist/layers.DtKC3G6H.js +0 -40
  200. package/dist/layers.DtOyZMno.js +0 -42
  201. package/dist/layers.Dv9gkxbE.js +0 -8
  202. package/dist/layers.DvK2O2ur.js +0 -21941
  203. package/dist/layers.DxA6ocdw.js +0 -70
  204. package/dist/layers.Dxw5Sd8s.js +0 -223
  205. package/dist/layers.Dy1naDTQ.js +0 -14
  206. package/dist/layers.Dy44TnYE.js +0 -32
  207. package/dist/layers.DyypgoWd.js +0 -39
  208. package/dist/layers.Dzcm8AcP.js +0 -1583
  209. package/dist/layers.F0RyUduP.js +0 -65
  210. package/dist/layers.F544mK7B.js +0 -41
  211. package/dist/layers.GAckqh_M.js +0 -40
  212. package/dist/layers.HUIM9HzL.js +0 -9
  213. package/dist/layers.HfEMdS1b.js +0 -10
  214. package/dist/layers.JWCLFILJ.js +0 -1
  215. package/dist/layers.MIHL5IVH.js +0 -7
  216. package/dist/layers.N0yl3_Na.js +0 -44
  217. package/dist/layers.NWhpAYeJ.js +0 -198
  218. package/dist/layers.Q2Aadwn9.js +0 -42
  219. package/dist/layers.R8mPlCA0.js +0 -261
  220. package/dist/layers.Vof2qGdM.js +0 -1088
  221. package/dist/layers.W_ErWU4y.js +0 -139
  222. package/dist/layers.WlID94Nt.js +0 -6
  223. package/dist/layers.YY1k0HSU.js +0 -1
  224. package/dist/layers.YjzlfOSN.js +0 -84
  225. package/dist/layers.ZX3I648e.js +0 -934
  226. package/dist/layers.b0h5ZBmD.js +0 -61
  227. package/dist/layers.bPp4y4tJ.js +0 -423
  228. package/dist/layers.bXo5QOKy.js +0 -5
  229. package/dist/layers.bkVgdJRL.js +0 -2
  230. package/dist/layers.d6r5nQuW.js +0 -11
  231. package/dist/layers.dl89lGbj.js +0 -33
  232. package/dist/layers.dswX3xs9.js +0 -1
  233. package/dist/layers.efcYaHoV.js +0 -32
  234. package/dist/layers.fLsBww_F.js +0 -1
  235. package/dist/layers.i1FJeF3y.js +0 -37
  236. package/dist/layers.jU6Z3i2q.js +0 -40
  237. package/dist/layers.k6Lqzy4i.js +0 -8
  238. package/dist/layers.lCpg7dOn.js +0 -21
  239. package/dist/layers.nVP4QDpX.js +0 -118
  240. package/dist/layers.obbaq0Iy.js +0 -42
  241. package/dist/layers.ooKeArD_.js +0 -34
  242. package/dist/layers.pXaWfCQn.js +0 -40
  243. package/dist/layers.pYlF8GU4.js +0 -32
  244. package/dist/layers.qhRg6f--.js +0 -11
  245. package/dist/layers.rNCWSOcA.js +0 -7
  246. package/dist/layers.t1lmm4vP.js +0 -13
  247. package/dist/layers.wEFFSFio.js +0 -21620
  248. package/dist/layers.zAXb9NBT.js +0 -9
@@ -1,772 +0,0 @@
1
- import { a as Ce, s as Fe, b as Me, c as De, g as Te, d as oe, e as Pe, q as Ye, l as Ne, j as ke } from "./layers.DLofN-Lu.js";
2
- import "lodash-es";
3
- import { l as Ue } from "./layers.D4T8fTcj.js";
4
- import { G as Be } from "./layers.BJDrjORS.js";
5
- import "./layers.wEFFSFio.js";
6
- import "lodash-es/memoize.js";
7
- import "lodash-es/merge.js";
8
- import "lodash-es/isEmpty.js";
9
- import { l as Qe } from "./layers.dl89lGbj.js";
10
- var ce = (function() {
11
- var e = function(V, i, n, a) {
12
- for (n = n || {}, a = V.length; a--; n[V[a]] = i)
13
- ;
14
- return n;
15
- }, t = [1, 3], l = [1, 4], c = [1, 5], u = [1, 6], d = [5, 6, 8, 9, 11, 13, 31, 32, 33, 34, 35, 36, 44, 62, 63], p = [1, 18], h = [2, 7], o = [1, 22], g = [1, 23], R = [1, 24], A = [1, 25], T = [1, 26], N = [1, 27], v = [1, 20], k = [1, 28], x = [1, 29], F = [62, 63], de = [5, 8, 9, 11, 13, 31, 32, 33, 34, 35, 36, 44, 51, 53, 62, 63], pe = [1, 47], fe = [1, 48], ye = [1, 49], _e = [1, 50], ge = [1, 51], Ee = [1, 52], Re = [1, 53], O = [53, 54], M = [1, 64], D = [1, 60], P = [1, 61], Y = [1, 62], U = [1, 63], B = [1, 65], j = [1, 69], z = [1, 70], X = [1, 67], J = [1, 68], m = [5, 8, 9, 11, 13, 31, 32, 33, 34, 35, 36, 44, 62, 63], ie = {
16
- trace: function() {
17
- },
18
- yy: {},
19
- symbols_: { error: 2, start: 3, directive: 4, NEWLINE: 5, RD: 6, diagram: 7, EOF: 8, acc_title: 9, acc_title_value: 10, acc_descr: 11, acc_descr_value: 12, acc_descr_multiline_value: 13, requirementDef: 14, elementDef: 15, relationshipDef: 16, requirementType: 17, requirementName: 18, STRUCT_START: 19, requirementBody: 20, ID: 21, COLONSEP: 22, id: 23, TEXT: 24, text: 25, RISK: 26, riskLevel: 27, VERIFYMTHD: 28, verifyType: 29, STRUCT_STOP: 30, REQUIREMENT: 31, FUNCTIONAL_REQUIREMENT: 32, INTERFACE_REQUIREMENT: 33, PERFORMANCE_REQUIREMENT: 34, PHYSICAL_REQUIREMENT: 35, DESIGN_CONSTRAINT: 36, LOW_RISK: 37, MED_RISK: 38, HIGH_RISK: 39, VERIFY_ANALYSIS: 40, VERIFY_DEMONSTRATION: 41, VERIFY_INSPECTION: 42, VERIFY_TEST: 43, ELEMENT: 44, elementName: 45, elementBody: 46, TYPE: 47, type: 48, DOCREF: 49, ref: 50, END_ARROW_L: 51, relationship: 52, LINE: 53, END_ARROW_R: 54, CONTAINS: 55, COPIES: 56, DERIVES: 57, SATISFIES: 58, VERIFIES: 59, REFINES: 60, TRACES: 61, unqString: 62, qString: 63, $accept: 0, $end: 1 },
20
- terminals_: { 2: "error", 5: "NEWLINE", 6: "RD", 8: "EOF", 9: "acc_title", 10: "acc_title_value", 11: "acc_descr", 12: "acc_descr_value", 13: "acc_descr_multiline_value", 19: "STRUCT_START", 21: "ID", 22: "COLONSEP", 24: "TEXT", 26: "RISK", 28: "VERIFYMTHD", 30: "STRUCT_STOP", 31: "REQUIREMENT", 32: "FUNCTIONAL_REQUIREMENT", 33: "INTERFACE_REQUIREMENT", 34: "PERFORMANCE_REQUIREMENT", 35: "PHYSICAL_REQUIREMENT", 36: "DESIGN_CONSTRAINT", 37: "LOW_RISK", 38: "MED_RISK", 39: "HIGH_RISK", 40: "VERIFY_ANALYSIS", 41: "VERIFY_DEMONSTRATION", 42: "VERIFY_INSPECTION", 43: "VERIFY_TEST", 44: "ELEMENT", 47: "TYPE", 49: "DOCREF", 51: "END_ARROW_L", 53: "LINE", 54: "END_ARROW_R", 55: "CONTAINS", 56: "COPIES", 57: "DERIVES", 58: "SATISFIES", 59: "VERIFIES", 60: "REFINES", 61: "TRACES", 62: "unqString", 63: "qString" },
21
- productions_: [0, [3, 3], [3, 2], [3, 4], [4, 2], [4, 2], [4, 1], [7, 0], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [14, 5], [20, 5], [20, 5], [20, 5], [20, 5], [20, 2], [20, 1], [17, 1], [17, 1], [17, 1], [17, 1], [17, 1], [17, 1], [27, 1], [27, 1], [27, 1], [29, 1], [29, 1], [29, 1], [29, 1], [15, 5], [46, 5], [46, 5], [46, 2], [46, 1], [16, 5], [16, 5], [52, 1], [52, 1], [52, 1], [52, 1], [52, 1], [52, 1], [52, 1], [18, 1], [18, 1], [23, 1], [23, 1], [25, 1], [25, 1], [45, 1], [45, 1], [48, 1], [48, 1], [50, 1], [50, 1]],
22
- performAction: function(i, n, a, r, f, s, W) {
23
- var _ = s.length - 1;
24
- switch (f) {
25
- case 4:
26
- this.$ = s[_].trim(), r.setAccTitle(this.$);
27
- break;
28
- case 5:
29
- case 6:
30
- this.$ = s[_].trim(), r.setAccDescription(this.$);
31
- break;
32
- case 7:
33
- this.$ = [];
34
- break;
35
- case 13:
36
- r.addRequirement(s[_ - 3], s[_ - 4]);
37
- break;
38
- case 14:
39
- r.setNewReqId(s[_ - 2]);
40
- break;
41
- case 15:
42
- r.setNewReqText(s[_ - 2]);
43
- break;
44
- case 16:
45
- r.setNewReqRisk(s[_ - 2]);
46
- break;
47
- case 17:
48
- r.setNewReqVerifyMethod(s[_ - 2]);
49
- break;
50
- case 20:
51
- this.$ = r.RequirementType.REQUIREMENT;
52
- break;
53
- case 21:
54
- this.$ = r.RequirementType.FUNCTIONAL_REQUIREMENT;
55
- break;
56
- case 22:
57
- this.$ = r.RequirementType.INTERFACE_REQUIREMENT;
58
- break;
59
- case 23:
60
- this.$ = r.RequirementType.PERFORMANCE_REQUIREMENT;
61
- break;
62
- case 24:
63
- this.$ = r.RequirementType.PHYSICAL_REQUIREMENT;
64
- break;
65
- case 25:
66
- this.$ = r.RequirementType.DESIGN_CONSTRAINT;
67
- break;
68
- case 26:
69
- this.$ = r.RiskLevel.LOW_RISK;
70
- break;
71
- case 27:
72
- this.$ = r.RiskLevel.MED_RISK;
73
- break;
74
- case 28:
75
- this.$ = r.RiskLevel.HIGH_RISK;
76
- break;
77
- case 29:
78
- this.$ = r.VerifyType.VERIFY_ANALYSIS;
79
- break;
80
- case 30:
81
- this.$ = r.VerifyType.VERIFY_DEMONSTRATION;
82
- break;
83
- case 31:
84
- this.$ = r.VerifyType.VERIFY_INSPECTION;
85
- break;
86
- case 32:
87
- this.$ = r.VerifyType.VERIFY_TEST;
88
- break;
89
- case 33:
90
- r.addElement(s[_ - 3]);
91
- break;
92
- case 34:
93
- r.setNewElementType(s[_ - 2]);
94
- break;
95
- case 35:
96
- r.setNewElementDocRef(s[_ - 2]);
97
- break;
98
- case 38:
99
- r.addRelationship(s[_ - 2], s[_], s[_ - 4]);
100
- break;
101
- case 39:
102
- r.addRelationship(s[_ - 2], s[_ - 4], s[_]);
103
- break;
104
- case 40:
105
- this.$ = r.Relationships.CONTAINS;
106
- break;
107
- case 41:
108
- this.$ = r.Relationships.COPIES;
109
- break;
110
- case 42:
111
- this.$ = r.Relationships.DERIVES;
112
- break;
113
- case 43:
114
- this.$ = r.Relationships.SATISFIES;
115
- break;
116
- case 44:
117
- this.$ = r.Relationships.VERIFIES;
118
- break;
119
- case 45:
120
- this.$ = r.Relationships.REFINES;
121
- break;
122
- case 46:
123
- this.$ = r.Relationships.TRACES;
124
- break;
125
- }
126
- },
127
- table: [{ 3: 1, 4: 2, 6: t, 9: l, 11: c, 13: u }, { 1: [3] }, { 3: 8, 4: 2, 5: [1, 7], 6: t, 9: l, 11: c, 13: u }, { 5: [1, 9] }, { 10: [1, 10] }, { 12: [1, 11] }, e(d, [2, 6]), { 3: 12, 4: 2, 6: t, 9: l, 11: c, 13: u }, { 1: [2, 2] }, { 4: 17, 5: p, 7: 13, 8: h, 9: l, 11: c, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: g, 33: R, 34: A, 35: T, 36: N, 44: v, 62: k, 63: x }, e(d, [2, 4]), e(d, [2, 5]), { 1: [2, 1] }, { 8: [1, 30] }, { 4: 17, 5: p, 7: 31, 8: h, 9: l, 11: c, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: g, 33: R, 34: A, 35: T, 36: N, 44: v, 62: k, 63: x }, { 4: 17, 5: p, 7: 32, 8: h, 9: l, 11: c, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: g, 33: R, 34: A, 35: T, 36: N, 44: v, 62: k, 63: x }, { 4: 17, 5: p, 7: 33, 8: h, 9: l, 11: c, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: g, 33: R, 34: A, 35: T, 36: N, 44: v, 62: k, 63: x }, { 4: 17, 5: p, 7: 34, 8: h, 9: l, 11: c, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: g, 33: R, 34: A, 35: T, 36: N, 44: v, 62: k, 63: x }, { 4: 17, 5: p, 7: 35, 8: h, 9: l, 11: c, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: g, 33: R, 34: A, 35: T, 36: N, 44: v, 62: k, 63: x }, { 18: 36, 62: [1, 37], 63: [1, 38] }, { 45: 39, 62: [1, 40], 63: [1, 41] }, { 51: [1, 42], 53: [1, 43] }, e(F, [2, 20]), e(F, [2, 21]), e(F, [2, 22]), e(F, [2, 23]), e(F, [2, 24]), e(F, [2, 25]), e(de, [2, 49]), e(de, [2, 50]), { 1: [2, 3] }, { 8: [2, 8] }, { 8: [2, 9] }, { 8: [2, 10] }, { 8: [2, 11] }, { 8: [2, 12] }, { 19: [1, 44] }, { 19: [2, 47] }, { 19: [2, 48] }, { 19: [1, 45] }, { 19: [2, 53] }, { 19: [2, 54] }, { 52: 46, 55: pe, 56: fe, 57: ye, 58: _e, 59: ge, 60: Ee, 61: Re }, { 52: 54, 55: pe, 56: fe, 57: ye, 58: _e, 59: ge, 60: Ee, 61: Re }, { 5: [1, 55] }, { 5: [1, 56] }, { 53: [1, 57] }, e(O, [2, 40]), e(O, [2, 41]), e(O, [2, 42]), e(O, [2, 43]), e(O, [2, 44]), e(O, [2, 45]), e(O, [2, 46]), { 54: [1, 58] }, { 5: M, 20: 59, 21: D, 24: P, 26: Y, 28: U, 30: B }, { 5: j, 30: z, 46: 66, 47: X, 49: J }, { 23: 71, 62: k, 63: x }, { 23: 72, 62: k, 63: x }, e(m, [2, 13]), { 22: [1, 73] }, { 22: [1, 74] }, { 22: [1, 75] }, { 22: [1, 76] }, { 5: M, 20: 77, 21: D, 24: P, 26: Y, 28: U, 30: B }, e(m, [2, 19]), e(m, [2, 33]), { 22: [1, 78] }, { 22: [1, 79] }, { 5: j, 30: z, 46: 80, 47: X, 49: J }, e(m, [2, 37]), e(m, [2, 38]), e(m, [2, 39]), { 23: 81, 62: k, 63: x }, { 25: 82, 62: [1, 83], 63: [1, 84] }, { 27: 85, 37: [1, 86], 38: [1, 87], 39: [1, 88] }, { 29: 89, 40: [1, 90], 41: [1, 91], 42: [1, 92], 43: [1, 93] }, e(m, [2, 18]), { 48: 94, 62: [1, 95], 63: [1, 96] }, { 50: 97, 62: [1, 98], 63: [1, 99] }, e(m, [2, 36]), { 5: [1, 100] }, { 5: [1, 101] }, { 5: [2, 51] }, { 5: [2, 52] }, { 5: [1, 102] }, { 5: [2, 26] }, { 5: [2, 27] }, { 5: [2, 28] }, { 5: [1, 103] }, { 5: [2, 29] }, { 5: [2, 30] }, { 5: [2, 31] }, { 5: [2, 32] }, { 5: [1, 104] }, { 5: [2, 55] }, { 5: [2, 56] }, { 5: [1, 105] }, { 5: [2, 57] }, { 5: [2, 58] }, { 5: M, 20: 106, 21: D, 24: P, 26: Y, 28: U, 30: B }, { 5: M, 20: 107, 21: D, 24: P, 26: Y, 28: U, 30: B }, { 5: M, 20: 108, 21: D, 24: P, 26: Y, 28: U, 30: B }, { 5: M, 20: 109, 21: D, 24: P, 26: Y, 28: U, 30: B }, { 5: j, 30: z, 46: 110, 47: X, 49: J }, { 5: j, 30: z, 46: 111, 47: X, 49: J }, e(m, [2, 14]), e(m, [2, 15]), e(m, [2, 16]), e(m, [2, 17]), e(m, [2, 34]), e(m, [2, 35])],
128
- defaultActions: { 8: [2, 2], 12: [2, 1], 30: [2, 3], 31: [2, 8], 32: [2, 9], 33: [2, 10], 34: [2, 11], 35: [2, 12], 37: [2, 47], 38: [2, 48], 40: [2, 53], 41: [2, 54], 83: [2, 51], 84: [2, 52], 86: [2, 26], 87: [2, 27], 88: [2, 28], 90: [2, 29], 91: [2, 30], 92: [2, 31], 93: [2, 32], 95: [2, 55], 96: [2, 56], 98: [2, 57], 99: [2, 58] },
129
- parseError: function(i, n) {
130
- if (n.recoverable)
131
- this.trace(i);
132
- else {
133
- var a = new Error(i);
134
- throw a.hash = n, a;
135
- }
136
- },
137
- parse: function(i) {
138
- var n = this, a = [0], r = [], f = [null], s = [], W = this.table, _ = "", Z = 0, me = 0, Ve = 2, Ie = 1, qe = s.slice.call(arguments, 1), E = Object.create(this.lexer), L = { yy: {} };
139
- for (var ne in this.yy)
140
- Object.prototype.hasOwnProperty.call(this.yy, ne) && (L.yy[ne] = this.yy[ne]);
141
- E.setInput(i, L.yy), L.yy.lexer = E, L.yy.parser = this, typeof E.yylloc > "u" && (E.yylloc = {});
142
- var se = E.yylloc;
143
- s.push(se);
144
- var Oe = E.options && E.options.ranges;
145
- typeof L.yy.parseError == "function" ? this.parseError = L.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
146
- function Le() {
147
- var $;
148
- return $ = r.pop() || E.lex() || Ie, typeof $ != "number" && ($ instanceof Array && (r = $, $ = r.pop()), $ = n.symbols_[$] || $), $;
149
- }
150
- for (var I, C, S, ae, Q = {}, ee, w, be, te; ; ) {
151
- if (C = a[a.length - 1], this.defaultActions[C] ? S = this.defaultActions[C] : ((I === null || typeof I > "u") && (I = Le()), S = W[C] && W[C][I]), typeof S > "u" || !S.length || !S[0]) {
152
- var le = "";
153
- te = [];
154
- for (ee in W[C])
155
- this.terminals_[ee] && ee > Ve && te.push("'" + this.terminals_[ee] + "'");
156
- E.showPosition ? le = "Parse error on line " + (Z + 1) + `:
157
- ` + E.showPosition() + `
158
- Expecting ` + te.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : le = "Parse error on line " + (Z + 1) + ": Unexpected " + (I == Ie ? "end of input" : "'" + (this.terminals_[I] || I) + "'"), this.parseError(le, {
159
- text: E.match,
160
- token: this.terminals_[I] || I,
161
- line: E.yylineno,
162
- loc: se,
163
- expected: te
164
- });
165
- }
166
- if (S[0] instanceof Array && S.length > 1)
167
- throw new Error("Parse Error: multiple actions possible at state: " + C + ", token: " + I);
168
- switch (S[0]) {
169
- case 1:
170
- a.push(I), f.push(E.yytext), s.push(E.yylloc), a.push(S[1]), I = null, me = E.yyleng, _ = E.yytext, Z = E.yylineno, se = E.yylloc;
171
- break;
172
- case 2:
173
- if (w = this.productions_[S[1]][1], Q.$ = f[f.length - w], Q._$ = {
174
- first_line: s[s.length - (w || 1)].first_line,
175
- last_line: s[s.length - 1].last_line,
176
- first_column: s[s.length - (w || 1)].first_column,
177
- last_column: s[s.length - 1].last_column
178
- }, Oe && (Q._$.range = [
179
- s[s.length - (w || 1)].range[0],
180
- s[s.length - 1].range[1]
181
- ]), ae = this.performAction.apply(Q, [
182
- _,
183
- me,
184
- Z,
185
- L.yy,
186
- S[1],
187
- f,
188
- s
189
- ].concat(qe)), typeof ae < "u")
190
- return ae;
191
- w && (a = a.slice(0, -1 * w * 2), f = f.slice(0, -1 * w), s = s.slice(0, -1 * w)), a.push(this.productions_[S[1]][0]), f.push(Q.$), s.push(Q._$), be = W[a[a.length - 2]][a[a.length - 1]], a.push(be);
192
- break;
193
- case 3:
194
- return !0;
195
- }
196
- }
197
- return !0;
198
- }
199
- }, $e = /* @__PURE__ */ (function() {
200
- var V = {
201
- EOF: 1,
202
- parseError: function(n, a) {
203
- if (this.yy.parser)
204
- this.yy.parser.parseError(n, a);
205
- else
206
- throw new Error(n);
207
- },
208
- // resets the lexer, sets new input
209
- setInput: function(i, n) {
210
- return this.yy = n || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
211
- first_line: 1,
212
- first_column: 0,
213
- last_line: 1,
214
- last_column: 0
215
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
216
- },
217
- // consumes and returns one char from the input
218
- input: function() {
219
- var i = this._input[0];
220
- this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
221
- var n = i.match(/(?:\r\n?|\n).*/g);
222
- return n ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
223
- },
224
- // unshifts one char (or a string) into the input
225
- unput: function(i) {
226
- var n = i.length, a = i.split(/(?:\r\n?|\n)/g);
227
- this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
228
- var r = this.match.split(/(?:\r\n?|\n)/g);
229
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), a.length - 1 && (this.yylineno -= a.length - 1);
230
- var f = this.yylloc.range;
231
- return this.yylloc = {
232
- first_line: this.yylloc.first_line,
233
- last_line: this.yylineno + 1,
234
- first_column: this.yylloc.first_column,
235
- last_column: a ? (a.length === r.length ? this.yylloc.first_column : 0) + r[r.length - a.length].length - a[0].length : this.yylloc.first_column - n
236
- }, this.options.ranges && (this.yylloc.range = [f[0], f[0] + this.yyleng - n]), this.yyleng = this.yytext.length, this;
237
- },
238
- // When called from action, caches matched text and appends it on next action
239
- more: function() {
240
- return this._more = !0, this;
241
- },
242
- // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
243
- reject: function() {
244
- if (this.options.backtrack_lexer)
245
- this._backtrack = !0;
246
- else
247
- 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).
248
- ` + this.showPosition(), {
249
- text: "",
250
- token: null,
251
- line: this.yylineno
252
- });
253
- return this;
254
- },
255
- // retain first n characters of the match
256
- less: function(i) {
257
- this.unput(this.match.slice(i));
258
- },
259
- // displays already matched input, i.e. for error messages
260
- pastInput: function() {
261
- var i = this.matched.substr(0, this.matched.length - this.match.length);
262
- return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
263
- },
264
- // displays upcoming input, i.e. for error messages
265
- upcomingInput: function() {
266
- var i = this.match;
267
- return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
268
- },
269
- // displays the character position where the lexing error occurred, i.e. for error messages
270
- showPosition: function() {
271
- var i = this.pastInput(), n = new Array(i.length + 1).join("-");
272
- return i + this.upcomingInput() + `
273
- ` + n + "^";
274
- },
275
- // test the lexed token: return FALSE when not a match, otherwise return token
276
- test_match: function(i, n) {
277
- var a, r, f;
278
- if (this.options.backtrack_lexer && (f = {
279
- yylineno: this.yylineno,
280
- yylloc: {
281
- first_line: this.yylloc.first_line,
282
- last_line: this.last_line,
283
- first_column: this.yylloc.first_column,
284
- last_column: this.yylloc.last_column
285
- },
286
- yytext: this.yytext,
287
- match: this.match,
288
- matches: this.matches,
289
- matched: this.matched,
290
- yyleng: this.yyleng,
291
- offset: this.offset,
292
- _more: this._more,
293
- _input: this._input,
294
- yy: this.yy,
295
- conditionStack: this.conditionStack.slice(0),
296
- done: this.done
297
- }, this.options.ranges && (f.yylloc.range = this.yylloc.range.slice(0))), r = i[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
298
- first_line: this.yylloc.last_line,
299
- last_line: this.yylineno + 1,
300
- first_column: this.yylloc.last_column,
301
- last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
302
- }, this.yytext += i[0], this.match += i[0], this.matches = i, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(i[0].length), this.matched += i[0], a = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), a)
303
- return a;
304
- if (this._backtrack) {
305
- for (var s in f)
306
- this[s] = f[s];
307
- return !1;
308
- }
309
- return !1;
310
- },
311
- // return next match in input
312
- next: function() {
313
- if (this.done)
314
- return this.EOF;
315
- this._input || (this.done = !0);
316
- var i, n, a, r;
317
- this._more || (this.yytext = "", this.match = "");
318
- for (var f = this._currentRules(), s = 0; s < f.length; s++)
319
- if (a = this._input.match(this.rules[f[s]]), a && (!n || a[0].length > n[0].length)) {
320
- if (n = a, r = s, this.options.backtrack_lexer) {
321
- if (i = this.test_match(a, f[s]), i !== !1)
322
- return i;
323
- if (this._backtrack) {
324
- n = !1;
325
- continue;
326
- } else
327
- return !1;
328
- } else if (!this.options.flex)
329
- break;
330
- }
331
- return n ? (i = this.test_match(n, f[r]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
332
- ` + this.showPosition(), {
333
- text: "",
334
- token: null,
335
- line: this.yylineno
336
- });
337
- },
338
- // return next match that has a token
339
- lex: function() {
340
- var n = this.next();
341
- return n || this.lex();
342
- },
343
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
344
- begin: function(n) {
345
- this.conditionStack.push(n);
346
- },
347
- // pop the previously active lexer condition state off the condition stack
348
- popState: function() {
349
- var n = this.conditionStack.length - 1;
350
- return n > 0 ? this.conditionStack.pop() : this.conditionStack[0];
351
- },
352
- // produce the lexer rule set which is active for the currently active lexer condition state
353
- _currentRules: function() {
354
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
355
- },
356
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
357
- topState: function(n) {
358
- return n = this.conditionStack.length - 1 - Math.abs(n || 0), n >= 0 ? this.conditionStack[n] : "INITIAL";
359
- },
360
- // alias for begin(condition)
361
- pushState: function(n) {
362
- this.begin(n);
363
- },
364
- // return the number of states currently on the stack
365
- stateStackSize: function() {
366
- return this.conditionStack.length;
367
- },
368
- options: { "case-insensitive": !0 },
369
- performAction: function(n, a, r, f) {
370
- switch (r) {
371
- case 0:
372
- return "title";
373
- case 1:
374
- return this.begin("acc_title"), 9;
375
- case 2:
376
- return this.popState(), "acc_title_value";
377
- case 3:
378
- return this.begin("acc_descr"), 11;
379
- case 4:
380
- return this.popState(), "acc_descr_value";
381
- case 5:
382
- this.begin("acc_descr_multiline");
383
- break;
384
- case 6:
385
- this.popState();
386
- break;
387
- case 7:
388
- return "acc_descr_multiline_value";
389
- case 8:
390
- return 5;
391
- case 9:
392
- break;
393
- case 10:
394
- break;
395
- case 11:
396
- break;
397
- case 12:
398
- return 8;
399
- case 13:
400
- return 6;
401
- case 14:
402
- return 19;
403
- case 15:
404
- return 30;
405
- case 16:
406
- return 22;
407
- case 17:
408
- return 21;
409
- case 18:
410
- return 24;
411
- case 19:
412
- return 26;
413
- case 20:
414
- return 28;
415
- case 21:
416
- return 31;
417
- case 22:
418
- return 32;
419
- case 23:
420
- return 33;
421
- case 24:
422
- return 34;
423
- case 25:
424
- return 35;
425
- case 26:
426
- return 36;
427
- case 27:
428
- return 37;
429
- case 28:
430
- return 38;
431
- case 29:
432
- return 39;
433
- case 30:
434
- return 40;
435
- case 31:
436
- return 41;
437
- case 32:
438
- return 42;
439
- case 33:
440
- return 43;
441
- case 34:
442
- return 44;
443
- case 35:
444
- return 55;
445
- case 36:
446
- return 56;
447
- case 37:
448
- return 57;
449
- case 38:
450
- return 58;
451
- case 39:
452
- return 59;
453
- case 40:
454
- return 60;
455
- case 41:
456
- return 61;
457
- case 42:
458
- return 47;
459
- case 43:
460
- return 49;
461
- case 44:
462
- return 51;
463
- case 45:
464
- return 54;
465
- case 46:
466
- return 53;
467
- case 47:
468
- this.begin("string");
469
- break;
470
- case 48:
471
- this.popState();
472
- break;
473
- case 49:
474
- return "qString";
475
- case 50:
476
- return a.yytext = a.yytext.trim(), 62;
477
- }
478
- },
479
- rules: [/^(?:title\s[^#\n;]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:(\r?\n)+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:%[^\n]*)/i, /^(?:$)/i, /^(?:requirementDiagram\b)/i, /^(?:\{)/i, /^(?:\})/i, /^(?::)/i, /^(?:id\b)/i, /^(?:text\b)/i, /^(?:risk\b)/i, /^(?:verifyMethod\b)/i, /^(?:requirement\b)/i, /^(?:functionalRequirement\b)/i, /^(?:interfaceRequirement\b)/i, /^(?:performanceRequirement\b)/i, /^(?:physicalRequirement\b)/i, /^(?:designConstraint\b)/i, /^(?:low\b)/i, /^(?:medium\b)/i, /^(?:high\b)/i, /^(?:analysis\b)/i, /^(?:demonstration\b)/i, /^(?:inspection\b)/i, /^(?:test\b)/i, /^(?:element\b)/i, /^(?:contains\b)/i, /^(?:copies\b)/i, /^(?:derives\b)/i, /^(?:satisfies\b)/i, /^(?:verifies\b)/i, /^(?:refines\b)/i, /^(?:traces\b)/i, /^(?:type\b)/i, /^(?:docref\b)/i, /^(?:<-)/i, /^(?:->)/i, /^(?:-)/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[\w][^\r\n\{\<\>\-\=]*)/i],
480
- conditions: { acc_descr_multiline: { rules: [6, 7], inclusive: !1 }, acc_descr: { rules: [4], inclusive: !1 }, acc_title: { rules: [2], inclusive: !1 }, unqString: { rules: [], inclusive: !1 }, token: { rules: [], inclusive: !1 }, string: { rules: [48, 49], inclusive: !1 }, INITIAL: { rules: [0, 1, 3, 5, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 50], inclusive: !0 } }
481
- };
482
- return V;
483
- })();
484
- ie.lexer = $e;
485
- function re() {
486
- this.yy = {};
487
- }
488
- return re.prototype = ie, ie.Parser = re, new re();
489
- })();
490
- ce.parser = ce;
491
- const He = ce;
492
- let ue = [], b = {}, K = {}, q = {}, G = {};
493
- const We = {
494
- REQUIREMENT: "Requirement",
495
- FUNCTIONAL_REQUIREMENT: "Functional Requirement",
496
- INTERFACE_REQUIREMENT: "Interface Requirement",
497
- PERFORMANCE_REQUIREMENT: "Performance Requirement",
498
- PHYSICAL_REQUIREMENT: "Physical Requirement",
499
- DESIGN_CONSTRAINT: "Design Constraint"
500
- }, Ke = {
501
- LOW_RISK: "Low",
502
- MED_RISK: "Medium",
503
- HIGH_RISK: "High"
504
- }, Ge = {
505
- VERIFY_ANALYSIS: "Analysis",
506
- VERIFY_DEMONSTRATION: "Demonstration",
507
- VERIFY_INSPECTION: "Inspection",
508
- VERIFY_TEST: "Test"
509
- }, je = {
510
- CONTAINS: "contains",
511
- COPIES: "copies",
512
- DERIVES: "derives",
513
- SATISFIES: "satisfies",
514
- VERIFIES: "verifies",
515
- REFINES: "refines",
516
- TRACES: "traces"
517
- }, ze = (e, t) => (K[e] === void 0 && (K[e] = {
518
- name: e,
519
- type: t,
520
- id: b.id,
521
- text: b.text,
522
- risk: b.risk,
523
- verifyMethod: b.verifyMethod
524
- }), b = {}, K[e]), Xe = () => K, Je = (e) => {
525
- b !== void 0 && (b.id = e);
526
- }, Ze = (e) => {
527
- b !== void 0 && (b.text = e);
528
- }, et = (e) => {
529
- b !== void 0 && (b.risk = e);
530
- }, tt = (e) => {
531
- b !== void 0 && (b.verifyMethod = e);
532
- }, it = (e) => (G[e] === void 0 && (G[e] = {
533
- name: e,
534
- type: q.type,
535
- docRef: q.docRef
536
- }, Ne.info("Added new requirement: ", e)), q = {}, G[e]), rt = () => G, nt = (e) => {
537
- q !== void 0 && (q.type = e);
538
- }, st = (e) => {
539
- q !== void 0 && (q.docRef = e);
540
- }, at = (e, t, l) => {
541
- ue.push({
542
- type: e,
543
- src: t,
544
- dst: l
545
- });
546
- }, lt = () => ue, ot = () => {
547
- ue = [], b = {}, K = {}, q = {}, G = {}, Ye();
548
- }, ct = {
549
- RequirementType: We,
550
- RiskLevel: Ke,
551
- VerifyType: Ge,
552
- Relationships: je,
553
- getConfig: () => Te().req,
554
- addRequirement: ze,
555
- getRequirements: Xe,
556
- setNewReqId: Je,
557
- setNewReqText: Ze,
558
- setNewReqRisk: et,
559
- setNewReqVerifyMethod: tt,
560
- setAccTitle: De,
561
- getAccTitle: Me,
562
- setAccDescription: Fe,
563
- getAccDescription: Ce,
564
- addElement: it,
565
- getElements: rt,
566
- setNewElementType: nt,
567
- setNewElementDocRef: st,
568
- addRelationship: at,
569
- getRelationships: lt,
570
- clear: ot
571
- }, ht = (e) => `
572
-
573
- marker {
574
- fill: ${e.relationColor};
575
- stroke: ${e.relationColor};
576
- }
577
-
578
- marker.cross {
579
- stroke: ${e.lineColor};
580
- }
581
-
582
- svg {
583
- font-family: ${e.fontFamily};
584
- font-size: ${e.fontSize};
585
- }
586
-
587
- .reqBox {
588
- fill: ${e.requirementBackground};
589
- fill-opacity: 1.0;
590
- stroke: ${e.requirementBorderColor};
591
- stroke-width: ${e.requirementBorderSize};
592
- }
593
-
594
- .reqTitle, .reqLabel{
595
- fill: ${e.requirementTextColor};
596
- }
597
- .reqLabelBox {
598
- fill: ${e.relationLabelBackground};
599
- fill-opacity: 1.0;
600
- }
601
-
602
- .req-title-line {
603
- stroke: ${e.requirementBorderColor};
604
- stroke-width: ${e.requirementBorderSize};
605
- }
606
- .relationshipLine {
607
- stroke: ${e.relationColor};
608
- stroke-width: 1;
609
- }
610
- .relationshipLabel {
611
- fill: ${e.relationLabelColor};
612
- }
613
-
614
- `, ut = ht, he = {
615
- CONTAINS: "contains",
616
- ARROW: "arrow"
617
- }, dt = (e, t) => {
618
- let l = e.append("defs").append("marker").attr("id", he.CONTAINS + "_line_ending").attr("refX", 0).attr("refY", t.line_height / 2).attr("markerWidth", t.line_height).attr("markerHeight", t.line_height).attr("orient", "auto").append("g");
619
- l.append("circle").attr("cx", t.line_height / 2).attr("cy", t.line_height / 2).attr("r", t.line_height / 2).attr("fill", "none"), l.append("line").attr("x1", 0).attr("x2", t.line_height).attr("y1", t.line_height / 2).attr("y2", t.line_height / 2).attr("stroke-width", 1), l.append("line").attr("y1", 0).attr("y2", t.line_height).attr("x1", t.line_height / 2).attr("x2", t.line_height / 2).attr("stroke-width", 1), e.append("defs").append("marker").attr("id", he.ARROW + "_line_ending").attr("refX", t.line_height).attr("refY", 0.5 * t.line_height).attr("markerWidth", t.line_height).attr("markerHeight", t.line_height).attr("orient", "auto").append("path").attr(
620
- "d",
621
- `M0,0
622
- L${t.line_height},${t.line_height / 2}
623
- M${t.line_height},${t.line_height / 2}
624
- L0,${t.line_height}`
625
- ).attr("stroke-width", 1);
626
- }, xe = {
627
- ReqMarkers: he,
628
- insertLineEndings: dt
629
- };
630
- let y = {}, Se = 0;
631
- const Ae = (e, t) => e.insert("rect", "#" + t).attr("class", "req reqBox").attr("x", 0).attr("y", 0).attr("width", y.rect_min_width + "px").attr("height", y.rect_min_height + "px"), ve = (e, t, l) => {
632
- let c = y.rect_min_width / 2, u = e.append("text").attr("class", "req reqLabel reqTitle").attr("id", t).attr("x", c).attr("y", y.rect_padding).attr("dominant-baseline", "hanging"), d = 0;
633
- l.forEach((g) => {
634
- d == 0 ? u.append("tspan").attr("text-anchor", "middle").attr("x", y.rect_min_width / 2).attr("dy", 0).text(g) : u.append("tspan").attr("text-anchor", "middle").attr("x", y.rect_min_width / 2).attr("dy", y.line_height * 0.75).text(g), d++;
635
- });
636
- let p = 1.5 * y.rect_padding, h = d * y.line_height * 0.75, o = p + h;
637
- return e.append("line").attr("class", "req-title-line").attr("x1", "0").attr("x2", y.rect_min_width).attr("y1", o).attr("y2", o), {
638
- titleNode: u,
639
- y: o
640
- };
641
- }, we = (e, t, l, c) => {
642
- let u = e.append("text").attr("class", "req reqLabel").attr("id", t).attr("x", y.rect_padding).attr("y", c).attr("dominant-baseline", "hanging"), d = 0;
643
- const p = 30;
644
- let h = [];
645
- return l.forEach((o) => {
646
- let g = o.length;
647
- for (; g > p && d < 3; ) {
648
- let R = o.substring(0, p);
649
- o = o.substring(p, o.length), g = o.length, h[h.length] = R, d++;
650
- }
651
- if (d == 3) {
652
- let R = h[h.length - 1];
653
- h[h.length - 1] = R.substring(0, R.length - 4) + "...";
654
- } else
655
- h[h.length] = o;
656
- d = 0;
657
- }), h.forEach((o) => {
658
- u.append("tspan").attr("x", y.rect_padding).attr("dy", y.line_height).text(o);
659
- }), u;
660
- }, pt = (e, t, l, c) => {
661
- const u = t.node().getTotalLength(), d = t.node().getPointAtLength(u * 0.5), p = "rel" + Se;
662
- Se++;
663
- const o = e.append("text").attr("class", "req relationshipLabel").attr("id", p).attr("x", d.x).attr("y", d.y).attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(c).node().getBBox();
664
- e.insert("rect", "#" + p).attr("class", "req reqLabelBox").attr("x", d.x - o.width / 2).attr("y", d.y - o.height / 2).attr("width", o.width).attr("height", o.height).attr("fill", "white").attr("fill-opacity", "85%");
665
- }, ft = function(e, t, l, c, u) {
666
- const d = l.edge(H(t.src), H(t.dst)), p = Qe().x(function(o) {
667
- return o.x;
668
- }).y(function(o) {
669
- return o.y;
670
- }), h = e.insert("path", "#" + c).attr("class", "er relationshipLine").attr("d", p(d.points)).attr("fill", "none");
671
- t.type == u.db.Relationships.CONTAINS ? h.attr(
672
- "marker-start",
673
- "url(" + ke.getUrl(y.arrowMarkerAbsolute) + "#" + t.type + "_line_ending)"
674
- ) : (h.attr("stroke-dasharray", "10,7"), h.attr(
675
- "marker-end",
676
- "url(" + ke.getUrl(y.arrowMarkerAbsolute) + "#" + xe.ReqMarkers.ARROW + "_line_ending)"
677
- )), pt(e, h, y, `<<${t.type}>>`);
678
- }, yt = (e, t, l) => {
679
- Object.keys(e).forEach((c) => {
680
- let u = e[c];
681
- c = H(c), Ne.info("Added new requirement: ", c);
682
- const d = l.append("g").attr("id", c), p = "req-" + c, h = Ae(d, p);
683
- let o = ve(d, c + "_title", [
684
- `<<${u.type}>>`,
685
- `${u.name}`
686
- ]);
687
- we(
688
- d,
689
- c + "_body",
690
- [
691
- `Id: ${u.id}`,
692
- `Text: ${u.text}`,
693
- `Risk: ${u.risk}`,
694
- `Verification: ${u.verifyMethod}`
695
- ],
696
- o.y
697
- );
698
- const g = h.node().getBBox();
699
- t.setNode(c, {
700
- width: g.width,
701
- height: g.height,
702
- shape: "rect",
703
- id: c
704
- });
705
- });
706
- }, _t = (e, t, l) => {
707
- Object.keys(e).forEach((c) => {
708
- let u = e[c];
709
- const d = H(c), p = l.append("g").attr("id", d), h = "element-" + d, o = Ae(p, h);
710
- let g = ve(p, h + "_title", ["<<Element>>", `${c}`]);
711
- we(
712
- p,
713
- h + "_body",
714
- [`Type: ${u.type || "Not Specified"}`, `Doc Ref: ${u.docRef || "None"}`],
715
- g.y
716
- );
717
- const R = o.node().getBBox();
718
- t.setNode(d, {
719
- width: R.width,
720
- height: R.height,
721
- shape: "rect",
722
- id: d
723
- });
724
- });
725
- }, gt = (e, t) => (e.forEach(function(l) {
726
- let c = H(l.src), u = H(l.dst);
727
- t.setEdge(c, u, { relationship: l });
728
- }), e), Et = function(e, t) {
729
- t.nodes().forEach(function(l) {
730
- l !== void 0 && t.node(l) !== void 0 && (e.select("#" + l), e.select("#" + l).attr(
731
- "transform",
732
- "translate(" + (t.node(l).x - t.node(l).width / 2) + "," + (t.node(l).y - t.node(l).height / 2) + " )"
733
- ));
734
- });
735
- }, H = (e) => e.replace(/\s/g, "").replace(/\./g, "_"), Rt = (e, t, l, c) => {
736
- y = Te().requirement;
737
- const u = y.securityLevel;
738
- let d;
739
- u === "sandbox" && (d = oe("#i" + t));
740
- const h = (u === "sandbox" ? oe(d.nodes()[0].contentDocument.body) : oe("body")).select(`[id='${t}']`);
741
- xe.insertLineEndings(h, y);
742
- const o = new Be({
743
- multigraph: !1,
744
- compound: !1,
745
- directed: !0
746
- }).setGraph({
747
- rankdir: y.layoutDirection,
748
- marginx: 20,
749
- marginy: 20,
750
- nodesep: 100,
751
- edgesep: 100,
752
- ranksep: 100
753
- }).setDefaultEdgeLabel(function() {
754
- return {};
755
- });
756
- let g = c.db.getRequirements(), R = c.db.getElements(), A = c.db.getRelationships();
757
- yt(g, o, h), _t(R, o, h), gt(A, o), Ue(o), Et(h, o), A.forEach(function(x) {
758
- ft(h, x, o, t, c);
759
- });
760
- const T = y.rect_padding, N = h.node().getBBox(), v = N.width + T * 2, k = N.height + T * 2;
761
- Pe(h, k, v, y.useMaxWidth), h.attr("viewBox", `${N.x - T} ${N.y - T} ${v} ${k}`);
762
- }, mt = {
763
- draw: Rt
764
- }, wt = {
765
- parser: He,
766
- db: ct,
767
- renderer: mt,
768
- styles: ut
769
- };
770
- export {
771
- wt as diagram
772
- };