@dimi-agent/cli 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/README.md +63 -0
  2. package/dist/main.mjs +412209 -0
  3. package/dist-web/assets/CodeBlockNode-BL_lWHk1.js +28 -0
  4. package/dist-web/assets/DesignSystemView-Gp4T3sr4.js +13 -0
  5. package/dist-web/assets/DesignSystemView-VV_44Ep3.css +1 -0
  6. package/dist-web/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  7. package/dist-web/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  8. package/dist-web/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  9. package/dist-web/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  10. package/dist-web/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  11. package/dist-web/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  12. package/dist-web/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  13. package/dist-web/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  14. package/dist-web/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  15. package/dist-web/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  16. package/dist-web/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  17. package/dist-web/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  18. package/dist-web/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  19. package/dist-web/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  20. package/dist-web/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  21. package/dist-web/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  22. package/dist-web/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  23. package/dist-web/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  24. package/dist-web/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  25. package/dist-web/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  26. package/dist-web/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  27. package/dist-web/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  28. package/dist-web/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  29. package/dist-web/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  30. package/dist-web/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  31. package/dist-web/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  32. package/dist-web/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  33. package/dist-web/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  34. package/dist-web/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  35. package/dist-web/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  36. package/dist-web/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  37. package/dist-web/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  38. package/dist-web/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  39. package/dist-web/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  40. package/dist-web/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  41. package/dist-web/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  42. package/dist-web/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  43. package/dist-web/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  44. package/dist-web/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  45. package/dist-web/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  46. package/dist-web/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  47. package/dist-web/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  48. package/dist-web/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  49. package/dist-web/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  50. package/dist-web/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  51. package/dist-web/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  52. package/dist-web/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  53. package/dist-web/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  54. package/dist-web/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  55. package/dist-web/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  56. package/dist-web/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  57. package/dist-web/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  58. package/dist-web/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  59. package/dist-web/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  60. package/dist-web/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  61. package/dist-web/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  62. package/dist-web/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  63. package/dist-web/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  64. package/dist-web/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  65. package/dist-web/assets/Tooltip-DsL7mF2H.js +1 -0
  66. package/dist-web/assets/__vite-optional-peer-dep_stream-diffs_markstream-vue-BIHI7g3E.js +1 -0
  67. package/dist-web/assets/arc-CWKkAytd.js +1 -0
  68. package/dist-web/assets/arc-Doj0wRZ0.js +1 -0
  69. package/dist-web/assets/architectureDiagram-3BPJPVTR-BxQA87W8.js +36 -0
  70. package/dist-web/assets/architectureDiagram-3BPJPVTR-CQ09RrbH.js +36 -0
  71. package/dist-web/assets/blockDiagram-GPEHLZMM-Bv-uKykJ.js +132 -0
  72. package/dist-web/assets/blockDiagram-GPEHLZMM-CAtDjkJt.js +132 -0
  73. package/dist-web/assets/c4Diagram-AAUBKEIU-BNwMmBwW.js +10 -0
  74. package/dist-web/assets/c4Diagram-AAUBKEIU-DtzacMnD.js +10 -0
  75. package/dist-web/assets/channel-B2QvGyDT.js +1 -0
  76. package/dist-web/assets/channel-DNkUo9e6.js +1 -0
  77. package/dist-web/assets/chunk-2J33WTMH-D0o9LNEb.js +1 -0
  78. package/dist-web/assets/chunk-2J33WTMH-w4sdiKFO.js +1 -0
  79. package/dist-web/assets/chunk-4BX2VUAB-C9DEPDT4.js +1 -0
  80. package/dist-web/assets/chunk-4BX2VUAB-WqrE2gaw.js +1 -0
  81. package/dist-web/assets/chunk-55IACEB6-B5dE1-Um.js +1 -0
  82. package/dist-web/assets/chunk-55IACEB6-DM4XnM9f.js +1 -0
  83. package/dist-web/assets/chunk-727SXJPM-Dky6n2gf.js +206 -0
  84. package/dist-web/assets/chunk-727SXJPM-Dn5wkDO_.js +206 -0
  85. package/dist-web/assets/chunk-AQP2D5EJ-DjmnKhuo.js +231 -0
  86. package/dist-web/assets/chunk-AQP2D5EJ-FS8-f8lF.js +231 -0
  87. package/dist-web/assets/chunk-FMBD7UC4-B2zs_Y-d.js +15 -0
  88. package/dist-web/assets/chunk-FMBD7UC4-wkNtOdUv.js +15 -0
  89. package/dist-web/assets/chunk-ND2GUHAM-Byh5s8MO.js +1 -0
  90. package/dist-web/assets/chunk-ND2GUHAM-C4-rwdcv.js +1 -0
  91. package/dist-web/assets/chunk-QZHKN3VN-C596rHAe.js +1 -0
  92. package/dist-web/assets/chunk-QZHKN3VN-_Rz9_NuS.js +1 -0
  93. package/dist-web/assets/classDiagram-4FO5ZUOK-B1ZO8EbE.js +1 -0
  94. package/dist-web/assets/classDiagram-4FO5ZUOK-Cc_V2QfH.js +1 -0
  95. package/dist-web/assets/classDiagram-v2-Q7XG4LA2-B1ZO8EbE.js +1 -0
  96. package/dist-web/assets/classDiagram-v2-Q7XG4LA2-Cc_V2QfH.js +1 -0
  97. package/dist-web/assets/cose-bilkent-S5V4N54A-B5CIST3j.js +1 -0
  98. package/dist-web/assets/cose-bilkent-S5V4N54A-Bi19n8m-.js +1 -0
  99. package/dist-web/assets/cytoscape.esm-nFXppDBa.js +331 -0
  100. package/dist-web/assets/d2_markstream-vue-yoD6TSFD.js +1 -0
  101. package/dist-web/assets/dagre-BM42HDAG-DLMfLCoV.js +4 -0
  102. package/dist-web/assets/dagre-BM42HDAG-DQ2h_HWV.js +4 -0
  103. package/dist-web/assets/defaultLocale-CCNgq9ws.js +1 -0
  104. package/dist-web/assets/defaultLocale-DX6XiGOO.js +1 -0
  105. package/dist-web/assets/diagram-2AECGRRQ-DQTst0OH.js +43 -0
  106. package/dist-web/assets/diagram-2AECGRRQ-DcJgQFHi.js +43 -0
  107. package/dist-web/assets/diagram-5GNKFQAL-CHeEjhiL.js +10 -0
  108. package/dist-web/assets/diagram-5GNKFQAL-DoE6q7H1.js +10 -0
  109. package/dist-web/assets/diagram-KO2AKTUF-CCF3txiw.js +3 -0
  110. package/dist-web/assets/diagram-KO2AKTUF-CFQs13i5.js +3 -0
  111. package/dist-web/assets/diagram-LMA3HP47-B5_nRmtD.js +24 -0
  112. package/dist-web/assets/diagram-LMA3HP47-He5zlyMt.js +24 -0
  113. package/dist-web/assets/diagram-OG6HWLK6-BdSBNBYS.js +24 -0
  114. package/dist-web/assets/diagram-OG6HWLK6-DRyxjFMa.js +24 -0
  115. package/dist-web/assets/erDiagram-TEJ5UH35-CZ1Ubm9Y.js +85 -0
  116. package/dist-web/assets/erDiagram-TEJ5UH35-yd6SOv_7.js +85 -0
  117. package/dist-web/assets/extended-p72mFE2C.js +1 -0
  118. package/dist-web/assets/floating-ui.dom-xGUaHE3m.js +1 -0
  119. package/dist-web/assets/flowDiagram-I6XJVG4X-C6eXPlWY.js +162 -0
  120. package/dist-web/assets/flowDiagram-I6XJVG4X-DkYNQv0R.js +162 -0
  121. package/dist-web/assets/ganttDiagram-6RSMTGT7-Cg1TQBc0.js +292 -0
  122. package/dist-web/assets/ganttDiagram-6RSMTGT7-LvGiqVrM.js +292 -0
  123. package/dist-web/assets/gitGraphDiagram-PVQCEYII-D1ktH7c_.js +106 -0
  124. package/dist-web/assets/gitGraphDiagram-PVQCEYII-DMbTATyw.js +106 -0
  125. package/dist-web/assets/graph--OzhPTMs.js +1 -0
  126. package/dist-web/assets/graph-BwjfAU3j.js +1 -0
  127. package/dist-web/assets/index-CXz8XYk1.css +1 -0
  128. package/dist-web/assets/index-DKIJmNQn.js +337 -0
  129. package/dist-web/assets/index10-ePz6DAnA.js +2 -0
  130. package/dist-web/assets/index11-wd1P4PGw.js +8 -0
  131. package/dist-web/assets/index5-D_56m6HR.js +1 -0
  132. package/dist-web/assets/index6-BiWLUsB3.js +1 -0
  133. package/dist-web/assets/index7-DSRe_h5d.js +1 -0
  134. package/dist-web/assets/index8-C0MfrVDC.js +1 -0
  135. package/dist-web/assets/infoDiagram-5YYISTIA-2JF3XEdD.js +2 -0
  136. package/dist-web/assets/infoDiagram-5YYISTIA-C0KiosmZ.js +2 -0
  137. package/dist-web/assets/init-Gi6I4Gst.js +1 -0
  138. package/dist-web/assets/inter-cyrillic-ext-opsz-italic-fe11NjBs.woff2 +0 -0
  139. package/dist-web/assets/inter-cyrillic-ext-opsz-normal-CfYZpDVp.woff2 +0 -0
  140. package/dist-web/assets/inter-cyrillic-opsz-italic-Ck9oD2H0.woff2 +0 -0
  141. package/dist-web/assets/inter-cyrillic-opsz-normal-BFQXbQ-f.woff2 +0 -0
  142. package/dist-web/assets/inter-greek-ext-opsz-italic-BIcRYUEt.woff2 +0 -0
  143. package/dist-web/assets/inter-greek-ext-opsz-normal-BmPQvyvo.woff2 +0 -0
  144. package/dist-web/assets/inter-greek-opsz-italic-mtaF_0H_.woff2 +0 -0
  145. package/dist-web/assets/inter-greek-opsz-normal-BM0NlUE_.woff2 +0 -0
  146. package/dist-web/assets/inter-latin-ext-opsz-italic-BLMf5All.woff2 +0 -0
  147. package/dist-web/assets/inter-latin-ext-opsz-normal-DpK-iCPk.woff2 +0 -0
  148. package/dist-web/assets/inter-latin-opsz-italic-BbqH_2Ar.woff2 +0 -0
  149. package/dist-web/assets/inter-latin-opsz-normal-BwkfbSeq.woff2 +0 -0
  150. package/dist-web/assets/inter-vietnamese-opsz-italic-C7TReJrb.woff2 +0 -0
  151. package/dist-web/assets/inter-vietnamese-opsz-normal-Ci9T9ieq.woff2 +0 -0
  152. package/dist-web/assets/ishikawaDiagram-YF4QCWOH-C5OstRVV.js +70 -0
  153. package/dist-web/assets/ishikawaDiagram-YF4QCWOH-CGUCgDXm.js +70 -0
  154. package/dist-web/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
  155. package/dist-web/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
  156. package/dist-web/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
  157. package/dist-web/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
  158. package/dist-web/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
  159. package/dist-web/assets/journeyDiagram-JHISSGLW-K-24gGZU.js +139 -0
  160. package/dist-web/assets/journeyDiagram-JHISSGLW-yctdo4bX.js +139 -0
  161. package/dist-web/assets/kanban-definition-UN3LZRKU-CxBCv27E.js +89 -0
  162. package/dist-web/assets/kanban-definition-UN3LZRKU-DDKuz_xA.js +89 -0
  163. package/dist-web/assets/katex-DnlPpQZa.js +257 -0
  164. package/dist-web/assets/katex-HP8lGamR.js +257 -0
  165. package/dist-web/assets/katexRenderer.worker-CO_gEm4q.js +257 -0
  166. package/dist-web/assets/layout-C1ojF0zw.js +1 -0
  167. package/dist-web/assets/layout-SsrduOYp.js +1 -0
  168. package/dist-web/assets/linear-3mB6q2-g.js +1 -0
  169. package/dist-web/assets/linear-DYKn_u2q.js +1 -0
  170. package/dist-web/assets/mermaid.core-oS_owI3c.js +309 -0
  171. package/dist-web/assets/mermaidParser.worker-Dx4jPi9z.js +313 -0
  172. package/dist-web/assets/mhchem-DtR62fUK.js +1 -0
  173. package/dist-web/assets/mindmap-definition-RKZ34NQL-BmJZpjh6.js +96 -0
  174. package/dist-web/assets/mindmap-definition-RKZ34NQL-C0lJUdai.js +96 -0
  175. package/dist-web/assets/ordinal-Cboi1Yqb.js +1 -0
  176. package/dist-web/assets/pieDiagram-4H26LBE5-BkwDAvbt.js +30 -0
  177. package/dist-web/assets/pieDiagram-4H26LBE5-DGCPaNkB.js +30 -0
  178. package/dist-web/assets/quadrantDiagram-W4KKPZXB-B3op7xS9.js +7 -0
  179. package/dist-web/assets/quadrantDiagram-W4KKPZXB-BmT_qM09.js +7 -0
  180. package/dist-web/assets/requirementDiagram-4Y6WPE33-CZrxH1Y2.js +84 -0
  181. package/dist-web/assets/requirementDiagram-4Y6WPE33-xbfEgwL_.js +84 -0
  182. package/dist-web/assets/safeRaf-DGuzXxDK.js +1 -0
  183. package/dist-web/assets/sankeyDiagram-5OEKKPKP-3ff_V2pD.js +40 -0
  184. package/dist-web/assets/sankeyDiagram-5OEKKPKP-De_o7hDr.js +40 -0
  185. package/dist-web/assets/sequenceDiagram-3UESZ5HK-C5YRTKoy.js +162 -0
  186. package/dist-web/assets/sequenceDiagram-3UESZ5HK-VAxffBe7.js +162 -0
  187. package/dist-web/assets/stateDiagram-AJRCARHV-ltBPYPwO.js +1 -0
  188. package/dist-web/assets/stateDiagram-AJRCARHV-nDExQydZ.js +1 -0
  189. package/dist-web/assets/stateDiagram-v2-BHNVJYJU-BzwD_BIl.js +1 -0
  190. package/dist-web/assets/stateDiagram-v2-BHNVJYJU-Dl6LC5u9.js +1 -0
  191. package/dist-web/assets/timeline-definition-PNZ67QCA-BT-5Wtvy.js +120 -0
  192. package/dist-web/assets/timeline-definition-PNZ67QCA-DsVZdrZa.js +120 -0
  193. package/dist-web/assets/vennDiagram-CIIHVFJN-BBHQmCFf.js +34 -0
  194. package/dist-web/assets/vennDiagram-CIIHVFJN-Tif-M9Km.js +34 -0
  195. package/dist-web/assets/vue.runtime.esm-bundler-BMrzHc_f.js +5 -0
  196. package/dist-web/assets/wardley-L42UT6IY-BJFn8eDD.js +173 -0
  197. package/dist-web/assets/wardley-L42UT6IY-CqiBaH6C.js +173 -0
  198. package/dist-web/assets/wardleyDiagram-YWT4CUSO-DCiyDQNB.js +78 -0
  199. package/dist-web/assets/wardleyDiagram-YWT4CUSO-DfgCjyaL.js +78 -0
  200. package/dist-web/assets/xychartDiagram-2RQKCTM6-DTwp2FCG.js +7 -0
  201. package/dist-web/assets/xychartDiagram-2RQKCTM6-Db_VoDBV.js +7 -0
  202. package/dist-web/boot.js +10 -0
  203. package/dist-web/favicon.ico +0 -0
  204. package/dist-web/index.html +23 -0
  205. package/native/darwin/prebuilds/darwin-arm64/darwin-modifiers.node +0 -0
  206. package/native/darwin/prebuilds/darwin-x64/darwin-modifiers.node +0 -0
  207. package/native/win32/prebuilds/win32-arm64/win32-console-mode.node +0 -0
  208. package/native/win32/prebuilds/win32-x64/win32-console-mode.node +0 -0
  209. package/package.json +108 -0
@@ -0,0 +1,173 @@
1
+ var Zb=Object.create,As=Object.defineProperty,Qb=Object.getOwnPropertyDescriptor,Yf=Object.getOwnPropertyNames,ew=Object.getPrototypeOf,tw=Object.prototype.hasOwnProperty,i=(e,t)=>As(e,"name",{value:t,configurable:!0}),rw=(e,t)=>function(){return e&&(t=(0,e[Yf(e)[0]])(e=0)),t},V=(e,t)=>function(){return t||(0,e[Yf(e)[0]])((t={exports:{}}).exports,t),t.exports},Br=(e,t)=>{for(var r in t)As(e,r,{get:t[r],enumerable:!0})},Xf=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Yf(t))!tw.call(e,a)&&a!==r&&As(e,a,{get:()=>t[a],enumerable:!(n=Qb(t,a))||n.enumerable});return e},Rl=(e,t,r)=>(Xf(e,t,"default"),r),Jf=(e,t,r)=>(r=e!=null?Zb(ew(e)):{},Xf(As(r,"default",{value:e,enumerable:!0}),e)),Zf=e=>Xf(As({},"__esModule",{value:!0}),e),$l={};Br($l,{AnnotatedTextEdit:()=>ur,ChangeAnnotation:()=>en,ChangeAnnotationIdentifier:()=>je,CodeAction:()=>Pu,CodeActionContext:()=>ku,CodeActionKind:()=>Nu,CodeActionTriggerKind:()=>Fi,CodeDescription:()=>lu,CodeLens:()=>Ou,Color:()=>uo,ColorInformation:()=>ru,ColorPresentation:()=>nu,Command:()=>Qr,CompletionItem:()=>vu,CompletionItemKind:()=>du,CompletionItemLabelDetails:()=>yu,CompletionItemTag:()=>hu,CompletionList:()=>Tu,CreateFile:()=>ca,DeleteFile:()=>fa,Diagnostic:()=>Li,DiagnosticRelatedInformation:()=>fo,DiagnosticSeverity:()=>su,DiagnosticTag:()=>ou,DocumentHighlight:()=>_u,DocumentHighlightKind:()=>Eu,DocumentLink:()=>Du,DocumentSymbol:()=>Iu,DocumentUri:()=>Qc,EOL:()=>Sg,FoldingRange:()=>iu,FoldingRangeKind:()=>au,FormattingOptions:()=>Lu,Hover:()=>Ru,InlayHint:()=>Ku,InlayHintKind:()=>mo,InlayHintLabelPart:()=>go,InlineCompletionContext:()=>Xu,InlineCompletionItem:()=>Wu,InlineCompletionList:()=>Vu,InlineCompletionTriggerKind:()=>Hu,InlineValueContext:()=>Bu,InlineValueEvaluatableExpression:()=>zu,InlineValueText:()=>ju,InlineValueVariableLookup:()=>Uu,InsertReplaceEdit:()=>mu,InsertTextFormat:()=>pu,InsertTextMode:()=>gu,Location:()=>Oi,LocationLink:()=>tu,MarkedString:()=>xi,MarkupContent:()=>da,MarkupKind:()=>ho,OptionalVersionedTextDocumentIdentifier:()=>Mi,ParameterInformation:()=>$u,Position:()=>ie,Range:()=>ee,RenameFile:()=>ua,SelectedCompletionInfo:()=>Yu,SelectionRange:()=>Mu,SemanticTokenModifiers:()=>Fu,SemanticTokenTypes:()=>xu,SemanticTokens:()=>Gu,SignatureInformation:()=>Au,StringValue:()=>qu,SymbolInformation:()=>bu,SymbolKind:()=>Cu,SymbolTag:()=>Su,TextDocument:()=>Zu,TextDocumentEdit:()=>Di,TextDocumentIdentifier:()=>cu,TextDocumentItem:()=>fu,TextEdit:()=>Wt,URI:()=>co,VersionedTextDocumentIdentifier:()=>uu,WorkspaceChange:()=>Cg,WorkspaceEdit:()=>po,WorkspaceFolder:()=>Ju,WorkspaceSymbol:()=>wu,integer:()=>eu,uinteger:()=>Pi});var Qc,co,eu,Pi,ie,ee,Oi,tu,uo,ru,nu,au,iu,fo,su,ou,lu,Li,Qr,Wt,en,je,ur,Di,ca,ua,fa,po,Ai,Nc,Cg,cu,uu,Mi,fu,ho,da,du,pu,hu,mu,gu,yu,vu,Tu,xi,Ru,$u,Au,Eu,_u,Cu,Su,bu,wu,Iu,Nu,Fi,ku,Pu,Ou,Lu,Du,Mu,xu,Fu,Gu,ju,Uu,zu,Bu,mo,go,Ku,qu,Wu,Vu,Hu,Yu,Xu,Ju,Sg,Zu,Dh,$,Es=rw({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){(function(e){function t(r){return typeof r=="string"}i(t,"is"),e.is=t})(Qc||(Qc={})),(function(e){function t(r){return typeof r=="string"}i(t,"is"),e.is=t})(co||(co={})),(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}i(t,"is"),e.is=t})(eu||(eu={})),(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}i(t,"is"),e.is=t})(Pi||(Pi={})),(function(e){function t(n,a){return n===Number.MAX_VALUE&&(n=Pi.MAX_VALUE),a===Number.MAX_VALUE&&(a=Pi.MAX_VALUE),{line:n,character:a}}i(t,"create"),e.create=t;function r(n){let a=n;return $.objectLiteral(a)&&$.uinteger(a.line)&&$.uinteger(a.character)}i(r,"is"),e.is=r})(ie||(ie={})),(function(e){function t(n,a,s,o){if($.uinteger(n)&&$.uinteger(a)&&$.uinteger(s)&&$.uinteger(o))return{start:ie.create(n,a),end:ie.create(s,o)};if(ie.is(n)&&ie.is(a))return{start:n,end:a};throw new Error(`Range#create called with invalid arguments[${n}, ${a}, ${s}, ${o}]`)}i(t,"create"),e.create=t;function r(n){let a=n;return $.objectLiteral(a)&&ie.is(a.start)&&ie.is(a.end)}i(r,"is"),e.is=r})(ee||(ee={})),(function(e){function t(n,a){return{uri:n,range:a}}i(t,"create"),e.create=t;function r(n){let a=n;return $.objectLiteral(a)&&ee.is(a.range)&&($.string(a.uri)||$.undefined(a.uri))}i(r,"is"),e.is=r})(Oi||(Oi={})),(function(e){function t(n,a,s,o){return{targetUri:n,targetRange:a,targetSelectionRange:s,originSelectionRange:o}}i(t,"create"),e.create=t;function r(n){let a=n;return $.objectLiteral(a)&&ee.is(a.targetRange)&&$.string(a.targetUri)&&ee.is(a.targetSelectionRange)&&(ee.is(a.originSelectionRange)||$.undefined(a.originSelectionRange))}i(r,"is"),e.is=r})(tu||(tu={})),(function(e){function t(n,a,s,o){return{red:n,green:a,blue:s,alpha:o}}i(t,"create"),e.create=t;function r(n){const a=n;return $.objectLiteral(a)&&$.numberRange(a.red,0,1)&&$.numberRange(a.green,0,1)&&$.numberRange(a.blue,0,1)&&$.numberRange(a.alpha,0,1)}i(r,"is"),e.is=r})(uo||(uo={})),(function(e){function t(n,a){return{range:n,color:a}}i(t,"create"),e.create=t;function r(n){const a=n;return $.objectLiteral(a)&&ee.is(a.range)&&uo.is(a.color)}i(r,"is"),e.is=r})(ru||(ru={})),(function(e){function t(n,a,s){return{label:n,textEdit:a,additionalTextEdits:s}}i(t,"create"),e.create=t;function r(n){const a=n;return $.objectLiteral(a)&&$.string(a.label)&&($.undefined(a.textEdit)||Wt.is(a))&&($.undefined(a.additionalTextEdits)||$.typedArray(a.additionalTextEdits,Wt.is))}i(r,"is"),e.is=r})(nu||(nu={})),(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(au||(au={})),(function(e){function t(n,a,s,o,l,c){const u={startLine:n,endLine:a};return $.defined(s)&&(u.startCharacter=s),$.defined(o)&&(u.endCharacter=o),$.defined(l)&&(u.kind=l),$.defined(c)&&(u.collapsedText=c),u}i(t,"create"),e.create=t;function r(n){const a=n;return $.objectLiteral(a)&&$.uinteger(a.startLine)&&$.uinteger(a.startLine)&&($.undefined(a.startCharacter)||$.uinteger(a.startCharacter))&&($.undefined(a.endCharacter)||$.uinteger(a.endCharacter))&&($.undefined(a.kind)||$.string(a.kind))}i(r,"is"),e.is=r})(iu||(iu={})),(function(e){function t(n,a){return{location:n,message:a}}i(t,"create"),e.create=t;function r(n){let a=n;return $.defined(a)&&Oi.is(a.location)&&$.string(a.message)}i(r,"is"),e.is=r})(fo||(fo={})),(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(su||(su={})),(function(e){e.Unnecessary=1,e.Deprecated=2})(ou||(ou={})),(function(e){function t(r){const n=r;return $.objectLiteral(n)&&$.string(n.href)}i(t,"is"),e.is=t})(lu||(lu={})),(function(e){function t(n,a,s,o,l,c){let u={range:n,message:a};return $.defined(s)&&(u.severity=s),$.defined(o)&&(u.code=o),$.defined(l)&&(u.source=l),$.defined(c)&&(u.relatedInformation=c),u}i(t,"create"),e.create=t;function r(n){var a;let s=n;return $.defined(s)&&ee.is(s.range)&&$.string(s.message)&&($.number(s.severity)||$.undefined(s.severity))&&($.integer(s.code)||$.string(s.code)||$.undefined(s.code))&&($.undefined(s.codeDescription)||$.string((a=s.codeDescription)===null||a===void 0?void 0:a.href))&&($.string(s.source)||$.undefined(s.source))&&($.undefined(s.relatedInformation)||$.typedArray(s.relatedInformation,fo.is))}i(r,"is"),e.is=r})(Li||(Li={})),(function(e){function t(n,a,...s){let o={title:n,command:a};return $.defined(s)&&s.length>0&&(o.arguments=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return $.defined(a)&&$.string(a.title)&&$.string(a.command)}i(r,"is"),e.is=r})(Qr||(Qr={})),(function(e){function t(s,o){return{range:s,newText:o}}i(t,"replace"),e.replace=t;function r(s,o){return{range:{start:s,end:s},newText:o}}i(r,"insert"),e.insert=r;function n(s){return{range:s,newText:""}}i(n,"del"),e.del=n;function a(s){const o=s;return $.objectLiteral(o)&&$.string(o.newText)&&ee.is(o.range)}i(a,"is"),e.is=a})(Wt||(Wt={})),(function(e){function t(n,a,s){const o={label:n};return a!==void 0&&(o.needsConfirmation=a),s!==void 0&&(o.description=s),o}i(t,"create"),e.create=t;function r(n){const a=n;return $.objectLiteral(a)&&$.string(a.label)&&($.boolean(a.needsConfirmation)||a.needsConfirmation===void 0)&&($.string(a.description)||a.description===void 0)}i(r,"is"),e.is=r})(en||(en={})),(function(e){function t(r){const n=r;return $.string(n)}i(t,"is"),e.is=t})(je||(je={})),(function(e){function t(s,o,l){return{range:s,newText:o,annotationId:l}}i(t,"replace"),e.replace=t;function r(s,o,l){return{range:{start:s,end:s},newText:o,annotationId:l}}i(r,"insert"),e.insert=r;function n(s,o){return{range:s,newText:"",annotationId:o}}i(n,"del"),e.del=n;function a(s){const o=s;return Wt.is(o)&&(en.is(o.annotationId)||je.is(o.annotationId))}i(a,"is"),e.is=a})(ur||(ur={})),(function(e){function t(n,a){return{textDocument:n,edits:a}}i(t,"create"),e.create=t;function r(n){let a=n;return $.defined(a)&&Mi.is(a.textDocument)&&Array.isArray(a.edits)}i(r,"is"),e.is=r})(Di||(Di={})),(function(e){function t(n,a,s){let o={kind:"create",uri:n};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(o.options=a),s!==void 0&&(o.annotationId=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return a&&a.kind==="create"&&$.string(a.uri)&&(a.options===void 0||(a.options.overwrite===void 0||$.boolean(a.options.overwrite))&&(a.options.ignoreIfExists===void 0||$.boolean(a.options.ignoreIfExists)))&&(a.annotationId===void 0||je.is(a.annotationId))}i(r,"is"),e.is=r})(ca||(ca={})),(function(e){function t(n,a,s,o){let l={kind:"rename",oldUri:n,newUri:a};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(l.options=s),o!==void 0&&(l.annotationId=o),l}i(t,"create"),e.create=t;function r(n){let a=n;return a&&a.kind==="rename"&&$.string(a.oldUri)&&$.string(a.newUri)&&(a.options===void 0||(a.options.overwrite===void 0||$.boolean(a.options.overwrite))&&(a.options.ignoreIfExists===void 0||$.boolean(a.options.ignoreIfExists)))&&(a.annotationId===void 0||je.is(a.annotationId))}i(r,"is"),e.is=r})(ua||(ua={})),(function(e){function t(n,a,s){let o={kind:"delete",uri:n};return a!==void 0&&(a.recursive!==void 0||a.ignoreIfNotExists!==void 0)&&(o.options=a),s!==void 0&&(o.annotationId=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return a&&a.kind==="delete"&&$.string(a.uri)&&(a.options===void 0||(a.options.recursive===void 0||$.boolean(a.options.recursive))&&(a.options.ignoreIfNotExists===void 0||$.boolean(a.options.ignoreIfNotExists)))&&(a.annotationId===void 0||je.is(a.annotationId))}i(r,"is"),e.is=r})(fa||(fa={})),(function(e){function t(r){let n=r;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(a=>$.string(a.kind)?ca.is(a)||ua.is(a)||fa.is(a):Di.is(a)))}i(t,"is"),e.is=t})(po||(po={})),Ai=class{static{i(this,"TextEditChangeImpl")}constructor(e,t){this.edits=e,this.changeAnnotations=t}insert(e,t,r){let n,a;if(r===void 0?n=Wt.insert(e,t):je.is(r)?(a=r,n=ur.insert(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),n=ur.insert(e,t,a)),this.edits.push(n),a!==void 0)return a}replace(e,t,r){let n,a;if(r===void 0?n=Wt.replace(e,t):je.is(r)?(a=r,n=ur.replace(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),n=ur.replace(e,t,a)),this.edits.push(n),a!==void 0)return a}delete(e,t){let r,n;if(t===void 0?r=Wt.del(e):je.is(t)?(n=t,r=ur.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(t),r=ur.del(e,n)),this.edits.push(r),n!==void 0)return n}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},Nc=class{static{i(this,"ChangeAnnotations")}constructor(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,t){let r;if(je.is(e)?r=e:(r=this.nextId(),t=e),this._annotations[r]!==void 0)throw new Error(`Id ${r} is already in use.`);if(t===void 0)throw new Error(`No annotation provided for id ${r}`);return this._annotations[r]=t,this._size++,r}nextId(){return this._counter++,this._counter.toString()}},Cg=class{static{i(this,"WorkspaceChange")}constructor(e){this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new Nc(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(t=>{if(Di.is(t)){const r=new Ai(t.edits,this._changeAnnotations);this._textEditChanges[t.textDocument.uri]=r}})):e.changes&&Object.keys(e.changes).forEach(t=>{const r=new Ai(e.changes[t]);this._textEditChanges[t]=r})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(Mi.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");const t={uri:e.uri,version:e.version};let r=this._textEditChanges[t.uri];if(!r){const n=[],a={textDocument:t,edits:n};this._workspaceEdit.documentChanges.push(a),r=new Ai(n,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let t=this._textEditChanges[e];if(!t){let r=[];this._workspaceEdit.changes[e]=r,t=new Ai(r),this._textEditChanges[e]=t}return t}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Nc,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,t,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let n;en.is(t)||je.is(t)?n=t:r=t;let a,s;if(n===void 0?a=ca.create(e,r):(s=je.is(n)?n:this._changeAnnotations.manage(n),a=ca.create(e,r,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s}renameFile(e,t,r,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let a;en.is(r)||je.is(r)?a=r:n=r;let s,o;if(a===void 0?s=ua.create(e,t,n):(o=je.is(a)?a:this._changeAnnotations.manage(a),s=ua.create(e,t,n,o)),this._workspaceEdit.documentChanges.push(s),o!==void 0)return o}deleteFile(e,t,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let n;en.is(t)||je.is(t)?n=t:r=t;let a,s;if(n===void 0?a=fa.create(e,r):(s=je.is(n)?n:this._changeAnnotations.manage(n),a=fa.create(e,r,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s}},(function(e){function t(n){return{uri:n}}i(t,"create"),e.create=t;function r(n){let a=n;return $.defined(a)&&$.string(a.uri)}i(r,"is"),e.is=r})(cu||(cu={})),(function(e){function t(n,a){return{uri:n,version:a}}i(t,"create"),e.create=t;function r(n){let a=n;return $.defined(a)&&$.string(a.uri)&&$.integer(a.version)}i(r,"is"),e.is=r})(uu||(uu={})),(function(e){function t(n,a){return{uri:n,version:a}}i(t,"create"),e.create=t;function r(n){let a=n;return $.defined(a)&&$.string(a.uri)&&(a.version===null||$.integer(a.version))}i(r,"is"),e.is=r})(Mi||(Mi={})),(function(e){function t(n,a,s,o){return{uri:n,languageId:a,version:s,text:o}}i(t,"create"),e.create=t;function r(n){let a=n;return $.defined(a)&&$.string(a.uri)&&$.string(a.languageId)&&$.integer(a.version)&&$.string(a.text)}i(r,"is"),e.is=r})(fu||(fu={})),(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(r){const n=r;return n===e.PlainText||n===e.Markdown}i(t,"is"),e.is=t})(ho||(ho={})),(function(e){function t(r){const n=r;return $.objectLiteral(r)&&ho.is(n.kind)&&$.string(n.value)}i(t,"is"),e.is=t})(da||(da={})),(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(du||(du={})),(function(e){e.PlainText=1,e.Snippet=2})(pu||(pu={})),(function(e){e.Deprecated=1})(hu||(hu={})),(function(e){function t(n,a,s){return{newText:n,insert:a,replace:s}}i(t,"create"),e.create=t;function r(n){const a=n;return a&&$.string(a.newText)&&ee.is(a.insert)&&ee.is(a.replace)}i(r,"is"),e.is=r})(mu||(mu={})),(function(e){e.asIs=1,e.adjustIndentation=2})(gu||(gu={})),(function(e){function t(r){const n=r;return n&&($.string(n.detail)||n.detail===void 0)&&($.string(n.description)||n.description===void 0)}i(t,"is"),e.is=t})(yu||(yu={})),(function(e){function t(r){return{label:r}}i(t,"create"),e.create=t})(vu||(vu={})),(function(e){function t(r,n){return{items:r||[],isIncomplete:!!n}}i(t,"create"),e.create=t})(Tu||(Tu={})),(function(e){function t(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}i(t,"fromPlainText"),e.fromPlainText=t;function r(n){const a=n;return $.string(a)||$.objectLiteral(a)&&$.string(a.language)&&$.string(a.value)}i(r,"is"),e.is=r})(xi||(xi={})),(function(e){function t(r){let n=r;return!!n&&$.objectLiteral(n)&&(da.is(n.contents)||xi.is(n.contents)||$.typedArray(n.contents,xi.is))&&(r.range===void 0||ee.is(r.range))}i(t,"is"),e.is=t})(Ru||(Ru={})),(function(e){function t(r,n){return n?{label:r,documentation:n}:{label:r}}i(t,"create"),e.create=t})($u||($u={})),(function(e){function t(r,n,...a){let s={label:r};return $.defined(n)&&(s.documentation=n),$.defined(a)?s.parameters=a:s.parameters=[],s}i(t,"create"),e.create=t})(Au||(Au={})),(function(e){e.Text=1,e.Read=2,e.Write=3})(Eu||(Eu={})),(function(e){function t(r,n){let a={range:r};return $.number(n)&&(a.kind=n),a}i(t,"create"),e.create=t})(_u||(_u={})),(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(Cu||(Cu={})),(function(e){e.Deprecated=1})(Su||(Su={})),(function(e){function t(r,n,a,s,o){let l={name:r,kind:n,location:{uri:s,range:a}};return o&&(l.containerName=o),l}i(t,"create"),e.create=t})(bu||(bu={})),(function(e){function t(r,n,a,s){return s!==void 0?{name:r,kind:n,location:{uri:a,range:s}}:{name:r,kind:n,location:{uri:a}}}i(t,"create"),e.create=t})(wu||(wu={})),(function(e){function t(n,a,s,o,l,c){let u={name:n,detail:a,kind:s,range:o,selectionRange:l};return c!==void 0&&(u.children=c),u}i(t,"create"),e.create=t;function r(n){let a=n;return a&&$.string(a.name)&&$.number(a.kind)&&ee.is(a.range)&&ee.is(a.selectionRange)&&(a.detail===void 0||$.string(a.detail))&&(a.deprecated===void 0||$.boolean(a.deprecated))&&(a.children===void 0||Array.isArray(a.children))&&(a.tags===void 0||Array.isArray(a.tags))}i(r,"is"),e.is=r})(Iu||(Iu={})),(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Nu||(Nu={})),(function(e){e.Invoked=1,e.Automatic=2})(Fi||(Fi={})),(function(e){function t(n,a,s){let o={diagnostics:n};return a!=null&&(o.only=a),s!=null&&(o.triggerKind=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return $.defined(a)&&$.typedArray(a.diagnostics,Li.is)&&(a.only===void 0||$.typedArray(a.only,$.string))&&(a.triggerKind===void 0||a.triggerKind===Fi.Invoked||a.triggerKind===Fi.Automatic)}i(r,"is"),e.is=r})(ku||(ku={})),(function(e){function t(n,a,s){let o={title:n},l=!0;return typeof a=="string"?(l=!1,o.kind=a):Qr.is(a)?o.command=a:o.edit=a,l&&s!==void 0&&(o.kind=s),o}i(t,"create"),e.create=t;function r(n){let a=n;return a&&$.string(a.title)&&(a.diagnostics===void 0||$.typedArray(a.diagnostics,Li.is))&&(a.kind===void 0||$.string(a.kind))&&(a.edit!==void 0||a.command!==void 0)&&(a.command===void 0||Qr.is(a.command))&&(a.isPreferred===void 0||$.boolean(a.isPreferred))&&(a.edit===void 0||po.is(a.edit))}i(r,"is"),e.is=r})(Pu||(Pu={})),(function(e){function t(n,a){let s={range:n};return $.defined(a)&&(s.data=a),s}i(t,"create"),e.create=t;function r(n){let a=n;return $.defined(a)&&ee.is(a.range)&&($.undefined(a.command)||Qr.is(a.command))}i(r,"is"),e.is=r})(Ou||(Ou={})),(function(e){function t(n,a){return{tabSize:n,insertSpaces:a}}i(t,"create"),e.create=t;function r(n){let a=n;return $.defined(a)&&$.uinteger(a.tabSize)&&$.boolean(a.insertSpaces)}i(r,"is"),e.is=r})(Lu||(Lu={})),(function(e){function t(n,a,s){return{range:n,target:a,data:s}}i(t,"create"),e.create=t;function r(n){let a=n;return $.defined(a)&&ee.is(a.range)&&($.undefined(a.target)||$.string(a.target))}i(r,"is"),e.is=r})(Du||(Du={})),(function(e){function t(n,a){return{range:n,parent:a}}i(t,"create"),e.create=t;function r(n){let a=n;return $.objectLiteral(a)&&ee.is(a.range)&&(a.parent===void 0||e.is(a.parent))}i(r,"is"),e.is=r})(Mu||(Mu={})),(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(xu||(xu={})),(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(Fu||(Fu={})),(function(e){function t(r){const n=r;return $.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}i(t,"is"),e.is=t})(Gu||(Gu={})),(function(e){function t(n,a){return{range:n,text:a}}i(t,"create"),e.create=t;function r(n){const a=n;return a!=null&&ee.is(a.range)&&$.string(a.text)}i(r,"is"),e.is=r})(ju||(ju={})),(function(e){function t(n,a,s){return{range:n,variableName:a,caseSensitiveLookup:s}}i(t,"create"),e.create=t;function r(n){const a=n;return a!=null&&ee.is(a.range)&&$.boolean(a.caseSensitiveLookup)&&($.string(a.variableName)||a.variableName===void 0)}i(r,"is"),e.is=r})(Uu||(Uu={})),(function(e){function t(n,a){return{range:n,expression:a}}i(t,"create"),e.create=t;function r(n){const a=n;return a!=null&&ee.is(a.range)&&($.string(a.expression)||a.expression===void 0)}i(r,"is"),e.is=r})(zu||(zu={})),(function(e){function t(n,a){return{frameId:n,stoppedLocation:a}}i(t,"create"),e.create=t;function r(n){const a=n;return $.defined(a)&&ee.is(n.stoppedLocation)}i(r,"is"),e.is=r})(Bu||(Bu={})),(function(e){e.Type=1,e.Parameter=2;function t(r){return r===1||r===2}i(t,"is"),e.is=t})(mo||(mo={})),(function(e){function t(n){return{value:n}}i(t,"create"),e.create=t;function r(n){const a=n;return $.objectLiteral(a)&&(a.tooltip===void 0||$.string(a.tooltip)||da.is(a.tooltip))&&(a.location===void 0||Oi.is(a.location))&&(a.command===void 0||Qr.is(a.command))}i(r,"is"),e.is=r})(go||(go={})),(function(e){function t(n,a,s){const o={position:n,label:a};return s!==void 0&&(o.kind=s),o}i(t,"create"),e.create=t;function r(n){const a=n;return $.objectLiteral(a)&&ie.is(a.position)&&($.string(a.label)||$.typedArray(a.label,go.is))&&(a.kind===void 0||mo.is(a.kind))&&a.textEdits===void 0||$.typedArray(a.textEdits,Wt.is)&&(a.tooltip===void 0||$.string(a.tooltip)||da.is(a.tooltip))&&(a.paddingLeft===void 0||$.boolean(a.paddingLeft))&&(a.paddingRight===void 0||$.boolean(a.paddingRight))}i(r,"is"),e.is=r})(Ku||(Ku={})),(function(e){function t(r){return{kind:"snippet",value:r}}i(t,"createSnippet"),e.createSnippet=t})(qu||(qu={})),(function(e){function t(r,n,a,s){return{insertText:r,filterText:n,range:a,command:s}}i(t,"create"),e.create=t})(Wu||(Wu={})),(function(e){function t(r){return{items:r}}i(t,"create"),e.create=t})(Vu||(Vu={})),(function(e){e.Invoked=0,e.Automatic=1})(Hu||(Hu={})),(function(e){function t(r,n){return{range:r,text:n}}i(t,"create"),e.create=t})(Yu||(Yu={})),(function(e){function t(r,n){return{triggerKind:r,selectedCompletionInfo:n}}i(t,"create"),e.create=t})(Xu||(Xu={})),(function(e){function t(r){const n=r;return $.objectLiteral(n)&&co.is(n.uri)&&$.string(n.name)}i(t,"is"),e.is=t})(Ju||(Ju={})),Sg=[`
2
+ `,`\r
3
+ `,"\r"],(function(e){function t(s,o,l,c){return new Dh(s,o,l,c)}i(t,"create"),e.create=t;function r(s){let o=s;return!!($.defined(o)&&$.string(o.uri)&&($.undefined(o.languageId)||$.string(o.languageId))&&$.uinteger(o.lineCount)&&$.func(o.getText)&&$.func(o.positionAt)&&$.func(o.offsetAt))}i(r,"is"),e.is=r;function n(s,o){let l=s.getText(),c=a(o,(f,d)=>{let h=f.range.start.line-d.range.start.line;return h===0?f.range.start.character-d.range.start.character:h}),u=l.length;for(let f=c.length-1;f>=0;f--){let d=c[f],h=s.offsetAt(d.range.start),y=s.offsetAt(d.range.end);if(y<=u)l=l.substring(0,h)+d.newText+l.substring(y,l.length);else throw new Error("Overlapping edit");u=h}return l}i(n,"applyEdits"),e.applyEdits=n;function a(s,o){if(s.length<=1)return s;const l=s.length/2|0,c=s.slice(0,l),u=s.slice(l);a(c,o),a(u,o);let f=0,d=0,h=0;for(;f<c.length&&d<u.length;)o(c[f],u[d])<=0?s[h++]=c[f++]:s[h++]=u[d++];for(;f<c.length;)s[h++]=c[f++];for(;d<u.length;)s[h++]=u[d++];return s}i(a,"mergeSort")})(Zu||(Zu={})),Dh=class{static{i(this,"FullTextDocument")}constructor(e,t,r,n){this._uri=e,this._languageId=t,this._version=r,this._content=n,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(t,r)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],t=this._content,r=!0;for(let n=0;n<t.length;n++){r&&(e.push(n),r=!1);let a=t.charAt(n);r=a==="\r"||a===`
4
+ `,a==="\r"&&n+1<t.length&&t.charAt(n+1)===`
5
+ `&&n++}r&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),r=0,n=t.length;if(n===0)return ie.create(0,e);for(;r<n;){let s=Math.floor((r+n)/2);t[s]>e?n=s:r=s+1}let a=r-1;return ie.create(a,e-t[a])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let r=t[e.line],n=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(r+e.character,n),r)}get lineCount(){return this.getLineOffsets().length}},(function(e){const t=Object.prototype.toString;function r(y){return typeof y<"u"}i(r,"defined"),e.defined=r;function n(y){return typeof y>"u"}i(n,"undefined"),e.undefined=n;function a(y){return y===!0||y===!1}i(a,"boolean"),e.boolean=a;function s(y){return t.call(y)==="[object String]"}i(s,"string"),e.string=s;function o(y){return t.call(y)==="[object Number]"}i(o,"number"),e.number=o;function l(y,v,C){return t.call(y)==="[object Number]"&&v<=y&&y<=C}i(l,"numberRange"),e.numberRange=l;function c(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}i(c,"integer"),e.integer=c;function u(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}i(u,"uinteger"),e.uinteger=u;function f(y){return t.call(y)==="[object Function]"}i(f,"func"),e.func=f;function d(y){return y!==null&&typeof y=="object"}i(d,"objectLiteral"),e.objectLiteral=d;function h(y,v){return Array.isArray(y)&&y.every(v)}i(h,"typedArray"),e.typedArray=h})($||($={}))}}),Nn=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/ral.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t;function r(){if(t===void 0)throw new Error("No runtime abstraction layer installed");return t}i(r,"RAL"),(function(n){function a(s){if(s===void 0)throw new Error("No runtime abstraction layer provided");t=s}i(a,"install"),n.install=a})(r||(r={})),e.default=r}}),_s=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/is.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0;function t(c){return c===!0||c===!1}i(t,"boolean"),e.boolean=t;function r(c){return typeof c=="string"||c instanceof String}i(r,"string"),e.string=r;function n(c){return typeof c=="number"||c instanceof Number}i(n,"number"),e.number=n;function a(c){return c instanceof Error}i(a,"error"),e.error=a;function s(c){return typeof c=="function"}i(s,"func"),e.func=s;function o(c){return Array.isArray(c)}i(o,"array"),e.array=o;function l(c){return o(c)&&c.every(u=>r(u))}i(l,"stringArray"),e.stringArray=l}}),Ka=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/events.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=e.Event=void 0;var t=Nn(),r;(function(s){const o={dispose(){}};s.None=function(){return o}})(r||(e.Event=r={}));var n=class{static{i(this,"CallbackList")}add(s,o=null,l){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(s),this._contexts.push(o),Array.isArray(l)&&l.push({dispose:i(()=>this.remove(s,o),"dispose")})}remove(s,o=null){if(!this._callbacks)return;let l=!1;for(let c=0,u=this._callbacks.length;c<u;c++)if(this._callbacks[c]===s)if(this._contexts[c]===o){this._callbacks.splice(c,1),this._contexts.splice(c,1);return}else l=!0;if(l)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...s){if(!this._callbacks)return[];const o=[],l=this._callbacks.slice(0),c=this._contexts.slice(0);for(let u=0,f=l.length;u<f;u++)try{o.push(l[u].apply(c[u],s))}catch(d){(0,t.default)().console.error(d)}return o}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},a=class bg{static{i(this,"Emitter")}constructor(o){this._options=o}get event(){return this._event||(this._event=(o,l,c)=>{this._callbacks||(this._callbacks=new n),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(o,l);const u={dispose:i(()=>{this._callbacks&&(this._callbacks.remove(o,l),u.dispose=bg._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},"dispose")};return Array.isArray(c)&&c.push(u),u}),this._event}fire(o){this._callbacks&&this._callbacks.invoke.call(this._callbacks,o)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};e.Emitter=a,a._noop=function(){}}}),Al=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;var t=Nn(),r=_s(),n=Ka(),a;(function(c){c.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.Event.None}),c.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:n.Event.None});function u(f){const d=f;return d&&(d===c.None||d===c.Cancelled||r.boolean(d.isCancellationRequested)&&!!d.onCancellationRequested)}i(u,"is"),c.is=u})(a||(e.CancellationToken=a={}));var s=Object.freeze(function(c,u){const f=(0,t.default)().timer.setTimeout(c.bind(u),0);return{dispose(){f.dispose()}}}),o=class{static{i(this,"MutableToken")}constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?s:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},l=class{static{i(this,"CancellationTokenSource")}get token(){return this._token||(this._token=new o),this._token}cancel(){this._token?this._token.cancel():this._token=a.Cancelled}dispose(){this._token?this._token instanceof o&&this._token.dispose():this._token=a.None}};e.CancellationTokenSource=l}}),wg=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messages.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Message=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType=e.RequestType0=e.AbstractMessageSignature=e.ParameterStructures=e.ResponseError=e.ErrorCodes=void 0;var t=_s(),r;(function(g){g.ParseError=-32700,g.InvalidRequest=-32600,g.MethodNotFound=-32601,g.InvalidParams=-32602,g.InternalError=-32603,g.jsonrpcReservedErrorRangeStart=-32099,g.serverErrorStart=-32099,g.MessageWriteError=-32099,g.MessageReadError=-32098,g.PendingResponseRejected=-32097,g.ConnectionInactive=-32096,g.ServerNotInitialized=-32002,g.UnknownErrorCode=-32001,g.jsonrpcReservedErrorRangeEnd=-32e3,g.serverErrorEnd=-32e3})(r||(e.ErrorCodes=r={}));var n=class Ig extends Error{static{i(this,"ResponseError")}constructor(E,T,R){super(T),this.code=t.number(E)?E:r.UnknownErrorCode,this.data=R,Object.setPrototypeOf(this,Ig.prototype)}toJson(){const E={code:this.code,message:this.message};return this.data!==void 0&&(E.data=this.data),E}};e.ResponseError=n;var a=class yo{static{i(this,"ParameterStructures")}constructor(E){this.kind=E}static is(E){return E===yo.auto||E===yo.byName||E===yo.byPosition}toString(){return this.kind}};e.ParameterStructures=a,a.auto=new a("auto"),a.byPosition=new a("byPosition"),a.byName=new a("byName");var s=class{static{i(this,"AbstractMessageSignature")}constructor(g,E){this.method=g,this.numberOfParams=E}get parameterStructures(){return a.auto}};e.AbstractMessageSignature=s;var o=class extends s{static{i(this,"RequestType0")}constructor(g){super(g,0)}};e.RequestType0=o;var l=class extends s{static{i(this,"RequestType")}constructor(g,E=a.auto){super(g,1),this._parameterStructures=E}get parameterStructures(){return this._parameterStructures}};e.RequestType=l;var c=class extends s{static{i(this,"RequestType1")}constructor(g,E=a.auto){super(g,1),this._parameterStructures=E}get parameterStructures(){return this._parameterStructures}};e.RequestType1=c;var u=class extends s{static{i(this,"RequestType2")}constructor(g){super(g,2)}};e.RequestType2=u;var f=class extends s{static{i(this,"RequestType3")}constructor(g){super(g,3)}};e.RequestType3=f;var d=class extends s{static{i(this,"RequestType4")}constructor(g){super(g,4)}};e.RequestType4=d;var h=class extends s{static{i(this,"RequestType5")}constructor(g){super(g,5)}};e.RequestType5=h;var y=class extends s{static{i(this,"RequestType6")}constructor(g){super(g,6)}};e.RequestType6=y;var v=class extends s{static{i(this,"RequestType7")}constructor(g){super(g,7)}};e.RequestType7=v;var C=class extends s{static{i(this,"RequestType8")}constructor(g){super(g,8)}};e.RequestType8=C;var b=class extends s{static{i(this,"RequestType9")}constructor(g){super(g,9)}};e.RequestType9=b;var w=class extends s{static{i(this,"NotificationType")}constructor(g,E=a.auto){super(g,1),this._parameterStructures=E}get parameterStructures(){return this._parameterStructures}};e.NotificationType=w;var I=class extends s{static{i(this,"NotificationType0")}constructor(g){super(g,0)}};e.NotificationType0=I;var A=class extends s{static{i(this,"NotificationType1")}constructor(g,E=a.auto){super(g,1),this._parameterStructures=E}get parameterStructures(){return this._parameterStructures}};e.NotificationType1=A;var k=class extends s{static{i(this,"NotificationType2")}constructor(g){super(g,2)}};e.NotificationType2=k;var G=class extends s{static{i(this,"NotificationType3")}constructor(g){super(g,3)}};e.NotificationType3=G;var H=class extends s{static{i(this,"NotificationType4")}constructor(g){super(g,4)}};e.NotificationType4=H;var X=class extends s{static{i(this,"NotificationType5")}constructor(g){super(g,5)}};e.NotificationType5=X;var le=class extends s{static{i(this,"NotificationType6")}constructor(g){super(g,6)}};e.NotificationType6=le;var ce=class extends s{static{i(this,"NotificationType7")}constructor(g){super(g,7)}};e.NotificationType7=ce;var Ne=class extends s{static{i(this,"NotificationType8")}constructor(g){super(g,8)}};e.NotificationType8=Ne;var P=class extends s{static{i(this,"NotificationType9")}constructor(g){super(g,9)}};e.NotificationType9=P;var _;(function(g){function E(S){const O=S;return O&&t.string(O.method)&&(t.string(O.id)||t.number(O.id))}i(E,"isRequest"),g.isRequest=E;function T(S){const O=S;return O&&t.string(O.method)&&S.id===void 0}i(T,"isNotification"),g.isNotification=T;function R(S){const O=S;return O&&(O.result!==void 0||!!O.error)&&(t.string(O.id)||t.number(O.id)||O.id===null)}i(R,"isResponse"),g.isResponse=R})(_||(e.Message=_={}))}}),Ng=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=e.LinkedMap=e.Touch=void 0;var r;(function(s){s.None=0,s.First=1,s.AsOld=s.First,s.Last=2,s.AsNew=s.Last})(r||(e.Touch=r={}));var n=class{static{i(this,"LinkedMap")}constructor(){this[t]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(s){return this._map.has(s)}get(s,o=r.None){const l=this._map.get(s);if(l)return o!==r.None&&this.touch(l,o),l.value}set(s,o,l=r.None){let c=this._map.get(s);if(c)c.value=o,l!==r.None&&this.touch(c,l);else{switch(c={key:s,value:o,next:void 0,previous:void 0},l){case r.None:this.addItemLast(c);break;case r.First:this.addItemFirst(c);break;case r.Last:this.addItemLast(c);break;default:this.addItemLast(c);break}this._map.set(s,c),this._size++}return this}delete(s){return!!this.remove(s)}remove(s){const o=this._map.get(s);if(o)return this._map.delete(s),this.removeItem(o),this._size--,o.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const s=this._head;return this._map.delete(s.key),this.removeItem(s),this._size--,s.value}forEach(s,o){const l=this._state;let c=this._head;for(;c;){if(o?s.bind(o)(c.value,c.key,this):s(c.value,c.key,this),this._state!==l)throw new Error("LinkedMap got modified during iteration.");c=c.next}}keys(){const s=this._state;let o=this._head;const l={[Symbol.iterator]:()=>l,next:i(()=>{if(this._state!==s)throw new Error("LinkedMap got modified during iteration.");if(o){const c={value:o.key,done:!1};return o=o.next,c}else return{value:void 0,done:!0}},"next")};return l}values(){const s=this._state;let o=this._head;const l={[Symbol.iterator]:()=>l,next:i(()=>{if(this._state!==s)throw new Error("LinkedMap got modified during iteration.");if(o){const c={value:o.value,done:!1};return o=o.next,c}else return{value:void 0,done:!0}},"next")};return l}entries(){const s=this._state;let o=this._head;const l={[Symbol.iterator]:()=>l,next:i(()=>{if(this._state!==s)throw new Error("LinkedMap got modified during iteration.");if(o){const c={value:[o.key,o.value],done:!1};return o=o.next,c}else return{value:void 0,done:!0}},"next")};return l}[(t=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(s){if(s>=this.size)return;if(s===0){this.clear();return}let o=this._head,l=this.size;for(;o&&l>s;)this._map.delete(o.key),o=o.next,l--;this._head=o,this._size=l,o&&(o.previous=void 0),this._state++}addItemFirst(s){if(!this._head&&!this._tail)this._tail=s;else if(this._head)s.next=this._head,this._head.previous=s;else throw new Error("Invalid list");this._head=s,this._state++}addItemLast(s){if(!this._head&&!this._tail)this._head=s;else if(this._tail)s.previous=this._tail,this._tail.next=s;else throw new Error("Invalid list");this._tail=s,this._state++}removeItem(s){if(s===this._head&&s===this._tail)this._head=void 0,this._tail=void 0;else if(s===this._head){if(!s.next)throw new Error("Invalid list");s.next.previous=void 0,this._head=s.next}else if(s===this._tail){if(!s.previous)throw new Error("Invalid list");s.previous.next=void 0,this._tail=s.previous}else{const o=s.next,l=s.previous;if(!o||!l)throw new Error("Invalid list");o.previous=l,l.next=o}s.next=void 0,s.previous=void 0,this._state++}touch(s,o){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(o!==r.First&&o!==r.Last)){if(o===r.First){if(s===this._head)return;const l=s.next,c=s.previous;s===this._tail?(c.next=void 0,this._tail=c):(l.previous=c,c.next=l),s.previous=void 0,s.next=this._head,this._head.previous=s,this._head=s,this._state++}else if(o===r.Last){if(s===this._tail)return;const l=s.next,c=s.previous;s===this._head?(l.previous=void 0,this._head=l):(l.previous=c,c.next=l),s.next=void 0,s.previous=this._tail,this._tail.next=s,this._tail=s,this._state++}}}toJSON(){const s=[];return this.forEach((o,l)=>{s.push([l,o])}),s}fromJSON(s){this.clear();for(const[o,l]of s)this.set(o,l)}};e.LinkedMap=n;var a=class extends n{static{i(this,"LRUCache")}constructor(s,o=1){super(),this._limit=s,this._ratio=Math.min(Math.max(0,o),1)}get limit(){return this._limit}set limit(s){this._limit=s,this.checkTrim()}get ratio(){return this._ratio}set ratio(s){this._ratio=Math.min(Math.max(0,s),1),this.checkTrim()}get(s,o=r.AsNew){return super.get(s,o)}peek(s){return super.get(s,r.None)}set(s,o){return super.set(s,o,r.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};e.LRUCache=a}}),nw=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/disposable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Disposable=void 0;var t;(function(r){function n(a){return{dispose:a}}i(n,"create"),r.create=n})(t||(e.Disposable=t={}))}}),aw=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=void 0;var t=Al(),r;(function(l){l.Continue=0,l.Cancelled=1})(r||(r={}));var n=class{static{i(this,"SharedArraySenderStrategy")}constructor(){this.buffers=new Map}enableCancellation(l){if(l.id===null)return;const c=new SharedArrayBuffer(4),u=new Int32Array(c,0,1);u[0]=r.Continue,this.buffers.set(l.id,c),l.$cancellationData=c}async sendCancellation(l,c){const u=this.buffers.get(c);if(u===void 0)return;const f=new Int32Array(u,0,1);Atomics.store(f,0,r.Cancelled)}cleanup(l){this.buffers.delete(l)}dispose(){this.buffers.clear()}};e.SharedArraySenderStrategy=n;var a=class{static{i(this,"SharedArrayBufferCancellationToken")}constructor(l){this.data=new Int32Array(l,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===r.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}},s=class{static{i(this,"SharedArrayBufferCancellationTokenSource")}constructor(l){this.token=new a(l)}cancel(){}dispose(){}},o=class{static{i(this,"SharedArrayReceiverStrategy")}constructor(){this.kind="request"}createCancellationTokenSource(l){const c=l.$cancellationData;return c===void 0?new t.CancellationTokenSource:new s(c)}};e.SharedArrayReceiverStrategy=o}}),kg=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/semaphore.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Semaphore=void 0;var t=Nn(),r=class{static{i(this,"Semaphore")}constructor(n=1){if(n<=0)throw new Error("Capacity must be greater than 0");this._capacity=n,this._active=0,this._waiting=[]}lock(n){return new Promise((a,s)=>{this._waiting.push({thunk:n,resolve:a,reject:s}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,t.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;const n=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const a=n.thunk();a instanceof Promise?a.then(s=>{this._active--,n.resolve(s),this.runNext()},s=>{this._active--,n.reject(s),this.runNext()}):(this._active--,n.resolve(a),this.runNext())}catch(a){this._active--,n.reject(a),this.runNext()}}};e.Semaphore=r}}),iw=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=void 0;var t=Nn(),r=_s(),n=Ka(),a=kg(),s;(function(u){function f(d){let h=d;return h&&r.func(h.listen)&&r.func(h.dispose)&&r.func(h.onError)&&r.func(h.onClose)&&r.func(h.onPartialMessage)}i(f,"is"),u.is=f})(s||(e.MessageReader=s={}));var o=class{static{i(this,"AbstractMessageReader")}constructor(){this.errorEmitter=new n.Emitter,this.closeEmitter=new n.Emitter,this.partialMessageEmitter=new n.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(u){this.errorEmitter.fire(this.asError(u))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(u){this.partialMessageEmitter.fire(u)}asError(u){return u instanceof Error?u:new Error(`Reader received error. Reason: ${r.string(u.message)?u.message:"unknown"}`)}};e.AbstractMessageReader=o;var l;(function(u){function f(d){let h,y;const v=new Map;let C;const b=new Map;if(d===void 0||typeof d=="string")h=d??"utf-8";else{if(h=d.charset??"utf-8",d.contentDecoder!==void 0&&(y=d.contentDecoder,v.set(y.name,y)),d.contentDecoders!==void 0)for(const w of d.contentDecoders)v.set(w.name,w);if(d.contentTypeDecoder!==void 0&&(C=d.contentTypeDecoder,b.set(C.name,C)),d.contentTypeDecoders!==void 0)for(const w of d.contentTypeDecoders)b.set(w.name,w)}return C===void 0&&(C=(0,t.default)().applicationJson.decoder,b.set(C.name,C)),{charset:h,contentDecoder:y,contentDecoders:v,contentTypeDecoder:C,contentTypeDecoders:b}}i(f,"fromOptions"),u.fromOptions=f})(l||(l={}));var c=class extends o{static{i(this,"ReadableStreamMessageReader")}constructor(u,f){super(),this.readable=u,this.options=l.fromOptions(f),this.buffer=(0,t.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new a.Semaphore(1)}set partialMessageTimeout(u){this._partialMessageTimeout=u}get partialMessageTimeout(){return this._partialMessageTimeout}listen(u){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=u;const f=this.readable.onData(d=>{this.onData(d)});return this.readable.onError(d=>this.fireError(d)),this.readable.onClose(()=>this.fireClose()),f}onData(u){try{for(this.buffer.append(u);;){if(this.nextMessageLength===-1){const d=this.buffer.tryReadHeaders(!0);if(!d)return;const h=d.get("content-length");if(!h){this.fireError(new Error(`Header must provide a Content-Length property.
6
+ ${JSON.stringify(Object.fromEntries(d))}`));return}const y=parseInt(h);if(isNaN(y)){this.fireError(new Error(`Content-Length value must be a number. Got ${h}`));return}this.nextMessageLength=y}const f=this.buffer.tryReadBody(this.nextMessageLength);if(f===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{const d=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(f):f,h=await this.options.contentTypeDecoder.decode(d,this.options);this.callback(h)}).catch(d=>{this.fireError(d)})}}catch(f){this.fireError(f)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,t.default)().timer.setTimeout((u,f)=>{this.partialMessageTimer=void 0,u===this.messageToken&&(this.firePartialMessage({messageToken:u,waitingTime:f}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};e.ReadableStreamMessageReader=c}}),sw=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=void 0;var t=Nn(),r=_s(),n=kg(),a=Ka(),s="Content-Length: ",o=`\r
7
+ `,l;(function(d){function h(y){let v=y;return v&&r.func(v.dispose)&&r.func(v.onClose)&&r.func(v.onError)&&r.func(v.write)}i(h,"is"),d.is=h})(l||(e.MessageWriter=l={}));var c=class{static{i(this,"AbstractMessageWriter")}constructor(){this.errorEmitter=new a.Emitter,this.closeEmitter=new a.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(d,h,y){this.errorEmitter.fire([this.asError(d),h,y])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(d){return d instanceof Error?d:new Error(`Writer received error. Reason: ${r.string(d.message)?d.message:"unknown"}`)}};e.AbstractMessageWriter=c;var u;(function(d){function h(y){return y===void 0||typeof y=="string"?{charset:y??"utf-8",contentTypeEncoder:(0,t.default)().applicationJson.encoder}:{charset:y.charset??"utf-8",contentEncoder:y.contentEncoder,contentTypeEncoder:y.contentTypeEncoder??(0,t.default)().applicationJson.encoder}}i(h,"fromOptions"),d.fromOptions=h})(u||(u={}));var f=class extends c{static{i(this,"WriteableStreamMessageWriter")}constructor(d,h){super(),this.writable=d,this.options=u.fromOptions(h),this.errorCount=0,this.writeSemaphore=new n.Semaphore(1),this.writable.onError(y=>this.fireError(y)),this.writable.onClose(()=>this.fireClose())}async write(d){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(d,this.options).then(y=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(y):y).then(y=>{const v=[];return v.push(s,y.byteLength.toString(),o),v.push(o),this.doWrite(d,v,y)},y=>{throw this.fireError(y),y}))}async doWrite(d,h,y){try{return await this.writable.write(h.join(""),"ascii"),this.writable.write(y)}catch(v){return this.handleError(v,d),Promise.reject(v)}}handleError(d,h){this.errorCount++,this.fireError(d,h,this.errorCount)}end(){this.writable.end()}};e.WriteableStreamMessageWriter=f}}),ow=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMessageBuffer=void 0;var t=13,r=10,n=`\r
8
+ `,a=class{static{i(this,"AbstractMessageBuffer")}constructor(s="utf-8"){this._encoding=s,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(s){const o=typeof s=="string"?this.fromString(s,this._encoding):s;this._chunks.push(o),this._totalLength+=o.byteLength}tryReadHeaders(s=!1){if(this._chunks.length===0)return;let o=0,l=0,c=0,u=0;e:for(;l<this._chunks.length;){const y=this._chunks[l];for(c=0;c<y.length;){switch(y[c]){case t:switch(o){case 0:o=1;break;case 2:o=3;break;default:o=0}break;case r:switch(o){case 1:o=2;break;case 3:o=4,c++;break e;default:o=0}break;default:o=0}c++}u+=y.byteLength,l++}if(o!==4)return;const f=this._read(u+c),d=new Map,h=this.toString(f,"ascii").split(n);if(h.length<2)return d;for(let y=0;y<h.length-2;y++){const v=h[y],C=v.indexOf(":");if(C===-1)throw new Error(`Message header must separate key and value using ':'
9
+ ${v}`);const b=v.substr(0,C),w=v.substr(C+1).trim();d.set(s?b.toLowerCase():b,w)}return d}tryReadBody(s){if(!(this._totalLength<s))return this._read(s)}get numberOfBytes(){return this._totalLength}_read(s){if(s===0)return this.emptyBuffer();if(s>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===s){const u=this._chunks[0];return this._chunks.shift(),this._totalLength-=s,this.asNative(u)}if(this._chunks[0].byteLength>s){const u=this._chunks[0],f=this.asNative(u,s);return this._chunks[0]=u.slice(s),this._totalLength-=s,f}const o=this.allocNative(s);let l=0,c=0;for(;s>0;){const u=this._chunks[c];if(u.byteLength>s){const f=u.slice(0,s);o.set(f,l),l+=s,this._chunks[c]=u.slice(s),this._totalLength-=s,s-=s}else o.set(u,l),l+=u.byteLength,this._chunks.shift(),this._totalLength-=u.byteLength,s-=u.byteLength}return o}};e.AbstractMessageBuffer=a}}),lw=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/connection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createMessageConnection=e.ConnectionOptions=e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.RequestCancellationReceiverStrategy=e.IdCancellationReceiverStrategy=e.ConnectionStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=e.NullLogger=e.ProgressType=e.ProgressToken=void 0;var t=Nn(),r=_s(),n=wg(),a=Ng(),s=Ka(),o=Al(),l;(function(g){g.type=new n.NotificationType("$/cancelRequest")})(l||(l={}));var c;(function(g){function E(T){return typeof T=="string"||typeof T=="number"}i(E,"is"),g.is=E})(c||(e.ProgressToken=c={}));var u;(function(g){g.type=new n.NotificationType("$/progress")})(u||(u={}));var f=class{static{i(this,"ProgressType")}constructor(){}};e.ProgressType=f;var d;(function(g){function E(T){return r.func(T)}i(E,"is"),g.is=E})(d||(d={})),e.NullLogger=Object.freeze({error:i(()=>{},"error"),warn:i(()=>{},"warn"),info:i(()=>{},"info"),log:i(()=>{},"log")});var h;(function(g){g[g.Off=0]="Off",g[g.Messages=1]="Messages",g[g.Compact=2]="Compact",g[g.Verbose=3]="Verbose"})(h||(e.Trace=h={}));var y;(function(g){g.Off="off",g.Messages="messages",g.Compact="compact",g.Verbose="verbose"})(y||(e.TraceValues=y={})),(function(g){function E(R){if(!r.string(R))return g.Off;switch(R=R.toLowerCase(),R){case"off":return g.Off;case"messages":return g.Messages;case"compact":return g.Compact;case"verbose":return g.Verbose;default:return g.Off}}i(E,"fromString"),g.fromString=E;function T(R){switch(R){case g.Off:return"off";case g.Messages:return"messages";case g.Compact:return"compact";case g.Verbose:return"verbose";default:return"off"}}i(T,"toString"),g.toString=T})(h||(e.Trace=h={}));var v;(function(g){g.Text="text",g.JSON="json"})(v||(e.TraceFormat=v={})),(function(g){function E(T){return r.string(T)?(T=T.toLowerCase(),T==="json"?g.JSON:g.Text):g.Text}i(E,"fromString"),g.fromString=E})(v||(e.TraceFormat=v={}));var C;(function(g){g.type=new n.NotificationType("$/setTrace")})(C||(e.SetTraceNotification=C={}));var b;(function(g){g.type=new n.NotificationType("$/logTrace")})(b||(e.LogTraceNotification=b={}));var w;(function(g){g[g.Closed=1]="Closed",g[g.Disposed=2]="Disposed",g[g.AlreadyListening=3]="AlreadyListening"})(w||(e.ConnectionErrors=w={}));var I=class Pg extends Error{static{i(this,"ConnectionError")}constructor(E,T){super(T),this.code=E,Object.setPrototypeOf(this,Pg.prototype)}};e.ConnectionError=I;var A;(function(g){function E(T){const R=T;return R&&r.func(R.cancelUndispatched)}i(E,"is"),g.is=E})(A||(e.ConnectionStrategy=A={}));var k;(function(g){function E(T){const R=T;return R&&(R.kind===void 0||R.kind==="id")&&r.func(R.createCancellationTokenSource)&&(R.dispose===void 0||r.func(R.dispose))}i(E,"is"),g.is=E})(k||(e.IdCancellationReceiverStrategy=k={}));var G;(function(g){function E(T){const R=T;return R&&R.kind==="request"&&r.func(R.createCancellationTokenSource)&&(R.dispose===void 0||r.func(R.dispose))}i(E,"is"),g.is=E})(G||(e.RequestCancellationReceiverStrategy=G={}));var H;(function(g){g.Message=Object.freeze({createCancellationTokenSource(T){return new o.CancellationTokenSource}});function E(T){return k.is(T)||G.is(T)}i(E,"is"),g.is=E})(H||(e.CancellationReceiverStrategy=H={}));var X;(function(g){g.Message=Object.freeze({sendCancellation(T,R){return T.sendNotification(l.type,{id:R})},cleanup(T){}});function E(T){const R=T;return R&&r.func(R.sendCancellation)&&r.func(R.cleanup)}i(E,"is"),g.is=E})(X||(e.CancellationSenderStrategy=X={}));var le;(function(g){g.Message=Object.freeze({receiver:H.Message,sender:X.Message});function E(T){const R=T;return R&&H.is(R.receiver)&&X.is(R.sender)}i(E,"is"),g.is=E})(le||(e.CancellationStrategy=le={}));var ce;(function(g){function E(T){const R=T;return R&&r.func(R.handleMessage)}i(E,"is"),g.is=E})(ce||(e.MessageStrategy=ce={}));var Ne;(function(g){function E(T){const R=T;return R&&(le.is(R.cancellationStrategy)||A.is(R.connectionStrategy)||ce.is(R.messageStrategy))}i(E,"is"),g.is=E})(Ne||(e.ConnectionOptions=Ne={}));var P;(function(g){g[g.New=1]="New",g[g.Listening=2]="Listening",g[g.Closed=3]="Closed",g[g.Disposed=4]="Disposed"})(P||(P={}));function _(g,E,T,R){const S=T!==void 0?T:e.NullLogger;let O=0,M=0,D=0;const z="2.0";let B;const Z=new Map;let J;const te=new Map,fe=new Map;let ct,Re=new a.LinkedMap,Oe=new Map,qe=new Set,Se=new Map,Q=h.Off,rt=v.Text,me,Nt=P.New;const Jn=new s.Emitter,ti=new s.Emitter,ri=new s.Emitter,ni=new s.Emitter,ai=new s.Emitter,kt=R&&R.cancellationStrategy?R.cancellationStrategy:le.Message;function Zn(m){if(m===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+m.toString()}i(Zn,"createRequestQueueKey");function ii(m){return m===null?"res-unknown-"+(++D).toString():"res-"+m.toString()}i(ii,"createResponseQueueKey");function si(){return"not-"+(++M).toString()}i(si,"createNotificationQueueKey");function oi(m,N){n.Message.isRequest(N)?m.set(Zn(N.id),N):n.Message.isResponse(N)?m.set(ii(N.id),N):m.set(si(),N)}i(oi,"addMessageToQueue");function li(m){}i(li,"cancelUndispatched");function Qn(){return Nt===P.Listening}i(Qn,"isListening");function ea(){return Nt===P.Closed}i(ea,"isClosed");function zt(){return Nt===P.Disposed}i(zt,"isDisposed");function ta(){(Nt===P.New||Nt===P.Listening)&&(Nt=P.Closed,ti.fire(void 0))}i(ta,"closeHandler");function ci(m){Jn.fire([m,void 0,void 0])}i(ci,"readErrorHandler");function ui(m){Jn.fire(m)}i(ui,"writeErrorHandler"),g.onClose(ta),g.onError(ci),E.onClose(ta),E.onError(ui);function ra(){ct||Re.size===0||(ct=(0,t.default)().timer.setImmediate(()=>{ct=void 0,fi()}))}i(ra,"triggerMessageQueue");function na(m){n.Message.isRequest(m)?di(m):n.Message.isNotification(m)?hi(m):n.Message.isResponse(m)?pi(m):mi(m)}i(na,"handleMessage");function fi(){if(Re.size===0)return;const m=Re.shift();try{const N=R?.messageStrategy;ce.is(N)?N.handleMessage(m,na):na(m)}finally{ra()}}i(fi,"processMessageQueue");const Ks=i(m=>{try{if(n.Message.isNotification(m)&&m.method===l.type.method){const N=m.params.id,L=Zn(N),x=Re.get(L);if(n.Message.isRequest(x)){const ue=R?.connectionStrategy,be=ue&&ue.cancelUndispatched?ue.cancelUndispatched(x,li):void 0;if(be&&(be.error!==void 0||be.result!==void 0)){Re.delete(L),Se.delete(N),be.id=x.id,kr(be,m.method,Date.now()),E.write(be).catch(()=>S.error("Sending response for canceled message failed."));return}}const ge=Se.get(N);if(ge!==void 0){ge.cancel(),Hr(m);return}else qe.add(N)}oi(Re,m)}finally{ra()}},"callback");function di(m){if(zt())return;function N(re,Ee,se){const De={jsonrpc:z,id:m.id};re instanceof n.ResponseError?De.error=re.toJson():De.result=re===void 0?null:re,kr(De,Ee,se),E.write(De).catch(()=>S.error("Sending response failed."))}i(N,"reply");function L(re,Ee,se){const De={jsonrpc:z,id:m.id,error:re.toJson()};kr(De,Ee,se),E.write(De).catch(()=>S.error("Sending response failed."))}i(L,"replyError");function x(re,Ee,se){re===void 0&&(re=null);const De={jsonrpc:z,id:m.id,result:re};kr(De,Ee,se),E.write(De).catch(()=>S.error("Sending response failed."))}i(x,"replySuccess"),vi(m);const ge=Z.get(m.method);let ue,be;ge&&(ue=ge.type,be=ge.handler);const ke=Date.now();if(be||B){const re=m.id??String(Date.now()),Ee=k.is(kt.receiver)?kt.receiver.createCancellationTokenSource(re):kt.receiver.createCancellationTokenSource(m);m.id!==null&&qe.has(m.id)&&Ee.cancel(),m.id!==null&&Se.set(re,Ee);try{let se;if(be)if(m.params===void 0){if(ue!==void 0&&ue.numberOfParams!==0){L(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${m.method} defines ${ue.numberOfParams} params but received none.`),m.method,ke);return}se=be(Ee.token)}else if(Array.isArray(m.params)){if(ue!==void 0&&ue.parameterStructures===n.ParameterStructures.byName){L(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${m.method} defines parameters by name but received parameters by position`),m.method,ke);return}se=be(...m.params,Ee.token)}else{if(ue!==void 0&&ue.parameterStructures===n.ParameterStructures.byPosition){L(new n.ResponseError(n.ErrorCodes.InvalidParams,`Request ${m.method} defines parameters by position but received parameters by name`),m.method,ke);return}se=be(m.params,Ee.token)}else B&&(se=B(m.method,m.params,Ee.token));const De=se;se?De.then?De.then(We=>{Se.delete(re),N(We,m.method,ke)},We=>{Se.delete(re),We instanceof n.ResponseError?L(We,m.method,ke):We&&r.string(We.message)?L(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${m.method} failed with message: ${We.message}`),m.method,ke):L(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${m.method} failed unexpectedly without providing any details.`),m.method,ke)}):(Se.delete(re),N(se,m.method,ke)):(Se.delete(re),x(se,m.method,ke))}catch(se){Se.delete(re),se instanceof n.ResponseError?N(se,m.method,ke):se&&r.string(se.message)?L(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${m.method} failed with message: ${se.message}`),m.method,ke):L(new n.ResponseError(n.ErrorCodes.InternalError,`Request ${m.method} failed unexpectedly without providing any details.`),m.method,ke)}}else L(new n.ResponseError(n.ErrorCodes.MethodNotFound,`Unhandled method ${m.method}`),m.method,ke)}i(di,"handleRequest");function pi(m){if(!zt())if(m.id===null)m.error?S.error(`Received response message without id: Error is:
10
+ ${JSON.stringify(m.error,void 0,4)}`):S.error("Received response message without id. No further error information provided.");else{const N=m.id,L=Oe.get(N);if(Ti(m,L),L!==void 0){Oe.delete(N);try{if(m.error){const x=m.error;L.reject(new n.ResponseError(x.code,x.message,x.data))}else if(m.result!==void 0)L.resolve(m.result);else throw new Error("Should never happen.")}catch(x){x.message?S.error(`Response handler '${L.method}' failed with message: ${x.message}`):S.error(`Response handler '${L.method}' failed unexpectedly.`)}}}}i(pi,"handleResponse");function hi(m){if(zt())return;let N,L;if(m.method===l.type.method){const x=m.params.id;qe.delete(x),Hr(m);return}else{const x=te.get(m.method);x&&(L=x.handler,N=x.type)}if(L||J)try{if(Hr(m),L)if(m.params===void 0)N!==void 0&&N.numberOfParams!==0&&N.parameterStructures!==n.ParameterStructures.byName&&S.error(`Notification ${m.method} defines ${N.numberOfParams} params but received none.`),L();else if(Array.isArray(m.params)){const x=m.params;m.method===u.type.method&&x.length===2&&c.is(x[0])?L({token:x[0],value:x[1]}):(N!==void 0&&(N.parameterStructures===n.ParameterStructures.byName&&S.error(`Notification ${m.method} defines parameters by name but received parameters by position`),N.numberOfParams!==m.params.length&&S.error(`Notification ${m.method} defines ${N.numberOfParams} params but received ${x.length} arguments`)),L(...x))}else N!==void 0&&N.parameterStructures===n.ParameterStructures.byPosition&&S.error(`Notification ${m.method} defines parameters by position but received parameters by name`),L(m.params);else J&&J(m.method,m.params)}catch(x){x.message?S.error(`Notification handler '${m.method}' failed with message: ${x.message}`):S.error(`Notification handler '${m.method}' failed unexpectedly.`)}else ri.fire(m)}i(hi,"handleNotification");function mi(m){if(!m){S.error("Received empty message.");return}S.error(`Received message which is neither a response nor a notification message:
11
+ ${JSON.stringify(m,null,4)}`);const N=m;if(r.string(N.id)||r.number(N.id)){const L=N.id,x=Oe.get(L);x&&x.reject(new Error("The received response has neither a result nor an error property."))}}i(mi,"handleInvalidMessage");function $t(m){if(m!=null)switch(Q){case h.Verbose:return JSON.stringify(m,null,4);case h.Compact:return JSON.stringify(m);default:return}}i($t,"stringifyTrace");function gi(m){if(!(Q===h.Off||!me))if(rt===v.Text){let N;(Q===h.Verbose||Q===h.Compact)&&m.params&&(N=`Params: ${$t(m.params)}
12
+
13
+ `),me.log(`Sending request '${m.method} - (${m.id})'.`,N)}else Bt("send-request",m)}i(gi,"traceSendingRequest");function yi(m){if(!(Q===h.Off||!me))if(rt===v.Text){let N;(Q===h.Verbose||Q===h.Compact)&&(m.params?N=`Params: ${$t(m.params)}
14
+
15
+ `:N=`No parameters provided.
16
+
17
+ `),me.log(`Sending notification '${m.method}'.`,N)}else Bt("send-notification",m)}i(yi,"traceSendingNotification");function kr(m,N,L){if(!(Q===h.Off||!me))if(rt===v.Text){let x;(Q===h.Verbose||Q===h.Compact)&&(m.error&&m.error.data?x=`Error data: ${$t(m.error.data)}
18
+
19
+ `:m.result?x=`Result: ${$t(m.result)}
20
+
21
+ `:m.error===void 0&&(x=`No result returned.
22
+
23
+ `)),me.log(`Sending response '${N} - (${m.id})'. Processing request took ${Date.now()-L}ms`,x)}else Bt("send-response",m)}i(kr,"traceSendingResponse");function vi(m){if(!(Q===h.Off||!me))if(rt===v.Text){let N;(Q===h.Verbose||Q===h.Compact)&&m.params&&(N=`Params: ${$t(m.params)}
24
+
25
+ `),me.log(`Received request '${m.method} - (${m.id})'.`,N)}else Bt("receive-request",m)}i(vi,"traceReceivedRequest");function Hr(m){if(!(Q===h.Off||!me||m.method===b.type.method))if(rt===v.Text){let N;(Q===h.Verbose||Q===h.Compact)&&(m.params?N=`Params: ${$t(m.params)}
26
+
27
+ `:N=`No parameters provided.
28
+
29
+ `),me.log(`Received notification '${m.method}'.`,N)}else Bt("receive-notification",m)}i(Hr,"traceReceivedNotification");function Ti(m,N){if(!(Q===h.Off||!me))if(rt===v.Text){let L;if((Q===h.Verbose||Q===h.Compact)&&(m.error&&m.error.data?L=`Error data: ${$t(m.error.data)}
30
+
31
+ `:m.result?L=`Result: ${$t(m.result)}
32
+
33
+ `:m.error===void 0&&(L=`No result returned.
34
+
35
+ `)),N){const x=m.error?` Request failed: ${m.error.message} (${m.error.code}).`:"";me.log(`Received response '${N.method} - (${m.id})' in ${Date.now()-N.timerStart}ms.${x}`,L)}else me.log(`Received response ${m.id} without active response promise.`,L)}else Bt("receive-response",m)}i(Ti,"traceReceivedResponse");function Bt(m,N){if(!me||Q===h.Off)return;const L={isLSPMessage:!0,type:m,message:N,timestamp:Date.now()};me.log(L)}i(Bt,"logLSPMessage");function or(){if(ea())throw new I(w.Closed,"Connection is closed.");if(zt())throw new I(w.Disposed,"Connection is disposed.")}i(or,"throwIfClosedOrDisposed");function Ri(){if(Qn())throw new I(w.AlreadyListening,"Connection is already listening")}i(Ri,"throwIfListening");function $i(){if(!Qn())throw new Error("Call listen() first.")}i($i,"throwIfNotListening");function lr(m){return m===void 0?null:m}i(lr,"undefinedToNull");function aa(m){if(m!==null)return m}i(aa,"nullToUndefined");function p(m){return m!=null&&!Array.isArray(m)&&typeof m=="object"}i(p,"isNamedParam");function ae(m,N){switch(m){case n.ParameterStructures.auto:return p(N)?aa(N):[lr(N)];case n.ParameterStructures.byName:if(!p(N))throw new Error("Received parameters by name but param is not an object literal.");return aa(N);case n.ParameterStructures.byPosition:return[lr(N)];default:throw new Error(`Unknown parameter structure ${m.toString()}`)}}i(ae,"computeSingleParam");function $e(m,N){let L;const x=m.numberOfParams;switch(x){case 0:L=void 0;break;case 1:L=ae(m.parameterStructures,N[0]);break;default:L=[];for(let ge=0;ge<N.length&&ge<x;ge++)L.push(lr(N[ge]));if(N.length<x)for(let ge=N.length;ge<x;ge++)L.push(null);break}return L}i($e,"computeMessageParams");const W={sendNotification:i((m,...N)=>{or();let L,x;if(r.string(m)){L=m;const ue=N[0];let be=0,ke=n.ParameterStructures.auto;n.ParameterStructures.is(ue)&&(be=1,ke=ue);let re=N.length;const Ee=re-be;switch(Ee){case 0:x=void 0;break;case 1:x=ae(ke,N[be]);break;default:if(ke===n.ParameterStructures.byName)throw new Error(`Received ${Ee} parameters for 'by Name' notification parameter structure.`);x=N.slice(be,re).map(se=>lr(se));break}}else{const ue=N;L=m.method,x=$e(m,ue)}const ge={jsonrpc:z,method:L,params:x};return yi(ge),E.write(ge).catch(ue=>{throw S.error("Sending notification failed."),ue})},"sendNotification"),onNotification:i((m,N)=>{or();let L;return r.func(m)?J=m:N&&(r.string(m)?(L=m,te.set(m,{type:void 0,handler:N})):(L=m.method,te.set(m.method,{type:m,handler:N}))),{dispose:i(()=>{L!==void 0?te.delete(L):J=void 0},"dispose")}},"onNotification"),onProgress:i((m,N,L)=>{if(fe.has(N))throw new Error(`Progress handler for token ${N} already registered`);return fe.set(N,L),{dispose:i(()=>{fe.delete(N)},"dispose")}},"onProgress"),sendProgress:i((m,N,L)=>W.sendNotification(u.type,{token:N,value:L}),"sendProgress"),onUnhandledProgress:ni.event,sendRequest:i((m,...N)=>{or(),$i();let L,x,ge;if(r.string(m)){L=m;const re=N[0],Ee=N[N.length-1];let se=0,De=n.ParameterStructures.auto;n.ParameterStructures.is(re)&&(se=1,De=re);let We=N.length;o.CancellationToken.is(Ee)&&(We=We-1,ge=Ee);const Kt=We-se;switch(Kt){case 0:x=void 0;break;case 1:x=ae(De,N[se]);break;default:if(De===n.ParameterStructures.byName)throw new Error(`Received ${Kt} parameters for 'by Name' request parameter structure.`);x=N.slice(se,We).map(Jb=>lr(Jb));break}}else{const re=N;L=m.method,x=$e(m,re);const Ee=m.numberOfParams;ge=o.CancellationToken.is(re[Ee])?re[Ee]:void 0}const ue=O++;let be;ge&&(be=ge.onCancellationRequested(()=>{const re=kt.sender.sendCancellation(W,ue);return re===void 0?(S.log(`Received no promise from cancellation strategy when cancelling id ${ue}`),Promise.resolve()):re.catch(()=>{S.log(`Sending cancellation messages for id ${ue} failed`)})}));const ke={jsonrpc:z,id:ue,method:L,params:x};return gi(ke),typeof kt.sender.enableCancellation=="function"&&kt.sender.enableCancellation(ke),new Promise(async(re,Ee)=>{const se=i(Kt=>{re(Kt),kt.sender.cleanup(ue),be?.dispose()},"resolveWithCleanup"),De=i(Kt=>{Ee(Kt),kt.sender.cleanup(ue),be?.dispose()},"rejectWithCleanup"),We={method:L,timerStart:Date.now(),resolve:se,reject:De};try{await E.write(ke),Oe.set(ue,We)}catch(Kt){throw S.error("Sending request failed."),We.reject(new n.ResponseError(n.ErrorCodes.MessageWriteError,Kt.message?Kt.message:"Unknown reason")),Kt}})},"sendRequest"),onRequest:i((m,N)=>{or();let L=null;return d.is(m)?(L=void 0,B=m):r.string(m)?(L=null,N!==void 0&&(L=m,Z.set(m,{handler:N,type:void 0}))):N!==void 0&&(L=m.method,Z.set(m.method,{type:m,handler:N})),{dispose:i(()=>{L!==null&&(L!==void 0?Z.delete(L):B=void 0)},"dispose")}},"onRequest"),hasPendingResponse:i(()=>Oe.size>0,"hasPendingResponse"),trace:i(async(m,N,L)=>{let x=!1,ge=v.Text;L!==void 0&&(r.boolean(L)?x=L:(x=L.sendNotification||!1,ge=L.traceFormat||v.Text)),Q=m,rt=ge,Q===h.Off?me=void 0:me=N,x&&!ea()&&!zt()&&await W.sendNotification(C.type,{value:h.toString(m)})},"trace"),onError:Jn.event,onClose:ti.event,onUnhandledNotification:ri.event,onDispose:ai.event,end:i(()=>{E.end()},"end"),dispose:i(()=>{if(zt())return;Nt=P.Disposed,ai.fire(void 0);const m=new n.ResponseError(n.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const N of Oe.values())N.reject(m);Oe=new Map,Se=new Map,qe=new Set,Re=new a.LinkedMap,r.func(E.dispose)&&E.dispose(),r.func(g.dispose)&&g.dispose()},"dispose"),listen:i(()=>{or(),Ri(),Nt=P.Listening,g.listen(Ks)},"listen"),inspect:i(()=>{(0,t.default)().console.log("inspect")},"inspect")};return W.onNotification(b.type,m=>{if(Q===h.Off||!me)return;const N=Q===h.Verbose||Q===h.Compact;me.log(m.message,N?m.verbose:void 0)}),W.onNotification(u.type,m=>{const N=fe.get(m.token);N?N(m.value):ni.fire(m)}),W}i(_,"createMessageConnection"),e.createMessageConnection=_}}),Qu=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/api.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProgressType=e.ProgressToken=e.createMessageConnection=e.NullLogger=e.ConnectionOptions=e.ConnectionStrategy=e.AbstractMessageBuffer=e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=e.CancellationToken=e.CancellationTokenSource=e.Emitter=e.Event=e.Disposable=e.LRUCache=e.Touch=e.LinkedMap=e.ParameterStructures=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.ErrorCodes=e.ResponseError=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType0=e.RequestType=e.Message=e.RAL=void 0,e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=void 0;var t=wg();Object.defineProperty(e,"Message",{enumerable:!0,get:i(function(){return t.Message},"get")}),Object.defineProperty(e,"RequestType",{enumerable:!0,get:i(function(){return t.RequestType},"get")}),Object.defineProperty(e,"RequestType0",{enumerable:!0,get:i(function(){return t.RequestType0},"get")}),Object.defineProperty(e,"RequestType1",{enumerable:!0,get:i(function(){return t.RequestType1},"get")}),Object.defineProperty(e,"RequestType2",{enumerable:!0,get:i(function(){return t.RequestType2},"get")}),Object.defineProperty(e,"RequestType3",{enumerable:!0,get:i(function(){return t.RequestType3},"get")}),Object.defineProperty(e,"RequestType4",{enumerable:!0,get:i(function(){return t.RequestType4},"get")}),Object.defineProperty(e,"RequestType5",{enumerable:!0,get:i(function(){return t.RequestType5},"get")}),Object.defineProperty(e,"RequestType6",{enumerable:!0,get:i(function(){return t.RequestType6},"get")}),Object.defineProperty(e,"RequestType7",{enumerable:!0,get:i(function(){return t.RequestType7},"get")}),Object.defineProperty(e,"RequestType8",{enumerable:!0,get:i(function(){return t.RequestType8},"get")}),Object.defineProperty(e,"RequestType9",{enumerable:!0,get:i(function(){return t.RequestType9},"get")}),Object.defineProperty(e,"ResponseError",{enumerable:!0,get:i(function(){return t.ResponseError},"get")}),Object.defineProperty(e,"ErrorCodes",{enumerable:!0,get:i(function(){return t.ErrorCodes},"get")}),Object.defineProperty(e,"NotificationType",{enumerable:!0,get:i(function(){return t.NotificationType},"get")}),Object.defineProperty(e,"NotificationType0",{enumerable:!0,get:i(function(){return t.NotificationType0},"get")}),Object.defineProperty(e,"NotificationType1",{enumerable:!0,get:i(function(){return t.NotificationType1},"get")}),Object.defineProperty(e,"NotificationType2",{enumerable:!0,get:i(function(){return t.NotificationType2},"get")}),Object.defineProperty(e,"NotificationType3",{enumerable:!0,get:i(function(){return t.NotificationType3},"get")}),Object.defineProperty(e,"NotificationType4",{enumerable:!0,get:i(function(){return t.NotificationType4},"get")}),Object.defineProperty(e,"NotificationType5",{enumerable:!0,get:i(function(){return t.NotificationType5},"get")}),Object.defineProperty(e,"NotificationType6",{enumerable:!0,get:i(function(){return t.NotificationType6},"get")}),Object.defineProperty(e,"NotificationType7",{enumerable:!0,get:i(function(){return t.NotificationType7},"get")}),Object.defineProperty(e,"NotificationType8",{enumerable:!0,get:i(function(){return t.NotificationType8},"get")}),Object.defineProperty(e,"NotificationType9",{enumerable:!0,get:i(function(){return t.NotificationType9},"get")}),Object.defineProperty(e,"ParameterStructures",{enumerable:!0,get:i(function(){return t.ParameterStructures},"get")});var r=Ng();Object.defineProperty(e,"LinkedMap",{enumerable:!0,get:i(function(){return r.LinkedMap},"get")}),Object.defineProperty(e,"LRUCache",{enumerable:!0,get:i(function(){return r.LRUCache},"get")}),Object.defineProperty(e,"Touch",{enumerable:!0,get:i(function(){return r.Touch},"get")});var n=nw();Object.defineProperty(e,"Disposable",{enumerable:!0,get:i(function(){return n.Disposable},"get")});var a=Ka();Object.defineProperty(e,"Event",{enumerable:!0,get:i(function(){return a.Event},"get")}),Object.defineProperty(e,"Emitter",{enumerable:!0,get:i(function(){return a.Emitter},"get")});var s=Al();Object.defineProperty(e,"CancellationTokenSource",{enumerable:!0,get:i(function(){return s.CancellationTokenSource},"get")}),Object.defineProperty(e,"CancellationToken",{enumerable:!0,get:i(function(){return s.CancellationToken},"get")});var o=aw();Object.defineProperty(e,"SharedArraySenderStrategy",{enumerable:!0,get:i(function(){return o.SharedArraySenderStrategy},"get")}),Object.defineProperty(e,"SharedArrayReceiverStrategy",{enumerable:!0,get:i(function(){return o.SharedArrayReceiverStrategy},"get")});var l=iw();Object.defineProperty(e,"MessageReader",{enumerable:!0,get:i(function(){return l.MessageReader},"get")}),Object.defineProperty(e,"AbstractMessageReader",{enumerable:!0,get:i(function(){return l.AbstractMessageReader},"get")}),Object.defineProperty(e,"ReadableStreamMessageReader",{enumerable:!0,get:i(function(){return l.ReadableStreamMessageReader},"get")});var c=sw();Object.defineProperty(e,"MessageWriter",{enumerable:!0,get:i(function(){return c.MessageWriter},"get")}),Object.defineProperty(e,"AbstractMessageWriter",{enumerable:!0,get:i(function(){return c.AbstractMessageWriter},"get")}),Object.defineProperty(e,"WriteableStreamMessageWriter",{enumerable:!0,get:i(function(){return c.WriteableStreamMessageWriter},"get")});var u=ow();Object.defineProperty(e,"AbstractMessageBuffer",{enumerable:!0,get:i(function(){return u.AbstractMessageBuffer},"get")});var f=lw();Object.defineProperty(e,"ConnectionStrategy",{enumerable:!0,get:i(function(){return f.ConnectionStrategy},"get")}),Object.defineProperty(e,"ConnectionOptions",{enumerable:!0,get:i(function(){return f.ConnectionOptions},"get")}),Object.defineProperty(e,"NullLogger",{enumerable:!0,get:i(function(){return f.NullLogger},"get")}),Object.defineProperty(e,"createMessageConnection",{enumerable:!0,get:i(function(){return f.createMessageConnection},"get")}),Object.defineProperty(e,"ProgressToken",{enumerable:!0,get:i(function(){return f.ProgressToken},"get")}),Object.defineProperty(e,"ProgressType",{enumerable:!0,get:i(function(){return f.ProgressType},"get")}),Object.defineProperty(e,"Trace",{enumerable:!0,get:i(function(){return f.Trace},"get")}),Object.defineProperty(e,"TraceValues",{enumerable:!0,get:i(function(){return f.TraceValues},"get")}),Object.defineProperty(e,"TraceFormat",{enumerable:!0,get:i(function(){return f.TraceFormat},"get")}),Object.defineProperty(e,"SetTraceNotification",{enumerable:!0,get:i(function(){return f.SetTraceNotification},"get")}),Object.defineProperty(e,"LogTraceNotification",{enumerable:!0,get:i(function(){return f.LogTraceNotification},"get")}),Object.defineProperty(e,"ConnectionErrors",{enumerable:!0,get:i(function(){return f.ConnectionErrors},"get")}),Object.defineProperty(e,"ConnectionError",{enumerable:!0,get:i(function(){return f.ConnectionError},"get")}),Object.defineProperty(e,"CancellationReceiverStrategy",{enumerable:!0,get:i(function(){return f.CancellationReceiverStrategy},"get")}),Object.defineProperty(e,"CancellationSenderStrategy",{enumerable:!0,get:i(function(){return f.CancellationSenderStrategy},"get")}),Object.defineProperty(e,"CancellationStrategy",{enumerable:!0,get:i(function(){return f.CancellationStrategy},"get")}),Object.defineProperty(e,"MessageStrategy",{enumerable:!0,get:i(function(){return f.MessageStrategy},"get")});var d=Nn();e.RAL=d.default}}),cw=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/ril.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Qu(),r=class Og extends t.AbstractMessageBuffer{static{i(this,"MessageBuffer")}constructor(u="utf-8"){super(u),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return Og.emptyBuffer}fromString(u,f){return new TextEncoder().encode(u)}toString(u,f){return f==="ascii"?this.asciiDecoder.decode(u):new TextDecoder(f).decode(u)}asNative(u,f){return f===void 0?u:u.slice(0,f)}allocNative(u){return new Uint8Array(u)}};r.emptyBuffer=new Uint8Array(0);var n=class{static{i(this,"ReadableStreamWrapper")}constructor(c){this.socket=c,this._onData=new t.Emitter,this._messageListener=u=>{u.data.arrayBuffer().then(d=>{this._onData.fire(new Uint8Array(d))},()=>{(0,t.RAL)().console.error("Converting blob to array buffer failed.")})},this.socket.addEventListener("message",this._messageListener)}onClose(c){return this.socket.addEventListener("close",c),t.Disposable.create(()=>this.socket.removeEventListener("close",c))}onError(c){return this.socket.addEventListener("error",c),t.Disposable.create(()=>this.socket.removeEventListener("error",c))}onEnd(c){return this.socket.addEventListener("end",c),t.Disposable.create(()=>this.socket.removeEventListener("end",c))}onData(c){return this._onData.event(c)}},a=class{static{i(this,"WritableStreamWrapper")}constructor(c){this.socket=c}onClose(c){return this.socket.addEventListener("close",c),t.Disposable.create(()=>this.socket.removeEventListener("close",c))}onError(c){return this.socket.addEventListener("error",c),t.Disposable.create(()=>this.socket.removeEventListener("error",c))}onEnd(c){return this.socket.addEventListener("end",c),t.Disposable.create(()=>this.socket.removeEventListener("end",c))}write(c,u){if(typeof c=="string"){if(u!==void 0&&u!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${u}`);this.socket.send(c)}else this.socket.send(c);return Promise.resolve()}end(){this.socket.close()}},s=new TextEncoder,o=Object.freeze({messageBuffer:Object.freeze({create:i(c=>new r(c),"create")}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:i((c,u)=>{if(u.charset!=="utf-8")throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${u.charset}`);return Promise.resolve(s.encode(JSON.stringify(c,void 0,0)))},"encode")}),decoder:Object.freeze({name:"application/json",decode:i((c,u)=>{if(!(c instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(u.charset).decode(c)))},"decode")})}),stream:Object.freeze({asReadableStream:i(c=>new n(c),"asReadableStream"),asWritableStream:i(c=>new a(c),"asWritableStream")}),console,timer:Object.freeze({setTimeout(c,u,...f){const d=setTimeout(c,u,...f);return{dispose:i(()=>clearTimeout(d),"dispose")}},setImmediate(c,...u){const f=setTimeout(c,0,...u);return{dispose:i(()=>clearTimeout(f),"dispose")}},setInterval(c,u,...f){const d=setInterval(c,u,...f);return{dispose:i(()=>clearInterval(d),"dispose")}}})});function l(){return o}i(l,"RIL"),(function(c){function u(){t.RAL.install(o)}i(u,"install"),c.install=u})(l||(l={})),e.default=l}}),qa=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/browser/main.js"(e){var t=e&&e.__createBinding||(Object.create?(function(c,u,f,d){d===void 0&&(d=f);var h=Object.getOwnPropertyDescriptor(u,f);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:i(function(){return u[f]},"get")}),Object.defineProperty(c,d,h)}):(function(c,u,f,d){d===void 0&&(d=f),c[d]=u[f]})),r=e&&e.__exportStar||function(c,u){for(var f in c)f!=="default"&&!Object.prototype.hasOwnProperty.call(u,f)&&t(u,c,f)};Object.defineProperty(e,"__esModule",{value:!0}),e.createMessageConnection=e.BrowserMessageWriter=e.BrowserMessageReader=void 0;var n=cw();n.default.install();var a=Qu();r(Qu(),e);var s=class extends a.AbstractMessageReader{static{i(this,"BrowserMessageReader")}constructor(c){super(),this._onData=new a.Emitter,this._messageListener=u=>{this._onData.fire(u.data)},c.addEventListener("error",u=>this.fireError(u)),c.onmessage=this._messageListener}listen(c){return this._onData.event(c)}};e.BrowserMessageReader=s;var o=class extends a.AbstractMessageWriter{static{i(this,"BrowserMessageWriter")}constructor(c){super(),this.port=c,this.errorCount=0,c.addEventListener("error",u=>this.fireError(u))}write(c){try{return this.port.postMessage(c),Promise.resolve()}catch(u){return this.handleError(u,c),Promise.reject(u)}}handleError(c,u){this.errorCount++,this.fireError(c,u,this.errorCount)}end(){}};e.BrowserMessageWriter=o;function l(c,u,f,d){return f===void 0&&(f=a.NullLogger),a.ConnectionStrategy.is(d)&&(d={connectionStrategy:d}),(0,a.createMessageConnection)(c,u,f,d)}i(l,"createMessageConnection"),e.createMessageConnection=l}}),Mh=V({"../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/browser.js"(e,t){t.exports=qa()}}),Ce=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/messages.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProtocolNotificationType=e.ProtocolNotificationType0=e.ProtocolRequestType=e.ProtocolRequestType0=e.RegistrationType=e.MessageDirection=void 0;var t=qa(),r;(function(c){c.clientToServer="clientToServer",c.serverToClient="serverToClient",c.both="both"})(r||(e.MessageDirection=r={}));var n=class{static{i(this,"RegistrationType")}constructor(c){this.method=c}};e.RegistrationType=n;var a=class extends t.RequestType0{static{i(this,"ProtocolRequestType0")}constructor(c){super(c)}};e.ProtocolRequestType0=a;var s=class extends t.RequestType{static{i(this,"ProtocolRequestType")}constructor(c){super(c,t.ParameterStructures.byName)}};e.ProtocolRequestType=s;var o=class extends t.NotificationType0{static{i(this,"ProtocolNotificationType0")}constructor(c){super(c)}};e.ProtocolNotificationType0=o;var l=class extends t.NotificationType{static{i(this,"ProtocolNotificationType")}constructor(c){super(c,t.ParameterStructures.byName)}};e.ProtocolNotificationType=l}}),Qf=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.objectLiteral=e.typedArray=e.stringArray=e.array=e.func=e.error=e.number=e.string=e.boolean=void 0;function t(f){return f===!0||f===!1}i(t,"boolean"),e.boolean=t;function r(f){return typeof f=="string"||f instanceof String}i(r,"string"),e.string=r;function n(f){return typeof f=="number"||f instanceof Number}i(n,"number"),e.number=n;function a(f){return f instanceof Error}i(a,"error"),e.error=a;function s(f){return typeof f=="function"}i(s,"func"),e.func=s;function o(f){return Array.isArray(f)}i(o,"array"),e.array=o;function l(f){return o(f)&&f.every(d=>r(d))}i(l,"stringArray"),e.stringArray=l;function c(f,d){return Array.isArray(f)&&f.every(d)}i(c,"typedArray"),e.typedArray=c;function u(f){return f!==null&&typeof f=="object"}i(u,"objectLiteral"),e.objectLiteral=u}}),uw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ImplementationRequest=void 0;var t=Ce(),r;(function(n){n.method="textDocument/implementation",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method)})(r||(e.ImplementationRequest=r={}))}}),fw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TypeDefinitionRequest=void 0;var t=Ce(),r;(function(n){n.method="textDocument/typeDefinition",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method)})(r||(e.TypeDefinitionRequest=r={}))}}),dw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DidChangeWorkspaceFoldersNotification=e.WorkspaceFoldersRequest=void 0;var t=Ce(),r;(function(a){a.method="workspace/workspaceFolders",a.messageDirection=t.MessageDirection.serverToClient,a.type=new t.ProtocolRequestType0(a.method)})(r||(e.WorkspaceFoldersRequest=r={}));var n;(function(a){a.method="workspace/didChangeWorkspaceFolders",a.messageDirection=t.MessageDirection.clientToServer,a.type=new t.ProtocolNotificationType(a.method)})(n||(e.DidChangeWorkspaceFoldersNotification=n={}))}}),pw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigurationRequest=void 0;var t=Ce(),r;(function(n){n.method="workspace/configuration",n.messageDirection=t.MessageDirection.serverToClient,n.type=new t.ProtocolRequestType(n.method)})(r||(e.ConfigurationRequest=r={}))}}),hw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ColorPresentationRequest=e.DocumentColorRequest=void 0;var t=Ce(),r;(function(a){a.method="textDocument/documentColor",a.messageDirection=t.MessageDirection.clientToServer,a.type=new t.ProtocolRequestType(a.method)})(r||(e.DocumentColorRequest=r={}));var n;(function(a){a.method="textDocument/colorPresentation",a.messageDirection=t.MessageDirection.clientToServer,a.type=new t.ProtocolRequestType(a.method)})(n||(e.ColorPresentationRequest=n={}))}}),mw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FoldingRangeRefreshRequest=e.FoldingRangeRequest=void 0;var t=Ce(),r;(function(a){a.method="textDocument/foldingRange",a.messageDirection=t.MessageDirection.clientToServer,a.type=new t.ProtocolRequestType(a.method)})(r||(e.FoldingRangeRequest=r={}));var n;(function(a){a.method="workspace/foldingRange/refresh",a.messageDirection=t.MessageDirection.serverToClient,a.type=new t.ProtocolRequestType0(a.method)})(n||(e.FoldingRangeRefreshRequest=n={}))}}),gw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeclarationRequest=void 0;var t=Ce(),r;(function(n){n.method="textDocument/declaration",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method)})(r||(e.DeclarationRequest=r={}))}}),yw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionRangeRequest=void 0;var t=Ce(),r;(function(n){n.method="textDocument/selectionRange",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method)})(r||(e.SelectionRangeRequest=r={}))}}),vw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorkDoneProgressCancelNotification=e.WorkDoneProgressCreateRequest=e.WorkDoneProgress=void 0;var t=qa(),r=Ce(),n;(function(o){o.type=new t.ProgressType;function l(c){return c===o.type}i(l,"is"),o.is=l})(n||(e.WorkDoneProgress=n={}));var a;(function(o){o.method="window/workDoneProgress/create",o.messageDirection=r.MessageDirection.serverToClient,o.type=new r.ProtocolRequestType(o.method)})(a||(e.WorkDoneProgressCreateRequest=a={}));var s;(function(o){o.method="window/workDoneProgress/cancel",o.messageDirection=r.MessageDirection.clientToServer,o.type=new r.ProtocolNotificationType(o.method)})(s||(e.WorkDoneProgressCancelNotification=s={}))}}),Tw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CallHierarchyOutgoingCallsRequest=e.CallHierarchyIncomingCallsRequest=e.CallHierarchyPrepareRequest=void 0;var t=Ce(),r;(function(s){s.method="textDocument/prepareCallHierarchy",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method)})(r||(e.CallHierarchyPrepareRequest=r={}));var n;(function(s){s.method="callHierarchy/incomingCalls",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method)})(n||(e.CallHierarchyIncomingCallsRequest=n={}));var a;(function(s){s.method="callHierarchy/outgoingCalls",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method)})(a||(e.CallHierarchyOutgoingCallsRequest=a={}))}}),Rw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticTokensRefreshRequest=e.SemanticTokensRangeRequest=e.SemanticTokensDeltaRequest=e.SemanticTokensRequest=e.SemanticTokensRegistrationType=e.TokenFormat=void 0;var t=Ce(),r;(function(c){c.Relative="relative"})(r||(e.TokenFormat=r={}));var n;(function(c){c.method="textDocument/semanticTokens",c.type=new t.RegistrationType(c.method)})(n||(e.SemanticTokensRegistrationType=n={}));var a;(function(c){c.method="textDocument/semanticTokens/full",c.messageDirection=t.MessageDirection.clientToServer,c.type=new t.ProtocolRequestType(c.method),c.registrationMethod=n.method})(a||(e.SemanticTokensRequest=a={}));var s;(function(c){c.method="textDocument/semanticTokens/full/delta",c.messageDirection=t.MessageDirection.clientToServer,c.type=new t.ProtocolRequestType(c.method),c.registrationMethod=n.method})(s||(e.SemanticTokensDeltaRequest=s={}));var o;(function(c){c.method="textDocument/semanticTokens/range",c.messageDirection=t.MessageDirection.clientToServer,c.type=new t.ProtocolRequestType(c.method),c.registrationMethod=n.method})(o||(e.SemanticTokensRangeRequest=o={}));var l;(function(c){c.method="workspace/semanticTokens/refresh",c.messageDirection=t.MessageDirection.serverToClient,c.type=new t.ProtocolRequestType0(c.method)})(l||(e.SemanticTokensRefreshRequest=l={}))}}),$w=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ShowDocumentRequest=void 0;var t=Ce(),r;(function(n){n.method="window/showDocument",n.messageDirection=t.MessageDirection.serverToClient,n.type=new t.ProtocolRequestType(n.method)})(r||(e.ShowDocumentRequest=r={}))}}),Aw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedEditingRangeRequest=void 0;var t=Ce(),r;(function(n){n.method="textDocument/linkedEditingRange",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method)})(r||(e.LinkedEditingRangeRequest=r={}))}}),Ew=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WillDeleteFilesRequest=e.DidDeleteFilesNotification=e.DidRenameFilesNotification=e.WillRenameFilesRequest=e.DidCreateFilesNotification=e.WillCreateFilesRequest=e.FileOperationPatternKind=void 0;var t=Ce(),r;(function(u){u.file="file",u.folder="folder"})(r||(e.FileOperationPatternKind=r={}));var n;(function(u){u.method="workspace/willCreateFiles",u.messageDirection=t.MessageDirection.clientToServer,u.type=new t.ProtocolRequestType(u.method)})(n||(e.WillCreateFilesRequest=n={}));var a;(function(u){u.method="workspace/didCreateFiles",u.messageDirection=t.MessageDirection.clientToServer,u.type=new t.ProtocolNotificationType(u.method)})(a||(e.DidCreateFilesNotification=a={}));var s;(function(u){u.method="workspace/willRenameFiles",u.messageDirection=t.MessageDirection.clientToServer,u.type=new t.ProtocolRequestType(u.method)})(s||(e.WillRenameFilesRequest=s={}));var o;(function(u){u.method="workspace/didRenameFiles",u.messageDirection=t.MessageDirection.clientToServer,u.type=new t.ProtocolNotificationType(u.method)})(o||(e.DidRenameFilesNotification=o={}));var l;(function(u){u.method="workspace/didDeleteFiles",u.messageDirection=t.MessageDirection.clientToServer,u.type=new t.ProtocolNotificationType(u.method)})(l||(e.DidDeleteFilesNotification=l={}));var c;(function(u){u.method="workspace/willDeleteFiles",u.messageDirection=t.MessageDirection.clientToServer,u.type=new t.ProtocolRequestType(u.method)})(c||(e.WillDeleteFilesRequest=c={}))}}),_w=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MonikerRequest=e.MonikerKind=e.UniquenessLevel=void 0;var t=Ce(),r;(function(s){s.document="document",s.project="project",s.group="group",s.scheme="scheme",s.global="global"})(r||(e.UniquenessLevel=r={}));var n;(function(s){s.$import="import",s.$export="export",s.local="local"})(n||(e.MonikerKind=n={}));var a;(function(s){s.method="textDocument/moniker",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method)})(a||(e.MonikerRequest=a={}))}}),Cw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TypeHierarchySubtypesRequest=e.TypeHierarchySupertypesRequest=e.TypeHierarchyPrepareRequest=void 0;var t=Ce(),r;(function(s){s.method="textDocument/prepareTypeHierarchy",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method)})(r||(e.TypeHierarchyPrepareRequest=r={}));var n;(function(s){s.method="typeHierarchy/supertypes",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method)})(n||(e.TypeHierarchySupertypesRequest=n={}));var a;(function(s){s.method="typeHierarchy/subtypes",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method)})(a||(e.TypeHierarchySubtypesRequest=a={}))}}),Sw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InlineValueRefreshRequest=e.InlineValueRequest=void 0;var t=Ce(),r;(function(a){a.method="textDocument/inlineValue",a.messageDirection=t.MessageDirection.clientToServer,a.type=new t.ProtocolRequestType(a.method)})(r||(e.InlineValueRequest=r={}));var n;(function(a){a.method="workspace/inlineValue/refresh",a.messageDirection=t.MessageDirection.serverToClient,a.type=new t.ProtocolRequestType0(a.method)})(n||(e.InlineValueRefreshRequest=n={}))}}),bw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InlayHintRefreshRequest=e.InlayHintResolveRequest=e.InlayHintRequest=void 0;var t=Ce(),r;(function(s){s.method="textDocument/inlayHint",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method)})(r||(e.InlayHintRequest=r={}));var n;(function(s){s.method="inlayHint/resolve",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType(s.method)})(n||(e.InlayHintResolveRequest=n={}));var a;(function(s){s.method="workspace/inlayHint/refresh",s.messageDirection=t.MessageDirection.serverToClient,s.type=new t.ProtocolRequestType0(s.method)})(a||(e.InlayHintRefreshRequest=a={}))}}),ww=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiagnosticRefreshRequest=e.WorkspaceDiagnosticRequest=e.DocumentDiagnosticRequest=e.DocumentDiagnosticReportKind=e.DiagnosticServerCancellationData=void 0;var t=qa(),r=Qf(),n=Ce(),a;(function(u){function f(d){const h=d;return h&&r.boolean(h.retriggerRequest)}i(f,"is"),u.is=f})(a||(e.DiagnosticServerCancellationData=a={}));var s;(function(u){u.Full="full",u.Unchanged="unchanged"})(s||(e.DocumentDiagnosticReportKind=s={}));var o;(function(u){u.method="textDocument/diagnostic",u.messageDirection=n.MessageDirection.clientToServer,u.type=new n.ProtocolRequestType(u.method),u.partialResult=new t.ProgressType})(o||(e.DocumentDiagnosticRequest=o={}));var l;(function(u){u.method="workspace/diagnostic",u.messageDirection=n.MessageDirection.clientToServer,u.type=new n.ProtocolRequestType(u.method),u.partialResult=new t.ProgressType})(l||(e.WorkspaceDiagnosticRequest=l={}));var c;(function(u){u.method="workspace/diagnostic/refresh",u.messageDirection=n.MessageDirection.serverToClient,u.type=new n.ProtocolRequestType0(u.method)})(c||(e.DiagnosticRefreshRequest=c={}))}}),Iw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DidCloseNotebookDocumentNotification=e.DidSaveNotebookDocumentNotification=e.DidChangeNotebookDocumentNotification=e.NotebookCellArrayChange=e.DidOpenNotebookDocumentNotification=e.NotebookDocumentSyncRegistrationType=e.NotebookDocument=e.NotebookCell=e.ExecutionSummary=e.NotebookCellKind=void 0;var t=(Es(),Zf($l)),r=Qf(),n=Ce(),a;(function(v){v.Markup=1,v.Code=2;function C(b){return b===1||b===2}i(C,"is"),v.is=C})(a||(e.NotebookCellKind=a={}));var s;(function(v){function C(I,A){const k={executionOrder:I};return(A===!0||A===!1)&&(k.success=A),k}i(C,"create"),v.create=C;function b(I){const A=I;return r.objectLiteral(A)&&t.uinteger.is(A.executionOrder)&&(A.success===void 0||r.boolean(A.success))}i(b,"is"),v.is=b;function w(I,A){return I===A?!0:I==null||A===null||A===void 0?!1:I.executionOrder===A.executionOrder&&I.success===A.success}i(w,"equals"),v.equals=w})(s||(e.ExecutionSummary=s={}));var o;(function(v){function C(A,k){return{kind:A,document:k}}i(C,"create"),v.create=C;function b(A){const k=A;return r.objectLiteral(k)&&a.is(k.kind)&&t.DocumentUri.is(k.document)&&(k.metadata===void 0||r.objectLiteral(k.metadata))}i(b,"is"),v.is=b;function w(A,k){const G=new Set;return A.document!==k.document&&G.add("document"),A.kind!==k.kind&&G.add("kind"),A.executionSummary!==k.executionSummary&&G.add("executionSummary"),(A.metadata!==void 0||k.metadata!==void 0)&&!I(A.metadata,k.metadata)&&G.add("metadata"),(A.executionSummary!==void 0||k.executionSummary!==void 0)&&!s.equals(A.executionSummary,k.executionSummary)&&G.add("executionSummary"),G}i(w,"diff"),v.diff=w;function I(A,k){if(A===k)return!0;if(A==null||k===null||k===void 0||typeof A!=typeof k||typeof A!="object")return!1;const G=Array.isArray(A),H=Array.isArray(k);if(G!==H)return!1;if(G&&H){if(A.length!==k.length)return!1;for(let X=0;X<A.length;X++)if(!I(A[X],k[X]))return!1}if(r.objectLiteral(A)&&r.objectLiteral(k)){const X=Object.keys(A),le=Object.keys(k);if(X.length!==le.length||(X.sort(),le.sort(),!I(X,le)))return!1;for(let ce=0;ce<X.length;ce++){const Ne=X[ce];if(!I(A[Ne],k[Ne]))return!1}}return!0}i(I,"equalsMetadata")})(o||(e.NotebookCell=o={}));var l;(function(v){function C(w,I,A,k){return{uri:w,notebookType:I,version:A,cells:k}}i(C,"create"),v.create=C;function b(w){const I=w;return r.objectLiteral(I)&&r.string(I.uri)&&t.integer.is(I.version)&&r.typedArray(I.cells,o.is)}i(b,"is"),v.is=b})(l||(e.NotebookDocument=l={}));var c;(function(v){v.method="notebookDocument/sync",v.messageDirection=n.MessageDirection.clientToServer,v.type=new n.RegistrationType(v.method)})(c||(e.NotebookDocumentSyncRegistrationType=c={}));var u;(function(v){v.method="notebookDocument/didOpen",v.messageDirection=n.MessageDirection.clientToServer,v.type=new n.ProtocolNotificationType(v.method),v.registrationMethod=c.method})(u||(e.DidOpenNotebookDocumentNotification=u={}));var f;(function(v){function C(w){const I=w;return r.objectLiteral(I)&&t.uinteger.is(I.start)&&t.uinteger.is(I.deleteCount)&&(I.cells===void 0||r.typedArray(I.cells,o.is))}i(C,"is"),v.is=C;function b(w,I,A){const k={start:w,deleteCount:I};return A!==void 0&&(k.cells=A),k}i(b,"create"),v.create=b})(f||(e.NotebookCellArrayChange=f={}));var d;(function(v){v.method="notebookDocument/didChange",v.messageDirection=n.MessageDirection.clientToServer,v.type=new n.ProtocolNotificationType(v.method),v.registrationMethod=c.method})(d||(e.DidChangeNotebookDocumentNotification=d={}));var h;(function(v){v.method="notebookDocument/didSave",v.messageDirection=n.MessageDirection.clientToServer,v.type=new n.ProtocolNotificationType(v.method),v.registrationMethod=c.method})(h||(e.DidSaveNotebookDocumentNotification=h={}));var y;(function(v){v.method="notebookDocument/didClose",v.messageDirection=n.MessageDirection.clientToServer,v.type=new n.ProtocolNotificationType(v.method),v.registrationMethod=c.method})(y||(e.DidCloseNotebookDocumentNotification=y={}))}}),Nw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InlineCompletionRequest=void 0;var t=Ce(),r;(function(n){n.method="textDocument/inlineCompletion",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method)})(r||(e.InlineCompletionRequest=r={}))}}),kw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorkspaceSymbolRequest=e.CodeActionResolveRequest=e.CodeActionRequest=e.DocumentSymbolRequest=e.DocumentHighlightRequest=e.ReferencesRequest=e.DefinitionRequest=e.SignatureHelpRequest=e.SignatureHelpTriggerKind=e.HoverRequest=e.CompletionResolveRequest=e.CompletionRequest=e.CompletionTriggerKind=e.PublishDiagnosticsNotification=e.WatchKind=e.RelativePattern=e.FileChangeType=e.DidChangeWatchedFilesNotification=e.WillSaveTextDocumentWaitUntilRequest=e.WillSaveTextDocumentNotification=e.TextDocumentSaveReason=e.DidSaveTextDocumentNotification=e.DidCloseTextDocumentNotification=e.DidChangeTextDocumentNotification=e.TextDocumentContentChangeEvent=e.DidOpenTextDocumentNotification=e.TextDocumentSyncKind=e.TelemetryEventNotification=e.LogMessageNotification=e.ShowMessageRequest=e.ShowMessageNotification=e.MessageType=e.DidChangeConfigurationNotification=e.ExitNotification=e.ShutdownRequest=e.InitializedNotification=e.InitializeErrorCodes=e.InitializeRequest=e.WorkDoneProgressOptions=e.TextDocumentRegistrationOptions=e.StaticRegistrationOptions=e.PositionEncodingKind=e.FailureHandlingKind=e.ResourceOperationKind=e.UnregistrationRequest=e.RegistrationRequest=e.DocumentSelector=e.NotebookCellTextDocumentFilter=e.NotebookDocumentFilter=e.TextDocumentFilter=void 0,e.MonikerRequest=e.MonikerKind=e.UniquenessLevel=e.WillDeleteFilesRequest=e.DidDeleteFilesNotification=e.WillRenameFilesRequest=e.DidRenameFilesNotification=e.WillCreateFilesRequest=e.DidCreateFilesNotification=e.FileOperationPatternKind=e.LinkedEditingRangeRequest=e.ShowDocumentRequest=e.SemanticTokensRegistrationType=e.SemanticTokensRefreshRequest=e.SemanticTokensRangeRequest=e.SemanticTokensDeltaRequest=e.SemanticTokensRequest=e.TokenFormat=e.CallHierarchyPrepareRequest=e.CallHierarchyOutgoingCallsRequest=e.CallHierarchyIncomingCallsRequest=e.WorkDoneProgressCancelNotification=e.WorkDoneProgressCreateRequest=e.WorkDoneProgress=e.SelectionRangeRequest=e.DeclarationRequest=e.FoldingRangeRefreshRequest=e.FoldingRangeRequest=e.ColorPresentationRequest=e.DocumentColorRequest=e.ConfigurationRequest=e.DidChangeWorkspaceFoldersNotification=e.WorkspaceFoldersRequest=e.TypeDefinitionRequest=e.ImplementationRequest=e.ApplyWorkspaceEditRequest=e.ExecuteCommandRequest=e.PrepareRenameRequest=e.RenameRequest=e.PrepareSupportDefaultBehavior=e.DocumentOnTypeFormattingRequest=e.DocumentRangesFormattingRequest=e.DocumentRangeFormattingRequest=e.DocumentFormattingRequest=e.DocumentLinkResolveRequest=e.DocumentLinkRequest=e.CodeLensRefreshRequest=e.CodeLensResolveRequest=e.CodeLensRequest=e.WorkspaceSymbolResolveRequest=void 0,e.InlineCompletionRequest=e.DidCloseNotebookDocumentNotification=e.DidSaveNotebookDocumentNotification=e.DidChangeNotebookDocumentNotification=e.NotebookCellArrayChange=e.DidOpenNotebookDocumentNotification=e.NotebookDocumentSyncRegistrationType=e.NotebookDocument=e.NotebookCell=e.ExecutionSummary=e.NotebookCellKind=e.DiagnosticRefreshRequest=e.WorkspaceDiagnosticRequest=e.DocumentDiagnosticRequest=e.DocumentDiagnosticReportKind=e.DiagnosticServerCancellationData=e.InlayHintRefreshRequest=e.InlayHintResolveRequest=e.InlayHintRequest=e.InlineValueRefreshRequest=e.InlineValueRequest=e.TypeHierarchySupertypesRequest=e.TypeHierarchySubtypesRequest=e.TypeHierarchyPrepareRequest=void 0;var t=Ce(),r=(Es(),Zf($l)),n=Qf(),a=uw();Object.defineProperty(e,"ImplementationRequest",{enumerable:!0,get:i(function(){return a.ImplementationRequest},"get")});var s=fw();Object.defineProperty(e,"TypeDefinitionRequest",{enumerable:!0,get:i(function(){return s.TypeDefinitionRequest},"get")});var o=dw();Object.defineProperty(e,"WorkspaceFoldersRequest",{enumerable:!0,get:i(function(){return o.WorkspaceFoldersRequest},"get")}),Object.defineProperty(e,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:i(function(){return o.DidChangeWorkspaceFoldersNotification},"get")});var l=pw();Object.defineProperty(e,"ConfigurationRequest",{enumerable:!0,get:i(function(){return l.ConfigurationRequest},"get")});var c=hw();Object.defineProperty(e,"DocumentColorRequest",{enumerable:!0,get:i(function(){return c.DocumentColorRequest},"get")}),Object.defineProperty(e,"ColorPresentationRequest",{enumerable:!0,get:i(function(){return c.ColorPresentationRequest},"get")});var u=mw();Object.defineProperty(e,"FoldingRangeRequest",{enumerable:!0,get:i(function(){return u.FoldingRangeRequest},"get")}),Object.defineProperty(e,"FoldingRangeRefreshRequest",{enumerable:!0,get:i(function(){return u.FoldingRangeRefreshRequest},"get")});var f=gw();Object.defineProperty(e,"DeclarationRequest",{enumerable:!0,get:i(function(){return f.DeclarationRequest},"get")});var d=yw();Object.defineProperty(e,"SelectionRangeRequest",{enumerable:!0,get:i(function(){return d.SelectionRangeRequest},"get")});var h=vw();Object.defineProperty(e,"WorkDoneProgress",{enumerable:!0,get:i(function(){return h.WorkDoneProgress},"get")}),Object.defineProperty(e,"WorkDoneProgressCreateRequest",{enumerable:!0,get:i(function(){return h.WorkDoneProgressCreateRequest},"get")}),Object.defineProperty(e,"WorkDoneProgressCancelNotification",{enumerable:!0,get:i(function(){return h.WorkDoneProgressCancelNotification},"get")});var y=Tw();Object.defineProperty(e,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:i(function(){return y.CallHierarchyIncomingCallsRequest},"get")}),Object.defineProperty(e,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:i(function(){return y.CallHierarchyOutgoingCallsRequest},"get")}),Object.defineProperty(e,"CallHierarchyPrepareRequest",{enumerable:!0,get:i(function(){return y.CallHierarchyPrepareRequest},"get")});var v=Rw();Object.defineProperty(e,"TokenFormat",{enumerable:!0,get:i(function(){return v.TokenFormat},"get")}),Object.defineProperty(e,"SemanticTokensRequest",{enumerable:!0,get:i(function(){return v.SemanticTokensRequest},"get")}),Object.defineProperty(e,"SemanticTokensDeltaRequest",{enumerable:!0,get:i(function(){return v.SemanticTokensDeltaRequest},"get")}),Object.defineProperty(e,"SemanticTokensRangeRequest",{enumerable:!0,get:i(function(){return v.SemanticTokensRangeRequest},"get")}),Object.defineProperty(e,"SemanticTokensRefreshRequest",{enumerable:!0,get:i(function(){return v.SemanticTokensRefreshRequest},"get")}),Object.defineProperty(e,"SemanticTokensRegistrationType",{enumerable:!0,get:i(function(){return v.SemanticTokensRegistrationType},"get")});var C=$w();Object.defineProperty(e,"ShowDocumentRequest",{enumerable:!0,get:i(function(){return C.ShowDocumentRequest},"get")});var b=Aw();Object.defineProperty(e,"LinkedEditingRangeRequest",{enumerable:!0,get:i(function(){return b.LinkedEditingRangeRequest},"get")});var w=Ew();Object.defineProperty(e,"FileOperationPatternKind",{enumerable:!0,get:i(function(){return w.FileOperationPatternKind},"get")}),Object.defineProperty(e,"DidCreateFilesNotification",{enumerable:!0,get:i(function(){return w.DidCreateFilesNotification},"get")}),Object.defineProperty(e,"WillCreateFilesRequest",{enumerable:!0,get:i(function(){return w.WillCreateFilesRequest},"get")}),Object.defineProperty(e,"DidRenameFilesNotification",{enumerable:!0,get:i(function(){return w.DidRenameFilesNotification},"get")}),Object.defineProperty(e,"WillRenameFilesRequest",{enumerable:!0,get:i(function(){return w.WillRenameFilesRequest},"get")}),Object.defineProperty(e,"DidDeleteFilesNotification",{enumerable:!0,get:i(function(){return w.DidDeleteFilesNotification},"get")}),Object.defineProperty(e,"WillDeleteFilesRequest",{enumerable:!0,get:i(function(){return w.WillDeleteFilesRequest},"get")});var I=_w();Object.defineProperty(e,"UniquenessLevel",{enumerable:!0,get:i(function(){return I.UniquenessLevel},"get")}),Object.defineProperty(e,"MonikerKind",{enumerable:!0,get:i(function(){return I.MonikerKind},"get")}),Object.defineProperty(e,"MonikerRequest",{enumerable:!0,get:i(function(){return I.MonikerRequest},"get")});var A=Cw();Object.defineProperty(e,"TypeHierarchyPrepareRequest",{enumerable:!0,get:i(function(){return A.TypeHierarchyPrepareRequest},"get")}),Object.defineProperty(e,"TypeHierarchySubtypesRequest",{enumerable:!0,get:i(function(){return A.TypeHierarchySubtypesRequest},"get")}),Object.defineProperty(e,"TypeHierarchySupertypesRequest",{enumerable:!0,get:i(function(){return A.TypeHierarchySupertypesRequest},"get")});var k=Sw();Object.defineProperty(e,"InlineValueRequest",{enumerable:!0,get:i(function(){return k.InlineValueRequest},"get")}),Object.defineProperty(e,"InlineValueRefreshRequest",{enumerable:!0,get:i(function(){return k.InlineValueRefreshRequest},"get")});var G=bw();Object.defineProperty(e,"InlayHintRequest",{enumerable:!0,get:i(function(){return G.InlayHintRequest},"get")}),Object.defineProperty(e,"InlayHintResolveRequest",{enumerable:!0,get:i(function(){return G.InlayHintResolveRequest},"get")}),Object.defineProperty(e,"InlayHintRefreshRequest",{enumerable:!0,get:i(function(){return G.InlayHintRefreshRequest},"get")});var H=ww();Object.defineProperty(e,"DiagnosticServerCancellationData",{enumerable:!0,get:i(function(){return H.DiagnosticServerCancellationData},"get")}),Object.defineProperty(e,"DocumentDiagnosticReportKind",{enumerable:!0,get:i(function(){return H.DocumentDiagnosticReportKind},"get")}),Object.defineProperty(e,"DocumentDiagnosticRequest",{enumerable:!0,get:i(function(){return H.DocumentDiagnosticRequest},"get")}),Object.defineProperty(e,"WorkspaceDiagnosticRequest",{enumerable:!0,get:i(function(){return H.WorkspaceDiagnosticRequest},"get")}),Object.defineProperty(e,"DiagnosticRefreshRequest",{enumerable:!0,get:i(function(){return H.DiagnosticRefreshRequest},"get")});var X=Iw();Object.defineProperty(e,"NotebookCellKind",{enumerable:!0,get:i(function(){return X.NotebookCellKind},"get")}),Object.defineProperty(e,"ExecutionSummary",{enumerable:!0,get:i(function(){return X.ExecutionSummary},"get")}),Object.defineProperty(e,"NotebookCell",{enumerable:!0,get:i(function(){return X.NotebookCell},"get")}),Object.defineProperty(e,"NotebookDocument",{enumerable:!0,get:i(function(){return X.NotebookDocument},"get")}),Object.defineProperty(e,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:i(function(){return X.NotebookDocumentSyncRegistrationType},"get")}),Object.defineProperty(e,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:i(function(){return X.DidOpenNotebookDocumentNotification},"get")}),Object.defineProperty(e,"NotebookCellArrayChange",{enumerable:!0,get:i(function(){return X.NotebookCellArrayChange},"get")}),Object.defineProperty(e,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:i(function(){return X.DidChangeNotebookDocumentNotification},"get")}),Object.defineProperty(e,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:i(function(){return X.DidSaveNotebookDocumentNotification},"get")}),Object.defineProperty(e,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:i(function(){return X.DidCloseNotebookDocumentNotification},"get")});var le=Nw();Object.defineProperty(e,"InlineCompletionRequest",{enumerable:!0,get:i(function(){return le.InlineCompletionRequest},"get")});var ce;(function(p){function ae($e){const W=$e;return n.string(W)||n.string(W.language)||n.string(W.scheme)||n.string(W.pattern)}i(ae,"is"),p.is=ae})(ce||(e.TextDocumentFilter=ce={}));var Ne;(function(p){function ae($e){const W=$e;return n.objectLiteral(W)&&(n.string(W.notebookType)||n.string(W.scheme)||n.string(W.pattern))}i(ae,"is"),p.is=ae})(Ne||(e.NotebookDocumentFilter=Ne={}));var P;(function(p){function ae($e){const W=$e;return n.objectLiteral(W)&&(n.string(W.notebook)||Ne.is(W.notebook))&&(W.language===void 0||n.string(W.language))}i(ae,"is"),p.is=ae})(P||(e.NotebookCellTextDocumentFilter=P={}));var _;(function(p){function ae($e){if(!Array.isArray($e))return!1;for(let W of $e)if(!n.string(W)&&!ce.is(W)&&!P.is(W))return!1;return!0}i(ae,"is"),p.is=ae})(_||(e.DocumentSelector=_={}));var g;(function(p){p.method="client/registerCapability",p.messageDirection=t.MessageDirection.serverToClient,p.type=new t.ProtocolRequestType(p.method)})(g||(e.RegistrationRequest=g={}));var E;(function(p){p.method="client/unregisterCapability",p.messageDirection=t.MessageDirection.serverToClient,p.type=new t.ProtocolRequestType(p.method)})(E||(e.UnregistrationRequest=E={}));var T;(function(p){p.Create="create",p.Rename="rename",p.Delete="delete"})(T||(e.ResourceOperationKind=T={}));var R;(function(p){p.Abort="abort",p.Transactional="transactional",p.TextOnlyTransactional="textOnlyTransactional",p.Undo="undo"})(R||(e.FailureHandlingKind=R={}));var S;(function(p){p.UTF8="utf-8",p.UTF16="utf-16",p.UTF32="utf-32"})(S||(e.PositionEncodingKind=S={}));var O;(function(p){function ae($e){const W=$e;return W&&n.string(W.id)&&W.id.length>0}i(ae,"hasId"),p.hasId=ae})(O||(e.StaticRegistrationOptions=O={}));var M;(function(p){function ae($e){const W=$e;return W&&(W.documentSelector===null||_.is(W.documentSelector))}i(ae,"is"),p.is=ae})(M||(e.TextDocumentRegistrationOptions=M={}));var D;(function(p){function ae(W){const m=W;return n.objectLiteral(m)&&(m.workDoneProgress===void 0||n.boolean(m.workDoneProgress))}i(ae,"is"),p.is=ae;function $e(W){const m=W;return m&&n.boolean(m.workDoneProgress)}i($e,"hasWorkDoneProgress"),p.hasWorkDoneProgress=$e})(D||(e.WorkDoneProgressOptions=D={}));var z;(function(p){p.method="initialize",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolRequestType(p.method)})(z||(e.InitializeRequest=z={}));var B;(function(p){p.unknownProtocolVersion=1})(B||(e.InitializeErrorCodes=B={}));var Z;(function(p){p.method="initialized",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolNotificationType(p.method)})(Z||(e.InitializedNotification=Z={}));var J;(function(p){p.method="shutdown",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolRequestType0(p.method)})(J||(e.ShutdownRequest=J={}));var te;(function(p){p.method="exit",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolNotificationType0(p.method)})(te||(e.ExitNotification=te={}));var fe;(function(p){p.method="workspace/didChangeConfiguration",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolNotificationType(p.method)})(fe||(e.DidChangeConfigurationNotification=fe={}));var ct;(function(p){p.Error=1,p.Warning=2,p.Info=3,p.Log=4,p.Debug=5})(ct||(e.MessageType=ct={}));var Re;(function(p){p.method="window/showMessage",p.messageDirection=t.MessageDirection.serverToClient,p.type=new t.ProtocolNotificationType(p.method)})(Re||(e.ShowMessageNotification=Re={}));var Oe;(function(p){p.method="window/showMessageRequest",p.messageDirection=t.MessageDirection.serverToClient,p.type=new t.ProtocolRequestType(p.method)})(Oe||(e.ShowMessageRequest=Oe={}));var qe;(function(p){p.method="window/logMessage",p.messageDirection=t.MessageDirection.serverToClient,p.type=new t.ProtocolNotificationType(p.method)})(qe||(e.LogMessageNotification=qe={}));var Se;(function(p){p.method="telemetry/event",p.messageDirection=t.MessageDirection.serverToClient,p.type=new t.ProtocolNotificationType(p.method)})(Se||(e.TelemetryEventNotification=Se={}));var Q;(function(p){p.None=0,p.Full=1,p.Incremental=2})(Q||(e.TextDocumentSyncKind=Q={}));var rt;(function(p){p.method="textDocument/didOpen",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolNotificationType(p.method)})(rt||(e.DidOpenTextDocumentNotification=rt={}));var me;(function(p){function ae(W){let m=W;return m!=null&&typeof m.text=="string"&&m.range!==void 0&&(m.rangeLength===void 0||typeof m.rangeLength=="number")}i(ae,"isIncremental"),p.isIncremental=ae;function $e(W){let m=W;return m!=null&&typeof m.text=="string"&&m.range===void 0&&m.rangeLength===void 0}i($e,"isFull"),p.isFull=$e})(me||(e.TextDocumentContentChangeEvent=me={}));var Nt;(function(p){p.method="textDocument/didChange",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolNotificationType(p.method)})(Nt||(e.DidChangeTextDocumentNotification=Nt={}));var Jn;(function(p){p.method="textDocument/didClose",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolNotificationType(p.method)})(Jn||(e.DidCloseTextDocumentNotification=Jn={}));var ti;(function(p){p.method="textDocument/didSave",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolNotificationType(p.method)})(ti||(e.DidSaveTextDocumentNotification=ti={}));var ri;(function(p){p.Manual=1,p.AfterDelay=2,p.FocusOut=3})(ri||(e.TextDocumentSaveReason=ri={}));var ni;(function(p){p.method="textDocument/willSave",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolNotificationType(p.method)})(ni||(e.WillSaveTextDocumentNotification=ni={}));var ai;(function(p){p.method="textDocument/willSaveWaitUntil",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolRequestType(p.method)})(ai||(e.WillSaveTextDocumentWaitUntilRequest=ai={}));var kt;(function(p){p.method="workspace/didChangeWatchedFiles",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolNotificationType(p.method)})(kt||(e.DidChangeWatchedFilesNotification=kt={}));var Zn;(function(p){p.Created=1,p.Changed=2,p.Deleted=3})(Zn||(e.FileChangeType=Zn={}));var ii;(function(p){function ae($e){const W=$e;return n.objectLiteral(W)&&(r.URI.is(W.baseUri)||r.WorkspaceFolder.is(W.baseUri))&&n.string(W.pattern)}i(ae,"is"),p.is=ae})(ii||(e.RelativePattern=ii={}));var si;(function(p){p.Create=1,p.Change=2,p.Delete=4})(si||(e.WatchKind=si={}));var oi;(function(p){p.method="textDocument/publishDiagnostics",p.messageDirection=t.MessageDirection.serverToClient,p.type=new t.ProtocolNotificationType(p.method)})(oi||(e.PublishDiagnosticsNotification=oi={}));var li;(function(p){p.Invoked=1,p.TriggerCharacter=2,p.TriggerForIncompleteCompletions=3})(li||(e.CompletionTriggerKind=li={}));var Qn;(function(p){p.method="textDocument/completion",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolRequestType(p.method)})(Qn||(e.CompletionRequest=Qn={}));var ea;(function(p){p.method="completionItem/resolve",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolRequestType(p.method)})(ea||(e.CompletionResolveRequest=ea={}));var zt;(function(p){p.method="textDocument/hover",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolRequestType(p.method)})(zt||(e.HoverRequest=zt={}));var ta;(function(p){p.Invoked=1,p.TriggerCharacter=2,p.ContentChange=3})(ta||(e.SignatureHelpTriggerKind=ta={}));var ci;(function(p){p.method="textDocument/signatureHelp",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolRequestType(p.method)})(ci||(e.SignatureHelpRequest=ci={}));var ui;(function(p){p.method="textDocument/definition",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolRequestType(p.method)})(ui||(e.DefinitionRequest=ui={}));var ra;(function(p){p.method="textDocument/references",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolRequestType(p.method)})(ra||(e.ReferencesRequest=ra={}));var na;(function(p){p.method="textDocument/documentHighlight",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolRequestType(p.method)})(na||(e.DocumentHighlightRequest=na={}));var fi;(function(p){p.method="textDocument/documentSymbol",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolRequestType(p.method)})(fi||(e.DocumentSymbolRequest=fi={}));var Ks;(function(p){p.method="textDocument/codeAction",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolRequestType(p.method)})(Ks||(e.CodeActionRequest=Ks={}));var di;(function(p){p.method="codeAction/resolve",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolRequestType(p.method)})(di||(e.CodeActionResolveRequest=di={}));var pi;(function(p){p.method="workspace/symbol",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolRequestType(p.method)})(pi||(e.WorkspaceSymbolRequest=pi={}));var hi;(function(p){p.method="workspaceSymbol/resolve",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolRequestType(p.method)})(hi||(e.WorkspaceSymbolResolveRequest=hi={}));var mi;(function(p){p.method="textDocument/codeLens",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolRequestType(p.method)})(mi||(e.CodeLensRequest=mi={}));var $t;(function(p){p.method="codeLens/resolve",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolRequestType(p.method)})($t||(e.CodeLensResolveRequest=$t={}));var gi;(function(p){p.method="workspace/codeLens/refresh",p.messageDirection=t.MessageDirection.serverToClient,p.type=new t.ProtocolRequestType0(p.method)})(gi||(e.CodeLensRefreshRequest=gi={}));var yi;(function(p){p.method="textDocument/documentLink",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolRequestType(p.method)})(yi||(e.DocumentLinkRequest=yi={}));var kr;(function(p){p.method="documentLink/resolve",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolRequestType(p.method)})(kr||(e.DocumentLinkResolveRequest=kr={}));var vi;(function(p){p.method="textDocument/formatting",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolRequestType(p.method)})(vi||(e.DocumentFormattingRequest=vi={}));var Hr;(function(p){p.method="textDocument/rangeFormatting",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolRequestType(p.method)})(Hr||(e.DocumentRangeFormattingRequest=Hr={}));var Ti;(function(p){p.method="textDocument/rangesFormatting",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolRequestType(p.method)})(Ti||(e.DocumentRangesFormattingRequest=Ti={}));var Bt;(function(p){p.method="textDocument/onTypeFormatting",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolRequestType(p.method)})(Bt||(e.DocumentOnTypeFormattingRequest=Bt={}));var or;(function(p){p.Identifier=1})(or||(e.PrepareSupportDefaultBehavior=or={}));var Ri;(function(p){p.method="textDocument/rename",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolRequestType(p.method)})(Ri||(e.RenameRequest=Ri={}));var $i;(function(p){p.method="textDocument/prepareRename",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolRequestType(p.method)})($i||(e.PrepareRenameRequest=$i={}));var lr;(function(p){p.method="workspace/executeCommand",p.messageDirection=t.MessageDirection.clientToServer,p.type=new t.ProtocolRequestType(p.method)})(lr||(e.ExecuteCommandRequest=lr={}));var aa;(function(p){p.method="workspace/applyEdit",p.messageDirection=t.MessageDirection.serverToClient,p.type=new t.ProtocolRequestType("workspace/applyEdit")})(aa||(e.ApplyWorkspaceEditRequest=aa={}))}}),Pw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/connection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=void 0;var t=qa();function r(n,a,s,o){return t.ConnectionStrategy.is(o)&&(o={connectionStrategy:o}),(0,t.createMessageConnection)(n,a,s,o)}i(r,"createProtocolConnection"),e.createProtocolConnection=r}}),Ow=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/api.js"(e){var t=e&&e.__createBinding||(Object.create?(function(s,o,l,c){c===void 0&&(c=l);var u=Object.getOwnPropertyDescriptor(o,l);(!u||("get"in u?!o.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:i(function(){return o[l]},"get")}),Object.defineProperty(s,c,u)}):(function(s,o,l,c){c===void 0&&(c=l),s[c]=o[l]})),r=e&&e.__exportStar||function(s,o){for(var l in s)l!=="default"&&!Object.prototype.hasOwnProperty.call(o,l)&&t(o,s,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.LSPErrorCodes=e.createProtocolConnection=void 0,r(qa(),e),r((Es(),Zf($l)),e),r(Ce(),e),r(kw(),e);var n=Pw();Object.defineProperty(e,"createProtocolConnection",{enumerable:!0,get:i(function(){return n.createProtocolConnection},"get")});var a;(function(s){s.lspReservedErrorRangeStart=-32899,s.RequestFailed=-32803,s.ServerCancelled=-32802,s.ContentModified=-32801,s.RequestCancelled=-32800,s.lspReservedErrorRangeEnd=-32800})(a||(e.LSPErrorCodes=a={}))}}),Lw=V({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/browser/main.js"(e){var t=e&&e.__createBinding||(Object.create?(function(s,o,l,c){c===void 0&&(c=l);var u=Object.getOwnPropertyDescriptor(o,l);(!u||("get"in u?!o.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:i(function(){return o[l]},"get")}),Object.defineProperty(s,c,u)}):(function(s,o,l,c){c===void 0&&(c=l),s[c]=o[l]})),r=e&&e.__exportStar||function(s,o){for(var l in s)l!=="default"&&!Object.prototype.hasOwnProperty.call(o,l)&&t(o,s,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=void 0;var n=Mh();r(Mh(),e),r(Ow(),e);function a(s,o,l,c){return(0,n.createMessageConnection)(s,o,l,c)}i(a,"createProtocolConnection"),e.createProtocolConnection=a}}),Lg={};Br(Lg,{AbstractAstReflection:()=>rd,AbstractCstNode:()=>ah,AbstractLangiumParser:()=>sh,AbstractParserErrorMessageProvider:()=>_S,AbstractThreadedAsyncParser:()=>aF,AstUtils:()=>nd,BiMap:()=>gl,Cancellation:()=>pe,CompositeCstNodeImpl:()=>vc,ContextCache:()=>Cc,CstNodeBuilder:()=>RS,CstUtils:()=>ed,DEFAULT_TOKENIZE_OPTIONS:()=>_h,DONE_RESULT:()=>Ve,DatatypeSymbol:()=>dl,DefaultAstNodeDescriptionProvider:()=>eb,DefaultAstNodeLocator:()=>rb,DefaultAsyncParser:()=>Rb,DefaultCommentProvider:()=>Tb,DefaultConfigurationProvider:()=>nb,DefaultDocumentBuilder:()=>ab,DefaultDocumentValidator:()=>QS,DefaultHydrator:()=>Ab,DefaultIndexManager:()=>ib,DefaultJsonSerializer:()=>YS,DefaultLangiumDocumentFactory:()=>jS,DefaultLangiumDocuments:()=>US,DefaultLangiumProfiler:()=>cF,DefaultLexer:()=>Ch,DefaultLexerErrorMessageProvider:()=>ob,DefaultLinker:()=>zS,DefaultNameProvider:()=>BS,DefaultReferenceDescriptionProvider:()=>tb,DefaultReferences:()=>KS,DefaultScopeComputation:()=>qS,DefaultScopeProvider:()=>HS,DefaultServiceRegistry:()=>XS,DefaultTokenBuilder:()=>$c,DefaultValueConverter:()=>ph,DefaultWorkspaceLock:()=>$b,DefaultWorkspaceManager:()=>sb,Deferred:()=>Cr,Disposable:()=>Cn,DisposableCache:()=>_c,DocumentCache:()=>VS,DocumentState:()=>Y,DocumentValidator:()=>Et,EMPTY_SCOPE:()=>eF,EMPTY_STREAM:()=>Pa,EmptyFileSystem:()=>It,EmptyFileSystemProvider:()=>Cb,ErrorWithLocation:()=>kl,GrammarAST:()=>xg,GrammarUtils:()=>Od,IndentationAwareLexer:()=>sF,IndentationAwareTokenBuilder:()=>_b,JSDocDocumentationProvider:()=>vb,LangiumCompletionParser:()=>CS,LangiumParser:()=>ES,LangiumParserErrorMessageProvider:()=>oh,LeafCstNodeImpl:()=>fl,LexingMode:()=>En,MapScope:()=>Q1,Module:()=>Mf,MultiMap:()=>Sr,MultiMapScope:()=>WS,OperationCancelled:()=>Jt,ParserWorker:()=>iF,ProfilingTask:()=>bb,Reduction:()=>ss,RefResolving:()=>an,RegExpUtils:()=>Dd,RootCstNodeImpl:()=>ih,SimpleCache:()=>Th,StreamImpl:()=>Xt,StreamScope:()=>Pf,TextDocument:()=>hl,TreeStreamImpl:()=>Oa,URI:()=>ft,UriTrie:()=>yh,UriUtils:()=>Ye,VALIDATE_EACH_NODE:()=>ZS,ValidationCategory:()=>yl,ValidationRegistry:()=>JS,ValueConverter:()=>Ht,WorkspaceCache:()=>Rh,assertCondition:()=>Ld,assertUnreachable:()=>Kr,createCompletionParser:()=>uh,createDefaultCoreModule:()=>yt,createDefaultSharedCoreModule:()=>vt,createGrammarConfig:()=>Qd,createLangiumParser:()=>fh,createParser:()=>Tc,delayNextTick:()=>Ac,diagnosticData:()=>An,eagerLoad:()=>Ph,getDiagnosticRange:()=>Ah,indentationBuilderDefaultOptions:()=>Ff,inject:()=>Ae,interruptAndCheck:()=>Ge,isAstNode:()=>Le,isAstNodeDescription:()=>td,isAstNodeWithComment:()=>$h,isCompositeCstNode:()=>yr,isIMultiModeLexerDefinition:()=>wc,isJSDoc:()=>bh,isLeafCstNode:()=>kn,isLinkingError:()=>ln,isMultiReference:()=>Zt,isNamed:()=>vh,isOperationCancelled:()=>Xn,isReference:()=>He,isRootCstNode:()=>El,isTokenTypeArray:()=>bc,isTokenTypeDictionary:()=>vl,loadGrammarFromJson:()=>Tt,parseJSDoc:()=>Sh,prepareLangiumParser:()=>dh,setInterruptionPeriod:()=>hh,startCancelableOperation:()=>Ec,stream:()=>oe,toDiagnosticData:()=>Eh,toDiagnosticSeverity:()=>as});var ed={};Br(ed,{DefaultNameRegexp:()=>wd,RangeComparison:()=>Yt,compareRange:()=>Sd,findCommentNode:()=>Id,findDeclarationNodeAtOffset:()=>ry,findLeafNodeAtOffset:()=>Nl,findLeafNodeBeforeOffset:()=>Nd,flattenCst:()=>ty,getDatatypeNode:()=>ey,getInteriorNodes:()=>iy,getNextNode:()=>ny,getPreviousNode:()=>Pd,getStartlineNode:()=>ay,inRange:()=>bd,isChildNode:()=>Cd,isCommentNode:()=>Yo,streamCst:()=>xa,toDocumentSegment:()=>Fa,tokenToRange:()=>os});function Le(e){return typeof e=="object"&&e!==null&&typeof e.$type=="string"}i(Le,"isAstNode");function He(e){return typeof e=="object"&&e!==null&&typeof e.$refText=="string"&&"ref"in e}i(He,"isReference");function Zt(e){return typeof e=="object"&&e!==null&&typeof e.$refText=="string"&&"items"in e}i(Zt,"isMultiReference");function td(e){return typeof e=="object"&&e!==null&&typeof e.name=="string"&&typeof e.type=="string"&&typeof e.path=="string"}i(td,"isAstNodeDescription");function ln(e){return typeof e=="object"&&e!==null&&typeof e.info=="object"&&typeof e.message=="string"}i(ln,"isLinkingError");var rd=class{static{i(this,"AbstractAstReflection")}constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){const t=this.types[e.container.$type];if(!t)throw new Error(`Type ${e.container.$type||"undefined"} not found.`);const r=t.properties[e.property]?.referenceType;if(!r)throw new Error(`Property ${e.property||"undefined"} of type ${e.container.$type} is not a reference.`);return r}getTypeMetaData(e){const t=this.types[e];return t||{name:e,properties:{},superTypes:[]}}isInstance(e,t){return Le(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let r=this.subtypes[e];r||(r=this.subtypes[e]={});const n=r[t];if(n!==void 0)return n;{const a=this.types[e],s=a?a.superTypes.some(o=>this.isSubtype(o,t)):!1;return r[t]=s,s}}getAllSubTypes(e){const t=this.allSubtypes[e];if(t)return t;{const r=this.getAllTypes(),n=[];for(const a of r)this.isSubtype(a,e)&&n.push(a);return this.allSubtypes[e]=n,n}}};function yr(e){return typeof e=="object"&&e!==null&&Array.isArray(e.content)}i(yr,"isCompositeCstNode");function kn(e){return typeof e=="object"&&e!==null&&typeof e.tokenType=="object"}i(kn,"isLeafCstNode");function El(e){return yr(e)&&typeof e.fullText=="string"}i(El,"isRootCstNode");var Xt=class fr{static{i(this,"StreamImpl")}constructor(t,r){this.startFn=t,this.nextFn=r}iterator(){const t={state:this.startFn(),next:i(()=>this.nextFn(t.state),"next"),[Symbol.iterator]:()=>t};return t}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){const t=this.iterator();let r=0,n=t.next();for(;!n.done;)r++,n=t.next();return r}toArray(){const t=[],r=this.iterator();let n;do n=r.next(),n.value!==void 0&&t.push(n.value);while(!n.done);return t}toSet(){return new Set(this)}toMap(t,r){const n=this.map(a=>[t?t(a):a,r?r(a):a]);return new Map(n)}toString(){return this.join()}concat(t){return new fr(()=>({first:this.startFn(),firstDone:!1,iterator:t[Symbol.iterator]()}),r=>{let n;if(!r.firstDone){do if(n=this.nextFn(r.first),!n.done)return n;while(!n.done);r.firstDone=!0}do if(n=r.iterator.next(),!n.done)return n;while(!n.done);return Ve})}join(t=","){const r=this.iterator();let n="",a,s=!1;do a=r.next(),a.done||(s&&(n+=t),n+=Dg(a.value)),s=!0;while(!a.done);return n}indexOf(t,r=0){const n=this.iterator();let a=0,s=n.next();for(;!s.done;){if(a>=r&&s.value===t)return a;s=n.next(),a++}return-1}every(t){const r=this.iterator();let n=r.next();for(;!n.done;){if(!t(n.value))return!1;n=r.next()}return!0}some(t){const r=this.iterator();let n=r.next();for(;!n.done;){if(t(n.value))return!0;n=r.next()}return!1}forEach(t){const r=this.iterator();let n=0,a=r.next();for(;!a.done;)t(a.value,n),a=r.next(),n++}map(t){return new fr(this.startFn,r=>{const{done:n,value:a}=this.nextFn(r);return n?Ve:{done:!1,value:t(a)}})}filter(t){return new fr(this.startFn,r=>{let n;do if(n=this.nextFn(r),!n.done&&t(n.value))return n;while(!n.done);return Ve})}nonNullable(){return this.filter(t=>t!=null)}reduce(t,r){const n=this.iterator();let a=r,s=n.next();for(;!s.done;)a===void 0?a=s.value:a=t(a,s.value),s=n.next();return a}reduceRight(t,r){return this.recursiveReduce(this.iterator(),t,r)}recursiveReduce(t,r,n){const a=t.next();if(a.done)return n;const s=this.recursiveReduce(t,r,n);return s===void 0?a.value:r(s,a.value)}find(t){const r=this.iterator();let n=r.next();for(;!n.done;){if(t(n.value))return n.value;n=r.next()}}findIndex(t){const r=this.iterator();let n=0,a=r.next();for(;!a.done;){if(t(a.value))return n;a=r.next(),n++}return-1}includes(t){const r=this.iterator();let n=r.next();for(;!n.done;){if(n.value===t)return!0;n=r.next()}return!1}flatMap(t){return new fr(()=>({this:this.startFn()}),r=>{do{if(r.iterator){const s=r.iterator.next();if(s.done)r.iterator=void 0;else return s}const{done:n,value:a}=this.nextFn(r.this);if(!n){const s=t(a);if(is(s))r.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}}while(r.iterator);return Ve})}flat(t){if(t===void 0&&(t=1),t<=0)return this;const r=t>1?this.flat(t-1):this;return new fr(()=>({this:r.startFn()}),n=>{do{if(n.iterator){const o=n.iterator.next();if(o.done)n.iterator=void 0;else return o}const{done:a,value:s}=r.nextFn(n.this);if(!a)if(is(s))n.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}while(n.iterator);return Ve})}head(){const r=this.iterator().next();if(!r.done)return r.value}tail(t=1){return new fr(()=>{const r=this.startFn();for(let n=0;n<t;n++)if(this.nextFn(r).done)return r;return r},this.nextFn)}limit(t){return new fr(()=>({size:0,state:this.startFn()}),r=>(r.size++,r.size>t?Ve:this.nextFn(r.state)))}distinct(t){return new fr(()=>({set:new Set,internalState:this.startFn()}),r=>{let n;do if(n=this.nextFn(r.internalState),!n.done){const a=t?t(n.value):n.value;if(!r.set.has(a))return r.set.add(a),n}while(!n.done);return Ve})}exclude(t,r){const n=new Set;for(const a of t){const s=r?r(a):a;n.add(s)}return this.filter(a=>{const s=r?r(a):a;return!n.has(s)})}};function Dg(e){return typeof e=="string"?e:typeof e>"u"?"undefined":typeof e.toString=="function"?e.toString():Object.prototype.toString.call(e)}i(Dg,"toString");function is(e){return!!e&&typeof e[Symbol.iterator]=="function"}i(is,"isIterable");var Pa=new Xt(()=>{},()=>Ve),Ve=Object.freeze({done:!0,value:void 0});function oe(...e){if(e.length===1){const t=e[0];if(t instanceof Xt)return t;if(is(t))return new Xt(()=>t[Symbol.iterator](),r=>r.next());if(typeof t.length=="number")return new Xt(()=>({index:0}),r=>r.index<t.length?{done:!1,value:t[r.index++]}:Ve)}return e.length>1?new Xt(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){const r=t.iterator.next();if(!r.done)return r;t.iterator=void 0}if(t.array){if(t.arrIndex<t.array.length)return{done:!1,value:t.array[t.arrIndex++]};t.array=void 0,t.arrIndex=0}if(t.collIndex<e.length){const r=e[t.collIndex++];is(r)?t.iterator=r[Symbol.iterator]():r&&typeof r.length=="number"&&(t.array=r)}}while(t.iterator||t.array||t.collIndex<e.length);return Ve}):Pa}i(oe,"stream");var Oa=class extends Xt{static{i(this,"TreeStreamImpl")}constructor(e,t,r){super(()=>({iterators:r?.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),n=>{for(n.pruned&&(n.iterators.pop(),n.pruned=!1);n.iterators.length>0;){const s=n.iterators[n.iterators.length-1].next();if(s.done)n.iterators.pop();else return n.iterators.push(t(s.value)[Symbol.iterator]()),s}return Ve})}iterator(){const e={state:this.startFn(),next:i(()=>this.nextFn(e.state),"next"),prune:i(()=>{e.state.pruned=!0},"prune"),[Symbol.iterator]:()=>e};return e}},ss;(function(e){function t(s){return s.reduce((o,l)=>o+l,0)}i(t,"sum"),e.sum=t;function r(s){return s.reduce((o,l)=>o*l,0)}i(r,"product"),e.product=r;function n(s){return s.reduce((o,l)=>Math.min(o,l))}i(n,"min"),e.min=n;function a(s){return s.reduce((o,l)=>Math.max(o,l))}i(a,"max"),e.max=a})(ss||(ss={}));var nd={};Br(nd,{assignMandatoryProperties:()=>ad,copyAstNode:()=>Do,findRootNode:()=>wa,getContainerOfType:()=>Pn,getDocument:()=>Dt,getReferenceNodes:()=>Oo,hasContainerOfType:()=>Mg,linkContentToContainer:()=>La,streamAllContents:()=>br,streamAst:()=>Mt,streamContents:()=>Cs,streamReferences:()=>Da});function La(e,t={}){for(const[r,n]of Object.entries(e))r.startsWith("$")||(Array.isArray(n)?n.forEach((a,s)=>{Le(a)&&(a.$container=e,a.$containerProperty=r,a.$containerIndex=s,t.deep&&La(a,t))}):Le(n)&&(n.$container=e,n.$containerProperty=r,t.deep&&La(n,t)))}i(La,"linkContentToContainer");function Pn(e,t){let r=e;for(;r;){if(t(r))return r;r=r.$container}}i(Pn,"getContainerOfType");function Mg(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.$container}return!1}i(Mg,"hasContainerOfType");function Dt(e){const r=wa(e).$document;if(!r)throw new Error("AST node has no document.");return r}i(Dt,"getDocument");function wa(e){for(;e.$container;)e=e.$container;return e}i(wa,"findRootNode");function Oo(e){return He(e)?e.ref?[e.ref]:[]:Zt(e)?e.items.map(t=>t.ref):[]}i(Oo,"getReferenceNodes");function Cs(e,t){if(!e)throw new Error("Node must be an AstNode.");const r=t?.range;return new Xt(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),n=>{for(;n.keyIndex<n.keys.length;){const a=n.keys[n.keyIndex];if(!a.startsWith("$")){const s=e[a];if(Le(s)){if(n.keyIndex++,Lo(s,r))return{done:!1,value:s}}else if(Array.isArray(s)){for(;n.arrayIndex<s.length;){const o=n.arrayIndex++,l=s[o];if(Le(l)&&Lo(l,r))return{done:!1,value:l}}n.arrayIndex=0}}n.keyIndex++}return Ve})}i(Cs,"streamContents");function br(e,t){if(!e)throw new Error("Root node must be an AstNode.");return new Oa(e,r=>Cs(r,t))}i(br,"streamAllContents");function Mt(e,t){if(e){if(t?.range&&!Lo(e,t.range))return new Oa(e,()=>[])}else throw new Error("Root node must be an AstNode.");return new Oa(e,r=>Cs(r,t),{includeRoot:!0})}i(Mt,"streamAst");function Lo(e,t){if(!t)return!0;const r=e.$cstNode?.range;return r?bd(r,t):!1}i(Lo,"isAstNodeInRange");function Da(e){return new Xt(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),t=>{for(;t.keyIndex<t.keys.length;){const r=t.keys[t.keyIndex];if(!r.startsWith("$")){const n=e[r];if(He(n)||Zt(n))return t.keyIndex++,{done:!1,value:{reference:n,container:e,property:r}};if(Array.isArray(n)){for(;t.arrayIndex<n.length;){const a=t.arrayIndex++,s=n[a];if(He(s)||Zt(n))return{done:!1,value:{reference:s,container:e,property:r,index:a}}}t.arrayIndex=0}}t.keyIndex++}return Ve})}i(Da,"streamReferences");function ad(e,t){const r=e.getTypeMetaData(t.$type),n=t;for(const a of Object.values(r.properties))a.defaultValue!==void 0&&n[a.name]===void 0&&(n[a.name]=id(a.defaultValue))}i(ad,"assignMandatoryProperties");function id(e){return Array.isArray(e)?[...e.map(id)]:e}i(id,"copyDefaultValue");function Do(e,t,r){const n={$type:e.$type};r&&(r.set(e,n),r.set(n,e));for(const[a,s]of Object.entries(e))if(!a.startsWith("$"))if(Le(s))n[a]=Do(s,t,r);else if(He(s))n[a]=t(n,a,s.$refNode,s.$refText,s);else if(Array.isArray(s)){const o=[];for(const l of s)Le(l)?o.push(Do(l,t,r)):He(l)?o.push(t(n,a,l.$refNode,l.$refText,l)):o.push(l);n[a]=o}else n[a]=s;return La(n,{deep:!0}),n}i(Do,"copyAstNode");var xg={};Br(xg,{AbstractElement:()=>nt,AbstractParserRule:()=>Ki,AbstractRule:()=>Ra,AbstractType:()=>ut,Action:()=>Or,Alternatives:()=>qi,ArrayLiteral:()=>Mo,ArrayType:()=>xo,Assignment:()=>Lr,BooleanLiteral:()=>Fo,CharacterRange:()=>Dr,Condition:()=>Mr,Conjunction:()=>Wi,CrossReference:()=>xr,Disjunction:()=>Vi,EndOfFile:()=>Go,Grammar:()=>hr,GrammarImport:()=>jo,Group:()=>cn,InferredType:()=>Uo,InfixRule:()=>Vt,InfixRuleOperatorList:()=>Hi,InfixRuleOperators:()=>zo,Interface:()=>$a,Keyword:()=>Aa,LangiumGrammarAstReflection:()=>_d,LangiumGrammarTerminals:()=>Dw,NamedArgument:()=>Ea,NegatedToken:()=>un,Negation:()=>Bo,NumberLiteral:()=>Ko,Parameter:()=>_a,ParameterReference:()=>qo,ParserRule:()=>Pt,ReferenceType:()=>Yi,RegexToken:()=>fn,ReturnType:()=>Wo,RuleCall:()=>dn,SimpleType:()=>Ca,StringLiteral:()=>Vo,TerminalAlternatives:()=>pn,TerminalElement:()=>at,TerminalGroup:()=>hn,TerminalRule:()=>mr,TerminalRuleCall:()=>mn,Type:()=>Xi,TypeAttribute:()=>gn,TypeDefinition:()=>yn,UnionType:()=>Ho,UnorderedGroup:()=>Ji,UntilToken:()=>vn,ValueLiteral:()=>Tn,Wildcard:()=>Sa,isAbstractElement:()=>_l,isAbstractParserRule:()=>On,isAbstractRule:()=>Fg,isAbstractType:()=>Gg,isAction:()=>Fr,isAlternatives:()=>Cl,isArrayLiteral:()=>jg,isArrayType:()=>sd,isAssignment:()=>vr,isBooleanLiteral:()=>od,isCharacterRange:()=>ld,isCondition:()=>Ug,isConjunction:()=>cd,isCrossReference:()=>Ln,isDisjunction:()=>ud,isEndOfFile:()=>fd,isGrammar:()=>zg,isGrammarImport:()=>Bg,isGroup:()=>Dn,isInferredType:()=>Ss,isInfixRule:()=>Ma,isInfixRuleOperatorList:()=>Kg,isInfixRuleOperators:()=>qg,isInterface:()=>dd,isKeyword:()=>Tr,isNamedArgument:()=>Wg,isNegatedToken:()=>pd,isNegation:()=>hd,isNumberLiteral:()=>Vg,isParameter:()=>Hg,isParameterReference:()=>md,isParserRule:()=>Je,isReferenceType:()=>gd,isRegexToken:()=>yd,isReturnType:()=>vd,isRuleCall:()=>Rr,isSimpleType:()=>Sl,isStringLiteral:()=>Yg,isTerminalAlternatives:()=>Td,isTerminalElement:()=>Xg,isTerminalGroup:()=>Rd,isTerminalRule:()=>bt,isTerminalRuleCall:()=>bl,isType:()=>wl,isTypeAttribute:()=>Jg,isTypeDefinition:()=>Zg,isUnionType:()=>$d,isUnorderedGroup:()=>Il,isUntilToken:()=>Ad,isValueLiteral:()=>Qg,isWildcard:()=>Ed,reflection:()=>j});var Dw={ID:/\^?[_a-zA-Z][\w_]*/,STRING:/"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/,NUMBER:/NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity)/,RegexLiteral:/\/(?![*+?])(?:[^\r\n\[/\\]|\\.|\[(?:[^\r\n\]\\]|\\.)*\])+\/[a-z]*/,WS:/\s+/,ML_COMMENT:/\/\*[\s\S]*?\*\//,SL_COMMENT:/\/\/[^\n\r]*/},nt={$type:"AbstractElement",cardinality:"cardinality"};function _l(e){return j.isInstance(e,nt.$type)}i(_l,"isAbstractElement");var Ki={$type:"AbstractParserRule"};function On(e){return j.isInstance(e,Ki.$type)}i(On,"isAbstractParserRule");var Ra={$type:"AbstractRule"};function Fg(e){return j.isInstance(e,Ra.$type)}i(Fg,"isAbstractRule");var ut={$type:"AbstractType"};function Gg(e){return j.isInstance(e,ut.$type)}i(Gg,"isAbstractType");var Or={$type:"Action",cardinality:"cardinality",feature:"feature",inferredType:"inferredType",operator:"operator",type:"type"};function Fr(e){return j.isInstance(e,Or.$type)}i(Fr,"isAction");var qi={$type:"Alternatives",cardinality:"cardinality",elements:"elements"};function Cl(e){return j.isInstance(e,qi.$type)}i(Cl,"isAlternatives");var Mo={$type:"ArrayLiteral",elements:"elements"};function jg(e){return j.isInstance(e,Mo.$type)}i(jg,"isArrayLiteral");var xo={$type:"ArrayType",elementType:"elementType"};function sd(e){return j.isInstance(e,xo.$type)}i(sd,"isArrayType");var Lr={$type:"Assignment",cardinality:"cardinality",feature:"feature",operator:"operator",predicate:"predicate",terminal:"terminal"};function vr(e){return j.isInstance(e,Lr.$type)}i(vr,"isAssignment");var Fo={$type:"BooleanLiteral",true:"true"};function od(e){return j.isInstance(e,Fo.$type)}i(od,"isBooleanLiteral");var Dr={$type:"CharacterRange",cardinality:"cardinality",left:"left",lookahead:"lookahead",parenthesized:"parenthesized",right:"right"};function ld(e){return j.isInstance(e,Dr.$type)}i(ld,"isCharacterRange");var Mr={$type:"Condition"};function Ug(e){return j.isInstance(e,Mr.$type)}i(Ug,"isCondition");var Wi={$type:"Conjunction",left:"left",right:"right"};function cd(e){return j.isInstance(e,Wi.$type)}i(cd,"isConjunction");var xr={$type:"CrossReference",cardinality:"cardinality",deprecatedSyntax:"deprecatedSyntax",isMulti:"isMulti",terminal:"terminal",type:"type"};function Ln(e){return j.isInstance(e,xr.$type)}i(Ln,"isCrossReference");var Vi={$type:"Disjunction",left:"left",right:"right"};function ud(e){return j.isInstance(e,Vi.$type)}i(ud,"isDisjunction");var Go={$type:"EndOfFile",cardinality:"cardinality"};function fd(e){return j.isInstance(e,Go.$type)}i(fd,"isEndOfFile");var hr={$type:"Grammar",imports:"imports",interfaces:"interfaces",isDeclared:"isDeclared",name:"name",rules:"rules",types:"types"};function zg(e){return j.isInstance(e,hr.$type)}i(zg,"isGrammar");var jo={$type:"GrammarImport",path:"path"};function Bg(e){return j.isInstance(e,jo.$type)}i(Bg,"isGrammarImport");var cn={$type:"Group",cardinality:"cardinality",elements:"elements",guardCondition:"guardCondition",predicate:"predicate"};function Dn(e){return j.isInstance(e,cn.$type)}i(Dn,"isGroup");var Uo={$type:"InferredType",name:"name"};function Ss(e){return j.isInstance(e,Uo.$type)}i(Ss,"isInferredType");var Vt={$type:"InfixRule",call:"call",dataType:"dataType",inferredType:"inferredType",name:"name",operators:"operators",parameters:"parameters",returnType:"returnType"};function Ma(e){return j.isInstance(e,Vt.$type)}i(Ma,"isInfixRule");var Hi={$type:"InfixRuleOperatorList",associativity:"associativity",operators:"operators"};function Kg(e){return j.isInstance(e,Hi.$type)}i(Kg,"isInfixRuleOperatorList");var zo={$type:"InfixRuleOperators",precedences:"precedences"};function qg(e){return j.isInstance(e,zo.$type)}i(qg,"isInfixRuleOperators");var $a={$type:"Interface",attributes:"attributes",name:"name",superTypes:"superTypes"};function dd(e){return j.isInstance(e,$a.$type)}i(dd,"isInterface");var Aa={$type:"Keyword",cardinality:"cardinality",predicate:"predicate",value:"value"};function Tr(e){return j.isInstance(e,Aa.$type)}i(Tr,"isKeyword");var Ea={$type:"NamedArgument",calledByName:"calledByName",parameter:"parameter",value:"value"};function Wg(e){return j.isInstance(e,Ea.$type)}i(Wg,"isNamedArgument");var un={$type:"NegatedToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function pd(e){return j.isInstance(e,un.$type)}i(pd,"isNegatedToken");var Bo={$type:"Negation",value:"value"};function hd(e){return j.isInstance(e,Bo.$type)}i(hd,"isNegation");var Ko={$type:"NumberLiteral",value:"value"};function Vg(e){return j.isInstance(e,Ko.$type)}i(Vg,"isNumberLiteral");var _a={$type:"Parameter",name:"name"};function Hg(e){return j.isInstance(e,_a.$type)}i(Hg,"isParameter");var qo={$type:"ParameterReference",parameter:"parameter"};function md(e){return j.isInstance(e,qo.$type)}i(md,"isParameterReference");var Pt={$type:"ParserRule",dataType:"dataType",definition:"definition",entry:"entry",fragment:"fragment",inferredType:"inferredType",name:"name",parameters:"parameters",returnType:"returnType"};function Je(e){return j.isInstance(e,Pt.$type)}i(Je,"isParserRule");var Yi={$type:"ReferenceType",isMulti:"isMulti",referenceType:"referenceType"};function gd(e){return j.isInstance(e,Yi.$type)}i(gd,"isReferenceType");var fn={$type:"RegexToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",regex:"regex"};function yd(e){return j.isInstance(e,fn.$type)}i(yd,"isRegexToken");var Wo={$type:"ReturnType",name:"name"};function vd(e){return j.isInstance(e,Wo.$type)}i(vd,"isReturnType");var dn={$type:"RuleCall",arguments:"arguments",cardinality:"cardinality",predicate:"predicate",rule:"rule"};function Rr(e){return j.isInstance(e,dn.$type)}i(Rr,"isRuleCall");var Ca={$type:"SimpleType",primitiveType:"primitiveType",stringType:"stringType",typeRef:"typeRef"};function Sl(e){return j.isInstance(e,Ca.$type)}i(Sl,"isSimpleType");var Vo={$type:"StringLiteral",value:"value"};function Yg(e){return j.isInstance(e,Vo.$type)}i(Yg,"isStringLiteral");var pn={$type:"TerminalAlternatives",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function Td(e){return j.isInstance(e,pn.$type)}i(Td,"isTerminalAlternatives");var at={$type:"TerminalElement",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function Xg(e){return j.isInstance(e,at.$type)}i(Xg,"isTerminalElement");var hn={$type:"TerminalGroup",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};function Rd(e){return j.isInstance(e,hn.$type)}i(Rd,"isTerminalGroup");var mr={$type:"TerminalRule",definition:"definition",fragment:"fragment",hidden:"hidden",name:"name",type:"type"};function bt(e){return j.isInstance(e,mr.$type)}i(bt,"isTerminalRule");var mn={$type:"TerminalRuleCall",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",rule:"rule"};function bl(e){return j.isInstance(e,mn.$type)}i(bl,"isTerminalRuleCall");var Xi={$type:"Type",name:"name",type:"type"};function wl(e){return j.isInstance(e,Xi.$type)}i(wl,"isType");var gn={$type:"TypeAttribute",defaultValue:"defaultValue",isOptional:"isOptional",name:"name",type:"type"};function Jg(e){return j.isInstance(e,gn.$type)}i(Jg,"isTypeAttribute");var yn={$type:"TypeDefinition"};function Zg(e){return j.isInstance(e,yn.$type)}i(Zg,"isTypeDefinition");var Ho={$type:"UnionType",types:"types"};function $d(e){return j.isInstance(e,Ho.$type)}i($d,"isUnionType");var Ji={$type:"UnorderedGroup",cardinality:"cardinality",elements:"elements"};function Il(e){return j.isInstance(e,Ji.$type)}i(Il,"isUnorderedGroup");var vn={$type:"UntilToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};function Ad(e){return j.isInstance(e,vn.$type)}i(Ad,"isUntilToken");var Tn={$type:"ValueLiteral"};function Qg(e){return j.isInstance(e,Tn.$type)}i(Qg,"isValueLiteral");var Sa={$type:"Wildcard",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};function Ed(e){return j.isInstance(e,Sa.$type)}i(Ed,"isWildcard");var _d=class extends rd{static{i(this,"LangiumGrammarAstReflection")}constructor(){super(...arguments),this.types={AbstractElement:{name:nt.$type,properties:{cardinality:{name:nt.cardinality}},superTypes:[]},AbstractParserRule:{name:Ki.$type,properties:{},superTypes:[Ra.$type,ut.$type]},AbstractRule:{name:Ra.$type,properties:{},superTypes:[]},AbstractType:{name:ut.$type,properties:{},superTypes:[]},Action:{name:Or.$type,properties:{cardinality:{name:Or.cardinality},feature:{name:Or.feature},inferredType:{name:Or.inferredType},operator:{name:Or.operator},type:{name:Or.type,referenceType:ut.$type}},superTypes:[nt.$type]},Alternatives:{name:qi.$type,properties:{cardinality:{name:qi.cardinality},elements:{name:qi.elements,defaultValue:[]}},superTypes:[nt.$type]},ArrayLiteral:{name:Mo.$type,properties:{elements:{name:Mo.elements,defaultValue:[]}},superTypes:[Tn.$type]},ArrayType:{name:xo.$type,properties:{elementType:{name:xo.elementType}},superTypes:[yn.$type]},Assignment:{name:Lr.$type,properties:{cardinality:{name:Lr.cardinality},feature:{name:Lr.feature},operator:{name:Lr.operator},predicate:{name:Lr.predicate},terminal:{name:Lr.terminal}},superTypes:[nt.$type]},BooleanLiteral:{name:Fo.$type,properties:{true:{name:Fo.true,defaultValue:!1}},superTypes:[Mr.$type,Tn.$type]},CharacterRange:{name:Dr.$type,properties:{cardinality:{name:Dr.cardinality},left:{name:Dr.left},lookahead:{name:Dr.lookahead},parenthesized:{name:Dr.parenthesized,defaultValue:!1},right:{name:Dr.right}},superTypes:[at.$type]},Condition:{name:Mr.$type,properties:{},superTypes:[]},Conjunction:{name:Wi.$type,properties:{left:{name:Wi.left},right:{name:Wi.right}},superTypes:[Mr.$type]},CrossReference:{name:xr.$type,properties:{cardinality:{name:xr.cardinality},deprecatedSyntax:{name:xr.deprecatedSyntax,defaultValue:!1},isMulti:{name:xr.isMulti,defaultValue:!1},terminal:{name:xr.terminal},type:{name:xr.type,referenceType:ut.$type}},superTypes:[nt.$type]},Disjunction:{name:Vi.$type,properties:{left:{name:Vi.left},right:{name:Vi.right}},superTypes:[Mr.$type]},EndOfFile:{name:Go.$type,properties:{cardinality:{name:Go.cardinality}},superTypes:[nt.$type]},Grammar:{name:hr.$type,properties:{imports:{name:hr.imports,defaultValue:[]},interfaces:{name:hr.interfaces,defaultValue:[]},isDeclared:{name:hr.isDeclared,defaultValue:!1},name:{name:hr.name},rules:{name:hr.rules,defaultValue:[]},types:{name:hr.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:jo.$type,properties:{path:{name:jo.path}},superTypes:[]},Group:{name:cn.$type,properties:{cardinality:{name:cn.cardinality},elements:{name:cn.elements,defaultValue:[]},guardCondition:{name:cn.guardCondition},predicate:{name:cn.predicate}},superTypes:[nt.$type]},InferredType:{name:Uo.$type,properties:{name:{name:Uo.name}},superTypes:[ut.$type]},InfixRule:{name:Vt.$type,properties:{call:{name:Vt.call},dataType:{name:Vt.dataType},inferredType:{name:Vt.inferredType},name:{name:Vt.name},operators:{name:Vt.operators},parameters:{name:Vt.parameters,defaultValue:[]},returnType:{name:Vt.returnType,referenceType:ut.$type}},superTypes:[Ki.$type]},InfixRuleOperatorList:{name:Hi.$type,properties:{associativity:{name:Hi.associativity},operators:{name:Hi.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:zo.$type,properties:{precedences:{name:zo.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:$a.$type,properties:{attributes:{name:$a.attributes,defaultValue:[]},name:{name:$a.name},superTypes:{name:$a.superTypes,defaultValue:[],referenceType:ut.$type}},superTypes:[ut.$type]},Keyword:{name:Aa.$type,properties:{cardinality:{name:Aa.cardinality},predicate:{name:Aa.predicate},value:{name:Aa.value}},superTypes:[nt.$type]},NamedArgument:{name:Ea.$type,properties:{calledByName:{name:Ea.calledByName,defaultValue:!1},parameter:{name:Ea.parameter,referenceType:_a.$type},value:{name:Ea.value}},superTypes:[]},NegatedToken:{name:un.$type,properties:{cardinality:{name:un.cardinality},lookahead:{name:un.lookahead},parenthesized:{name:un.parenthesized,defaultValue:!1},terminal:{name:un.terminal}},superTypes:[at.$type]},Negation:{name:Bo.$type,properties:{value:{name:Bo.value}},superTypes:[Mr.$type]},NumberLiteral:{name:Ko.$type,properties:{value:{name:Ko.value}},superTypes:[Tn.$type]},Parameter:{name:_a.$type,properties:{name:{name:_a.name}},superTypes:[]},ParameterReference:{name:qo.$type,properties:{parameter:{name:qo.parameter,referenceType:_a.$type}},superTypes:[Mr.$type]},ParserRule:{name:Pt.$type,properties:{dataType:{name:Pt.dataType},definition:{name:Pt.definition},entry:{name:Pt.entry,defaultValue:!1},fragment:{name:Pt.fragment,defaultValue:!1},inferredType:{name:Pt.inferredType},name:{name:Pt.name},parameters:{name:Pt.parameters,defaultValue:[]},returnType:{name:Pt.returnType,referenceType:ut.$type}},superTypes:[Ki.$type]},ReferenceType:{name:Yi.$type,properties:{isMulti:{name:Yi.isMulti,defaultValue:!1},referenceType:{name:Yi.referenceType}},superTypes:[yn.$type]},RegexToken:{name:fn.$type,properties:{cardinality:{name:fn.cardinality},lookahead:{name:fn.lookahead},parenthesized:{name:fn.parenthesized,defaultValue:!1},regex:{name:fn.regex}},superTypes:[at.$type]},ReturnType:{name:Wo.$type,properties:{name:{name:Wo.name}},superTypes:[]},RuleCall:{name:dn.$type,properties:{arguments:{name:dn.arguments,defaultValue:[]},cardinality:{name:dn.cardinality},predicate:{name:dn.predicate},rule:{name:dn.rule,referenceType:Ra.$type}},superTypes:[nt.$type]},SimpleType:{name:Ca.$type,properties:{primitiveType:{name:Ca.primitiveType},stringType:{name:Ca.stringType},typeRef:{name:Ca.typeRef,referenceType:ut.$type}},superTypes:[yn.$type]},StringLiteral:{name:Vo.$type,properties:{value:{name:Vo.value}},superTypes:[Tn.$type]},TerminalAlternatives:{name:pn.$type,properties:{cardinality:{name:pn.cardinality},elements:{name:pn.elements,defaultValue:[]},lookahead:{name:pn.lookahead},parenthesized:{name:pn.parenthesized,defaultValue:!1}},superTypes:[at.$type]},TerminalElement:{name:at.$type,properties:{cardinality:{name:at.cardinality},lookahead:{name:at.lookahead},parenthesized:{name:at.parenthesized,defaultValue:!1}},superTypes:[nt.$type]},TerminalGroup:{name:hn.$type,properties:{cardinality:{name:hn.cardinality},elements:{name:hn.elements,defaultValue:[]},lookahead:{name:hn.lookahead},parenthesized:{name:hn.parenthesized,defaultValue:!1}},superTypes:[at.$type]},TerminalRule:{name:mr.$type,properties:{definition:{name:mr.definition},fragment:{name:mr.fragment,defaultValue:!1},hidden:{name:mr.hidden,defaultValue:!1},name:{name:mr.name},type:{name:mr.type}},superTypes:[Ra.$type]},TerminalRuleCall:{name:mn.$type,properties:{cardinality:{name:mn.cardinality},lookahead:{name:mn.lookahead},parenthesized:{name:mn.parenthesized,defaultValue:!1},rule:{name:mn.rule,referenceType:mr.$type}},superTypes:[at.$type]},Type:{name:Xi.$type,properties:{name:{name:Xi.name},type:{name:Xi.type}},superTypes:[ut.$type]},TypeAttribute:{name:gn.$type,properties:{defaultValue:{name:gn.defaultValue},isOptional:{name:gn.isOptional,defaultValue:!1},name:{name:gn.name},type:{name:gn.type}},superTypes:[]},TypeDefinition:{name:yn.$type,properties:{},superTypes:[]},UnionType:{name:Ho.$type,properties:{types:{name:Ho.types,defaultValue:[]}},superTypes:[yn.$type]},UnorderedGroup:{name:Ji.$type,properties:{cardinality:{name:Ji.cardinality},elements:{name:Ji.elements,defaultValue:[]}},superTypes:[nt.$type]},UntilToken:{name:vn.$type,properties:{cardinality:{name:vn.cardinality},lookahead:{name:vn.lookahead},parenthesized:{name:vn.parenthesized,defaultValue:!1},terminal:{name:vn.terminal}},superTypes:[at.$type]},ValueLiteral:{name:Tn.$type,properties:{},superTypes:[]},Wildcard:{name:Sa.$type,properties:{cardinality:{name:Sa.cardinality},lookahead:{name:Sa.lookahead},parenthesized:{name:Sa.parenthesized,defaultValue:!1}},superTypes:[at.$type]}}}},j=new _d;function ey(e){let t=e,r=!1;for(;t;){const n=Pn(t.grammarSource,Je);if(n&&n.dataType)t=t.container,r=!0;else return r?t:void 0}}i(ey,"getDatatypeNode");function xa(e){return new Oa(e,t=>yr(t)?t.content:[],{includeRoot:!0})}i(xa,"streamCst");function ty(e){return xa(e).filter(kn)}i(ty,"flattenCst");function Cd(e,t){for(;e.container;)if(e=e.container,e===t)return!0;return!1}i(Cd,"isChildNode");function os(e){return{start:{character:e.startColumn-1,line:e.startLine-1},end:{character:e.endColumn,line:e.endLine-1}}}i(os,"tokenToRange");function Fa(e){if(!e)return;const{offset:t,end:r,range:n}=e;return{range:n,offset:t,end:r,length:r-t}}i(Fa,"toDocumentSegment");var Yt;(function(e){e[e.Before=0]="Before",e[e.After=1]="After",e[e.OverlapFront=2]="OverlapFront",e[e.OverlapBack=3]="OverlapBack",e[e.Inside=4]="Inside",e[e.Outside=5]="Outside"})(Yt||(Yt={}));function Sd(e,t){if(e.end.line<t.start.line||e.end.line===t.start.line&&e.end.character<=t.start.character)return Yt.Before;if(e.start.line>t.end.line||e.start.line===t.end.line&&e.start.character>=t.end.character)return Yt.After;const r=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character,n=e.end.line<t.end.line||e.end.line===t.end.line&&e.end.character<=t.end.character;return r&&n?Yt.Inside:r?Yt.OverlapBack:n?Yt.OverlapFront:Yt.Outside}i(Sd,"compareRange");function bd(e,t){return Sd(e,t)>Yt.After}i(bd,"inRange");var wd=/^[\w\p{L}]$/u;function ry(e,t,r=wd){if(e){if(t>0){const n=t-e.offset,a=e.text.charAt(n);r.test(a)||t--}return Nl(e,t)}}i(ry,"findDeclarationNodeAtOffset");function Id(e,t){if(e){const r=Pd(e,!0);if(r&&Yo(r,t))return r;if(El(e)){const n=e.content.findIndex(a=>!a.hidden);for(let a=n-1;a>=0;a--){const s=e.content[a];if(Yo(s,t))return s}}}}i(Id,"findCommentNode");function Yo(e,t){return kn(e)&&t.includes(e.tokenType.name)}i(Yo,"isCommentNode");function Nl(e,t){if(kn(e))return e;if(yr(e)){const r=kd(e,t,!1);if(r)return Nl(r,t)}}i(Nl,"findLeafNodeAtOffset");function Nd(e,t){if(kn(e))return e;if(yr(e)){const r=kd(e,t,!0);if(r)return Nd(r,t)}}i(Nd,"findLeafNodeBeforeOffset");function kd(e,t,r){let n=0,a=e.content.length-1,s;for(;n<=a;){const o=Math.floor((n+a)/2),l=e.content[o];if(l.offset<=t&&l.end>t)return l;l.end<=t?(s=r?l:void 0,n=o+1):a=o-1}return s}i(kd,"binarySearch");function Pd(e,t=!0){for(;e.container;){const r=e.container;let n=r.content.indexOf(e);for(;n>0;){n--;const a=r.content[n];if(t||!a.hidden)return a}e=r}}i(Pd,"getPreviousNode");function ny(e,t=!0){for(;e.container;){const r=e.container;let n=r.content.indexOf(e);const a=r.content.length-1;for(;n<a;){n++;const s=r.content[n];if(t||!s.hidden)return s}e=r}}i(ny,"getNextNode");function ay(e){if(e.range.start.character===0)return e;const t=e.range.start.line;let r=e,n;for(;e.container;){const a=e.container,s=n??a.content.indexOf(e);if(s===0?(e=a,n=void 0):(n=s-1,e=a.content[n]),e.range.start.line!==t)break;r=e}return r}i(ay,"getStartlineNode");function iy(e,t){const r=sy(e,t);return r?r.parent.content.slice(r.a+1,r.b):[]}i(iy,"getInteriorNodes");function sy(e,t){const r=ef(e),n=ef(t);let a;for(let s=0;s<r.length&&s<n.length;s++){const o=r[s],l=n[s];if(o.parent===l.parent)a={parent:o.parent,a:o.index,b:l.index};else break}return a}i(sy,"getCommonParent");function ef(e){const t=[];for(;e.container;){const r=e.container,n=r.content.indexOf(e);t.push({parent:r,index:n}),e=r}return t.reverse()}i(ef,"getParentChain");var Od={};Br(Od,{findAssignment:()=>Wd,findNameAssignment:()=>Fl,findNodeForKeyword:()=>qd,findNodeForProperty:()=>Dl,findNodesForKeyword:()=>hy,findNodesForKeywordInternal:()=>xl,findNodesForProperty:()=>Kd,getActionAtElement:()=>Hd,getActionType:()=>Xd,getAllReachableRules:()=>Ll,getAllRulesUsedForCrossReferences:()=>py,getCrossReferenceTerminal:()=>zd,getEntryRule:()=>Gd,getExplicitRuleType:()=>ws,getHiddenRules:()=>jd,getRuleType:()=>Jd,getRuleTypeName:()=>Ty,getTypeName:()=>Sn,isArrayCardinality:()=>gy,isArrayOperator:()=>yy,isCommentTerminal:()=>Bd,isDataType:()=>vy,isDataTypeRule:()=>bs,isOptionalCardinality:()=>my,terminalRegex:()=>Is});var kl=class extends Error{static{i(this,"ErrorWithLocation")}constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}};function Kr(e,t="Error: Got unexpected value."){throw new Error(t)}i(Kr,"assertUnreachable");function Ld(e,t="Error: Condition is violated."){if(!e)throw new Error(t)}i(Ld,"assertCondition");var Dd={};Br(Dd,{NEWLINE_REGEXP:()=>cy,escapeRegExp:()=>Wa,getTerminalParts:()=>fy,isMultilineComment:()=>Md,isWhitespace:()=>Ol,partialMatches:()=>xd,partialRegExp:()=>Fd,whitespaceCharacters:()=>dy});function K(e){return e.charCodeAt(0)}i(K,"cc");function vo(e,t){Array.isArray(e)?e.forEach(function(r){t.push(r)}):t.push(e)}i(vo,"insertToSet");function pa(e,t){if(e[t]===!0)throw"duplicate flag "+t;e[t],e[t]=!0}i(pa,"addFlag");function tn(e){if(e===void 0)throw Error("Internal Error - Should never get here!");return!0}i(tn,"ASSERT_EXISTS");function oy(){throw Error("Internal Error - Should never get here!")}i(oy,"ASSERT_NEVER_REACH_HERE");function tf(e){return e.type==="Character"}i(tf,"isCharacter");var Xo=[];for(let e=K("0");e<=K("9");e++)Xo.push(e);var Jo=[K("_")].concat(Xo);for(let e=K("a");e<=K("z");e++)Jo.push(e);for(let e=K("A");e<=K("Z");e++)Jo.push(e);var xh=[K(" "),K("\f"),K(`
36
+ `),K("\r"),K(" "),K("\v"),K(" "),K(" "),K(" "),K(" "),K(" "),K(" "),K(" "),K(" "),K(" "),K(" "),K(" "),K(" "),K(" "),K(" "),K("\u2028"),K("\u2029"),K(" "),K(" "),K(" "),K("\uFEFF")],Mw=/[0-9a-fA-F]/,qs=/[0-9]/,xw=/[1-9]/,ly=class{static{i(this,"RegExpParser")}constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");const t=this.disjunction();this.consumeChar("/");const r={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":pa(r,"global");break;case"i":pa(r,"ignoreCase");break;case"m":pa(r,"multiLine");break;case"u":pa(r,"unicode");break;case"y":pa(r,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:r,value:t,loc:this.loc(0)}}disjunction(){const e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){const e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let t;switch(this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":t="Lookbehind";break;case"!":t="NegativeLookbehind"}break}}tn(t);const r=this.disjunction();return this.consumeChar(")"),{type:t,value:r,loc:this.loc(e)}}return oy()}quantifier(e=!1){let t;const r=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":const n=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:n,atMost:n};break;case",":let a;this.isDigit()?(a=this.integerIncludingZero(),t={atLeast:n,atMost:a}):t={atLeast:n,atMost:1/0},this.consumeChar("}");break}if(e===!0&&t===void 0)return;tn(t);break}if(!(e===!0&&t===void 0)&&tn(t))return this.peekChar(0)==="?"?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(r),t}atom(){let e;const t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}if(e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),tn(e))return e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[K(`
37
+ `),K("\r"),K("\u2028"),K("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=Xo;break;case"D":e=Xo,t=!0;break;case"s":e=xh;break;case"S":e=xh,t=!0;break;case"w":e=Jo;break;case"W":e=Jo,t=!0;break}if(tn(e))return{type:"Set",value:e,complement:t}}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=K("\f");break;case"n":e=K(`
38
+ `);break;case"r":e=K("\r");break;case"t":e=K(" ");break;case"v":e=K("\v");break}if(tn(e))return{type:"Character",value:e}}controlLetterEscapeAtom(){this.consumeChar("c");const e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:K("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){const e=this.popChar();return{type:"Character",value:K(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
39
+ `:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:const e=this.popChar();return{type:"Character",value:K(e)}}}characterClass(){const e=[];let t=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),t=!0);this.isClassAtom();){const r=this.classAtom();if(r.type,tf(r)&&this.isRangeDash()){this.consumeChar("-");const n=this.classAtom();if(n.type,tf(n)){if(n.value<r.value)throw Error("Range out of order in character class");e.push({from:r.value,to:n.value})}else vo(r.value,e),e.push(K("-")),vo(n.value,e)}else vo(r.value,e)}return this.consumeChar("]"),{type:"Set",complement:t,value:e}}classAtom(){switch(this.peekChar()){case"]":case`
40
+ `:case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}}classEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:K("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}group(){let e=!0;switch(this.consumeChar("("),this.peekChar(0)){case"?":this.consumeChar("?"),this.consumeChar(":"),e=!1;break;default:this.groupIdx++;break}const t=this.disjunction();this.consumeChar(")");const r={type:"Group",capturing:e,value:t};return e&&(r.idx=this.groupIdx),r}positiveInteger(){let e=this.popChar();if(xw.test(e)===!1)throw Error("Expecting a positive integer");for(;qs.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}integerIncludingZero(){let e=this.popChar();if(qs.test(e)===!1)throw Error("Expecting an integer");for(;qs.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}patternCharacter(){const e=this.popChar();switch(e){case`
41
+ `:case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:K(e)}}}isRegExpFlag(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}}isRangeDash(){return this.peekChar()==="-"&&this.isClassAtom(1)}isDigit(){return qs.test(this.peekChar(0))}isClassAtom(e=0){switch(this.peekChar(e)){case"]":case`
42
+ `:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}isTerm(){return this.isAtom()||this.isAssertion()}isAtom(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}}isAssertion(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return this.peekChar(1)==="?"&&(this.peekChar(2)==="="||this.peekChar(2)==="!"||this.peekChar(2)==="<"&&(this.peekChar(3)==="="||this.peekChar(3)==="!"));default:return!1}}isQuantifier(){const e=this.saveState();try{return this.quantifier(!0)!==void 0}catch{return!1}finally{this.restoreState(e)}}isPatternCharacter(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case`
43
+ `:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(e){let t="";for(let n=0;n<e;n++){const a=this.popChar();if(Mw.test(a)===!1)throw Error("Expecting a HexDecimal digits");t+=a}return{type:"Character",value:parseInt(t,16)}}peekChar(e=0){return this.input[this.idx+e]}popChar(){const e=this.peekChar(0);return this.consumeChar(void 0),e}consumeChar(e){if(e!==void 0&&this.input[this.idx]!==e)throw Error("Expected: '"+e+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}},Pl=class{static{i(this,"BaseRegExpVisitor")}visitChildren(e){for(const t in e){const r=e[t];e.hasOwnProperty(t)&&(r.type!==void 0?this.visit(r):Array.isArray(r)&&r.forEach(n=>{this.visit(n)},this))}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Lookbehind":this.visitLookbehind(e);break;case"NegativeLookbehind":this.visitNegativeLookbehind(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e);break}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitLookbehind(e){}visitNegativeLookbehind(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}},cy=/\r?\n/gm,uy=new ly,Fw=class extends Pl{static{i(this,"TerminalRegExpVisitor")}constructor(){super(...arguments),this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join("")}reset(e){this.multiline=!1,this.regex=e,this.startRegexp="",this.isStarting=!0,this.endRegexpStack=[]}visitGroup(e){e.quantifier&&(this.isStarting=!1,this.endRegexpStack=[])}visitCharacter(e){const t=String.fromCharCode(e.value);if(!this.multiline&&t===`
44
+ `&&(this.multiline=!0),e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{const r=Wa(t);this.endRegexpStack.push(r),this.isStarting&&(this.startRegexp+=r)}}visitSet(e){if(!this.multiline){const t=this.regex.substring(e.loc.begin,e.loc.end),r=new RegExp(t);this.multiline=!!`
45
+ `.match(r)}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{const t=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(t),this.isStarting&&(this.startRegexp+=t)}}visitChildren(e){e.type==="Group"&&e.quantifier||super.visitChildren(e)}},Rn=new Fw;function fy(e){try{typeof e!="string"&&(e=e.source),e=`/${e}/`;const t=uy.pattern(e),r=[];for(const n of t.value.value)Rn.reset(e),Rn.visit(n),r.push({start:Rn.startRegexp,end:Rn.endRegex});return r}catch{return[]}}i(fy,"getTerminalParts");function Md(e){try{return typeof e=="string"&&(e=new RegExp(e)),e=e.toString(),Rn.reset(e),Rn.visit(uy.pattern(e)),Rn.multiline}catch{return!1}}i(Md,"isMultilineComment");var dy=`\f
46
+ \r \v              \u2028\u2029   \uFEFF`.split("");function Ol(e){const t=typeof e=="string"?new RegExp(e):e;return dy.some(r=>t.test(r))}i(Ol,"isWhitespace");function Wa(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}i(Wa,"escapeRegExp");function xd(e,t){const r=Fd(e),n=t.match(r);return!!n&&n[0].length>0}i(xd,"partialMatches");function Fd(e){typeof e=="string"&&(e=new RegExp(e));const t=e,r=e.source;let n=0;function a(){let s="",o;function l(u){s+=r.substr(n,u),n+=u}i(l,"appendRaw");function c(u){s+="(?:"+r.substr(n,u)+"|$)",n+=u}for(i(c,"appendOptional");n<r.length;)switch(r[n]){case"\\":switch(r[n+1]){case"c":c(3);break;case"x":c(4);break;case"u":t.unicode?r[n+2]==="{"?c(r.indexOf("}",n)-n+1):c(6):c(2);break;case"p":case"P":t.unicode?c(r.indexOf("}",n)-n+1):c(2);break;case"k":c(r.indexOf(">",n)-n+1);break;default:c(2);break}break;case"[":o=/\[(?:\\.|.)*?\]/g,o.lastIndex=n,o=o.exec(r)||[],c(o[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":l(1);break;case"{":o=/\{\d+,?\d*\}/g,o.lastIndex=n,o=o.exec(r),o?l(o[0].length):c(1);break;case"(":if(r[n+1]==="?")switch(r[n+2]){case":":s+="(?:",n+=3,s+=a()+"|$)";break;case"=":s+="(?=",n+=3,s+=a()+")";break;case"!":o=n,n+=3,a(),s+=r.substr(o,n-o);break;case"<":switch(r[n+3]){case"=":case"!":o=n,n+=4,a(),s+=r.substr(o,n-o);break;default:l(r.indexOf(">",n)-n+1),s+=a()+"|$)";break}break}else l(1),s+=a()+"|$)";break;case")":return++n,s;default:c(1);break}return s}return i(a,"process"),new RegExp(a(),e.flags)}i(Fd,"partialRegExp");function Gd(e){return e.rules.find(t=>Je(t)&&t.entry)}i(Gd,"getEntryRule");function jd(e){return e.rules.filter(t=>bt(t)&&t.hidden)}i(jd,"getHiddenRules");function Ll(e,t){const r=new Set,n=Gd(e);if(!n)return new Set(e.rules);const a=[n].concat(jd(e));for(const o of a)Ud(o,r,t);const s=new Set;for(const o of e.rules)(r.has(o.name)||bt(o)&&o.hidden)&&s.add(o);return s}i(Ll,"getAllReachableRules");function Ud(e,t,r){t.add(e.name),br(e).forEach(n=>{if(Rr(n)||r&&bl(n)){const a=n.rule.ref;a&&!t.has(a.name)&&Ud(a,t,r)}})}i(Ud,"ruleDfs");function py(e){const t=new Set;return br(e).forEach(r=>{Ln(r)&&(Je(r.type.ref)&&t.add(r.type.ref),Ss(r.type.ref)&&Je(r.type.ref.$container)&&t.add(r.type.ref.$container))}),t}i(py,"getAllRulesUsedForCrossReferences");function zd(e){if(e.terminal)return e.terminal;if(e.type.ref)return Fl(e.type.ref)?.terminal}i(zd,"getCrossReferenceTerminal");function Bd(e){return e.hidden&&!Ol(Is(e))}i(Bd,"isCommentTerminal");function Kd(e,t){return!e||!t?[]:Ml(e,t,e.astNode,!0)}i(Kd,"findNodesForProperty");function Dl(e,t,r){if(!e||!t)return;const n=Ml(e,t,e.astNode,!0);if(n.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,n.length-1)):r=0,n[r]}i(Dl,"findNodeForProperty");function Ml(e,t,r,n){if(!n){const a=Pn(e.grammarSource,vr);if(a&&a.feature===t)return[e]}return yr(e)&&e.astNode===r?e.content.flatMap(a=>Ml(a,t,r,!1)):[]}i(Ml,"findNodesForPropertyInternal");function hy(e,t){return e?xl(e,t,e?.astNode):[]}i(hy,"findNodesForKeyword");function qd(e,t,r){if(!e)return;const n=xl(e,t,e?.astNode);if(n.length!==0)return r!==void 0?r=Math.max(0,Math.min(r,n.length-1)):r=0,n[r]}i(qd,"findNodeForKeyword");function xl(e,t,r){if(e.astNode!==r)return[];if(Tr(e.grammarSource)&&e.grammarSource.value===t)return[e];const n=xa(e).iterator();let a;const s=[];do if(a=n.next(),!a.done){const o=a.value;o.astNode===r?Tr(o.grammarSource)&&o.grammarSource.value===t&&s.push(o):n.prune()}while(!a.done);return s}i(xl,"findNodesForKeywordInternal");function Wd(e){const t=e.astNode;for(;t===e.container?.astNode;){const r=Pn(e.grammarSource,vr);if(r)return r;e=e.container}}i(Wd,"findAssignment");function Fl(e){let t=e;return Ss(t)&&(Fr(t.$container)?t=t.$container.$container:On(t.$container)?t=t.$container:Kr(t.$container)),Vd(e,t,new Map)}i(Fl,"findNameAssignment");function Vd(e,t,r){function n(a,s){let o;return Pn(a,vr)||(o=Vd(s,s,r)),r.set(e,o),o}if(i(n,"go"),r.has(e))return r.get(e);r.set(e,void 0);for(const a of br(t)){if(vr(a)&&a.feature.toLowerCase()==="name")return r.set(e,a),a;if(Rr(a)&&Je(a.rule.ref))return n(a,a.rule.ref);if(Sl(a)&&a.typeRef?.ref)return n(a,a.typeRef.ref)}}i(Vd,"findNameAssignmentInternal");function Hd(e){const t=e.$container;if(Dn(t)){const r=t.elements,n=r.indexOf(e);for(let a=n-1;a>=0;a--){const s=r[a];if(Fr(s))return s;{const o=br(r[a]).find(Fr);if(o)return o}}}if(_l(t))return Hd(t)}i(Hd,"getActionAtElement");function my(e,t){return e==="?"||e==="*"||Dn(t)&&!!t.guardCondition}i(my,"isOptionalCardinality");function gy(e){return e==="*"||e==="+"}i(gy,"isArrayCardinality");function yy(e){return e==="+="}i(yy,"isArrayOperator");function bs(e){return Yd(e,new Set)}i(bs,"isDataTypeRule");function Yd(e,t){if(t.has(e))return!0;t.add(e);for(const r of br(e))if(Rr(r)){if(!r.rule.ref||Je(r.rule.ref)&&!Yd(r.rule.ref,t)||Ma(r.rule.ref))return!1}else{if(vr(r))return!1;if(Fr(r))return!1}return!!e.definition}i(Yd,"isDataTypeRuleInternal");function vy(e){return Zo(e.type,new Set)}i(vy,"isDataType");function Zo(e,t){if(t.has(e))return!0;if(t.add(e),sd(e))return!1;if(gd(e))return!1;if($d(e))return e.types.every(r=>Zo(r,t));if(Sl(e)){if(e.primitiveType!==void 0)return!0;if(e.stringType!==void 0)return!0;if(e.typeRef!==void 0){const r=e.typeRef.ref;return wl(r)?Zo(r.type,t):!1}else return!1}else return!1}i(Zo,"isDataTypeInternal");function ws(e){if(!bt(e)){if(e.inferredType)return e.inferredType.name;if(e.dataType)return e.dataType;if(e.returnType){const t=e.returnType.ref;if(t)return t.name}}}i(ws,"getExplicitRuleType");function Sn(e){if(On(e))return Je(e)&&bs(e)?e.name:ws(e)??e.name;if(dd(e)||wl(e)||vd(e))return e.name;if(Fr(e)){const t=Xd(e);if(t)return t}else if(Ss(e))return e.name;throw new Error("Cannot get name of Unknown Type")}i(Sn,"getTypeName");function Xd(e){if(e.inferredType)return e.inferredType.name;if(e.type?.ref)return Sn(e.type.ref)}i(Xd,"getActionType");function Ty(e){return bt(e)?e.type?.name??"string":Je(e)&&bs(e)?e.name:ws(e)??e.name}i(Ty,"getRuleTypeName");function Jd(e){return bt(e)?e.type?.name??"string":ws(e)??e.name}i(Jd,"getRuleType");function Is(e){const t={s:!1,i:!1,u:!1},r=Mn(e.definition,t),n=Object.entries(t).filter(([,a])=>a).map(([a])=>a).join("");return new RegExp(r,n)}i(Is,"terminalRegex");var Zd=/[\s\S]/.source;function Mn(e,t){if(Td(e))return Ry(e);if(Rd(e))return $y(e);if(ld(e))return _y(e);if(bl(e)){const r=e.rule.ref;if(!r)throw new Error("Missing rule reference.");return Qt(Mn(r.definition),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}else{if(pd(e))return Ey(e);if(Ad(e))return Ay(e);if(yd(e)){const r=e.regex.lastIndexOf("/"),n=e.regex.substring(1,r),a=e.regex.substring(r+1);return t&&(t.i=a.includes("i"),t.s=a.includes("s"),t.u=a.includes("u")),Qt(n,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}else{if(Ed(e))return Qt(Zd,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized});throw new Error(`Invalid terminal element: ${e?.$type}, ${e?.$cstNode?.text}`)}}}i(Mn,"abstractElementToRegex");function Ry(e){return Qt(e.elements.map(t=>Mn(t)).join("|"),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}i(Ry,"terminalAlternativesToRegex");function $y(e){return Qt(e.elements.map(t=>Mn(t)).join(""),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}i($y,"terminalGroupToRegex");function Ay(e){return Qt(`${Zd}*?${Mn(e.terminal)}`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}i(Ay,"untilTokenToRegex");function Ey(e){return Qt(`(?!${Mn(e.terminal)})${Zd}*?`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}i(Ey,"negateTokenToRegex");function _y(e){return e.right?Qt(`[${To(e.left)}-${To(e.right)}]`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1}):Qt(To(e.left),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}i(_y,"characterRangeToRegex");function To(e){return Wa(e.value)}i(To,"keywordToRegex");function Qt(e,t){return(t.parenthesized||t.lookahead||t.wrap!==!1)&&(e=`(${t.lookahead??(t.parenthesized?"":"?:")}${e})`),t.cardinality?`${e}${t.cardinality}`:e}i(Qt,"withCardinality");function Qd(e){const t=[],r=e.Grammar;for(const n of r.rules)bt(n)&&Bd(n)&&Md(Is(n))&&t.push(n.name);return{multilineCommentRules:t,nameRegexp:wd}}i(Qd,"createGrammarConfig");var Gw=typeof global=="object"&&global&&global.Object===Object&&global,Cy=Gw,jw=typeof self=="object"&&self&&self.Object===Object&&self,Uw=Cy||jw||Function("return this")(),tr=Uw,zw=tr.Symbol,Ct=zw,Sy=Object.prototype,Bw=Sy.hasOwnProperty,Kw=Sy.toString,Ei=Ct?Ct.toStringTag:void 0;function by(e){var t=Bw.call(e,Ei),r=e[Ei];try{e[Ei]=void 0;var n=!0}catch{}var a=Kw.call(e);return n&&(t?e[Ei]=r:delete e[Ei]),a}i(by,"getRawTag");var qw=by,Ww=Object.prototype,Vw=Ww.toString;function wy(e){return Vw.call(e)}i(wy,"objectToString");var Hw=wy,Yw="[object Null]",Xw="[object Undefined]",Fh=Ct?Ct.toStringTag:void 0;function Iy(e){return e==null?e===void 0?Xw:Yw:Fh&&Fh in Object(e)?qw(e):Hw(e)}i(Iy,"baseGetTag");var qr=Iy;function Ny(e){return e!=null&&typeof e=="object"}i(Ny,"isObjectLike");var Gt=Ny,Jw="[object Symbol]";function ky(e){return typeof e=="symbol"||Gt(e)&&qr(e)==Jw}i(ky,"isSymbol");var Gl=ky;function Py(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}i(Py,"arrayMap");var Ns=Py,Zw=Array.isArray,ne=Zw,Gh=Ct?Ct.prototype:void 0,jh=Gh?Gh.toString:void 0;function ep(e){if(typeof e=="string")return e;if(ne(e))return Ns(e,ep)+"";if(Gl(e))return jh?jh.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}i(ep,"baseToString");var Qw=ep,eI=/\s/;function Oy(e){for(var t=e.length;t--&&eI.test(e.charAt(t)););return t}i(Oy,"trimmedEndIndex");var tI=Oy,rI=/^\s+/;function Ly(e){return e&&e.slice(0,tI(e)+1).replace(rI,"")}i(Ly,"baseTrim");var nI=Ly;function Dy(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}i(Dy,"isObject");var St=Dy,Uh=NaN,aI=/^[-+]0x[0-9a-f]+$/i,iI=/^0b[01]+$/i,sI=/^0o[0-7]+$/i,oI=parseInt;function My(e){if(typeof e=="number")return e;if(Gl(e))return Uh;if(St(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=St(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=nI(e);var r=iI.test(e);return r||sI.test(e)?oI(e.slice(2),r?2:8):aI.test(e)?Uh:+e}i(My,"toNumber");var lI=My,zh=1/0,cI=17976931348623157e292;function xy(e){if(!e)return e===0?e:0;if(e=lI(e),e===zh||e===-zh){var t=e<0?-1:1;return t*cI}return e===e?e:0}i(xy,"toFinite");var uI=xy;function Fy(e){var t=uI(e),r=t%1;return t===t?r?t-r:t:0}i(Fy,"toInteger");var ks=Fy;function Gy(e){return e}i(Gy,"identity");var Ga=Gy,fI="[object AsyncFunction]",dI="[object Function]",pI="[object GeneratorFunction]",hI="[object Proxy]";function jy(e){if(!St(e))return!1;var t=qr(e);return t==dI||t==pI||t==fI||t==hI}i(jy,"isFunction");var wr=jy,mI=tr["__core-js_shared__"],kc=mI,Bh=(function(){var e=/[^.]+$/.exec(kc&&kc.keys&&kc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Uy(e){return!!Bh&&Bh in e}i(Uy,"isMasked");var gI=Uy,yI=Function.prototype,vI=yI.toString;function zy(e){if(e!=null){try{return vI.call(e)}catch{}try{return e+""}catch{}}return""}i(zy,"toSource");var xn=zy,TI=/[\\^$.*+?()[\]{}|]/g,RI=/^\[object .+?Constructor\]$/,$I=Function.prototype,AI=Object.prototype,EI=$I.toString,_I=AI.hasOwnProperty,CI=RegExp("^"+EI.call(_I).replace(TI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function By(e){if(!St(e)||gI(e))return!1;var t=wr(e)?CI:RI;return t.test(xn(e))}i(By,"baseIsNative");var SI=By;function Ky(e,t){return e?.[t]}i(Ky,"getValue");var bI=Ky;function qy(e,t){var r=bI(e,t);return SI(r)?r:void 0}i(qy,"getNative");var Fn=qy,wI=Fn(tr,"WeakMap"),rf=wI,Kh=Object.create,II=(function(){function e(){}return i(e,"object"),function(t){if(!St(t))return{};if(Kh)return Kh(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})(),NI=II;function Wy(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}i(Wy,"apply");var kI=Wy;function Vy(){}i(Vy,"noop");var Me=Vy;function Hy(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}i(Hy,"copyArray");var PI=Hy,OI=800,LI=16,DI=Date.now;function Yy(e){var t=0,r=0;return function(){var n=DI(),a=LI-(n-r);if(r=n,a>0){if(++t>=OI)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}i(Yy,"shortOut");var MI=Yy;function Xy(e){return function(){return e}}i(Xy,"constant");var xI=Xy,FI=(function(){try{var e=Fn(Object,"defineProperty");return e({},"",{}),e}catch{}})(),Qo=FI,GI=Qo?function(e,t){return Qo(e,"toString",{configurable:!0,enumerable:!1,value:xI(t),writable:!0})}:Ga,jI=GI,UI=MI(jI),zI=UI;function Jy(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}i(Jy,"arrayEach");var Zy=Jy;function Qy(e,t,r,n){for(var a=e.length,s=r+(n?1:-1);n?s--:++s<a;)if(t(e[s],s,e))return s;return-1}i(Qy,"baseFindIndex");var ev=Qy;function tv(e){return e!==e}i(tv,"baseIsNaN");var BI=tv;function rv(e,t,r){for(var n=r-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1}i(rv,"strictIndexOf");var KI=rv;function nv(e,t,r){return t===t?KI(e,t,r):ev(e,BI,r)}i(nv,"baseIndexOf");var tp=nv;function av(e,t){var r=e==null?0:e.length;return!!r&&tp(e,t,0)>-1}i(av,"arrayIncludes");var iv=av,qI=9007199254740991,WI=/^(?:0|[1-9]\d*)$/;function sv(e,t){var r=typeof e;return t=t??qI,!!t&&(r=="number"||r!="symbol"&&WI.test(e))&&e>-1&&e%1==0&&e<t}i(sv,"isIndex");var jl=sv;function ov(e,t,r){t=="__proto__"&&Qo?Qo(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}i(ov,"baseAssignValue");var rp=ov;function lv(e,t){return e===t||e!==e&&t!==t}i(lv,"eq");var Ps=lv,VI=Object.prototype,HI=VI.hasOwnProperty;function cv(e,t,r){var n=e[t];(!(HI.call(e,t)&&Ps(n,r))||r===void 0&&!(t in e))&&rp(e,t,r)}i(cv,"assignValue");var Ul=cv;function uv(e,t,r,n){var a=!r;r||(r={});for(var s=-1,o=t.length;++s<o;){var l=t[s],c=n?n(r[l],e[l],l,r,e):void 0;c===void 0&&(c=e[l]),a?rp(r,l,c):Ul(r,l,c)}return r}i(uv,"copyObject");var Os=uv,qh=Math.max;function fv(e,t,r){return t=qh(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,s=qh(n.length-t,0),o=Array(s);++a<s;)o[a]=n[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=n[a];return l[t]=r(o),kI(e,this,l)}}i(fv,"overRest");var YI=fv;function dv(e,t){return zI(YI(e,t,Ga),e+"")}i(dv,"baseRest");var np=dv,XI=9007199254740991;function pv(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=XI}i(pv,"isLength");var ap=pv;function hv(e){return e!=null&&ap(e.length)&&!wr(e)}i(hv,"isArrayLike");var rr=hv;function mv(e,t,r){if(!St(r))return!1;var n=typeof t;return(n=="number"?rr(r)&&jl(t,r.length):n=="string"&&t in r)?Ps(r[t],e):!1}i(mv,"isIterateeCall");var zl=mv;function gv(e){return np(function(t,r){var n=-1,a=r.length,s=a>1?r[a-1]:void 0,o=a>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(a--,s):void 0,o&&zl(r[0],r[1],o)&&(s=a<3?void 0:s,a=1),t=Object(t);++n<a;){var l=r[n];l&&e(t,l,n,s)}return t})}i(gv,"createAssigner");var JI=gv,ZI=Object.prototype;function yv(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ZI;return e===r}i(yv,"isPrototype");var Ls=yv;function vv(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}i(vv,"baseTimes");var QI=vv,eN="[object Arguments]";function Tv(e){return Gt(e)&&qr(e)==eN}i(Tv,"baseIsArguments");var Wh=Tv,Rv=Object.prototype,tN=Rv.hasOwnProperty,rN=Rv.propertyIsEnumerable,nN=Wh((function(){return arguments})())?Wh:function(e){return Gt(e)&&tN.call(e,"callee")&&!rN.call(e,"callee")},Bl=nN;function $v(){return!1}i($v,"stubFalse");var aN=$v,Av=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Vh=Av&&typeof module=="object"&&module&&!module.nodeType&&module,iN=Vh&&Vh.exports===Av,Hh=iN?tr.Buffer:void 0,sN=Hh?Hh.isBuffer:void 0,oN=sN||aN,ls=oN,lN="[object Arguments]",cN="[object Array]",uN="[object Boolean]",fN="[object Date]",dN="[object Error]",pN="[object Function]",hN="[object Map]",mN="[object Number]",gN="[object Object]",yN="[object RegExp]",vN="[object Set]",TN="[object String]",RN="[object WeakMap]",$N="[object ArrayBuffer]",AN="[object DataView]",EN="[object Float32Array]",_N="[object Float64Array]",CN="[object Int8Array]",SN="[object Int16Array]",bN="[object Int32Array]",wN="[object Uint8Array]",IN="[object Uint8ClampedArray]",NN="[object Uint16Array]",kN="[object Uint32Array]",ye={};ye[EN]=ye[_N]=ye[CN]=ye[SN]=ye[bN]=ye[wN]=ye[IN]=ye[NN]=ye[kN]=!0;ye[lN]=ye[cN]=ye[$N]=ye[uN]=ye[AN]=ye[fN]=ye[dN]=ye[pN]=ye[hN]=ye[mN]=ye[gN]=ye[yN]=ye[vN]=ye[TN]=ye[RN]=!1;function Ev(e){return Gt(e)&&ap(e.length)&&!!ye[qr(e)]}i(Ev,"baseIsTypedArray");var PN=Ev;function _v(e){return function(t){return e(t)}}i(_v,"baseUnary");var Ds=_v,Cv=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Zi=Cv&&typeof module=="object"&&module&&!module.nodeType&&module,ON=Zi&&Zi.exports===Cv,Pc=ON&&Cy.process,LN=(function(){try{var e=Zi&&Zi.require&&Zi.require("util").types;return e||Pc&&Pc.binding&&Pc.binding("util")}catch{}})(),Gr=LN,Yh=Gr&&Gr.isTypedArray,DN=Yh?Ds(Yh):PN,ip=DN,MN=Object.prototype,xN=MN.hasOwnProperty;function Sv(e,t){var r=ne(e),n=!r&&Bl(e),a=!r&&!n&&ls(e),s=!r&&!n&&!a&&ip(e),o=r||n||a||s,l=o?QI(e.length,String):[],c=l.length;for(var u in e)(t||xN.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||jl(u,c)))&&l.push(u);return l}i(Sv,"arrayLikeKeys");var bv=Sv;function wv(e,t){return function(r){return e(t(r))}}i(wv,"overArg");var Iv=wv,FN=Iv(Object.keys,Object),GN=FN,jN=Object.prototype,UN=jN.hasOwnProperty;function Nv(e){if(!Ls(e))return GN(e);var t=[];for(var r in Object(e))UN.call(e,r)&&r!="constructor"&&t.push(r);return t}i(Nv,"baseKeys");var kv=Nv;function Pv(e){return rr(e)?bv(e):kv(e)}i(Pv,"keys");var dt=Pv,zN=Object.prototype,BN=zN.hasOwnProperty,KN=JI(function(e,t){if(Ls(t)||rr(t)){Os(t,dt(t),e);return}for(var r in t)BN.call(t,r)&&Ul(e,r,t[r])}),pt=KN;function Ov(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}i(Ov,"nativeKeysIn");var qN=Ov,WN=Object.prototype,VN=WN.hasOwnProperty;function Lv(e){if(!St(e))return qN(e);var t=Ls(e),r=[];for(var n in e)n=="constructor"&&(t||!VN.call(e,n))||r.push(n);return r}i(Lv,"baseKeysIn");var HN=Lv;function Dv(e){return rr(e)?bv(e,!0):HN(e)}i(Dv,"keysIn");var Kl=Dv,YN=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,XN=/^\w*$/;function Mv(e,t){if(ne(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Gl(e)?!0:XN.test(e)||!YN.test(e)||t!=null&&e in Object(t)}i(Mv,"isKey");var sp=Mv,JN=Fn(Object,"create"),cs=JN;function xv(){this.__data__=cs?cs(null):{},this.size=0}i(xv,"hashClear");var ZN=xv;function Fv(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}i(Fv,"hashDelete");var QN=Fv,ek="__lodash_hash_undefined__",tk=Object.prototype,rk=tk.hasOwnProperty;function Gv(e){var t=this.__data__;if(cs){var r=t[e];return r===ek?void 0:r}return rk.call(t,e)?t[e]:void 0}i(Gv,"hashGet");var nk=Gv,ak=Object.prototype,ik=ak.hasOwnProperty;function jv(e){var t=this.__data__;return cs?t[e]!==void 0:ik.call(t,e)}i(jv,"hashHas");var sk=jv,ok="__lodash_hash_undefined__";function Uv(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=cs&&t===void 0?ok:t,this}i(Uv,"hashSet");var lk=Uv;function Gn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}i(Gn,"Hash");Gn.prototype.clear=ZN;Gn.prototype.delete=QN;Gn.prototype.get=nk;Gn.prototype.has=sk;Gn.prototype.set=lk;var Xh=Gn;function zv(){this.__data__=[],this.size=0}i(zv,"listCacheClear");var ck=zv;function Bv(e,t){for(var r=e.length;r--;)if(Ps(e[r][0],t))return r;return-1}i(Bv,"assocIndexOf");var ql=Bv,uk=Array.prototype,fk=uk.splice;function Kv(e){var t=this.__data__,r=ql(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():fk.call(t,r,1),--this.size,!0}i(Kv,"listCacheDelete");var dk=Kv;function qv(e){var t=this.__data__,r=ql(t,e);return r<0?void 0:t[r][1]}i(qv,"listCacheGet");var pk=qv;function Wv(e){return ql(this.__data__,e)>-1}i(Wv,"listCacheHas");var hk=Wv;function Vv(e,t){var r=this.__data__,n=ql(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}i(Vv,"listCacheSet");var mk=Vv;function jn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}i(jn,"ListCache");jn.prototype.clear=ck;jn.prototype.delete=dk;jn.prototype.get=pk;jn.prototype.has=hk;jn.prototype.set=mk;var Wl=jn,gk=Fn(tr,"Map"),us=gk;function Hv(){this.size=0,this.__data__={hash:new Xh,map:new(us||Wl),string:new Xh}}i(Hv,"mapCacheClear");var yk=Hv;function Yv(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}i(Yv,"isKeyable");var vk=Yv;function Xv(e,t){var r=e.__data__;return vk(t)?r[typeof t=="string"?"string":"hash"]:r.map}i(Xv,"getMapData");var Vl=Xv;function Jv(e){var t=Vl(this,e).delete(e);return this.size-=t?1:0,t}i(Jv,"mapCacheDelete");var Tk=Jv;function Zv(e){return Vl(this,e).get(e)}i(Zv,"mapCacheGet");var Rk=Zv;function Qv(e){return Vl(this,e).has(e)}i(Qv,"mapCacheHas");var $k=Qv;function eT(e,t){var r=Vl(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}i(eT,"mapCacheSet");var Ak=eT;function Un(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}i(Un,"MapCache");Un.prototype.clear=yk;Un.prototype.delete=Tk;Un.prototype.get=Rk;Un.prototype.has=$k;Un.prototype.set=Ak;var Hl=Un,Ek="Expected a function";function Yl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ek);var r=i(function(){var n=arguments,a=t?t.apply(this,n):n[0],s=r.cache;if(s.has(a))return s.get(a);var o=e.apply(this,n);return r.cache=s.set(a,o)||s,o},"memoized");return r.cache=new(Yl.Cache||Hl),r}i(Yl,"memoize");Yl.Cache=Hl;var _k=Yl,Ck=500;function tT(e){var t=_k(e,function(n){return r.size===Ck&&r.clear(),n}),r=t.cache;return t}i(tT,"memoizeCapped");var Sk=tT,bk=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wk=/\\(\\)?/g,Ik=Sk(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(bk,function(r,n,a,s){t.push(a?s.replace(wk,"$1"):n||r)}),t}),Nk=Ik;function rT(e){return e==null?"":Qw(e)}i(rT,"toString");var kk=rT;function nT(e,t){return ne(e)?e:sp(e,t)?[e]:Nk(kk(e))}i(nT,"castPath");var Xl=nT;function aT(e){if(typeof e=="string"||Gl(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}i(aT,"toKey");var Ms=aT;function iT(e,t){t=Xl(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Ms(t[r++])];return r&&r==n?e:void 0}i(iT,"baseGet");var op=iT;function sT(e,t,r){var n=e==null?void 0:op(e,t);return n===void 0?r:n}i(sT,"get");var Pk=sT;function oT(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}i(oT,"arrayPush");var lp=oT,Jh=Ct?Ct.isConcatSpreadable:void 0;function lT(e){return ne(e)||Bl(e)||!!(Jh&&e&&e[Jh])}i(lT,"isFlattenable");var Ok=lT;function cp(e,t,r,n,a){var s=-1,o=e.length;for(r||(r=Ok),a||(a=[]);++s<o;){var l=e[s];t>0&&r(l)?t>1?cp(l,t-1,r,n,a):lp(a,l):n||(a[a.length]=l)}return a}i(cp,"baseFlatten");var up=cp;function cT(e){var t=e==null?0:e.length;return t?up(e,1):[]}i(cT,"flatten");var xt=cT,Lk=Iv(Object.getPrototypeOf,Object),uT=Lk;function fT(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(a);++n<a;)s[n]=e[n+t];return s}i(fT,"baseSlice");var dT=fT;function pT(e,t,r,n){var a=-1,s=e==null?0:e.length;for(n&&s&&(r=e[++a]);++a<s;)r=t(r,e[a],a,e);return r}i(pT,"arrayReduce");var Dk=pT;function hT(){this.__data__=new Wl,this.size=0}i(hT,"stackClear");var Mk=hT;function mT(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}i(mT,"stackDelete");var xk=mT;function gT(e){return this.__data__.get(e)}i(gT,"stackGet");var Fk=gT;function yT(e){return this.__data__.has(e)}i(yT,"stackHas");var Gk=yT,jk=200;function vT(e,t){var r=this.__data__;if(r instanceof Wl){var n=r.__data__;if(!us||n.length<jk-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Hl(n)}return r.set(e,t),this.size=r.size,this}i(vT,"stackSet");var Uk=vT;function zn(e){var t=this.__data__=new Wl(e);this.size=t.size}i(zn,"Stack");zn.prototype.clear=Mk;zn.prototype.delete=xk;zn.prototype.get=Fk;zn.prototype.has=Gk;zn.prototype.set=Uk;var Qi=zn;function TT(e,t){return e&&Os(t,dt(t),e)}i(TT,"baseAssign");var zk=TT;function RT(e,t){return e&&Os(t,Kl(t),e)}i(RT,"baseAssignIn");var Bk=RT,$T=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Zh=$T&&typeof module=="object"&&module&&!module.nodeType&&module,Kk=Zh&&Zh.exports===$T,Qh=Kk?tr.Buffer:void 0,em=Qh?Qh.allocUnsafe:void 0;function AT(e,t){if(t)return e.slice();var r=e.length,n=em?em(r):new e.constructor(r);return e.copy(n),n}i(AT,"cloneBuffer");var qk=AT;function ET(e,t){for(var r=-1,n=e==null?0:e.length,a=0,s=[];++r<n;){var o=e[r];t(o,r,e)&&(s[a++]=o)}return s}i(ET,"arrayFilter");var fp=ET;function _T(){return[]}i(_T,"stubArray");var CT=_T,Wk=Object.prototype,Vk=Wk.propertyIsEnumerable,tm=Object.getOwnPropertySymbols,Hk=tm?function(e){return e==null?[]:(e=Object(e),fp(tm(e),function(t){return Vk.call(e,t)}))}:CT,dp=Hk;function ST(e,t){return Os(e,dp(e),t)}i(ST,"copySymbols");var Yk=ST,Xk=Object.getOwnPropertySymbols,Jk=Xk?function(e){for(var t=[];e;)lp(t,dp(e)),e=uT(e);return t}:CT,bT=Jk;function wT(e,t){return Os(e,bT(e),t)}i(wT,"copySymbolsIn");var Zk=wT;function IT(e,t,r){var n=t(e);return ne(e)?n:lp(n,r(e))}i(IT,"baseGetAllKeys");var NT=IT;function kT(e){return NT(e,dt,dp)}i(kT,"getAllKeys");var nf=kT;function PT(e){return NT(e,Kl,bT)}i(PT,"getAllKeysIn");var OT=PT,Qk=Fn(tr,"DataView"),af=Qk,eP=Fn(tr,"Promise"),sf=eP,tP=Fn(tr,"Set"),Ia=tP,rm="[object Map]",rP="[object Object]",nm="[object Promise]",am="[object Set]",im="[object WeakMap]",sm="[object DataView]",nP=xn(af),aP=xn(us),iP=xn(sf),sP=xn(Ia),oP=xn(rf),rn=qr;(af&&rn(new af(new ArrayBuffer(1)))!=sm||us&&rn(new us)!=rm||sf&&rn(sf.resolve())!=nm||Ia&&rn(new Ia)!=am||rf&&rn(new rf)!=im)&&(rn=i(function(e){var t=qr(e),r=t==rP?e.constructor:void 0,n=r?xn(r):"";if(n)switch(n){case nP:return sm;case aP:return rm;case iP:return nm;case sP:return am;case oP:return im}return t},"getTag"));var ja=rn,lP=Object.prototype,cP=lP.hasOwnProperty;function LT(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&cP.call(e,"index")&&(r.index=e.index,r.input=e.input),r}i(LT,"initCloneArray");var uP=LT,fP=tr.Uint8Array,el=fP;function DT(e){var t=new e.constructor(e.byteLength);return new el(t).set(new el(e)),t}i(DT,"cloneArrayBuffer");var pp=DT;function MT(e,t){var r=t?pp(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}i(MT,"cloneDataView");var dP=MT,pP=/\w*$/;function xT(e){var t=new e.constructor(e.source,pP.exec(e));return t.lastIndex=e.lastIndex,t}i(xT,"cloneRegExp");var hP=xT,om=Ct?Ct.prototype:void 0,lm=om?om.valueOf:void 0;function FT(e){return lm?Object(lm.call(e)):{}}i(FT,"cloneSymbol");var mP=FT;function GT(e,t){var r=t?pp(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}i(GT,"cloneTypedArray");var gP=GT,yP="[object Boolean]",vP="[object Date]",TP="[object Map]",RP="[object Number]",$P="[object RegExp]",AP="[object Set]",EP="[object String]",_P="[object Symbol]",CP="[object ArrayBuffer]",SP="[object DataView]",bP="[object Float32Array]",wP="[object Float64Array]",IP="[object Int8Array]",NP="[object Int16Array]",kP="[object Int32Array]",PP="[object Uint8Array]",OP="[object Uint8ClampedArray]",LP="[object Uint16Array]",DP="[object Uint32Array]";function jT(e,t,r){var n=e.constructor;switch(t){case CP:return pp(e);case yP:case vP:return new n(+e);case SP:return dP(e,r);case bP:case wP:case IP:case NP:case kP:case PP:case OP:case LP:case DP:return gP(e,r);case TP:return new n;case RP:case EP:return new n(e);case $P:return hP(e);case AP:return new n;case _P:return mP(e)}}i(jT,"initCloneByTag");var MP=jT;function UT(e){return typeof e.constructor=="function"&&!Ls(e)?NI(uT(e)):{}}i(UT,"initCloneObject");var xP=UT,FP="[object Map]";function zT(e){return Gt(e)&&ja(e)==FP}i(zT,"baseIsMap");var GP=zT,cm=Gr&&Gr.isMap,jP=cm?Ds(cm):GP,UP=jP,zP="[object Set]";function BT(e){return Gt(e)&&ja(e)==zP}i(BT,"baseIsSet");var BP=BT,um=Gr&&Gr.isSet,KP=um?Ds(um):BP,qP=KP,WP=1,VP=2,HP=4,KT="[object Arguments]",YP="[object Array]",XP="[object Boolean]",JP="[object Date]",ZP="[object Error]",qT="[object Function]",QP="[object GeneratorFunction]",e0="[object Map]",t0="[object Number]",WT="[object Object]",r0="[object RegExp]",n0="[object Set]",a0="[object String]",i0="[object Symbol]",s0="[object WeakMap]",o0="[object ArrayBuffer]",l0="[object DataView]",c0="[object Float32Array]",u0="[object Float64Array]",f0="[object Int8Array]",d0="[object Int16Array]",p0="[object Int32Array]",h0="[object Uint8Array]",m0="[object Uint8ClampedArray]",g0="[object Uint16Array]",y0="[object Uint32Array]",de={};de[KT]=de[YP]=de[o0]=de[l0]=de[XP]=de[JP]=de[c0]=de[u0]=de[f0]=de[d0]=de[p0]=de[e0]=de[t0]=de[WT]=de[r0]=de[n0]=de[a0]=de[i0]=de[h0]=de[m0]=de[g0]=de[y0]=!0;de[ZP]=de[qT]=de[s0]=!1;function es(e,t,r,n,a,s){var o,l=t&WP,c=t&VP,u=t&HP;if(r&&(o=a?r(e,n,a,s):r(e)),o!==void 0)return o;if(!St(e))return e;var f=ne(e);if(f){if(o=uP(e),!l)return PI(e,o)}else{var d=ja(e),h=d==qT||d==QP;if(ls(e))return qk(e,l);if(d==WT||d==KT||h&&!a){if(o=c||h?{}:xP(e),!l)return c?Zk(e,Bk(o,e)):Yk(e,zk(o,e))}else{if(!de[d])return a?e:{};o=MP(e,d,l)}}s||(s=new Qi);var y=s.get(e);if(y)return y;s.set(e,o),qP(e)?e.forEach(function(b){o.add(es(b,t,r,b,e,s))}):UP(e)&&e.forEach(function(b,w){o.set(w,es(b,t,r,w,e,s))});var v=u?c?OT:nf:c?Kl:dt,C=f?void 0:v(e);return Zy(C||e,function(b,w){C&&(w=b,b=e[w]),Ul(o,w,es(b,t,r,w,e,s))}),o}i(es,"baseClone");var v0=es,T0=4;function VT(e){return v0(e,T0)}i(VT,"clone");var Ke=VT;function HT(e){for(var t=-1,r=e==null?0:e.length,n=0,a=[];++t<r;){var s=e[t];s&&(a[n++]=s)}return a}i(HT,"compact");var xs=HT,R0="__lodash_hash_undefined__";function YT(e){return this.__data__.set(e,R0),this}i(YT,"setCacheAdd");var $0=YT;function XT(e){return this.__data__.has(e)}i(XT,"setCacheHas");var A0=XT;function fs(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Hl;++t<r;)this.add(e[t])}i(fs,"SetCache");fs.prototype.add=fs.prototype.push=$0;fs.prototype.has=A0;var hp=fs;function JT(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}i(JT,"arraySome");var ZT=JT;function QT(e,t){return e.has(t)}i(QT,"cacheHas");var mp=QT,E0=1,_0=2;function eR(e,t,r,n,a,s){var o=r&E0,l=e.length,c=t.length;if(l!=c&&!(o&&c>l))return!1;var u=s.get(e),f=s.get(t);if(u&&f)return u==t&&f==e;var d=-1,h=!0,y=r&_0?new hp:void 0;for(s.set(e,t),s.set(t,e);++d<l;){var v=e[d],C=t[d];if(n)var b=o?n(C,v,d,t,e,s):n(v,C,d,e,t,s);if(b!==void 0){if(b)continue;h=!1;break}if(y){if(!ZT(t,function(w,I){if(!mp(y,I)&&(v===w||a(v,w,r,n,s)))return y.push(I)})){h=!1;break}}else if(!(v===C||a(v,C,r,n,s))){h=!1;break}}return s.delete(e),s.delete(t),h}i(eR,"equalArrays");var tR=eR;function rR(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}i(rR,"mapToArray");var C0=rR;function nR(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}i(nR,"setToArray");var gp=nR,S0=1,b0=2,w0="[object Boolean]",I0="[object Date]",N0="[object Error]",k0="[object Map]",P0="[object Number]",O0="[object RegExp]",L0="[object Set]",D0="[object String]",M0="[object Symbol]",x0="[object ArrayBuffer]",F0="[object DataView]",fm=Ct?Ct.prototype:void 0,Oc=fm?fm.valueOf:void 0;function aR(e,t,r,n,a,s,o){switch(r){case F0:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x0:return!(e.byteLength!=t.byteLength||!s(new el(e),new el(t)));case w0:case I0:case P0:return Ps(+e,+t);case N0:return e.name==t.name&&e.message==t.message;case O0:case D0:return e==t+"";case k0:var l=C0;case L0:var c=n&S0;if(l||(l=gp),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;n|=b0,o.set(e,t);var f=tR(l(e),l(t),n,a,s,o);return o.delete(e),f;case M0:if(Oc)return Oc.call(e)==Oc.call(t)}return!1}i(aR,"equalByTag");var G0=aR,j0=1,U0=Object.prototype,z0=U0.hasOwnProperty;function iR(e,t,r,n,a,s){var o=r&j0,l=nf(e),c=l.length,u=nf(t),f=u.length;if(c!=f&&!o)return!1;for(var d=c;d--;){var h=l[d];if(!(o?h in t:z0.call(t,h)))return!1}var y=s.get(e),v=s.get(t);if(y&&v)return y==t&&v==e;var C=!0;s.set(e,t),s.set(t,e);for(var b=o;++d<c;){h=l[d];var w=e[h],I=t[h];if(n)var A=o?n(I,w,h,t,e,s):n(w,I,h,e,t,s);if(!(A===void 0?w===I||a(w,I,r,n,s):A)){C=!1;break}b||(b=h=="constructor")}if(C&&!b){var k=e.constructor,G=t.constructor;k!=G&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof G=="function"&&G instanceof G)&&(C=!1)}return s.delete(e),s.delete(t),C}i(iR,"equalObjects");var B0=iR,K0=1,dm="[object Arguments]",pm="[object Array]",Ws="[object Object]",q0=Object.prototype,hm=q0.hasOwnProperty;function sR(e,t,r,n,a,s){var o=ne(e),l=ne(t),c=o?pm:ja(e),u=l?pm:ja(t);c=c==dm?Ws:c,u=u==dm?Ws:u;var f=c==Ws,d=u==Ws,h=c==u;if(h&&ls(e)){if(!ls(t))return!1;o=!0,f=!1}if(h&&!f)return s||(s=new Qi),o||ip(e)?tR(e,t,r,n,a,s):G0(e,t,c,r,n,a,s);if(!(r&K0)){var y=f&&hm.call(e,"__wrapped__"),v=d&&hm.call(t,"__wrapped__");if(y||v){var C=y?e.value():e,b=v?t.value():t;return s||(s=new Qi),a(C,b,r,n,s)}}return h?(s||(s=new Qi),B0(e,t,r,n,a,s)):!1}i(sR,"baseIsEqualDeep");var W0=sR;function yp(e,t,r,n,a){return e===t?!0:e==null||t==null||!Gt(e)&&!Gt(t)?e!==e&&t!==t:W0(e,t,r,n,yp,a)}i(yp,"baseIsEqual");var oR=yp,V0=1,H0=2;function lR(e,t,r,n){var a=r.length,s=a,o=!n;if(e==null)return!s;for(e=Object(e);a--;){var l=r[a];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<s;){l=r[a];var c=l[0],u=e[c],f=l[1];if(o&&l[2]){if(u===void 0&&!(c in e))return!1}else{var d=new Qi;if(n)var h=n(u,f,c,e,t,d);if(!(h===void 0?oR(f,u,V0|H0,n,d):h))return!1}}return!0}i(lR,"baseIsMatch");var Y0=lR;function cR(e){return e===e&&!St(e)}i(cR,"isStrictComparable");var uR=cR;function fR(e){for(var t=dt(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,uR(a)]}return t}i(fR,"getMatchData");var X0=fR;function dR(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}i(dR,"matchesStrictComparable");var pR=dR;function hR(e){var t=X0(e);return t.length==1&&t[0][2]?pR(t[0][0],t[0][1]):function(r){return r===e||Y0(r,e,t)}}i(hR,"baseMatches");var J0=hR;function mR(e,t){return e!=null&&t in Object(e)}i(mR,"baseHasIn");var Z0=mR;function gR(e,t,r){t=Xl(t,e);for(var n=-1,a=t.length,s=!1;++n<a;){var o=Ms(t[n]);if(!(s=e!=null&&r(e,o)))break;e=e[o]}return s||++n!=a?s:(a=e==null?0:e.length,!!a&&ap(a)&&jl(o,a)&&(ne(e)||Bl(e)))}i(gR,"hasPath");var yR=gR;function vR(e,t){return e!=null&&yR(e,t,Z0)}i(vR,"hasIn");var Q0=vR,eO=1,tO=2;function TR(e,t){return sp(e)&&uR(t)?pR(Ms(e),t):function(r){var n=Pk(r,e);return n===void 0&&n===t?Q0(r,e):oR(t,n,eO|tO)}}i(TR,"baseMatchesProperty");var rO=TR;function RR(e){return function(t){return t?.[e]}}i(RR,"baseProperty");var nO=RR;function $R(e){return function(t){return op(t,e)}}i($R,"basePropertyDeep");var aO=$R;function AR(e){return sp(e)?nO(Ms(e)):aO(e)}i(AR,"property");var iO=AR;function ER(e){return typeof e=="function"?e:e==null?Ga:typeof e=="object"?ne(e)?rO(e[0],e[1]):J0(e):iO(e)}i(ER,"baseIteratee");var nr=ER;function _R(e,t,r,n){for(var a=-1,s=e==null?0:e.length;++a<s;){var o=e[a];t(n,o,r(o),e)}return n}i(_R,"arrayAggregator");var sO=_R;function CR(e){return function(t,r,n){for(var a=-1,s=Object(t),o=n(t),l=o.length;l--;){var c=o[e?l:++a];if(r(s[c],c,s)===!1)break}return t}}i(CR,"createBaseFor");var oO=CR,lO=oO(),cO=lO;function SR(e,t){return e&&cO(e,t,dt)}i(SR,"baseForOwn");var uO=SR;function bR(e,t){return function(r,n){if(r==null)return r;if(!rr(r))return e(r,n);for(var a=r.length,s=t?a:-1,o=Object(r);(t?s--:++s<a)&&n(o[s],s,o)!==!1;);return r}}i(bR,"createBaseEach");var fO=bR,dO=fO(uO),Bn=dO;function wR(e,t,r,n){return Bn(e,function(a,s,o){t(n,a,r(a),o)}),n}i(wR,"baseAggregator");var pO=wR;function IR(e,t){return function(r,n){var a=ne(r)?sO:pO,s=t?t():{};return a(r,e,nr(n),s)}}i(IR,"createAggregator");var hO=IR,NR=Object.prototype,mO=NR.hasOwnProperty,gO=np(function(e,t){e=Object(e);var r=-1,n=t.length,a=n>2?t[2]:void 0;for(a&&zl(t[0],t[1],a)&&(n=1);++r<n;)for(var s=t[r],o=Kl(s),l=-1,c=o.length;++l<c;){var u=o[l],f=e[u];(f===void 0||Ps(f,NR[u])&&!mO.call(e,u))&&(e[u]=s[u])}return e}),vp=gO;function kR(e){return Gt(e)&&rr(e)}i(kR,"isArrayLikeObject");var mm=kR;function PR(e,t,r){for(var n=-1,a=e==null?0:e.length;++n<a;)if(r(t,e[n]))return!0;return!1}i(PR,"arrayIncludesWith");var OR=PR,yO=200;function LR(e,t,r,n){var a=-1,s=iv,o=!0,l=e.length,c=[],u=t.length;if(!l)return c;r&&(t=Ns(t,Ds(r))),n?(s=OR,o=!1):t.length>=yO&&(s=mp,o=!1,t=new hp(t));e:for(;++a<l;){var f=e[a],d=r==null?f:r(f);if(f=n||f!==0?f:0,o&&d===d){for(var h=u;h--;)if(t[h]===d)continue e;c.push(f)}else s(t,d,n)||c.push(f)}return c}i(LR,"baseDifference");var vO=LR,TO=np(function(e,t){return mm(e)?vO(e,up(t,1,mm,!0)):[]}),Jl=TO;function DR(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}i(DR,"last");var bn=DR;function MR(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===void 0?1:ks(t),dT(e,t<0?0:t,n)):[]}i(MR,"drop");var ze=MR;function xR(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===void 0?1:ks(t),t=n-t,dT(e,0,t<0?0:t)):[]}i(xR,"dropRight");var ds=xR;function FR(e){return typeof e=="function"?e:Ga}i(FR,"castFunction");var RO=FR;function GR(e,t){var r=ne(e)?Zy:Bn;return r(e,RO(t))}i(GR,"forEach");var q=GR;function jR(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}i(jR,"arrayEvery");var $O=jR;function UR(e,t){var r=!0;return Bn(e,function(n,a,s){return r=!!t(n,a,s),r}),r}i(UR,"baseEvery");var AO=UR;function zR(e,t,r){var n=ne(e)?$O:AO;return r&&zl(e,t,r)&&(t=void 0),n(e,nr(t))}i(zR,"every");var Ft=zR;function BR(e,t){var r=[];return Bn(e,function(n,a,s){t(n,a,s)&&r.push(n)}),r}i(BR,"baseFilter");var KR=BR;function qR(e,t){var r=ne(e)?fp:KR;return r(e,nr(t))}i(qR,"filter");var wt=qR;function WR(e){return function(t,r,n){var a=Object(t);if(!rr(t)){var s=nr(r);t=dt(t),r=i(function(l){return s(a[l],l,a)},"predicate")}var o=e(t,r,n);return o>-1?a[s?t[o]:o]:void 0}}i(WR,"createFind");var EO=WR,_O=Math.max;function VR(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var a=r==null?0:ks(r);return a<0&&(a=_O(n+a,0)),ev(e,nr(t),a)}i(VR,"findIndex");var CO=VR,SO=EO(CO),Ua=SO;function HR(e){return e&&e.length?e[0]:void 0}i(HR,"head");var jt=HR;function YR(e,t){var r=-1,n=rr(e)?Array(e.length):[];return Bn(e,function(a,s,o){n[++r]=t(a,s,o)}),n}i(YR,"baseMap");var bO=YR;function XR(e,t){var r=ne(e)?Ns:bO;return r(e,nr(t))}i(XR,"map");var F=XR;function JR(e,t){return up(F(e,t),1)}i(JR,"flatMap");var _t=JR,wO=Object.prototype,IO=wO.hasOwnProperty,NO=hO(function(e,t,r){IO.call(e,r)?e[r].push(t):rp(e,r,[t])}),kO=NO,PO=Object.prototype,OO=PO.hasOwnProperty;function ZR(e,t){return e!=null&&OO.call(e,t)}i(ZR,"baseHas");var LO=ZR;function QR(e,t){return e!=null&&yR(e,t,LO)}i(QR,"has");var U=QR,DO="[object String]";function e$(e){return typeof e=="string"||!ne(e)&&Gt(e)&&qr(e)==DO}i(e$,"isString");var it=e$;function t$(e,t){return Ns(t,function(r){return e[r]})}i(t$,"baseValues");var MO=t$;function r$(e){return e==null?[]:MO(e,dt(e))}i(r$,"values");var xe=r$,xO=Math.max;function n$(e,t,r,n){e=rr(e)?e:xe(e),r=r&&!n?ks(r):0;var a=e.length;return r<0&&(r=xO(a+r,0)),it(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&tp(e,t,r)>-1}i(n$,"includes");var tt=n$,FO=Math.max;function a$(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var a=r==null?0:ks(r);return a<0&&(a=FO(n+a,0)),tp(e,t,a)}i(a$,"indexOf");var gm=a$,GO="[object Map]",jO="[object Set]",UO=Object.prototype,zO=UO.hasOwnProperty;function i$(e){if(e==null)return!0;if(rr(e)&&(ne(e)||typeof e=="string"||typeof e.splice=="function"||ls(e)||ip(e)||Bl(e)))return!e.length;var t=ja(e);if(t==GO||t==jO)return!e.size;if(Ls(e))return!kv(e).length;for(var r in e)if(zO.call(e,r))return!1;return!0}i(i$,"isEmpty");var he=i$,BO="[object RegExp]";function s$(e){return Gt(e)&&qr(e)==BO}i(s$,"baseIsRegExp");var KO=s$,ym=Gr&&Gr.isRegExp,qO=ym?Ds(ym):KO,$r=qO;function o$(e){return e===void 0}i(o$,"isUndefined");var Ar=o$,WO="Expected a function";function l$(e){if(typeof e!="function")throw new TypeError(WO);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}i(l$,"negate");var VO=l$;function c$(e,t,r,n){if(!St(e))return e;t=Xl(t,e);for(var a=-1,s=t.length,o=s-1,l=e;l!=null&&++a<s;){var c=Ms(t[a]),u=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(a!=o){var f=l[c];u=n?n(f,c,l):void 0,u===void 0&&(u=St(f)?f:jl(t[a+1])?[]:{})}Ul(l,c,u),l=l[c]}return e}i(c$,"baseSet");var HO=c$;function u$(e,t,r){for(var n=-1,a=t.length,s={};++n<a;){var o=t[n],l=op(e,o);r(l,o)&&HO(s,Xl(o,e),l)}return s}i(u$,"basePickBy");var YO=u$;function f$(e,t){if(e==null)return{};var r=Ns(OT(e),function(n){return[n]});return t=nr(t),YO(e,r,function(n,a){return t(n,a[0])})}i(f$,"pickBy");var Ut=f$;function d$(e,t,r,n,a){return a(e,function(s,o,l){r=n?(n=!1,s):t(r,s,o,l)}),r}i(d$,"baseReduce");var XO=d$;function p$(e,t,r){var n=ne(e)?Dk:XO,a=arguments.length<3;return n(e,nr(t),r,a,Bn)}i(p$,"reduce");var ht=p$;function h$(e,t){var r=ne(e)?fp:KR;return r(e,VO(nr(t)))}i(h$,"reject");var Zl=h$;function m$(e,t){var r;return Bn(e,function(n,a,s){return r=t(n,a,s),!r}),!!r}i(m$,"baseSome");var JO=m$;function g$(e,t,r){var n=ne(e)?ZT:JO;return r&&zl(e,t,r)&&(t=void 0),n(e,nr(t))}i(g$,"some");var y$=g$,ZO=1/0,QO=Ia&&1/gp(new Ia([,-0]))[1]==ZO?function(e){return new Ia(e)}:Me,eL=QO,tL=200;function v$(e,t,r){var n=-1,a=iv,s=e.length,o=!0,l=[],c=l;if(r)o=!1,a=OR;else if(s>=tL){var u=t?null:eL(e);if(u)return gp(u);o=!1,a=mp,c=new hp}else c=t?[]:l;e:for(;++n<s;){var f=e[n],d=t?t(f):f;if(f=r||f!==0?f:0,o&&d===d){for(var h=c.length;h--;)if(c[h]===d)continue e;t&&c.push(d),l.push(f)}else a(c,d,r)||(c!==l&&c.push(d),l.push(f))}return l}i(v$,"baseUniq");var rL=v$;function T$(e){return e&&e.length?rL(e):[]}i(T$,"uniq");var Tp=T$;function tl(e){console&&console.error&&console.error(`Error: ${e}`)}i(tl,"PRINT_ERROR");function Rp(e){console&&console.warn&&console.warn(`Warning: ${e}`)}i(Rp,"PRINT_WARNING");function $p(e){const t=new Date().getTime(),r=e();return{time:new Date().getTime()-t,value:r}}i($p,"timer");function Ap(e){function t(){}i(t,"FakeConstructor"),t.prototype=e;const r=new t;function n(){return typeof r.bar}return i(n,"fakeAccess"),n(),n(),e}i(Ap,"toFastProperties");function R$(e){return $$(e)?e.LABEL:e.name}i(R$,"tokenLabel");function $$(e){return it(e.LABEL)&&e.LABEL!==""}i($$,"hasTokenLabel");var ar=class{static{i(this,"AbstractProduction")}get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),q(this.definition,t=>{t.accept(e)})}},Ze=class extends ar{static{i(this,"NonTerminal")}constructor(e){super([]),this.idx=1,pt(this,Ut(e,t=>t!==void 0))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}},Va=class extends ar{static{i(this,"Rule")}constructor(e){super(e.definition),this.orgText="",pt(this,Ut(e,t=>t!==void 0))}},st=class extends ar{static{i(this,"Alternative")}constructor(e){super(e.definition),this.ignoreAmbiguities=!1,pt(this,Ut(e,t=>t!==void 0))}},Be=class extends ar{static{i(this,"Option")}constructor(e){super(e.definition),this.idx=1,pt(this,Ut(e,t=>t!==void 0))}},mt=class extends ar{static{i(this,"RepetitionMandatory")}constructor(e){super(e.definition),this.idx=1,pt(this,Ut(e,t=>t!==void 0))}},gt=class extends ar{static{i(this,"RepetitionMandatoryWithSeparator")}constructor(e){super(e.definition),this.idx=1,pt(this,Ut(e,t=>t!==void 0))}},we=class extends ar{static{i(this,"Repetition")}constructor(e){super(e.definition),this.idx=1,pt(this,Ut(e,t=>t!==void 0))}},ot=class extends ar{static{i(this,"RepetitionWithSeparator")}constructor(e){super(e.definition),this.idx=1,pt(this,Ut(e,t=>t!==void 0))}},lt=class extends ar{static{i(this,"Alternation")}get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,pt(this,Ut(e,t=>t!==void 0))}},Te=class{static{i(this,"Terminal")}constructor(e){this.idx=1,pt(this,Ut(e,t=>t!==void 0))}accept(e){e.visit(this)}};function A$(e){return F(e,ts)}i(A$,"serializeGrammar");function ts(e){function t(r){return F(r,ts)}if(i(t,"convertDefinition"),e instanceof Ze){const r={type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};return it(e.label)&&(r.label=e.label),r}else{if(e instanceof st)return{type:"Alternative",definition:t(e.definition)};if(e instanceof Be)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof mt)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof gt)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:ts(new Te({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof ot)return{type:"RepetitionWithSeparator",idx:e.idx,separator:ts(new Te({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof we)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof lt)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof Te){const r={type:"Terminal",name:e.terminalType.name,label:R$(e.terminalType),idx:e.idx};it(e.label)&&(r.terminalLabel=e.label);const n=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(r.pattern=$r(n)?n.source:n),r}else{if(e instanceof Va)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}}i(ts,"serializeProduction");var Ha=class{static{i(this,"GAstVisitor")}visit(e){const t=e;switch(t.constructor){case Ze:return this.visitNonTerminal(t);case st:return this.visitAlternative(t);case Be:return this.visitOption(t);case mt:return this.visitRepetitionMandatory(t);case gt:return this.visitRepetitionMandatoryWithSeparator(t);case ot:return this.visitRepetitionWithSeparator(t);case we:return this.visitRepetition(t);case lt:return this.visitAlternation(t);case Te:return this.visitTerminal(t);case Va:return this.visitRule(t);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}};function E$(e){return e instanceof st||e instanceof Be||e instanceof we||e instanceof mt||e instanceof gt||e instanceof ot||e instanceof Te||e instanceof Va}i(E$,"isSequenceProd");function ps(e,t=[]){return e instanceof Be||e instanceof we||e instanceof ot?!0:e instanceof lt?y$(e.definition,n=>ps(n,t)):e instanceof Ze&&tt(t,e)?!1:e instanceof ar?(e instanceof Ze&&t.push(e),Ft(e.definition,n=>ps(n,t))):!1}i(ps,"isOptionalProd");function _$(e){return e instanceof lt}i(_$,"isBranchingProd");function Ot(e){if(e instanceof Ze)return"SUBRULE";if(e instanceof Be)return"OPTION";if(e instanceof lt)return"OR";if(e instanceof mt)return"AT_LEAST_ONE";if(e instanceof gt)return"AT_LEAST_ONE_SEP";if(e instanceof ot)return"MANY_SEP";if(e instanceof we)return"MANY";if(e instanceof Te)return"CONSUME";throw Error("non exhaustive match")}i(Ot,"getProductionDslName");var Ql=class{static{i(this,"RestWalker")}walk(e,t=[]){q(e.definition,(r,n)=>{const a=ze(e.definition,n+1);if(r instanceof Ze)this.walkProdRef(r,a,t);else if(r instanceof Te)this.walkTerminal(r,a,t);else if(r instanceof st)this.walkFlat(r,a,t);else if(r instanceof Be)this.walkOption(r,a,t);else if(r instanceof mt)this.walkAtLeastOne(r,a,t);else if(r instanceof gt)this.walkAtLeastOneSep(r,a,t);else if(r instanceof ot)this.walkManySep(r,a,t);else if(r instanceof we)this.walkMany(r,a,t);else if(r instanceof lt)this.walkOr(r,a,t);else throw Error("non exhaustive match")})}walkTerminal(e,t,r){}walkProdRef(e,t,r){}walkFlat(e,t,r){const n=t.concat(r);this.walk(e,n)}walkOption(e,t,r){const n=t.concat(r);this.walk(e,n)}walkAtLeastOne(e,t,r){const n=[new Be({definition:e.definition})].concat(t,r);this.walk(e,n)}walkAtLeastOneSep(e,t,r){const n=of(e,t,r);this.walk(e,n)}walkMany(e,t,r){const n=[new Be({definition:e.definition})].concat(t,r);this.walk(e,n)}walkManySep(e,t,r){const n=of(e,t,r);this.walk(e,n)}walkOr(e,t,r){const n=t.concat(r);q(e.definition,a=>{const s=new st({definition:[a]});this.walk(s,n)})}};function of(e,t,r){return[new Be({definition:[new Te({terminalType:e.separator})].concat(e.definition)})].concat(t,r)}i(of,"restForRepetitionWithSeparator");function Ya(e){if(e instanceof Ze)return Ya(e.referencedRule);if(e instanceof Te)return b$(e);if(E$(e))return C$(e);if(_$(e))return S$(e);throw Error("non exhaustive match")}i(Ya,"first");function C$(e){let t=[];const r=e.definition;let n=0,a=r.length>n,s,o=!0;for(;a&&o;)s=r[n],o=ps(s),t=t.concat(Ya(s)),n=n+1,a=r.length>n;return Tp(t)}i(C$,"firstForSequence");function S$(e){const t=F(e.definition,r=>Ya(r));return Tp(xt(t))}i(S$,"firstForBranching");function b$(e){return[e.terminalType]}i(b$,"firstForTerminal");var w$="_~IN~_",nL=class extends Ql{static{i(this,"ResyncFollowsWalker")}constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,r){}walkProdRef(e,t,r){const n=N$(e.referencedRule,e.idx)+this.topProd.name,a=t.concat(r),s=new st({definition:a}),o=Ya(s);this.follows[n]=o}};function I$(e){const t={};return q(e,r=>{const n=new nL(r).startWalking();pt(t,n)}),t}i(I$,"computeAllProdsFollows");function N$(e,t){return e.name+t+w$}i(N$,"buildBetweenProdsFollowPrefix");var Ro={},aL=new ly;function Fs(e){const t=e.toString();if(Ro.hasOwnProperty(t))return Ro[t];{const r=aL.pattern(t);return Ro[t]=r,r}}i(Fs,"getRegExpAst");function k$(){Ro={}}i(k$,"clearRegExpParserCache");var P$="Complement Sets are not supported for first char optimization",rl=`Unable to use "first char" lexer optimizations:
47
+ `;function O$(e,t=!1){try{const r=Fs(e);return nl(r.value,{},r.flags.ignoreCase)}catch(r){if(r.message===P$)t&&Rp(`${rl} Unable to optimize: < ${e.toString()} >
48
+ Complement Sets cannot be automatically optimized.
49
+ This will disable the lexer's first char optimizations.
50
+ See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let n="";t&&(n=`
51
+ This will disable the lexer's first char optimizations.
52
+ See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),tl(`${rl}
53
+ Failed parsing: < ${e.toString()} >
54
+ Using the @chevrotain/regexp-to-ast library
55
+ Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+n)}}return[]}i(O$,"getOptimizedStartCodesIndices");function nl(e,t,r){switch(e.type){case"Disjunction":for(let a=0;a<e.value.length;a++)nl(e.value[a],t,r);break;case"Alternative":const n=e.value;for(let a=0;a<n.length;a++){const s=n[a];switch(s.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"Lookbehind":case"NegativeLookbehind":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}const o=s;switch(o.type){case"Character":Gi(o.value,t,r);break;case"Set":if(o.complement===!0)throw Error(P$);q(o.value,c=>{if(typeof c=="number")Gi(c,t,r);else{const u=c;if(r===!0)for(let f=u.from;f<=u.to;f++)Gi(f,t,r);else{for(let f=u.from;f<=u.to&&f<Ui;f++)Gi(f,t,r);if(u.to>=Ui){const f=u.from>=Ui?u.from:Ui,d=u.to,h=Er(f),y=Er(d);for(let v=h;v<=y;v++)t[v]=v}}}});break;case"Group":nl(o.value,t,r);break;default:throw Error("Non Exhaustive Match")}const l=o.quantifier!==void 0&&o.quantifier.atLeast===0;if(o.type==="Group"&&al(o)===!1||o.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return xe(t)}i(nl,"firstCharOptimizedIndices");function Gi(e,t,r){const n=Er(e);t[n]=n,r===!0&&L$(e,t)}i(Gi,"addOptimizedIdxToResult");function L$(e,t){const r=String.fromCharCode(e),n=r.toUpperCase();if(n!==r){const a=Er(n.charCodeAt(0));t[a]=a}else{const a=r.toLowerCase();if(a!==r){const s=Er(a.charCodeAt(0));t[s]=s}}}i(L$,"handleIgnoreCase");function lf(e,t){return Ua(e.value,r=>{if(typeof r=="number")return tt(t,r);{const n=r;return Ua(t,a=>n.from<=a&&a<=n.to)!==void 0}})}i(lf,"findCode");function al(e){const t=e.quantifier;return t&&t.atLeast===0?!0:e.value?ne(e.value)?Ft(e.value,al):al(e.value):!1}i(al,"isWholeOptional");var iL=class extends Pl{static{i(this,"CharCodeFinder")}constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(this.found!==!0){switch(e.type){case"Lookahead":this.visitLookahead(e);return;case"NegativeLookahead":this.visitNegativeLookahead(e);return;case"Lookbehind":this.visitLookbehind(e);return;case"NegativeLookbehind":this.visitNegativeLookbehind(e);return}super.visitChildren(e)}}visitCharacter(e){tt(this.targetCharCodes,e.value)&&(this.found=!0)}visitSet(e){e.complement?lf(e,this.targetCharCodes)===void 0&&(this.found=!0):lf(e,this.targetCharCodes)!==void 0&&(this.found=!0)}};function ec(e,t){if(t instanceof RegExp){const r=Fs(t),n=new iL(e);return n.visit(r),n.found}else return Ua(t,r=>tt(e,r.charCodeAt(0)))!==void 0}i(ec,"canMatchCharCode");var wn="PATTERN",ji="defaultMode",Vs="modes",D$=typeof new RegExp("(?:)").sticky=="boolean";function M$(e,t){t=vp(t,{useSticky:D$,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
56
+ `],tracer:i((I,A)=>A(),"tracer")});const r=t.tracer;r("initCharCodeToOptimizedIndexMap",()=>{nA()});let n;r("Reject Lexer.NA",()=>{n=Zl(e,I=>I[wn]===Xe.NA)});let a=!1,s;r("Transform Patterns",()=>{a=!1,s=F(n,I=>{const A=I[wn];if($r(A)){const k=A.source;return k.length===1&&k!=="^"&&k!=="$"&&k!=="."&&!A.ignoreCase?k:k.length===2&&k[0]==="\\"&&!tt(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],k[1])?k[1]:t.useSticky?uf(A):cf(A)}else{if(wr(A))return a=!0,{exec:A};if(typeof A=="object")return a=!0,A;if(typeof A=="string"){if(A.length===1)return A;{const k=A.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),G=new RegExp(k);return t.useSticky?uf(G):cf(G)}}else throw Error("non exhaustive match")}})});let o,l,c,u,f;r("misc mapping",()=>{o=F(n,I=>I.tokenTypeIdx),l=F(n,I=>{const A=I.GROUP;if(A!==Xe.SKIPPED){if(it(A))return A;if(Ar(A))return!1;throw Error("non exhaustive match")}}),c=F(n,I=>{const A=I.LONGER_ALT;if(A)return ne(A)?F(A,G=>gm(n,G)):[gm(n,A)]}),u=F(n,I=>I.PUSH_MODE),f=F(n,I=>U(I,"POP_MODE"))});let d;r("Line Terminator Handling",()=>{const I=Cp(t.lineTerminatorCharacters);d=F(n,A=>!1),t.positionTracking!=="onlyOffset"&&(d=F(n,A=>U(A,"LINE_BREAKS")?!!A.LINE_BREAKS:_p(A,I)===!1&&ec(I,A.PATTERN)))});let h,y,v,C;r("Misc Mapping #2",()=>{h=F(n,Ep),y=F(s,tA),v=ht(n,(I,A)=>{const k=A.GROUP;return it(k)&&k!==Xe.SKIPPED&&(I[k]=[]),I},{}),C=F(s,(I,A)=>({pattern:s[A],longerAlt:c[A],canLineTerminator:d[A],isCustom:h[A],short:y[A],group:l[A],push:u[A],pop:f[A],tokenTypeIdx:o[A],tokenType:n[A]}))});let b=!0,w=[];return t.safeMode||r("First Char Optimization",()=>{w=ht(n,(I,A,k)=>{if(typeof A.PATTERN=="string"){const G=A.PATTERN.charCodeAt(0),H=Er(G);$o(I,H,C[k])}else if(ne(A.START_CHARS_HINT)){let G;q(A.START_CHARS_HINT,H=>{const X=typeof H=="string"?H.charCodeAt(0):H,le=Er(X);G!==le&&(G=le,$o(I,le,C[k]))})}else if($r(A.PATTERN))if(A.PATTERN.unicode)b=!1,t.ensureOptimizations&&tl(`${rl} Unable to analyze < ${A.PATTERN.toString()} > pattern.
57
+ The regexp unicode flag is not currently supported by the regexp-to-ast library.
58
+ This will disable the lexer's first char optimizations.
59
+ For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{const G=O$(A.PATTERN,t.ensureOptimizations);he(G)&&(b=!1),q(G,H=>{$o(I,H,C[k])})}else t.ensureOptimizations&&tl(`${rl} TokenType: <${A.name}> is using a custom token pattern without providing <start_chars_hint> parameter.
60
+ This will disable the lexer's first char optimizations.
61
+ For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),b=!1;return I},[])}),{emptyGroups:v,patternIdxToConfig:C,charCodeToPatternIdxToConfig:w,hasCustom:a,canBeOptimized:b}}i(M$,"analyzeTokenTypes");function x$(e,t){let r=[];const n=G$(e);r=r.concat(n.errors);const a=j$(n.valid),s=a.valid;return r=r.concat(a.errors),r=r.concat(F$(s)),r=r.concat(W$(s)),r=r.concat(V$(s,t)),r=r.concat(H$(s)),r}i(x$,"validatePatterns");function F$(e){let t=[];const r=wt(e,n=>$r(n[wn]));return t=t.concat(U$(r)),t=t.concat(B$(r)),t=t.concat(K$(r)),t=t.concat(q$(r)),t=t.concat(z$(r)),t}i(F$,"validateRegExpPattern");function G$(e){const t=wt(e,a=>!U(a,wn)),r=F(t,a=>({message:"Token Type: ->"+a.name+"<- missing static 'PATTERN' property",type:Ie.MISSING_PATTERN,tokenTypes:[a]})),n=Jl(e,t);return{errors:r,valid:n}}i(G$,"findMissingPatterns");function j$(e){const t=wt(e,a=>{const s=a[wn];return!$r(s)&&!wr(s)&&!U(s,"exec")&&!it(s)}),r=F(t,a=>({message:"Token Type: ->"+a.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:Ie.INVALID_PATTERN,tokenTypes:[a]})),n=Jl(e,t);return{errors:r,valid:n}}i(j$,"findInvalidPatterns");var sL=/[^\\][$]/;function U$(e){class t extends Pl{static{i(this,"EndAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitEndAnchor(s){this.found=!0}}const r=wt(e,a=>{const s=a.PATTERN;try{const o=Fs(s),l=new t;return l.visit(o),l.found}catch{return sL.test(s.source)}});return F(r,a=>({message:`Unexpected RegExp Anchor Error:
62
+ Token Type: ->`+a.name+`<- static 'PATTERN' cannot contain end of input anchor '$'
63
+ See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Ie.EOI_ANCHOR_FOUND,tokenTypes:[a]}))}i(U$,"findEndOfInputAnchor");function z$(e){const t=wt(e,n=>n.PATTERN.test(""));return F(t,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' must not match an empty string",type:Ie.EMPTY_MATCH_PATTERN,tokenTypes:[n]}))}i(z$,"findEmptyMatchRegExps");var oL=/[^\\[][\^]|^\^/;function B$(e){class t extends Pl{static{i(this,"StartAnchorFinder")}constructor(){super(...arguments),this.found=!1}visitStartAnchor(s){this.found=!0}}const r=wt(e,a=>{const s=a.PATTERN;try{const o=Fs(s),l=new t;return l.visit(o),l.found}catch{return oL.test(s.source)}});return F(r,a=>({message:`Unexpected RegExp Anchor Error:
64
+ Token Type: ->`+a.name+`<- static 'PATTERN' cannot contain start of input anchor '^'
65
+ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Ie.SOI_ANCHOR_FOUND,tokenTypes:[a]}))}i(B$,"findStartOfInputAnchor");function K$(e){const t=wt(e,n=>{const a=n[wn];return a instanceof RegExp&&(a.multiline||a.global)});return F(t,n=>({message:"Token Type: ->"+n.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:Ie.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[n]}))}i(K$,"findUnsupportedFlags");function q$(e){const t=[];let r=F(e,s=>ht(e,(o,l)=>(s.PATTERN.source===l.PATTERN.source&&!tt(t,l)&&l.PATTERN!==Xe.NA&&(t.push(l),o.push(l)),o),[]));r=xs(r);const n=wt(r,s=>s.length>1);return F(n,s=>{const o=F(s,c=>c.name);return{message:`The same RegExp pattern ->${jt(s).PATTERN}<-has been used in all of the following Token Types: ${o.join(", ")} <-`,type:Ie.DUPLICATE_PATTERNS_FOUND,tokenTypes:s}})}i(q$,"findDuplicatePatterns");function W$(e){const t=wt(e,n=>{if(!U(n,"GROUP"))return!1;const a=n.GROUP;return a!==Xe.SKIPPED&&a!==Xe.NA&&!it(a)});return F(t,n=>({message:"Token Type: ->"+n.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:Ie.INVALID_GROUP_TYPE_FOUND,tokenTypes:[n]}))}i(W$,"findInvalidGroupType");function V$(e,t){const r=wt(e,a=>a.PUSH_MODE!==void 0&&!tt(t,a.PUSH_MODE));return F(r,a=>({message:`Token Type: ->${a.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${a.PUSH_MODE}<-which does not exist`,type:Ie.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[a]}))}i(V$,"findModesThatDoNotExist");function H$(e){const t=[],r=ht(e,(n,a,s)=>{const o=a.PATTERN;return o===Xe.NA||(it(o)?n.push({str:o,idx:s,tokenType:a}):$r(o)&&X$(o)&&n.push({str:o.source,idx:s,tokenType:a})),n},[]);return q(e,(n,a)=>{q(r,({str:s,idx:o,tokenType:l})=>{if(a<o&&Y$(s,n.PATTERN)){const c=`Token: ->${l.name}<- can never be matched.
66
+ Because it appears AFTER the Token Type ->${n.name}<-in the lexer's definition.
67
+ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:c,type:Ie.UNREACHABLE_PATTERN,tokenTypes:[n,l]})}})}),t}i(H$,"findUnreachablePatterns");function Y$(e,t){if($r(t)){if(J$(t))return!1;const r=t.exec(e);return r!==null&&r.index===0}else{if(wr(t))return t(e,0,[],{});if(U(t,"exec"))return t.exec(e,0,[],{});if(typeof t=="string")return t===e;throw Error("non exhaustive match")}}i(Y$,"tryToMatchStrToPattern");function X$(e){return Ua([".","\\","[","]","|","^","$","(",")","?","*","+","{"],r=>e.source.indexOf(r)!==-1)===void 0}i(X$,"noMetaChar");function J$(e){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\?<!)/.test(e.source)}i(J$,"usesLookAheadOrBehind");function cf(e){const t=e.ignoreCase?"i":"";return new RegExp(`^(?:${e.source})`,t)}i(cf,"addStartOfInput");function uf(e){const t=e.ignoreCase?"iy":"y";return new RegExp(`${e.source}`,t)}i(uf,"addStickyFlag");function Z$(e,t,r){const n=[];return U(e,ji)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+ji+`> property in its definition
68
+ `,type:Ie.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),U(e,Vs)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+Vs+`> property in its definition
69
+ `,type:Ie.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),U(e,Vs)&&U(e,ji)&&!U(e.modes,e.defaultMode)&&n.push({message:`A MultiMode Lexer cannot be initialized with a ${ji}: <${e.defaultMode}>which does not exist
70
+ `,type:Ie.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),U(e,Vs)&&q(e.modes,(a,s)=>{q(a,(o,l)=>{if(Ar(o))n.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${s}> at index: <${l}>
71
+ `,type:Ie.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED});else if(U(o,"LONGER_ALT")){const c=ne(o.LONGER_ALT)?o.LONGER_ALT:[o.LONGER_ALT];q(c,u=>{!Ar(u)&&!tt(a,u)&&n.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${u.name}> on token <${o.name}> outside of mode <${s}>
72
+ `,type:Ie.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})}})}),n}i(Z$,"performRuntimeChecks");function Q$(e,t,r){const n=[];let a=!1;const s=xs(xt(xe(e.modes))),o=Zl(s,c=>c[wn]===Xe.NA),l=Cp(r);return t&&q(o,c=>{const u=_p(c,l);if(u!==!1){const d={message:rA(c,u),type:u.issue,tokenType:c};n.push(d)}else U(c,"LINE_BREAKS")?c.LINE_BREAKS===!0&&(a=!0):ec(l,c.PATTERN)&&(a=!0)}),t&&!a&&n.push({message:`Warning: No LINE_BREAKS Found.
73
+ This Lexer has been defined to track line and column information,
74
+ But none of the Token Types can be identified as matching a line terminator.
75
+ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS
76
+ for details.`,type:Ie.NO_LINE_BREAKS_FLAGS}),n}i(Q$,"performWarningRuntimeChecks");function eA(e){const t={},r=dt(e);return q(r,n=>{const a=e[n];if(ne(a))t[n]=[];else throw Error("non exhaustive match")}),t}i(eA,"cloneEmptyGroups");function Ep(e){const t=e.PATTERN;if($r(t))return!1;if(wr(t))return!0;if(U(t,"exec"))return!0;if(it(t))return!1;throw Error("non exhaustive match")}i(Ep,"isCustomPattern");function tA(e){return it(e)&&e.length===1?e.charCodeAt(0):!1}i(tA,"isShortPattern");var lL={test:i(function(e){const t=e.length;for(let r=this.lastIndex;r<t;r++){const n=e.charCodeAt(r);if(n===10)return this.lastIndex=r+1,!0;if(n===13)return e.charCodeAt(r+1)===10?this.lastIndex=r+2:this.lastIndex=r+1,!0}return!1},"test"),lastIndex:0};function _p(e,t){if(U(e,"LINE_BREAKS"))return!1;if($r(e.PATTERN)){try{ec(t,e.PATTERN)}catch(r){return{issue:Ie.IDENTIFY_TERMINATOR,errMsg:r.message}}return!1}else{if(it(e.PATTERN))return!1;if(Ep(e))return{issue:Ie.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}i(_p,"checkLineBreaksIssues");function rA(e,t){if(t.issue===Ie.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
77
+ The problem is in the <${e.name}> Token Type
78
+ Root cause: ${t.errMsg}.
79
+ For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===Ie.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
80
+ The problem is in the <${e.name}> Token Type
81
+ For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}i(rA,"buildLineBreakIssueMessage");function Cp(e){return F(e,r=>it(r)?r.charCodeAt(0):r)}i(Cp,"getCharCodes");function $o(e,t,r){e[t]===void 0?e[t]=[r]:e[t].push(r)}i($o,"addToMapOfArrays");var Ui=256,Ao=[];function Er(e){return e<Ui?e:Ao[e]}i(Er,"charCodeToOptimizedIndex");function nA(){if(he(Ao)){Ao=new Array(65536);for(let e=0;e<65536;e++)Ao[e]=e>255?255+~~(e/255):e}}i(nA,"initCharCodeToOptimizedIndexMap");function Xa(e,t){const r=e.tokenTypeIdx;return r===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[r]===!0}i(Xa,"tokenStructuredMatcher");function hs(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}i(hs,"tokenStructuredMatcherNoCategories");var vm=1,aA={};function Ja(e){const t=iA(e);sA(t),lA(t),oA(t),q(t,r=>{r.isParent=r.categoryMatches.length>0})}i(Ja,"augmentTokenTypes");function iA(e){let t=Ke(e),r=e,n=!0;for(;n;){r=xs(xt(F(r,s=>s.CATEGORIES)));const a=Jl(r,t);t=t.concat(a),he(a)?n=!1:r=a}return t}i(iA,"expandCategories");function sA(e){q(e,t=>{bp(t)||(aA[vm]=t,t.tokenTypeIdx=vm++),ff(t)&&!ne(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),ff(t)||(t.CATEGORIES=[]),cA(t)||(t.categoryMatches=[]),uA(t)||(t.categoryMatchesMap={})})}i(sA,"assignTokenDefaultProps");function oA(e){q(e,t=>{t.categoryMatches=[],q(t.categoryMatchesMap,(r,n)=>{t.categoryMatches.push(aA[n].tokenTypeIdx)})})}i(oA,"assignCategoriesTokensProp");function lA(e){q(e,t=>{Sp([],t)})}i(lA,"assignCategoriesMapProp");function Sp(e,t){q(e,r=>{t.categoryMatchesMap[r.tokenTypeIdx]=!0}),q(t.CATEGORIES,r=>{const n=e.concat(t);tt(n,r)||Sp(n,r)})}i(Sp,"singleAssignCategoriesToksMap");function bp(e){return U(e,"tokenTypeIdx")}i(bp,"hasShortKeyProperty");function ff(e){return U(e,"CATEGORIES")}i(ff,"hasCategoriesProperty");function cA(e){return U(e,"categoryMatches")}i(cA,"hasExtendingTokensTypesProperty");function uA(e){return U(e,"categoryMatchesMap")}i(uA,"hasExtendingTokensTypesMapProperty");function fA(e){return U(e,"tokenTypeIdx")}i(fA,"isTokenType");var df={buildUnableToPopLexerModeMessage(e){return`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(e,t,r,n,a,s){return`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${r} characters.`}},Ie;(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(Ie||(Ie={}));var zi={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
82
+ `,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:df,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(zi);var Xe=class{static{i(this,"Lexer")}constructor(e,t=zi){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(n,a)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;const s=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${s}--> <${n}>`);const{time:o,value:l}=$p(a),c=o>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&c(`${s}<-- <${n}> time: ${o}ms`),this.traceInitIndent--,l}else return a()},typeof t=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
83
+ a boolean 2nd argument is no longer supported`);this.config=pt({},zi,t);const r=this.config.traceInitPerf;r===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof r=="number"&&(this.traceInitMaxIdent=r,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let n,a=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===zi.lineTerminatorsPattern)this.config.lineTerminatorsPattern=lL;else if(this.config.lineTerminatorCharacters===zi.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
84
+ For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(t.safeMode&&t.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),ne(e)?n={modes:{defaultMode:Ke(e)},defaultMode:ji}:(a=!1,n=Ke(e))}),this.config.skipValidations===!1&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(Z$(n,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(Q$(n,this.trackStartLines,this.config.lineTerminatorCharacters))})),n.modes=n.modes?n.modes:{},q(n.modes,(o,l)=>{n.modes[l]=Zl(o,c=>Ar(c))});const s=dt(n.modes);if(q(n.modes,(o,l)=>{this.TRACE_INIT(`Mode: <${l}> processing`,()=>{if(this.modes.push(l),this.config.skipValidations===!1&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(x$(o,s))}),he(this.lexerDefinitionErrors)){Ja(o);let c;this.TRACE_INIT("analyzeTokenTypes",()=>{c=M$(o,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[l]=c.patternIdxToConfig,this.charCodeToPatternIdxToConfig[l]=c.charCodeToPatternIdxToConfig,this.emptyGroups=pt({},this.emptyGroups,c.emptyGroups),this.hasCustom=c.hasCustom||this.hasCustom,this.canModeBeOptimized[l]=c.canBeOptimized}})}),this.defaultMode=n.defaultMode,!he(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){const l=F(this.lexerDefinitionErrors,c=>c.message).join(`-----------------------
85
+ `);throw new Error(`Errors detected in definition of Lexer:
86
+ `+l)}q(this.lexerDefinitionWarning,o=>{Rp(o.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(D$?(this.chopInput=Ga,this.match=this.matchWithTest):(this.updateLastIndex=Me,this.match=this.matchWithExec),a&&(this.handleModes=Me),this.trackStartLines===!1&&(this.computeNewColumn=Ga),this.trackEndLines===!1&&(this.updateTokenEndLineColumnLocation=Me),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid <positionTracking> config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{const o=ht(this.canModeBeOptimized,(l,c,u)=>(c===!1&&l.push(u),l),[]);if(t.ensureOptimizations&&!he(o))throw Error(`Lexer Modes: < ${o.join(", ")} > cannot be optimized.
87
+ Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
88
+ Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{k$()}),this.TRACE_INIT("toFastProperties",()=>{Ap(this)})})}tokenize(e,t=this.defaultMode){if(!he(this.lexerDefinitionErrors)){const n=F(this.lexerDefinitionErrors,a=>a.message).join(`-----------------------
89
+ `);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer:
90
+ `+n)}return this.tokenizeInternal(e,t)}tokenizeInternal(e,t){let r,n,a,s,o,l,c,u,f,d,h,y,v,C,b;const w=e,I=w.length;let A=0,k=0;const G=this.hasCustom?0:Math.floor(e.length/10),H=new Array(G),X=[];let le=this.trackStartLines?1:void 0,ce=this.trackStartLines?1:void 0;const Ne=eA(this.emptyGroups),P=this.trackStartLines,_=this.config.lineTerminatorsPattern;let g=0,E=[],T=[];const R=[],S=[];Object.freeze(S);let O;function M(){return E}i(M,"getPossiblePatternsSlow");function D(te){const fe=Er(te),ct=T[fe];return ct===void 0?S:ct}i(D,"getPossiblePatternsOptimized");const z=i(te=>{if(R.length===1&&te.tokenType.PUSH_MODE===void 0){const fe=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(te);X.push({offset:te.startOffset,line:te.startLine,column:te.startColumn,length:te.image.length,message:fe})}else{R.pop();const fe=bn(R);E=this.patternIdxToConfig[fe],T=this.charCodeToPatternIdxToConfig[fe],g=E.length;const ct=this.canModeBeOptimized[fe]&&this.config.safeMode===!1;T&&ct?O=D:O=M}},"pop_mode");function B(te){R.push(te),T=this.charCodeToPatternIdxToConfig[te],E=this.patternIdxToConfig[te],g=E.length,g=E.length;const fe=this.canModeBeOptimized[te]&&this.config.safeMode===!1;T&&fe?O=D:O=M}i(B,"push_mode"),B.call(this,t);let Z;const J=this.config.recoveryEnabled;for(;A<I;){l=null;const te=w.charCodeAt(A),fe=O(te),ct=fe.length;for(r=0;r<ct;r++){Z=fe[r];const Re=Z.pattern;c=null;const Oe=Z.short;if(Oe!==!1?te===Oe&&(l=Re):Z.isCustom===!0?(b=Re.exec(w,A,H,Ne),b!==null?(l=b[0],b.payload!==void 0&&(c=b.payload)):l=null):(this.updateLastIndex(Re,A),l=this.match(Re,e,A)),l!==null){if(o=Z.longerAlt,o!==void 0){const qe=o.length;for(a=0;a<qe;a++){const Se=E[o[a]],Q=Se.pattern;if(u=null,Se.isCustom===!0?(b=Q.exec(w,A,H,Ne),b!==null?(s=b[0],b.payload!==void 0&&(u=b.payload)):s=null):(this.updateLastIndex(Q,A),s=this.match(Q,e,A)),s&&s.length>l.length){l=s,c=u,Z=Se;break}}}break}}if(l!==null){if(f=l.length,d=Z.group,d!==void 0&&(h=Z.tokenTypeIdx,y=this.createTokenInstance(l,A,h,Z.tokenType,le,ce,f),this.handlePayload(y,c),d===!1?k=this.addToken(H,k,y):Ne[d].push(y)),e=this.chopInput(e,f),A=A+f,ce=this.computeNewColumn(ce,f),P===!0&&Z.canLineTerminator===!0){let Re=0,Oe,qe;_.lastIndex=0;do Oe=_.test(l),Oe===!0&&(qe=_.lastIndex-1,Re++);while(Oe===!0);Re!==0&&(le=le+Re,ce=f-qe,this.updateTokenEndLineColumnLocation(y,d,qe,Re,le,ce,f))}this.handleModes(Z,z,B,y)}else{const Re=A,Oe=le,qe=ce;let Se=J===!1;for(;Se===!1&&A<I;)for(e=this.chopInput(e,1),A++,n=0;n<g;n++){const Q=E[n],rt=Q.pattern,me=Q.short;if(me!==!1?w.charCodeAt(A)===me&&(Se=!0):Q.isCustom===!0?Se=rt.exec(w,A,H,Ne)!==null:(this.updateLastIndex(rt,A),Se=rt.exec(e)!==null),Se===!0)break}if(v=A-Re,ce=this.computeNewColumn(ce,v),C=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(w,Re,v,Oe,qe,bn(R)),X.push({offset:Re,line:Oe,column:qe,length:v,message:C}),J===!1)break}}return this.hasCustom||(H.length=k),{tokens:H,groups:Ne,errors:X}}handleModes(e,t,r,n){if(e.pop===!0){const a=e.push;t(n),a!==void 0&&r.call(this,a)}else e.push!==void 0&&r.call(this,e.push)}chopInput(e,t){return e.substring(t)}updateLastIndex(e,t){e.lastIndex=t}updateTokenEndLineColumnLocation(e,t,r,n,a,s,o){let l,c;t!==void 0&&(l=r===o-1,c=l?-1:0,n===1&&l===!0||(e.endLine=a+c,e.endColumn=s-1+-c))}computeNewColumn(e,t){return e+t}createOffsetOnlyToken(e,t,r,n){return{image:e,startOffset:t,tokenTypeIdx:r,tokenType:n}}createStartOnlyToken(e,t,r,n,a,s){return{image:e,startOffset:t,startLine:a,startColumn:s,tokenTypeIdx:r,tokenType:n}}createFullToken(e,t,r,n,a,s,o){return{image:e,startOffset:t,endOffset:t+o-1,startLine:a,endLine:a,startColumn:s,endColumn:s+o-1,tokenTypeIdx:r,tokenType:n}}addTokenUsingPush(e,t,r){return e.push(r),t}addTokenUsingMemberAccess(e,t,r){return e[t]=r,t++,t}handlePayloadNoCustom(e,t){}handlePayloadWithCustom(e,t){t!==null&&(e.payload=t)}matchWithTest(e,t,r){return e.test(t)===!0?t.substring(r,e.lastIndex):null}matchWithExec(e,t){const r=e.exec(t);return r!==null?r[0]:null}};Xe.SKIPPED="This marks a skipped Token pattern, this means each token identified by it will be consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.";Xe.NA=/NOT_APPLICABLE/;function _n(e){return wp(e)?e.LABEL:e.name}i(_n,"tokenLabel");function wp(e){return it(e.LABEL)&&e.LABEL!==""}i(wp,"hasTokenLabel");var cL="parent",Tm="categories",Rm="label",$m="group",Am="push_mode",Em="pop_mode",_m="longer_alt",Cm="line_breaks",Sm="start_chars_hint";function Na(e){return dA(e)}i(Na,"createToken");function dA(e){const t=e.pattern,r={};if(r.name=e.name,Ar(t)||(r.PATTERN=t),U(e,cL))throw`The parent property is no longer supported.
91
+ See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return U(e,Tm)&&(r.CATEGORIES=e[Tm]),Ja([r]),U(e,Rm)&&(r.LABEL=e[Rm]),U(e,$m)&&(r.GROUP=e[$m]),U(e,Em)&&(r.POP_MODE=e[Em]),U(e,Am)&&(r.PUSH_MODE=e[Am]),U(e,_m)&&(r.LONGER_ALT=e[_m]),U(e,Cm)&&(r.LINE_BREAKS=e[Cm]),U(e,Sm)&&(r.START_CHARS_HINT=e[Sm]),r}i(dA,"createTokenInternal");var jr=Na({name:"EOF",pattern:Xe.NA});Ja([jr]);function Gs(e,t,r,n,a,s,o,l){return{image:t,startOffset:r,endOffset:n,startLine:a,endLine:s,startColumn:o,endColumn:l,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}i(Gs,"createTokenInstance");function Ip(e,t){return Xa(e,t)}i(Ip,"tokenMatcher");var ba={buildMismatchTokenMessage({expected:e,actual:t,previous:r,ruleName:n}){return`Expecting ${wp(e)?`--> ${_n(e)} <--`:`token of type --> ${e.name} <--`} but found --> '${t.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:e,ruleName:t}){return"Redundant input, expecting EOF but found: "+e.image},buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,previous:r,customUserDescription:n,ruleName:a}){const s="Expecting: ",l=`
92
+ but found: '`+jt(t).image+"'";if(n)return s+n+l;{const c=ht(e,(h,y)=>h.concat(y),[]),u=F(c,h=>`[${F(h,y=>_n(y)).join(", ")}]`),d=`one of these possible Token sequences:
93
+ ${F(u,(h,y)=>` ${y+1}. ${h}`).join(`
94
+ `)}`;return s+d+l}},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:r,ruleName:n}){const a="Expecting: ",o=`
95
+ but found: '`+jt(t).image+"'";if(r)return a+r+o;{const c=`expecting at least one iteration which starts with one of these possible Token sequences::
96
+ <${F(e,u=>`[${F(u,f=>_n(f)).join(",")}]`).join(" ,")}>`;return a+c+o}}};Object.freeze(ba);var uL={buildRuleNotFoundError(e,t){return"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+`<-
97
+ inside top level rule: ->`+e.name+"<-"}},$n={buildDuplicateFoundError(e,t){function r(f){return f instanceof Te?f.terminalType.name:f instanceof Ze?f.nonTerminalName:""}i(r,"getExtraProductionArgument");const n=e.name,a=jt(t),s=a.idx,o=Ot(a),l=r(a),c=s>0;let u=`->${o}${c?s:""}<- ${l?`with argument: ->${l}<-`:""}
98
+ appears more than once (${t.length} times) in the top level rule: ->${n}<-.
99
+ For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES
100
+ `;return u=u.replace(/[ \t]+/g," "),u=u.replace(/\s\s+/g,`
101
+ `),u},buildNamespaceConflictError(e){return`Namespace conflict found in grammar.
102
+ The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>.
103
+ To resolve this make sure each Terminal and Non-Terminal names are unique
104
+ This is easy to accomplish by using the convention that Terminal names start with an uppercase letter
105
+ and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(e){const t=F(e.prefixPath,a=>_n(a)).join(", "),r=e.alternation.idx===0?"":e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(" ,")}> due to common lookahead prefix
106
+ in <OR${r}> inside <${e.topLevelRule.name}> Rule,
107
+ <${t}> may appears as a prefix path in all these alternatives.
108
+ See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX
109
+ For Further details.`},buildAlternationAmbiguityError(e){const t=F(e.prefixPath,a=>_n(a)).join(", "),r=e.alternation.idx===0?"":e.alternation.idx;let n=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(" ,")}> in <OR${r}> inside <${e.topLevelRule.name}> Rule,
110
+ <${t}> may appears as a prefix path in all these alternatives.
111
+ `;return n=n+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
112
+ For Further details.`,n},buildEmptyRepetitionError(e){let t=Ot(e.repetition);return e.repetition.idx!==0&&(t+=e.repetition.idx),`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens.
113
+ This could lead to an infinite loop.`},buildTokenNameError(e){return"deprecated"},buildEmptyAlternationError(e){return`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in <OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.
114
+ Only the last alternative may be an empty alternative.`},buildTooManyAlternativesError(e){return`An Alternation cannot have more than 256 alternatives:
115
+ <OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.
116
+ has ${e.alternation.definition.length+1} alternatives.`},buildLeftRecursionError(e){const t=e.topLevelRule.name,r=F(e.leftRecursionPath,s=>s.name),n=`${t} --> ${r.concat([t]).join(" --> ")}`;return`Left Recursion found in grammar.
117
+ rule: <${t}> can be invoked from itself (directly or indirectly)
118
+ without consuming any Tokens. The grammar path that causes this is:
119
+ ${n}
120
+ To fix this refactor your grammar to remove the left recursion.
121
+ see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(e){return"deprecated"},buildDuplicateRuleNameError(e){let t;return e.topLevelRule instanceof Va?t=e.topLevelRule.name:t=e.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}};function pA(e,t){const r=new fL(e,t);return r.resolveRefs(),r.errors}i(pA,"resolveGrammar");var fL=class extends Ha{static{i(this,"GastRefResolverVisitor")}constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){q(xe(this.nameToTopRule),e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){const t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{const r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:r,type:Qe.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}},dL=class extends Ql{static{i(this,"AbstractNextPossibleTokensWalker")}constructor(e,t){super(),this.topProd=e,this.path=t,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=Ke(this.path.ruleStack).reverse(),this.occurrenceStack=Ke(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,t=[]){this.found||super.walk(e,t)}walkProdRef(e,t,r){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){const n=t.concat(r);this.updateExpectedNext(),this.walk(e.referencedRule,n)}}updateExpectedNext(){he(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},pL=class extends dL{static{i(this,"NextAfterTokenWalker")}constructor(e,t){super(e,t),this.path=t,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,t,r){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){const n=t.concat(r),a=new st({definition:n});this.possibleTokTypes=Ya(a),this.found=!0}}},tc=class extends Ql{static{i(this,"AbstractNextTerminalAfterProductionWalker")}constructor(e,t){super(),this.topRule=e,this.occurrence=t,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},hL=class extends tc{static{i(this,"NextTerminalAfterManyWalker")}walkMany(e,t,r){if(e.idx===this.occurrence){const n=jt(t.concat(r));this.result.isEndOfRule=n===void 0,n instanceof Te&&(this.result.token=n.terminalType,this.result.occurrence=n.idx)}else super.walkMany(e,t,r)}},bm=class extends tc{static{i(this,"NextTerminalAfterManySepWalker")}walkManySep(e,t,r){if(e.idx===this.occurrence){const n=jt(t.concat(r));this.result.isEndOfRule=n===void 0,n instanceof Te&&(this.result.token=n.terminalType,this.result.occurrence=n.idx)}else super.walkManySep(e,t,r)}},mL=class extends tc{static{i(this,"NextTerminalAfterAtLeastOneWalker")}walkAtLeastOne(e,t,r){if(e.idx===this.occurrence){const n=jt(t.concat(r));this.result.isEndOfRule=n===void 0,n instanceof Te&&(this.result.token=n.terminalType,this.result.occurrence=n.idx)}else super.walkAtLeastOne(e,t,r)}},wm=class extends tc{static{i(this,"NextTerminalAfterAtLeastOneSepWalker")}walkAtLeastOneSep(e,t,r){if(e.idx===this.occurrence){const n=jt(t.concat(r));this.result.isEndOfRule=n===void 0,n instanceof Te&&(this.result.token=n.terminalType,this.result.occurrence=n.idx)}else super.walkAtLeastOneSep(e,t,r)}};function il(e,t,r=[]){r=Ke(r);let n=[],a=0;function s(l){return l.concat(ze(e,a+1))}i(s,"remainingPathWith");function o(l){const c=il(s(l),t,r);return n.concat(c)}for(i(o,"getAlternativesForProd");r.length<t&&a<e.length;){const l=e[a];if(l instanceof st)return o(l.definition);if(l instanceof Ze)return o(l.definition);if(l instanceof Be)n=o(l.definition);else if(l instanceof mt){const c=l.definition.concat([new we({definition:l.definition})]);return o(c)}else if(l instanceof gt){const c=[new st({definition:l.definition}),new we({definition:[new Te({terminalType:l.separator})].concat(l.definition)})];return o(c)}else if(l instanceof ot){const c=l.definition.concat([new we({definition:[new Te({terminalType:l.separator})].concat(l.definition)})]);n=o(c)}else if(l instanceof we){const c=l.definition.concat([new we({definition:l.definition})]);n=o(c)}else{if(l instanceof lt)return q(l.definition,c=>{he(c.definition)===!1&&(n=o(c.definition))}),n;if(l instanceof Te)r.push(l.terminalType);else throw Error("non exhaustive match")}a++}return n.push({partialPath:r,suffixDef:ze(e,a)}),n}i(il,"possiblePathsFrom");function Np(e,t,r,n){const a="EXIT_NONE_TERMINAL",s=[a],o="EXIT_ALTERNATIVE";let l=!1;const c=t.length,u=c-n-1,f=[],d=[];for(d.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!he(d);){const h=d.pop();if(h===o){l&&bn(d).idx<=u&&d.pop();continue}const y=h.def,v=h.idx,C=h.ruleStack,b=h.occurrenceStack;if(he(y))continue;const w=y[0];if(w===a){const I={idx:v,def:ze(y),ruleStack:ds(C),occurrenceStack:ds(b)};d.push(I)}else if(w instanceof Te)if(v<c-1){const I=v+1,A=t[I];if(r(A,w.terminalType)){const k={idx:I,def:ze(y),ruleStack:C,occurrenceStack:b};d.push(k)}}else if(v===c-1)f.push({nextTokenType:w.terminalType,nextTokenOccurrence:w.idx,ruleStack:C,occurrenceStack:b}),l=!0;else throw Error("non exhaustive match");else if(w instanceof Ze){const I=Ke(C);I.push(w.nonTerminalName);const A=Ke(b);A.push(w.idx);const k={idx:v,def:w.definition.concat(s,ze(y)),ruleStack:I,occurrenceStack:A};d.push(k)}else if(w instanceof Be){const I={idx:v,def:ze(y),ruleStack:C,occurrenceStack:b};d.push(I),d.push(o);const A={idx:v,def:w.definition.concat(ze(y)),ruleStack:C,occurrenceStack:b};d.push(A)}else if(w instanceof mt){const I=new we({definition:w.definition,idx:w.idx}),A=w.definition.concat([I],ze(y)),k={idx:v,def:A,ruleStack:C,occurrenceStack:b};d.push(k)}else if(w instanceof gt){const I=new Te({terminalType:w.separator}),A=new we({definition:[I].concat(w.definition),idx:w.idx}),k=w.definition.concat([A],ze(y)),G={idx:v,def:k,ruleStack:C,occurrenceStack:b};d.push(G)}else if(w instanceof ot){const I={idx:v,def:ze(y),ruleStack:C,occurrenceStack:b};d.push(I),d.push(o);const A=new Te({terminalType:w.separator}),k=new we({definition:[A].concat(w.definition),idx:w.idx}),G=w.definition.concat([k],ze(y)),H={idx:v,def:G,ruleStack:C,occurrenceStack:b};d.push(H)}else if(w instanceof we){const I={idx:v,def:ze(y),ruleStack:C,occurrenceStack:b};d.push(I),d.push(o);const A=new we({definition:w.definition,idx:w.idx}),k=w.definition.concat([A],ze(y)),G={idx:v,def:k,ruleStack:C,occurrenceStack:b};d.push(G)}else if(w instanceof lt)for(let I=w.definition.length-1;I>=0;I--){const A=w.definition[I],k={idx:v,def:A.definition.concat(ze(y)),ruleStack:C,occurrenceStack:b};d.push(k),d.push(o)}else if(w instanceof st)d.push({idx:v,def:w.definition.concat(ze(y)),ruleStack:C,occurrenceStack:b});else if(w instanceof Va)d.push(hA(w,v,C,b));else throw Error("non exhaustive match")}return f}i(Np,"nextPossibleTokensAfter");function hA(e,t,r,n){const a=Ke(r);a.push(e.name);const s=Ke(n);return s.push(1),{idx:t,def:e.definition,ruleStack:a,occurrenceStack:s}}i(hA,"expandTopLevelRule");var _e;(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(_e||(_e={}));function rc(e){if(e instanceof Be||e==="Option")return _e.OPTION;if(e instanceof we||e==="Repetition")return _e.REPETITION;if(e instanceof mt||e==="RepetitionMandatory")return _e.REPETITION_MANDATORY;if(e instanceof gt||e==="RepetitionMandatoryWithSeparator")return _e.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof ot||e==="RepetitionWithSeparator")return _e.REPETITION_WITH_SEPARATOR;if(e instanceof lt||e==="Alternation")return _e.ALTERNATION;throw Error("non exhaustive match")}i(rc,"getProdType");function pf(e){const{occurrence:t,rule:r,prodType:n,maxLookahead:a}=e,s=rc(n);return s===_e.ALTERNATION?js(t,r,a):Us(t,r,s,a)}i(pf,"getLookaheadPaths");function mA(e,t,r,n,a,s){const o=js(e,t,r),l=Pp(o)?hs:Xa;return s(o,n,l,a)}i(mA,"buildLookaheadFuncForOr");function gA(e,t,r,n,a,s){const o=Us(e,t,a,r),l=Pp(o)?hs:Xa;return s(o[0],l,n)}i(gA,"buildLookaheadFuncForOptionalProd");function yA(e,t,r,n){const a=e.length,s=Ft(e,o=>Ft(o,l=>l.length===1));if(t)return function(o){const l=F(o,c=>c.GATE);for(let c=0;c<a;c++){const u=e[c],f=u.length,d=l[c];if(!(d!==void 0&&d.call(this)===!1))e:for(let h=0;h<f;h++){const y=u[h],v=y.length;for(let C=0;C<v;C++){const b=this.LA(C+1);if(r(b,y[C])===!1)continue e}return c}}};if(s&&!n){const o=F(e,c=>xt(c)),l=ht(o,(c,u,f)=>(q(u,d=>{U(c,d.tokenTypeIdx)||(c[d.tokenTypeIdx]=f),q(d.categoryMatches,h=>{U(c,h)||(c[h]=f)})}),c),{});return function(){const c=this.LA(1);return l[c.tokenTypeIdx]}}else return function(){for(let o=0;o<a;o++){const l=e[o],c=l.length;e:for(let u=0;u<c;u++){const f=l[u],d=f.length;for(let h=0;h<d;h++){const y=this.LA(h+1);if(r(y,f[h])===!1)continue e}return o}}}}i(yA,"buildAlternativesLookAheadFunc");function vA(e,t,r){const n=Ft(e,s=>s.length===1),a=e.length;if(n&&!r){const s=xt(e);if(s.length===1&&he(s[0].categoryMatches)){const l=s[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{const o=ht(s,(l,c,u)=>(l[c.tokenTypeIdx]=!0,q(c.categoryMatches,f=>{l[f]=!0}),l),[]);return function(){const l=this.LA(1);return o[l.tokenTypeIdx]===!0}}}else return function(){e:for(let s=0;s<a;s++){const o=e[s],l=o.length;for(let c=0;c<l;c++){const u=this.LA(c+1);if(t(u,o[c])===!1)continue e}return!0}return!1}}i(vA,"buildSingleAlternativeLookaheadFunction");var gL=class extends Ql{static{i(this,"RestDefinitionFinderWalker")}constructor(e,t,r){super(),this.topProd=e,this.targetOccurrence=t,this.targetProdType=r}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,t,r,n){return e.idx===this.targetOccurrence&&this.targetProdType===t?(this.restDef=r.concat(n),!0):!1}walkOption(e,t,r){this.checkIsTarget(e,_e.OPTION,t,r)||super.walkOption(e,t,r)}walkAtLeastOne(e,t,r){this.checkIsTarget(e,_e.REPETITION_MANDATORY,t,r)||super.walkOption(e,t,r)}walkAtLeastOneSep(e,t,r){this.checkIsTarget(e,_e.REPETITION_MANDATORY_WITH_SEPARATOR,t,r)||super.walkOption(e,t,r)}walkMany(e,t,r){this.checkIsTarget(e,_e.REPETITION,t,r)||super.walkOption(e,t,r)}walkManySep(e,t,r){this.checkIsTarget(e,_e.REPETITION_WITH_SEPARATOR,t,r)||super.walkOption(e,t,r)}},TA=class extends Ha{static{i(this,"InsideDefinitionFinderVisitor")}constructor(e,t,r){super(),this.targetOccurrence=e,this.targetProdType=t,this.targetRef=r,this.result=[]}checkIsTarget(e,t){e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.targetRef===void 0||e===this.targetRef)&&(this.result=e.definition)}visitOption(e){this.checkIsTarget(e,_e.OPTION)}visitRepetition(e){this.checkIsTarget(e,_e.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,_e.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,_e.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,_e.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,_e.ALTERNATION)}};function hf(e){const t=new Array(e);for(let r=0;r<e;r++)t[r]=[];return t}i(hf,"initializeArrayOfArrays");function Eo(e){let t=[""];for(let r=0;r<e.length;r++){const n=e[r],a=[];for(let s=0;s<t.length;s++){const o=t[s];a.push(o+"_"+n.tokenTypeIdx);for(let l=0;l<n.categoryMatches.length;l++){const c="_"+n.categoryMatches[l];a.push(o+c)}}t=a}return t}i(Eo,"pathToHashKeys");function RA(e,t,r){for(let n=0;n<e.length;n++){if(n===r)continue;const a=e[n];for(let s=0;s<t.length;s++){const o=t[s];if(a[o]===!0)return!1}}return!0}i(RA,"isUniquePrefixHash");function kp(e,t){const r=F(e,o=>il([o],1)),n=hf(r.length),a=F(r,o=>{const l={};return q(o,c=>{const u=Eo(c.partialPath);q(u,f=>{l[f]=!0})}),l});let s=r;for(let o=1;o<=t;o++){const l=s;s=hf(l.length);for(let c=0;c<l.length;c++){const u=l[c];for(let f=0;f<u.length;f++){const d=u[f].partialPath,h=u[f].suffixDef,y=Eo(d);if(RA(a,y,c)||he(h)||d.length===t){const C=n[c];if(sl(C,d)===!1){C.push(d);for(let b=0;b<y.length;b++){const w=y[b];a[c][w]=!0}}}else{const C=il(h,o+1,d);s[c]=s[c].concat(C),q(C,b=>{const w=Eo(b.partialPath);q(w,I=>{a[c][I]=!0})})}}}}return n}i(kp,"lookAheadSequenceFromAlternatives");function js(e,t,r,n){const a=new TA(e,_e.ALTERNATION,n);return t.accept(a),kp(a.result,r)}i(js,"getLookaheadPathsForOr");function Us(e,t,r,n){const a=new TA(e,r);t.accept(a);const s=a.result,l=new gL(t,e,r).startWalking(),c=new st({definition:s}),u=new st({definition:l});return kp([c,u],n)}i(Us,"getLookaheadPathsForOptionalProd");function sl(e,t){e:for(let r=0;r<e.length;r++){const n=e[r];if(n.length===t.length){for(let a=0;a<n.length;a++){const s=t[a],o=n[a];if((s===o||o.categoryMatchesMap[s.tokenTypeIdx]!==void 0)===!1)continue e}return!0}}return!1}i(sl,"containsPath");function $A(e,t){return e.length<t.length&&Ft(e,(r,n)=>{const a=t[n];return r===a||a.categoryMatchesMap[r.tokenTypeIdx]})}i($A,"isStrictPrefixOfPath");function Pp(e){return Ft(e,t=>Ft(t,r=>Ft(r,n=>he(n.categoryMatches))))}i(Pp,"areTokenCategoriesNotUsed");function AA(e){const t=e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName});return F(t,r=>Object.assign({type:Qe.CUSTOM_LOOKAHEAD_VALIDATION},r))}i(AA,"validateLookahead");function EA(e,t,r,n){const a=_t(e,c=>_A(c,r)),s=LA(e,t,r),o=_t(e,c=>NA(c,r)),l=_t(e,c=>SA(c,e,n,r));return a.concat(s,o,l)}i(EA,"validateGrammar");function _A(e,t){const r=new yL;e.accept(r);const n=r.allProductions,a=kO(n,CA),s=Ut(a,l=>l.length>1);return F(xe(s),l=>{const c=jt(l),u=t.buildDuplicateFoundError(e,l),f=Ot(c),d={message:u,type:Qe.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:f,occurrence:c.idx},h=Op(c);return h&&(d.parameter=h),d})}i(_A,"validateDuplicateProductions");function CA(e){return`${Ot(e)}_#_${e.idx}_#_${Op(e)}`}i(CA,"identifyProductionForDuplicates");function Op(e){return e instanceof Te?e.terminalType.name:e instanceof Ze?e.nonTerminalName:""}i(Op,"getExtraProductionArgument");var yL=class extends Ha{static{i(this,"OccurrenceValidationCollector")}constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}};function SA(e,t,r,n){const a=[];if(ht(t,(o,l)=>l.name===e.name?o+1:o,0)>1){const o=n.buildDuplicateRuleNameError({topLevelRule:e,grammarName:r});a.push({message:o,type:Qe.DUPLICATE_RULE_NAME,ruleName:e.name})}return a}i(SA,"validateRuleDoesNotAlreadyExist");function bA(e,t,r){const n=[];let a;return tt(t,e)||(a=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${r}<-as it is not defined in any of the super grammars `,n.push({message:a,type:Qe.INVALID_RULE_OVERRIDE,ruleName:e})),n}i(bA,"validateRuleIsOverridden");function Lp(e,t,r,n=[]){const a=[],s=rs(t.definition);if(he(s))return[];{const o=e.name;tt(s,e)&&a.push({message:r.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:n}),type:Qe.LEFT_RECURSION,ruleName:o});const c=Jl(s,n.concat([e])),u=_t(c,f=>{const d=Ke(n);return d.push(f),Lp(e,f,r,d)});return a.concat(u)}}i(Lp,"validateNoLeftRecursion");function rs(e){let t=[];if(he(e))return t;const r=jt(e);if(r instanceof Ze)t.push(r.referencedRule);else if(r instanceof st||r instanceof Be||r instanceof mt||r instanceof gt||r instanceof ot||r instanceof we)t=t.concat(rs(r.definition));else if(r instanceof lt)t=xt(F(r.definition,s=>rs(s.definition)));else if(!(r instanceof Te))throw Error("non exhaustive match");const n=ps(r),a=e.length>1;if(n&&a){const s=ze(e);return t.concat(rs(s))}else return t}i(rs,"getFirstNoneTerminal");var Dp=class extends Ha{static{i(this,"OrCollector")}constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}};function wA(e,t){const r=new Dp;e.accept(r);const n=r.alternations;return _t(n,s=>{const o=ds(s.definition);return _t(o,(l,c)=>{const u=Np([l],[],Xa,1);return he(u)?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:c}),type:Qe.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:c+1}]:[]})})}i(wA,"validateEmptyOrAlternative");function IA(e,t,r){const n=new Dp;e.accept(n);let a=n.alternations;return a=Zl(a,o=>o.ignoreAmbiguities===!0),_t(a,o=>{const l=o.idx,c=o.maxLookahead||t,u=js(l,e,c,o),f=PA(u,o,e,r),d=OA(u,o,e,r);return f.concat(d)})}i(IA,"validateAmbiguousAlternationAlternatives");var vL=class extends Ha{static{i(this,"RepetitionCollector")}constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}};function NA(e,t){const r=new Dp;e.accept(r);const n=r.alternations;return _t(n,s=>s.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Qe.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}]:[])}i(NA,"validateTooManyAlts");function kA(e,t,r){const n=[];return q(e,a=>{const s=new vL;a.accept(s);const o=s.allProductions;q(o,l=>{const c=rc(l),u=l.maxLookahead||t,f=l.idx,h=Us(f,a,c,u)[0];if(he(xt(h))){const y=r.buildEmptyRepetitionError({topLevelRule:a,repetition:l});n.push({message:y,type:Qe.NO_NON_EMPTY_LOOKAHEAD,ruleName:a.name})}})}),n}i(kA,"validateSomeNonEmptyLookaheadPath");function PA(e,t,r,n){const a=[],s=ht(e,(l,c,u)=>(t.definition[u].ignoreAmbiguities===!0||q(c,f=>{const d=[u];q(e,(h,y)=>{u!==y&&sl(h,f)&&t.definition[y].ignoreAmbiguities!==!0&&d.push(y)}),d.length>1&&!sl(a,f)&&(a.push(f),l.push({alts:d,path:f}))}),l),[]);return F(s,l=>{const c=F(l.alts,f=>f+1);return{message:n.buildAlternationAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:c,prefixPath:l.path}),type:Qe.AMBIGUOUS_ALTS,ruleName:r.name,occurrence:t.idx,alternatives:l.alts}})}i(PA,"checkAlternativesAmbiguities");function OA(e,t,r,n){const a=ht(e,(o,l,c)=>{const u=F(l,f=>({idx:c,path:f}));return o.concat(u)},[]);return xs(_t(a,o=>{if(t.definition[o.idx].ignoreAmbiguities===!0)return[];const c=o.idx,u=o.path,f=wt(a,h=>t.definition[h.idx].ignoreAmbiguities!==!0&&h.idx<c&&$A(h.path,u));return F(f,h=>{const y=[h.idx+1,c+1],v=t.idx===0?"":t.idx;return{message:n.buildAlternationPrefixAmbiguityError({topLevelRule:r,alternation:t,ambiguityIndices:y,prefixPath:h.path}),type:Qe.AMBIGUOUS_PREFIX_ALTS,ruleName:r.name,occurrence:v,alternatives:y}})}))}i(OA,"checkPrefixAlternativesAmbiguities");function LA(e,t,r){const n=[],a=F(t,s=>s.name);return q(e,s=>{const o=s.name;if(tt(a,o)){const l=r.buildNamespaceConflictError(s);n.push({message:l,type:Qe.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:o})}}),n}i(LA,"checkTerminalAndNoneTerminalsNameSpace");function DA(e){const t=vp(e,{errMsgProvider:uL}),r={};return q(e.rules,n=>{r[n.name]=n}),pA(r,t.errMsgProvider)}i(DA,"resolveGrammar");function MA(e){return e=vp(e,{errMsgProvider:$n}),EA(e.rules,e.tokenTypes,e.errMsgProvider,e.grammarName)}i(MA,"validateGrammar");var xA="MismatchedTokenException",FA="NoViableAltException",GA="EarlyExitException",jA="NotAllInputParsedException",UA=[xA,FA,GA,jA];Object.freeze(UA);function ms(e){return tt(UA,e.name)}i(ms,"isRecognitionException");var nc=class extends Error{static{i(this,"RecognitionException")}constructor(e,t){super(e),this.token=t,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},zA=class extends nc{static{i(this,"MismatchedTokenException")}constructor(e,t,r){super(e,t),this.previousToken=r,this.name=xA}},TL=class extends nc{static{i(this,"NoViableAltException")}constructor(e,t,r){super(e,t),this.previousToken=r,this.name=FA}},RL=class extends nc{static{i(this,"NotAllInputParsedException")}constructor(e,t){super(e,t),this.name=jA}},$L=class extends nc{static{i(this,"EarlyExitException")}constructor(e,t,r){super(e,t),this.previousToken=r,this.name=GA}},Lc={},BA="InRuleRecoveryException",AL=class extends Error{static{i(this,"InRuleRecoveryException")}constructor(e){super(e),this.name=BA}},EL=class{static{i(this,"Recoverable")}initRecoverable(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=U(e,"recoveryEnabled")?e.recoveryEnabled:_r.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=KA)}getTokenToInsert(e){const t=Gs(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return t.isInsertedInRecovery=!0,t}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,t,r,n){const a=this.findReSyncTokenType(),s=this.exportLexerState(),o=[];let l=!1;const c=this.LA(1);let u=this.LA(1);const f=i(()=>{const d=this.LA(0),h=this.errorMessageProvider.buildMismatchTokenMessage({expected:n,actual:c,previous:d,ruleName:this.getCurrRuleFullName()}),y=new zA(h,c,this.LA(0));y.resyncedTokens=ds(o),this.SAVE_ERROR(y)},"generateErrorMessage");for(;!l;)if(this.tokenMatcher(u,n)){f();return}else if(r.call(this)){f(),e.apply(this,t);return}else this.tokenMatcher(u,a)?l=!0:(u=this.SKIP_TOKEN(),this.addToResyncTokens(u,o));this.importLexerState(s)}shouldInRepetitionRecoveryBeTried(e,t,r){return!(r===!1||this.tokenMatcher(this.LA(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))}getFollowsForInRuleRecovery(e,t){const r=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(r)}tryInRuleRecovery(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){const r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new AL("sad sad panda")}canPerformInRuleRecovery(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,t){if(!this.canTokenTypeBeInsertedInRecovery(e)||he(t))return!1;const r=this.LA(1);return Ua(t,a=>this.tokenMatcher(r,a))!==void 0}canRecoverWithSingleTokenDeletion(e){return this.canTokenTypeBeDeletedInRecovery(e)?this.tokenMatcher(this.LA(2),e):!1}isInCurrentRuleReSyncSet(e){const t=this.getCurrFollowKey(),r=this.getFollowSetFromFollowKey(t);return tt(r,e)}findReSyncTokenType(){const e=this.flattenFollowSet();let t=this.LA(1),r=2;for(;;){const n=Ua(e,a=>Ip(t,a));if(n!==void 0)return n;t=this.LA(r),r++}}getCurrFollowKey(){if(this.RULE_STACK.length===1)return Lc;const e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),r=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(r)}}buildFullFollowKeyStack(){const e=this.RULE_STACK,t=this.RULE_OCCURRENCE_STACK;return F(e,(r,n)=>n===0?Lc:{ruleName:this.shortRuleNameToFullName(r),idxInCallingRule:t[n],inRule:this.shortRuleNameToFullName(e[n-1])})}flattenFollowSet(){const e=F(this.buildFullFollowKeyStack(),t=>this.getFollowSetFromFollowKey(t));return xt(e)}getFollowSetFromFollowKey(e){if(e===Lc)return[jr];const t=e.ruleName+e.idxInCallingRule+w$+e.inRule;return this.resyncFollows[t]}addToResyncTokens(e,t){return this.tokenMatcher(e,jr)||t.push(e),t}reSyncTo(e){const t=[];let r=this.LA(1);for(;this.tokenMatcher(r,e)===!1;)r=this.SKIP_TOKEN(),this.addToResyncTokens(r,t);return ds(t)}attemptInRepetitionRecovery(e,t,r,n,a,s,o){}getCurrentGrammarPath(e,t){const r=this.getHumanReadableRuleStack(),n=Ke(this.RULE_OCCURRENCE_STACK);return{ruleStack:r,occurrenceStack:n,lastTok:e,lastTokOccurrence:t}}getHumanReadableRuleStack(){return F(this.RULE_STACK,e=>this.shortRuleNameToFullName(e))}};function KA(e,t,r,n,a,s,o){const l=this.getKeyForAutomaticLookahead(n,a);let c=this.firstAfterRepMap[l];if(c===void 0){const h=this.getCurrRuleFullName(),y=this.getGAstProductions()[h];c=new s(y,a).startWalking(),this.firstAfterRepMap[l]=c}let u=c.token,f=c.occurrence;const d=c.isEndOfRule;this.RULE_STACK.length===1&&d&&u===void 0&&(u=jr,f=1),!(u===void 0||f===void 0)&&this.shouldInRepetitionRecoveryBeTried(u,f,o)&&this.tryInRepetitionRecovery(e,t,r,u)}i(KA,"attemptInRepetitionRecovery");var _L=4,Wr=8,qA=1<<Wr,WA=2<<Wr,mf=3<<Wr,gf=4<<Wr,yf=5<<Wr,_o=6<<Wr;function Co(e,t,r){return r|t|e}i(Co,"getKeyForAutomaticLookahead");var Mp=class{static{i(this,"LLkLookaheadStrategy")}constructor(e){var t;this.maxLookahead=(t=e?.maxLookahead)!==null&&t!==void 0?t:_r.maxLookahead}validate(e){const t=this.validateNoLeftRecursion(e.rules);if(he(t)){const r=this.validateEmptyOrAlternatives(e.rules),n=this.validateAmbiguousAlternationAlternatives(e.rules,this.maxLookahead),a=this.validateSomeNonEmptyLookaheadPath(e.rules,this.maxLookahead);return[...t,...r,...n,...a]}return t}validateNoLeftRecursion(e){return _t(e,t=>Lp(t,t,$n))}validateEmptyOrAlternatives(e){return _t(e,t=>wA(t,$n))}validateAmbiguousAlternationAlternatives(e,t){return _t(e,r=>IA(r,t,$n))}validateSomeNonEmptyLookaheadPath(e,t){return kA(e,t,$n)}buildLookaheadForAlternation(e){return mA(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,yA)}buildLookaheadForOptional(e){return gA(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,rc(e.prodType),vA)}},CL=class{static{i(this,"LooksAhead")}initLooksAhead(e){this.dynamicTokensEnabled=U(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:_r.dynamicTokensEnabled,this.maxLookahead=U(e,"maxLookahead")?e.maxLookahead:_r.maxLookahead,this.lookaheadStrategy=U(e,"lookaheadStrategy")?e.lookaheadStrategy:new Mp({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){q(e,t=>{this.TRACE_INIT(`${t.name} Rule Lookahead`,()=>{const{alternation:r,repetition:n,option:a,repetitionMandatory:s,repetitionMandatoryWithSeparator:o,repetitionWithSeparator:l}=VA(t);q(r,c=>{const u=c.idx===0?"":c.idx;this.TRACE_INIT(`${Ot(c)}${u}`,()=>{const f=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:c.idx,rule:t,maxLookahead:c.maxLookahead||this.maxLookahead,hasPredicates:c.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled}),d=Co(this.fullRuleNameToShort[t.name],qA,c.idx);this.setLaFuncCache(d,f)})}),q(n,c=>{this.computeLookaheadFunc(t,c.idx,mf,"Repetition",c.maxLookahead,Ot(c))}),q(a,c=>{this.computeLookaheadFunc(t,c.idx,WA,"Option",c.maxLookahead,Ot(c))}),q(s,c=>{this.computeLookaheadFunc(t,c.idx,gf,"RepetitionMandatory",c.maxLookahead,Ot(c))}),q(o,c=>{this.computeLookaheadFunc(t,c.idx,_o,"RepetitionMandatoryWithSeparator",c.maxLookahead,Ot(c))}),q(l,c=>{this.computeLookaheadFunc(t,c.idx,yf,"RepetitionWithSeparator",c.maxLookahead,Ot(c))})})})}computeLookaheadFunc(e,t,r,n,a,s){this.TRACE_INIT(`${s}${t===0?"":t}`,()=>{const o=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:t,rule:e,maxLookahead:a||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:n}),l=Co(this.fullRuleNameToShort[e.name],r,t);this.setLaFuncCache(l,o)})}getKeyForAutomaticLookahead(e,t){const r=this.getLastExplicitRuleShortName();return Co(r,e,t)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,t){this.lookAheadFuncsCache.set(e,t)}},SL=class extends Ha{static{i(this,"DslMethodsCollectorVisitor")}constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}},Hs=new SL;function VA(e){Hs.reset(),e.accept(Hs);const t=Hs.dslMethods;return Hs.reset(),t}i(VA,"collectMethods");function vf(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}i(vf,"setNodeLocationOnlyOffset");function Tf(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}i(Tf,"setNodeLocationFull");function HA(e,t,r){e.children[r]===void 0?e.children[r]=[t]:e.children[r].push(t)}i(HA,"addTerminalToCst");function YA(e,t,r){e.children[t]===void 0?e.children[t]=[r]:e.children[t].push(r)}i(YA,"addNoneTerminalToCst");var bL="name";function xp(e,t){Object.defineProperty(e,bL,{enumerable:!1,configurable:!0,writable:!1,value:t})}i(xp,"defineNameProp");function XA(e,t){const r=dt(e),n=r.length;for(let a=0;a<n;a++){const s=r[a],o=e[s],l=o.length;for(let c=0;c<l;c++){const u=o[c];u.tokenTypeIdx===void 0&&this[u.name](u.children,t)}}}i(XA,"defaultVisit");function JA(e,t){const r=i(function(){},"derivedConstructor");xp(r,e+"BaseSemantics");const n={visit:i(function(a,s){if(ne(a)&&(a=a[0]),!Ar(a))return this[a.name](a.children,s)},"visit"),validateVisitor:i(function(){const a=QA(this,t);if(!he(a)){const s=F(a,o=>o.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:
122
+ ${s.join(`
123
+
124
+ `).replace(/\n/g,`
125
+ `)}`)}},"validateVisitor")};return r.prototype=n,r.prototype.constructor=r,r._RULE_NAMES=t,r}i(JA,"createBaseSemanticVisitorConstructor");function ZA(e,t,r){const n=i(function(){},"derivedConstructor");xp(n,e+"BaseSemanticsWithDefaults");const a=Object.create(r.prototype);return q(t,s=>{a[s]=XA}),n.prototype=a,n.prototype.constructor=n,n}i(ZA,"createBaseVisitorConstructorWithDefaults");var Rf;(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(Rf||(Rf={}));function QA(e,t){return eE(e,t)}i(QA,"validateVisitor");function eE(e,t){const r=wt(t,a=>wr(e[a])===!1),n=F(r,a=>({msg:`Missing visitor method: <${a}> on ${e.constructor.name} CST Visitor.`,type:Rf.MISSING_METHOD,methodName:a}));return xs(n)}i(eE,"validateMissingCstMethods");var wL=class{static{i(this,"TreeBuilder")}initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=U(e,"nodeLocationTracking")?e.nodeLocationTracking:_r.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=Me,this.cstFinallyStateUpdate=Me,this.cstPostTerminal=Me,this.cstPostNonTerminal=Me,this.cstPostRule=Me;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Tf,this.setNodeLocationFromNode=Tf,this.cstPostRule=Me,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=Me,this.setNodeLocationFromNode=Me,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=vf,this.setNodeLocationFromNode=vf,this.cstPostRule=Me,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=Me,this.setNodeLocationFromNode=Me,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=Me,this.setNodeLocationFromNode=Me,this.cstPostRule=Me,this.setInitialNodeLocation=Me;else throw Error(`Invalid <nodeLocationTracking> config option: "${e.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(e){const t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){const t={name:e,children:Object.create(null)};this.setInitialNodeLocation(t),this.CST_STACK.push(t)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){const t=this.LA(0),r=e.location;r.startOffset<=t.startOffset?(r.endOffset=t.endOffset,r.endLine=t.endLine,r.endColumn=t.endColumn):(r.startOffset=NaN,r.startLine=NaN,r.startColumn=NaN)}cstPostRuleOnlyOffset(e){const t=this.LA(0),r=e.location;r.startOffset<=t.startOffset?r.endOffset=t.endOffset:r.startOffset=NaN}cstPostTerminal(e,t){const r=this.CST_STACK[this.CST_STACK.length-1];HA(r,t,e),this.setNodeLocationFromToken(r.location,t)}cstPostNonTerminal(e,t){const r=this.CST_STACK[this.CST_STACK.length-1];YA(r,t,e),this.setNodeLocationFromNode(r.location,e.location)}getBaseCstVisitorConstructor(){if(Ar(this.baseCstVisitorConstructor)){const e=JA(this.className,dt(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(Ar(this.baseCstVisitorWithDefaultsConstructor)){const e=ZA(this.className,dt(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){const e=this.RULE_STACK;return e[e.length-1]}getPreviousExplicitRuleShortName(){const e=this.RULE_STACK;return e[e.length-2]}getLastExplicitRuleOccurrenceIndex(){const e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]}},IL=class{static{i(this,"LexerAdapter")}initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):ol}LA(e){const t=this.currIdx+e;return t<0||this.tokVectorLength<=t?ol:this.tokVector[t]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}},NL=class{static{i(this,"RecognizerApi")}ACTION(e){return e.call(this)}consume(e,t,r){return this.consumeInternal(t,e,r)}subrule(e,t,r){return this.subruleInternal(t,e,r)}option(e,t){return this.optionInternal(t,e)}or(e,t){return this.orInternal(t,e)}many(e,t){return this.manyInternal(e,t)}atLeastOne(e,t){return this.atLeastOneInternal(e,t)}CONSUME(e,t){return this.consumeInternal(e,0,t)}CONSUME1(e,t){return this.consumeInternal(e,1,t)}CONSUME2(e,t){return this.consumeInternal(e,2,t)}CONSUME3(e,t){return this.consumeInternal(e,3,t)}CONSUME4(e,t){return this.consumeInternal(e,4,t)}CONSUME5(e,t){return this.consumeInternal(e,5,t)}CONSUME6(e,t){return this.consumeInternal(e,6,t)}CONSUME7(e,t){return this.consumeInternal(e,7,t)}CONSUME8(e,t){return this.consumeInternal(e,8,t)}CONSUME9(e,t){return this.consumeInternal(e,9,t)}SUBRULE(e,t){return this.subruleInternal(e,0,t)}SUBRULE1(e,t){return this.subruleInternal(e,1,t)}SUBRULE2(e,t){return this.subruleInternal(e,2,t)}SUBRULE3(e,t){return this.subruleInternal(e,3,t)}SUBRULE4(e,t){return this.subruleInternal(e,4,t)}SUBRULE5(e,t){return this.subruleInternal(e,5,t)}SUBRULE6(e,t){return this.subruleInternal(e,6,t)}SUBRULE7(e,t){return this.subruleInternal(e,7,t)}SUBRULE8(e,t){return this.subruleInternal(e,8,t)}SUBRULE9(e,t){return this.subruleInternal(e,9,t)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,t,r=ll){if(tt(this.definedRulesNames,e)){const s={message:$n.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:Qe.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(s)}this.definedRulesNames.push(e);const n=this.defineRule(e,t,r);return this[e]=n,n}OVERRIDE_RULE(e,t,r=ll){const n=bA(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(n);const a=this.defineRule(e,t,r);return this[e]=a,a}BACKTRACK(e,t){return function(){this.isBackTrackingStack.push(1);const r=this.saveRecogState();try{return e.apply(this,t),!0}catch(n){if(ms(n))return!1;throw n}finally{this.reloadRecogState(r),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return A$(xe(this.gastProductionsCache))}},kL=class{static{i(this,"RecognizerEngine")}initRecognizerEngine(e,t){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=hs,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},U(t,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
126
+ See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0
127
+ For Further details.`);if(ne(e)){if(he(e))throw Error(`A Token Vocabulary cannot be empty.
128
+ Note that the first argument for the parser constructor
129
+ is no longer a Token vector (since v4.0).`);if(typeof e[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument.
130
+ See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0
131
+ For Further details.`)}if(ne(e))this.tokensMap=ht(e,(a,s)=>(a[s.name]=s,a),{});else if(U(e,"modes")&&Ft(xt(xe(e.modes)),fA)){const a=xt(xe(e.modes)),s=Tp(a);this.tokensMap=ht(s,(o,l)=>(o[l.name]=l,o),{})}else if(St(e))this.tokensMap=Ke(e);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=jr;const r=U(e,"modes")?xt(xe(e.modes)):xe(e),n=Ft(r,a=>he(a.categoryMatches));this.tokenMatcher=n?hs:Xa,Ja(xe(this.tokensMap))}defineRule(e,t,r){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called'
132
+ Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);const n=U(r,"resyncEnabled")?r.resyncEnabled:ll.resyncEnabled,a=U(r,"recoveryValueFunc")?r.recoveryValueFunc:ll.recoveryValueFunc,s=this.ruleShortNameIdx<<_L+Wr;this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=e,this.fullRuleNameToShort[e]=s;let o;return this.outputCst===!0?o=i(function(...u){try{this.ruleInvocationStateUpdate(s,e,this.subruleIdx),t.apply(this,u);const f=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(f),f}catch(f){return this.invokeRuleCatch(f,n,a)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTry"):o=i(function(...u){try{return this.ruleInvocationStateUpdate(s,e,this.subruleIdx),t.apply(this,u)}catch(f){return this.invokeRuleCatch(f,n,a)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTryCst"),Object.assign(o,{ruleName:e,originalGrammarAction:t})}invokeRuleCatch(e,t,r){const n=this.RULE_STACK.length===1,a=t&&!this.isBackTracking()&&this.recoveryEnabled;if(ms(e)){const s=e;if(a){const o=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(o))if(s.resyncedTokens=this.reSyncTo(o),this.outputCst){const l=this.CST_STACK[this.CST_STACK.length-1];return l.recoveredNode=!0,l}else return r(e);else{if(this.outputCst){const l=this.CST_STACK[this.CST_STACK.length-1];l.recoveredNode=!0,s.partialCstResult=l}throw s}}else{if(n)return this.moveToTerminatedState(),r(e);throw s}}else throw e}optionInternal(e,t){const r=this.getKeyForAutomaticLookahead(WA,t);return this.optionInternalLogic(e,t,r)}optionInternalLogic(e,t,r){let n=this.getLaFuncFromCache(r),a;if(typeof e!="function"){a=e.DEF;const s=e.GATE;if(s!==void 0){const o=n;n=i(()=>s.call(this)&&o.call(this),"lookAheadFunc")}}else a=e;if(n.call(this)===!0)return a.call(this)}atLeastOneInternal(e,t){const r=this.getKeyForAutomaticLookahead(gf,e);return this.atLeastOneInternalLogic(e,t,r)}atLeastOneInternalLogic(e,t,r){let n=this.getLaFuncFromCache(r),a;if(typeof t!="function"){a=t.DEF;const s=t.GATE;if(s!==void 0){const o=n;n=i(()=>s.call(this)&&o.call(this),"lookAheadFunc")}}else a=t;if(n.call(this)===!0){let s=this.doSingleRepetition(a);for(;n.call(this)===!0&&s===!0;)s=this.doSingleRepetition(a)}else throw this.raiseEarlyExitException(e,_e.REPETITION_MANDATORY,t.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],n,gf,e,mL)}atLeastOneSepFirstInternal(e,t){const r=this.getKeyForAutomaticLookahead(_o,e);this.atLeastOneSepFirstInternalLogic(e,t,r)}atLeastOneSepFirstInternalLogic(e,t,r){const n=t.DEF,a=t.SEP;if(this.getLaFuncFromCache(r).call(this)===!0){n.call(this);const o=i(()=>this.tokenMatcher(this.LA(1),a),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),a)===!0;)this.CONSUME(a),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,a,o,n,wm],o,_o,e,wm)}else throw this.raiseEarlyExitException(e,_e.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG)}manyInternal(e,t){const r=this.getKeyForAutomaticLookahead(mf,e);return this.manyInternalLogic(e,t,r)}manyInternalLogic(e,t,r){let n=this.getLaFuncFromCache(r),a;if(typeof t!="function"){a=t.DEF;const o=t.GATE;if(o!==void 0){const l=n;n=i(()=>o.call(this)&&l.call(this),"lookaheadFunction")}}else a=t;let s=!0;for(;n.call(this)===!0&&s===!0;)s=this.doSingleRepetition(a);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],n,mf,e,hL,s)}manySepFirstInternal(e,t){const r=this.getKeyForAutomaticLookahead(yf,e);this.manySepFirstInternalLogic(e,t,r)}manySepFirstInternalLogic(e,t,r){const n=t.DEF,a=t.SEP;if(this.getLaFuncFromCache(r).call(this)===!0){n.call(this);const o=i(()=>this.tokenMatcher(this.LA(1),a),"separatorLookAheadFunc");for(;this.tokenMatcher(this.LA(1),a)===!0;)this.CONSUME(a),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,a,o,n,bm],o,yf,e,bm)}}repetitionSepSecondInternal(e,t,r,n,a){for(;r();)this.CONSUME(t),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,r,n,a],r,_o,e,a)}doSingleRepetition(e){const t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t}orInternal(e,t){const r=this.getKeyForAutomaticLookahead(qA,t),n=ne(e)?e:e.DEF,s=this.getLaFuncFromCache(r).call(this,n);if(s!==void 0)return n[s].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){const e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new RL(t,e))}}subruleInternal(e,t,r){let n;try{const a=r!==void 0?r.ARGS:void 0;return this.subruleIdx=t,n=e.apply(this,a),this.cstPostNonTerminal(n,r!==void 0&&r.LABEL!==void 0?r.LABEL:e.ruleName),n}catch(a){throw this.subruleInternalError(a,r,e.ruleName)}}subruleInternalError(e,t,r){throw ms(e)&&e.partialCstResult!==void 0&&(this.cstPostNonTerminal(e.partialCstResult,t!==void 0&&t.LABEL!==void 0?t.LABEL:r),delete e.partialCstResult),e}consumeInternal(e,t,r){let n;try{const a=this.LA(1);this.tokenMatcher(a,e)===!0?(this.consumeToken(),n=a):this.consumeInternalError(e,a,r)}catch(a){n=this.consumeInternalRecovery(e,t,a)}return this.cstPostTerminal(r!==void 0&&r.LABEL!==void 0?r.LABEL:e.name,n),n}consumeInternalError(e,t,r){let n;const a=this.LA(0);throw r!==void 0&&r.ERR_MSG?n=r.ERR_MSG:n=this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new zA(n,t,a))}consumeInternalRecovery(e,t,r){if(this.recoveryEnabled&&r.name==="MismatchedTokenException"&&!this.isBackTracking()){const n=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,n)}catch(a){throw a.name===BA?r:a}}else throw r}saveRecogState(){const e=this.errors,t=Ke(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK}ruleInvocationStateUpdate(e,t,r){this.RULE_OCCURRENCE_STACK.push(r),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(t)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){const e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),jr)}reset(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]}},PL=class{static{i(this,"ErrorHandler")}initErrorHandler(e){this._errors=[],this.errorMessageProvider=U(e,"errorMessageProvider")?e.errorMessageProvider:_r.errorMessageProvider}SAVE_ERROR(e){if(ms(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:Ke(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return Ke(this._errors)}set errors(e){this._errors=e}raiseEarlyExitException(e,t,r){const n=this.getCurrRuleFullName(),a=this.getGAstProductions()[n],o=Us(e,a,t,this.maxLookahead)[0],l=[];for(let u=1;u<=this.maxLookahead;u++)l.push(this.LA(u));const c=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:o,actual:l,previous:this.LA(0),customUserDescription:r,ruleName:n});throw this.SAVE_ERROR(new $L(c,this.LA(1),this.LA(0)))}raiseNoAltException(e,t){const r=this.getCurrRuleFullName(),n=this.getGAstProductions()[r],a=js(e,n,this.maxLookahead),s=[];for(let c=1;c<=this.maxLookahead;c++)s.push(this.LA(c));const o=this.LA(0),l=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:a,actual:s,previous:o,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new TL(l,this.LA(1),o))}},OL=class{static{i(this,"ContentAssist")}initContentAssist(){}computeContentAssist(e,t){const r=this.gastProductionsCache[e];if(Ar(r))throw Error(`Rule ->${e}<- does not exist in this grammar.`);return Np([r],t,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(e){const t=jt(e.ruleStack),n=this.getGAstProductions()[t];return new pL(n,e).startWalking()}},ac={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(ac);var Im=!0,Nm=Math.pow(2,Wr)-1,tE=Na({name:"RECORDING_PHASE_TOKEN",pattern:Xe.NA});Ja([tE]);var rE=Gs(tE,`This IToken indicates the Parser is in Recording Phase
133
+ See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(rE);var LL={name:`This CSTNode indicates the Parser is in Recording Phase
134
+ See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}},DL=class{static{i(this,"GastRecorder")}initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let e=0;e<10;e++){const t=e>0?e:"";this[`CONSUME${t}`]=function(r,n){return this.consumeInternalRecord(r,e,n)},this[`SUBRULE${t}`]=function(r,n){return this.subruleInternalRecord(r,e,n)},this[`OPTION${t}`]=function(r){return this.optionInternalRecord(r,e)},this[`OR${t}`]=function(r){return this.orInternalRecord(r,e)},this[`MANY${t}`]=function(r){this.manyInternalRecord(e,r)},this[`MANY_SEP${t}`]=function(r){this.manySepFirstInternalRecord(e,r)},this[`AT_LEAST_ONE${t}`]=function(r){this.atLeastOneInternalRecord(e,r)},this[`AT_LEAST_ONE_SEP${t}`]=function(r){this.atLeastOneSepFirstInternalRecord(e,r)}}this.consume=function(e,t,r){return this.consumeInternalRecord(t,e,r)},this.subrule=function(e,t,r){return this.subruleInternalRecord(t,e,r)},this.option=function(e,t){return this.optionInternalRecord(t,e)},this.or=function(e,t){return this.orInternalRecord(t,e)},this.many=function(e,t){this.manyInternalRecord(e,t)},this.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{const e=this;for(let t=0;t<10;t++){const r=t>0?t:"";delete e[`CONSUME${r}`],delete e[`SUBRULE${r}`],delete e[`OPTION${r}`],delete e[`OR${r}`],delete e[`MANY${r}`],delete e[`MANY_SEP${r}`],delete e[`AT_LEAST_ONE${r}`],delete e[`AT_LEAST_ONE_SEP${r}`]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,t){return()=>!0}LA_RECORD(e){return ol}topLevelRuleRecord(e,t){try{const r=new Va({definition:[],name:e});return r.name=e,this.recordingProdStack.push(r),t.call(this),this.recordingProdStack.pop(),r}catch(r){if(r.KNOWN_RECORDER_ERROR!==!0)try{r.message=r.message+`
135
+ This error was thrown during the "grammar recording phase" For more info see:
136
+ https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw r}throw r}}optionInternalRecord(e,t){return ha.call(this,Be,e,t)}atLeastOneInternalRecord(e,t){ha.call(this,mt,t,e)}atLeastOneSepFirstInternalRecord(e,t){ha.call(this,gt,t,e,Im)}manyInternalRecord(e,t){ha.call(this,we,t,e)}manySepFirstInternalRecord(e,t){ha.call(this,ot,t,e,Im)}orInternalRecord(e,t){return nE.call(this,e,t)}subruleInternalRecord(e,t,r){if(gs(t),!e||U(e,"ruleName")===!1){const o=new Error(`<SUBRULE${$f(t)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}>
137
+ inside top level rule: <${this.recordingProdStack[0].name}>`);throw o.KNOWN_RECORDER_ERROR=!0,o}const n=bn(this.recordingProdStack),a=e.ruleName,s=new Ze({idx:t,nonTerminalName:a,label:r?.LABEL,referencedRule:void 0});return n.definition.push(s),this.outputCst?LL:ac}consumeInternalRecord(e,t,r){if(gs(t),!bp(e)){const s=new Error(`<CONSUME${$f(t)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}>
138
+ inside top level rule: <${this.recordingProdStack[0].name}>`);throw s.KNOWN_RECORDER_ERROR=!0,s}const n=bn(this.recordingProdStack),a=new Te({idx:t,terminalType:e,label:r?.LABEL});return n.definition.push(a),rE}};function ha(e,t,r,n=!1){gs(r);const a=bn(this.recordingProdStack),s=wr(t)?t:t.DEF,o=new e({definition:[],idx:r});return n&&(o.separator=t.SEP),U(t,"MAX_LOOKAHEAD")&&(o.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(o),s.call(this),a.definition.push(o),this.recordingProdStack.pop(),ac}i(ha,"recordProd");function nE(e,t){gs(t);const r=bn(this.recordingProdStack),n=ne(e)===!1,a=n===!1?e:e.DEF,s=new lt({definition:[],idx:t,ignoreAmbiguities:n&&e.IGNORE_AMBIGUITIES===!0});U(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);const o=y$(a,l=>wr(l.GATE));return s.hasPredicates=o,r.definition.push(s),q(a,l=>{const c=new st({definition:[]});s.definition.push(c),U(l,"IGNORE_AMBIGUITIES")?c.ignoreAmbiguities=l.IGNORE_AMBIGUITIES:U(l,"GATE")&&(c.ignoreAmbiguities=!0),this.recordingProdStack.push(c),l.ALT.call(this),this.recordingProdStack.pop()}),ac}i(nE,"recordOrProd");function $f(e){return e===0?"":`${e}`}i($f,"getIdxSuffix");function gs(e){if(e<0||e>Nm){const t=new Error(`Invalid DSL Method idx value: <${e}>
139
+ Idx value must be a none negative value smaller than ${Nm+1}`);throw t.KNOWN_RECORDER_ERROR=!0,t}}i(gs,"assertMethodIdxIsValid");var ML=class{static{i(this,"PerformanceTracer")}initPerformanceTracer(e){if(U(e,"traceInitPerf")){const t=e.traceInitPerf,r=typeof t=="number";this.traceInitMaxIdent=r?t:1/0,this.traceInitPerf=r?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=_r.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,t){if(this.traceInitPerf===!0){this.traceInitIndent++;const r=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${r}--> <${e}>`);const{time:n,value:a}=$p(t),s=n>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&s(`${r}<-- <${e}> time: ${n}ms`),this.traceInitIndent--,a}else return t()}};function aE(e,t){t.forEach(r=>{const n=r.prototype;Object.getOwnPropertyNames(n).forEach(a=>{if(a==="constructor")return;const s=Object.getOwnPropertyDescriptor(n,a);s&&(s.get||s.set)?Object.defineProperty(e.prototype,a,s):e.prototype[a]=r.prototype[a]})})}i(aE,"applyMixins");var ol=Gs(jr,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(ol);var _r=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:ba,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),ll=Object.freeze({recoveryValueFunc:i(()=>{},"recoveryValueFunc"),resyncEnabled:!0}),Qe;(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",e[e.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(Qe||(Qe={}));function Af(e=void 0){return function(){return e}}i(Af,"EMPTY_ALT");var Fp=class iE{static{i(this,"Parser")}static performSelfAnalysis(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let t;this.selfAnalysisDone=!0;const r=this.className;this.TRACE_INIT("toFastProps",()=>{Ap(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),q(this.definedRulesNames,a=>{const o=this[a].originalGrammarAction;let l;this.TRACE_INIT(`${a} Rule`,()=>{l=this.topLevelRuleRecord(a,o)}),this.gastProductionsCache[a]=l})}finally{this.disableRecording()}});let n=[];if(this.TRACE_INIT("Grammar Resolving",()=>{n=DA({rules:xe(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(n)}),this.TRACE_INIT("Grammar Validations",()=>{if(he(n)&&this.skipValidations===!1){const a=MA({rules:xe(this.gastProductionsCache),tokenTypes:xe(this.tokensMap),errMsgProvider:$n,grammarName:r}),s=AA({lookaheadStrategy:this.lookaheadStrategy,rules:xe(this.gastProductionsCache),tokenTypes:xe(this.tokensMap),grammarName:r});this.definitionErrors=this.definitionErrors.concat(a,s)}}),he(this.definitionErrors)&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{const a=I$(xe(this.gastProductionsCache));this.resyncFollows=a}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var a,s;(s=(a=this.lookaheadStrategy).initialize)===null||s===void 0||s.call(a,{rules:xe(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(xe(this.gastProductionsCache))})),!iE.DEFER_DEFINITION_ERRORS_HANDLING&&!he(this.definitionErrors))throw t=F(this.definitionErrors,a=>a.message),new Error(`Parser Definition Errors detected:
140
+ ${t.join(`
141
+ -------------------------------
142
+ `)}`)})}constructor(t,r){this.definitionErrors=[],this.selfAnalysisDone=!1;const n=this;if(n.initErrorHandler(r),n.initLexerAdapter(),n.initLooksAhead(r),n.initRecognizerEngine(t,r),n.initRecoverable(r),n.initTreeBuilder(r),n.initContentAssist(),n.initGastRecorder(r),n.initPerformanceTracer(r),U(r,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
143
+ Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
144
+ See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
145
+ For further details.`);this.skipValidations=U(r,"skipValidations")?r.skipValidations:_r.skipValidations}};Fp.DEFER_DEFINITION_ERRORS_HANDLING=!1;aE(Fp,[EL,CL,wL,IL,kL,NL,PL,OL,DL,ML]);var xL=class extends Fp{static{i(this,"EmbeddedActionsParser")}constructor(e,t=_r){const r=Ke(t);r.outputCst=!1,super(e,r)}};function sE(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}i(sE,"arrayMap");var oE=sE;function lE(){this.__data__=[],this.size=0}i(lE,"listCacheClear");var FL=lE;function cE(e,t){return e===t||e!==e&&t!==t}i(cE,"eq");var uE=cE;function fE(e,t){for(var r=e.length;r--;)if(uE(e[r][0],t))return r;return-1}i(fE,"assocIndexOf");var ic=fE,GL=Array.prototype,jL=GL.splice;function dE(e){var t=this.__data__,r=ic(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():jL.call(t,r,1),--this.size,!0}i(dE,"listCacheDelete");var UL=dE;function pE(e){var t=this.__data__,r=ic(t,e);return r<0?void 0:t[r][1]}i(pE,"listCacheGet");var zL=pE;function hE(e){return ic(this.__data__,e)>-1}i(hE,"listCacheHas");var BL=hE;function mE(e,t){var r=this.__data__,n=ic(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}i(mE,"listCacheSet");var KL=mE;function Kn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}i(Kn,"ListCache");Kn.prototype.clear=FL;Kn.prototype.delete=UL;Kn.prototype.get=zL;Kn.prototype.has=BL;Kn.prototype.set=KL;var sc=Kn;function gE(){this.__data__=new sc,this.size=0}i(gE,"stackClear");var qL=gE;function yE(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}i(yE,"stackDelete");var WL=yE;function vE(e){return this.__data__.get(e)}i(vE,"stackGet");var VL=vE;function TE(e){return this.__data__.has(e)}i(TE,"stackHas");var HL=TE,YL=typeof global=="object"&&global&&global.Object===Object&&global,RE=YL,XL=typeof self=="object"&&self&&self.Object===Object&&self,JL=RE||XL||Function("return this")(),Ir=JL,ZL=Ir.Symbol,er=ZL,$E=Object.prototype,QL=$E.hasOwnProperty,eD=$E.toString,_i=er?er.toStringTag:void 0;function AE(e){var t=QL.call(e,_i),r=e[_i];try{e[_i]=void 0;var n=!0}catch{}var a=eD.call(e);return n&&(t?e[_i]=r:delete e[_i]),a}i(AE,"getRawTag");var tD=AE,rD=Object.prototype,nD=rD.toString;function EE(e){return nD.call(e)}i(EE,"objectToString");var aD=EE,iD="[object Null]",sD="[object Undefined]",km=er?er.toStringTag:void 0;function _E(e){return e==null?e===void 0?sD:iD:km&&km in Object(e)?tD(e):aD(e)}i(_E,"baseGetTag");var Za=_E;function CE(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}i(CE,"isObject");var Gp=CE,oD="[object AsyncFunction]",lD="[object Function]",cD="[object GeneratorFunction]",uD="[object Proxy]";function SE(e){if(!Gp(e))return!1;var t=Za(e);return t==lD||t==cD||t==oD||t==uD}i(SE,"isFunction");var bE=SE,fD=Ir["__core-js_shared__"],Dc=fD,Pm=(function(){var e=/[^.]+$/.exec(Dc&&Dc.keys&&Dc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function wE(e){return!!Pm&&Pm in e}i(wE,"isMasked");var dD=wE,pD=Function.prototype,hD=pD.toString;function IE(e){if(e!=null){try{return hD.call(e)}catch{}try{return e+""}catch{}}return""}i(IE,"toSource");var qn=IE,mD=/[\\^$.*+?()[\]{}|]/g,gD=/^\[object .+?Constructor\]$/,yD=Function.prototype,vD=Object.prototype,TD=yD.toString,RD=vD.hasOwnProperty,$D=RegExp("^"+TD.call(RD).replace(mD,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function NE(e){if(!Gp(e)||dD(e))return!1;var t=bE(e)?$D:gD;return t.test(qn(e))}i(NE,"baseIsNative");var AD=NE;function kE(e,t){return e?.[t]}i(kE,"getValue");var ED=kE;function PE(e,t){var r=ED(e,t);return AD(r)?r:void 0}i(PE,"getNative");var Qa=PE,_D=Qa(Ir,"Map"),ys=_D,CD=Qa(Object,"create"),vs=CD;function OE(){this.__data__=vs?vs(null):{},this.size=0}i(OE,"hashClear");var SD=OE;function LE(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}i(LE,"hashDelete");var bD=LE,wD="__lodash_hash_undefined__",ID=Object.prototype,ND=ID.hasOwnProperty;function DE(e){var t=this.__data__;if(vs){var r=t[e];return r===wD?void 0:r}return ND.call(t,e)?t[e]:void 0}i(DE,"hashGet");var kD=DE,PD=Object.prototype,OD=PD.hasOwnProperty;function ME(e){var t=this.__data__;return vs?t[e]!==void 0:OD.call(t,e)}i(ME,"hashHas");var LD=ME,DD="__lodash_hash_undefined__";function xE(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=vs&&t===void 0?DD:t,this}i(xE,"hashSet");var MD=xE;function Wn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}i(Wn,"Hash");Wn.prototype.clear=SD;Wn.prototype.delete=bD;Wn.prototype.get=kD;Wn.prototype.has=LD;Wn.prototype.set=MD;var Om=Wn;function FE(){this.size=0,this.__data__={hash:new Om,map:new(ys||sc),string:new Om}}i(FE,"mapCacheClear");var xD=FE;function GE(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}i(GE,"isKeyable");var FD=GE;function jE(e,t){var r=e.__data__;return FD(t)?r[typeof t=="string"?"string":"hash"]:r.map}i(jE,"getMapData");var oc=jE;function UE(e){var t=oc(this,e).delete(e);return this.size-=t?1:0,t}i(UE,"mapCacheDelete");var GD=UE;function zE(e){return oc(this,e).get(e)}i(zE,"mapCacheGet");var jD=zE;function BE(e){return oc(this,e).has(e)}i(BE,"mapCacheHas");var UD=BE;function KE(e,t){var r=oc(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}i(KE,"mapCacheSet");var zD=KE;function Vn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}i(Vn,"MapCache");Vn.prototype.clear=xD;Vn.prototype.delete=GD;Vn.prototype.get=jD;Vn.prototype.has=UD;Vn.prototype.set=zD;var lc=Vn,BD=200;function qE(e,t){var r=this.__data__;if(r instanceof sc){var n=r.__data__;if(!ys||n.length<BD-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new lc(n)}return r.set(e,t),this.size=r.size,this}i(qE,"stackSet");var KD=qE;function Hn(e){var t=this.__data__=new sc(e);this.size=t.size}i(Hn,"Stack");Hn.prototype.clear=qL;Hn.prototype.delete=WL;Hn.prototype.get=VL;Hn.prototype.has=HL;Hn.prototype.set=KD;var So=Hn,qD="__lodash_hash_undefined__";function WE(e){return this.__data__.set(e,qD),this}i(WE,"setCacheAdd");var WD=WE;function VE(e){return this.__data__.has(e)}i(VE,"setCacheHas");var VD=VE;function Ts(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new lc;++t<r;)this.add(e[t])}i(Ts,"SetCache");Ts.prototype.add=Ts.prototype.push=WD;Ts.prototype.has=VD;var HE=Ts;function YE(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}i(YE,"arraySome");var HD=YE;function XE(e,t){return e.has(t)}i(XE,"cacheHas");var JE=XE,YD=1,XD=2;function ZE(e,t,r,n,a,s){var o=r&YD,l=e.length,c=t.length;if(l!=c&&!(o&&c>l))return!1;var u=s.get(e),f=s.get(t);if(u&&f)return u==t&&f==e;var d=-1,h=!0,y=r&XD?new HE:void 0;for(s.set(e,t),s.set(t,e);++d<l;){var v=e[d],C=t[d];if(n)var b=o?n(C,v,d,t,e,s):n(v,C,d,e,t,s);if(b!==void 0){if(b)continue;h=!1;break}if(y){if(!HD(t,function(w,I){if(!JE(y,I)&&(v===w||a(v,w,r,n,s)))return y.push(I)})){h=!1;break}}else if(!(v===C||a(v,C,r,n,s))){h=!1;break}}return s.delete(e),s.delete(t),h}i(ZE,"equalArrays");var QE=ZE,JD=Ir.Uint8Array,Lm=JD;function e_(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}i(e_,"mapToArray");var ZD=e_;function t_(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}i(t_,"setToArray");var jp=t_,QD=1,eM=2,tM="[object Boolean]",rM="[object Date]",nM="[object Error]",aM="[object Map]",iM="[object Number]",sM="[object RegExp]",oM="[object Set]",lM="[object String]",cM="[object Symbol]",uM="[object ArrayBuffer]",fM="[object DataView]",Dm=er?er.prototype:void 0,Mc=Dm?Dm.valueOf:void 0;function r_(e,t,r,n,a,s,o){switch(r){case fM:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case uM:return!(e.byteLength!=t.byteLength||!s(new Lm(e),new Lm(t)));case tM:case rM:case iM:return uE(+e,+t);case nM:return e.name==t.name&&e.message==t.message;case sM:case lM:return e==t+"";case aM:var l=ZD;case oM:var c=n&QD;if(l||(l=jp),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;n|=eM,o.set(e,t);var f=QE(l(e),l(t),n,a,s,o);return o.delete(e),f;case cM:if(Mc)return Mc.call(e)==Mc.call(t)}return!1}i(r_,"equalByTag");var dM=r_;function n_(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}i(n_,"arrayPush");var a_=n_,pM=Array.isArray,et=pM;function i_(e,t,r){var n=t(e);return et(e)?n:a_(n,r(e))}i(i_,"baseGetAllKeys");var hM=i_;function s_(e,t){for(var r=-1,n=e==null?0:e.length,a=0,s=[];++r<n;){var o=e[r];t(o,r,e)&&(s[a++]=o)}return s}i(s_,"arrayFilter");var o_=s_;function l_(){return[]}i(l_,"stubArray");var mM=l_,gM=Object.prototype,yM=gM.propertyIsEnumerable,Mm=Object.getOwnPropertySymbols,vM=Mm?function(e){return e==null?[]:(e=Object(e),o_(Mm(e),function(t){return yM.call(e,t)}))}:mM,TM=vM;function c_(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}i(c_,"baseTimes");var RM=c_;function u_(e){return e!=null&&typeof e=="object"}i(u_,"isObjectLike");var za=u_,$M="[object Arguments]";function f_(e){return za(e)&&Za(e)==$M}i(f_,"baseIsArguments");var xm=f_,d_=Object.prototype,AM=d_.hasOwnProperty,EM=d_.propertyIsEnumerable,_M=xm((function(){return arguments})())?xm:function(e){return za(e)&&AM.call(e,"callee")&&!EM.call(e,"callee")},cc=_M;function p_(){return!1}i(p_,"stubFalse");var CM=p_,h_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Fm=h_&&typeof module=="object"&&module&&!module.nodeType&&module,SM=Fm&&Fm.exports===h_,Gm=SM?Ir.Buffer:void 0,bM=Gm?Gm.isBuffer:void 0,wM=bM||CM,cl=wM,IM=9007199254740991,NM=/^(?:0|[1-9]\d*)$/;function m_(e,t){var r=typeof e;return t=t??IM,!!t&&(r=="number"||r!="symbol"&&NM.test(e))&&e>-1&&e%1==0&&e<t}i(m_,"isIndex");var g_=m_,kM=9007199254740991;function y_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=kM}i(y_,"isLength");var Up=y_,PM="[object Arguments]",OM="[object Array]",LM="[object Boolean]",DM="[object Date]",MM="[object Error]",xM="[object Function]",FM="[object Map]",GM="[object Number]",jM="[object Object]",UM="[object RegExp]",zM="[object Set]",BM="[object String]",KM="[object WeakMap]",qM="[object ArrayBuffer]",WM="[object DataView]",VM="[object Float32Array]",HM="[object Float64Array]",YM="[object Int8Array]",XM="[object Int16Array]",JM="[object Int32Array]",ZM="[object Uint8Array]",QM="[object Uint8ClampedArray]",ex="[object Uint16Array]",tx="[object Uint32Array]",ve={};ve[VM]=ve[HM]=ve[YM]=ve[XM]=ve[JM]=ve[ZM]=ve[QM]=ve[ex]=ve[tx]=!0;ve[PM]=ve[OM]=ve[qM]=ve[LM]=ve[WM]=ve[DM]=ve[MM]=ve[xM]=ve[FM]=ve[GM]=ve[jM]=ve[UM]=ve[zM]=ve[BM]=ve[KM]=!1;function v_(e){return za(e)&&Up(e.length)&&!!ve[Za(e)]}i(v_,"baseIsTypedArray");var rx=v_;function T_(e){return function(t){return e(t)}}i(T_,"baseUnary");var nx=T_,R_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ns=R_&&typeof module=="object"&&module&&!module.nodeType&&module,ax=ns&&ns.exports===R_,xc=ax&&RE.process,ix=(function(){try{var e=ns&&ns.require&&ns.require("util").types;return e||xc&&xc.binding&&xc.binding("util")}catch{}})(),jm=ix,Um=jm&&jm.isTypedArray,sx=Um?nx(Um):rx,zp=sx,ox=Object.prototype,lx=ox.hasOwnProperty;function $_(e,t){var r=et(e),n=!r&&cc(e),a=!r&&!n&&cl(e),s=!r&&!n&&!a&&zp(e),o=r||n||a||s,l=o?RM(e.length,String):[],c=l.length;for(var u in e)(t||lx.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||g_(u,c)))&&l.push(u);return l}i($_,"arrayLikeKeys");var cx=$_,ux=Object.prototype;function A_(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ux;return e===r}i(A_,"isPrototype");var E_=A_;function __(e,t){return function(r){return e(t(r))}}i(__,"overArg");var fx=__,dx=fx(Object.keys,Object),px=dx,hx=Object.prototype,mx=hx.hasOwnProperty;function C_(e){if(!E_(e))return px(e);var t=[];for(var r in Object(e))mx.call(e,r)&&r!="constructor"&&t.push(r);return t}i(C_,"baseKeys");var S_=C_;function b_(e){return e!=null&&Up(e.length)&&!bE(e)}i(b_,"isArrayLike");var uc=b_;function w_(e){return uc(e)?cx(e):S_(e)}i(w_,"keys");var Bp=w_;function I_(e){return hM(e,Bp,TM)}i(I_,"getAllKeys");var zm=I_,gx=1,yx=Object.prototype,vx=yx.hasOwnProperty;function N_(e,t,r,n,a,s){var o=r&gx,l=zm(e),c=l.length,u=zm(t),f=u.length;if(c!=f&&!o)return!1;for(var d=c;d--;){var h=l[d];if(!(o?h in t:vx.call(t,h)))return!1}var y=s.get(e),v=s.get(t);if(y&&v)return y==t&&v==e;var C=!0;s.set(e,t),s.set(t,e);for(var b=o;++d<c;){h=l[d];var w=e[h],I=t[h];if(n)var A=o?n(I,w,h,t,e,s):n(w,I,h,e,t,s);if(!(A===void 0?w===I||a(w,I,r,n,s):A)){C=!1;break}b||(b=h=="constructor")}if(C&&!b){var k=e.constructor,G=t.constructor;k!=G&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof G=="function"&&G instanceof G)&&(C=!1)}return s.delete(e),s.delete(t),C}i(N_,"equalObjects");var Tx=N_,Rx=Qa(Ir,"DataView"),Ef=Rx,$x=Qa(Ir,"Promise"),_f=$x,Ax=Qa(Ir,"Set"),ka=Ax,Ex=Qa(Ir,"WeakMap"),Cf=Ex,Bm="[object Map]",_x="[object Object]",Km="[object Promise]",qm="[object Set]",Wm="[object WeakMap]",Vm="[object DataView]",Cx=qn(Ef),Sx=qn(ys),bx=qn(_f),wx=qn(ka),Ix=qn(Cf),nn=Za;(Ef&&nn(new Ef(new ArrayBuffer(1)))!=Vm||ys&&nn(new ys)!=Bm||_f&&nn(_f.resolve())!=Km||ka&&nn(new ka)!=qm||Cf&&nn(new Cf)!=Wm)&&(nn=i(function(e){var t=Za(e),r=t==_x?e.constructor:void 0,n=r?qn(r):"";if(n)switch(n){case Cx:return Vm;case Sx:return Bm;case bx:return Km;case wx:return qm;case Ix:return Wm}return t},"getTag"));var Sf=nn,Nx=1,Hm="[object Arguments]",Ym="[object Array]",Ys="[object Object]",kx=Object.prototype,Xm=kx.hasOwnProperty;function k_(e,t,r,n,a,s){var o=et(e),l=et(t),c=o?Ym:Sf(e),u=l?Ym:Sf(t);c=c==Hm?Ys:c,u=u==Hm?Ys:u;var f=c==Ys,d=u==Ys,h=c==u;if(h&&cl(e)){if(!cl(t))return!1;o=!0,f=!1}if(h&&!f)return s||(s=new So),o||zp(e)?QE(e,t,r,n,a,s):dM(e,t,c,r,n,a,s);if(!(r&Nx)){var y=f&&Xm.call(e,"__wrapped__"),v=d&&Xm.call(t,"__wrapped__");if(y||v){var C=y?e.value():e,b=v?t.value():t;return s||(s=new So),a(C,b,r,n,s)}}return h?(s||(s=new So),Tx(e,t,r,n,a,s)):!1}i(k_,"baseIsEqualDeep");var Px=k_;function Kp(e,t,r,n,a){return e===t?!0:e==null||t==null||!za(e)&&!za(t)?e!==e&&t!==t:Px(e,t,r,n,Kp,a)}i(Kp,"baseIsEqual");var P_=Kp,Ox=1,Lx=2;function O_(e,t,r,n){var a=r.length,s=a,o=!n;if(e==null)return!s;for(e=Object(e);a--;){var l=r[a];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<s;){l=r[a];var c=l[0],u=e[c],f=l[1];if(o&&l[2]){if(u===void 0&&!(c in e))return!1}else{var d=new So;if(n)var h=n(u,f,c,e,t,d);if(!(h===void 0?P_(f,u,Ox|Lx,n,d):h))return!1}}return!0}i(O_,"baseIsMatch");var Dx=O_;function L_(e){return e===e&&!Gp(e)}i(L_,"isStrictComparable");var D_=L_;function M_(e){for(var t=Bp(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,D_(a)]}return t}i(M_,"getMatchData");var Mx=M_;function x_(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}i(x_,"matchesStrictComparable");var F_=x_;function G_(e){var t=Mx(e);return t.length==1&&t[0][2]?F_(t[0][0],t[0][1]):function(r){return r===e||Dx(r,e,t)}}i(G_,"baseMatches");var xx=G_,Fx="[object Symbol]";function j_(e){return typeof e=="symbol"||za(e)&&Za(e)==Fx}i(j_,"isSymbol");var fc=j_,Gx=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jx=/^\w*$/;function U_(e,t){if(et(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||fc(e)?!0:jx.test(e)||!Gx.test(e)||t!=null&&e in Object(t)}i(U_,"isKey");var qp=U_,Ux="Expected a function";function dc(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ux);var r=i(function(){var n=arguments,a=t?t.apply(this,n):n[0],s=r.cache;if(s.has(a))return s.get(a);var o=e.apply(this,n);return r.cache=s.set(a,o)||s,o},"memoized");return r.cache=new(dc.Cache||lc),r}i(dc,"memoize");dc.Cache=lc;var zx=dc,Bx=500;function z_(e){var t=zx(e,function(n){return r.size===Bx&&r.clear(),n}),r=t.cache;return t}i(z_,"memoizeCapped");var Kx=z_,qx=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wx=/\\(\\)?/g,Vx=Kx(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(qx,function(r,n,a,s){t.push(a?s.replace(Wx,"$1"):n||r)}),t}),Hx=Vx,Jm=er?er.prototype:void 0,Zm=Jm?Jm.toString:void 0;function Wp(e){if(typeof e=="string")return e;if(et(e))return oE(e,Wp)+"";if(fc(e))return Zm?Zm.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}i(Wp,"baseToString");var Yx=Wp;function B_(e){return e==null?"":Yx(e)}i(B_,"toString");var Xx=B_;function K_(e,t){return et(e)?e:qp(e,t)?[e]:Hx(Xx(e))}i(K_,"castPath");var q_=K_;function W_(e){if(typeof e=="string"||fc(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}i(W_,"toKey");var pc=W_;function V_(e,t){t=q_(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[pc(t[r++])];return r&&r==n?e:void 0}i(V_,"baseGet");var H_=V_;function Y_(e,t,r){var n=e==null?void 0:H_(e,t);return n===void 0?r:n}i(Y_,"get");var Jx=Y_;function X_(e,t){return e!=null&&t in Object(e)}i(X_,"baseHasIn");var Zx=X_;function J_(e,t,r){t=q_(t,e);for(var n=-1,a=t.length,s=!1;++n<a;){var o=pc(t[n]);if(!(s=e!=null&&r(e,o)))break;e=e[o]}return s||++n!=a?s:(a=e==null?0:e.length,!!a&&Up(a)&&g_(o,a)&&(et(e)||cc(e)))}i(J_,"hasPath");var Qx=J_;function Z_(e,t){return e!=null&&Qx(e,t,Zx)}i(Z_,"hasIn");var e1=Z_,t1=1,r1=2;function Q_(e,t){return qp(e)&&D_(t)?F_(pc(e),t):function(r){var n=Jx(r,e);return n===void 0&&n===t?e1(r,e):P_(t,n,t1|r1)}}i(Q_,"baseMatchesProperty");var n1=Q_;function eC(e){return e}i(eC,"identity");var Vp=eC;function tC(e){return function(t){return t?.[e]}}i(tC,"baseProperty");var a1=tC;function rC(e){return function(t){return H_(t,e)}}i(rC,"basePropertyDeep");var i1=rC;function nC(e){return qp(e)?a1(pc(e)):i1(e)}i(nC,"property");var s1=nC;function aC(e){return typeof e=="function"?e:e==null?Vp:typeof e=="object"?et(e)?n1(e[0],e[1]):xx(e):s1(e)}i(aC,"baseIteratee");var hc=aC;function iC(e){return function(t,r,n){for(var a=-1,s=Object(t),o=n(t),l=o.length;l--;){var c=o[e?l:++a];if(r(s[c],c,s)===!1)break}return t}}i(iC,"createBaseFor");var o1=iC,l1=o1(),c1=l1;function sC(e,t){return e&&c1(e,t,Bp)}i(sC,"baseForOwn");var u1=sC;function oC(e,t){return function(r,n){if(r==null)return r;if(!uc(r))return e(r,n);for(var a=r.length,s=t?a:-1,o=Object(r);(t?s--:++s<a)&&n(o[s],s,o)!==!1;);return r}}i(oC,"createBaseEach");var f1=oC,d1=f1(u1),mc=d1;function lC(e,t){var r=-1,n=uc(e)?Array(e.length):[];return mc(e,function(a,s,o){n[++r]=t(a,s,o)}),n}i(lC,"baseMap");var p1=lC;function cC(e,t){var r=et(e)?oE:p1;return r(e,hc(t))}i(cC,"map");var gr=cC;function uC(e,t){var r=[];return mc(e,function(n,a,s){t(n,a,s)&&r.push(n)}),r}i(uC,"baseFilter");var h1=uC;function fC(e,t){var r=et(e)?o_:h1;return r(e,hc(t))}i(fC,"filter");var m1=fC;function In(e,t,r){return`${e.name}_${t}_${r}`}i(In,"buildATNKey");var Ur=1,g1=2,dC=4,pC=5,zs=7,y1=8,v1=9,T1=10,R1=11,hC=12,Hp=class{static{i(this,"AbstractTransition")}constructor(e){this.target=e}isEpsilon(){return!1}},Yp=class extends Hp{static{i(this,"AtomTransition")}constructor(e,t){super(e),this.tokenType=t}},mC=class extends Hp{static{i(this,"EpsilonTransition")}constructor(e){super(e)}isEpsilon(){return!0}},Xp=class extends Hp{static{i(this,"RuleTransition")}constructor(e,t,r){super(e),this.rule=t,this.followState=r}isEpsilon(){return!0}};function gC(e){const t={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]};yC(t,e);const r=e.length;for(let n=0;n<r;n++){const a=e[n],s=Vr(t,a,a);s!==void 0&&wC(t,a,s)}return t}i(gC,"createATN");function yC(e,t){const r=t.length;for(let n=0;n<r;n++){const a=t[n],s=Fe(e,a,void 0,{type:g1}),o=Fe(e,a,void 0,{type:zs});s.stop=o,e.ruleToStartState.set(a,s),e.ruleToStopState.set(a,o)}}i(yC,"createRuleStartAndStopATNStates");function Jp(e,t,r){return r instanceof Te?gc(e,t,r.terminalType,r):r instanceof Ze?bC(e,t,r):r instanceof lt?AC(e,t,r):r instanceof Be?EC(e,t,r):r instanceof we?vC(e,t,r):r instanceof ot?TC(e,t,r):r instanceof mt?RC(e,t,r):r instanceof gt?$C(e,t,r):Vr(e,t,r)}i(Jp,"atom");function vC(e,t,r){const n=Fe(e,t,r,{type:pC});Nr(e,n);const a=Yn(e,t,n,r,Vr(e,t,r));return Qp(e,t,r,a)}i(vC,"repetition");function TC(e,t,r){const n=Fe(e,t,r,{type:pC});Nr(e,n);const a=Yn(e,t,n,r,Vr(e,t,r)),s=gc(e,t,r.separator,r);return Qp(e,t,r,a,s)}i(TC,"repetitionSep");function RC(e,t,r){const n=Fe(e,t,r,{type:dC});Nr(e,n);const a=Yn(e,t,n,r,Vr(e,t,r));return Zp(e,t,r,a)}i(RC,"repetitionMandatory");function $C(e,t,r){const n=Fe(e,t,r,{type:dC});Nr(e,n);const a=Yn(e,t,n,r,Vr(e,t,r)),s=gc(e,t,r.separator,r);return Zp(e,t,r,a,s)}i($C,"repetitionMandatorySep");function AC(e,t,r){const n=Fe(e,t,r,{type:Ur});Nr(e,n);const a=gr(r.definition,o=>Jp(e,t,o));return Yn(e,t,n,r,...a)}i(AC,"alternation");function EC(e,t,r){const n=Fe(e,t,r,{type:Ur});Nr(e,n);const a=Yn(e,t,n,r,Vr(e,t,r));return _C(e,t,r,a)}i(EC,"option");function Vr(e,t,r){const n=m1(gr(r.definition,a=>Jp(e,t,a)),a=>a!==void 0);return n.length===1?n[0]:n.length===0?void 0:SC(e,n)}i(Vr,"block");function Zp(e,t,r,n,a){const s=n.left,o=n.right,l=Fe(e,t,r,{type:R1});Nr(e,l);const c=Fe(e,t,r,{type:hC});return s.loopback=l,c.loopback=l,e.decisionMap[In(t,a?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",r.idx)]=l,Pe(o,l),a===void 0?(Pe(l,s),Pe(l,c)):(Pe(l,c),Pe(l,a.left),Pe(a.right,s)),{left:s,right:c}}i(Zp,"plus");function Qp(e,t,r,n,a){const s=n.left,o=n.right,l=Fe(e,t,r,{type:T1});Nr(e,l);const c=Fe(e,t,r,{type:hC}),u=Fe(e,t,r,{type:v1});return l.loopback=u,c.loopback=u,Pe(l,s),Pe(l,c),Pe(o,u),a!==void 0?(Pe(u,c),Pe(u,a.left),Pe(a.right,s)):Pe(u,l),e.decisionMap[In(t,a?"RepetitionWithSeparator":"Repetition",r.idx)]=l,{left:l,right:c}}i(Qp,"star");function _C(e,t,r,n){const a=n.left,s=n.right;return Pe(a,s),e.decisionMap[In(t,"Option",r.idx)]=a,n}i(_C,"optional");function Nr(e,t){return e.decisionStates.push(t),t.decision=e.decisionStates.length-1,t.decision}i(Nr,"defineDecisionState");function Yn(e,t,r,n,...a){const s=Fe(e,t,n,{type:y1,start:r});r.end=s;for(const l of a)l!==void 0?(Pe(r,l.left),Pe(l.right,s)):Pe(r,s);const o={left:r,right:s};return e.decisionMap[In(t,CC(n),n.idx)]=r,o}i(Yn,"makeAlts");function CC(e){if(e instanceof lt)return"Alternation";if(e instanceof Be)return"Option";if(e instanceof we)return"Repetition";if(e instanceof ot)return"RepetitionWithSeparator";if(e instanceof mt)return"RepetitionMandatory";if(e instanceof gt)return"RepetitionMandatoryWithSeparator";throw new Error("Invalid production type encountered")}i(CC,"getProdType");function SC(e,t){const r=t.length;for(let s=0;s<r-1;s++){const o=t[s];let l;o.left.transitions.length===1&&(l=o.left.transitions[0]);const c=l instanceof Xp,u=l,f=t[s+1].left;o.left.type===Ur&&o.right.type===Ur&&l!==void 0&&(c&&u.followState===o.right||l.target===o.right)?(c?u.followState=f:l.target=f,IC(e,o.right)):Pe(o.right,f)}const n=t[0],a=t[r-1];return{left:n.left,right:a.right}}i(SC,"makeBlock");function gc(e,t,r,n){const a=Fe(e,t,n,{type:Ur}),s=Fe(e,t,n,{type:Ur});return yc(a,new Yp(s,r)),{left:a,right:s}}i(gc,"tokenRef");function bC(e,t,r){const n=r.referencedRule,a=e.ruleToStartState.get(n),s=Fe(e,t,r,{type:Ur}),o=Fe(e,t,r,{type:Ur}),l=new Xp(a,n,o);return yc(s,l),{left:s,right:o}}i(bC,"ruleRef");function wC(e,t,r){const n=e.ruleToStartState.get(t);Pe(n,r.left);const a=e.ruleToStopState.get(t);return Pe(r.right,a),{left:n,right:a}}i(wC,"buildRuleHandle");function Pe(e,t){const r=new mC(t);yc(e,r)}i(Pe,"epsilon");function Fe(e,t,r,n){const a=Object.assign({atn:e,production:r,epsilonOnlyTransitions:!1,rule:t,transitions:[],nextTokenWithinRule:[],stateNumber:e.states.length},n);return e.states.push(a),a}i(Fe,"newState");function yc(e,t){e.transitions.length===0&&(e.epsilonOnlyTransitions=t.isEpsilon()),e.transitions.push(t)}i(yc,"addTransition");function IC(e,t){e.states.splice(e.states.indexOf(t),1)}i(IC,"removeState");var ul={},bf=class{static{i(this,"ATNConfigSet")}constructor(){this.map={},this.configs=[]}get size(){return this.configs.length}finalize(){this.map={}}add(e){const t=eh(e);t in this.map||(this.map[t]=this.configs.length,this.configs.push(e))}get elements(){return this.configs}get alts(){return gr(this.configs,e=>e.alt)}get key(){let e="";for(const t in this.map)e+=t+":";return e}};function eh(e,t=!0){return`${t?`a${e.alt}`:""}s${e.state.stateNumber}:${e.stack.map(r=>r.stateNumber.toString()).join("_")}`}i(eh,"getATNConfigKey");function NC(e,t,r){for(var n=-1,a=e.length;++n<a;){var s=e[n],o=t(s);if(o!=null&&(l===void 0?o===o&&!fc(o):r(o,l)))var l=o,c=s}return c}i(NC,"baseExtremum");var $1=NC;function kC(e,t){return e<t}i(kC,"baseLt");var A1=kC;function PC(e){return e&&e.length?$1(e,Vp,A1):void 0}i(PC,"min");var E1=PC,Qm=er?er.isConcatSpreadable:void 0;function OC(e){return et(e)||cc(e)||!!(Qm&&e&&e[Qm])}i(OC,"isFlattenable");var _1=OC;function th(e,t,r,n,a){var s=-1,o=e.length;for(r||(r=_1),a||(a=[]);++s<o;){var l=e[s];t>0&&r(l)?t>1?th(l,t-1,r,n,a):a_(a,l):n||(a[a.length]=l)}return a}i(th,"baseFlatten");var LC=th;function DC(e,t){return LC(gr(e,t),1)}i(DC,"flatMap");var C1=DC;function MC(e,t,r,n){for(var a=e.length,s=r+(n?1:-1);n?s--:++s<a;)if(t(e[s],s,e))return s;return-1}i(MC,"baseFindIndex");var S1=MC;function xC(e){return e!==e}i(xC,"baseIsNaN");var b1=xC;function FC(e,t,r){for(var n=r-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1}i(FC,"strictIndexOf");var w1=FC;function GC(e,t,r){return t===t?w1(e,t,r):S1(e,b1,r)}i(GC,"baseIndexOf");var I1=GC;function jC(e,t){var r=e==null?0:e.length;return!!r&&I1(e,t,0)>-1}i(jC,"arrayIncludes");var N1=jC;function UC(e,t,r){for(var n=-1,a=e==null?0:e.length;++n<a;)if(r(t,e[n]))return!0;return!1}i(UC,"arrayIncludesWith");var k1=UC;function zC(){}i(zC,"noop");var P1=zC,O1=1/0,L1=ka&&1/jp(new ka([,-0]))[1]==O1?function(e){return new ka(e)}:P1,D1=L1,M1=200;function BC(e,t,r){var n=-1,a=N1,s=e.length,o=!0,l=[],c=l;if(r)o=!1,a=k1;else if(s>=M1){var u=t?null:D1(e);if(u)return jp(u);o=!1,a=JE,c=new HE}else c=t?[]:l;e:for(;++n<s;){var f=e[n],d=t?t(f):f;if(f=r||f!==0?f:0,o&&d===d){for(var h=c.length;h--;)if(c[h]===d)continue e;t&&c.push(d),l.push(f)}else a(c,d,r)||(c!==l&&c.push(d),l.push(f))}return l}i(BC,"baseUniq");var x1=BC;function KC(e,t){return e&&e.length?x1(e,hc(t)):[]}i(KC,"uniqBy");var F1=KC;function qC(e){var t=e==null?0:e.length;return t?LC(e,1):[]}i(qC,"flatten");var G1=qC;function WC(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}i(WC,"arrayEach");var j1=WC;function VC(e){return typeof e=="function"?e:Vp}i(VC,"castFunction");var U1=VC;function HC(e,t){var r=et(e)?j1:mc;return r(e,U1(t))}i(HC,"forEach");var Fc=HC,z1="[object Map]",B1="[object Set]",K1=Object.prototype,q1=K1.hasOwnProperty;function YC(e){if(e==null)return!0;if(uc(e)&&(et(e)||typeof e=="string"||typeof e.splice=="function"||cl(e)||zp(e)||cc(e)))return!e.length;var t=Sf(e);if(t==z1||t==B1)return!e.size;if(E_(e))return!S_(e).length;for(var r in e)if(q1.call(e,r))return!1;return!0}i(YC,"isEmpty");var W1=YC;function XC(e,t,r,n){var a=-1,s=e==null?0:e.length;for(n&&s&&(r=e[++a]);++a<s;)r=t(r,e[a],a,e);return r}i(XC,"arrayReduce");var V1=XC;function JC(e,t,r,n,a){return a(e,function(s,o,l){r=n?(n=!1,s):t(r,s,o,l)}),r}i(JC,"baseReduce");var H1=JC;function ZC(e,t,r){var n=et(e)?V1:H1,a=arguments.length<3;return n(e,hc(t),r,a,mc)}i(ZC,"reduce");var eg=ZC;function QC(e,t){const r={};return n=>{const a=n.toString();let s=r[a];return s!==void 0||(s={atnStartState:e,decision:t,states:{}},r[a]=s),s}}i(QC,"createDFACache");var eS=class{static{i(this,"PredicateSet")}constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,t){this.predicates[e]=t}toString(){let e="";const t=this.predicates.length;for(let r=0;r<t;r++)e+=this.predicates[r]===!0?"1":"0";return e}},tg=new eS,Y1=class extends Mp{static{i(this,"LLStarLookaheadStrategy")}constructor(e){var t;super(),this.logging=(t=e?.logging)!==null&&t!==void 0?t:(r=>console.log(r))}initialize(e){this.atn=gC(e.rules),this.dfas=tS(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){const{prodOccurrence:t,rule:r,hasPredicates:n,dynamicTokensEnabled:a}=e,s=this.dfas,o=this.logging,l=In(r,"Alternation",t),u=this.atn.decisionMap[l].decision,f=gr(pf({maxLookahead:1,occurrence:t,prodType:"Alternation",rule:r}),d=>gr(d,h=>h[0]));if(wf(f,!1)&&!a){const d=eg(f,(h,y,v)=>(Fc(y,C=>{C&&(h[C.tokenTypeIdx]=v,Fc(C.categoryMatches,b=>{h[b]=v}))}),h),{});return n?function(h){var y;const v=this.LA(1),C=d[v.tokenTypeIdx];if(h!==void 0&&C!==void 0){const b=(y=h[C])===null||y===void 0?void 0:y.GATE;if(b!==void 0&&b.call(this)===!1)return}return C}:function(){const h=this.LA(1);return d[h.tokenTypeIdx]}}else return n?function(d){const h=new eS,y=d===void 0?0:d.length;for(let C=0;C<y;C++){const b=d?.[C].GATE;h.set(C,b===void 0||b.call(this))}const v=bo.call(this,s,u,h,o);return typeof v=="number"?v:void 0}:function(){const d=bo.call(this,s,u,tg,o);return typeof d=="number"?d:void 0}}buildLookaheadForOptional(e){const{prodOccurrence:t,rule:r,prodType:n,dynamicTokensEnabled:a}=e,s=this.dfas,o=this.logging,l=In(r,n,t),u=this.atn.decisionMap[l].decision,f=gr(pf({maxLookahead:1,occurrence:t,prodType:n,rule:r}),d=>gr(d,h=>h[0]));if(wf(f)&&f[0][0]&&!a){const d=f[0],h=G1(d);if(h.length===1&&W1(h[0].categoryMatches)){const v=h[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===v}}else{const y=eg(h,(v,C)=>(C!==void 0&&(v[C.tokenTypeIdx]=!0,Fc(C.categoryMatches,b=>{v[b]=!0})),v),{});return function(){const v=this.LA(1);return y[v.tokenTypeIdx]===!0}}}return function(){const d=bo.call(this,s,u,tg,o);return typeof d=="object"?!1:d===0}}};function wf(e,t=!0){const r=new Set;for(const n of e){const a=new Set;for(const s of n){if(s===void 0){if(t)break;return!1}const o=[s.tokenTypeIdx].concat(s.categoryMatches);for(const l of o)if(r.has(l)){if(!a.has(l))return!1}else r.add(l),a.add(l)}}return!0}i(wf,"isLL1Sequence");function tS(e){const t=e.decisionStates.length,r=Array(t);for(let n=0;n<t;n++)r[n]=QC(e.decisionStates[n],n);return r}i(tS,"initATNSimulator");function bo(e,t,r,n){const a=e[t](r);let s=a.start;if(s===void 0){const l=dS(a.atnStartState);s=nh(a,rh(l)),a.start=s}return rS.apply(this,[a,s,r,n])}i(bo,"adaptivePredict");function rS(e,t,r,n){let a=t,s=1;const o=[];let l=this.LA(s++);for(;;){let c=lS(a,l);if(c===void 0&&(c=nS.apply(this,[e,a,l,s,r,n])),c===ul)return oS(o,a,l);if(c.isAcceptState===!0)return c.prediction;a=c,o.push(l),l=this.LA(s++)}}i(rS,"performLookahead");function nS(e,t,r,n,a,s){const o=cS(t.configs,r,a);if(o.size===0)return If(e,t,r,ul),ul;let l=rh(o);const c=fS(o,a);if(c!==void 0)l.isAcceptState=!0,l.prediction=c,l.configs.uniqueAlt=c;else if(gS(o)){const u=E1(o.alts);l.isAcceptState=!0,l.prediction=u,l.configs.uniqueAlt=u,aS.apply(this,[e,n,o.alts,s])}return l=If(e,t,r,l),l}i(nS,"computeLookaheadTarget");function aS(e,t,r,n){const a=[];for(let u=1;u<=t;u++)a.push(this.LA(u).tokenType);const s=e.atnStartState,o=s.rule,l=s.production,c=iS({topLevelRule:o,ambiguityIndices:r,production:l,prefixPath:a});n(c)}i(aS,"reportLookaheadAmbiguity");function iS(e){const t=gr(e.prefixPath,a=>_n(a)).join(", "),r=e.production.idx===0?"":e.production.idx;let n=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(", ")}> in <${sS(e.production)}${r}> inside <${e.topLevelRule.name}> Rule,
146
+ <${t}> may appears as a prefix path in all these alternatives.
147
+ `;return n=n+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
148
+ For Further details.`,n}i(iS,"buildAmbiguityError");function sS(e){if(e instanceof Ze)return"SUBRULE";if(e instanceof Be)return"OPTION";if(e instanceof lt)return"OR";if(e instanceof mt)return"AT_LEAST_ONE";if(e instanceof gt)return"AT_LEAST_ONE_SEP";if(e instanceof ot)return"MANY_SEP";if(e instanceof we)return"MANY";if(e instanceof Te)return"CONSUME";throw Error("non exhaustive match")}i(sS,"getProductionDslName");function oS(e,t,r){const n=C1(t.configs.elements,s=>s.state.transitions),a=F1(n.filter(s=>s instanceof Yp).map(s=>s.tokenType),s=>s.tokenTypeIdx);return{actualToken:r,possibleTokenTypes:a,tokenPath:e}}i(oS,"buildAdaptivePredictError");function lS(e,t){return e.edges[t.tokenTypeIdx]}i(lS,"getExistingTargetState");function cS(e,t,r){const n=new bf,a=[];for(const o of e.elements){if(r.is(o.alt)===!1)continue;if(o.state.type===zs){a.push(o);continue}const l=o.state.transitions.length;for(let c=0;c<l;c++){const u=o.state.transitions[c],f=uS(u,t);f!==void 0&&n.add({state:f,alt:o.alt,stack:o.stack})}}let s;if(a.length===0&&n.size===1&&(s=n),s===void 0){s=new bf;for(const o of n.elements)Rs(o,s)}if(a.length>0&&!hS(s))for(const o of a)s.add(o);return s}i(cS,"computeReachSet");function uS(e,t){if(e instanceof Yp&&Ip(t,e.tokenType))return e.target}i(uS,"getReachableTarget");function fS(e,t){let r;for(const n of e.elements)if(t.is(n.alt)===!0){if(r===void 0)r=n.alt;else if(r!==n.alt)return}return r}i(fS,"getUniqueAlt");function rh(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}i(rh,"newDFAState");function If(e,t,r,n){return n=nh(e,n),t.edges[r.tokenTypeIdx]=n,n}i(If,"addDFAEdge");function nh(e,t){if(t===ul)return t;const r=t.configs.key,n=e.states[r];return n!==void 0?n:(t.configs.finalize(),e.states[r]=t,t)}i(nh,"addDFAState");function dS(e){const t=new bf,r=e.transitions.length;for(let n=0;n<r;n++){const s={state:e.transitions[n].target,alt:n,stack:[]};Rs(s,t)}return t}i(dS,"computeStartState");function Rs(e,t){const r=e.state;if(r.type===zs){if(e.stack.length>0){const a=[...e.stack],o={state:a.pop(),alt:e.alt,stack:a};Rs(o,t)}else t.add(e);return}r.epsilonOnlyTransitions||t.add(e);const n=r.transitions.length;for(let a=0;a<n;a++){const s=r.transitions[a],o=pS(e,s);o!==void 0&&Rs(o,t)}}i(Rs,"closure");function pS(e,t){if(t instanceof mC)return{state:t.target,alt:e.alt,stack:e.stack};if(t instanceof Xp){const r=[...e.stack,t.followState];return{state:t.target,alt:e.alt,stack:r}}}i(pS,"getEpsilonTarget");function hS(e){for(const t of e.elements)if(t.state.type===zs)return!0;return!1}i(hS,"hasConfigInRuleStopState");function mS(e){for(const t of e.elements)if(t.state.type!==zs)return!1;return!0}i(mS,"allConfigsInRuleStopStates");function gS(e){if(mS(e))return!0;const t=yS(e.elements);return vS(t)&&!TS(t)}i(gS,"hasConflictTerminatingPrediction");function yS(e){const t=new Map;for(const r of e){const n=eh(r,!1);let a=t.get(n);a===void 0&&(a={},t.set(n,a)),a[r.alt]=!0}return t}i(yS,"getConflictingAltSets");function vS(e){for(const t of Array.from(e.values()))if(Object.keys(t).length>1)return!0;return!1}i(vS,"hasConflictingAltSet");function TS(e){for(const t of Array.from(e.values()))if(Object.keys(t).length===1)return!0;return!1}i(TS,"hasStateAssociatedWithOneAlt");Es();var RS=class{static{i(this,"CstNodeBuilder")}constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]??this.rootNode}buildRootNode(e){return this.rootNode=new ih(e),this.rootNode.root=this.rootNode,this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){const t=new vc;return t.grammarSource=e,t.root=this.rootNode,this.current.content.push(t),this.nodeStack.push(t),t}buildLeafNode(e,t){const r=new fl(e.startOffset,e.image.length,os(e),e.tokenType,!t);return r.grammarSource=t,r.root=this.rootNode,this.current.content.push(r),r}removeNode(e){const t=e.container;if(t){const r=t.content.indexOf(e);r>=0&&t.content.splice(r,1)}}addHiddenNodes(e){const t=[];for(const a of e){const s=new fl(a.startOffset,a.image.length,os(a),a.tokenType,!0);s.root=this.rootNode,t.push(s)}let r=this.current,n=!1;if(r.content.length>0){r.content.push(...t);return}for(;r.container;){const a=r.container.content.indexOf(r);if(a>0){r.container.content.splice(a,0,...t),n=!0;break}r=r.container}n||this.rootNode.content.unshift(...t)}construct(e){const t=this.current;typeof e.$type=="string"&&!e.$infix&&(this.current.astNode=e),e.$cstNode=t;const r=this.nodeStack.pop();r?.content.length===0&&this.removeNode(r)}},ah=class{static{i(this,"AbstractCstNode")}get hidden(){return!1}get astNode(){const e=typeof this._astNode?.$type=="string"?this._astNode:this.container?.astNode;if(!e)throw new Error("This node has no associated AST element");return e}set astNode(e){this._astNode=e}get text(){return this.root.fullText.substring(this.offset,this.end)}},fl=class extends ah{static{i(this,"LeafCstNodeImpl")}get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get range(){return this._range}constructor(e,t,r,n,a=!1){super(),this._hidden=a,this._offset=e,this._tokenType=n,this._length=t,this._range=r}},vc=class extends ah{static{i(this,"CompositeCstNodeImpl")}constructor(){super(...arguments),this.content=new X1(this)}get offset(){return this.firstNonHiddenNode?.offset??0}get length(){return this.end-this.offset}get end(){return this.lastNonHiddenNode?.end??0}get range(){const e=this.firstNonHiddenNode,t=this.lastNonHiddenNode;if(e&&t){if(this._rangeCache===void 0){const{range:r}=e,{range:n}=t;this._rangeCache={start:r.start,end:n.end.line<r.start.line?r.start:n.end}}return this._rangeCache}else return{start:ie.create(0,0),end:ie.create(0,0)}}get firstNonHiddenNode(){for(const e of this.content)if(!e.hidden)return e;return this.content[0]}get lastNonHiddenNode(){for(let e=this.content.length-1;e>=0;e--){const t=this.content[e];if(!t.hidden)return t}return this.content[this.content.length-1]}},X1=class $S extends Array{static{i(this,"CstNodeContainer")}constructor(t){super(),this.parent=t,Object.setPrototypeOf(this,$S.prototype)}push(...t){return this.addParents(t),super.push(...t)}unshift(...t){return this.addParents(t),super.unshift(...t)}splice(t,r,...n){return this.addParents(n),super.splice(t,r,...n)}addParents(t){for(const r of t)r.container=this.parent}},ih=class extends vc{static{i(this,"RootCstNodeImpl")}get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super(),this._text="",this._text=e??""}},dl=Symbol("Datatype");function wo(e){return e.$type===dl}i(wo,"isDataTypeNode");var rg="​",AS=i(e=>e.endsWith(rg)?e:e+rg,"withRuleSuffix"),sh=class{static{i(this,"AbstractLangiumParser")}constructor(e){this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=e.parser.Lexer;const t=this.lexer.definition,r=e.LanguageMetaData.mode==="production";e.shared.profilers.LangiumProfiler?.isActive("parsing")?this.wrapper=new Z1(t,{...e.parser.ParserConfig,skipValidations:r,errorMessageProvider:e.parser.ParserErrorMessageProvider},e.shared.profilers.LangiumProfiler.createTask("parsing",e.LanguageMetaData.languageId)):this.wrapper=new SS(t,{...e.parser.ParserConfig,skipValidations:r,errorMessageProvider:e.parser.ParserErrorMessageProvider})}alternatives(e,t){this.wrapper.wrapOr(e,t)}optional(e,t){this.wrapper.wrapOption(e,t)}many(e,t){this.wrapper.wrapMany(e,t)}atLeastOne(e,t){this.wrapper.wrapAtLeastOne(e,t)}getRule(e){return this.allRules.get(e)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}},ES=class extends sh{static{i(this,"LangiumParser")}get current(){return this.stack[this.stack.length-1]}constructor(e){super(e),this.nodeBuilder=new RS,this.stack=[],this.assignmentMap=new Map,this.operatorPrecedence=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,t){const r=this.computeRuleType(e);let n;Ma(e)&&(n=e.name,this.registerPrecedenceMap(e));const a=this.wrapper.DEFINE_RULE(AS(e.name),this.startImplementation(r,n,t).bind(this));return this.allRules.set(e.name,a),Je(e)&&e.entry&&(this.mainRule=a),a}registerPrecedenceMap(e){const t=e.name,r=new Map;for(let n=0;n<e.operators.precedences.length;n++){const a=e.operators.precedences[n];for(const s of a.operators)r.set(s.value,{precedence:n,rightAssoc:a.associativity==="right"})}this.operatorPrecedence.set(t,r)}computeRuleType(e){return Ma(e)?Sn(e):e.fragment?void 0:bs(e)?dl:Sn(e)}parse(e,t={}){this.nodeBuilder.buildRootNode(e);const r=this.lexerResult=this.lexer.tokenize(e);this.wrapper.input=r.tokens;const n=t.rule?this.allRules.get(t.rule):this.mainRule;if(!n)throw new Error(t.rule?`No rule found with name '${t.rule}'`:"No main rule available.");const a=this.doParse(n);return this.nodeBuilder.addHiddenNodes(r.hidden),this.unorderedGroups.clear(),this.lexerResult=void 0,La(a,{deep:!0}),{value:a,lexerErrors:r.errors,lexerReport:r.report,parserErrors:this.wrapper.errors}}doParse(e){let t=this.wrapper.rule(e);if(this.stack.length>0&&(t=this.construct()),t===void 0)throw new Error("No result from parser");if(this.stack.length>0)throw new Error("Parser stack is not empty after parsing");return t}startImplementation(e,t,r){return n=>{const a=!this.isRecording()&&e!==void 0;if(a){const s={$type:e};this.stack.push(s),e===dl?s.value="":t!==void 0&&(s.$infixName=t)}return r(n),a?this.construct():void 0}}extractHiddenTokens(e){const t=this.lexerResult.hidden;if(!t.length)return[];const r=e.startOffset;for(let n=0;n<t.length;n++)if(t[n].startOffset>r)return t.splice(0,n);return t.splice(0,t.length)}consume(e,t,r){const n=this.wrapper.wrapConsume(e,t);if(!this.isRecording()&&this.isValidToken(n)){const a=this.extractHiddenTokens(n);this.nodeBuilder.addHiddenNodes(a);const s=this.nodeBuilder.buildLeafNode(n,r),{assignment:o,crossRef:l}=this.getAssignment(r),c=this.current;if(o){const u=Tr(r)?n.image:this.converter.convert(n.image,s);this.assign(o.operator,o.feature,u,s,l)}else if(wo(c)){let u=n.image;Tr(r)||(u=this.converter.convert(u,s).toString()),c.value+=u}}}isValidToken(e){return!e.isInsertedInRecovery&&!isNaN(e.startOffset)&&typeof e.endOffset=="number"&&!isNaN(e.endOffset)}subrule(e,t,r,n,a){let s;!this.isRecording()&&!r&&(s=this.nodeBuilder.buildCompositeNode(n));let o;try{o=this.wrapper.wrapSubrule(e,t,a)}finally{this.isRecording()||(o===void 0&&!r&&(o=this.construct()),o!==void 0&&s&&s.length>0&&this.performSubruleAssignment(o,n,s))}}performSubruleAssignment(e,t,r){const{assignment:n,crossRef:a}=this.getAssignment(t);if(n)this.assign(n.operator,n.feature,e,r,a);else if(!n){const s=this.current;if(wo(s))s.value+=e.toString();else if(typeof e=="object"&&e){const l=this.assignWithoutOverride(e,s);this.stack.pop(),this.stack.push(l)}}}action(e,t){if(!this.isRecording()){let r=this.current;if(t.feature&&t.operator){r=this.construct(),this.nodeBuilder.removeNode(r.$cstNode),this.nodeBuilder.buildCompositeNode(t).content.push(r.$cstNode);const a={$type:e};this.stack.push(a),this.assign(t.operator,t.feature,r,r.$cstNode)}else r.$type=e}}construct(){if(this.isRecording())return;const e=this.stack.pop();return this.nodeBuilder.construct(e),"$infixName"in e?this.constructInfix(e,this.operatorPrecedence.get(e.$infixName)):wo(e)?this.converter.convert(e.value,e.$cstNode):(ad(this.astReflection,e),e)}constructInfix(e,t){const r=e.parts;if(!Array.isArray(r)||r.length===0)return;const n=e.operators;if(!Array.isArray(n)||r.length<2)return r[0];let a=0,s=-1;for(let v=0;v<n.length;v++){const C=n[v],b=t.get(C)??{precedence:1/0,rightAssoc:!1};b.precedence>s?(s=b.precedence,a=v):b.precedence===s&&(b.rightAssoc||(a=v))}const o=n.slice(0,a),l=n.slice(a+1),c=r.slice(0,a+1),u=r.slice(a+1),f={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:c,operators:o},d={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:u,operators:l},h=this.constructInfix(f,t),y=this.constructInfix(d,t);return{$type:e.$type,$cstNode:e.$cstNode,left:h,operator:n[a],right:y}}getAssignment(e){if(!this.assignmentMap.has(e)){const t=Pn(e,vr);this.assignmentMap.set(e,{assignment:t,crossRef:t&&Ln(t.terminal)?t.terminal.isMulti?"multi":"single":void 0})}return this.assignmentMap.get(e)}assign(e,t,r,n,a){const s=this.current;let o;switch(a==="single"&&typeof r=="string"?o=this.linker.buildReference(s,t,n,r):a==="multi"&&typeof r=="string"?o=this.linker.buildMultiReference(s,t,n,r):o=r,e){case"=":{s[t]=o;break}case"?=":{s[t]=!0;break}case"+=":Array.isArray(s[t])||(s[t]=[]),s[t].push(o)}}assignWithoutOverride(e,t){for(const[n,a]of Object.entries(t)){const s=e[n];s===void 0?e[n]=a:Array.isArray(s)&&Array.isArray(a)&&(a.push(...s),e[n]=a)}const r=e.$cstNode;return r&&(r.astNode=void 0,e.$cstNode=void 0),e}get definitionErrors(){return this.wrapper.definitionErrors}},_S=class{static{i(this,"AbstractParserErrorMessageProvider")}buildMismatchTokenMessage(e){return ba.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return ba.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return ba.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return ba.buildEarlyExitMessage(e)}},oh=class extends _S{static{i(this,"LangiumParserErrorMessageProvider")}buildMismatchTokenMessage({expected:e,actual:t}){return`Expecting ${e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(":KW")?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`} but found \`${t.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}},CS=class extends sh{static{i(this,"LangiumCompletionParser")}constructor(){super(...arguments),this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){}parse(e){this.resetState();const t=this.lexer.tokenize(e,{mode:"partial"});return this.tokens=t.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,t){const r=this.wrapper.DEFINE_RULE(AS(e.name),this.startImplementation(t).bind(this));return this.allRules.set(e.name,r),e.entry&&(this.mainRule=r),r}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(e){return t=>{const r=this.keepStackSize();try{e(t)}finally{this.resetStackSize(r)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){const e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,t,r){this.wrapper.wrapConsume(e,t),this.isRecording()||(this.lastElementStack=[...this.elementStack,r],this.nextTokenIndex=this.currIdx+1)}subrule(e,t,r,n,a){this.before(n),this.wrapper.wrapSubrule(e,t,a),this.after(n)}before(e){this.isRecording()||this.elementStack.push(e)}after(e){if(!this.isRecording()){const t=this.elementStack.lastIndexOf(e);t>=0&&this.elementStack.splice(t)}}get currIdx(){return this.wrapper.currIdx}},J1={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new oh},SS=class extends xL{static{i(this,"ChevrotainWrapper")}constructor(e,t){const r=t&&"maxLookahead"in t;super(e,{...J1,lookaheadStrategy:r?new Mp({maxLookahead:t.maxLookahead}):new Y1({logging:t.skipValidations?()=>{}:void 0}),...t})}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,t,r){return this.RULE(e,t,r)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,t){return this.consume(e,t,void 0)}wrapSubrule(e,t,r){return this.subrule(e,t,{ARGS:[r]})}wrapOr(e,t){this.or(e,t)}wrapOption(e,t){this.option(e,t)}wrapMany(e,t){this.many(e,t)}wrapAtLeastOne(e,t){this.atLeastOne(e,t)}rule(e){return e.call(this,{})}},Z1=class extends SS{static{i(this,"ProfilerWrapper")}constructor(e,t,r){super(e,t),this.task=r}rule(e){this.task.start(),this.task.startSubTask(this.ruleName(e));try{return super.rule(e)}finally{this.task.stopSubTask(this.ruleName(e)),this.task.stop()}}ruleName(e){return e.ruleName}subrule(e,t,r){this.task.startSubTask(this.ruleName(t));try{return super.subrule(e,t,r)}finally{this.task.stopSubTask(this.ruleName(t))}}};function Tc(e,t,r){return bS({parser:t,tokens:r,ruleNames:new Map},e),t}i(Tc,"createParser");function bS(e,t){const r=Ll(t,!1),n=oe(t.rules).filter(Je).filter(s=>r.has(s));for(const s of n){const o={...e,consume:1,optional:1,subrule:1,many:1,or:1};e.parser.rule(s,zr(o,s.definition))}const a=oe(t.rules).filter(Ma).filter(s=>r.has(s));for(const s of a)e.parser.rule(s,wS(e,s))}i(bS,"buildRules");function wS(e,t){const r=t.call.rule.ref;if(!r)throw new Error("Could not resolve reference to infix operator rule: "+t.call.rule.$refText);if(bt(r))throw new Error("Cannot use terminal rule in infix expression");const n=t.operators.precedences.flatMap(y=>y.operators),a={$type:"Group",elements:[]},s={$container:a,$type:"Assignment",feature:"parts",operator:"+=",terminal:t.call},o={$container:a,$type:"Group",elements:[],cardinality:"*"};a.elements.push(s,o);const c={$container:o,$type:"Assignment",feature:"operators",operator:"+=",terminal:{$type:"Alternatives",elements:n}},u={...s,$container:o};o.elements.push(c,u);const d=n.map(y=>e.tokens[y.value]).map((y,v)=>({ALT:i(()=>e.parser.consume(v,y,c),"ALT")}));let h;return y=>{h??(h=Rc(e,r)),e.parser.subrule(0,h,!1,s,y),e.parser.many(0,{DEF:i(()=>{e.parser.alternatives(0,d),e.parser.subrule(1,h,!1,u,y)},"DEF")})}}i(wS,"buildInfixRule");function zr(e,t,r=!1){let n;if(Tr(t))n=DS(e,t);else if(Fr(t))n=IS(e,t);else if(vr(t))n=zr(e,t.terminal);else if(Ln(t))n=lh(e,t);else if(Rr(t))n=NS(e,t);else if(Cl(t))n=PS(e,t);else if(Il(t))n=OS(e,t);else if(Dn(t))n=LS(e,t);else if(fd(t)){const a=e.consume++;n=i(()=>e.parser.consume(a,jr,t),"method")}else throw new kl(t.$cstNode,`Unexpected element type: ${t.$type}`);return ch(e,r?void 0:$s(t),n,t.cardinality)}i(zr,"buildElement");function IS(e,t){const r=Sn(t);return()=>e.parser.action(r,t)}i(IS,"buildAction");function NS(e,t){const r=t.rule.ref;if(On(r)){const n=e.subrule++,a=Je(r)&&r.fragment,s=t.arguments.length>0?kS(r,t.arguments):()=>({});let o;return l=>{o??(o=Rc(e,r)),e.parser.subrule(n,o,a,t,s(l))}}else if(bt(r)){const n=e.consume++,a=pl(e,r.name);return()=>e.parser.consume(n,a,t)}else if(r)Kr();else throw new kl(t.$cstNode,`Undefined rule: ${t.rule.$refText}`)}i(NS,"buildRuleCall");function kS(e,t){if(t.some(n=>n.calledByName)){const n=t.map(a=>({parameterName:a.parameter?.ref?.name,predicate:Lt(a.value)}));return a=>{const s={};for(const{parameterName:o,predicate:l}of n)o&&(s[o]=l(a));return s}}else{const n=t.map(a=>Lt(a.value));return a=>{const s={};for(let o=0;o<n.length;o++)if(o<e.parameters.length){const l=e.parameters[o].name,c=n[o];s[l]=c(a)}return s}}}i(kS,"buildRuleCallPredicate");function Lt(e){if(ud(e)){const t=Lt(e.left),r=Lt(e.right);return n=>t(n)||r(n)}else if(cd(e)){const t=Lt(e.left),r=Lt(e.right);return n=>t(n)&&r(n)}else if(hd(e)){const t=Lt(e.value);return r=>!t(r)}else if(md(e)){const t=e.parameter.ref.name;return r=>r!==void 0&&r[t]===!0}else if(od(e)){const t=!!e.true;return()=>t}Kr()}i(Lt,"buildPredicate");function PS(e,t){if(t.elements.length===1)return zr(e,t.elements[0]);{const r=[];for(const a of t.elements){const s={ALT:zr(e,a,!0)},o=$s(a);o&&(s.GATE=Lt(o)),r.push(s)}const n=e.or++;return a=>e.parser.alternatives(n,r.map(s=>{const o={ALT:i(()=>s.ALT(a),"ALT")},l=s.GATE;return l&&(o.GATE=()=>l(a)),o}))}}i(PS,"buildAlternatives");function OS(e,t){if(t.elements.length===1)return zr(e,t.elements[0]);const r=[];for(const l of t.elements){const c={ALT:zr(e,l,!0)},u=$s(l);u&&(c.GATE=Lt(u)),r.push(c)}const n=e.or++,a=i((l,c)=>{const u=c.getRuleStack().join("-");return`uGroup_${l}_${u}`},"idFunc"),s=i(l=>e.parser.alternatives(n,r.map((c,u)=>{const f={ALT:i(()=>!0,"ALT")},d=e.parser;f.ALT=()=>{if(c.ALT(l),!d.isRecording()){const y=a(n,d);d.unorderedGroups.get(y)||d.unorderedGroups.set(y,[]);const v=d.unorderedGroups.get(y);typeof v?.[u]>"u"&&(v[u]=!0)}};const h=c.GATE;return h?f.GATE=()=>h(l):f.GATE=()=>!d.unorderedGroups.get(a(n,d))?.[u],f})),"alternatives"),o=ch(e,$s(t),s,"*");return l=>{o(l),e.parser.isRecording()||e.parser.unorderedGroups.delete(a(n,e.parser))}}i(OS,"buildUnorderedGroup");function LS(e,t){const r=t.elements.map(n=>zr(e,n));return n=>r.forEach(a=>a(n))}i(LS,"buildGroup");function $s(e){if(Dn(e))return e.guardCondition}i($s,"getGuardCondition");function lh(e,t,r=t.terminal){if(r)if(Rr(r)&&Je(r.rule.ref)){const n=r.rule.ref,a=e.subrule++;let s;return o=>{s??(s=Rc(e,n)),e.parser.subrule(a,s,!1,t,o)}}else if(Rr(r)&&bt(r.rule.ref)){const n=e.consume++,a=pl(e,r.rule.ref.name);return()=>e.parser.consume(n,a,t)}else if(Tr(r)){const n=e.consume++,a=pl(e,r.value);return()=>e.parser.consume(n,a,t)}else throw new Error("Could not build cross reference parser");else{if(!t.type.ref)throw new Error("Could not resolve reference to type: "+t.type.$refText);const a=Fl(t.type.ref)?.terminal;if(!a)throw new Error("Could not find name assignment for type: "+Sn(t.type.ref));return lh(e,t,a)}}i(lh,"buildCrossReference");function DS(e,t){const r=e.consume++,n=e.tokens[t.value];if(!n)throw new Error("Could not find token for keyword: "+t.value);return()=>e.parser.consume(r,n,t)}i(DS,"buildKeyword");function ch(e,t,r,n){const a=t&&Lt(t);if(!n)if(a){const s=e.or++;return o=>e.parser.alternatives(s,[{ALT:i(()=>r(o),"ALT"),GATE:i(()=>a(o),"GATE")},{ALT:Af(),GATE:i(()=>!a(o),"GATE")}])}else return r;if(n==="*"){const s=e.many++;return o=>e.parser.many(s,{DEF:i(()=>r(o),"DEF"),GATE:a?()=>a(o):void 0})}else if(n==="+"){const s=e.many++;if(a){const o=e.or++;return l=>e.parser.alternatives(o,[{ALT:i(()=>e.parser.atLeastOne(s,{DEF:i(()=>r(l),"DEF")}),"ALT"),GATE:i(()=>a(l),"GATE")},{ALT:Af(),GATE:i(()=>!a(l),"GATE")}])}else return o=>e.parser.atLeastOne(s,{DEF:i(()=>r(o),"DEF")})}else if(n==="?"){const s=e.optional++;return o=>e.parser.optional(s,{DEF:i(()=>r(o),"DEF"),GATE:a?()=>a(o):void 0})}else Kr()}i(ch,"wrap");function Rc(e,t){const r=MS(e,t),n=e.parser.getRule(r);if(!n)throw new Error(`Rule "${r}" not found."`);return n}i(Rc,"getRule");function MS(e,t){if(On(t))return t.name;if(e.ruleNames.has(t))return e.ruleNames.get(t);{let r=t,n=r.$container,a=t.$type;for(;!Je(n);)(Dn(n)||Cl(n)||Il(n))&&(a=n.elements.indexOf(r).toString()+":"+a),r=n,n=n.$container;return a=n.name+":"+a,e.ruleNames.set(t,a),a}}i(MS,"getRuleName");function pl(e,t){const r=e.tokens[t];if(!r)throw new Error(`Token "${t}" not found."`);return r}i(pl,"getToken");function uh(e){const t=e.Grammar,r=e.parser.Lexer,n=new CS(e);return Tc(t,n,r.definition),n.finalize(),n}i(uh,"createCompletionParser");function fh(e){const t=dh(e);return t.finalize(),t}i(fh,"createLangiumParser");function dh(e){const t=e.Grammar,r=e.parser.Lexer,n=new ES(e);return Tc(t,n,r.definition)}i(dh,"prepareLangiumParser");var $c=class{static{i(this,"DefaultTokenBuilder")}constructor(){this.diagnostics=[]}buildTokens(e,t){const r=oe(Ll(e,!1)),n=this.buildTerminalTokens(r),a=this.buildKeywordTokens(r,n,t);return a.push(...n),a}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){const e=[...this.diagnostics];return this.diagnostics=[],e}buildTerminalTokens(e){return e.filter(bt).filter(t=>!t.fragment).map(t=>this.buildTerminalToken(t)).toArray()}buildTerminalToken(e){const t=Is(e),r=this.requiresCustomPattern(t)?this.regexPatternFunction(t):t,n={name:e.name,PATTERN:r};return typeof r=="function"&&(n.LINE_BREAKS=!0),e.hidden&&(n.GROUP=Ol(t)?Xe.SKIPPED:"hidden"),n}requiresCustomPattern(e){return!!(e.flags.includes("u")||e.flags.includes("s"))}regexPatternFunction(e){const t=new RegExp(e,e.flags+"y");return(r,n)=>(t.lastIndex=n,t.exec(r))}buildKeywordTokens(e,t,r){return e.filter(On).flatMap(n=>br(n).filter(Tr)).distinct(n=>n.value).toArray().sort((n,a)=>a.value.length-n.value.length).map(n=>this.buildKeywordToken(n,t,!!r?.caseInsensitive))}buildKeywordToken(e,t,r){const n=this.buildKeywordPattern(e,r),a={name:e.value,PATTERN:n,LONGER_ALT:this.findLongerAlt(e,t)};return typeof n=="function"&&(a.LINE_BREAKS=!0),a}buildKeywordPattern(e,t){return t?new RegExp(Wa(e.value),"i"):e.value}findLongerAlt(e,t){return t.reduce((r,n)=>{const a=n?.PATTERN;return a?.source&&xd("^"+a.source+"$",e.value)&&r.push(n),r},[])}},ph=class{static{i(this,"DefaultValueConverter")}convert(e,t){let r=t.grammarSource;if(Ln(r)&&(r=zd(r)),Rr(r)){const n=r.rule.ref;if(!n)throw new Error("This cst node was not parsed by a rule.");return this.runConverter(n,e,t)}return e}runConverter(e,t,r){switch(e.name.toUpperCase()){case"INT":return Ht.convertInt(t);case"STRING":return Ht.convertString(t);case"ID":return Ht.convertID(t)}switch(Jd(e)?.toLowerCase()){case"number":return Ht.convertNumber(t);case"boolean":return Ht.convertBoolean(t);case"bigint":return Ht.convertBigint(t);case"date":return Ht.convertDate(t);default:return t}}},Ht;(function(e){function t(u){let f="";for(let d=1;d<u.length-1;d++){const h=u.charAt(d);if(h==="\\"){const y=u.charAt(++d);f+=r(y)}else f+=h}return f}i(t,"convertString"),e.convertString=t;function r(u){switch(u){case"b":return"\b";case"f":return"\f";case"n":return`
149
+ `;case"r":return"\r";case"t":return" ";case"v":return"\v";case"0":return"\0";default:return u}}i(r,"convertEscapeCharacter");function n(u){return u.charAt(0)==="^"?u.substring(1):u}i(n,"convertID"),e.convertID=n;function a(u){return parseInt(u)}i(a,"convertInt"),e.convertInt=a;function s(u){return BigInt(u)}i(s,"convertBigint"),e.convertBigint=s;function o(u){return new Date(u)}i(o,"convertDate"),e.convertDate=o;function l(u){return Number(u)}i(l,"convertNumber"),e.convertNumber=l;function c(u){return u.toLowerCase()==="true"}i(c,"convertBoolean"),e.convertBoolean=c})(Ht||(Ht={}));var pe={};Rl(pe,Jf(Al()));function Ac(){return new Promise(e=>{typeof setImmediate>"u"?setTimeout(e,0):setImmediate(e)})}i(Ac,"delayNextTick");var Io=0,xS=10;function Ec(){return Io=performance.now(),new pe.CancellationTokenSource}i(Ec,"startCancelableOperation");function hh(e){xS=e}i(hh,"setInterruptionPeriod");var Jt=Symbol("OperationCancelled");function Xn(e){return e===Jt}i(Xn,"isOperationCancelled");async function Ge(e){if(e===pe.CancellationToken.None)return;const t=performance.now();if(t-Io>=xS&&(Io=t,await Ac(),Io=performance.now()),e.isCancellationRequested)throw Jt}i(Ge,"interruptAndCheck");var Cr=class{static{i(this,"Deferred")}constructor(){this.promise=new Promise((e,t)=>{this.resolve=r=>(e(r),this),this.reject=r=>(t(r),this)})}},ng=class Nf{static{i(this,"FullTextDocument")}constructor(t,r,n,a){this._uri=t,this._languageId=r,this._version=n,this._content=a,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){const r=this.offsetAt(t.start),n=this.offsetAt(t.end);return this._content.substring(r,n)}return this._content}update(t,r){for(const n of t)if(Nf.isIncremental(n)){const a=gh(n.range),s=this.offsetAt(a.start),o=this.offsetAt(a.end);this._content=this._content.substring(0,s)+n.text+this._content.substring(o,this._content.length);const l=Math.max(a.start.line,0),c=Math.max(a.end.line,0);let u=this._lineOffsets;const f=kf(n.text,!1,s);if(c-l===f.length)for(let h=0,y=f.length;h<y;h++)u[h+l+1]=f[h];else f.length<1e4?u.splice(l+1,c-l,...f):this._lineOffsets=u=u.slice(0,l+1).concat(f,u.slice(c+1));const d=n.text.length-(o-s);if(d!==0)for(let h=l+1+f.length,y=u.length;h<y;h++)u[h]=u[h]+d}else if(Nf.isFull(n))this._content=n.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=r}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=kf(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);const r=this.getLineOffsets();let n=0,a=r.length;if(a===0)return{line:0,character:t};for(;n<a;){const o=Math.floor((n+a)/2);r[o]>t?a=o:n=o+1}const s=n-1;return t=this.ensureBeforeEOL(t,r[s]),{line:s,character:t-r[s]}}offsetAt(t){const r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;const n=r[t.line];if(t.character<=0)return n;const a=t.line+1<r.length?r[t.line+1]:this._content.length,s=Math.min(n+t.character,a);return this.ensureBeforeEOL(s,n)}ensureBeforeEOL(t,r){for(;t>r&&mh(this._content.charCodeAt(t-1));)t--;return t}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){const r=t;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}static isFull(t){const r=t;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}},hl;(function(e){function t(a,s,o,l){return new ng(a,s,o,l)}i(t,"create"),e.create=t;function r(a,s,o){if(a instanceof ng)return a.update(s,o),a;throw new Error("TextDocument.update: document must be created by TextDocument.create")}i(r,"update"),e.update=r;function n(a,s){const o=a.getText(),l=ml(s.map(FS),(f,d)=>{const h=f.range.start.line-d.range.start.line;return h===0?f.range.start.character-d.range.start.character:h});let c=0;const u=[];for(const f of l){const d=a.offsetAt(f.range.start);if(d<c)throw new Error("Overlapping edit");d>c&&u.push(o.substring(c,d)),f.newText.length&&u.push(f.newText),c=a.offsetAt(f.range.end)}return u.push(o.substr(c)),u.join("")}i(n,"applyEdits"),e.applyEdits=n})(hl||(hl={}));function ml(e,t){if(e.length<=1)return e;const r=e.length/2|0,n=e.slice(0,r),a=e.slice(r);ml(n,t),ml(a,t);let s=0,o=0,l=0;for(;s<n.length&&o<a.length;)t(n[s],a[o])<=0?e[l++]=n[s++]:e[l++]=a[o++];for(;s<n.length;)e[l++]=n[s++];for(;o<a.length;)e[l++]=a[o++];return e}i(ml,"mergeSort");function kf(e,t,r=0){const n=t?[r]:[];for(let a=0;a<e.length;a++){const s=e.charCodeAt(a);mh(s)&&(s===13&&a+1<e.length&&e.charCodeAt(a+1)===10&&a++,n.push(r+a+1))}return n}i(kf,"computeLineOffsets");function mh(e){return e===13||e===10}i(mh,"isEOL");function gh(e){const t=e.start,r=e.end;return t.line>r.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}i(gh,"getWellformedRange");function FS(e){const t=gh(e.range);return t!==e.range?{newText:e.newText,range:t}:e}i(FS,"getWellformedEdit");var GS;(()=>{var e={975:P=>{function _(T){if(typeof T!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(T))}i(_,"e");function g(T,R){for(var S,O="",M=0,D=-1,z=0,B=0;B<=T.length;++B){if(B<T.length)S=T.charCodeAt(B);else{if(S===47)break;S=47}if(S===47){if(!(D===B-1||z===1))if(D!==B-1&&z===2){if(O.length<2||M!==2||O.charCodeAt(O.length-1)!==46||O.charCodeAt(O.length-2)!==46){if(O.length>2){var Z=O.lastIndexOf("/");if(Z!==O.length-1){Z===-1?(O="",M=0):M=(O=O.slice(0,Z)).length-1-O.lastIndexOf("/"),D=B,z=0;continue}}else if(O.length===2||O.length===1){O="",M=0,D=B,z=0;continue}}R&&(O.length>0?O+="/..":O="..",M=2)}else O.length>0?O+="/"+T.slice(D+1,B):O=T.slice(D+1,B),M=B-D-1;D=B,z=0}else S===46&&z!==-1?++z:z=-1}return O}i(g,"r");var E={resolve:i(function(){for(var T,R="",S=!1,O=arguments.length-1;O>=-1&&!S;O--){var M;O>=0?M=arguments[O]:(T===void 0&&(T=process.cwd()),M=T),_(M),M.length!==0&&(R=M+"/"+R,S=M.charCodeAt(0)===47)}return R=g(R,!S),S?R.length>0?"/"+R:"/":R.length>0?R:"."},"resolve"),normalize:i(function(T){if(_(T),T.length===0)return".";var R=T.charCodeAt(0)===47,S=T.charCodeAt(T.length-1)===47;return(T=g(T,!R)).length!==0||R||(T="."),T.length>0&&S&&(T+="/"),R?"/"+T:T},"normalize"),isAbsolute:i(function(T){return _(T),T.length>0&&T.charCodeAt(0)===47},"isAbsolute"),join:i(function(){if(arguments.length===0)return".";for(var T,R=0;R<arguments.length;++R){var S=arguments[R];_(S),S.length>0&&(T===void 0?T=S:T+="/"+S)}return T===void 0?".":E.normalize(T)},"join"),relative:i(function(T,R){if(_(T),_(R),T===R||(T=E.resolve(T))===(R=E.resolve(R)))return"";for(var S=1;S<T.length&&T.charCodeAt(S)===47;++S);for(var O=T.length,M=O-S,D=1;D<R.length&&R.charCodeAt(D)===47;++D);for(var z=R.length-D,B=M<z?M:z,Z=-1,J=0;J<=B;++J){if(J===B){if(z>B){if(R.charCodeAt(D+J)===47)return R.slice(D+J+1);if(J===0)return R.slice(D+J)}else M>B&&(T.charCodeAt(S+J)===47?Z=J:J===0&&(Z=0));break}var te=T.charCodeAt(S+J);if(te!==R.charCodeAt(D+J))break;te===47&&(Z=J)}var fe="";for(J=S+Z+1;J<=O;++J)J!==O&&T.charCodeAt(J)!==47||(fe.length===0?fe+="..":fe+="/..");return fe.length>0?fe+R.slice(D+Z):(D+=Z,R.charCodeAt(D)===47&&++D,R.slice(D))},"relative"),_makeLong:i(function(T){return T},"_makeLong"),dirname:i(function(T){if(_(T),T.length===0)return".";for(var R=T.charCodeAt(0),S=R===47,O=-1,M=!0,D=T.length-1;D>=1;--D)if((R=T.charCodeAt(D))===47){if(!M){O=D;break}}else M=!1;return O===-1?S?"/":".":S&&O===1?"//":T.slice(0,O)},"dirname"),basename:i(function(T,R){if(R!==void 0&&typeof R!="string")throw new TypeError('"ext" argument must be a string');_(T);var S,O=0,M=-1,D=!0;if(R!==void 0&&R.length>0&&R.length<=T.length){if(R.length===T.length&&R===T)return"";var z=R.length-1,B=-1;for(S=T.length-1;S>=0;--S){var Z=T.charCodeAt(S);if(Z===47){if(!D){O=S+1;break}}else B===-1&&(D=!1,B=S+1),z>=0&&(Z===R.charCodeAt(z)?--z==-1&&(M=S):(z=-1,M=B))}return O===M?M=B:M===-1&&(M=T.length),T.slice(O,M)}for(S=T.length-1;S>=0;--S)if(T.charCodeAt(S)===47){if(!D){O=S+1;break}}else M===-1&&(D=!1,M=S+1);return M===-1?"":T.slice(O,M)},"basename"),extname:i(function(T){_(T);for(var R=-1,S=0,O=-1,M=!0,D=0,z=T.length-1;z>=0;--z){var B=T.charCodeAt(z);if(B!==47)O===-1&&(M=!1,O=z+1),B===46?R===-1?R=z:D!==1&&(D=1):R!==-1&&(D=-1);else if(!M){S=z+1;break}}return R===-1||O===-1||D===0||D===1&&R===O-1&&R===S+1?"":T.slice(R,O)},"extname"),format:i(function(T){if(T===null||typeof T!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof T);return(function(R,S){var O=S.dir||S.root,M=S.base||(S.name||"")+(S.ext||"");return O?O===S.root?O+M:O+"/"+M:M})(0,T)},"format"),parse:i(function(T){_(T);var R={root:"",dir:"",base:"",ext:"",name:""};if(T.length===0)return R;var S,O=T.charCodeAt(0),M=O===47;M?(R.root="/",S=1):S=0;for(var D=-1,z=0,B=-1,Z=!0,J=T.length-1,te=0;J>=S;--J)if((O=T.charCodeAt(J))!==47)B===-1&&(Z=!1,B=J+1),O===46?D===-1?D=J:te!==1&&(te=1):D!==-1&&(te=-1);else if(!Z){z=J+1;break}return D===-1||B===-1||te===0||te===1&&D===B-1&&D===z+1?B!==-1&&(R.base=R.name=z===0&&M?T.slice(1,B):T.slice(z,B)):(z===0&&M?(R.name=T.slice(1,D),R.base=T.slice(1,B)):(R.name=T.slice(z,D),R.base=T.slice(z,B)),R.ext=T.slice(D,B)),z>0?R.dir=T.slice(0,z-1):M&&(R.dir="/"),R},"parse"),sep:"/",delimiter:":",win32:null,posix:null};E.posix=E,P.exports=E}},t={};function r(P){var _=t[P];if(_!==void 0)return _.exports;var g=t[P]={exports:{}};return e[P](g,g.exports,r),g.exports}i(r,"r"),r.d=(P,_)=>{for(var g in _)r.o(_,g)&&!r.o(P,g)&&Object.defineProperty(P,g,{enumerable:!0,get:_[g]})},r.o=(P,_)=>Object.prototype.hasOwnProperty.call(P,_),r.r=P=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(P,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(P,"__esModule",{value:!0})};var n={};let a;r.r(n),r.d(n,{URI:i(()=>h,"URI"),Utils:i(()=>Ne,"Utils")}),typeof process=="object"?a=process.platform==="win32":typeof navigator=="object"&&(a=navigator.userAgent.indexOf("Windows")>=0);const s=/^\w[\w\d+.-]*$/,o=/^\//,l=/^\/\//;function c(P,_){if(!P.scheme&&_)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${P.authority}", path: "${P.path}", query: "${P.query}", fragment: "${P.fragment}"}`);if(P.scheme&&!s.test(P.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(P.path){if(P.authority){if(!o.test(P.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(l.test(P.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}i(c,"a");const u="",f="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class h{static{i(this,"l")}static isUri(_){return _ instanceof h||!!_&&typeof _.authority=="string"&&typeof _.fragment=="string"&&typeof _.path=="string"&&typeof _.query=="string"&&typeof _.scheme=="string"&&typeof _.fsPath=="string"&&typeof _.with=="function"&&typeof _.toString=="function"}scheme;authority;path;query;fragment;constructor(_,g,E,T,R,S=!1){typeof _=="object"?(this.scheme=_.scheme||u,this.authority=_.authority||u,this.path=_.path||u,this.query=_.query||u,this.fragment=_.fragment||u):(this.scheme=(function(O,M){return O||M?O:"file"})(_,S),this.authority=g||u,this.path=(function(O,M){switch(O){case"https":case"http":case"file":M?M[0]!==f&&(M=f+M):M=f}return M})(this.scheme,E||u),this.query=T||u,this.fragment=R||u,c(this,S))}get fsPath(){return I(this,!1)}with(_){if(!_)return this;let{scheme:g,authority:E,path:T,query:R,fragment:S}=_;return g===void 0?g=this.scheme:g===null&&(g=u),E===void 0?E=this.authority:E===null&&(E=u),T===void 0?T=this.path:T===null&&(T=u),R===void 0?R=this.query:R===null&&(R=u),S===void 0?S=this.fragment:S===null&&(S=u),g===this.scheme&&E===this.authority&&T===this.path&&R===this.query&&S===this.fragment?this:new v(g,E,T,R,S)}static parse(_,g=!1){const E=d.exec(_);return E?new v(E[2]||u,H(E[4]||u),H(E[5]||u),H(E[7]||u),H(E[9]||u),g):new v(u,u,u,u,u)}static file(_){let g=u;if(a&&(_=_.replace(/\\/g,f)),_[0]===f&&_[1]===f){const E=_.indexOf(f,2);E===-1?(g=_.substring(2),_=f):(g=_.substring(2,E),_=_.substring(E)||f)}return new v("file",g,_,u,u)}static from(_){const g=new v(_.scheme,_.authority,_.path,_.query,_.fragment);return c(g,!0),g}toString(_=!1){return A(this,_)}toJSON(){return this}static revive(_){if(_){if(_ instanceof h)return _;{const g=new v(_);return g._formatted=_.external,g._fsPath=_._sep===y?_.fsPath:null,g}}return _}}const y=a?1:void 0;class v extends h{static{i(this,"d")}_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=I(this,!1)),this._fsPath}toString(_=!1){return _?A(this,!0):(this._formatted||(this._formatted=A(this,!1)),this._formatted)}toJSON(){const _={$mid:1};return this._fsPath&&(_.fsPath=this._fsPath,_._sep=y),this._formatted&&(_.external=this._formatted),this.path&&(_.path=this.path),this.scheme&&(_.scheme=this.scheme),this.authority&&(_.authority=this.authority),this.query&&(_.query=this.query),this.fragment&&(_.fragment=this.fragment),_}}const C={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function b(P,_,g){let E,T=-1;for(let R=0;R<P.length;R++){const S=P.charCodeAt(R);if(S>=97&&S<=122||S>=65&&S<=90||S>=48&&S<=57||S===45||S===46||S===95||S===126||_&&S===47||g&&S===91||g&&S===93||g&&S===58)T!==-1&&(E+=encodeURIComponent(P.substring(T,R)),T=-1),E!==void 0&&(E+=P.charAt(R));else{E===void 0&&(E=P.substr(0,R));const O=C[S];O!==void 0?(T!==-1&&(E+=encodeURIComponent(P.substring(T,R)),T=-1),E+=O):T===-1&&(T=R)}}return T!==-1&&(E+=encodeURIComponent(P.substring(T))),E!==void 0?E:P}i(b,"m");function w(P){let _;for(let g=0;g<P.length;g++){const E=P.charCodeAt(g);E===35||E===63?(_===void 0&&(_=P.substr(0,g)),_+=C[E]):_!==void 0&&(_+=P[g])}return _!==void 0?_:P}i(w,"y");function I(P,_){let g;return g=P.authority&&P.path.length>1&&P.scheme==="file"?`//${P.authority}${P.path}`:P.path.charCodeAt(0)===47&&(P.path.charCodeAt(1)>=65&&P.path.charCodeAt(1)<=90||P.path.charCodeAt(1)>=97&&P.path.charCodeAt(1)<=122)&&P.path.charCodeAt(2)===58?_?P.path.substr(1):P.path[1].toLowerCase()+P.path.substr(2):P.path,a&&(g=g.replace(/\//g,"\\")),g}i(I,"v");function A(P,_){const g=_?w:b;let E="",{scheme:T,authority:R,path:S,query:O,fragment:M}=P;if(T&&(E+=T,E+=":"),(R||T==="file")&&(E+=f,E+=f),R){let D=R.indexOf("@");if(D!==-1){const z=R.substr(0,D);R=R.substr(D+1),D=z.lastIndexOf(":"),D===-1?E+=g(z,!1,!1):(E+=g(z.substr(0,D),!1,!1),E+=":",E+=g(z.substr(D+1),!1,!0)),E+="@"}R=R.toLowerCase(),D=R.lastIndexOf(":"),D===-1?E+=g(R,!1,!0):(E+=g(R.substr(0,D),!1,!0),E+=R.substr(D))}if(S){if(S.length>=3&&S.charCodeAt(0)===47&&S.charCodeAt(2)===58){const D=S.charCodeAt(1);D>=65&&D<=90&&(S=`/${String.fromCharCode(D+32)}:${S.substr(3)}`)}else if(S.length>=2&&S.charCodeAt(1)===58){const D=S.charCodeAt(0);D>=65&&D<=90&&(S=`${String.fromCharCode(D+32)}:${S.substr(2)}`)}E+=g(S,!0,!1)}return O&&(E+="?",E+=g(O,!1,!1)),M&&(E+="#",E+=_?M:b(M,!1,!1)),E}i(A,"b");function k(P){try{return decodeURIComponent(P)}catch{return P.length>3?P.substr(0,3)+k(P.substr(3)):P}}i(k,"C");const G=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function H(P){return P.match(G)?P.replace(G,(_=>k(_))):P}i(H,"w");var X=r(975);const le=X.posix||X,ce="/";var Ne;(function(P){P.joinPath=function(_,...g){return _.with({path:le.join(_.path,...g)})},P.resolvePath=function(_,...g){let E=_.path,T=!1;E[0]!==ce&&(E=ce+E,T=!0);let R=le.resolve(E,...g);return T&&R[0]===ce&&!_.authority&&(R=R.substring(1)),_.with({path:R})},P.dirname=function(_){if(_.path.length===0||_.path===ce)return _;let g=le.dirname(_.path);return g.length===1&&g.charCodeAt(0)===46&&(g=""),_.with({path:g})},P.basename=function(_){return le.basename(_.path)},P.extname=function(_){return le.extname(_.path)}})(Ne||(Ne={})),GS=n})();var{URI:ft,Utils:Ci}=GS,Ye;(function(e){e.basename=Ci.basename,e.dirname=Ci.dirname,e.extname=Ci.extname,e.joinPath=Ci.joinPath,e.resolvePath=Ci.resolvePath;const t=typeof process=="object"&&process?.platform==="win32";function r(o,l){return o?.toString()===l?.toString()}i(r,"equals"),e.equals=r;function n(o,l){const c=typeof o=="string"?ft.parse(o).path:o.path,u=typeof l=="string"?ft.parse(l).path:l.path,f=c.split("/").filter(C=>C.length>0),d=u.split("/").filter(C=>C.length>0);if(t){const C=/^[A-Z]:$/;if(f[0]&&C.test(f[0])&&(f[0]=f[0].toLowerCase()),d[0]&&C.test(d[0])&&(d[0]=d[0].toLowerCase()),f[0]!==d[0])return u.substring(1)}let h=0;for(;h<f.length&&f[h]===d[h];h++);const y="../".repeat(f.length-h),v=d.slice(h).join("/");return y+v}i(n,"relative"),e.relative=n;function a(o){return ft.parse(o.toString()).toString()}i(a,"normalize"),e.normalize=a;function s(o,l){let c=typeof o=="string"?o:o.path,u=typeof l=="string"?l:l.path;return u.charAt(u.length-1)==="/"&&(u=u.slice(0,-1)),c.charAt(c.length-1)==="/"&&(c=c.slice(0,-1)),u===c?!0:u.length<c.length||u.charAt(c.length)!=="/"?!1:u.startsWith(c)}i(s,"contains"),e.contains=s})(Ye||(Ye={}));var yh=class{static{i(this,"UriTrie")}constructor(){this.root={name:"",children:new Map}}normalizeUri(e){return Ye.normalize(e)}clear(){this.root.children.clear()}insert(e,t){const r=this.getNode(this.normalizeUri(e),!0);r.element=t}delete(e){const t=this.getNode(this.normalizeUri(e),!1);t?.parent&&t.parent.children.delete(t.name)}has(e){return this.getNode(this.normalizeUri(e),!1)?.element!==void 0}hasNode(e){return this.getNode(this.normalizeUri(e),!1)!==void 0}find(e){return this.getNode(this.normalizeUri(e),!1)?.element}findNode(e){const t=this.normalizeUri(e),r=this.getNode(t,!1);if(r)return{name:r.name,uri:Ye.joinPath(ft.parse(t),r.name).toString(),element:r.element}}findChildren(e){const t=this.normalizeUri(e),r=this.getNode(t,!1);return r?Array.from(r.children.values()).map(n=>({name:n.name,uri:Ye.joinPath(ft.parse(t),n.name).toString(),element:n.element})):[]}all(){return this.collectValues(this.root)}findAll(e){const t=this.getNode(Ye.normalize(e),!1);return t?this.collectValues(t):[]}getNode(e,t){const r=e.split("/");e.charAt(e.length-1)==="/"&&r.pop();let n=this.root;for(const a of r){let s=n.children.get(a);if(!s)if(t)s={name:a,children:new Map,parent:n},n.children.set(a,s);else return;n=s}return n}collectValues(e){const t=[];e.element&&t.push(e.element);for(const r of e.children.values())t.push(...this.collectValues(r));return t}},Y;(function(e){e[e.Changed=0]="Changed",e[e.Parsed=1]="Parsed",e[e.IndexedContent=2]="IndexedContent",e[e.ComputedScopes=3]="ComputedScopes",e[e.Linked=4]="Linked",e[e.IndexedReferences=5]="IndexedReferences",e[e.Validated=6]="Validated"})(Y||(Y={}));var jS=class{static{i(this,"DefaultLangiumDocumentFactory")}constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,t=pe.CancellationToken.None){const r=await this.fileSystemProvider.readFile(e);return this.createAsync(e,r,t)}fromTextDocument(e,t,r){return t=t??ft.parse(e.uri),pe.CancellationToken.is(r)?this.createAsync(t,e,r):this.create(t,e,r)}fromString(e,t,r){return pe.CancellationToken.is(r)?this.createAsync(t,e,r):this.create(t,e,r)}fromModel(e,t){return this.create(t,{$model:e})}create(e,t,r){if(typeof t=="string"){const n=this.parse(e,t,r);return this.createLangiumDocument(n,e,void 0,t)}else if("$model"in t){const n={value:t.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(n,e)}else{const n=this.parse(e,t.getText(),r);return this.createLangiumDocument(n,e,t)}}async createAsync(e,t,r){if(typeof t=="string"){const n=await this.parseAsync(e,t,r);return this.createLangiumDocument(n,e,void 0,t)}else{const n=await this.parseAsync(e,t.getText(),r);return this.createLangiumDocument(n,e,t)}}createLangiumDocument(e,t,r,n){let a;if(r)a={parseResult:e,uri:t,state:Y.Parsed,references:[],textDocument:r};else{const s=this.createTextDocumentGetter(t,n);a={parseResult:e,uri:t,state:Y.Parsed,references:[],get textDocument(){return s()}}}return e.value.$document=a,a}async update(e,t){const r=e.parseResult.value.$cstNode?.root.fullText,n=this.textDocuments?.get(e.uri.toString()),a=n?n.getText():await this.fileSystemProvider.readFile(e.uri);if(n)Object.defineProperty(e,"textDocument",{value:n});else{const s=this.createTextDocumentGetter(e.uri,a);Object.defineProperty(e,"textDocument",{get:s})}return r!==a&&(e.parseResult=await this.parseAsync(e.uri,a,t),e.parseResult.value.$document=e),e.state=Y.Parsed,e}parse(e,t,r){return this.serviceRegistry.getServices(e).parser.LangiumParser.parse(t,r)}parseAsync(e,t,r){return this.serviceRegistry.getServices(e).parser.AsyncParser.parse(t,r)}createTextDocumentGetter(e,t){const r=this.serviceRegistry;let n;return()=>n??(n=hl.create(e.toString(),r.getServices(e).LanguageMetaData.languageId,0,t??""))}},US=class{static{i(this,"DefaultLangiumDocuments")}constructor(e){this.documentTrie=new yh,this.services=e,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.documentBuilder=()=>e.workspace.DocumentBuilder}get all(){return oe(this.documentTrie.all())}addDocument(e){const t=e.uri.toString();if(this.documentTrie.has(t))throw new Error(`A document with the URI '${t}' is already present.`);this.documentTrie.insert(t,e)}getDocument(e){const t=e.toString();return this.documentTrie.find(t)}getDocuments(e){const t=e.toString();return this.documentTrie.findAll(t)}async getOrCreateDocument(e,t){let r=this.getDocument(e);return r||(r=await this.langiumDocumentFactory.fromUri(e,t),this.addDocument(r),r)}createDocument(e,t,r){if(r)return this.langiumDocumentFactory.fromString(t,e,r).then(n=>(this.addDocument(n),n));{const n=this.langiumDocumentFactory.fromString(t,e);return this.addDocument(n),n}}hasDocument(e){return this.documentTrie.has(e.toString())}invalidateDocument(e){const t=e.toString(),r=this.documentTrie.find(t);return r&&this.documentBuilder().resetToState(r,Y.Changed),r}deleteDocument(e){const t=e.toString(),r=this.documentTrie.find(t);return r&&(r.state=Y.Changed,this.documentTrie.delete(t)),r}deleteDocuments(e){const t=e.toString(),r=this.documentTrie.findAll(t);for(const n of r)n.state=Y.Changed;return this.documentTrie.delete(t),r}},an=Symbol("RefResolving"),zS=class{static{i(this,"DefaultLinker")}constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async link(e,t=pe.CancellationToken.None){if(this.profiler?.isActive("linking")){const r=this.profiler.createTask("linking",this.languageId);r.start();try{for(const n of Mt(e.parseResult.value))await Ge(t),Da(n).forEach(a=>{const s=`${n.$type}:${a.property}`;r.startSubTask(s);try{this.doLink(a,e)}finally{r.stopSubTask(s)}})}finally{r.stop()}}else for(const r of Mt(e.parseResult.value))await Ge(t),Da(r).forEach(n=>this.doLink(n,e))}doLink(e,t){const r=e.reference;if("_ref"in r&&r._ref===void 0){r._ref=an;try{const n=this.getCandidate(e);if(ln(n))r._ref=n;else{r._nodeDescription=n;const a=this.loadAstNode(n);r._ref=a??this.createLinkingError(e,n)}}catch(n){console.error(`An error occurred while resolving reference to '${r.$refText}':`,n);const a=n.message??String(n);r._ref={info:e,message:`An error occurred while resolving reference to '${r.$refText}': ${a}`}}t.references.push(r)}else if("_items"in r&&r._items===void 0){r._items=an;try{const n=this.getCandidates(e),a=[];if(ln(n))r._linkingError=n;else for(const s of n){const o=this.loadAstNode(s);o&&a.push({ref:o,$nodeDescription:s})}r._items=a}catch(n){r._linkingError={info:e,message:`An error occurred while resolving reference to '${r.$refText}': ${n}`},r._items=[]}t.references.push(r)}}unlink(e){for(const t of e.references)"_ref"in t?(t._ref=void 0,delete t._nodeDescription):"_items"in t&&(t._items=void 0,delete t._linkingError);e.references=[]}getCandidate(e){return this.scopeProvider.getScope(e).getElement(e.reference.$refText)??this.createLinkingError(e)}getCandidates(e){const r=this.scopeProvider.getScope(e).getElements(e.reference.$refText).distinct(n=>`${n.documentUri}#${n.path}`).toArray();return r.length>0?r:this.createLinkingError(e)}buildReference(e,t,r,n){const a=this,s={$refNode:r,$refText:n,_ref:void 0,get ref(){if(Le(this._ref))return this._ref;if(td(this._nodeDescription)){const o=a.loadAstNode(this._nodeDescription);this._ref=o??a.createLinkingError({reference:s,container:e,property:t},this._nodeDescription)}else if(this._ref===void 0){this._ref=an;const o=wa(e).$document,l=a.getLinkedNode({reference:s,container:e,property:t});if(l.error&&o&&o.state<Y.ComputedScopes)return this._ref=void 0;this._ref=l.node??l.error,this._nodeDescription=l.descr,o?.references.push(this)}else this._ref===an&&a.throwCyclicReferenceError(e,t,n);return Le(this._ref)?this._ref:void 0},get $nodeDescription(){return this._nodeDescription},get error(){return ln(this._ref)?this._ref:void 0}};return s}buildMultiReference(e,t,r,n){const a=this,s={$refNode:r,$refText:n,_items:void 0,get items(){if(Array.isArray(this._items))return this._items;if(this._items===void 0){this._items=an;const o=wa(e).$document,l=a.getCandidates({reference:s,container:e,property:t}),c=[];if(ln(l))this._linkingError=l;else for(const u of l){const f=a.loadAstNode(u);f&&c.push({ref:f,$nodeDescription:u})}this._items=c,o?.references.push(this)}else this._items===an&&a.throwCyclicReferenceError(e,t,n);return Array.isArray(this._items)?this._items:[]},get error(){if(this._linkingError)return this._linkingError;if(!(this.items.length>0))return this._linkingError=a.createLinkingError({reference:s,container:e,property:t})}};return s}throwCyclicReferenceError(e,t,r){throw new Error(`Cyclic reference resolution detected: ${this.astNodeLocator.getAstNodePath(e)}/${t} (symbol '${r}')`)}getLinkedNode(e){try{const t=this.getCandidate(e);if(ln(t))return{error:t};const r=this.loadAstNode(t);return r?{node:r,descr:t}:{descr:t,error:this.createLinkingError(e,t)}}catch(t){console.error(`An error occurred while resolving reference to '${e.reference.$refText}':`,t);const r=t.message??String(t);return{error:{info:e,message:`An error occurred while resolving reference to '${e.reference.$refText}': ${r}`}}}}loadAstNode(e){if(e.node)return e.node;const t=this.langiumDocuments().getDocument(e.documentUri);if(t)return this.astNodeLocator.getAstNode(t.parseResult.value,e.path)}createLinkingError(e,t){const r=wa(e.container).$document;r&&r.state<Y.ComputedScopes&&console.warn(`Attempted reference resolution before document reached ComputedScopes state (${r.uri}).`);const n=this.reflection.getReferenceType(e);return{info:e,message:`Could not resolve reference to ${n} named '${e.reference.$refText}'.`,targetDescription:t}}};function vh(e){return typeof e.name=="string"}i(vh,"isNamed");var BS=class{static{i(this,"DefaultNameProvider")}getName(e){if(vh(e))return e.name}getNameNode(e){return Dl(e.$cstNode,"name")}},KS=class{static{i(this,"DefaultReferences")}constructor(e){this.nameProvider=e.references.NameProvider,this.index=e.shared.workspace.IndexManager,this.nodeLocator=e.workspace.AstNodeLocator,this.documents=e.shared.workspace.LangiumDocuments,this.hasMultiReference=Mt(e.Grammar).some(t=>Ln(t)&&t.isMulti)}findDeclarations(e){if(e){const t=Wd(e),r=e.astNode;if(t&&r){const n=r[t.feature];if(He(n)||Zt(n))return Oo(n);if(Array.isArray(n)){for(const a of n)if((He(a)||Zt(a))&&a.$refNode&&a.$refNode.offset<=e.offset&&a.$refNode.end>=e.end)return Oo(a)}}if(r){const n=this.nameProvider.getNameNode(r);if(n&&(n===e||Cd(e,n)))return this.getSelfNodes(r)}}return[]}getSelfNodes(e){if(this.hasMultiReference){const t=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e)),r=this.getNodeFromReferenceDescription(t.head());if(r){for(const n of Da(r))if(Zt(n.reference)&&n.reference.items.some(a=>a.ref===e))return n.reference.items.map(a=>a.ref)}return[e]}else return[e]}getNodeFromReferenceDescription(e){if(!e)return;const t=this.documents.getDocument(e.sourceUri);if(t)return this.nodeLocator.getAstNode(t.parseResult.value,e.sourcePath)}findDeclarationNodes(e){const t=this.findDeclarations(e),r=[];for(const n of t){const a=this.nameProvider.getNameNode(n)??n.$cstNode;a&&r.push(a)}return r}findReferences(e,t){const r=[];t.includeDeclaration&&r.push(...this.getSelfReferences(e));let n=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));return t.documentUri&&(n=n.filter(a=>Ye.equals(a.sourceUri,t.documentUri))),r.push(...n),oe(r)}getSelfReferences(e){const t=this.getSelfNodes(e),r=[];for(const n of t){const a=this.nameProvider.getNameNode(n);if(a){const s=Dt(n),o=this.nodeLocator.getAstNodePath(n);r.push({sourceUri:s.uri,sourcePath:o,targetUri:s.uri,targetPath:o,segment:Fa(a),local:!0})}}return r}},Sr=class{static{i(this,"MultiMap")}constructor(e){if(this.map=new Map,e)for(const[t,r]of e)this.add(t,r)}get size(){return ss.sum(oe(this.map.values()).map(e=>e.length))}clear(){this.map.clear()}delete(e,t){if(t===void 0)return this.map.delete(e);{const r=this.map.get(e);if(r){const n=r.indexOf(t);if(n>=0)return r.length===1?this.map.delete(e):r.splice(n,1),!0}return!1}}get(e){return this.map.get(e)??[]}getStream(e){const t=this.map.get(e);return t?oe(t):Pa}has(e,t){if(t===void 0)return this.map.has(e);{const r=this.map.get(e);return r?r.indexOf(t)>=0:!1}}add(e,t){return this.map.has(e)?this.map.get(e).push(t):this.map.set(e,[t]),this}addAll(e,t){return this.map.has(e)?this.map.get(e).push(...t):this.map.set(e,Array.from(t)),this}forEach(e){this.map.forEach((t,r)=>t.forEach(n=>e(n,r,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return oe(this.map.entries()).flatMap(([e,t])=>t.map(r=>[e,r]))}keys(){return oe(this.map.keys())}values(){return oe(this.map.values()).flat()}entriesGroupedByKey(){return oe(this.map.entries())}},gl=class{static{i(this,"BiMap")}get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(const[t,r]of e)this.set(t,r)}clear(){this.map.clear(),this.inverse.clear()}set(e,t){return this.map.set(e,t),this.inverse.set(t,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){const t=this.map.get(e);return t!==void 0?(this.map.delete(e),this.inverse.delete(t),!0):!1}},qS=class{static{i(this,"DefaultScopeComputation")}constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async collectExportedSymbols(e,t=pe.CancellationToken.None){return this.collectExportedSymbolsForNode(e.parseResult.value,e,void 0,t)}async collectExportedSymbolsForNode(e,t,r=Cs,n=pe.CancellationToken.None){const a=[];this.addExportedSymbol(e,a,t);for(const s of r(e))await Ge(n),this.addExportedSymbol(s,a,t);return a}addExportedSymbol(e,t,r){const n=this.nameProvider.getName(e);n&&t.push(this.descriptions.createDescription(e,n,r))}async collectLocalSymbols(e,t=pe.CancellationToken.None){const r=e.parseResult.value,n=new Sr;for(const a of br(r))await Ge(t),this.addLocalSymbol(a,e,n);return n}addLocalSymbol(e,t,r){const n=e.$container;if(n){const a=this.nameProvider.getName(e);a&&r.add(n,this.descriptions.createDescription(e,a,t))}}},Pf=class{static{i(this,"StreamScope")}constructor(e,t,r){this.elements=e,this.outerScope=t,this.caseInsensitive=r?.caseInsensitive??!1,this.concatOuterScope=r?.concatOuterScope??!0}getAllElements(){return this.outerScope?this.elements.concat(this.outerScope.getAllElements()):this.elements}getElement(e){const t=this.caseInsensitive?e.toLowerCase():e,r=this.caseInsensitive?this.elements.find(n=>n.name.toLowerCase()===t):this.elements.find(n=>n.name===e);if(r)return r;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){const t=this.caseInsensitive?e.toLowerCase():e,r=this.caseInsensitive?this.elements.filter(n=>n.name.toLowerCase()===t):this.elements.filter(n=>n.name===e);return(this.concatOuterScope||r.isEmpty())&&this.outerScope?r.concat(this.outerScope.getElements(e)):r}},Q1=class{static{i(this,"MapScope")}constructor(e,t,r){this.elements=new Map,this.caseInsensitive=r?.caseInsensitive??!1,this.concatOuterScope=r?.concatOuterScope??!0;for(const n of e){const a=this.caseInsensitive?n.name.toLowerCase():n.name;this.elements.set(a,n)}this.outerScope=t}getElement(e){const t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t);if(r)return r;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){const t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t),n=r?[r]:[];return(this.concatOuterScope||n.length>0)&&this.outerScope?oe(n).concat(this.outerScope.getElements(e)):oe(n)}getAllElements(){let e=oe(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},WS=class{static{i(this,"MultiMapScope")}constructor(e,t,r){this.elements=new Sr,this.caseInsensitive=r?.caseInsensitive??!1,this.concatOuterScope=r?.concatOuterScope??!0;for(const n of e){const a=this.caseInsensitive?n.name.toLowerCase():n.name;this.elements.add(a,n)}this.outerScope=t}getElement(e){const t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t)[0];if(r)return r;if(this.outerScope)return this.outerScope.getElement(e)}getElements(e){const t=this.caseInsensitive?e.toLowerCase():e,r=this.elements.get(t);return(this.concatOuterScope||r.length===0)&&this.outerScope?oe(r).concat(this.outerScope.getElements(e)):oe(r)}getAllElements(){let e=oe(this.elements.values());return this.outerScope&&(e=e.concat(this.outerScope.getAllElements())),e}},eF={getElement(){},getElements(){return Pa},getAllElements(){return Pa}},_c=class{static{i(this,"DisposableCache")}constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach(e=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw new Error("This cache has already been disposed")}},Th=class extends _c{static{i(this,"SimpleCache")}constructor(){super(...arguments),this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,t){this.throwIfDisposed(),this.cache.set(e,t)}get(e,t){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);if(t){const r=t();return this.cache.set(e,r),r}else return}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}},Cc=class extends _c{static{i(this,"ContextCache")}constructor(e){super(),this.cache=new Map,this.converter=e??(t=>t)}has(e,t){return this.throwIfDisposed(),this.cacheForContext(e).has(t)}set(e,t,r){this.throwIfDisposed(),this.cacheForContext(e).set(t,r)}get(e,t,r){this.throwIfDisposed();const n=this.cacheForContext(e);if(n.has(t))return n.get(t);if(r){const a=r();return n.set(t,a),a}else return}delete(e,t){return this.throwIfDisposed(),this.cacheForContext(e).delete(t)}clear(e){if(this.throwIfDisposed(),e){const t=this.converter(e);this.cache.delete(t)}else this.cache.clear()}cacheForContext(e){const t=this.converter(e);let r=this.cache.get(t);return r||(r=new Map,this.cache.set(t,r)),r}},VS=class extends Cc{static{i(this,"DocumentCache")}constructor(e,t){super(r=>r.toString()),t?(this.toDispose.push(e.workspace.DocumentBuilder.onDocumentPhase(t,r=>{this.clear(r.uri.toString())})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((r,n)=>{for(const a of n)this.clear(a)}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((r,n)=>{const a=r.concat(n);for(const s of a)this.clear(s)}))}},Rh=class extends Th{static{i(this,"WorkspaceCache")}constructor(e,t){super(),t?(this.toDispose.push(e.workspace.DocumentBuilder.onBuildPhase(t,()=>{this.clear()})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((r,n)=>{n.length>0&&this.clear()}))):this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}},HS=class{static{i(this,"DefaultScopeProvider")}constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new Rh(e.shared)}getScope(e){const t=[],r=this.reflection.getReferenceType(e),n=Dt(e.container).localSymbols;if(n){let s=e.container;do n.has(s)&&t.push(n.getStream(s).filter(o=>this.reflection.isSubtype(o.type,r))),s=s.$container;while(s)}let a=this.getGlobalScope(r,e);for(let s=t.length-1;s>=0;s--)a=this.createScope(t[s],a);return a}createScope(e,t,r){return new Pf(oe(e),t,r)}createScopeForNodes(e,t,r){const n=oe(e).map(a=>{const s=this.nameProvider.getName(a);if(s)return this.descriptions.createDescription(a,s)}).nonNullable();return new Pf(n,t,r)}getGlobalScope(e,t){return this.globalScopeCache.get(e,()=>new WS(this.indexManager.allElements(e)))}};function $h(e){return typeof e.$comment=="string"}i($h,"isAstNodeWithComment");function Of(e){return typeof e=="object"&&!!e&&("$ref"in e||"$error"in e)}i(Of,"isIntermediateReference");var YS=class{static{i(this,"DefaultJsonSerializer")}constructor(e){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,t){const r=t??{},n=t?.replacer,a=i((o,l)=>this.replacer(o,l,r),"defaultReplacer"),s=n?(o,l)=>n(o,l,a):a;try{return this.currentDocument=Dt(e),JSON.stringify(e,s,t?.space)}finally{this.currentDocument=void 0}}deserialize(e,t){const r=t??{},n=JSON.parse(e);return this.linkNode(n,n,r),n}replacer(e,t,{refText:r,sourceText:n,textRegions:a,comments:s,uriConverter:o}){if(!this.ignoreProperties.has(e))if(He(t)){const l=t.ref,c=r?t.$refText:void 0;if(l){const u=Dt(l);let f="";this.currentDocument&&this.currentDocument!==u&&(o?f=o(u.uri,l):f=u.uri.toString());const d=this.astNodeLocator.getAstNodePath(l);return{$ref:`${f}#${d}`,$refText:c}}else return{$error:t.error?.message??"Could not resolve reference",$refText:c}}else if(Zt(t)){const l=r?t.$refText:void 0,c=[];for(const u of t.items){const f=u.ref,d=Dt(u.ref);let h="";this.currentDocument&&this.currentDocument!==d&&(o?h=o(d.uri,f):h=d.uri.toString());const y=this.astNodeLocator.getAstNodePath(f);c.push(`${h}#${y}`)}return{$refs:c,$refText:l}}else if(Le(t)){let l;if(a&&(l=this.addAstNodeRegionWithAssignmentsTo({...t}),(!e||t.$document)&&l?.$textRegion&&(l.$textRegion.documentURI=this.currentDocument?.uri.toString())),n&&!e&&(l??(l={...t}),l.$sourceText=t.$cstNode?.text),s){l??(l={...t});const c=this.commentProvider.getComment(t);c&&(l.$comment=c.replace(/\r/g,""))}return l??t}else return t}addAstNodeRegionWithAssignmentsTo(e){const t=i(r=>({offset:r.offset,end:r.end,length:r.length,range:r.range}),"createDocumentSegment");if(e.$cstNode){const r=e.$textRegion=t(e.$cstNode),n=r.assignments={};return Object.keys(e).filter(a=>!a.startsWith("$")).forEach(a=>{const s=Kd(e.$cstNode,a).map(t);s.length!==0&&(n[a]=s)}),e}}linkNode(e,t,r,n,a,s){for(const[l,c]of Object.entries(e))if(Array.isArray(c))for(let u=0;u<c.length;u++){const f=c[u];Of(f)?c[u]=this.reviveReference(e,l,t,f,r):Le(f)&&this.linkNode(f,t,r,e,l,u)}else Of(c)?e[l]=this.reviveReference(e,l,t,c,r):Le(c)&&this.linkNode(c,t,r,e,l);const o=e;o.$container=n,o.$containerProperty=a,o.$containerIndex=s}reviveReference(e,t,r,n,a){let s=n.$refText,o=n.$error,l;if(n.$ref){const c=this.getRefNode(r,n.$ref,a.uriConverter);if(Le(c))return s||(s=this.nameProvider.getName(c)),{$refText:s??"",ref:c};o=c}else if(n.$refs){const c=[];for(const u of n.$refs){const f=this.getRefNode(r,u,a.uriConverter);Le(f)&&c.push({ref:f})}if(c.length===0)l={$refText:s??"",items:c},o??(o="Could not resolve multi-reference");else return{$refText:s??"",items:c}}if(o)return l??(l={$refText:s??"",ref:void 0}),l.error={info:{container:e,property:t,reference:l},message:o},l}getRefNode(e,t,r){try{const n=t.indexOf("#");if(n===0){const l=this.astNodeLocator.getAstNode(e,t.substring(1));return l||"Could not resolve path: "+t}if(n<0){const l=r?r(t):ft.parse(t),c=this.langiumDocuments.getDocument(l);return c?c.parseResult.value:"Could not find document for URI: "+t}const a=r?r(t.substring(0,n)):ft.parse(t.substring(0,n)),s=this.langiumDocuments.getDocument(a);if(!s)return"Could not find document for URI: "+t;if(n===t.length-1)return s.parseResult.value;const o=this.astNodeLocator.getAstNode(s.parseResult.value,t.substring(n+1));return o||"Could not resolve URI: "+t}catch(n){return String(n)}}},XS=class{static{i(this,"DefaultServiceRegistry")}get map(){return this.fileExtensionMap}constructor(e){this.languageIdMap=new Map,this.fileExtensionMap=new Map,this.fileNameMap=new Map,this.textDocuments=e?.workspace.TextDocuments}register(e){const t=e.LanguageMetaData;for(const r of t.fileExtensions)this.fileExtensionMap.has(r)&&console.warn(`The file extension ${r} is used by multiple languages. It is now assigned to '${t.languageId}'.`),this.fileExtensionMap.set(r,e);if(t.fileNames)for(const r of t.fileNames)this.fileNameMap.has(r)&&console.warn(`The file name ${r} is used by multiple languages. It is now assigned to '${t.languageId}'.`),this.fileNameMap.set(r,e);this.languageIdMap.set(t.languageId,e)}getServices(e){if(this.languageIdMap.size===0)throw new Error("The service registry is empty. Use `register` to register the services of a language.");const t=this.textDocuments?.get(e)?.languageId;if(t!==void 0){const s=this.languageIdMap.get(t);if(s)return s}const r=Ye.extname(e),n=Ye.basename(e),a=this.fileNameMap.get(n)??this.fileExtensionMap.get(r);if(!a)throw t?new Error(`The service registry contains no services for the extension '${r}' for language '${t}'.`):new Error(`The service registry contains no services for the extension '${r}'.`);return a}hasServices(e){try{return this.getServices(e),!0}catch{return!1}}get all(){return Array.from(this.languageIdMap.values())}};function An(e){return{code:e}}i(An,"diagnosticData");var yl;(function(e){e.defaults=["fast","slow","built-in"],e.all=e.defaults})(yl||(yl={}));var JS=class{static{i(this,"ValidationRegistry")}constructor(e){this.entries=new Sr,this.knownCategories=new Set(yl.defaults),this.entriesBefore=[],this.entriesAfter=[],this.reflection=e.shared.AstReflection}register(e,t=this,r="fast"){if(r==="built-in")throw new Error("The 'built-in' category is reserved for lexer, parser, and linker errors.");this.knownCategories.add(r);for(const[n,a]of Object.entries(e)){const s=a;if(Array.isArray(s))for(const o of s){const l={check:this.wrapValidationException(o,t),category:r};this.addEntry(n,l)}else if(typeof s=="function"){const o={check:this.wrapValidationException(s,t),category:r};this.addEntry(n,o)}else Kr()}}wrapValidationException(e,t){return async(r,n,a)=>{await this.handleException(()=>e.call(t,r,n,a),"An error occurred during validation",n,r)}}async handleException(e,t,r,n){try{await e()}catch(a){if(Xn(a))throw a;console.error(`${t}:`,a),a instanceof Error&&a.stack&&console.error(a.stack);const s=a instanceof Error?a.message:String(a);r("error",`${t}: ${s}`,{node:n})}}addEntry(e,t){if(e==="AstNode"){this.entries.add("AstNode",t);return}for(const r of this.reflection.getAllSubTypes(e))this.entries.add(r,t)}getChecks(e,t){let r=oe(this.entries.get(e)).concat(this.entries.get("AstNode"));return t&&(r=r.filter(n=>t.includes(n.category))),r.map(n=>n.check)}registerBeforeDocument(e,t=this){this.entriesBefore.push(this.wrapPreparationException(e,"An error occurred during set-up of the validation",t))}registerAfterDocument(e,t=this){this.entriesAfter.push(this.wrapPreparationException(e,"An error occurred during tear-down of the validation",t))}wrapPreparationException(e,t,r){return async(n,a,s,o)=>{await this.handleException(()=>e.call(r,n,a,s,o),t,a,n)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}getAllValidationCategories(e){return this.knownCategories}},ZS=Object.freeze({validateNode:!0,validateChildren:!0}),QS=class{static{i(this,"DefaultDocumentValidator")}constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async validateDocument(e,t={},r=pe.CancellationToken.None){const n=e.parseResult,a=[];if(await Ge(r),(!t.categories||t.categories.includes("built-in"))&&(this.processLexingErrors(n,a,t),t.stopAfterLexingErrors&&a.some(s=>s.data?.code===Et.LexingError)||(this.processParsingErrors(n,a,t),t.stopAfterParsingErrors&&a.some(s=>s.data?.code===Et.ParsingError))||(this.processLinkingErrors(e,a,t),t.stopAfterLinkingErrors&&a.some(s=>s.data?.code===Et.LinkingError))))return a;try{a.push(...await this.validateAst(n.value,t,r))}catch(s){if(Xn(s))throw s;console.error("An error occurred during validation:",s)}return await Ge(r),a}processLexingErrors(e,t,r){const n=[...e.lexerErrors,...e.lexerReport?.diagnostics??[]];for(const a of n){const s=a.severity??"error",o={severity:as(s),range:{start:{line:a.line-1,character:a.column-1},end:{line:a.line-1,character:a.column+a.length-1}},message:a.message,data:Eh(s),source:this.getSource()};t.push(o)}}processParsingErrors(e,t,r){for(const n of e.parserErrors){let a;if(isNaN(n.token.startOffset)){if("previousToken"in n){const s=n.previousToken;if(isNaN(s.startOffset)){const o={line:0,character:0};a={start:o,end:o}}else{const o={line:s.endLine-1,character:s.endColumn};a={start:o,end:o}}}}else a=os(n.token);if(a){const s={severity:as("error"),range:a,message:n.message,data:An(Et.ParsingError),source:this.getSource()};t.push(s)}}}processLinkingErrors(e,t,r){for(const n of e.references){const a=n.error;if(a){const s={node:a.info.container,range:n.$refNode?.range,property:a.info.property,index:a.info.index,data:{code:Et.LinkingError,containerType:a.info.container.$type,property:a.info.property,refText:a.info.reference.$refText}};t.push(this.toDiagnostic("error",a.message,s))}}}async validateAst(e,t,r=pe.CancellationToken.None){const n=[],a=i((s,o,l)=>{n.push(this.toDiagnostic(s,o,l))},"acceptor");return await this.validateAstBefore(e,t,a,r),await this.validateAstNodes(e,t,a,r),await this.validateAstAfter(e,t,a,r),n}async validateAstBefore(e,t,r,n=pe.CancellationToken.None){const a=this.validationRegistry.checksBefore;for(const s of a)await Ge(n),await s(e,r,t.categories??[],n)}async validateAstNodes(e,t,r,n=pe.CancellationToken.None){if(this.profiler?.isActive("validating")){const a=this.profiler.createTask("validating",this.languageId);a.start();try{const s=Mt(e).iterator();for(const o of s){a.startSubTask(o.$type);const l=this.validateSingleNodeOptions(o,t);if(l.validateNode)try{const c=this.validationRegistry.getChecks(o.$type,t.categories);for(const u of c)await u(o,r,n)}finally{a.stopSubTask(o.$type)}l.validateChildren||s.prune()}}finally{a.stop()}}else{const a=Mt(e).iterator();for(const s of a){await Ge(n);const o=this.validateSingleNodeOptions(s,t);if(o.validateNode){const l=this.validationRegistry.getChecks(s.$type,t.categories);for(const c of l)await c(s,r,n)}o.validateChildren||a.prune()}}}validateSingleNodeOptions(e,t){return ZS}async validateAstAfter(e,t,r,n=pe.CancellationToken.None){const a=this.validationRegistry.checksAfter;for(const s of a)await Ge(n),await s(e,r,t.categories??[],n)}toDiagnostic(e,t,r){return{message:t,range:Ah(r),severity:as(e),code:r.code,codeDescription:r.codeDescription,tags:r.tags,relatedInformation:r.relatedInformation,data:r.data,source:this.getSource()}}getSource(){return this.metadata.languageId}};function Ah(e){if(e.range)return e.range;let t;return typeof e.property=="string"?t=Dl(e.node.$cstNode,e.property,e.index):typeof e.keyword=="string"&&(t=qd(e.node.$cstNode,e.keyword,e.index)),t??(t=e.node.$cstNode),t?t.range:{start:{line:0,character:0},end:{line:0,character:0}}}i(Ah,"getDiagnosticRange");function as(e){switch(e){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw new Error("Invalid diagnostic severity: "+e)}}i(as,"toDiagnosticSeverity");function Eh(e){switch(e){case"error":return An(Et.LexingError);case"warning":return An(Et.LexingWarning);case"info":return An(Et.LexingInfo);case"hint":return An(Et.LexingHint);default:throw new Error("Invalid diagnostic severity: "+e)}}i(Eh,"toDiagnosticData");var Et;(function(e){e.LexingError="lexing-error",e.LexingWarning="lexing-warning",e.LexingInfo="lexing-info",e.LexingHint="lexing-hint",e.ParsingError="parsing-error",e.LinkingError="linking-error"})(Et||(Et={}));var eb=class{static{i(this,"DefaultAstNodeDescriptionProvider")}constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,t,r){const n=r??Dt(e);t??(t=this.nameProvider.getName(e));const a=this.astNodeLocator.getAstNodePath(e);if(!t)throw new Error(`Node at path ${a} has no name.`);let s;const o=i(()=>s??(s=Fa(this.nameProvider.getNameNode(e)??e.$cstNode)),"nameSegmentGetter");return{node:e,name:t,get nameSegment(){return o()},selectionSegment:Fa(e.$cstNode),type:e.$type,documentUri:n.uri,path:a}}},tb=class{static{i(this,"DefaultReferenceDescriptionProvider")}constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,t=pe.CancellationToken.None){const r=[],n=e.parseResult.value;for(const a of Mt(n))await Ge(t),Da(a).forEach(s=>{s.reference.error||r.push(...this.createInfoDescriptions(s))});return r}createInfoDescriptions(e){const t=e.reference;if(t.error||!t.$refNode)return[];let r=[];He(t)&&t.$nodeDescription?r=[t.$nodeDescription]:Zt(t)&&(r=t.items.map(l=>l.$nodeDescription).filter(l=>l!==void 0));const n=Dt(e.container).uri,a=this.nodeLocator.getAstNodePath(e.container),s=[],o=Fa(t.$refNode);for(const l of r)s.push({sourceUri:n,sourcePath:a,targetUri:l.documentUri,targetPath:l.path,segment:o,local:Ye.equals(l.documentUri,n)});return s}},rb=class{static{i(this,"DefaultAstNodeLocator")}constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(e){if(e.$container){const t=this.getAstNodePath(e.$container),r=this.getPathSegment(e);return t+this.segmentSeparator+r}return""}getPathSegment({$containerProperty:e,$containerIndex:t}){if(!e)throw new Error("Missing '$containerProperty' in AST node.");return t!==void 0?e+this.indexSeparator+t:e}getAstNode(e,t){return t.split(this.segmentSeparator).reduce((n,a)=>{if(!n||a.length===0)return n;const s=a.indexOf(this.indexSeparator);if(s>0){const o=a.substring(0,s),l=parseInt(a.substring(s+1));return n[o]?.[l]}return n[a]},e)}},Sc={};Rl(Sc,Jf(Ka()));var nb=class{static{i(this,"DefaultConfigurationProvider")}constructor(e){this._ready=new Cr,this.onConfigurationSectionUpdateEmitter=new Sc.Emitter,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){this.workspaceConfig=e.capabilities.workspace?.configuration??!1}async initialized(e){if(this.workspaceConfig){if(e.register){const t=this.serviceRegistry.all;e.register({section:t.map(r=>this.toSectionName(r.LanguageMetaData.languageId))})}if(e.fetchConfiguration){const t=this.serviceRegistry.all.map(n=>({section:this.toSectionName(n.LanguageMetaData.languageId)})),r=await e.fetchConfiguration(t);t.forEach((n,a)=>{this.updateSectionConfiguration(n.section,r[a])})}}this._ready.resolve()}updateConfiguration(e){typeof e.settings!="object"||e.settings===null||Object.entries(e.settings).forEach(([t,r])=>{this.updateSectionConfiguration(t,r),this.onConfigurationSectionUpdateEmitter.fire({section:t,configuration:r})})}updateSectionConfiguration(e,t){this.settings[e]=t}async getConfiguration(e,t){await this.ready;const r=this.toSectionName(e);if(this.settings[r])return this.settings[r][t]}toSectionName(e){return`${e}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}},Xs=Jf(Lw()),Cn;(function(e){function t(r){return{dispose:i(async()=>await r(),"dispose")}}i(t,"create"),e.create=t})(Cn||(Cn={}));var ab=class{static{i(this,"DefaultDocumentBuilder")}constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new Sr,this.documentPhaseListeners=new Sr,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=Y.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.textDocuments=e.workspace.TextDocuments,this.indexManager=e.workspace.IndexManager,this.fileSystemProvider=e.workspace.FileSystemProvider,this.workspaceManager=()=>e.workspace.WorkspaceManager,this.serviceRegistry=e.ServiceRegistry}async build(e,t={},r=pe.CancellationToken.None){for(const n of e){const a=n.uri.toString();if(n.state===Y.Validated){if(typeof t.validation=="boolean"&&t.validation)this.resetToState(n,Y.IndexedReferences);else if(typeof t.validation=="object"){const s=this.findMissingValidationCategories(n,t);s.length>0&&(this.buildState.set(a,{completed:!1,options:{validation:{categories:s}},result:this.buildState.get(a)?.result}),n.state=Y.IndexedReferences)}}else this.buildState.delete(a)}this.currentState=Y.Changed,await this.emitUpdate(e.map(n=>n.uri),[]),await this.buildDocuments(e,t,r)}async update(e,t,r=pe.CancellationToken.None){this.currentState=Y.Changed;const n=[];for(const l of t){const c=this.langiumDocuments.deleteDocuments(l);for(const u of c)n.push(u.uri),this.cleanUpDeleted(u)}const a=(await Promise.all(e.map(l=>this.findChangedUris(l)))).flat();for(const l of a){let c=this.langiumDocuments.getDocument(l);c===void 0&&(c=this.langiumDocumentFactory.fromModel({$type:"INVALID"},l),c.state=Y.Changed,this.langiumDocuments.addDocument(c)),this.resetToState(c,Y.Changed)}const s=oe(a).concat(n).map(l=>l.toString()).toSet();this.langiumDocuments.all.filter(l=>!s.has(l.uri.toString())&&this.shouldRelink(l,s)).forEach(l=>this.resetToState(l,Y.ComputedScopes)),await this.emitUpdate(a,n),await Ge(r);const o=this.sortDocuments(this.langiumDocuments.all.filter(l=>l.state<Y.Validated||!this.buildState.get(l.uri.toString())?.completed||this.resultsAreIncomplete(l,this.updateBuildOptions)).toArray());await this.buildDocuments(o,this.updateBuildOptions,r)}resultsAreIncomplete(e,t){return this.findMissingValidationCategories(e,t).length>=1}findMissingValidationCategories(e,t){const r=this.buildState.get(e.uri.toString()),n=this.serviceRegistry.getServices(e.uri).validation.ValidationRegistry.getAllValidationCategories(e),a=r?.result?.validationChecks?new Set(r?.result?.validationChecks):r?.completed?n:new Set,s=t===void 0||t.validation===!0?n:typeof t.validation=="object"?t.validation.categories??n:[];return oe(s).filter(o=>!a.has(o)).toArray()}async findChangedUris(e){if(this.langiumDocuments.getDocument(e)??this.textDocuments?.get(e))return[e];try{const r=await this.fileSystemProvider.stat(e);if(r.isDirectory)return await this.workspaceManager().searchFolder(e);if(this.workspaceManager().shouldIncludeEntry(r))return[e]}catch{}return[]}async emitUpdate(e,t){await Promise.all(this.updateListeners.map(r=>r(e,t)))}sortDocuments(e){let t=0,r=e.length-1;for(;t<r;){for(;t<e.length&&this.hasTextDocument(e[t]);)t++;for(;r>=0&&!this.hasTextDocument(e[r]);)r--;t<r&&([e[t],e[r]]=[e[r],e[t]])}return e}hasTextDocument(e){return!!this.textDocuments?.get(e.uri)}shouldRelink(e,t){return e.references.some(r=>r.error!==void 0)?!0:this.indexManager.isAffected(e,t)}onUpdate(e){return this.updateListeners.push(e),Cn.create(()=>{const t=this.updateListeners.indexOf(e);t>=0&&this.updateListeners.splice(t,1)})}resetToState(e,t){switch(t){case Y.Changed:case Y.Parsed:this.indexManager.removeContent(e.uri);case Y.IndexedContent:e.localSymbols=void 0;case Y.ComputedScopes:this.serviceRegistry.getServices(e.uri).references.Linker.unlink(e);case Y.Linked:this.indexManager.removeReferences(e.uri);case Y.IndexedReferences:e.diagnostics=void 0,this.buildState.delete(e.uri.toString());case Y.Validated:}e.state>t&&(e.state=t)}cleanUpDeleted(e){this.buildState.delete(e.uri.toString()),this.indexManager.remove(e.uri),e.state=Y.Changed}async buildDocuments(e,t,r){this.prepareBuild(e,t),await this.runCancelable(e,Y.Parsed,r,s=>this.langiumDocumentFactory.update(s,r)),await this.runCancelable(e,Y.IndexedContent,r,s=>this.indexManager.updateContent(s,r)),await this.runCancelable(e,Y.ComputedScopes,r,async s=>{const o=this.serviceRegistry.getServices(s.uri).references.ScopeComputation;s.localSymbols=await o.collectLocalSymbols(s,r)});const n=e.filter(s=>this.shouldLink(s));await this.runCancelable(n,Y.Linked,r,s=>this.serviceRegistry.getServices(s.uri).references.Linker.link(s,r)),await this.runCancelable(n,Y.IndexedReferences,r,s=>this.indexManager.updateReferences(s,r));const a=e.filter(s=>this.shouldValidate(s)?!0:(this.markAsCompleted(s),!1));await this.runCancelable(a,Y.Validated,r,async s=>{await this.validate(s,r),this.markAsCompleted(s)})}markAsCompleted(e){const t=this.buildState.get(e.uri.toString());t&&(t.completed=!0)}prepareBuild(e,t){for(const r of e){const n=r.uri.toString(),a=this.buildState.get(n);(!a||a.completed)&&this.buildState.set(n,{completed:!1,options:t,result:a?.result})}}async runCancelable(e,t,r,n){for(const s of e)s.state<t&&(await Ge(r),await n(s),s.state=t,await this.notifyDocumentPhase(s,t,r));const a=e.filter(s=>s.state===t);await this.notifyBuildPhase(a,t,r),this.currentState=t}onBuildPhase(e,t){return this.buildPhaseListeners.add(e,t),Cn.create(()=>{this.buildPhaseListeners.delete(e,t)})}onDocumentPhase(e,t){return this.documentPhaseListeners.add(e,t),Cn.create(()=>{this.documentPhaseListeners.delete(e,t)})}waitUntil(e,t,r){let n;return t&&"path"in t?n=t:r=t,r??(r=pe.CancellationToken.None),n?this.awaitDocumentState(e,n,r):this.awaitBuilderState(e,r)}awaitDocumentState(e,t,r){const n=this.langiumDocuments.getDocument(t);if(n){if(n.state>=e)return Promise.resolve(t);if(r.isCancellationRequested)return Promise.reject(Jt);if(this.currentState>=e&&e>n.state)return Promise.reject(new Xs.ResponseError(Xs.LSPErrorCodes.RequestFailed,`Document state of ${t.toString()} is ${Y[n.state]}, requiring ${Y[e]}, but workspace state is already ${Y[this.currentState]}. Returning undefined.`))}else return Promise.reject(new Xs.ResponseError(Xs.LSPErrorCodes.ServerCancelled,`No document found for URI: ${t.toString()}`));return new Promise((a,s)=>{const o=this.onDocumentPhase(e,c=>{Ye.equals(c.uri,t)&&(o.dispose(),l.dispose(),a(c.uri))}),l=r.onCancellationRequested(()=>{o.dispose(),l.dispose(),s(Jt)})})}awaitBuilderState(e,t){return this.currentState>=e?Promise.resolve():t.isCancellationRequested?Promise.reject(Jt):new Promise((r,n)=>{const a=this.onBuildPhase(e,()=>{a.dispose(),s.dispose(),r()}),s=t.onCancellationRequested(()=>{a.dispose(),s.dispose(),n(Jt)})})}async notifyDocumentPhase(e,t,r){const a=this.documentPhaseListeners.get(t).slice();for(const s of a)try{await Ge(r),await s(e,r)}catch(o){if(!Xn(o))throw o}}async notifyBuildPhase(e,t,r){if(e.length===0)return;const a=this.buildPhaseListeners.get(t).slice();for(const s of a)await Ge(r),await s(e,r)}shouldLink(e){return this.getBuildOptions(e).eagerLinking??!0}shouldValidate(e){return!!this.getBuildOptions(e).validation}async validate(e,t){const r=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,n=this.getBuildOptions(e),a=typeof n.validation=="object"?{...n.validation}:{};a.categories=this.findMissingValidationCategories(e,n);const s=await r.validateDocument(e,a,t);e.diagnostics?e.diagnostics.push(...s):e.diagnostics=s;const o=this.buildState.get(e.uri.toString());o&&(o.result??(o.result={}),o.result.validationChecks?o.result.validationChecks=oe(o.result.validationChecks).concat(a.categories).distinct().toArray():o.result.validationChecks=[...a.categories])}getBuildOptions(e){return this.buildState.get(e.uri.toString())?.options??{}}},ib=class{static{i(this,"DefaultIndexManager")}constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new Cc,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,t){const r=Dt(e).uri,n=[];return this.referenceIndex.forEach(a=>{a.forEach(s=>{Ye.equals(s.targetUri,r)&&s.targetPath===t&&n.push(s)})}),oe(n)}allElements(e,t){let r=oe(this.symbolIndex.keys());return t&&(r=r.filter(n=>!t||t.has(n))),r.map(n=>this.getFileDescriptions(n,e)).flat()}getFileDescriptions(e,t){return t?this.symbolByTypeIndex.get(e,t,()=>(this.symbolIndex.get(e)??[]).filter(a=>this.astReflection.isSubtype(a.type,t))):this.symbolIndex.get(e)??[]}remove(e){this.removeContent(e),this.removeReferences(e)}removeContent(e){const t=e.toString();this.symbolIndex.delete(t),this.symbolByTypeIndex.clear(t)}removeReferences(e){const t=e.toString();this.referenceIndex.delete(t)}async updateContent(e,t=pe.CancellationToken.None){const n=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.collectExportedSymbols(e,t),a=e.uri.toString();this.symbolIndex.set(a,n),this.symbolByTypeIndex.clear(a)}async updateReferences(e,t=pe.CancellationToken.None){const n=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,t);this.referenceIndex.set(e.uri.toString(),n)}isAffected(e,t){const r=this.referenceIndex.get(e.uri.toString());return r?r.some(n=>!n.local&&t.has(n.targetUri.toString())):!1}},sb=class{static{i(this,"DefaultWorkspaceManager")}constructor(e){this.initialBuildOptions={},this._ready=new Cr,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}get workspaceFolders(){return this.folders}initialize(e){this.folders=e.workspaceFolders??void 0}initialized(e){return this.mutex.write(t=>this.initializeWorkspace(this.folders??[],t))}async initializeWorkspace(e,t=pe.CancellationToken.None){const r=await this.performStartup(e);await Ge(t),await this.documentBuilder.build(r,this.initialBuildOptions,t)}async performStartup(e){const t=[],r=i(s=>{t.push(s),this.langiumDocuments.hasDocument(s.uri)||this.langiumDocuments.addDocument(s)},"collector");await this.loadAdditionalDocuments(e,r);const n=[];await Promise.all(e.map(s=>this.getRootFolder(s)).map(async s=>this.traverseFolder(s,n)));const a=oe(n).distinct(s=>s.toString()).filter(s=>!this.langiumDocuments.hasDocument(s));return await this.loadWorkspaceDocuments(a,r),this._ready.resolve(),t}async loadWorkspaceDocuments(e,t){await Promise.all(e.map(async r=>{const n=await this.langiumDocuments.getOrCreateDocument(r);t(n)}))}loadAdditionalDocuments(e,t){return Promise.resolve()}getRootFolder(e){return ft.parse(e.uri)}async traverseFolder(e,t){try{const r=await this.fileSystemProvider.readDirectory(e);await Promise.all(r.map(async n=>{this.shouldIncludeEntry(n)&&(n.isDirectory?await this.traverseFolder(n.uri,t):n.isFile&&t.push(n.uri))}))}catch(r){console.error("Failure to read directory content of "+e.toString(!0),r)}}async searchFolder(e){const t=[];return await this.traverseFolder(e,t),t}shouldIncludeEntry(e){const t=Ye.basename(e.uri);return t.startsWith(".")?!1:e.isDirectory?t!=="node_modules"&&t!=="out":e.isFile?this.serviceRegistry.hasServices(e.uri):!1}},ob=class{static{i(this,"DefaultLexerErrorMessageProvider")}buildUnexpectedCharactersMessage(e,t,r,n,a){return df.buildUnexpectedCharactersMessage(e,t,r,n,a)}buildUnableToPopLexerModeMessage(e){return df.buildUnableToPopLexerModeMessage(e)}},_h={mode:"full"},Ch=class{static{i(this,"DefaultLexer")}constructor(e){this.errorMessageProvider=e.parser.LexerErrorMessageProvider,this.tokenBuilder=e.parser.TokenBuilder;const t=this.tokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(t);const r=vl(t)?Object.values(t):t,n=e.LanguageMetaData.mode==="production";this.chevrotainLexer=new Xe(r,{positionTracking:"full",skipValidations:n,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(e,t=_h){const r=this.chevrotainLexer.tokenize(e);return{tokens:r.tokens,errors:r.errors,hidden:r.groups.hidden??[],report:this.tokenBuilder.flushLexingReport?.(e)}}toTokenTypeDictionary(e){if(vl(e))return e;const t=wc(e)?Object.values(e.modes).flat():e,r={};return t.forEach(n=>r[n.name]=n),r}};function bc(e){return Array.isArray(e)&&(e.length===0||"name"in e[0])}i(bc,"isTokenTypeArray");function wc(e){return e&&"modes"in e&&"defaultMode"in e}i(wc,"isIMultiModeLexerDefinition");function vl(e){return!bc(e)&&!wc(e)}i(vl,"isTokenTypeDictionary");Es();function Sh(e,t,r){let n,a;typeof e=="string"?(a=t,n=r):(a=e.range.start,n=t),a||(a=ie.create(0,0));const s=wh(e),o=Ic(n),l=lb({lines:s,position:a,options:o});return fb({index:0,tokens:l,position:a})}i(Sh,"parseJSDoc");function bh(e,t){const r=Ic(t),n=wh(e);if(n.length===0)return!1;const a=n[0],s=n[n.length-1],o=r.start,l=r.end;return!!o?.exec(a)&&!!l?.exec(s)}i(bh,"isJSDoc");function wh(e){let t="";return typeof e=="string"?t=e:t=e.text,t.split(cy)}i(wh,"getLines");var ag=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,tF=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;function lb(e){const t=[];let r=e.position.line,n=e.position.character;for(let a=0;a<e.lines.length;a++){const s=a===0,o=a===e.lines.length-1;let l=e.lines[a],c=0;if(s&&e.options.start){const f=e.options.start?.exec(l);f&&(c=f.index+f[0].length)}else{const f=e.options.line?.exec(l);f&&(c=f.index+f[0].length)}if(o){const f=e.options.end?.exec(l);f&&(l=l.substring(0,f.index))}if(l=l.substring(0,ub(l)),Tl(l,c)>=l.length){if(t.length>0){const f=ie.create(r,n);t.push({type:"break",content:"",range:ee.create(f,f)})}}else{ag.lastIndex=c;const f=ag.exec(l);if(f){const d=f[0],h=f[1],y=ie.create(r,n+c),v=ie.create(r,n+c+d.length);t.push({type:"tag",content:h,range:ee.create(y,v)}),c+=d.length,c=Tl(l,c)}if(c<l.length){const d=l.substring(c),h=Array.from(d.matchAll(tF));t.push(...cb(h,d,r,n+c))}}r++,n=0}return t.length>0&&t[t.length-1].type==="break"?t.slice(0,-1):t}i(lb,"tokenize");function cb(e,t,r,n){const a=[];if(e.length===0){const s=ie.create(r,n),o=ie.create(r,n+t.length);a.push({type:"text",content:t,range:ee.create(s,o)})}else{let s=0;for(const l of e){const c=l.index,u=t.substring(s,c);u.length>0&&a.push({type:"text",content:t.substring(s,c),range:ee.create(ie.create(r,s+n),ie.create(r,c+n))});let f=u.length+1;const d=l[1];if(a.push({type:"inline-tag",content:d,range:ee.create(ie.create(r,s+f+n),ie.create(r,s+f+d.length+n))}),f+=d.length,l.length===4){f+=l[2].length;const h=l[3];a.push({type:"text",content:h,range:ee.create(ie.create(r,s+f+n),ie.create(r,s+f+h.length+n))})}else a.push({type:"text",content:"",range:ee.create(ie.create(r,s+f+n),ie.create(r,s+f+n))});s=c+l[0].length}const o=t.substring(s);o.length>0&&a.push({type:"text",content:o,range:ee.create(ie.create(r,s+n),ie.create(r,s+n+o.length))})}return a}i(cb,"buildInlineTokens");var rF=/\S/,nF=/\s*$/;function Tl(e,t){const r=e.substring(t).match(rF);return r?t+r.index:e.length}i(Tl,"skipWhitespace");function ub(e){const t=e.match(nF);if(t&&typeof t.index=="number")return t.index}i(ub,"lastCharacter");function fb(e){const t=ie.create(e.position.line,e.position.character);if(e.tokens.length===0)return new ig([],ee.create(t,t));const r=[];for(;e.index<e.tokens.length;){const s=db(e,r[r.length-1]);s&&r.push(s)}const n=r[0]?.range.start??t,a=r[r.length-1]?.range.end??t;return new ig(r,ee.create(n,a))}i(fb,"parseJSDocComment");function db(e,t){const r=e.tokens[e.index];if(r.type==="tag")return Nh(e,!1);if(r.type==="text"||r.type==="inline-tag")return Ih(e);pb(r,t),e.index++}i(db,"parseJSDocElement");function pb(e,t){if(t){const r=new yb("",e.range);"inlines"in t?t.inlines.push(r):t.content.inlines.push(r)}}i(pb,"appendEmptyLine");function Ih(e){let t=e.tokens[e.index];const r=t;let n=t;const a=[];for(;t&&t.type!=="break"&&t.type!=="tag";)a.push(hb(e)),n=t,t=e.tokens[e.index];return new Lf(a,ee.create(r.range.start,n.range.end))}i(Ih,"parseJSDocText");function hb(e){return e.tokens[e.index].type==="inline-tag"?Nh(e,!0):kh(e)}i(hb,"parseJSDocInline");function Nh(e,t){const r=e.tokens[e.index++],n=r.content.substring(1);if(e.tokens[e.index]?.type==="text")if(t){const s=kh(e);return new Gc(n,new Lf([s],s.range),t,ee.create(r.range.start,s.range.end))}else{const s=Ih(e);return new Gc(n,s,t,ee.create(r.range.start,s.range.end))}else{const s=r.range;return new Gc(n,new Lf([],s),t,s)}}i(Nh,"parseJSDocTag");function kh(e){const t=e.tokens[e.index++];return new yb(t.content,t.range)}i(kh,"parseJSDocLine");function Ic(e){if(!e)return Ic({start:"/**",end:"*/",line:"*"});const{start:t,end:r,line:n}=e;return{start:No(t,!0),end:No(r,!1),line:No(n,!0)}}i(Ic,"normalizeOptions");function No(e,t){if(typeof e=="string"||typeof e=="object"){const r=typeof e=="string"?Wa(e):e.source;return t?new RegExp(`^\\s*${r}`):new RegExp(`\\s*${r}\\s*$`)}else return e}i(No,"normalizeOption");var ig=class{static{i(this,"JSDocCommentImpl")}constructor(e,t){this.elements=e,this.range=t}getTag(e){return this.getAllTags().find(t=>t.name===e)}getTags(e){return this.getAllTags().filter(t=>t.name===e)}getAllTags(){return this.elements.filter(e=>"name"in e)}toString(){let e="";for(const t of this.elements)if(e.length===0)e=t.toString();else{const r=t.toString();e+=Df(e)+r}return e.trim()}toMarkdown(e){let t="";for(const r of this.elements)if(t.length===0)t=r.toMarkdown(e);else{const n=r.toMarkdown(e);t+=Df(t)+n}return t.trim()}},Gc=class{static{i(this,"JSDocTagImpl")}constructor(e,t,r,n){this.name=e,this.content=t,this.inline=r,this.range=n}toString(){let e=`@${this.name}`;const t=this.content.toString();return this.content.inlines.length===1?e=`${e} ${t}`:this.content.inlines.length>1&&(e=`${e}
150
+ ${t}`),this.inline?`{${e}}`:e}toMarkdown(e){return e?.renderTag?.(this)??this.toMarkdownDefault(e)}toMarkdownDefault(e){const t=this.content.toMarkdown(e);if(this.inline){const a=mb(this.name,t,e??{});if(typeof a=="string")return a}let r="";e?.tag==="italic"||e?.tag===void 0?r="*":e?.tag==="bold"?r="**":e?.tag==="bold-italic"&&(r="***");let n=`${r}@${this.name}${r}`;return this.content.inlines.length===1?n=`${n} — ${t}`:this.content.inlines.length>1&&(n=`${n}
151
+ ${t}`),this.inline?`{${n}}`:n}};function mb(e,t,r){if(e==="linkplain"||e==="linkcode"||e==="link"){const n=t.indexOf(" ");let a=t;if(n>0){const o=Tl(t,n);a=t.substring(o),t=t.substring(0,n)}return(e==="linkcode"||e==="link"&&r.link==="code")&&(a=`\`${a}\``),r.renderLink?.(t,a)??gb(t,a)}}i(mb,"renderInlineTag");function gb(e,t){try{return ft.parse(e,!0),`[${t}](${e})`}catch{return e}}i(gb,"renderLinkDefault");var Lf=class{static{i(this,"JSDocTextImpl")}constructor(e,t){this.inlines=e,this.range=t}toString(){let e="";for(let t=0;t<this.inlines.length;t++){const r=this.inlines[t],n=this.inlines[t+1];e+=r.toString(),n&&n.range.start.line>r.range.start.line&&(e+=`
152
+ `)}return e}toMarkdown(e){let t="";for(let r=0;r<this.inlines.length;r++){const n=this.inlines[r],a=this.inlines[r+1];t+=n.toMarkdown(e),a&&a.range.start.line>n.range.start.line&&(t+=`
153
+ `)}return t}},yb=class{static{i(this,"JSDocLineImpl")}constructor(e,t){this.text=e,this.range=t}toString(){return this.text}toMarkdown(){return this.text}};function Df(e){return e.endsWith(`
154
+ `)?`
155
+ `:`
156
+
157
+ `}i(Df,"fillNewlines");var vb=class{static{i(this,"JSDocDocumentationProvider")}constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){const t=this.commentProvider.getComment(e);if(t&&bh(t))return Sh(t).toMarkdown({renderLink:i((n,a)=>this.documentationLinkRenderer(e,n,a),"renderLink"),renderTag:i(n=>this.documentationTagRenderer(e,n),"renderTag")})}documentationLinkRenderer(e,t,r){const n=this.findNameInLocalSymbols(e,t)??this.findNameInGlobalScope(e,t);if(n&&n.nameSegment){const a=n.nameSegment.range.start.line+1,s=n.nameSegment.range.start.character+1,o=n.documentUri.with({fragment:`L${a},${s}`});return`[${r}](${o.toString()})`}else return}documentationTagRenderer(e,t){}findNameInLocalSymbols(e,t){const n=Dt(e).localSymbols;if(!n)return;let a=e;do{const o=n.getStream(a).find(l=>l.name===t);if(o)return o;a=a.$container}while(a)}findNameInGlobalScope(e,t){return this.indexManager.allElements().find(n=>n.name===t)}},Tb=class{static{i(this,"DefaultCommentProvider")}constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){return $h(e)?e.$comment:Id(e.$cstNode,this.grammarConfig().multilineCommentRules)?.text}},Rb=class{static{i(this,"DefaultAsyncParser")}constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,t){return Promise.resolve(this.syncParser.parse(e))}},aF=class{static{i(this,"AbstractThreadedAsyncParser")}constructor(e){this.threadCount=8,this.terminationDelay=200,this.workerPool=[],this.queue=[],this.hydrator=e.serializer.Hydrator}initializeWorkers(){for(;this.workerPool.length<this.threadCount;){const e=this.createWorker();e.onReady(()=>{if(this.queue.length>0){const t=this.queue.shift();t&&(e.lock(),t.resolve(e))}}),this.workerPool.push(e)}}async parse(e,t){const r=await this.acquireParserWorker(t),n=new Cr;let a;const s=t.onCancellationRequested(()=>{a=setTimeout(()=>{this.terminateWorker(r)},this.terminationDelay)});return r.parse(e).then(o=>{const l=this.hydrator.hydrate(o);n.resolve(l)}).catch(o=>{n.reject(o)}).finally(()=>{s.dispose(),clearTimeout(a)}),n.promise}terminateWorker(e){e.terminate();const t=this.workerPool.indexOf(e);t>=0&&this.workerPool.splice(t,1)}async acquireParserWorker(e){this.initializeWorkers();for(const r of this.workerPool)if(r.ready)return r.lock(),r;const t=new Cr;return e.onCancellationRequested(()=>{const r=this.queue.indexOf(t);r>=0&&this.queue.splice(r,1),t.reject(Jt)}),this.queue.push(t),t.promise}},iF=class{static{i(this,"ParserWorker")}get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(e,t,r,n){this.onReadyEmitter=new Sc.Emitter,this.deferred=new Cr,this._ready=!0,this._parsing=!1,this.sendMessage=e,this._terminate=n,t(a=>{const s=a;this.deferred.resolve(s),this.unlock()}),r(a=>{this.deferred.reject(a),this.unlock()})}terminate(){this.deferred.reject(Jt),this._terminate()}lock(){this._ready=!1}unlock(){this._parsing=!1,this._ready=!0,this.onReadyEmitter.fire()}parse(e){if(this._parsing)throw new Error("Parser worker is busy");return this._parsing=!0,this.deferred=new Cr,this.sendMessage(e),this.deferred.promise}},$b=class{static{i(this,"DefaultWorkspaceLock")}constructor(){this.previousTokenSource=new pe.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.done=!0}write(e){this.cancelWrite();const t=Ec();return this.previousTokenSource=t,this.enqueue(this.writeQueue,e,t.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,t,r=pe.CancellationToken.None){const n=new Cr,a={action:t,deferred:n,cancellationToken:r};return e.push(a),this.performNextOperation(),n.promise}async performNextOperation(){if(!this.done)return;const e=[];if(this.writeQueue.length>0)e.push(this.writeQueue.shift());else if(this.readQueue.length>0)e.push(...this.readQueue.splice(0,this.readQueue.length));else return;this.done=!1,await Promise.all(e.map(async({action:t,deferred:r,cancellationToken:n})=>{try{const a=await Promise.resolve().then(()=>t(n));r.resolve(a)}catch(a){Xn(a)?r.resolve(void 0):r.reject(a)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}},Ab=class{static{i(this,"DefaultHydrator")}constructor(e){this.grammarElementIdMap=new gl,this.tokenTypeIdMap=new gl,this.grammar=e.Grammar,this.lexer=e.parser.Lexer,this.linker=e.references.Linker}dehydrate(e){return{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport?this.dehydrateLexerReport(e.lexerReport):void 0,parserErrors:e.parserErrors.map(t=>({...t,message:t.message})),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}dehydrateLexerReport(e){return e}createDehyrationContext(e){const t=new Map,r=new Map;for(const n of Mt(e))t.set(n,{});if(e.$cstNode)for(const n of xa(e.$cstNode))r.set(n,{});return{astNodes:t,cstNodes:r}}dehydrateAstNode(e,t){const r=t.astNodes.get(e);r.$type=e.$type,r.$containerIndex=e.$containerIndex,r.$containerProperty=e.$containerProperty,e.$cstNode!==void 0&&(r.$cstNode=this.dehydrateCstNode(e.$cstNode,t));for(const[n,a]of Object.entries(e))if(!n.startsWith("$"))if(Array.isArray(a)){const s=[];r[n]=s;for(const o of a)Le(o)?s.push(this.dehydrateAstNode(o,t)):He(o)?s.push(this.dehydrateReference(o,t)):s.push(o)}else Le(a)?r[n]=this.dehydrateAstNode(a,t):He(a)?r[n]=this.dehydrateReference(a,t):a!==void 0&&(r[n]=a);return r}dehydrateReference(e,t){const r={};return r.$refText=e.$refText,e.$refNode&&(r.$refNode=t.cstNodes.get(e.$refNode)),r}dehydrateCstNode(e,t){const r=t.cstNodes.get(e);return El(e)?r.fullText=e.fullText:r.grammarSource=this.getGrammarElementId(e.grammarSource),r.hidden=e.hidden,r.astNode=t.astNodes.get(e.astNode),yr(e)?r.content=e.content.map(n=>this.dehydrateCstNode(n,t)):kn(e)&&(r.tokenType=e.tokenType.name,r.offset=e.offset,r.length=e.length,r.startLine=e.range.start.line,r.startColumn=e.range.start.character,r.endLine=e.range.end.line,r.endColumn=e.range.end.character),r}hydrate(e){const t=e.value,r=this.createHydrationContext(t);return"$cstNode"in t&&this.hydrateCstNode(t.$cstNode,r),{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport,parserErrors:e.parserErrors,value:this.hydrateAstNode(t,r)}}createHydrationContext(e){const t=new Map,r=new Map;for(const a of Mt(e))t.set(a,{});let n;if(e.$cstNode)for(const a of xa(e.$cstNode)){let s;"fullText"in a?(s=new ih(a.fullText),n=s):"content"in a?s=new vc:"tokenType"in a&&(s=this.hydrateCstLeafNode(a)),s&&(r.set(a,s),s.root=n)}return{astNodes:t,cstNodes:r}}hydrateAstNode(e,t){const r=t.astNodes.get(e);r.$type=e.$type,r.$containerIndex=e.$containerIndex,r.$containerProperty=e.$containerProperty,e.$cstNode&&(r.$cstNode=t.cstNodes.get(e.$cstNode));for(const[n,a]of Object.entries(e))if(!n.startsWith("$"))if(Array.isArray(a)){const s=[];r[n]=s;for(const o of a)Le(o)?s.push(this.setParent(this.hydrateAstNode(o,t),r)):He(o)?s.push(this.hydrateReference(o,r,n,t)):s.push(o)}else Le(a)?r[n]=this.setParent(this.hydrateAstNode(a,t),r):He(a)?r[n]=this.hydrateReference(a,r,n,t):a!==void 0&&(r[n]=a);return r}setParent(e,t){return e.$container=t,e}hydrateReference(e,t,r,n){return this.linker.buildReference(t,r,n.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,t,r=0){const n=t.cstNodes.get(e);if(typeof e.grammarSource=="number"&&(n.grammarSource=this.getGrammarElement(e.grammarSource)),n.astNode=t.astNodes.get(e.astNode),yr(n))for(const a of e.content){const s=this.hydrateCstNode(a,t,r++);n.content.push(s)}return n}hydrateCstLeafNode(e){const t=this.getTokenType(e.tokenType),r=e.offset,n=e.length,a=e.startLine,s=e.startColumn,o=e.endLine,l=e.endColumn,c=e.hidden;return new fl(r,n,{start:{line:a,character:s},end:{line:o,character:l}},t,c)}getTokenType(e){return this.lexer.definition[e]}getGrammarElementId(e){if(e)return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.get(e)}getGrammarElement(e){return this.grammarElementIdMap.size===0&&this.createGrammarElementIdMap(),this.grammarElementIdMap.getKey(e)}createGrammarElementIdMap(){let e=0;for(const t of Mt(this.grammar))_l(t)&&this.grammarElementIdMap.set(t,e++)}};function yt(e){return{documentation:{CommentProvider:i(t=>new Tb(t),"CommentProvider"),DocumentationProvider:i(t=>new vb(t),"DocumentationProvider")},parser:{AsyncParser:i(t=>new Rb(t),"AsyncParser"),GrammarConfig:i(t=>Qd(t),"GrammarConfig"),LangiumParser:i(t=>fh(t),"LangiumParser"),CompletionParser:i(t=>uh(t),"CompletionParser"),ValueConverter:i(()=>new ph,"ValueConverter"),TokenBuilder:i(()=>new $c,"TokenBuilder"),Lexer:i(t=>new Ch(t),"Lexer"),ParserErrorMessageProvider:i(()=>new oh,"ParserErrorMessageProvider"),LexerErrorMessageProvider:i(()=>new ob,"LexerErrorMessageProvider")},workspace:{AstNodeLocator:i(()=>new rb,"AstNodeLocator"),AstNodeDescriptionProvider:i(t=>new eb(t),"AstNodeDescriptionProvider"),ReferenceDescriptionProvider:i(t=>new tb(t),"ReferenceDescriptionProvider")},references:{Linker:i(t=>new zS(t),"Linker"),NameProvider:i(()=>new BS,"NameProvider"),ScopeProvider:i(t=>new HS(t),"ScopeProvider"),ScopeComputation:i(t=>new qS(t),"ScopeComputation"),References:i(t=>new KS(t),"References")},serializer:{Hydrator:i(t=>new Ab(t),"Hydrator"),JsonSerializer:i(t=>new YS(t),"JsonSerializer")},validation:{DocumentValidator:i(t=>new QS(t),"DocumentValidator"),ValidationRegistry:i(t=>new JS(t),"ValidationRegistry")},shared:i(()=>e.shared,"shared")}}i(yt,"createDefaultCoreModule");function vt(e){return{ServiceRegistry:i(t=>new XS(t),"ServiceRegistry"),workspace:{LangiumDocuments:i(t=>new US(t),"LangiumDocuments"),LangiumDocumentFactory:i(t=>new jS(t),"LangiumDocumentFactory"),DocumentBuilder:i(t=>new ab(t),"DocumentBuilder"),IndexManager:i(t=>new ib(t),"IndexManager"),WorkspaceManager:i(t=>new sb(t),"WorkspaceManager"),FileSystemProvider:i(t=>e.fileSystemProvider(t),"FileSystemProvider"),WorkspaceLock:i(()=>new $b,"WorkspaceLock"),ConfigurationProvider:i(t=>new nb(t),"ConfigurationProvider")},profilers:{}}}i(vt,"createDefaultSharedCoreModule");var Mf;(function(e){e.merge=(t,r)=>Ba(Ba({},t),r)})(Mf||(Mf={}));function Ae(e,t,r,n,a,s,o,l,c){const u=[e,t,r,n,a,s,o,l,c].reduce(Ba,{});return Oh(u)}i(Ae,"inject");var Eb=Symbol("isProxy");function Ph(e){if(e&&e[Eb])for(const t of Object.values(e))Ph(t);return e}i(Ph,"eagerLoad");function Oh(e,t){const r=new Proxy({},{deleteProperty:i(()=>!1,"deleteProperty"),set:i(()=>{throw new Error("Cannot set property on injected service container")},"set"),get:i((n,a)=>a===Eb?!0:xf(n,a,e,t||r),"get"),getOwnPropertyDescriptor:i((n,a)=>(xf(n,a,e,t||r),Object.getOwnPropertyDescriptor(n,a)),"getOwnPropertyDescriptor"),has:i((n,a)=>a in e,"has"),ownKeys:i(()=>[...Object.getOwnPropertyNames(e)],"ownKeys")});return r}i(Oh,"_inject");var sg=Symbol();function xf(e,t,r,n){if(t in e){if(e[t]instanceof Error)throw new Error("Construction failure. Please make sure that your dependencies are constructable. Cause: "+e[t]);if(e[t]===sg)throw new Error('Cycle detected. Please make "'+String(t)+'" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies');return e[t]}else if(t in r){const a=r[t];e[t]=sg;try{e[t]=typeof a=="function"?a(n):Oh(a,n)}catch(s){throw e[t]=s instanceof Error?s:void 0,s}return e[t]}else return}i(xf,"_resolve");function Ba(e,t){if(t){for(const[r,n]of Object.entries(t))if(n!=null)if(typeof n=="object"){const a=e[r];typeof a=="object"&&a!==null?e[r]=Ba(a,n):e[r]=Ba({},n)}else e[r]=n}return e}i(Ba,"_merge");var Ff={indentTokenName:"INDENT",dedentTokenName:"DEDENT",whitespaceTokenName:"WS",ignoreIndentationDelimiters:[]},En;(function(e){e.REGULAR="indentation-sensitive",e.IGNORE_INDENTATION="ignore-indentation"})(En||(En={}));var _b=class extends $c{static{i(this,"IndentationAwareTokenBuilder")}constructor(e=Ff){super(),this.indentationStack=[0],this.whitespaceRegExp=/[ \t]+/y,this.options={...Ff,...e},this.indentTokenType=Na({name:this.options.indentTokenName,pattern:this.indentMatcher.bind(this),line_breaks:!1}),this.dedentTokenType=Na({name:this.options.dedentTokenName,pattern:this.dedentMatcher.bind(this),line_breaks:!1})}buildTokens(e,t){const r=super.buildTokens(e,t);if(!bc(r))throw new Error("Invalid tokens built by default builder");const{indentTokenName:n,dedentTokenName:a,whitespaceTokenName:s,ignoreIndentationDelimiters:o}=this.options;let l,c,u;const f=[];for(const d of r){for(const[h,y]of o)d.name===h?d.PUSH_MODE=En.IGNORE_INDENTATION:d.name===y&&(d.POP_MODE=!0);d.name===a?l=d:d.name===n?c=d:d.name===s?u=d:f.push(d)}if(!l||!c||!u)throw new Error("Some indentation/whitespace tokens not found!");return o.length>0?{modes:{[En.REGULAR]:[l,c,...f,u],[En.IGNORE_INDENTATION]:[...f,u]},defaultMode:En.REGULAR}:[l,c,u,...f]}flushLexingReport(e){return{...super.flushLexingReport(e),remainingDedents:this.flushRemainingDedents(e)}}isStartOfLine(e,t){return t===0||`\r
158
+ `.includes(e[t-1])}matchWhitespace(e,t,r,n){this.whitespaceRegExp.lastIndex=t;const a=this.whitespaceRegExp.exec(e);return{currIndentLevel:a?.[0].length??0,prevIndentLevel:this.indentationStack.at(-1),match:a}}createIndentationTokenInstance(e,t,r,n){const a=this.getLineNumber(t,n);return Gs(e,r,n,n+r.length,a,a,1,r.length)}getLineNumber(e,t){return e.substring(0,t).split(/\r\n|\r|\n/).length}indentMatcher(e,t,r,n){if(!this.isStartOfLine(e,t))return null;const{currIndentLevel:a,prevIndentLevel:s,match:o}=this.matchWhitespace(e,t,r,n);return a<=s?null:(this.indentationStack.push(a),o)}dedentMatcher(e,t,r,n){if(!this.isStartOfLine(e,t))return null;const{currIndentLevel:a,prevIndentLevel:s,match:o}=this.matchWhitespace(e,t,r,n);if(a>=s)return null;const l=this.indentationStack.lastIndexOf(a);if(l===-1)return this.diagnostics.push({severity:"error",message:`Invalid dedent level ${a} at offset: ${t}. Current indentation stack: ${this.indentationStack}`,offset:t,length:o?.[0]?.length??0,line:this.getLineNumber(e,t),column:1}),null;const c=this.indentationStack.length-l-1,u=e.substring(0,t).match(/[\r\n]+$/)?.[0].length??1;for(let f=0;f<c;f++){const d=this.createIndentationTokenInstance(this.dedentTokenType,e,"",t-(u-1));r.push(d),this.indentationStack.pop()}return null}buildTerminalToken(e){const t=super.buildTerminalToken(e),{indentTokenName:r,dedentTokenName:n,whitespaceTokenName:a}=this.options;return t.name===r?this.indentTokenType:t.name===n?this.dedentTokenType:t.name===a?Na({name:a,pattern:this.whitespaceRegExp,group:Xe.SKIPPED}):t}flushRemainingDedents(e){const t=[];for(;this.indentationStack.length>1;)t.push(this.createIndentationTokenInstance(this.dedentTokenType,e,"",e.length)),this.indentationStack.pop();return this.indentationStack=[0],t}},sF=class extends Ch{static{i(this,"IndentationAwareLexer")}constructor(e){if(super(e),e.parser.TokenBuilder instanceof _b)this.indentationTokenBuilder=e.parser.TokenBuilder;else throw new Error("IndentationAwareLexer requires an accompanying IndentationAwareTokenBuilder")}tokenize(e,t=_h){const r=super.tokenize(e),n=r.report;t?.mode==="full"&&r.tokens.push(...n.remainingDedents),n.remainingDedents=[];const{indentTokenType:a,dedentTokenType:s}=this.indentationTokenBuilder,o=a.tokenTypeIdx,l=s.tokenTypeIdx,c=[],u=r.tokens.length-1;for(let f=0;f<u;f++){const d=r.tokens[f],h=r.tokens[f+1];if(d.tokenTypeIdx===o&&h.tokenTypeIdx===l){f++;continue}c.push(d)}return u>=0&&c.push(r.tokens[u]),r.tokens=c,r}},Lh={};Br(Lh,{AstUtils:()=>nd,BiMap:()=>gl,Cancellation:()=>pe,ContextCache:()=>Cc,CstUtils:()=>ed,DONE_RESULT:()=>Ve,Deferred:()=>Cr,Disposable:()=>Cn,DisposableCache:()=>_c,DocumentCache:()=>VS,EMPTY_STREAM:()=>Pa,ErrorWithLocation:()=>kl,GrammarUtils:()=>Od,MultiMap:()=>Sr,OperationCancelled:()=>Jt,Reduction:()=>ss,RegExpUtils:()=>Dd,SimpleCache:()=>Th,StreamImpl:()=>Xt,TreeStreamImpl:()=>Oa,URI:()=>ft,UriTrie:()=>yh,UriUtils:()=>Ye,WorkspaceCache:()=>Rh,assertCondition:()=>Ld,assertUnreachable:()=>Kr,delayNextTick:()=>Ac,interruptAndCheck:()=>Ge,isOperationCancelled:()=>Xn,loadGrammarFromJson:()=>Tt,setInterruptionPeriod:()=>hh,startCancelableOperation:()=>Ec,stream:()=>oe});Rl(Lh,Sc);var Cb=class{static{i(this,"EmptyFileSystemProvider")}stat(e){throw new Error("No file system is available.")}statSync(e){throw new Error("No file system is available.")}async exists(){return!1}existsSync(){return!1}readBinary(){throw new Error("No file system is available.")}readBinarySync(){throw new Error("No file system is available.")}readFile(){throw new Error("No file system is available.")}readFileSync(){throw new Error("No file system is available.")}async readDirectory(){return[]}readDirectorySync(){return[]}},It={fileSystemProvider:i(()=>new Cb,"fileSystemProvider")},oF={Grammar:i(()=>{},"Grammar"),LanguageMetaData:i(()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"}),"LanguageMetaData")},lF={AstReflection:i(()=>new _d,"AstReflection")};function Sb(){const e=Ae(vt(It),lF),t=Ae(yt({shared:e}),oF);return e.ServiceRegistry.register(t),t}i(Sb,"createMinimalGrammarServices");function Tt(e){const t=Sb(),r=t.serializer.JsonSerializer.deserialize(e);return t.shared.workspace.LangiumDocumentFactory.fromModel(r,ft.parse(`memory:/${r.name??"grammar"}.langium`)),r}i(Tt,"loadGrammarFromJson");Rl(Lg,Lh);var cF=class{static{i(this,"DefaultLangiumProfiler")}constructor(e){this.activeCategories=new Set,this.allCategories=new Set(["validating","parsing","linking"]),this.activeCategories=e??new Set(this.allCategories),this.records=new Sr}isActive(e){return this.activeCategories.has(e)}start(...e){e?e.forEach(t=>this.activeCategories.add(t)):this.activeCategories=new Set(this.allCategories)}stop(...e){e?e.forEach(t=>this.activeCategories.delete(t)):this.activeCategories.clear()}createTask(e,t){if(!this.isActive(e))throw new Error(`Category "${e}" is not active.`);return console.log(`Creating profiling task for '${e}.${t}'.`),new bb(r=>this.records.add(e,this.dumpRecord(e,r)),t)}dumpRecord(e,t){console.info(`Task ${e}.${t.identifier} executed in ${t.duration.toFixed(2)}ms and ended at ${t.date.toISOString()}`);const r=[];for(const s of t.entries.keys()){const o=t.entries.get(s),l=o.reduce((c,u)=>c+u);r.push({name:`${t.identifier}.${s}`,count:o.length,duration:l})}const n=t.duration-r.map(s=>s.duration).reduce((s,o)=>s+o,0);r.push({name:t.identifier,count:1,duration:n}),r.sort((s,o)=>o.duration-s.duration);function a(s){return Math.round(100*s)/100}return i(a,"Round"),console.table(r.map(s=>({Element:s.name,Count:s.count,"Self %":a(100*s.duration/t.duration),"Time (ms)":a(s.duration)}))),t}getRecords(...e){return e.length===0?this.records.values():this.records.entries().filter(t=>e.some(r=>r===t[0])).flatMap(t=>t[1])}},bb=class{static{i(this,"ProfilingTask")}constructor(e,t){this.stack=[],this.entries=new Sr,this.addRecord=e,this.identifier=t}start(){if(this.startTime!==void 0)throw new Error(`Task "${this.identifier}" is already started.`);this.startTime=performance.now()}stop(){if(this.startTime===void 0)throw new Error(`Task "${this.identifier}" was not started.`);if(this.stack.length!==0)throw new Error(`Task "${this.identifier}" cannot be stopped before sub-task(s): ${this.stack.map(t=>t.id).join(", ")}.`);const e={identifier:this.identifier,date:new Date,duration:performance.now()-this.startTime,entries:this.entries};this.addRecord(e),this.startTime=void 0,this.entries.clear()}startSubTask(e){this.stack.push({id:e,start:performance.now(),content:0})}stopSubTask(e){const t=this.stack.pop();if(!t)throw new Error(`Task "${this.identifier}.${e}" was not started.`);if(t.id!==e)throw new Error(`Sub-Task "${t.id}" is not already stopped.`);const r=performance.now()-t.start;this.stack.at(-1)!==void 0&&(this.stack[this.stack.length-1].content+=r);const n=r-t.content;this.entries.add(e,n)}},Gf;(e=>{e.Terminals={ARROW_DIRECTION:/L|R|T|B/,ARROW_GROUP:/\{group\}/,ARROW_INTO:/<|>/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ARCH_ICON:/\([\w-:]+\)/,ARCH_TITLE:/\[(?:"([^"\\]|\\.)*"|'([^'\\]|\\.)*'|[\w ]+)\]/}})(Gf||(Gf={}));var jf;(e=>{e.Terminals={EM_ID:/[_a-zA-Z][\w_]*/,EM_FID:/\d{1,3}/,EM_DATA_INLINE:/\{(.*)\}|"(.*)"|'(.*)'/,EM_DATA_BLOCK:/\{[\t ]*\r?\n(?:[\S\s]*?\r?\n)?\}(?:\r?\n|(?!\S))/,EM_ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EM_ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,EM_TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,EM_WS:/\s+/,EM_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EM_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EM_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EM_ML_COMMENT:/\/\*[\s\S]*?\*\//,EM_SL_COMMENT:/\/\/[^\n\r]*/}})(jf||(jf={}));var Uf;(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,REFERENCE:/\w([-\./\w]*[-\w])?/}})(Uf||(Uf={}));var zf;(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(zf||(zf={}));var Bf;(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(Bf||(Bf={}));var Kf;(e=>{e.Terminals={NUMBER_PIE:/(?:-?[0-9]+\.[0-9]+(?!\.))|(?:-?(0|[1-9][0-9]*)(?!\.))/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(Kf||(Kf={}));var qf;(e=>{e.Terminals={GRATICULE:/circle|polygon/,BOOLEAN:/true|false/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NUMBER:/(?:[0-9]+\.[0-9]+(?!\.))|(?:0|[1-9][0-9]*(?!\.))/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(qf||(qf={}));var Wf;(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,TREEMAP_KEYWORD:/treemap-beta|treemap/,CLASS_DEF:/classDef\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\s+([^;\r\n]*))?(?:;)?/,STYLE_SEPARATOR:/:::/,SEPARATOR:/:/,COMMA:/,/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,ID2:/[a-zA-Z_][a-zA-Z0-9_]*/,NUMBER2:/[0-9_\.\,]+/,STRING2:/"[^"]*"|'[^']*'/}})(Wf||(Wf={}));var Vf;(e=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,STRING2:/"[^"]*"|'[^']*'/}})(Vf||(Vf={}));var Hf;(e=>{e.Terminals={WARDLEY_NUMBER:/[0-9]+\.[0-9]+/,ARROW:/->/,LINK_PORT:/\+<>|\+>|\+</,LINK_ARROW:/-->|-\.->|>|\+'[^']*'<>|\+'[^']*'<|\+'[^']*'>/,LINK_LABEL:/;[^\n\r]+/,STRATEGY:/build|buy|outsource|market/,KW_WARDLEY:/wardley-beta/,KW_SIZE:/size/,KW_EVOLUTION:/evolution/,KW_ANCHOR:/anchor/,KW_COMPONENT:/component/,KW_LABEL:/label/,KW_INERTIA:/inertia/,KW_EVOLVE:/evolve/,KW_PIPELINE:/pipeline/,KW_NOTE:/note/,KW_ANNOTATIONS:/annotations/,KW_ANNOTATION:/annotation/,KW_ACCELERATOR:/accelerator/,KW_DEACCELERATOR:/deaccelerator/,NAME_WITH_SPACES:/(?!title\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/,WS:/[ \t]+/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(Hf||(Hf={}));({...Gf.Terminals,...jf.Terminals,...Uf.Terminals,...zf.Terminals,...Bf.Terminals,...Kf.Terminals,...qf.Terminals,...Vf.Terminals,...Wf.Terminals,...Hf.Terminals});var Js={$type:"Accelerator",name:"name",x:"x",y:"y"},Zs={$type:"Anchor",evolution:"evolution",name:"name",visibility:"visibility"},Si={$type:"Annotation",number:"number",text:"text",x:"x",y:"y"},jc={$type:"Annotations",x:"x",y:"y"},dr={$type:"Architecture",accDescr:"accDescr",accTitle:"accTitle",edges:"edges",groups:"groups",junctions:"junctions",services:"services",title:"title"};function uF(e){return Rt.isInstance(e,dr.$type)}i(uF,"isArchitecture");var Qs={$type:"Axis",label:"label",name:"name"},ko={$type:"Branch",name:"name",order:"order"};function fF(e){return Rt.isInstance(e,ko.$type)}i(fF,"isBranch");var og={$type:"Checkout",branch:"branch"},eo={$type:"CherryPicking",id:"id",parent:"parent",tags:"tags"},Uc={$type:"ClassDefStatement",className:"className",styleText:"styleText"},ma={$type:"Commit",id:"id",message:"message",tags:"tags",type:"type"};function dF(e){return Rt.isInstance(e,ma.$type)}i(dF,"isCommit");var to={$type:"Common",accDescr:"accDescr",accTitle:"accTitle",title:"title"},Yr={$type:"Component",decorator:"decorator",evolution:"evolution",inertia:"inertia",label:"label",name:"name",visibility:"visibility"},ro={$type:"Curve",entries:"entries",label:"label",name:"name"},no={$type:"Deaccelerator",name:"name",x:"x",y:"y"},lg={$type:"Decorator",strategy:"strategy"},ia={$type:"Direction",accDescr:"accDescr",accTitle:"accTitle",dir:"dir",statements:"statements",title:"title"},qt={$type:"Edge",lhsDir:"lhsDir",lhsGroup:"lhsGroup",lhsId:"lhsId",lhsInto:"lhsInto",rhsDir:"rhsDir",rhsGroup:"rhsGroup",rhsId:"rhsId",rhsInto:"rhsInto",title:"title"},sa={$type:"EmDataEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",name:"name"},Xr={$type:"EmFrame"},bi={$type:"EmGwt",givenStatements:"givenStatements",sourceFrame:"sourceFrame",thenStatements:"thenStatements",whenStatements:"whenStatements"},cg={$type:"EmGwtStatement",entityIdentifier:"entityIdentifier"},zc={$type:"EmModelEntity",name:"name"};function pF(e){return e==="rmo"||e==="readmodel"||e==="ui"||e==="cmd"||e==="command"||e==="evt"||e==="event"||e==="pcr"||e==="processor"}i(pF,"isEmModelEntityType");var ao={$type:"EmNoteEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",sourceFrame:"sourceFrame"},pr={$type:"EmResetFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"};function hF(e){return Rt.isInstance(e,pr.$type)}i(hF,"isEmResetFrame");var Pr={$type:"EmTimeFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"},Bc={$type:"Entry",axis:"axis",value:"value"},cr={$type:"EventModel",accDescr:"accDescr",accTitle:"accTitle",dataEntities:"dataEntities",frames:"frames",gwtEntities:"gwtEntities",modelEntities:"modelEntities",noteEntities:"noteEntities",title:"title"},ug={$type:"Evolution",stages:"stages"},io={$type:"EvolutionStage",boundary:"boundary",name:"name",secondName:"secondName"},Kc={$type:"Evolve",component:"component",target:"target"},sn={$type:"GitGraph",accDescr:"accDescr",accTitle:"accTitle",statements:"statements",title:"title"};function mF(e){return Rt.isInstance(e,sn.$type)}i(mF,"isGitGraph");var wi={$type:"Group",icon:"icon",id:"id",in:"in",title:"title"},Bi={$type:"Info",accDescr:"accDescr",accTitle:"accTitle",title:"title"};function gF(e){return Rt.isInstance(e,Bi.$type)}i(gF,"isInfo");var Ii={$type:"Item",classSelector:"classSelector",name:"name"},qc={$type:"Junction",id:"id",in:"in"},Ni={$type:"Label",negX:"negX",negY:"negY",offsetX:"offsetX",offsetY:"offsetY"},so={$type:"Leaf",classSelector:"classSelector",name:"name",value:"value"},Jr={$type:"Link",arrow:"arrow",from:"from",fromPort:"fromPort",linkLabel:"linkLabel",to:"to",toPort:"toPort"},ga={$type:"Merge",branch:"branch",id:"id",tags:"tags",type:"type"};function yF(e){return Rt.isInstance(e,ga.$type)}i(yF,"isMerge");var oo={$type:"Note",evolution:"evolution",text:"text",visibility:"visibility"},Wc={$type:"Option",name:"name",value:"value"},ya={$type:"Packet",accDescr:"accDescr",accTitle:"accTitle",blocks:"blocks",title:"title"};function vF(e){return Rt.isInstance(e,ya.$type)}i(vF,"isPacket");var va={$type:"PacketBlock",bits:"bits",end:"end",label:"label",start:"start"};function TF(e){return Rt.isInstance(e,va.$type)}i(TF,"isPacketBlock");var on={$type:"Pie",accDescr:"accDescr",accTitle:"accTitle",sections:"sections",showData:"showData",title:"title"};function RF(e){return Rt.isInstance(e,on.$type)}i(RF,"isPie");var Po={$type:"PieSection",label:"label",value:"value"};function $F(e){return Rt.isInstance(e,Po.$type)}i($F,"isPieSection");var Vc={$type:"Pipeline",components:"components",parent:"parent"},lo={$type:"PipelineComponent",evolution:"evolution",label:"label",name:"name"},Zr={$type:"Radar",accDescr:"accDescr",accTitle:"accTitle",axes:"axes",curves:"curves",options:"options",title:"title"},Hc={$type:"Section",classSelector:"classSelector",name:"name"},oa={$type:"Service",icon:"icon",iconText:"iconText",id:"id",in:"in",title:"title"},Yc={$type:"Size",height:"height",width:"width"},la={$type:"Statement"},Ta={$type:"Treemap",accDescr:"accDescr",accTitle:"accTitle",title:"title",TreemapRows:"TreemapRows"};function AF(e){return Rt.isInstance(e,Ta.$type)}i(AF,"isTreemap");var Xc={$type:"TreemapRow",indent:"indent",item:"item"},Jc={$type:"TreeNode",indent:"indent",name:"name"},ki={$type:"TreeView",accDescr:"accDescr",accTitle:"accTitle",nodes:"nodes",title:"title"},Ue={$type:"Wardley",accDescr:"accDescr",accelerators:"accelerators",accTitle:"accTitle",anchors:"anchors",annotation:"annotation",annotations:"annotations",components:"components",deaccelerators:"deaccelerators",evolution:"evolution",evolves:"evolves",links:"links",notes:"notes",pipelines:"pipelines",size:"size",title:"title"};function EF(e){return Rt.isInstance(e,Ue.$type)}i(EF,"isWardley");var wb=class extends rd{constructor(){super(...arguments),this.types={Accelerator:{name:Js.$type,properties:{name:{name:Js.name},x:{name:Js.x},y:{name:Js.y}},superTypes:[]},Anchor:{name:Zs.$type,properties:{evolution:{name:Zs.evolution},name:{name:Zs.name},visibility:{name:Zs.visibility}},superTypes:[]},Annotation:{name:Si.$type,properties:{number:{name:Si.number},text:{name:Si.text},x:{name:Si.x},y:{name:Si.y}},superTypes:[]},Annotations:{name:jc.$type,properties:{x:{name:jc.x},y:{name:jc.y}},superTypes:[]},Architecture:{name:dr.$type,properties:{accDescr:{name:dr.accDescr},accTitle:{name:dr.accTitle},edges:{name:dr.edges,defaultValue:[]},groups:{name:dr.groups,defaultValue:[]},junctions:{name:dr.junctions,defaultValue:[]},services:{name:dr.services,defaultValue:[]},title:{name:dr.title}},superTypes:[]},Axis:{name:Qs.$type,properties:{label:{name:Qs.label},name:{name:Qs.name}},superTypes:[]},Branch:{name:ko.$type,properties:{name:{name:ko.name},order:{name:ko.order}},superTypes:[la.$type]},Checkout:{name:og.$type,properties:{branch:{name:og.branch}},superTypes:[la.$type]},CherryPicking:{name:eo.$type,properties:{id:{name:eo.id},parent:{name:eo.parent},tags:{name:eo.tags,defaultValue:[]}},superTypes:[la.$type]},ClassDefStatement:{name:Uc.$type,properties:{className:{name:Uc.className},styleText:{name:Uc.styleText}},superTypes:[]},Commit:{name:ma.$type,properties:{id:{name:ma.id},message:{name:ma.message},tags:{name:ma.tags,defaultValue:[]},type:{name:ma.type}},superTypes:[la.$type]},Common:{name:to.$type,properties:{accDescr:{name:to.accDescr},accTitle:{name:to.accTitle},title:{name:to.title}},superTypes:[]},Component:{name:Yr.$type,properties:{decorator:{name:Yr.decorator},evolution:{name:Yr.evolution},inertia:{name:Yr.inertia,defaultValue:!1},label:{name:Yr.label},name:{name:Yr.name},visibility:{name:Yr.visibility}},superTypes:[]},Curve:{name:ro.$type,properties:{entries:{name:ro.entries,defaultValue:[]},label:{name:ro.label},name:{name:ro.name}},superTypes:[]},Deaccelerator:{name:no.$type,properties:{name:{name:no.name},x:{name:no.x},y:{name:no.y}},superTypes:[]},Decorator:{name:lg.$type,properties:{strategy:{name:lg.strategy}},superTypes:[]},Direction:{name:ia.$type,properties:{accDescr:{name:ia.accDescr},accTitle:{name:ia.accTitle},dir:{name:ia.dir},statements:{name:ia.statements,defaultValue:[]},title:{name:ia.title}},superTypes:[sn.$type]},Edge:{name:qt.$type,properties:{lhsDir:{name:qt.lhsDir},lhsGroup:{name:qt.lhsGroup,defaultValue:!1},lhsId:{name:qt.lhsId},lhsInto:{name:qt.lhsInto,defaultValue:!1},rhsDir:{name:qt.rhsDir},rhsGroup:{name:qt.rhsGroup,defaultValue:!1},rhsId:{name:qt.rhsId},rhsInto:{name:qt.rhsInto,defaultValue:!1},title:{name:qt.title}},superTypes:[]},EmDataEntity:{name:sa.$type,properties:{dataBlockValue:{name:sa.dataBlockValue},dataType:{name:sa.dataType},name:{name:sa.name}},superTypes:[]},EmFrame:{name:Xr.$type,properties:{},superTypes:[]},EmGwt:{name:bi.$type,properties:{givenStatements:{name:bi.givenStatements,defaultValue:[]},sourceFrame:{name:bi.sourceFrame,referenceType:Xr.$type},thenStatements:{name:bi.thenStatements,defaultValue:[]},whenStatements:{name:bi.whenStatements,defaultValue:[]}},superTypes:[]},EmGwtStatement:{name:cg.$type,properties:{entityIdentifier:{name:cg.entityIdentifier,referenceType:zc.$type}},superTypes:[]},EmModelEntity:{name:zc.$type,properties:{name:{name:zc.name}},superTypes:[]},EmNoteEntity:{name:ao.$type,properties:{dataBlockValue:{name:ao.dataBlockValue},dataType:{name:ao.dataType},sourceFrame:{name:ao.sourceFrame,referenceType:Xr.$type}},superTypes:[]},EmResetFrame:{name:pr.$type,properties:{dataInlineValue:{name:pr.dataInlineValue},dataReference:{name:pr.dataReference,referenceType:sa.$type},dataType:{name:pr.dataType},entityIdentifier:{name:pr.entityIdentifier},modelEntityType:{name:pr.modelEntityType},name:{name:pr.name},sourceFrames:{name:pr.sourceFrames,defaultValue:[],referenceType:Xr.$type}},superTypes:[Xr.$type]},EmTimeFrame:{name:Pr.$type,properties:{dataInlineValue:{name:Pr.dataInlineValue},dataReference:{name:Pr.dataReference,referenceType:sa.$type},dataType:{name:Pr.dataType},entityIdentifier:{name:Pr.entityIdentifier},modelEntityType:{name:Pr.modelEntityType},name:{name:Pr.name},sourceFrames:{name:Pr.sourceFrames,defaultValue:[],referenceType:Xr.$type}},superTypes:[Xr.$type]},Entry:{name:Bc.$type,properties:{axis:{name:Bc.axis,referenceType:Qs.$type},value:{name:Bc.value}},superTypes:[]},EventModel:{name:cr.$type,properties:{accDescr:{name:cr.accDescr},accTitle:{name:cr.accTitle},dataEntities:{name:cr.dataEntities,defaultValue:[]},frames:{name:cr.frames,defaultValue:[]},gwtEntities:{name:cr.gwtEntities,defaultValue:[]},modelEntities:{name:cr.modelEntities,defaultValue:[]},noteEntities:{name:cr.noteEntities,defaultValue:[]},title:{name:cr.title}},superTypes:[]},Evolution:{name:ug.$type,properties:{stages:{name:ug.stages,defaultValue:[]}},superTypes:[]},EvolutionStage:{name:io.$type,properties:{boundary:{name:io.boundary},name:{name:io.name},secondName:{name:io.secondName}},superTypes:[]},Evolve:{name:Kc.$type,properties:{component:{name:Kc.component},target:{name:Kc.target}},superTypes:[]},GitGraph:{name:sn.$type,properties:{accDescr:{name:sn.accDescr},accTitle:{name:sn.accTitle},statements:{name:sn.statements,defaultValue:[]},title:{name:sn.title}},superTypes:[]},Group:{name:wi.$type,properties:{icon:{name:wi.icon},id:{name:wi.id},in:{name:wi.in},title:{name:wi.title}},superTypes:[]},Info:{name:Bi.$type,properties:{accDescr:{name:Bi.accDescr},accTitle:{name:Bi.accTitle},title:{name:Bi.title}},superTypes:[]},Item:{name:Ii.$type,properties:{classSelector:{name:Ii.classSelector},name:{name:Ii.name}},superTypes:[]},Junction:{name:qc.$type,properties:{id:{name:qc.id},in:{name:qc.in}},superTypes:[]},Label:{name:Ni.$type,properties:{negX:{name:Ni.negX,defaultValue:!1},negY:{name:Ni.negY,defaultValue:!1},offsetX:{name:Ni.offsetX},offsetY:{name:Ni.offsetY}},superTypes:[]},Leaf:{name:so.$type,properties:{classSelector:{name:so.classSelector},name:{name:so.name},value:{name:so.value}},superTypes:[Ii.$type]},Link:{name:Jr.$type,properties:{arrow:{name:Jr.arrow},from:{name:Jr.from},fromPort:{name:Jr.fromPort},linkLabel:{name:Jr.linkLabel},to:{name:Jr.to},toPort:{name:Jr.toPort}},superTypes:[]},Merge:{name:ga.$type,properties:{branch:{name:ga.branch},id:{name:ga.id},tags:{name:ga.tags,defaultValue:[]},type:{name:ga.type}},superTypes:[la.$type]},Note:{name:oo.$type,properties:{evolution:{name:oo.evolution},text:{name:oo.text},visibility:{name:oo.visibility}},superTypes:[]},Option:{name:Wc.$type,properties:{name:{name:Wc.name},value:{name:Wc.value,defaultValue:!1}},superTypes:[]},Packet:{name:ya.$type,properties:{accDescr:{name:ya.accDescr},accTitle:{name:ya.accTitle},blocks:{name:ya.blocks,defaultValue:[]},title:{name:ya.title}},superTypes:[]},PacketBlock:{name:va.$type,properties:{bits:{name:va.bits},end:{name:va.end},label:{name:va.label},start:{name:va.start}},superTypes:[]},Pie:{name:on.$type,properties:{accDescr:{name:on.accDescr},accTitle:{name:on.accTitle},sections:{name:on.sections,defaultValue:[]},showData:{name:on.showData,defaultValue:!1},title:{name:on.title}},superTypes:[]},PieSection:{name:Po.$type,properties:{label:{name:Po.label},value:{name:Po.value}},superTypes:[]},Pipeline:{name:Vc.$type,properties:{components:{name:Vc.components,defaultValue:[]},parent:{name:Vc.parent}},superTypes:[]},PipelineComponent:{name:lo.$type,properties:{evolution:{name:lo.evolution},label:{name:lo.label},name:{name:lo.name}},superTypes:[]},Radar:{name:Zr.$type,properties:{accDescr:{name:Zr.accDescr},accTitle:{name:Zr.accTitle},axes:{name:Zr.axes,defaultValue:[]},curves:{name:Zr.curves,defaultValue:[]},options:{name:Zr.options,defaultValue:[]},title:{name:Zr.title}},superTypes:[]},Section:{name:Hc.$type,properties:{classSelector:{name:Hc.classSelector},name:{name:Hc.name}},superTypes:[Ii.$type]},Service:{name:oa.$type,properties:{icon:{name:oa.icon},iconText:{name:oa.iconText},id:{name:oa.id},in:{name:oa.in},title:{name:oa.title}},superTypes:[]},Size:{name:Yc.$type,properties:{height:{name:Yc.height},width:{name:Yc.width}},superTypes:[]},Statement:{name:la.$type,properties:{},superTypes:[]},TreeNode:{name:Jc.$type,properties:{indent:{name:Jc.indent},name:{name:Jc.name}},superTypes:[]},TreeView:{name:ki.$type,properties:{accDescr:{name:ki.accDescr},accTitle:{name:ki.accTitle},nodes:{name:ki.nodes,defaultValue:[]},title:{name:ki.title}},superTypes:[]},Treemap:{name:Ta.$type,properties:{accDescr:{name:Ta.accDescr},accTitle:{name:Ta.accTitle},title:{name:Ta.title},TreemapRows:{name:Ta.TreemapRows,defaultValue:[]}},superTypes:[]},TreemapRow:{name:Xc.$type,properties:{indent:{name:Xc.indent},item:{name:Xc.item}},superTypes:[]},Wardley:{name:Ue.$type,properties:{accDescr:{name:Ue.accDescr},accelerators:{name:Ue.accelerators,defaultValue:[]},accTitle:{name:Ue.accTitle},anchors:{name:Ue.anchors,defaultValue:[]},annotation:{name:Ue.annotation,defaultValue:[]},annotations:{name:Ue.annotations,defaultValue:[]},components:{name:Ue.components,defaultValue:[]},deaccelerators:{name:Ue.deaccelerators,defaultValue:[]},evolution:{name:Ue.evolution},evolves:{name:Ue.evolves,defaultValue:[]},links:{name:Ue.links,defaultValue:[]},notes:{name:Ue.notes,defaultValue:[]},pipelines:{name:Ue.pipelines,defaultValue:[]},size:{name:Ue.size},title:{name:Ue.title}},superTypes:[]}}}static{i(this,"MermaidAstReflection")}},Rt=new wb,fg,_F=i(()=>fg??(fg=Tt(`{"$type":"Grammar","isDeclared":true,"name":"ArchitectureGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"LeftPort","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"RightPort","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Arrow","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@18"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[(?:\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'|[\\\\w ]+)\\\\]/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`)),"ArchitectureGrammarGrammar"),dg,CF=i(()=>dg??(dg=Tt('{"$type":"Grammar","isDeclared":true,"name":"EventModeling","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","entry":true,"name":"EventModel","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"eventmodeling"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"frames","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"dataEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"noteEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"gwtEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntityType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rmo"},{"$type":"Keyword","value":"readmodel"},{"$type":"Keyword","value":"ui"},{"$type":"Keyword","value":"cmd"},{"$type":"Keyword","value":"command"},{"$type":"Keyword","value":"evt"},{"$type":"Keyword","value":"event"},{"$type":"Keyword","value":"pcr"},{"$type":"Keyword","value":"processor"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"json"},{"$type":"Keyword","value":"jsobj"},{"$type":"Keyword","value":"figma"},{"$type":"Keyword","value":"salt"},{"$type":"Keyword","value":"uri"},{"$type":"Keyword","value":"md"},{"$type":"Keyword","value":"html"},{"$type":"Keyword","value":"text"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataInline","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataInlineValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataBlock","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataBlockValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"QualifiedName","dataType":"string","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"."},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmTimeFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"tf"},{"$type":"Keyword","value":"timeframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmResetFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rf"},{"$type":"Keyword","value":"resetframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmFrame","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"entity"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"data"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmNoteEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"note"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwt","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"gwt"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"given"},{"$type":"Assignment","feature":"givenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"},{"$type":"Group","elements":[{"$type":"Keyword","value":"when"},{"$type":"Assignment","feature":"whenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}],"cardinality":"?"},{"$type":"Keyword","value":"then"},{"$type":"Assignment","feature":"thenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwtStatement","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@9"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_EID","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_FI","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"EM_ID","definition":{"$type":"RegexToken","regex":"/[_a-zA-Z][\\\\w_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_FID","definition":{"$type":"RegexToken","regex":"/\\\\d{1,3}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_INLINE","definition":{"$type":"RegexToken","regex":"/\\\\{(.*)\\\\}|\\"(.*)\\"|\'(.*)\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_BLOCK","definition":{"$type":"RegexToken","regex":"/\\\\{[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?\\\\}(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EM_WS","definition":{"$type":"RegexToken","regex":"/\\\\s+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SL_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\/[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"imports":[],"types":[]}')),"EventModelingGrammar"),pg,SF=i(()=>pg??(pg=Tt(`{"$type":"Grammar","isDeclared":true,"name":"GitGraphGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"GitGraph","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@14"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"REFERENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}`)),"GitGraphGrammarGrammar"),hg,bF=i(()=>hg??(hg=Tt(`{"$type":"Grammar","isDeclared":true,"name":"InfoGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Info","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"?"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@7"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"InfoGrammarGrammar"),mg,wF=i(()=>mg??(mg=Tt(`{"$type":"Grammar","isDeclared":true,"name":"PacketGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Packet","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"packet"},{"$type":"Keyword","value":"packet-beta"}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}],"cardinality":"?"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"+"},{"$type":"Assignment","feature":"bits","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]}]},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@9"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"PacketGrammarGrammar"),gg,IF=i(()=>gg??(gg=Tt(`{"$type":"Grammar","isDeclared":true,"name":"PieGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Pie","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"FLOAT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?(0|[1-9][0-9]*)(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@2"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@3"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"PieGrammarGrammar"),yg,NF=i(()=>yg??(yg=Tt(`{"$type":"Grammar","isDeclared":true,"name":"RadarGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Radar","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":"radar-beta:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"axis"},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"curve"},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Label","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Axis","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Curve","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Entries","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"DetailedEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"axis","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@2"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":":","cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"NumberEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Option","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"showLegend"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"ticks"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"max"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"min"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"graticule"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"GRATICULE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"circle"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"polygon"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@16"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[{"$type":"Interface","name":"Entry","attributes":[{"$type":"TypeAttribute","name":"axis","isOptional":true,"type":{"$type":"ReferenceType","referenceType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@2"}},"isMulti":false}},{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}],"superTypes":[]}],"types":[]}`)),"RadarGrammarGrammar"),vg,kF=i(()=>vg??(vg=Tt(`{"$type":"Grammar","isDeclared":true,"name":"TreemapGrammar","rules":[{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"Treemap","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"TreemapRows","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"TREEMAP_KEYWORD","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap-beta"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"CLASS_DEF","definition":{"$type":"RegexToken","regex":"/classDef\\\\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\\\\s+([^;\\\\r\\\\n]*))?(?:;)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STYLE_SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":::"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"COMMA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":","},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreemapRow","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"item","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"ClassDef","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Item","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Section","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Leaf","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ID2","definition":{"$type":"RegexToken","regex":"/[a-zA-Z_][a-zA-Z0-9_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER2","definition":{"$type":"RegexToken","regex":"/[0-9_\\\\.\\\\,]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"MyNumber","dataType":"number","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"Item","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"classSelector","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"Section","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[]},{"$type":"Interface","name":"Leaf","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}]},{"$type":"Interface","name":"ClassDefStatement","attributes":[{"$type":"TypeAttribute","name":"className","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"styleText","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"Treemap","attributes":[{"$type":"TypeAttribute","name":"TreemapRows","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@15"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * Treemap grammar for Langium\\n * Converted from mindmap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treemap declaration.\\n */"}`)),"TreemapGrammarGrammar"),Tg,PF=i(()=>Tg??(Tg=Tt(`{"$type":"Grammar","isDeclared":true,"name":"TreeViewGrammar","rules":[{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"TreeView","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"treeView-beta"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"nodes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreeNode","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"TreeView","attributes":[{"$type":"TypeAttribute","name":"nodes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@9"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * TreeView grammar for Langium\\n * Converted from treemap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treeView declaration.\\n */"}`)),"TreeViewGrammarGrammar"),Rg,OF=i(()=>Rg??(Rg=Tt(`{"$type":"Grammar","isDeclared":true,"name":"WardleyGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Wardley","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@42"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"size","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"anchors","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"links","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"evolves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"pipelines","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"notes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"annotations","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Assignment","feature":"annotation","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"deaccelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Size","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"width","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"height","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolution","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EvolutionStage","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"@"},{"$type":"Assignment","feature":"boundary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}],"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"secondName","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Anchor","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Component","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"decorator","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Keyword","value":")"}]}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Label","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"negX","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetX","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"negY","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetY","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Decorator","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"strategy","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Link","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"fromPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"arrow","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"cardinality":"?"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"toPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"linkLabel","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolve","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@32"},"arguments":[]},{"$type":"Assignment","feature":"component","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"target","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Pipeline","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@33"},"arguments":[]},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"+"},{"$type":"Keyword","value":"}"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PipelineComponent","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Note","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@34"},"arguments":[]},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotations","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@35"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotation","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@36"},"arguments":[]},{"$type":"Assignment","feature":"number","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CoordinateValue","dataType":"number","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Accelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@37"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Deaccelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@38"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"WARDLEY_NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"->"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_PORT","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<>"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+>"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_ARROW","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-->"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-.->"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":">"},"parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'<>/","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'</","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+'[^']*'>/","parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_LABEL","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRATEGY","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"build"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"buy"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"outsource"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"market"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_WARDLEY","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"wardley-beta"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_SIZE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"size"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLUTION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolution"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANCHOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"anchor"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_COMPONENT","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"component"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_LABEL","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"label"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_INERTIA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"inertia"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLVE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolve"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_PIPELINE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"pipeline"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_NOTE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"note"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATIONS","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotations"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotation"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"accelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_DEACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"deaccelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NAME_WITH_SPACES","definition":{"$type":"RegexToken","regex":"/(?!title\\\\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \\\\t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@44"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@45"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@46"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@47"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@48"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}`)),"WardleyGrammarGrammar"),LF={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},DF={languageId:"eventmodeling",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},MF={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},xF={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},FF={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},GF={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},jF={languageId:"radar",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},UF={languageId:"treemap",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},zF={languageId:"treeView",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},BF={languageId:"wardley",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},ir={AstReflection:i(()=>new wb,"AstReflection")},KF={Grammar:i(()=>_F(),"Grammar"),LanguageMetaData:i(()=>LF,"LanguageMetaData"),parser:{}},qF={Grammar:i(()=>CF(),"Grammar"),LanguageMetaData:i(()=>DF,"LanguageMetaData"),parser:{}},WF={Grammar:i(()=>SF(),"Grammar"),LanguageMetaData:i(()=>MF,"LanguageMetaData"),parser:{}},VF={Grammar:i(()=>bF(),"Grammar"),LanguageMetaData:i(()=>xF,"LanguageMetaData"),parser:{}},HF={Grammar:i(()=>wF(),"Grammar"),LanguageMetaData:i(()=>FF,"LanguageMetaData"),parser:{}},YF={Grammar:i(()=>IF(),"Grammar"),LanguageMetaData:i(()=>GF,"LanguageMetaData"),parser:{}},XF={Grammar:i(()=>NF(),"Grammar"),LanguageMetaData:i(()=>jF,"LanguageMetaData"),parser:{}},JF={Grammar:i(()=>kF(),"Grammar"),LanguageMetaData:i(()=>UF,"LanguageMetaData"),parser:{}},ZF={Grammar:i(()=>PF(),"Grammar"),LanguageMetaData:i(()=>zF,"LanguageMetaData"),parser:{}},QF={Grammar:i(()=>OF(),"Grammar"),LanguageMetaData:i(()=>BF,"LanguageMetaData"),parser:{}},eG=/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,tG=/accTitle[\t ]*:([^\n\r]*)/,rG=/title([\t ][^\n\r]*|)/,nG={ACC_DESCR:eG,ACC_TITLE:tG,TITLE:rG},ei=class extends ph{static{i(this,"AbstractMermaidValueConverter")}runConverter(e,t,r){let n=this.runCommonConverter(e,t,r);return n===void 0&&(n=this.runCustomConverter(e,t,r)),n===void 0?super.runConverter(e,t,r):n}runCommonConverter(e,t,r){const n=nG[e.name];if(n===void 0)return;const a=n.exec(t);if(a!==null){if(a[1]!==void 0)return a[1].trim().replace(/[\t ]{2,}/gm," ");if(a[2]!==void 0)return a[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,`
159
+ `)}}},Bs=class extends ei{static{i(this,"CommonValueConverter")}runCustomConverter(e,t,r){}},sr=class extends $c{static{i(this,"AbstractMermaidTokenBuilder")}constructor(e){super(),this.keywords=new Set(e)}buildKeywordTokens(e,t,r){const n=super.buildKeywordTokens(e,t,r);return n.forEach(a=>{this.keywords.has(a.name)&&a.PATTERN!==void 0&&(a.PATTERN=new RegExp(a.PATTERN.toString()+"(?:(?=%%)|(?!\\S))"))}),n}};(class extends sr{static{i(this,"CommonTokenBuilder")}});/*! Bundled license information:
160
+
161
+ lodash-es/lodash.js:
162
+ (**
163
+ * @license
164
+ * Lodash (Custom Build) <https://lodash.com/>
165
+ * Build: `lodash modularize exports="es" -o ./`
166
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
167
+ * Released under MIT license <https://lodash.com/license>
168
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
169
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
170
+ *)
171
+ */var aG=class extends sr{static{i(this,"RadarTokenBuilder")}constructor(){super(["radar-beta"])}},Ib={parser:{TokenBuilder:i(()=>new aG,"TokenBuilder"),ValueConverter:i(()=>new Bs,"ValueConverter")}};function Nb(e=It){const t=Ae(vt(e),ir),r=Ae(yt({shared:t}),XF,Ib);return t.ServiceRegistry.register(r),{shared:t,Radar:r}}i(Nb,"createRadarServices");var iG=class extends sr{static{i(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},sG=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,oG=class extends ei{static{i(this,"TreemapValueConverter")}runCustomConverter(e,t,r){if(e.name==="NUMBER2")return parseFloat(t.replace(/,/g,""));if(e.name==="SEPARATOR")return t.substring(1,t.length-1);if(e.name==="STRING2")return t.substring(1,t.length-1);if(e.name==="INDENTATION")return t.length;if(e.name==="ClassDef"){if(typeof t!="string")return t;const n=sG.exec(t);if(n)return{$type:"ClassDefStatement",className:n[1],styleText:n[2]||void 0}}}};function kb(e){const t=e.validation.TreemapValidator,r=e.validation.ValidationRegistry;if(r){const n={Treemap:t.checkSingleRoot.bind(t)};r.register(n,t)}}i(kb,"registerValidationChecks");var lG=class{static{i(this,"TreemapValidator")}checkSingleRoot(e,t){let r;for(const n of e.TreemapRows)n.item&&(r===void 0&&n.indent===void 0?r=0:n.indent===void 0?t("error","Multiple root nodes are not allowed in a treemap.",{node:n,property:"item"}):r!==void 0&&r>=parseInt(n.indent,10)&&t("error","Multiple root nodes are not allowed in a treemap.",{node:n,property:"item"}))}},Pb={parser:{TokenBuilder:i(()=>new iG,"TokenBuilder"),ValueConverter:i(()=>new oG,"ValueConverter")},validation:{TreemapValidator:i(()=>new lG,"TreemapValidator")}};function Ob(e=It){const t=Ae(vt(e),ir),r=Ae(yt({shared:t}),JF,Pb);return t.ServiceRegistry.register(r),kb(r),{shared:t,Treemap:r}}i(Ob,"createTreemapServices");var cG=class extends ei{static{i(this,"WardleyValueConverter")}runCustomConverter(e,t,r){switch(e.name.toUpperCase()){case"LINK_LABEL":return t.substring(1).trim();default:return}}},Lb={parser:{ValueConverter:i(()=>new cG,"ValueConverter")}};function Db(e=It){const t=Ae(vt(e),ir),r=Ae(yt({shared:t}),QF,Lb);return t.ServiceRegistry.register(r),{shared:t,Wardley:r}}i(Db,"createWardleyServices");var uG=class extends sr{static{i(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},Mb={parser:{TokenBuilder:i(()=>new uG,"TokenBuilder"),ValueConverter:i(()=>new Bs,"ValueConverter")}};function xb(e=It){const t=Ae(vt(e),ir),r=Ae(yt({shared:t}),WF,Mb);return t.ServiceRegistry.register(r),{shared:t,GitGraph:r}}i(xb,"createGitGraphServices");var fG=class extends sr{static{i(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},Fb={parser:{TokenBuilder:i(()=>new fG,"TokenBuilder"),ValueConverter:i(()=>new Bs,"ValueConverter")}};function Gb(e=It){const t=Ae(vt(e),ir),r=Ae(yt({shared:t}),VF,Fb);return t.ServiceRegistry.register(r),{shared:t,Info:r}}i(Gb,"createInfoServices");var dG=class extends sr{static{i(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},jb={parser:{TokenBuilder:i(()=>new dG,"TokenBuilder"),ValueConverter:i(()=>new Bs,"ValueConverter")}};function Ub(e=It){const t=Ae(vt(e),ir),r=Ae(yt({shared:t}),HF,jb);return t.ServiceRegistry.register(r),{shared:t,Packet:r}}i(Ub,"createPacketServices");var pG=class extends sr{static{i(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},hG=class extends ei{static{i(this,"PieValueConverter")}runCustomConverter(e,t,r){if(e.name==="PIE_SECTION_LABEL")return t.replace(/"/g,"").trim()}},zb={parser:{TokenBuilder:i(()=>new pG,"TokenBuilder"),ValueConverter:i(()=>new hG,"ValueConverter")}};function Bb(e=It){const t=Ae(vt(e),ir),r=Ae(yt({shared:t}),YF,zb);return t.ServiceRegistry.register(r),{shared:t,Pie:r}}i(Bb,"createPieServices");var mG=class extends ei{static{i(this,"TreeViewValueConverter")}runCustomConverter(e,t,r){if(e.name==="INDENTATION")return t?.length||0;if(e.name==="STRING2")return t.substring(1,t.length-1)}},gG=class extends sr{static{i(this,"TreeViewTokenBuilder")}constructor(){super(["treeView-beta"])}},Kb={parser:{TokenBuilder:i(()=>new gG,"TokenBuilder"),ValueConverter:i(()=>new mG,"ValueConverter")}};function qb(e=It){const t=Ae(vt(e),ir),r=Ae(yt({shared:t}),ZF,Kb);return t.ServiceRegistry.register(r),{shared:t,TreeView:r}}i(qb,"createTreeViewServices");var yG=class extends sr{static{i(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},vG=class extends ei{static{i(this,"ArchitectureValueConverter")}runCustomConverter(e,t,r){if(e.name==="ARCH_ICON")return t.replace(/[()]/g,"").trim();if(e.name==="ARCH_TEXT_ICON")return t.replace(/["()]/g,"");if(e.name==="ARCH_TITLE"){let n=t.replace(/^\[|]$/g,"").trim();return(n.startsWith('"')&&n.endsWith('"')||n.startsWith("'")&&n.endsWith("'"))&&(n=n.slice(1,-1),n=n.replace(/\\"/g,'"').replace(/\\'/g,"'")),n.trim()}}},Wb={parser:{TokenBuilder:i(()=>new yG,"TokenBuilder"),ValueConverter:i(()=>new vG,"ValueConverter")}};function Vb(e=It){const t=Ae(vt(e),ir),r=Ae(yt({shared:t}),KF,Wb);return t.ServiceRegistry.register(r),{shared:t,Architecture:r}}i(Vb,"createArchitectureServices");var TG=class extends sr{static{i(this,"EventModelingTokenBuilder")}constructor(){super(["eventmodeling"])}},$g=new Set(["cmd","command"]),Ag=new Set(["evt","event"]),Zc=new Set(["rmo","readmodel"]),Eg=new Set(["pcr","processor"]),_g=new Set(["ui"]);function Hb(e){const t=e.validation.EventModelingValidator,r=e.validation.ValidationRegistry;if(r){const n={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};r.register(n,t)}}i(Hb,"registerValidationChecks");var RG=class{static{i(this,"EventModelingValidator")}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&($g.has(e.modelEntityType)?this.validateSources(e,new Set([..._g,...Eg]),"command","ui or processor",t):Ag.has(e.modelEntityType)?this.validateSources(e,$g,"event","command",t):Zc.has(e.modelEntityType)?this.validateSources(e,Ag,"read model","event",t):Eg.has(e.modelEntityType)?this.validateSources(e,Zc,"processor","read model",t):_g.has(e.modelEntityType)&&this.validateSources(e,Zc,"ui","read model",t))}validateSources(e,t,r,n,a){for(const s of e.sourceFrames){const o=s.ref;o!==void 0&&!t.has(o.modelEntityType)&&a("error",`A ${r} can only receive input from a ${n}, not from '${o.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},Yb={parser:{TokenBuilder:i(()=>new TG,"TokenBuilder"),ValueConverter:i(()=>new Bs,"ValueConverter")},validation:{EventModelingValidator:i(()=>new RG,"EventModelingValidator")}};function Xb(e=It){const t=Ae(vt(e),ir),r=Ae(yt({shared:t}),qF,Yb);return t.ServiceRegistry.register(r),Hb(r),{shared:t,EventModel:r}}i(Xb,"createEventModelingServices");var At={},$G={info:i(async()=>{const{createInfoServices:e}=await Promise.resolve().then(function(){return _G}),t=e().Info.parser.LangiumParser;At.info=t},"info"),packet:i(async()=>{const{createPacketServices:e}=await Promise.resolve().then(function(){return CG}),t=e().Packet.parser.LangiumParser;At.packet=t},"packet"),pie:i(async()=>{const{createPieServices:e}=await Promise.resolve().then(function(){return SG}),t=e().Pie.parser.LangiumParser;At.pie=t},"pie"),treeView:i(async()=>{const{createTreeViewServices:e}=await Promise.resolve().then(function(){return bG}),t=e().TreeView.parser.LangiumParser;At.treeView=t},"treeView"),architecture:i(async()=>{const{createArchitectureServices:e}=await Promise.resolve().then(function(){return wG}),t=e().Architecture.parser.LangiumParser;At.architecture=t},"architecture"),gitGraph:i(async()=>{const{createGitGraphServices:e}=await Promise.resolve().then(function(){return IG}),t=e().GitGraph.parser.LangiumParser;At.gitGraph=t},"gitGraph"),eventmodeling:i(async()=>{const{createEventModelingServices:e}=await Promise.resolve().then(function(){return NG}),t=e().EventModel.parser.LangiumParser;At.eventmodeling=t},"eventmodeling"),radar:i(async()=>{const{createRadarServices:e}=await Promise.resolve().then(function(){return kG}),t=e().Radar.parser.LangiumParser;At.radar=t},"radar"),treemap:i(async()=>{const{createTreemapServices:e}=await Promise.resolve().then(function(){return PG}),t=e().Treemap.parser.LangiumParser;At.treemap=t},"treemap"),wardley:i(async()=>{const{createWardleyServices:e}=await Promise.resolve().then(function(){return OG}),t=e().Wardley.parser.LangiumParser;At.wardley=t},"wardley")};async function AG(e,t){const r=$G[e];if(!r)throw new Error(`Unknown diagram type: ${e}`);At[e]||await r();const a=At[e].parse(t);if(a.lexerErrors.length>0||a.parserErrors.length>0)throw new EG(a);return a.value}i(AG,"parse");var EG=class extends Error{constructor(e){const t=e.lexerErrors.map(n=>{const a=n.line!==void 0&&!isNaN(n.line)?n.line:"?",s=n.column!==void 0&&!isNaN(n.column)?n.column:"?";return`Lexer error on line ${a}, column ${s}: ${n.message}`}).join(`
172
+ `),r=e.parserErrors.map(n=>{const a=n.token.startLine!==void 0&&!isNaN(n.token.startLine)?n.token.startLine:"?",s=n.token.startColumn!==void 0&&!isNaN(n.token.startColumn)?n.token.startColumn:"?";return`Parse error on line ${a}, column ${s}: ${n.message}`}).join(`
173
+ `);super(`Parsing failed: ${t} ${r}`),this.result=e}static{i(this,"MermaidParseError")}},_G=Object.freeze({__proto__:null,InfoModule:Fb,createInfoServices:Gb}),CG=Object.freeze({__proto__:null,PacketModule:jb,createPacketServices:Ub}),SG=Object.freeze({__proto__:null,PieModule:zb,createPieServices:Bb}),bG=Object.freeze({__proto__:null,TreeViewModule:Kb,createTreeViewServices:qb}),wG=Object.freeze({__proto__:null,ArchitectureModule:Wb,createArchitectureServices:Vb}),IG=Object.freeze({__proto__:null,GitGraphModule:Mb,createGitGraphServices:xb}),NG=Object.freeze({__proto__:null,EventModelingModule:Yb,createEventModelingServices:Xb}),kG=Object.freeze({__proto__:null,RadarModule:Ib,createRadarServices:Nb}),PG=Object.freeze({__proto__:null,TreemapModule:Pb,createTreemapServices:Ob}),OG=Object.freeze({__proto__:null,WardleyModule:Lb,createWardleyServices:Db});export{hF as i,AG as p};