@layers-app/editor 0.0.23 → 0.0.27

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 (223) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.d.ts +6 -44
  3. package/dist/index.js +2 -2
  4. package/dist/{layers.CGX7Piy7.js → layers.-XqzPqyO.js} +1 -1
  5. package/dist/{layers.D_MU5WlI.js → layers.-pZJVtr2.js} +1 -1
  6. package/dist/{layers.DXTPaWjN.js → layers.3JS7Upj0.js} +1 -1
  7. package/dist/{layers.CQv0GMRl.js → layers.44ZDFWK7.js} +1 -1
  8. package/dist/{layers.BBwDvE6l.js → layers.4utgKYyK.js} +1820 -1814
  9. package/dist/{layers.Dyqg_e4P.js → layers.5Z-wFY6j.js} +1 -1
  10. package/dist/{layers.CcJ28sUd.js → layers.5xC3et_d.js} +1 -1
  11. package/dist/{layers.Bv0tGvGl.js → layers.6JCbFAj6.js} +1 -1
  12. package/dist/{layers.CClfR9Rs.js → layers.6h3bxK1a.js} +10346 -11483
  13. package/dist/{layers.BUSnd1Ro.js → layers.77-S3nTe.js} +1 -1
  14. package/dist/{layers.CDzPpnhN.js → layers.7M4UNyUU.js} +5 -5
  15. package/dist/{layers.za1sylgg.js → layers.9tX9hjoM.js} +758 -758
  16. package/dist/{layers.Lhl12ohc.js → layers.B-9i7OJs.js} +1 -1
  17. package/dist/{layers.Dklz2JqP.js → layers.B0aPUUi4.js} +1 -1
  18. package/dist/{layers.N4wL2Xyj.js → layers.B2ffo7VT.js} +85 -85
  19. package/dist/{layers.DdTLZZKb.js → layers.B4b_0r0_.js} +6 -6
  20. package/dist/{layers.Ckbp-T9r.js → layers.B5W9KS-1.js} +1 -1
  21. package/dist/{layers.Cl9Tl2nd.js → layers.B8VoPWTl.js} +1 -1
  22. package/dist/{layers.B9zrmkst.js → layers.B8xcwXZK.js} +1 -1
  23. package/dist/{layers.gaT5_-NN.js → layers.B8z2WMpW.js} +1 -1
  24. package/dist/{layers.DHbdkCCU.js → layers.B9r2ZtSh.js} +1 -1
  25. package/dist/{layers.-rS-aTo2.js → layers.BF9fE7C8.js} +1 -1
  26. package/dist/{layers.ClQj75nc.js → layers.BFUqtCtE.js} +1 -1
  27. package/dist/{layers.D1cZq8tq.js → layers.BHT7hu0K.js} +3 -3
  28. package/dist/{layers.B-6oGNjd.js → layers.BJvR0g9w.js} +1 -1
  29. package/dist/{layers.Blho0qwc.js → layers.BKes9zCG.js} +1 -1
  30. package/dist/{layers.D3Hkinja.js → layers.BM9aR6Wc.js} +1 -1
  31. package/dist/{layers.D2q8ZYi2.js → layers.BNClpYmo.js} +15 -15
  32. package/dist/{layers.BO3dqWyO.js → layers.BPRzsxsG.js} +1 -1
  33. package/dist/{layers.C6Rn8zoI.js → layers.BPUdwzAa.js} +1 -1
  34. package/dist/{layers.DwLw5o0M.js → layers.BPku3sr2.js} +1 -1
  35. package/dist/{layers.gzGcAwbO.js → layers.BQZvK7Ld.js} +3 -3
  36. package/dist/{layers.C0bumYdC.js → layers.BSE8QsGw.js} +1 -1
  37. package/dist/{layers.lLRqycMO.js → layers.BSd-2_I0.js} +1 -1
  38. package/dist/{layers.Dbuivk7d.js → layers.BTI5U3cj.js} +1 -1
  39. package/dist/{layers.BYVHkqLR.js → layers.BTSxIBNW.js} +1 -1
  40. package/dist/{layers.CBXpUMze.js → layers.BTczMT9O.js} +35 -35
  41. package/dist/{layers.BEE5yqs5.js → layers.BWjXKJlb.js} +1 -1
  42. package/dist/{layers.BIVmclKv.js → layers.BXQIrASO.js} +1 -1
  43. package/dist/{layers.B9NSFeaj.js → layers.BXf1B1fk.js} +1 -1
  44. package/dist/{layers.D7HvMBb6.js → layers.BYlHLDae.js} +1 -1
  45. package/dist/{layers.2ODaB2Pd.js → layers.BZ2OjyG_.js} +1 -1
  46. package/dist/{layers.B_Hf0SF-.js → layers.BZGMS_YL.js} +517 -517
  47. package/dist/{layers.Ym7pRGM7.js → layers.B_Ifrq8A.js} +3 -3
  48. package/dist/{layers.DElpVOY-.js → layers.B_bguWvG.js} +1 -1
  49. package/dist/{layers.B39TZ2WV.js → layers.BaDLTNuw.js} +1 -1
  50. package/dist/{layers.B3odqoHb.js → layers.BbNPJK3G.js} +1 -1
  51. package/dist/{layers.BFLg4UGe.js → layers.BbX2Gt06.js} +1 -1
  52. package/dist/{layers.DCvUAfE1.js → layers.BcC4jCYQ.js} +1 -1
  53. package/dist/{layers.B64g6Zx2.js → layers.BcND7kmj.js} +1 -1
  54. package/dist/{layers.L_XjkGw6.js → layers.BcsSvL4N.js} +16 -16
  55. package/dist/layers.Bdma-bi1.js +1 -0
  56. package/dist/{layers.CPV5PaJ7.js → layers.BgH53BCx.js} +1 -1
  57. package/dist/{layers.C5rttXXy.js → layers.Bg_eB6d4.js} +4 -4
  58. package/dist/{layers.CvJxfPxo.js → layers.BhbIzB4V.js} +1 -1
  59. package/dist/{layers.k2UyvrHI.js → layers.BiFjyQe_.js} +1 -1
  60. package/dist/{layers.D9A031XO.js → layers.Bk2R9iWo.js} +2 -2
  61. package/dist/{layers.CTmkjIN6.js → layers.Bo8XWCDb.js} +1 -1
  62. package/dist/{layers.hkFN-BS0.js → layers.BoOJNRFl.js} +1 -1
  63. package/dist/{layers.CR10RAJi.js → layers.Bpk4Ctcr.js} +2 -2
  64. package/dist/{layers.UbqG2dp_.js → layers.BrNJ0Pz_.js} +1 -1
  65. package/dist/{layers.BUkDq4ln.js → layers.Brul_6T5.js} +1 -1
  66. package/dist/{layers.LOjND5R4.js → layers.Bsu1AT8z.js} +2 -2
  67. package/dist/{layers.CmHSmrZm.js → layers.BthCFGNg.js} +1 -1
  68. package/dist/{layers.CHHqQlm1.js → layers.Bti2UxbF.js} +1 -1
  69. package/dist/{layers.CMS1o_sE.js → layers.BuhxW9HQ.js} +1 -1
  70. package/dist/{layers.C3K_Whht.js → layers.BwnZ1xpT.js} +1 -1
  71. package/dist/{layers.C1KhBpGU.js → layers.C-B2iYxw.js} +1 -1
  72. package/dist/{layers.DMvWe0pJ.js → layers.C-PLaaW1.js} +2 -2
  73. package/dist/{layers.Bbl6qitU.js → layers.C1I8OftT.js} +1 -1
  74. package/dist/{layers.Cn6OfRlw.js → layers.C2Tygpbi.js} +1 -1
  75. package/dist/{layers.B8i9d7Qz.js → layers.C4DqDLg-.js} +38 -32
  76. package/dist/{layers.DrtkQKK7.js → layers.C5aZwGJ8.js} +1 -1
  77. package/dist/{layers.oFAtdeQ1.js → layers.C5htK5yR.js} +3 -3
  78. package/dist/{layers.D90-hSDT.js → layers.C6CCN2wS.js} +2 -2
  79. package/dist/{layers.CH23k4XD.js → layers.C76T9ib9.js} +1 -1
  80. package/dist/{layers.OEP2K3db.js → layers.C8KErGD4.js} +1 -1
  81. package/dist/{layers.BCFHxkpM.js → layers.C9-yhnQ_.js} +1 -1
  82. package/dist/{layers.Dol0x5Jd.js → layers.CA01MCW7.js} +1 -1
  83. package/dist/{layers.Ba97nTEK.js → layers.CBAr-ccc.js} +1 -1
  84. package/dist/{layers.BST6tR9a.js → layers.CBHnRD32.js} +1 -1
  85. package/dist/{layers.BDxQSquK.js → layers.CHRstlUi.js} +1 -1
  86. package/dist/{layers.DQCPMqIN.js → layers.CHyEShQb.js} +1 -1
  87. package/dist/layers.CHzF8aN-.js +118 -0
  88. package/dist/{layers.Y41CVpLS.js → layers.CL0btCq5.js} +33 -33
  89. package/dist/layers.CLPJWTr_.js +1 -0
  90. package/dist/{layers.DKPzrygv.js → layers.CNohXvTM.js} +1 -1
  91. package/dist/{layers.HcI9cOEd.js → layers.COVT50CF.js} +47 -47
  92. package/dist/{layers.B6UkAKu5.js → layers.CP74FqYL.js} +78 -78
  93. package/dist/{layers.CnD3z0eZ.js → layers.CPIGYQzV.js} +1 -1
  94. package/dist/{layers.DIrkcLlA.js → layers.CVJ3dtpa.js} +63 -63
  95. package/dist/{layers.CEXVJbhn.js → layers.CVJGf_dS.js} +1 -1
  96. package/dist/{layers.BZcZF6Ct.js → layers.CXyre7fi.js} +1 -1
  97. package/dist/{layers.CDLdte-o.js → layers.CYAKjsCY.js} +1 -1
  98. package/dist/{layers.BPnpanwd.js → layers.CZuNERKr.js} +1 -1
  99. package/dist/{layers.ClaqpFnu.js → layers.C_0V8gfT.js} +2 -2
  100. package/dist/layers.C_LpHycI.js +122 -0
  101. package/dist/{layers.C_dOgKfE.js → layers.CcUrvj1L.js} +1 -1
  102. package/dist/{layers.BD5uUnI2.js → layers.CewW7kYw.js} +279 -279
  103. package/dist/{layers.CnloMtKN.js → layers.CgEWPiYB.js} +14 -14
  104. package/dist/{layers.C-G7-Jg3.js → layers.Ch4JHkKx.js} +1 -1
  105. package/dist/{layers.CSjWzlk9.js → layers.Cj303CSV.js} +1 -1
  106. package/dist/{layers.Dg8Wbn90.js → layers.Cju8Sa_Q.js} +1 -1
  107. package/dist/{layers.DxGDxkXA.js → layers.Cjxt8nIg.js} +47 -47
  108. package/dist/{layers.D2vOkfMK.js → layers.Cllpx3ld.js} +1 -1
  109. package/dist/{layers.DDRgaMwu.js → layers.Cpo4EON4.js} +1 -1
  110. package/dist/layers.CrLpnenG.js +1 -0
  111. package/dist/{layers.BXGiOI1Z.js → layers.CruBr5KJ.js} +1 -1
  112. package/dist/{layers.FstVqdQC.js → layers.Cs3lCndw.js} +151 -151
  113. package/dist/{layers.Bfd5bOAD.js → layers.Csx06TKa.js} +1 -1
  114. package/dist/{layers.Cx14IKzN.js → layers.CtNxT4bX.js} +1 -1
  115. package/dist/{layers.BDhuxbhX.js → layers.Ctkab7zE.js} +1 -1
  116. package/dist/{layers.DARK07JA.js → layers.CtyUp91J.js} +1 -1
  117. package/dist/{layers.BjZInKjA.js → layers.CwbKR3tp.js} +2 -2
  118. package/dist/{layers.gRKbOYG-.js → layers.CxEkiqDR.js} +26 -26
  119. package/dist/{layers.DGZUGztZ.js → layers.D-pR7pmV.js} +29 -29
  120. package/dist/{layers.ChykDTOy.js → layers.D0tiOhqA.js} +1 -1
  121. package/dist/{layers.CGc04km7.js → layers.D3LfwBOp.js} +1 -1
  122. package/dist/{layers.cp645rbn.js → layers.D3Mywbyx.js} +1 -1
  123. package/dist/{layers.I5-pSyca.js → layers.D4qPD37W.js} +1 -1
  124. package/dist/{layers.BhM2iCwB.js → layers.D5_CFDU_.js} +1 -1
  125. package/dist/{layers.DhiFm4jW.js → layers.D63Vq18T.js} +1 -1
  126. package/dist/{layers.BdanmQPF.js → layers.D6IcbDJa.js} +1 -1
  127. package/dist/{layers.B0pdr1hX.js → layers.D6_cQf9O.js} +33 -33
  128. package/dist/{layers.kthR742N.js → layers.D6a6qxmr.js} +1 -1
  129. package/dist/layers.D7xAhxaO.js +6 -0
  130. package/dist/{layers.BuQ1nJmP.js → layers.D8qe0Siv.js} +1 -1
  131. package/dist/{layers.PO65UmTA.js → layers.DAUJf380.js} +1 -1
  132. package/dist/{layers.Bwpn7zKE.js → layers.DBBjhYox.js} +1 -1
  133. package/dist/{layers.5BbX0Xoz.js → layers.DBZ4nt4A.js} +57 -57
  134. package/dist/{layers.BJMMuP5r.js → layers.DBb6ZTQb.js} +1 -1
  135. package/dist/{layers.B0EkntbT.js → layers.DCZZx-_I.js} +1 -1
  136. package/dist/{layers.CphCG076.js → layers.DCpKUlgF.js} +1 -1
  137. package/dist/{layers.rRMBW9ET.js → layers.DDkR5Ts6.js} +251 -251
  138. package/dist/{layers.BPe9NQzP.js → layers.DEcSY6CT.js} +1 -1
  139. package/dist/{layers.DYx3Ot6h.js → layers.DFHjT2lH.js} +1 -1
  140. package/dist/{layers.DXaSAlDN.js → layers.DGECi3uy.js} +1 -1
  141. package/dist/{layers.PhLwHKUM.js → layers.DHeN0kJF.js} +1 -1
  142. package/dist/{layers.C5uR7AiN.js → layers.DIHGOC7q.js} +1 -1
  143. package/dist/{layers.ChPHYv68.js → layers.DIisKDqA.js} +1 -1
  144. package/dist/{layers.tbRLuldN.js → layers.DKAO_t2e.js} +1 -1
  145. package/dist/layers.DKDhSm3W.js +1 -0
  146. package/dist/{layers.CwPFdFUT.js → layers.DL7GcZkM.js} +1 -1
  147. package/dist/{layers.I-MG0ir4.js → layers.DLBoqOPY.js} +7051 -7014
  148. package/dist/{layers.iw01AOuQ.js → layers.DMKRtGOO.js} +96 -96
  149. package/dist/{layers.BLB-feoT.js → layers.DOxdGhXS.js} +1 -1
  150. package/dist/{layers.DeB3waPT.js → layers.DQ2Xcr60.js} +1 -1
  151. package/dist/layers.DRJbljY3.js +2 -0
  152. package/dist/{layers.Bk2PdkMX.js → layers.DSv_J9bL.js} +1 -1
  153. package/dist/{layers.DAx0hT2g.js → layers.DUrMIw9R.js} +1 -1
  154. package/dist/{layers.fTcEk1do.js → layers.DUt_7Rf9.js} +7 -7
  155. package/dist/{layers.D18RSmmQ.js → layers.DV-7KP2x.js} +1 -1
  156. package/dist/layers.DWAHzpeJ.js +65 -0
  157. package/dist/{layers.Ck0iJfoW.js → layers.D_Wzp8Cn.js} +1 -1
  158. package/dist/{layers.BFOl7cA-.js → layers.DakFhu3n.js} +1 -1
  159. package/dist/{layers.BBU3ik5q.js → layers.DdfiL5kD.js} +3 -3
  160. package/dist/{layers.DEfJs03Z.js → layers.DeDtDGVu.js} +1 -1
  161. package/dist/{layers.DalYdEkL.js → layers.DfaL2q8R.js} +4 -4
  162. package/dist/{layers.D68FZk66.js → layers.DfnEKrUj.js} +1 -1
  163. package/dist/{layers.BkMfeJ9R.js → layers.DixGTGe2.js} +1 -1
  164. package/dist/{layers.Dyor8Hot.js → layers.Dj9C8dFr.js} +28 -28
  165. package/dist/{layers.Ci0x4aAi.js → layers.DlsG5gru.js} +5 -5
  166. package/dist/{layers.DFd9A85i.js → layers.Dp-Xbgxy.js} +4 -4
  167. package/dist/{layers.BLSqqbWP.js → layers.DpFjxIHM.js} +4 -4
  168. package/dist/{layers.x6Qk2Mwl.js → layers.DrLqWw04.js} +1 -1
  169. package/dist/{layers.Dxrm0nEM.js → layers.DsT1BxXu.js} +140 -140
  170. package/dist/{layers.Ci0QS82_.js → layers.Dt7NdfDn.js} +1 -1
  171. package/dist/{layers.BoabOlrX.js → layers.Duxds2E7.js} +1 -1
  172. package/dist/{layers.DsAtBUs-.js → layers.DxXZMHl1.js} +5 -5
  173. package/dist/{layers.BvZFIFgz.js → layers.Dz0pDzZ2.js} +1 -1
  174. package/dist/{layers.Cp82yltX.js → layers.DzSwrBkm.js} +1 -1
  175. package/dist/{layers.DO-G3uLL.js → layers.DzXwulE9.js} +1 -1
  176. package/dist/layers.E0TqyNY6.js +202 -0
  177. package/dist/{layers.CiNAQOA-.js → layers.EdniTKSB.js} +2 -2
  178. package/dist/{layers.Bz0ApNUe.js → layers.IYUvfd4q.js} +14 -14
  179. package/dist/{layers.ChAMqLmE.js → layers.JIqu3EuS.js} +1 -1
  180. package/dist/{layers.CCRe_IA7.js → layers.JoXvoQtK.js} +1 -1
  181. package/dist/{layers.CeMe5scF.js → layers.LKsuEHeo.js} +1 -1
  182. package/dist/{layers.Cxmncz59.js → layers.LW-EdoNU.js} +1 -1
  183. package/dist/{layers.p9hSNB6N.js → layers.NLUe-Zd7.js} +1 -1
  184. package/dist/{layers.x6ioP3u0.js → layers.OG2GCG5d.js} +1 -1
  185. package/dist/layers.O_QfH9Tw.js +55 -0
  186. package/dist/{layers.B-ie1_cm.js → layers.Q61rVzjQ.js} +1 -1
  187. package/dist/{layers.ChJyurjQ.js → layers.QMSF2I3x.js} +1 -1
  188. package/dist/{layers.C51kZnWr.js → layers.RC04NTdF.js} +1 -1
  189. package/dist/{layers.D-ZYFolm.js → layers.X2Q_jYIN.js} +1 -1
  190. package/dist/{layers.CZh7NZyl.js → layers.Y9024OPf.js} +1 -1
  191. package/dist/{layers.-RxAm5pH.js → layers.Zcvgtj43.js} +47 -47
  192. package/dist/{layers.DK_t52oS.js → layers.dE10rGCq.js} +390 -390
  193. package/dist/{layers.c_QDfgff.js → layers.dJ7Y_uj4.js} +4 -4
  194. package/dist/layers.dbGRsALw.js +10 -0
  195. package/dist/{layers.kY3ZYtED.js → layers.gQj2seW8.js} +1 -1
  196. package/dist/{layers.BpXiFzvR.js → layers.gnhLHWor.js} +1 -1
  197. package/dist/{layers.CO4NHmK3.js → layers.iZHGKF34.js} +1 -1
  198. package/dist/{layers.CZMy0ug4.js → layers.k9xSs9fH.js} +1 -1
  199. package/dist/{layers.BBB7YGK1.js → layers.kuAa_osE.js} +1 -1
  200. package/dist/{layers.CR4riLSc.js → layers.nK8yMUfw.js} +639 -639
  201. package/dist/{layers.BHDiP2sq.js → layers.oeHNlcSJ.js} +1482 -1482
  202. package/dist/{layers.WsdOSV4y.js → layers.oyFM1DlU.js} +1 -1
  203. package/dist/{layers.DhzTwBn5.js → layers.sctyB8h-.js} +1 -1
  204. package/dist/{layers.Ch7C0MR9.js → layers.uim2_WMD.js} +1 -1
  205. package/dist/layers.wKm27PFc.js +8 -0
  206. package/dist/{layers.dqI-yLmM.js → layers.wQvpu0z-.js} +1 -1
  207. package/dist/{layers.paz6tc0L.js → layers.wpRKShXC.js} +1 -1
  208. package/dist/{layers.Dzc83sE7.js → layers.y6ChlfJ8.js} +1 -1
  209. package/dist/{layers.CqM3rL4-.js → layers.zOav7lS3.js} +1 -1
  210. package/package.json +1 -4
  211. package/dist/layers.BK01wvsE.js +0 -10
  212. package/dist/layers.BQLZhz6B.js +0 -6
  213. package/dist/layers.BUsBCyiL.js +0 -202
  214. package/dist/layers.BkjjkAwW.js +0 -2
  215. package/dist/layers.BwfB_nzW.js +0 -8
  216. package/dist/layers.CQXDzk5h.js +0 -1
  217. package/dist/layers.CeVpKhli.js +0 -122
  218. package/dist/layers.DTDpNGfk.js +0 -1
  219. package/dist/layers.Dk9dbz6F.js +0 -118
  220. package/dist/layers.DtoCH9Nn.js +0 -1
  221. package/dist/layers.DzaH7mDC.js +0 -65
  222. package/dist/layers.Tatx7z0m.js +0 -55
  223. package/dist/layers.h0tSRttU.js +0 -1
@@ -1,4 +1,4 @@
1
- import { U as a, C as n } from "./layers.BBwDvE6l.js";
1
+ import { U as a, C as n } from "./layers.4utgKYyK.js";
2
2
  const t = (r, o) => a.lang.round(n.parse(r)[o]);
3
3
  export {
4
4
  t as c
@@ -1,9 +1,9 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./layers.CBXpUMze.js");require("lodash-es");const Ve=require("./layers.COAF7f8g.js"),Oe=require("./layers.9QK1wiQj.js");require("./layers.B8i9d7Qz.js");const Le=require("./layers.CGX7Piy7.js");var oe=function(){var e=function(V,i,r,a){for(r=r||{},a=V.length;a--;r[V[a]]=i);return r},t=[1,3],l=[1,4],o=[1,5],u=[1,6],d=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],f=[1,18],h=[2,7],c=[1,22],g=[1,23],R=[1,24],$=[1,25],N=[1,26],x=[1,27],w=[1,20],S=[1,28],A=[1,29],M=[62,63],de=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],fe=[1,47],pe=[1,48],ye=[1,49],_e=[1,50],ge=[1,51],Ee=[1,52],Re=[1,53],L=[53,54],D=[1,64],P=[1,60],Y=[1,61],U=[1,62],B=[1,63],Q=[1,65],z=[1,69],X=[1,70],J=[1,67],Z=[1,68],I=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ne={trace:function(){},yy:{},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},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"},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]],performAction:function(i,r,a,n,p,s,K){var _=s.length-1;switch(p){case 4:this.$=s[_].trim(),n.setAccTitle(this.$);break;case 5:case 6:this.$=s[_].trim(),n.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:n.addRequirement(s[_-3],s[_-4]);break;case 14:n.setNewReqId(s[_-2]);break;case 15:n.setNewReqText(s[_-2]);break;case 16:n.setNewReqRisk(s[_-2]);break;case 17:n.setNewReqVerifyMethod(s[_-2]);break;case 20:this.$=n.RequirementType.REQUIREMENT;break;case 21:this.$=n.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=n.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=n.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=n.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=n.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=n.RiskLevel.LOW_RISK;break;case 27:this.$=n.RiskLevel.MED_RISK;break;case 28:this.$=n.RiskLevel.HIGH_RISK;break;case 29:this.$=n.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=n.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=n.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=n.VerifyType.VERIFY_TEST;break;case 33:n.addElement(s[_-3]);break;case 34:n.setNewElementType(s[_-2]);break;case 35:n.setNewElementDocRef(s[_-2]);break;case 38:n.addRelationship(s[_-2],s[_],s[_-4]);break;case 39:n.addRelationship(s[_-2],s[_-4],s[_]);break;case 40:this.$=n.Relationships.CONTAINS;break;case 41:this.$=n.Relationships.COPIES;break;case 42:this.$=n.Relationships.DERIVES;break;case 43:this.$=n.Relationships.SATISFIES;break;case 44:this.$=n.Relationships.VERIFIES;break;case 45:this.$=n.Relationships.REFINES;break;case 46:this.$=n.Relationships.TRACES;break}},table:[{3:1,4:2,6:t,9:l,11:o,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:l,11:o,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(d,[2,6]),{3:12,4:2,6:t,9:l,11:o,13:u},{1:[2,2]},{4:17,5:f,7:13,8:h,9:l,11:o,13:u,14:14,15:15,16:16,17:19,23:21,31:c,32:g,33:R,34:$,35:N,36:x,44:w,62:S,63:A},e(d,[2,4]),e(d,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:f,7:31,8:h,9:l,11:o,13:u,14:14,15:15,16:16,17:19,23:21,31:c,32:g,33:R,34:$,35:N,36:x,44:w,62:S,63:A},{4:17,5:f,7:32,8:h,9:l,11:o,13:u,14:14,15:15,16:16,17:19,23:21,31:c,32:g,33:R,34:$,35:N,36:x,44:w,62:S,63:A},{4:17,5:f,7:33,8:h,9:l,11:o,13:u,14:14,15:15,16:16,17:19,23:21,31:c,32:g,33:R,34:$,35:N,36:x,44:w,62:S,63:A},{4:17,5:f,7:34,8:h,9:l,11:o,13:u,14:14,15:15,16:16,17:19,23:21,31:c,32:g,33:R,34:$,35:N,36:x,44:w,62:S,63:A},{4:17,5:f,7:35,8:h,9:l,11:o,13:u,14:14,15:15,16:16,17:19,23:21,31:c,32:g,33:R,34:$,35:N,36:x,44:w,62:S,63:A},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(M,[2,20]),e(M,[2,21]),e(M,[2,22]),e(M,[2,23]),e(M,[2,24]),e(M,[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:fe,56:pe,57:ye,58:_e,59:ge,60:Ee,61:Re},{52:54,55:fe,56:pe,57:ye,58:_e,59:ge,60:Ee,61:Re},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(L,[2,40]),e(L,[2,41]),e(L,[2,42]),e(L,[2,43]),e(L,[2,44]),e(L,[2,45]),e(L,[2,46]),{54:[1,58]},{5:D,20:59,21:P,24:Y,26:U,28:B,30:Q},{5:z,30:X,46:66,47:J,49:Z},{23:71,62:S,63:A},{23:72,62:S,63:A},e(I,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:D,20:77,21:P,24:Y,26:U,28:B,30:Q},e(I,[2,19]),e(I,[2,33]),{22:[1,78]},{22:[1,79]},{5:z,30:X,46:80,47:J,49:Z},e(I,[2,37]),e(I,[2,38]),e(I,[2,39]),{23:81,62:S,63:A},{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(I,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(I,[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:D,20:106,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:107,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:108,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:109,21:P,24:Y,26:U,28:B,30:Q},{5:z,30:X,46:110,47:J,49:Z},{5:z,30:X,46:111,47:J,49:Z},e(I,[2,14]),e(I,[2,15]),e(I,[2,16]),e(I,[2,17]),e(I,[2,34]),e(I,[2,35])],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]},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=r,a}},parse:function(i){var r=this,a=[0],n=[],p=[null],s=[],K=this.table,_="",ee=0,me=0,$e=2,Ie=1,we=s.slice.call(arguments,1),E=Object.create(this.lexer),C={yy:{}};for(var se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,se)&&(C.yy[se]=this.yy[se]);E.setInput(i,C.yy),C.yy.lexer=E,C.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ae=E.yylloc;s.push(ae);var ve=E.options&&E.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function qe(){var q;return q=n.pop()||E.lex()||Ie,typeof q!="number"&&(q instanceof Array&&(n=q,q=n.pop()),q=r.symbols_[q]||q),q}for(var b,F,T,le,H={},te,v,be,ie;;){if(F=a[a.length-1],this.defaultActions[F]?T=this.defaultActions[F]:((b===null||typeof b>"u")&&(b=qe()),T=K[F]&&K[F][b]),typeof T>"u"||!T.length||!T[0]){var ce="";ie=[];for(te in K[F])this.terminals_[te]&&te>$e&&ie.push("'"+this.terminals_[te]+"'");E.showPosition?ce="Parse error on line "+(ee+1)+`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./layers.BTczMT9O.js");require("lodash-es");const Ve=require("./layers.COAF7f8g.js"),Oe=require("./layers.9QK1wiQj.js");require("./layers.C4DqDLg-.js");const Le=require("./layers.-XqzPqyO.js");var ce=function(){var e=function(V,i,r,a){for(r=r||{},a=V.length;a--;r[V[a]]=i);return r},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],v=[1,25],N=[1,26],x=[1,27],$=[1,20],S=[1,28],A=[1,29],M=[62,63],de=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],pe=[1,47],ye=[1,48],fe=[1,49],_e=[1,50],ge=[1,51],Ee=[1,52],Re=[1,53],L=[53,54],D=[1,64],P=[1,60],Y=[1,61],U=[1,62],B=[1,63],Q=[1,65],z=[1,69],X=[1,70],J=[1,67],Z=[1,68],I=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ne={trace:function(){},yy:{},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},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"},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]],performAction:function(i,r,a,n,y,s,K){var _=s.length-1;switch(y){case 4:this.$=s[_].trim(),n.setAccTitle(this.$);break;case 5:case 6:this.$=s[_].trim(),n.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:n.addRequirement(s[_-3],s[_-4]);break;case 14:n.setNewReqId(s[_-2]);break;case 15:n.setNewReqText(s[_-2]);break;case 16:n.setNewReqRisk(s[_-2]);break;case 17:n.setNewReqVerifyMethod(s[_-2]);break;case 20:this.$=n.RequirementType.REQUIREMENT;break;case 21:this.$=n.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=n.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=n.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=n.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=n.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=n.RiskLevel.LOW_RISK;break;case 27:this.$=n.RiskLevel.MED_RISK;break;case 28:this.$=n.RiskLevel.HIGH_RISK;break;case 29:this.$=n.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=n.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=n.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=n.VerifyType.VERIFY_TEST;break;case 33:n.addElement(s[_-3]);break;case 34:n.setNewElementType(s[_-2]);break;case 35:n.setNewElementDocRef(s[_-2]);break;case 38:n.addRelationship(s[_-2],s[_],s[_-4]);break;case 39:n.addRelationship(s[_-2],s[_-4],s[_]);break;case 40:this.$=n.Relationships.CONTAINS;break;case 41:this.$=n.Relationships.COPIES;break;case 42:this.$=n.Relationships.DERIVES;break;case 43:this.$=n.Relationships.SATISFIES;break;case 44:this.$=n.Relationships.VERIFIES;break;case 45:this.$=n.Relationships.REFINES;break;case 46:this.$=n.Relationships.TRACES;break}},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:v,35:N,36:x,44:$,62:S,63:A},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:v,35:N,36:x,44:$,62:S,63:A},{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:v,35:N,36:x,44:$,62:S,63:A},{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:v,35:N,36:x,44:$,62:S,63:A},{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:v,35:N,36:x,44:$,62:S,63:A},{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:v,35:N,36:x,44:$,62:S,63:A},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(M,[2,20]),e(M,[2,21]),e(M,[2,22]),e(M,[2,23]),e(M,[2,24]),e(M,[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:ye,57:fe,58:_e,59:ge,60:Ee,61:Re},{52:54,55:pe,56:ye,57:fe,58:_e,59:ge,60:Ee,61:Re},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(L,[2,40]),e(L,[2,41]),e(L,[2,42]),e(L,[2,43]),e(L,[2,44]),e(L,[2,45]),e(L,[2,46]),{54:[1,58]},{5:D,20:59,21:P,24:Y,26:U,28:B,30:Q},{5:z,30:X,46:66,47:J,49:Z},{23:71,62:S,63:A},{23:72,62:S,63:A},e(I,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:D,20:77,21:P,24:Y,26:U,28:B,30:Q},e(I,[2,19]),e(I,[2,33]),{22:[1,78]},{22:[1,79]},{5:z,30:X,46:80,47:J,49:Z},e(I,[2,37]),e(I,[2,38]),e(I,[2,39]),{23:81,62:S,63:A},{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(I,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(I,[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:D,20:106,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:107,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:108,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:109,21:P,24:Y,26:U,28:B,30:Q},{5:z,30:X,46:110,47:J,49:Z},{5:z,30:X,46:111,47:J,49:Z},e(I,[2,14]),e(I,[2,15]),e(I,[2,16]),e(I,[2,17]),e(I,[2,34]),e(I,[2,35])],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]},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var a=new Error(i);throw a.hash=r,a}},parse:function(i){var r=this,a=[0],n=[],y=[null],s=[],K=this.table,_="",ee=0,me=0,ve=2,Ie=1,$e=s.slice.call(arguments,1),E=Object.create(this.lexer),C={yy:{}};for(var se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,se)&&(C.yy[se]=this.yy[se]);E.setInput(i,C.yy),C.yy.lexer=E,C.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var ae=E.yylloc;s.push(ae);var we=E.options&&E.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function qe(){var q;return q=n.pop()||E.lex()||Ie,typeof q!="number"&&(q instanceof Array&&(n=q,q=n.pop()),q=r.symbols_[q]||q),q}for(var b,F,T,le,H={},te,w,be,ie;;){if(F=a[a.length-1],this.defaultActions[F]?T=this.defaultActions[F]:((b===null||typeof b>"u")&&(b=qe()),T=K[F]&&K[F][b]),typeof T>"u"||!T.length||!T[0]){var oe="";ie=[];for(te in K[F])this.terminals_[te]&&te>ve&&ie.push("'"+this.terminals_[te]+"'");E.showPosition?oe="Parse error on line "+(ee+1)+`:
2
2
  `+E.showPosition()+`
3
- Expecting `+ie.join(", ")+", got '"+(this.terminals_[b]||b)+"'":ce="Parse error on line "+(ee+1)+": Unexpected "+(b==Ie?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(ce,{text:E.match,token:this.terminals_[b]||b,line:E.yylineno,loc:ae,expected:ie})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+F+", token: "+b);switch(T[0]){case 1:a.push(b),p.push(E.yytext),s.push(E.yylloc),a.push(T[1]),b=null,me=E.yyleng,_=E.yytext,ee=E.yylineno,ae=E.yylloc;break;case 2:if(v=this.productions_[T[1]][1],H.$=p[p.length-v],H._$={first_line:s[s.length-(v||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(v||1)].first_column,last_column:s[s.length-1].last_column},ve&&(H._$.range=[s[s.length-(v||1)].range[0],s[s.length-1].range[1]]),le=this.performAction.apply(H,[_,me,ee,C.yy,T[1],p,s].concat(we)),typeof le<"u")return le;v&&(a=a.slice(0,-1*v*2),p=p.slice(0,-1*v),s=s.slice(0,-1*v)),a.push(this.productions_[T[1]][0]),p.push(H.$),s.push(H._$),be=K[a[a.length-2]][a[a.length-1]],a.push(be);break;case 3:return!0}}return!0}},Ae=function(){var V={EOF:1,parseError:function(r,a){if(this.yy.parser)this.yy.parser.parseError(r,a);else throw new Error(r)},setInput:function(i,r){return this.yy=r||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={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var r=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var n=this.match.split(/(?:\r\n?|\n)/g);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);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===n.length?this.yylloc.first_column:0)+n[n.length-a.length].length-a[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;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).
3
+ Expecting `+ie.join(", ")+", got '"+(this.terminals_[b]||b)+"'":oe="Parse error on line "+(ee+1)+": Unexpected "+(b==Ie?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(oe,{text:E.match,token:this.terminals_[b]||b,line:E.yylineno,loc:ae,expected:ie})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+F+", token: "+b);switch(T[0]){case 1:a.push(b),y.push(E.yytext),s.push(E.yylloc),a.push(T[1]),b=null,me=E.yyleng,_=E.yytext,ee=E.yylineno,ae=E.yylloc;break;case 2:if(w=this.productions_[T[1]][1],H.$=y[y.length-w],H._$={first_line:s[s.length-(w||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(w||1)].first_column,last_column:s[s.length-1].last_column},we&&(H._$.range=[s[s.length-(w||1)].range[0],s[s.length-1].range[1]]),le=this.performAction.apply(H,[_,me,ee,C.yy,T[1],y,s].concat($e)),typeof le<"u")return le;w&&(a=a.slice(0,-1*w*2),y=y.slice(0,-1*w),s=s.slice(0,-1*w)),a.push(this.productions_[T[1]][0]),y.push(H.$),s.push(H._$),be=K[a[a.length-2]][a[a.length-1]],a.push(be);break;case 3:return!0}}return!0}},Ae=function(){var V={EOF:1,parseError:function(r,a){if(this.yy.parser)this.yy.parser.parseError(r,a);else throw new Error(r)},setInput:function(i,r){return this.yy=r||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={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var r=i.length,a=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var n=this.match.split(/(?:\r\n?|\n)/g);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);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===n.length?this.yylloc.first_column:0)+n[n.length-a.length].length-a[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;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).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
5
- `+r+"^"},test_match:function(i,r){var a,n,p;if(this.options.backtrack_lexer&&(p={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(p.yylloc.range=this.yylloc.range.slice(0))),n=i[0].match(/(?:\r\n?|\n).*/g),n&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},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,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var s in p)this[s]=p[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,r,a,n;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),s=0;s<p.length;s++)if(a=this._input.match(this.rules[p[s]]),a&&(!r||a[0].length>r[0].length)){if(r=a,n=s,this.options.backtrack_lexer){if(i=this.test_match(a,p[s]),i!==!1)return i;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(i=this.test_match(r,p[n]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,a,n,p){switch(n){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:return 8;case 13:return 6;case 14:return 19;case 15:return 30;case 16:return 22;case 17:return 21;case 18:return 24;case 19:return 26;case 20:return 28;case 21:return 31;case 22:return 32;case 23:return 33;case 24:return 34;case 25:return 35;case 26:return 36;case 27:return 37;case 28:return 38;case 29:return 39;case 30:return 40;case 31:return 41;case 32:return 42;case 33:return 43;case 34:return 44;case 35:return 55;case 36:return 56;case 37:return 57;case 38:return 58;case 39:return 59;case 40:return 60;case 41:return 61;case 42:return 47;case 43:return 49;case 44:return 51;case 45:return 54;case 46:return 53;case 47:this.begin("string");break;case 48:this.popState();break;case 49:return"qString";case 50:return a.yytext=a.yytext.trim(),62}},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],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}}};return V}();ne.lexer=Ae;function re(){this.yy={}}return re.prototype=ne,ne.Parser=re,new re}();oe.parser=oe;const Ce=oe;let ue=[],k={},G={},O={},j={};const Fe={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},Me={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},De={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Pe={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},Ye=(e,t)=>(G[e]===void 0&&(G[e]={name:e,type:t,id:k.id,text:k.text,risk:k.risk,verifyMethod:k.verifyMethod}),k={},G[e]),Ue=()=>G,Be=e=>{k!==void 0&&(k.id=e)},Qe=e=>{k!==void 0&&(k.text=e)},He=e=>{k!==void 0&&(k.risk=e)},We=e=>{k!==void 0&&(k.verifyMethod=e)},Ke=e=>(j[e]===void 0&&(j[e]={name:e,type:O.type,docRef:O.docRef},m.log$1.info("Added new requirement: ",e)),O={},j[e]),Ge=()=>j,je=e=>{O!==void 0&&(O.type=e)},ze=e=>{O!==void 0&&(O.docRef=e)},Xe=(e,t,l)=>{ue.push({type:e,src:t,dst:l})},Je=()=>ue,Ze=()=>{ue=[],k={},G={},O={},j={},m.clear()},et={RequirementType:Fe,RiskLevel:Me,VerifyType:De,Relationships:Pe,getConfig:()=>m.getConfig().req,addRequirement:Ye,getRequirements:Ue,setNewReqId:Be,setNewReqText:Qe,setNewReqRisk:He,setNewReqVerifyMethod:We,setAccTitle:m.setAccTitle,getAccTitle:m.getAccTitle,setAccDescription:m.setAccDescription,getAccDescription:m.getAccDescription,addElement:Ke,getElements:Ge,setNewElementType:je,setNewElementDocRef:ze,addRelationship:Xe,getRelationships:Je,clear:Ze},tt=e=>`
5
+ `+r+"^"},test_match:function(i,r){var a,n,y;if(this.options.backtrack_lexer&&(y={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(y.yylloc.range=this.yylloc.range.slice(0))),n=i[0].match(/(?:\r\n?|\n).*/g),n&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},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,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var s in y)this[s]=y[s];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,r,a,n;this._more||(this.yytext="",this.match="");for(var y=this._currentRules(),s=0;s<y.length;s++)if(a=this._input.match(this.rules[y[s]]),a&&(!r||a[0].length>r[0].length)){if(r=a,n=s,this.options.backtrack_lexer){if(i=this.test_match(a,y[s]),i!==!1)return i;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(i=this.test_match(r,y[n]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,a,n,y){switch(n){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:return 8;case 13:return 6;case 14:return 19;case 15:return 30;case 16:return 22;case 17:return 21;case 18:return 24;case 19:return 26;case 20:return 28;case 21:return 31;case 22:return 32;case 23:return 33;case 24:return 34;case 25:return 35;case 26:return 36;case 27:return 37;case 28:return 38;case 29:return 39;case 30:return 40;case 31:return 41;case 32:return 42;case 33:return 43;case 34:return 44;case 35:return 55;case 36:return 56;case 37:return 57;case 38:return 58;case 39:return 59;case 40:return 60;case 41:return 61;case 42:return 47;case 43:return 49;case 44:return 51;case 45:return 54;case 46:return 53;case 47:this.begin("string");break;case 48:this.popState();break;case 49:return"qString";case 50:return a.yytext=a.yytext.trim(),62}},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],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}}};return V}();ne.lexer=Ae;function re(){this.yy={}}return re.prototype=ne,ne.Parser=re,new re}();ce.parser=ce;const Ce=ce;let ue=[],k={},G={},O={},j={};const Fe={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},Me={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},De={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Pe={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},Ye=(e,t)=>(G[e]===void 0&&(G[e]={name:e,type:t,id:k.id,text:k.text,risk:k.risk,verifyMethod:k.verifyMethod}),k={},G[e]),Ue=()=>G,Be=e=>{k!==void 0&&(k.id=e)},Qe=e=>{k!==void 0&&(k.text=e)},He=e=>{k!==void 0&&(k.risk=e)},We=e=>{k!==void 0&&(k.verifyMethod=e)},Ke=e=>(j[e]===void 0&&(j[e]={name:e,type:O.type,docRef:O.docRef},m.log$1.info("Added new requirement: ",e)),O={},j[e]),Ge=()=>j,je=e=>{O!==void 0&&(O.type=e)},ze=e=>{O!==void 0&&(O.docRef=e)},Xe=(e,t,l)=>{ue.push({type:e,src:t,dst:l})},Je=()=>ue,Ze=()=>{ue=[],k={},G={},O={},j={},m.clear()},et={RequirementType:Fe,RiskLevel:Me,VerifyType:De,Relationships:Pe,getConfig:()=>m.getConfig().req,addRequirement:Ye,getRequirements:Ue,setNewReqId:Be,setNewReqText:Qe,setNewReqRisk:He,setNewReqVerifyMethod:We,setAccTitle:m.setAccTitle,getAccTitle:m.getAccTitle,setAccDescription:m.setAccDescription,getAccDescription:m.getAccDescription,addElement:Ke,getElements:Ge,setNewElementType:je,setNewElementDocRef:ze,addRelationship:Xe,getRelationships:Je,clear:Ze},tt=e=>`
7
7
 
8
8
  marker {
9
9
  fill: ${e.relationColor};
@@ -49,4 +49,4 @@ Expecting `+ie.join(", ")+", got '"+(this.terminals_[b]||b)+"'":ce="Parse error
49
49
  `,it=tt,he={CONTAINS:"contains",ARROW:"arrow"},nt=(e,t)=>{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");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",.5*t.line_height).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("path").attr("d",`M0,0
50
50
  L${t.line_height},${t.line_height/2}
51
51
  M${t.line_height},${t.line_height/2}
52
- L0,${t.line_height}`).attr("stroke-width",1)},Se={ReqMarkers:he,insertLineEndings:nt};let y={},ke=0;const Te=(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"),Ne=(e,t,l)=>{let o=y.rect_min_width/2,u=e.append("text").attr("class","req reqLabel reqTitle").attr("id",t).attr("x",o).attr("y",y.rect_padding).attr("dominant-baseline","hanging"),d=0;l.forEach(g=>{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*.75).text(g),d++});let f=1.5*y.rect_padding,h=d*y.line_height*.75,c=f+h;return e.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",y.rect_min_width).attr("y1",c).attr("y2",c),{titleNode:u,y:c}},xe=(e,t,l,o)=>{let u=e.append("text").attr("class","req reqLabel").attr("id",t).attr("x",y.rect_padding).attr("y",o).attr("dominant-baseline","hanging"),d=0;const f=30;let h=[];return l.forEach(c=>{let g=c.length;for(;g>f&&d<3;){let R=c.substring(0,f);c=c.substring(f,c.length),g=c.length,h[h.length]=R,d++}if(d==3){let R=h[h.length-1];h[h.length-1]=R.substring(0,R.length-4)+"..."}else h[h.length]=c;d=0}),h.forEach(c=>{u.append("tspan").attr("x",y.rect_padding).attr("dy",y.line_height).text(c)}),u},rt=(e,t,l,o)=>{const u=t.node().getTotalLength(),d=t.node().getPointAtLength(u*.5),f="rel"+ke;ke++;const c=e.append("text").attr("class","req relationshipLabel").attr("id",f).attr("x",d.x).attr("y",d.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(o).node().getBBox();e.insert("rect","#"+f).attr("class","req reqLabelBox").attr("x",d.x-c.width/2).attr("y",d.y-c.height/2).attr("width",c.width).attr("height",c.height).attr("fill","white").attr("fill-opacity","85%")},st=function(e,t,l,o,u){const d=l.edge(W(t.src),W(t.dst)),f=Le.line().x(function(c){return c.x}).y(function(c){return c.y}),h=e.insert("path","#"+o).attr("class","er relationshipLine").attr("d",f(d.points)).attr("fill","none");t.type==u.db.Relationships.CONTAINS?h.attr("marker-start","url("+m.common$1.getUrl(y.arrowMarkerAbsolute)+"#"+t.type+"_line_ending)"):(h.attr("stroke-dasharray","10,7"),h.attr("marker-end","url("+m.common$1.getUrl(y.arrowMarkerAbsolute)+"#"+Se.ReqMarkers.ARROW+"_line_ending)")),rt(e,h,y,`<<${t.type}>>`)},at=(e,t,l)=>{Object.keys(e).forEach(o=>{let u=e[o];o=W(o),m.log$1.info("Added new requirement: ",o);const d=l.append("g").attr("id",o),f="req-"+o,h=Te(d,f);let c=Ne(d,o+"_title",[`<<${u.type}>>`,`${u.name}`]);xe(d,o+"_body",[`Id: ${u.id}`,`Text: ${u.text}`,`Risk: ${u.risk}`,`Verification: ${u.verifyMethod}`],c.y);const g=h.node().getBBox();t.setNode(o,{width:g.width,height:g.height,shape:"rect",id:o})})},lt=(e,t,l)=>{Object.keys(e).forEach(o=>{let u=e[o];const d=W(o),f=l.append("g").attr("id",d),h="element-"+d,c=Te(f,h);let g=Ne(f,h+"_title",["<<Element>>",`${o}`]);xe(f,h+"_body",[`Type: ${u.type||"Not Specified"}`,`Doc Ref: ${u.docRef||"None"}`],g.y);const R=c.node().getBBox();t.setNode(d,{width:R.width,height:R.height,shape:"rect",id:d})})},ct=(e,t)=>(e.forEach(function(l){let o=W(l.src),u=W(l.dst);t.setEdge(o,u,{relationship:l})}),e),ot=function(e,t){t.nodes().forEach(function(l){l!==void 0&&t.node(l)!==void 0&&(e.select("#"+l),e.select("#"+l).attr("transform","translate("+(t.node(l).x-t.node(l).width/2)+","+(t.node(l).y-t.node(l).height/2)+" )"))})},W=e=>e.replace(/\s/g,"").replace(/\./g,"_"),ht=(e,t,l,o)=>{y=m.getConfig().requirement;const u=y.securityLevel;let d;u==="sandbox"&&(d=m.select("#i"+t));const h=(u==="sandbox"?m.select(d.nodes()[0].contentDocument.body):m.select("body")).select(`[id='${t}']`);Se.insertLineEndings(h,y);const c=new Oe.Graph({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:y.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let g=o.db.getRequirements(),R=o.db.getElements(),$=o.db.getRelationships();at(g,c,h),lt(R,c,h),ct($,c),Ve.layout(c),ot(h,c),$.forEach(function(A){st(h,A,c,t,o)});const N=y.rect_padding,x=h.node().getBBox(),w=x.width+N*2,S=x.height+N*2;m.configureSvgSize(h,S,w,y.useMaxWidth),h.attr("viewBox",`${x.x-N} ${x.y-N} ${w} ${S}`)},ut={draw:ht},dt={parser:Ce,db:et,renderer:ut,styles:it};exports.diagram=dt;
52
+ L0,${t.line_height}`).attr("stroke-width",1)},Se={ReqMarkers:he,insertLineEndings:nt};let f={},ke=0;const Te=(e,t)=>e.insert("rect","#"+t).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",f.rect_min_width+"px").attr("height",f.rect_min_height+"px"),Ne=(e,t,l)=>{let c=f.rect_min_width/2,u=e.append("text").attr("class","req reqLabel reqTitle").attr("id",t).attr("x",c).attr("y",f.rect_padding).attr("dominant-baseline","hanging"),d=0;l.forEach(g=>{d==0?u.append("tspan").attr("text-anchor","middle").attr("x",f.rect_min_width/2).attr("dy",0).text(g):u.append("tspan").attr("text-anchor","middle").attr("x",f.rect_min_width/2).attr("dy",f.line_height*.75).text(g),d++});let p=1.5*f.rect_padding,h=d*f.line_height*.75,o=p+h;return e.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",f.rect_min_width).attr("y1",o).attr("y2",o),{titleNode:u,y:o}},xe=(e,t,l,c)=>{let u=e.append("text").attr("class","req reqLabel").attr("id",t).attr("x",f.rect_padding).attr("y",c).attr("dominant-baseline","hanging"),d=0;const p=30;let h=[];return l.forEach(o=>{let g=o.length;for(;g>p&&d<3;){let R=o.substring(0,p);o=o.substring(p,o.length),g=o.length,h[h.length]=R,d++}if(d==3){let R=h[h.length-1];h[h.length-1]=R.substring(0,R.length-4)+"..."}else h[h.length]=o;d=0}),h.forEach(o=>{u.append("tspan").attr("x",f.rect_padding).attr("dy",f.line_height).text(o)}),u},rt=(e,t,l,c)=>{const u=t.node().getTotalLength(),d=t.node().getPointAtLength(u*.5),p="rel"+ke;ke++;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();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%")},st=function(e,t,l,c,u){const d=l.edge(W(t.src),W(t.dst)),p=Le.line().x(function(o){return o.x}).y(function(o){return o.y}),h=e.insert("path","#"+c).attr("class","er relationshipLine").attr("d",p(d.points)).attr("fill","none");t.type==u.db.Relationships.CONTAINS?h.attr("marker-start","url("+m.common$1.getUrl(f.arrowMarkerAbsolute)+"#"+t.type+"_line_ending)"):(h.attr("stroke-dasharray","10,7"),h.attr("marker-end","url("+m.common$1.getUrl(f.arrowMarkerAbsolute)+"#"+Se.ReqMarkers.ARROW+"_line_ending)")),rt(e,h,f,`<<${t.type}>>`)},at=(e,t,l)=>{Object.keys(e).forEach(c=>{let u=e[c];c=W(c),m.log$1.info("Added new requirement: ",c);const d=l.append("g").attr("id",c),p="req-"+c,h=Te(d,p);let o=Ne(d,c+"_title",[`<<${u.type}>>`,`${u.name}`]);xe(d,c+"_body",[`Id: ${u.id}`,`Text: ${u.text}`,`Risk: ${u.risk}`,`Verification: ${u.verifyMethod}`],o.y);const g=h.node().getBBox();t.setNode(c,{width:g.width,height:g.height,shape:"rect",id:c})})},lt=(e,t,l)=>{Object.keys(e).forEach(c=>{let u=e[c];const d=W(c),p=l.append("g").attr("id",d),h="element-"+d,o=Te(p,h);let g=Ne(p,h+"_title",["<<Element>>",`${c}`]);xe(p,h+"_body",[`Type: ${u.type||"Not Specified"}`,`Doc Ref: ${u.docRef||"None"}`],g.y);const R=o.node().getBBox();t.setNode(d,{width:R.width,height:R.height,shape:"rect",id:d})})},ot=(e,t)=>(e.forEach(function(l){let c=W(l.src),u=W(l.dst);t.setEdge(c,u,{relationship:l})}),e),ct=function(e,t){t.nodes().forEach(function(l){l!==void 0&&t.node(l)!==void 0&&(e.select("#"+l),e.select("#"+l).attr("transform","translate("+(t.node(l).x-t.node(l).width/2)+","+(t.node(l).y-t.node(l).height/2)+" )"))})},W=e=>e.replace(/\s/g,"").replace(/\./g,"_"),ht=(e,t,l,c)=>{f=m.getConfig().requirement;const u=f.securityLevel;let d;u==="sandbox"&&(d=m.select("#i"+t));const h=(u==="sandbox"?m.select(d.nodes()[0].contentDocument.body):m.select("body")).select(`[id='${t}']`);Se.insertLineEndings(h,f);const o=new Oe.Graph({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:f.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let g=c.db.getRequirements(),R=c.db.getElements(),v=c.db.getRelationships();at(g,o,h),lt(R,o,h),ot(v,o),Ve.layout(o),ct(h,o),v.forEach(function(A){st(h,A,o,t,c)});const N=f.rect_padding,x=h.node().getBBox(),$=x.width+N*2,S=x.height+N*2;m.configureSvgSize(h,S,$,f.useMaxWidth),h.attr("viewBox",`${x.x-N} ${x.y-N} ${$} ${S}`)},ut={draw:ht},dt={parser:Ce,db:et,renderer:ut,styles:it};exports.diagram=dt;