@sheetxl/mcp 0.0.0-stage → 0.8.0-beta.15

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 (509) hide show
  1. package/LICENSE.md +11 -0
  2. package/README.md +72 -2
  3. package/agent/instructions.md +66 -0
  4. package/assets/9U9XCqqdn-q3i2fj.js +123 -0
  5. package/assets/B-MqXm_7luDLwazY.js +596 -0
  6. package/assets/B2Ek-DWpZMGJ0V1Z.js +18 -0
  7. package/assets/B2udpZ-uIaql3AUh.js +104 -0
  8. package/assets/B4VnJacrzr1x4PHR.js +402 -0
  9. package/assets/B5lHOOQ_rkP4Mi2r.js +638 -0
  10. package/assets/B7gUyrfLln3TiyKM.js +14 -0
  11. package/assets/B9US2ZrF93KOjmAx.js +22 -0
  12. package/assets/BBb_3gEGzmEzbTIk.js +359 -0
  13. package/assets/BCy1zP97fsiIcvj6.js +18 -0
  14. package/assets/BFXeoFUbuc4IKTz9.js +28 -0
  15. package/assets/BFdeov2e_xUQPEY_.js +202 -0
  16. package/assets/BG5kgbDRXMc0re6W.js +242 -0
  17. package/assets/BJxfinOazQqqByc-.js +105 -0
  18. package/assets/BOPsJmq7v7HOKUkO.js +32 -0
  19. package/assets/BPwmBu_aouERJjiW.js +45 -0
  20. package/assets/BQMDOjNBMjAx9WiW.js +3011 -0
  21. package/assets/BQbF1RkUH8WyXqSD.js +780 -0
  22. package/assets/BRzp6DEIYUgM3NkN.js +369 -0
  23. package/assets/BSxTn2BhkEEeF9x_.js +2346 -0
  24. package/assets/BTQhJQ3e0hsiousD.js +28 -0
  25. package/assets/BZPTaa0WjpoUAbgZ.js +35 -0
  26. package/assets/BbAmA46MhQSu3ZF_.js +119 -0
  27. package/assets/BbcUxIZe3YXywsQR.js +28 -0
  28. package/assets/BeLr36oL3jmeXFFi.js +58 -0
  29. package/assets/Bg95xYj5siqhHVEz.js +594 -0
  30. package/assets/Bh0PNKlrR4VAqnP8.js +60500 -0
  31. package/assets/BjqQjxBuoXza8oqg.js +362 -0
  32. package/assets/BlPubAFi7DY7VrAo.js +33 -0
  33. package/assets/BleMG0hAQgjE8fTa.js +7 -0
  34. package/assets/Bn8D2bebQ2tFfwQt.js +310 -0
  35. package/assets/BrcQmHcE7Hcr1erJ.js +24 -0
  36. package/assets/BsQZI1vXTRE63Zy-.js +2368 -0
  37. package/assets/BtjqpAKczftx91BQ.js +96 -0
  38. package/assets/Btys7KwtvV3hz2F6.js +656 -0
  39. package/assets/BuUEsifnQALe49uk.js +857 -0
  40. package/assets/By-7OWXShMlFFejV.js +119 -0
  41. package/assets/C0CiMKC3lWK1z9p5.js +449 -0
  42. package/assets/C2OrZ8LZ-TI6eYG0.js +22 -0
  43. package/assets/C4z2IilWTuu2TWXw.js +3917 -0
  44. package/assets/C7ONfuYIWRmDu_vs.js +319 -0
  45. package/assets/C7Z1li2XjWi6bkrp.js +1556 -0
  46. package/assets/C97xDe_wBbLZh_uW.js +35 -0
  47. package/assets/CGBGyaCGdlZFQYK0.js +447 -0
  48. package/assets/CJ5WQnaoCsdr5gf4.js +1783 -0
  49. package/assets/CMK6tIDVqYYvK4GZ.js +55 -0
  50. package/assets/CMWAsUQ66V8fYrME.js +223 -0
  51. package/assets/CNz3LdmvsOEJoLO9.js +12 -0
  52. package/assets/CWVWdbY1B1-WLl9k.js +199 -0
  53. package/assets/CWl6oHiJxkNKRixk.js +17 -0
  54. package/assets/CXHslDxkWCuEcCSQ.js +13 -0
  55. package/assets/CZTSZL3T_f-vSXqM.js +7 -0
  56. package/assets/CduNzsdbTigxH-ZK.js +5220 -0
  57. package/assets/CecTe22WURiXbVdY.js +2260 -0
  58. package/assets/Cf2dcwmmmf13Rywg.js +146 -0
  59. package/assets/Cf9LpgZz-W5blzy_.js +27 -0
  60. package/assets/Cfhv_Yw_LT8VzAMt.js +255 -0
  61. package/assets/Cg51xaLRUkVOMdCZ.js +144 -0
  62. package/assets/ChWpsFGl-BYOnX_A.js +142 -0
  63. package/assets/ClNQN3vEg5b5qUDp.js +10289 -0
  64. package/assets/Crt2kLdGIlBHANgg.js +28 -0
  65. package/assets/CudNpUD78SrtJIiy.js +610 -0
  66. package/assets/CvngwB17_ve4W49b.js +639 -0
  67. package/assets/CwPBmcY6xSP8dNlh.js +51 -0
  68. package/assets/CxjchwpiqxPM1XKd.js +304 -0
  69. package/assets/D-ffk16w8c5w0mxI.js +71 -0
  70. package/assets/D0CHDsemn0S31ltt.js +32 -0
  71. package/assets/D7oUtYjetuykGhQ5.js +18 -0
  72. package/assets/D8J14MLlN2HRXdXB.js +20 -0
  73. package/assets/DA_ar3QKLKtJ9fJD.js +37 -0
  74. package/assets/DB-tkqI6wFXDKEfB.js +118 -0
  75. package/assets/DD8HNAUFroTCuD-b.js +7514 -0
  76. package/assets/DDnwKPJSznyfYDZS.js +49 -0
  77. package/assets/DEW2GxfGYqVFvrfg.js +23 -0
  78. package/assets/DH7sGHzxUqIQkDnd.js +16 -0
  79. package/assets/DJiLWtmPR2OQNjzi.js +19 -0
  80. package/assets/DKLm4nWzynGw1Kr9.js +15 -0
  81. package/assets/DPCKMM7sgWbrtB8z.js +81 -0
  82. package/assets/DTfl-4Iboi6TQU5m.js +37 -0
  83. package/assets/DVchxwp6w6lu2Ihu.js +7 -0
  84. package/assets/DaoSWy3EFlqpZaLr.js +4437 -0
  85. package/assets/DcWTBOi_iBFc6U4J.js +8338 -0
  86. package/assets/Dht2mcOSyYlPY32b.js +14 -0
  87. package/assets/Diee6f_qAmcZBd2_.js +52 -0
  88. package/assets/DkibD_CEVePaoj_y.js +7 -0
  89. package/assets/DlBdhv6NHgrNp5Yo.js +7 -0
  90. package/assets/DoILAmhKUOlKWRVw.js +12 -0
  91. package/assets/DpdHDTFOeuzDVNEe.js +405 -0
  92. package/assets/DsCI_ZYm_jDjXF3J.js +12996 -0
  93. package/assets/DvUUArnZwoYOKOuk.js +12 -0
  94. package/assets/DwLZpYUp85UHBE3H.js +63 -0
  95. package/assets/DwWngYJTgC0KLbih.js +184 -0
  96. package/assets/Dz8UUJ7Xc2oN5PBG.js +45 -0
  97. package/assets/FS9NbEKgQvz5wqvZ.js +1135 -0
  98. package/assets/F_f0jJqM5MrXGbwC.js +86 -0
  99. package/assets/FzNG48GE_wso6RII.js +173 -0
  100. package/assets/JO3zH9hupFSV6vj2.js +15 -0
  101. package/assets/LEJp05fjmflKgyqF.js +1760 -0
  102. package/assets/LyLlBk--VJD2V-f8.js +351 -0
  103. package/assets/OVRdpPUzR0-ueTxE.js +1860 -0
  104. package/assets/PpFbmF0DFeUdpb9I.js +145 -0
  105. package/assets/S16s2h9qoYVBlVEa.js +9137 -0
  106. package/assets/SHZe9VOU1prGs1F9.js +19 -0
  107. package/assets/U1XXGEPuuqIAzYl1.js +8 -0
  108. package/assets/ZuYfVKlp41IJnrOS.js +540 -0
  109. package/assets/_d5XJ7dn1CKKYrep.js +1131 -0
  110. package/assets/_fUXIv6nKvgZkhxn.js +23 -0
  111. package/assets/fDMpDhXp36CatF-G.js +23 -0
  112. package/assets/hulrR0PldUxMJm_F.js +504 -0
  113. package/assets/iujMYIEPx_v3sdPf.js +9109 -0
  114. package/assets/jPUOH4FHF4b-rapv.js +171 -0
  115. package/assets/jadLBUNBVR9mbZ35.js +4036 -0
  116. package/assets/jiEe5eKV3BFPBWfi.js +6294 -0
  117. package/assets/oxjm7Yr7u7MeaO5P.js +37 -0
  118. package/assets/vZZi_iKYHm05gAye.js +30 -0
  119. package/assets/wfVh0olISLRWdv9Q.js +47 -0
  120. package/assets/xmTQJJVyCrcq77WR.js +63 -0
  121. package/assets/xnhBSX6lAcmBM65y.js +32 -0
  122. package/index.js +8070 -0
  123. package/lib.js +7 -0
  124. package/licenses/dependencies.txt +1552 -0
  125. package/package.json +44 -3
  126. package/resources/contents.json +333 -0
  127. package/resources/fonts/@sheetxl/sdk/aptos-bold-italic.hinted.json +125 -0
  128. package/resources/fonts/@sheetxl/sdk/aptos-bold-italic.metrics.json +221 -0
  129. package/resources/fonts/@sheetxl/sdk/aptos-bold-italic.rows.json +8 -0
  130. package/resources/fonts/@sheetxl/sdk/aptos-bold.hinted.json +125 -0
  131. package/resources/fonts/@sheetxl/sdk/aptos-bold.metrics.json +221 -0
  132. package/resources/fonts/@sheetxl/sdk/aptos-bold.rows.json +8 -0
  133. package/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.hinted.json +125 -0
  134. package/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.metrics.json +221 -0
  135. package/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.rows.json +8 -0
  136. package/resources/fonts/@sheetxl/sdk/aptos-display-bold.hinted.json +125 -0
  137. package/resources/fonts/@sheetxl/sdk/aptos-display-bold.metrics.json +221 -0
  138. package/resources/fonts/@sheetxl/sdk/aptos-display-bold.rows.json +8 -0
  139. package/resources/fonts/@sheetxl/sdk/aptos-display-italic.hinted.json +124 -0
  140. package/resources/fonts/@sheetxl/sdk/aptos-display-italic.metrics.json +221 -0
  141. package/resources/fonts/@sheetxl/sdk/aptos-display-italic.rows.json +8 -0
  142. package/resources/fonts/@sheetxl/sdk/aptos-display-regular.hinted.json +125 -0
  143. package/resources/fonts/@sheetxl/sdk/aptos-display-regular.metrics.json +221 -0
  144. package/resources/fonts/@sheetxl/sdk/aptos-display-regular.rows.json +8 -0
  145. package/resources/fonts/@sheetxl/sdk/aptos-italic.hinted.json +125 -0
  146. package/resources/fonts/@sheetxl/sdk/aptos-italic.metrics.json +221 -0
  147. package/resources/fonts/@sheetxl/sdk/aptos-italic.rows.json +8 -0
  148. package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.hinted.json +125 -0
  149. package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.metrics.json +221 -0
  150. package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.rows.json +8 -0
  151. package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.hinted.json +125 -0
  152. package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.metrics.json +221 -0
  153. package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.rows.json +8 -0
  154. package/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.hinted.json +125 -0
  155. package/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.metrics.json +221 -0
  156. package/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.rows.json +8 -0
  157. package/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.hinted.json +125 -0
  158. package/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.metrics.json +221 -0
  159. package/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.rows.json +8 -0
  160. package/resources/fonts/@sheetxl/sdk/aptos-regular.hinted.json +125 -0
  161. package/resources/fonts/@sheetxl/sdk/aptos-regular.metrics.json +221 -0
  162. package/resources/fonts/@sheetxl/sdk/aptos-regular.rows.json +8 -0
  163. package/resources/fonts/@sheetxl/sdk/arial-bold-italic.hinted.json +125 -0
  164. package/resources/fonts/@sheetxl/sdk/arial-bold-italic.metrics.json +139 -0
  165. package/resources/fonts/@sheetxl/sdk/arial-bold-italic.rows.json +8 -0
  166. package/resources/fonts/@sheetxl/sdk/arial-bold.hinted.json +125 -0
  167. package/resources/fonts/@sheetxl/sdk/arial-bold.metrics.json +139 -0
  168. package/resources/fonts/@sheetxl/sdk/arial-bold.rows.json +8 -0
  169. package/resources/fonts/@sheetxl/sdk/arial-italic.hinted.json +125 -0
  170. package/resources/fonts/@sheetxl/sdk/arial-italic.metrics.json +139 -0
  171. package/resources/fonts/@sheetxl/sdk/arial-italic.rows.json +8 -0
  172. package/resources/fonts/@sheetxl/sdk/arial-regular.hinted.json +125 -0
  173. package/resources/fonts/@sheetxl/sdk/arial-regular.metrics.json +139 -0
  174. package/resources/fonts/@sheetxl/sdk/arial-regular.rows.json +8 -0
  175. package/resources/fonts/@sheetxl/sdk/calibri-bold-italic.hinted.json +122 -0
  176. package/resources/fonts/@sheetxl/sdk/calibri-bold-italic.metrics.json +137 -0
  177. package/resources/fonts/@sheetxl/sdk/calibri-bold-italic.rows.json +8 -0
  178. package/resources/fonts/@sheetxl/sdk/calibri-bold.hinted.json +122 -0
  179. package/resources/fonts/@sheetxl/sdk/calibri-bold.metrics.json +137 -0
  180. package/resources/fonts/@sheetxl/sdk/calibri-bold.rows.json +8 -0
  181. package/resources/fonts/@sheetxl/sdk/calibri-italic.hinted.json +121 -0
  182. package/resources/fonts/@sheetxl/sdk/calibri-italic.metrics.json +137 -0
  183. package/resources/fonts/@sheetxl/sdk/calibri-italic.rows.json +8 -0
  184. package/resources/fonts/@sheetxl/sdk/calibri-regular.hinted.json +121 -0
  185. package/resources/fonts/@sheetxl/sdk/calibri-regular.metrics.json +137 -0
  186. package/resources/fonts/@sheetxl/sdk/calibri-regular.rows.json +8 -0
  187. package/resources/fonts/@sheetxl/sdk/cambria-bold-italic.hinted.json +105 -0
  188. package/resources/fonts/@sheetxl/sdk/cambria-bold-italic.metrics.json +66 -0
  189. package/resources/fonts/@sheetxl/sdk/cambria-bold-italic.rows.json +8 -0
  190. package/resources/fonts/@sheetxl/sdk/cambria-bold.hinted.json +108 -0
  191. package/resources/fonts/@sheetxl/sdk/cambria-bold.metrics.json +66 -0
  192. package/resources/fonts/@sheetxl/sdk/cambria-bold.rows.json +8 -0
  193. package/resources/fonts/@sheetxl/sdk/cambria-italic.hinted.json +102 -0
  194. package/resources/fonts/@sheetxl/sdk/cambria-italic.metrics.json +66 -0
  195. package/resources/fonts/@sheetxl/sdk/cambria-italic.rows.json +8 -0
  196. package/resources/fonts/@sheetxl/sdk/cambria-regular.hinted.json +110 -0
  197. package/resources/fonts/@sheetxl/sdk/cambria-regular.metrics.json +66 -0
  198. package/resources/fonts/@sheetxl/sdk/cambria-regular.rows.json +8 -0
  199. package/resources/fonts/@sheetxl/sdk/contents.json +646 -0
  200. package/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.hinted.json +11 -0
  201. package/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.metrics.json +143 -0
  202. package/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.rows.json +8 -0
  203. package/resources/fonts/@sheetxl/sdk/courier-new-bold.hinted.json +11 -0
  204. package/resources/fonts/@sheetxl/sdk/courier-new-bold.metrics.json +143 -0
  205. package/resources/fonts/@sheetxl/sdk/courier-new-bold.rows.json +8 -0
  206. package/resources/fonts/@sheetxl/sdk/courier-new-italic.hinted.json +11 -0
  207. package/resources/fonts/@sheetxl/sdk/courier-new-italic.metrics.json +143 -0
  208. package/resources/fonts/@sheetxl/sdk/courier-new-italic.rows.json +8 -0
  209. package/resources/fonts/@sheetxl/sdk/courier-new-regular.hinted.json +11 -0
  210. package/resources/fonts/@sheetxl/sdk/courier-new-regular.metrics.json +143 -0
  211. package/resources/fonts/@sheetxl/sdk/courier-new-regular.rows.json +8 -0
  212. package/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.hinted.json +125 -0
  213. package/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.metrics.json +141 -0
  214. package/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.rows.json +8 -0
  215. package/resources/fonts/@sheetxl/sdk/times-new-roman-bold.hinted.json +125 -0
  216. package/resources/fonts/@sheetxl/sdk/times-new-roman-bold.metrics.json +141 -0
  217. package/resources/fonts/@sheetxl/sdk/times-new-roman-bold.rows.json +8 -0
  218. package/resources/fonts/@sheetxl/sdk/times-new-roman-italic.hinted.json +125 -0
  219. package/resources/fonts/@sheetxl/sdk/times-new-roman-italic.metrics.json +143 -0
  220. package/resources/fonts/@sheetxl/sdk/times-new-roman-italic.rows.json +8 -0
  221. package/resources/fonts/@sheetxl/sdk/times-new-roman-regular.hinted.json +125 -0
  222. package/resources/fonts/@sheetxl/sdk/times-new-roman-regular.metrics.json +141 -0
  223. package/resources/fonts/@sheetxl/sdk/times-new-roman-regular.rows.json +8 -0
  224. package/resources/locales/@sheetxl/formulas/contents.json +9 -0
  225. package/resources/locales/@sheetxl/formulas/de/functions.json +298 -0
  226. package/resources/locales/@sheetxl/formulas-extended/contents.json +9 -0
  227. package/resources/locales/@sheetxl/formulas-extended/de/functions.json +59 -0
  228. package/resources/locales/@sheetxl/sdk/contents.json +19 -0
  229. package/resources/locales/@sheetxl/sdk/de/grammar.json +16 -0
  230. package/resources/locales/@sheetxl/sdk/de/model.msg.json +710 -0
  231. package/resources/locales/@sheetxl/sdk/en/model.msg.json +732 -0
  232. package/screenshot-page/assets/-cpi3yOZYn6GsYN4.js +9 -0
  233. package/screenshot-page/assets/-i_fTASJeu9NdNH_.js +7 -0
  234. package/screenshot-page/assets/0MTaPYjKud2Q9QG9.js +1 -0
  235. package/screenshot-page/assets/21oAESJyBGXeHegm.js +2 -0
  236. package/screenshot-page/assets/3Ls_kOvlQseMV8Q0.js +1 -0
  237. package/screenshot-page/assets/4qZpl2QCzneWdmJO.js +1 -0
  238. package/screenshot-page/assets/6IEV7KeOEbBdrthj.js +1 -0
  239. package/screenshot-page/assets/8QrkTrKHDnMBb7q4.js +1 -0
  240. package/screenshot-page/assets/9w0ECZmzGUyk3F_O.js +1 -0
  241. package/screenshot-page/assets/AjS2PipZDIH3BXB2.js +1 -0
  242. package/screenshot-page/assets/B-KIwD5F_5S-NsPg.js +1 -0
  243. package/screenshot-page/assets/B-sAzW5ROrhvMGM4.js +1 -0
  244. package/screenshot-page/assets/B0FQypGas6gbGT_U.js +1 -0
  245. package/screenshot-page/assets/B2IQMVqTZT1rUnib.js +1 -0
  246. package/screenshot-page/assets/B2MJPcMcsuv6FekC.js +1 -0
  247. package/screenshot-page/assets/B2g3jiFIQ4Qjh5gG.js +1 -0
  248. package/screenshot-page/assets/B4PbXdzBe9BsoZ0e.js +2 -0
  249. package/screenshot-page/assets/B5GO9v4p9L70Xb9i.js +1 -0
  250. package/screenshot-page/assets/B8y_eLNCGnXLEIaE.js +1 -0
  251. package/screenshot-page/assets/BEuMvXYIa9A1JacY.js +1 -0
  252. package/screenshot-page/assets/BEwl-ucV9Jfr0RoC.js +1 -0
  253. package/screenshot-page/assets/BFaiQZKle44Rhyou.js +1 -0
  254. package/screenshot-page/assets/BHqg55S-4_OoAu3P.js +2 -0
  255. package/screenshot-page/assets/BNgLvS2bLOYKRguv.js +1 -0
  256. package/screenshot-page/assets/BQAN82ftWBiLJT3r.js +1 -0
  257. package/screenshot-page/assets/BQfe-XTIOGeUnD9B.js +1 -0
  258. package/screenshot-page/assets/BQnELVV0uR4T4ItQ.js +1 -0
  259. package/screenshot-page/assets/BRVZJ0OGJg9XJro6.js +1 -0
  260. package/screenshot-page/assets/BSdFVGZNhU6YHbMI.js +2 -0
  261. package/screenshot-page/assets/BTMW3ukmc44U2fy7.js +1 -0
  262. package/screenshot-page/assets/BTOQaSn9DDyJPUlX.js +1 -0
  263. package/screenshot-page/assets/BTboCICZ-951XWsi.js +1 -0
  264. package/screenshot-page/assets/BUGXf2DEBog16Slb.js +2 -0
  265. package/screenshot-page/assets/BUjI304IvdJnFXH3.js +1 -0
  266. package/screenshot-page/assets/B_W2QroTKADz3ABp.js +2 -0
  267. package/screenshot-page/assets/Baz0SC2AgGyxMX72.js +1 -0
  268. package/screenshot-page/assets/BbP9KThfrodyosvn.js +1 -0
  269. package/screenshot-page/assets/BcOdl17EeFSxnAiq.js +1 -0
  270. package/screenshot-page/assets/BclKeOKIOBjijhsu.js +1 -0
  271. package/screenshot-page/assets/Bf7xq8PyF4ohjMzP.js +2 -0
  272. package/screenshot-page/assets/BimyzECCZl-NESff.js +1 -0
  273. package/screenshot-page/assets/Bj-vfAT28PK-tWWa.js +2 -0
  274. package/screenshot-page/assets/BkLH7JH3A93TXFJi.js +1 -0
  275. package/screenshot-page/assets/BksaQEoZr5OWq-_d.js +3 -0
  276. package/screenshot-page/assets/BnoVwUBEor8NgQNs.js +4 -0
  277. package/screenshot-page/assets/BowRIybLgENunTOT.js +1 -0
  278. package/screenshot-page/assets/Bp7se0JaDGrzfSA_.js +1 -0
  279. package/screenshot-page/assets/Bx61vmiWY0Xvx9qs.js +1 -0
  280. package/screenshot-page/assets/ByY3fmwyDPAyOLdo.js +1 -0
  281. package/screenshot-page/assets/Bz5V1tmiy5gbT9ys.js +1 -0
  282. package/screenshot-page/assets/Bz9v1lgjvbu4QnOs.js +2 -0
  283. package/screenshot-page/assets/BzQ5GyiXq8gTz-H-.js +1 -0
  284. package/screenshot-page/assets/C1k_VrZqlpiUigCP.js +1 -0
  285. package/screenshot-page/assets/C2Wh2h27c7FUb8Yk.js +1 -0
  286. package/screenshot-page/assets/C6oLDVnuCS9LGkkH.js +1 -0
  287. package/screenshot-page/assets/C81mK8aZKZAAS-AB.js +1 -0
  288. package/screenshot-page/assets/C9SC-cEIt6gdhZRw.js +1 -0
  289. package/screenshot-page/assets/CE8MCCIiwjOVwBBW.js +1 -0
  290. package/screenshot-page/assets/CG3ynup87FmG-kkX.js +1 -0
  291. package/screenshot-page/assets/CHlWgOAlcRCjVuhg.js +1 -0
  292. package/screenshot-page/assets/CIged53b3hHKxa-o.js +1 -0
  293. package/screenshot-page/assets/CNQczIR5xcE5u5fT.js +1 -0
  294. package/screenshot-page/assets/CSUd8n1H0VBfREnk.js +2 -0
  295. package/screenshot-page/assets/CSlBTkRDITCC8JRB.js +1 -0
  296. package/screenshot-page/assets/CV2jr9hpQOG2OG0C.js +1 -0
  297. package/screenshot-page/assets/CXGgKVbVXjWzE0p6.js +1 -0
  298. package/screenshot-page/assets/CXKCmZ_TRyGaB9Ob.js +1 -0
  299. package/screenshot-page/assets/CXUO3vYip3JPSJ7A.js +1 -0
  300. package/screenshot-page/assets/CXwbGzavyvYgDbWU.js +1 -0
  301. package/screenshot-page/assets/CZf9s6otzzoaBlSs.js +1 -0
  302. package/screenshot-page/assets/CZvwQEeVhBilgKLG.js +1 -0
  303. package/screenshot-page/assets/Ca6nxdhEuLLty3d7.js +2 -0
  304. package/screenshot-page/assets/CbUDukmvDZmVfhJH.js +1 -0
  305. package/screenshot-page/assets/CbXtAM7H-Jg_J0dk.js +1 -0
  306. package/screenshot-page/assets/CctIRGMFmARVi2KT.js +1 -0
  307. package/screenshot-page/assets/Cenh1POxiGMxIQlv.js +1 -0
  308. package/screenshot-page/assets/ChSvXfVMLxZsP9zG.js +8 -0
  309. package/screenshot-page/assets/Ci5NtzhJLll1kxGf.js +10 -0
  310. package/screenshot-page/assets/CjngjJNheGaVRvZp.js +1 -0
  311. package/screenshot-page/assets/ClzdIJrFdInttVJA.js +1 -0
  312. package/screenshot-page/assets/CnPgk3HcIziOcskY.js +10 -0
  313. package/screenshot-page/assets/CnXLpFE_vFrJ5Jbf.js +1 -0
  314. package/screenshot-page/assets/CpbohdgEaEsVDi9J.js +1 -0
  315. package/screenshot-page/assets/CqR3hGrC956TkCMj.js +20 -0
  316. package/screenshot-page/assets/Cr1tQKUBVKOQl3QC.js +1 -0
  317. package/screenshot-page/assets/CwqNb7JYzC03lCj0.js +1 -0
  318. package/screenshot-page/assets/CykecBozGGFl26KA.js +3940 -0
  319. package/screenshot-page/assets/CzTizxHhb-CI_ajE.js +1 -0
  320. package/screenshot-page/assets/CzhH7lTYQrYGHct6.js +1 -0
  321. package/screenshot-page/assets/CzzEl3lAkZopkwhC.js +1 -0
  322. package/screenshot-page/assets/D-LgRj0s-PAVqY-L.js +1 -0
  323. package/screenshot-page/assets/D-XR1MGhwn7Jqj60.js +1 -0
  324. package/screenshot-page/assets/D47ePD4x1lVazNdl.js +7 -0
  325. package/screenshot-page/assets/D66vSE1ConAuENmB.js +586 -0
  326. package/screenshot-page/assets/D6Jpaz2YkhOfzxDB.js +1 -0
  327. package/screenshot-page/assets/D9zCVZpnJBfNSNO2.js +1 -0
  328. package/screenshot-page/assets/DCVUZ_ayOXFwV2d_.js +3 -0
  329. package/screenshot-page/assets/DDQWM8rNYCYzKa9R.js +1 -0
  330. package/screenshot-page/assets/DFE-fKq5NV7_O8V6.js +1 -0
  331. package/screenshot-page/assets/DGXDfjkGZjMRAXPg.js +5 -0
  332. package/screenshot-page/assets/DHa5_U58lSwCnpmG.js +1 -0
  333. package/screenshot-page/assets/DKVB6ddRfDJatYid.js +1 -0
  334. package/screenshot-page/assets/DK_QSosKV62NDcuT.js +42 -0
  335. package/screenshot-page/assets/DM9U7u7FQK0jcwh4.js +1 -0
  336. package/screenshot-page/assets/DNDaHmkQrQTaCHhV.js +1 -0
  337. package/screenshot-page/assets/DQ0kGd99-fXxuNYk.js +1 -0
  338. package/screenshot-page/assets/DQWHkaQeNXft9j8b.js +2 -0
  339. package/screenshot-page/assets/DRVfGdmVBvktrZ1t.js +1 -0
  340. package/screenshot-page/assets/DRrM-dY9nM7nDRpV.js +1 -0
  341. package/screenshot-page/assets/DT2x1gO3f2G5NfeB.js +1 -0
  342. package/screenshot-page/assets/DTFRGj188QuLKEXw.js +1 -0
  343. package/screenshot-page/assets/DU3FmyUH0RjPIBd-.js +1 -0
  344. package/screenshot-page/assets/DVueE--eOrZPrqrm.js +1 -0
  345. package/screenshot-page/assets/DXQLzGmxoyN3kfQi.js +27 -0
  346. package/screenshot-page/assets/DXWWyJlMSWgDFxs1.js +10 -0
  347. package/screenshot-page/assets/DYJSIlNxrNw8qk-w.js +1 -0
  348. package/screenshot-page/assets/DYRbCudWTaiE_Sjc.js +1 -0
  349. package/screenshot-page/assets/DZDRRw-62D6Zw7qs.js +1 -0
  350. package/screenshot-page/assets/DaKZ4-Li_ULIIwnK.js +1 -0
  351. package/screenshot-page/assets/DadZXeaVK5UXSHIi.js +1 -0
  352. package/screenshot-page/assets/Db_VGqQo2G2JgXWW.js +1 -0
  353. package/screenshot-page/assets/DceNHPrRLok2At-X.js +1 -0
  354. package/screenshot-page/assets/DcrVJCyDwGKeil2U.js +1 -0
  355. package/screenshot-page/assets/DeAKjatTVaZ0u_FY.js +1 -0
  356. package/screenshot-page/assets/DmMZ4pd492HPw_3_.js +1 -0
  357. package/screenshot-page/assets/DmbuCapSSCYIa3yk.js +1 -0
  358. package/screenshot-page/assets/Dpepompn_NhpSncR.js +1 -0
  359. package/screenshot-page/assets/DqYhS4mcQfOe96hU.js +1 -0
  360. package/screenshot-page/assets/Dsx0NUmGIxS7SvZ8.js +1 -0
  361. package/screenshot-page/assets/DyGpT6t96jrvgJes.js +1 -0
  362. package/screenshot-page/assets/DyLWQxXXTw5uwPVy.js +30 -0
  363. package/screenshot-page/assets/DyYVf8O1rhg3YmjW.js +1 -0
  364. package/screenshot-page/assets/DyxJBLjUkeDuu96F.js +1 -0
  365. package/screenshot-page/assets/HclGiUj8dZXDFmoM.js +1 -0
  366. package/screenshot-page/assets/IRtoU5oVgBWu9rnK.js +2 -0
  367. package/screenshot-page/assets/J73KTOmdZGNmnq-z.js +1 -0
  368. package/screenshot-page/assets/J_xJVgE7YlmeU-ZO.js +6 -0
  369. package/screenshot-page/assets/KoxRo2J_cwB_yOd5.js +2 -0
  370. package/screenshot-page/assets/LVtV_IPhPQroHRui.js +1 -0
  371. package/screenshot-page/assets/MNoPOsydrUv1UGU8.js +2 -0
  372. package/screenshot-page/assets/Q5EKmzoJZCE81Om-.js +2 -0
  373. package/screenshot-page/assets/TfhknTx8vxQkw4zV.js +2 -0
  374. package/screenshot-page/assets/VvqAh6BWzaD5OUPF.js +1 -0
  375. package/screenshot-page/assets/fGlPAximvsxzPzGA.js +1 -0
  376. package/screenshot-page/assets/gG0AFZ45VxS_moMw.js +2 -0
  377. package/screenshot-page/assets/hp_-JA1DMK4Yoztn.js +57 -0
  378. package/screenshot-page/assets/l32n8O_A78Qqduv3.js +1 -0
  379. package/screenshot-page/assets/nHThFXCAZFOM_npq.js +1 -0
  380. package/screenshot-page/assets/pRykm05ElquZBk_a.js +1 -0
  381. package/screenshot-page/assets/rPOkVKdPbFpTG6AY.js +1 -0
  382. package/screenshot-page/assets/sHBomL5R4-_px8rD.js +1 -0
  383. package/screenshot-page/assets/skRJ2qjA7kcmnOsh.js +39 -0
  384. package/screenshot-page/assets/w3bV7wggRayUYTd-.js +1 -0
  385. package/screenshot-page/assets/zFbb8ESzwR_bE7IQ.js +1 -0
  386. package/screenshot-page/index.html +44 -0
  387. package/screenshot-page/resources/contents.json +333 -0
  388. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold-italic.hinted.json +125 -0
  389. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold-italic.metrics.json +221 -0
  390. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold-italic.rows.json +8 -0
  391. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold.hinted.json +125 -0
  392. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold.metrics.json +221 -0
  393. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold.rows.json +8 -0
  394. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.hinted.json +125 -0
  395. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.metrics.json +221 -0
  396. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.rows.json +8 -0
  397. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold.hinted.json +125 -0
  398. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold.metrics.json +221 -0
  399. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold.rows.json +8 -0
  400. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-italic.hinted.json +124 -0
  401. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-italic.metrics.json +221 -0
  402. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-italic.rows.json +8 -0
  403. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-regular.hinted.json +125 -0
  404. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-regular.metrics.json +221 -0
  405. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-regular.rows.json +8 -0
  406. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-italic.hinted.json +125 -0
  407. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-italic.metrics.json +221 -0
  408. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-italic.rows.json +8 -0
  409. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.hinted.json +125 -0
  410. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.metrics.json +221 -0
  411. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.rows.json +8 -0
  412. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.hinted.json +125 -0
  413. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.metrics.json +221 -0
  414. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.rows.json +8 -0
  415. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.hinted.json +125 -0
  416. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.metrics.json +221 -0
  417. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.rows.json +8 -0
  418. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.hinted.json +125 -0
  419. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.metrics.json +221 -0
  420. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.rows.json +8 -0
  421. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-regular.hinted.json +125 -0
  422. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-regular.metrics.json +221 -0
  423. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-regular.rows.json +8 -0
  424. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold-italic.hinted.json +125 -0
  425. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold-italic.metrics.json +139 -0
  426. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold-italic.rows.json +8 -0
  427. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold.hinted.json +125 -0
  428. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold.metrics.json +139 -0
  429. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold.rows.json +8 -0
  430. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-italic.hinted.json +125 -0
  431. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-italic.metrics.json +139 -0
  432. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-italic.rows.json +8 -0
  433. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-regular.hinted.json +125 -0
  434. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-regular.metrics.json +139 -0
  435. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-regular.rows.json +8 -0
  436. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold-italic.hinted.json +122 -0
  437. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold-italic.metrics.json +137 -0
  438. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold-italic.rows.json +8 -0
  439. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold.hinted.json +122 -0
  440. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold.metrics.json +137 -0
  441. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold.rows.json +8 -0
  442. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-italic.hinted.json +121 -0
  443. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-italic.metrics.json +137 -0
  444. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-italic.rows.json +8 -0
  445. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-regular.hinted.json +121 -0
  446. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-regular.metrics.json +137 -0
  447. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-regular.rows.json +8 -0
  448. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold-italic.hinted.json +105 -0
  449. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold-italic.metrics.json +66 -0
  450. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold-italic.rows.json +8 -0
  451. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold.hinted.json +108 -0
  452. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold.metrics.json +66 -0
  453. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold.rows.json +8 -0
  454. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-italic.hinted.json +102 -0
  455. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-italic.metrics.json +66 -0
  456. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-italic.rows.json +8 -0
  457. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-regular.hinted.json +110 -0
  458. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-regular.metrics.json +66 -0
  459. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-regular.rows.json +8 -0
  460. package/screenshot-page/resources/fonts/@sheetxl/sdk/contents.json +646 -0
  461. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.hinted.json +11 -0
  462. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.metrics.json +143 -0
  463. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.rows.json +8 -0
  464. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold.hinted.json +11 -0
  465. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold.metrics.json +143 -0
  466. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold.rows.json +8 -0
  467. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-italic.hinted.json +11 -0
  468. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-italic.metrics.json +143 -0
  469. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-italic.rows.json +8 -0
  470. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-regular.hinted.json +11 -0
  471. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-regular.metrics.json +143 -0
  472. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-regular.rows.json +8 -0
  473. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.hinted.json +125 -0
  474. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.metrics.json +141 -0
  475. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.rows.json +8 -0
  476. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold.hinted.json +125 -0
  477. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold.metrics.json +141 -0
  478. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold.rows.json +8 -0
  479. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-italic.hinted.json +125 -0
  480. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-italic.metrics.json +143 -0
  481. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-italic.rows.json +8 -0
  482. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-regular.hinted.json +125 -0
  483. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-regular.metrics.json +141 -0
  484. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-regular.rows.json +8 -0
  485. package/screenshot-page/resources/locales/@sheetxl/formulas/contents.json +9 -0
  486. package/screenshot-page/resources/locales/@sheetxl/formulas/de/functions.json +298 -0
  487. package/screenshot-page/resources/locales/@sheetxl/formulas-extended/contents.json +9 -0
  488. package/screenshot-page/resources/locales/@sheetxl/formulas-extended/de/functions.json +59 -0
  489. package/screenshot-page/resources/locales/@sheetxl/sdk/contents.json +19 -0
  490. package/screenshot-page/resources/locales/@sheetxl/sdk/de/grammar.json +16 -0
  491. package/screenshot-page/resources/locales/@sheetxl/sdk/de/model.msg.json +710 -0
  492. package/screenshot-page/resources/locales/@sheetxl/sdk/en/model.msg.json +732 -0
  493. package/types/index.d.ts +1 -0
  494. package/types/lib.d.ts +2 -0
  495. package/types/scripting-api.json +10855 -0
  496. package/types/scripting-enums.json +1339 -0
  497. package/types/scripting.d.ts +49295 -0
  498. package/types/src/SessionRegistry.d.ts +630 -0
  499. package/types/src/index.d.ts +3 -0
  500. package/types/src/instances.d.ts +104 -0
  501. package/types/src/lib/Types.d.ts +17 -0
  502. package/types/src/lib/index.d.ts +2 -0
  503. package/types/src/lib/runReport.d.ts +158 -0
  504. package/types/src/lib.d.ts +2 -0
  505. package/types/src/prepareRun.d.ts +56 -0
  506. package/types/src/relay.d.ts +102 -0
  507. package/types/src/screenshot.d.ts +23 -0
  508. package/types/src/server.d.ts +37 -0
  509. package/types/src/taskStore.d.ts +28 -0
@@ -0,0 +1,57 @@
1
+ import{i as e}from"./BcOdl17EeFSxnAiq.js";import{$t as t,A as n,Ai as r,Br as i,Cr as a,Dn as o,Dt as s,Hi as c,Nn as l,Nt as u,Q as d,Qn as f,Ri as p,Vt as m,Wn as h,Yr as g,_,bi as v,ct as y,hr as ee,ir as b,it as x,pn as te,rn as S,s as C,sn as w,vn as ne,w as T,wi as re,yt as E}from"./D66vSE1ConAuENmB.js";function D(e){console&&console.error&&console.error(`Error: ${e}`)}function O(e){console&&console.warn&&console.warn(`Warning: ${e}`)}function ie(e){let t=new Date().getTime(),n=e();return{time:new Date().getTime()-t,value:n}}function ae(e){function t(){}t.prototype=e;let n=new t;function r(){return typeof n.bar}return r(),r(),e}var k=class{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach(t=>{t.accept(e)})}},A=class extends k{constructor(e){super([]),this.idx=1,Object.assign(this,B(e))}set definition(e){}get definition(){return this.referencedRule===void 0?[]:this.referencedRule.definition}accept(e){e.visit(this)}},j=class extends k{constructor(e){super(e.definition),this.orgText=``,Object.assign(this,B(e))}},M=class extends k{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Object.assign(this,B(e))}},N=class extends k{constructor(e){super(e.definition),this.idx=1,Object.assign(this,B(e))}},P=class extends k{constructor(e){super(e.definition),this.idx=1,Object.assign(this,B(e))}},F=class extends k{constructor(e){super(e.definition),this.idx=1,Object.assign(this,B(e))}},I=class extends k{constructor(e){super(e.definition),this.idx=1,Object.assign(this,B(e))}},L=class extends k{constructor(e){super(e.definition),this.idx=1,Object.assign(this,B(e))}},R=class extends k{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,Object.assign(this,B(e))}},z=class{constructor(e){this.idx=1,Object.assign(this,B(e))}accept(e){e.visit(this)}};function oe(e){function t(e){return e.map(oe)}if(e instanceof A){let t={type:`NonTerminal`,name:e.nonTerminalName,idx:e.idx};return typeof e.label==`string`&&(t.label=e.label),t}if(e instanceof M)return{type:`Alternative`,definition:t(e.definition)};if(e instanceof N)return{type:`Option`,idx:e.idx,definition:t(e.definition)};if(e instanceof P)return{type:`RepetitionMandatory`,idx:e.idx,definition:t(e.definition)};if(e instanceof F)return{type:`RepetitionMandatoryWithSeparator`,idx:e.idx,separator:oe(new z({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof L)return{type:`RepetitionWithSeparator`,idx:e.idx,separator:oe(new z({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof I)return{type:`Repetition`,idx:e.idx,definition:t(e.definition)};if(e instanceof R)return{type:`Alternation`,idx:e.idx,definition:t(e.definition)};if(e instanceof z){let t={type:`Terminal`,name:e.terminalType.name,label:(n=e.terminalType,typeof(r=n).LABEL==`string`&&r.LABEL!==``?n.LABEL:n.name),idx:e.idx};typeof e.label==`string`&&(t.terminalLabel=e.label);let i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(t.pattern=i instanceof RegExp?i.source:i),t}if(e instanceof j)return{type:`Rule`,name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error(`non exhaustive match`);var n,r}function B(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0))}var V=class{visit(e){let t=e;switch(t.constructor){case A:return this.visitNonTerminal(t);case M:return this.visitAlternative(t);case N:return this.visitOption(t);case P:return this.visitRepetitionMandatory(t);case F:return this.visitRepetitionMandatoryWithSeparator(t);case L:return this.visitRepetitionWithSeparator(t);case I:return this.visitRepetition(t);case R:return this.visitAlternation(t);case z:return this.visitTerminal(t);case j: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 se(e,t=[]){return e instanceof N||e instanceof I||e instanceof L||(e instanceof R?e.definition.some(e=>se(e,t)):!(e instanceof A&&t.includes(e))&&e instanceof k&&(e instanceof A&&t.push(e),e.definition.every(e=>se(e,t))))}function H(e){if(e instanceof A)return`SUBRULE`;if(e instanceof N)return`OPTION`;if(e instanceof R)return`OR`;if(e instanceof P)return`AT_LEAST_ONE`;if(e instanceof F)return`AT_LEAST_ONE_SEP`;if(e instanceof L)return`MANY_SEP`;if(e instanceof I)return`MANY`;if(e instanceof z)return`CONSUME`;throw Error(`non exhaustive match`)}var ce=class{walk(e,t=[]){e.definition.forEach((n,r)=>{let i=e.definition.slice(r+1);if(n instanceof A)this.walkProdRef(n,i,t);else if(n instanceof z)this.walkTerminal(n,i,t);else if(n instanceof M)this.walkFlat(n,i,t);else if(n instanceof N)this.walkOption(n,i,t);else if(n instanceof P)this.walkAtLeastOne(n,i,t);else if(n instanceof F)this.walkAtLeastOneSep(n,i,t);else if(n instanceof L)this.walkManySep(n,i,t);else if(n instanceof I)this.walkMany(n,i,t);else{if(!(n instanceof R))throw Error(`non exhaustive match`);this.walkOr(n,i,t)}})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){let r=t.concat(n);this.walk(e,r)}walkOption(e,t,n){let r=t.concat(n);this.walk(e,r)}walkAtLeastOne(e,t,n){let r=[new N({definition:e.definition})].concat(t,n);this.walk(e,r)}walkAtLeastOneSep(e,t,n){let r=le(e,t,n);this.walk(e,r)}walkMany(e,t,n){let r=[new N({definition:e.definition})].concat(t,n);this.walk(e,r)}walkManySep(e,t,n){let r=le(e,t,n);this.walk(e,r)}walkOr(e,t,n){let r=t.concat(n);e.definition.forEach(e=>{let t=new M({definition:[e]});this.walk(t,r)})}};function le(e,t,n){return[new N({definition:[new z({terminalType:e.separator})].concat(e.definition)})].concat(t,n)}function ue(e){if(e instanceof A)return ue(e.referencedRule);if(e instanceof z)return[e.terminalType];if(function(e){return e instanceof M||e instanceof N||e instanceof I||e instanceof P||e instanceof F||e instanceof L||e instanceof z||e instanceof j}(e))return function(e){let t=[],n=e.definition,r,i=0,a=n.length>i,o=!0;for(;a&&o;)r=n[i],o=se(r),t=t.concat(ue(r)),i+=1,a=n.length>i;return[...new Set(t)]}(e);if(function(e){return e instanceof R}(e))return function(e){let t=e.definition.map(e=>ue(e));return[...new Set(t.flat())]}(e);throw Error(`non exhaustive match`)}var de=`_~IN~_`,fe=class extends ce{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){let r=(i=e.referencedRule,a=e.idx,i.name+a+de+this.topProd.name);var i,a;let o=ue(new M({definition:t.concat(n)}));this.follows[r]=o}};function U(e){return e.charCodeAt(0)}function pe(e,t){Array.isArray(e)?e.forEach(function(e){t.push(e)}):t.push(e)}function W(e,t){if(!0===e[t])throw`duplicate flag `+t;e[t],e[t]=!0}function G(e){if(e===void 0)throw Error(`Internal Error - Should never get here!`);return!0}function me(){throw Error(`Internal Error - Should never get here!`)}function he(e){return e.type===`Character`}var ge=[];for(let e=U(`0`);e<=U(`9`);e++)ge.push(e);var _e=[U(`_`)].concat(ge);for(let e=U(`a`);e<=U(`z`);e++)_e.push(e);for(let e=U(`A`);e<=U(`Z`);e++)_e.push(e);var ve=[U(` `),U(`\f`),U(`
2
+ `),U(`\r`),U(` `),U(`\v`),U(` `),U(`\xA0`),U(` `),U(` `),U(` `),U(` `),U(` `),U(` `),U(` `),U(` `),U(` `),U(` `),U(` `),U(` `),U(`\u2028`),U(`\u2029`),U(` `),U(` `),U(` `),U(``)],ye=/[0-9a-fA-F]/,be=/[0-9]/,xe=/[1-9]/,Se=class{visitChildren(e){for(let t in e){let n=e[t];e.hasOwnProperty(t)&&(n.type===void 0?Array.isArray(n)&&n.forEach(e=>{this.visit(e)},this):this.visit(n))}}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)}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){}},Ce={},we=new class{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(`/`);let t=this.disjunction();this.consumeChar(`/`);let n={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`:W(n,`global`);break;case`i`:W(n,`ignoreCase`);break;case`m`:W(n,`multiLine`);break;case`u`:W(n,`unicode`);break;case`y`:W(n,`sticky`)}if(this.idx!==this.input.length)throw Error(`Redundant input: `+this.input.substring(this.idx));return{type:`Pattern`,flags:n,value:t,loc:this.loc(0)}}disjunction(){let 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(){let 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(){let 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`(`:let t;switch(this.consumeChar(`?`),this.popChar()){case`=`:t=`Lookahead`;break;case`!`:t=`NegativeLookahead`;break;case`<`:switch(this.popChar()){case`=`:t=`Lookbehind`;break;case`!`:t=`NegativeLookbehind`}}G(t);let n=this.disjunction();return this.consumeChar(`)`),{type:t,value:n,loc:this.loc(e)}}return me()}quantifier(e=!1){let t,n=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`{`:let n=this.integerIncludingZero();switch(this.popChar()){case`}`:t={atLeast:n,atMost:n};break;case`,`:let e;this.isDigit()?(e=this.integerIncludingZero(),t={atLeast:n,atMost:e}):t={atLeast:n,atMost:1/0},this.consumeChar(`}`)}if(!0===e&&t===void 0)return;G(t)}if(!0!==e||t!==void 0)return G(t)?(this.peekChar(0)===`?`?(this.consumeChar(`?`),t.greedy=!1):t.greedy=!0,t.type=`Quantifier`,t.loc=this.loc(n),t):void 0}atom(){let e,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()}return e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),G(e)?(e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):me()}dotAll(){return this.consumeChar(`.`),{type:`Set`,complement:!0,value:[U(`
3
+ `),U(`\r`),U(`\u2028`),U(`\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=ge;break;case`D`:e=ge,t=!0;break;case`s`:e=ve;break;case`S`:e=ve,t=!0;break;case`w`:e=_e;break;case`W`:e=_e,t=!0}return G(e)?{type:`Set`,value:e,complement:t}:me()}controlEscapeAtom(){let e;switch(this.popChar()){case`f`:e=U(`\f`);break;case`n`:e=U(`
4
+ `);break;case`r`:e=U(`\r`);break;case`t`:e=U(` `);break;case`v`:e=U(`\v`)}return G(e)?{type:`Character`,value:e}:me()}controlLetterEscapeAtom(){this.consumeChar(`c`);let e=this.popChar();if(!1===/[a-zA-Z]/.test(e))throw Error(`Invalid `);return{type:`Character`,value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar(`0`),{type:`Character`,value:U(`\0`)}}hexEscapeSequenceAtom(){return this.consumeChar(`x`),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar(`u`),this.parseHexDigits(4)}identityEscapeAtom(){return{type:`Character`,value:U(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case`
5
+ `:case`\r`:case`\u2028`:case`\u2029`:case`\\`:case`]`:throw Error(`TBD`);default:return{type:`Character`,value:U(this.popChar())}}}characterClass(){let e=[],t=!1;for(this.consumeChar(`[`),this.peekChar(0)===`^`&&(this.consumeChar(`^`),t=!0);this.isClassAtom();){let t=this.classAtom();if(t.type,he(t)&&this.isRangeDash()){this.consumeChar(`-`);let n=this.classAtom();if(n.type,he(n)){if(n.value<t.value)throw Error(`Range out of order in character class`);e.push({from:t.value,to:n.value})}else pe(t.value,e),e.push(U(`-`)),pe(n.value,e)}else pe(t.value,e)}return this.consumeChar(`]`),{type:`Set`,complement:t,value:e}}classAtom(){switch(this.peekChar()){case`]`:case`
6
+ `: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:U(`\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;this.consumeChar(`(`),this.peekChar(0)===`?`?(this.consumeChar(`?`),this.consumeChar(`:`),e=!1):this.groupIdx++;let t=this.disjunction();this.consumeChar(`)`);let n={type:`Group`,capturing:e,value:t};return e&&(n.idx=this.groupIdx),n}positiveInteger(){let e=this.popChar();if(!1===xe.test(e))throw Error(`Expecting a positive integer`);for(;be.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}integerIncludingZero(){let e=this.popChar();if(!1===be.test(e))throw Error(`Expecting an integer`);for(;be.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}patternCharacter(){let e=this.popChar();switch(e){case`
7
+ `: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:U(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 be.test(this.peekChar(0))}isClassAtom(e=0){switch(this.peekChar(e)){case`]`:case`
8
+ `: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(){let 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`
9
+ `:case`\r`:case`\u2028`:case`\u2029`:return!1;default:return!0}}parseHexDigits(e){let t=``;for(let n=0;n<e;n++){let e=this.popChar();if(!1===ye.test(e))throw Error(`Expecting a HexDecimal digits`);t+=e}return{type:`Character`,value:parseInt(t,16)}}peekChar(e=0){return this.input[this.idx+e]}popChar(){let 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}}};function Te(e){let t=e.toString();if(Ce.hasOwnProperty(t))return Ce[t];{let e=we.pattern(t);return Ce[t]=e,e}}var Ee=`Complement Sets are not supported for first char optimization`,De=`Unable to use "first char" lexer optimizations:
10
+ `;function Oe(e,t=!1){try{let t=Te(e);return ke(t.value,{},t.flags.ignoreCase)}catch(n){if(n.message===Ee)t&&O(`${De}\tUnable to optimize: < ${e.toString()} >\n\tComplement Sets cannot be automatically optimized.\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let n=``;t&&(n=`
11
+ This will disable the lexer's first char optimizations.
12
+ See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),D(`${De}\n\tFailed parsing: < ${e.toString()} >\n\tUsing the @chevrotain/regexp-to-ast library\n\tPlease open an issue at: https://github.com/chevrotain/chevrotain/issues`+n)}}return[]}function ke(e,t,n){switch(e.type){case`Disjunction`:for(let r=0;r<e.value.length;r++)ke(e.value[r],t,n);break;case`Alternative`:let r=e.value;for(let e=0;e<r.length;e++){let i=r[e];switch(i.type){case`EndAnchor`:case`GroupBackReference`:case`Lookahead`:case`NegativeLookahead`:case`Lookbehind`:case`NegativeLookbehind`:case`StartAnchor`:case`WordBoundary`:case`NonWordBoundary`:continue}let a=i;switch(a.type){case`Character`:Ae(a.value,t,n);break;case`Set`:if(!0===a.complement)throw Error(Ee);a.value.forEach(e=>{if(typeof e==`number`)Ae(e,t,n);else{let r=e;if(!0===n)for(let e=r.from;e<=r.to;e++)Ae(e,t,n);else{for(let e=r.from;e<=r.to&&e<256;e++)Ae(e,t,n);if(r.to>=256){let e=r.from>=256?r.from:256,n=r.to,i=K(e),a=K(n);for(let e=i;e<=a;e++)t[e]=e}}}});break;case`Group`:ke(a.value,t,n);break;default:throw Error(`Non Exhaustive Match`)}let o=a.quantifier!==void 0&&a.quantifier.atLeast===0;if(a.type===`Group`&&!1===Me(a)||a.type!==`Group`&&!1===o)break}break;default:throw Error(`non exhaustive match!`)}return Object.values(t)}function Ae(e,t,n){let r=K(e);t[r]=r,!0===n&&function(e,t){let n=String.fromCharCode(e),r=n.toUpperCase();if(r!==n){let e=K(r.charCodeAt(0));t[e]=e}else{let e=n.toLowerCase();if(e!==n){let n=K(e.charCodeAt(0));t[n]=n}}}(e,t)}function je(e,t){return e.value.find(e=>{if(typeof e==`number`)return t.includes(e);{let n=e;return t.find(e=>n.from<=e&&e<=n.to)!==void 0}})}function Me(e){let t=e.quantifier;return!(!t||t.atLeast!==0)||!!e.value&&(Array.isArray(e.value)?e.value.every(Me):Me(e.value))}var Ne=class extends Se{constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(!0!==this.found){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){this.targetCharCodes.includes(e.value)&&(this.found=!0)}visitSet(e){e.complement?je(e,this.targetCharCodes)===void 0&&(this.found=!0):je(e,this.targetCharCodes)!==void 0&&(this.found=!0)}};function Pe(e,t){if(t instanceof RegExp){let n=Te(t),r=new Ne(e);return r.visit(n),r.found}for(let n of t){let t=n.charCodeAt(0);if(e.includes(t))return!0}return!1}var Fe=`PATTERN`,Ie=`defaultMode`;function Le(e,t){let n=(t=Object.assign({safeMode:!1,positionTracking:`full`,lineTerminatorCharacters:[`\r`,`
13
+ `],tracer:(e,t)=>t()},t)).tracer,r;n(`initCharCodeToOptimizedIndexMap`,()=>{(function(){if(Ye.length===0){Ye=Array(65536);for(let e=0;e<65536;e++)Ye[e]=e>255?255+~~(e/255):e}})()}),n(`Reject Lexer.NA`,()=>{r=e.filter(e=>e[Fe]!==J.NA)});let i,a,o,s,c,l,u,d,f,p,m,h=!1;n(`Transform Patterns`,()=>{h=!1,i=r.map(e=>{let t=e[Fe];if(t instanceof RegExp){let e=t.source;return e.length!==1||e===`^`||e===`$`||e===`.`||t.ignoreCase?e.length!==2||e[0]!==`\\`||[`d`,`D`,`s`,`S`,`t`,`r`,`n`,`t`,`0`,`c`,`b`,`B`,`f`,`v`,`w`,`W`].includes(e[1])?Ve(t):e[1]:e}if(typeof t==`function`)return h=!0,{exec:t};if(typeof t==`object`)return h=!0,t;if(typeof t==`string`){if(t.length===1)return t;{let e=t.replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`);return Ve(new RegExp(e))}}throw Error(`non exhaustive match`)})}),n(`misc mapping`,()=>{a=r.map(e=>e.tokenTypeIdx),o=r.map(e=>{let t=e.GROUP;if(t!==J.SKIPPED){if(typeof t==`string`)return t;if(t===void 0)return!1;throw Error(`non exhaustive match`)}}),s=r.map(e=>{let t=e.LONGER_ALT;if(t)return Array.isArray(t)?t.map(e=>r.indexOf(e)):[r.indexOf(t)]}),c=r.map(e=>e.PUSH_MODE),l=r.map(e=>Object.hasOwn(e,`POP_MODE`))}),n(`Line Terminator Handling`,()=>{let e=qe(t.lineTerminatorCharacters);u=r.map(e=>!1),t.positionTracking!==`onlyOffset`&&(u=r.map(t=>Object.hasOwn(t,`LINE_BREAKS`)?!!t.LINE_BREAKS:!1===Ge(t,e)&&Pe(e,t.PATTERN)))}),n(`Misc Mapping #2`,()=>{d=r.map(He),f=i.map(Ue),p=r.reduce((e,t)=>{let n=t.GROUP;return typeof n==`string`&&n!==J.SKIPPED&&(e[n]=[]),e},{}),m=i.map((e,t)=>{let n=o[t]===void 0&&s[t]===void 0?function(e){if(!(e instanceof RegExp)||e.flags!==``)return;let t;try{t=Te(e)}catch{return}if(t.value.value.length!==1||t.value.value[0].value.length!==1)return;let n,r=t.value.value[0].value[0];for(;r.type===`Group`;){if(r.capturing||r.quantifier!==void 0&&n!==void 0||r.value.value.length!==1||r.value.value[0].value.length!==1)return;n=r.quantifier??n,r=r.value.value[0].value[0]}if(r.type!==`Set`||r.complement||r.quantifier!==void 0&&n!==void 0||(n=r.quantifier??n,n?.atLeast!==1||n.atMost!==1/0||!n.greedy))return;let i=new Uint8Array(128);for(let e of r.value){let t=typeof e==`number`?e:e.from,n=typeof e==`number`?e:e.to;if(t<0||n>=i.length)return;i.fill(1,t,n+1)}return i}(r[t].PATTERN):void 0;return{pattern:i[t],asciiClass:n,longerAlt:s[t],canLineTerminator:u[t],matchType:n===void 0?!1===f[t]?d[t]?1:2:0:3,short:f[t],group:o[t],push:c[t],pop:l[t],tokenTypeIdx:a[t],tokenType:r[t]}})});let g=!0,_=[];return t.safeMode||n(`First Char Optimization`,()=>{_=r.reduce((e,n,r)=>{if(typeof n.PATTERN==`string`)Je(e,K(n.PATTERN.charCodeAt(0)),m[r]);else if(Array.isArray(n.START_CHARS_HINT)){let t;n.START_CHARS_HINT.forEach(n=>{let i=K(typeof n==`string`?n.charCodeAt(0):n);t!==i&&(t=i,Je(e,i,m[r]))})}else if(n.PATTERN instanceof RegExp){if(n.PATTERN.unicode)g=!1,t.ensureOptimizations&&D(`${De}\tUnable to analyze < ${n.PATTERN.toString()} > pattern.\n\tThe regexp unicode flag is not currently supported by the regexp-to-ast library.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{let i=Oe(n.PATTERN,t.ensureOptimizations);i.length===0&&(g=!1),i.forEach(t=>{Je(e,t,m[r])})}}else t.ensureOptimizations&&D(`${De}\tTokenType: <${n.name}> is using a custom token pattern without providing <start_chars_hint> parameter.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),g=!1;return e},[])}),{emptyGroups:p,patternIdxToConfig:m,charCodeToPatternIdxToConfig:_,hasCustom:h,canBeOptimized:g}}function Re(e,t){let n=[],r=function(e){let t=e.filter(e=>!Object.hasOwn(e,Fe));return{errors:t.map(e=>({message:`Token Type: ->`+e.name+`<- missing static 'PATTERN' property`,type:q.MISSING_PATTERN,tokenTypes:[e]})),valid:e.filter(e=>!t.includes(e))}}(e);n=n.concat(r.errors);let i=function(e){let t=e.filter(e=>{let t=e[Fe];return!(t instanceof RegExp||typeof t==`function`||Object.hasOwn(t,`exec`)||typeof t==`string`)});return{errors:t.map(e=>({message:`Token Type: ->`+e.name+`<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.`,type:q.INVALID_PATTERN,tokenTypes:[e]})),valid:e.filter(e=>!t.includes(e))}}(r.valid),a=i.valid;return n=n.concat(i.errors),n=n.concat(function(e){let t=[],n=e.filter(e=>e[Fe]instanceof RegExp);return t=t.concat(function(e){class t extends Se{constructor(){super(...arguments),this.found=!1}visitEndAnchor(e){this.found=!0}}return e.filter(e=>{let n=e.PATTERN;try{let e=Te(n),r=new t;return r.visit(e),r.found}catch{return ze.test(n.source)}}).map(e=>({message:`Unexpected RegExp Anchor Error:
14
+ Token Type: ->`+e.name+`<- static 'PATTERN' cannot contain end of input anchor '$'
15
+ See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:q.EOI_ANCHOR_FOUND,tokenTypes:[e]}))}(n)),t=t.concat(function(e){class t extends Se{constructor(){super(...arguments),this.found=!1}visitStartAnchor(e){this.found=!0}}return e.filter(e=>{let n=e.PATTERN;try{let e=Te(n),r=new t;return r.visit(e),r.found}catch{return Be.test(n.source)}}).map(e=>({message:`Unexpected RegExp Anchor Error:
16
+ Token Type: ->`+e.name+`<- static 'PATTERN' cannot contain start of input anchor '^'
17
+ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:q.SOI_ANCHOR_FOUND,tokenTypes:[e]}))}(n)),t=t.concat(function(e){return e.filter(e=>{let t=e[Fe];return t instanceof RegExp&&(t.multiline||t.global)}).map(e=>({message:`Token Type: ->`+e.name+`<- static 'PATTERN' may NOT contain global('g') or multiline('m')`,type:q.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]}))}(n)),t=t.concat(function(e){let t=[],n=e.map(n=>e.reduce((e,r)=>(n.PATTERN.source!==r.PATTERN.source||t.includes(r)||r.PATTERN===J.NA||(t.push(r),e.push(r)),e),[]));return n=n.filter(Boolean),n.filter(e=>e.length>1).map(e=>{let t=e.map(e=>e.name);return{message:`The same RegExp pattern ->${e[0].PATTERN}<-has been used in all of the following Token Types: ${t.join(`, `)} <-`,type:q.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}})}(n)),t=t.concat(function(e){return e.filter(e=>e.PATTERN.test(``)).map(e=>({message:`Token Type: ->`+e.name+`<- static 'PATTERN' must not match an empty string`,type:q.EMPTY_MATCH_PATTERN,tokenTypes:[e]}))}(n)),t}(a)),n=n.concat(function(e){return e.filter(e=>{if(!Object.hasOwn(e,`GROUP`))return!1;let t=e.GROUP;return t!==J.SKIPPED&&t!==J.NA&&typeof t!=`string`}).map(e=>({message:`Token Type: ->`+e.name+`<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String`,type:q.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]}))}(a)),n=n.concat(function(e,t){return e.filter(e=>e.PUSH_MODE!==void 0&&!t.includes(e.PUSH_MODE)).map(e=>({message:`Token Type: ->${e.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${e.PUSH_MODE}<-which does not exist`,type:q.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}))}(a,t)),n=n.concat(function(e){let t=[],n=e.reduce((e,t,n)=>{let r=t.PATTERN;return r===J.NA||(typeof r==`string`?e.push({str:r,idx:n,tokenType:t}):r instanceof RegExp&&(i=r,[`.`,`\\`,`[`,`]`,`|`,`^`,`$`,`(`,`)`,`?`,`*`,`+`,`{`].find(e=>i.source.indexOf(e)!==-1)===void 0)&&e.push({str:r.source,idx:n,tokenType:t})),e;var i},[]);return e.forEach((e,r)=>{n.forEach(({str:n,idx:i,tokenType:a})=>{if(r<i&&function(e,t){if(t instanceof RegExp){if(/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\?<!)/.test(t.source))return!1;let n=t.exec(e);return n!==null&&n.index===0}if(typeof t==`function`)return t(e,0,[],{});if(Object.hasOwn(t,`exec`))return t.exec(e,0,[],{});if(typeof t==`string`)return t===e;throw Error(`non exhaustive match`)}(n,e.PATTERN)){let n=`Token: ->${a.name}<- can never be matched.\nBecause it appears AFTER the Token Type ->${e.name}<-in the lexer's definition.\nSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:n,type:q.UNREACHABLE_PATTERN,tokenTypes:[e,a]})}})}),t}(a)),n}var ze=/[^\\][$]/,Be=/[^\\[][\^]|^\^/;function Ve(e){let t=e.ignoreCase?`iy`:`y`;return RegExp(`${e.source}`,t)}function He(e){let t=e.PATTERN;if(t instanceof RegExp)return!1;if(typeof t==`function`||Object.hasOwn(t,`exec`))return!0;if(typeof t==`string`)return!1;throw Error(`non exhaustive match`)}function Ue(e){return typeof e==`string`&&e.length===1&&e.charCodeAt(0)}var We={test:function(e){let t=e.length;for(let n=this.lastIndex;n<t;n++){let t=e.charCodeAt(n);if(t===10)return this.lastIndex=n+1,!0;if(t===13)return this.lastIndex=e.charCodeAt(n+1)===10?n+2:n+1,!0}return!1},lastIndex:0};function Ge(e,t){if(Object.hasOwn(e,`LINE_BREAKS`))return!1;if(e.PATTERN instanceof RegExp){try{Pe(t,e.PATTERN)}catch(e){return{issue:q.IDENTIFY_TERMINATOR,errMsg:e.message}}return!1}if(typeof e.PATTERN==`string`)return!1;if(He(e))return{issue:q.CUSTOM_LINE_BREAK};throw Error(`non exhaustive match`)}function Ke(e,t){if(t.issue===q.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.\n\tThe problem is in the <${e.name}> Token Type\n\t Root cause: ${t.errMsg}.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===q.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.\n\tThe problem is in the <${e.name}> Token Type\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error(`non exhaustive match`)}function qe(e){return e.map(e=>typeof e==`string`?e.charCodeAt(0):e)}function Je(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}var Ye=[];function K(e){return e<256?e:Ye[e]}function Xe(e,t){let n=e.tokenTypeIdx;return n===t.tokenTypeIdx||!0===t.isParent&&!0===t.categoryMatchesMap[n]}function Ze(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}var Qe=1,$e={};function et(e){let t=function(e){let t=[...e],n=e,r=!0;for(;r;){n=n.map(e=>e.CATEGORIES).flat().filter(Boolean);let e=n.filter(e=>!t.includes(e));t=t.concat(e),e.length===0?r=!1:n=e}return t}(e);(function(e){e.forEach(e=>{var t;nt(e)||($e[Qe]=e,e.tokenTypeIdx=Qe++),rt(e)&&!Array.isArray(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),rt(e)||(e.CATEGORIES=[]),t=e,Object.hasOwn(t??{},`categoryMatches`)||(e.categoryMatches=[]),function(e){return Object.hasOwn(e??{},`categoryMatchesMap`)}(e)||(e.categoryMatchesMap={})})})(t),function(e){e.forEach(e=>{tt([],e)})}(t),function(e){e.forEach(e=>{e.categoryMatches=[],Object.keys(e.categoryMatchesMap).forEach(t=>{e.categoryMatches.push($e[t].tokenTypeIdx)})})}(t),t.forEach(e=>{e.isParent=e.categoryMatches.length>0})}function tt(e,t){e.forEach(e=>{t.categoryMatchesMap[e.tokenTypeIdx]=!0}),t.CATEGORIES.forEach(n=>{let r=e.concat(t);r.includes(n)||tt(r,n)})}function nt(e){return Object.hasOwn(e??{},`tokenTypeIdx`)}function rt(e){return Object.hasOwn(e??{},`CATEGORIES`)}function it(e){return Object.hasOwn(e??{},`tokenTypeIdx`)}var q,at={buildUnableToPopLexerModeMessage:e=>`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`,buildUnexpectedCharactersMessage:(e,t,n,r,i,a)=>`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${n} characters.`};(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`})(q||={});var ot={deferDefinitionErrorsHandling:!1,positionTracking:`full`,lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
18
+ `,`\r`],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:at,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(ot);var J=class{constructor(e,t=ot){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.cachedGroupKeys=[],this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(e,t)=>{if(!0===this.traceInitPerf){this.traceInitIndent++;let n=Array(this.traceInitIndent+1).join(` `);this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${n}--\x3e <${e}>`);let{time:r,value:i}=ie(t),a=r>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&a(`${n}<-- <${e}> time: ${r}ms`),this.traceInitIndent--,i}return t()},typeof t==`boolean`)throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
19
+ a boolean 2nd argument is no longer supported`);this.config=Object.assign({},ot,t);let n=this.config.traceInitPerf;!0===n?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof n==`number`&&(this.traceInitMaxIdent=n,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT(`Lexer Constructor`,()=>{let n,r=!0;this.TRACE_INIT(`Lexer Config handling`,()=>{if(this.config.lineTerminatorsPattern===ot.lineTerminatorsPattern)this.config.lineTerminatorsPattern=We;else if(this.config.lineTerminatorCharacters===ot.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
20
+ 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),Array.isArray(e)?n={modes:{defaultMode:[...e]},defaultMode:Ie}:(r=!1,n=Object.assign({},e))}),!1===this.config.skipValidations&&(this.TRACE_INIT(`performRuntimeChecks`,()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(function(e){let t=[];return Object.hasOwn(e,`defaultMode`)||t.push({message:`A MultiMode Lexer cannot be initialized without a <defaultMode> property in its definition
21
+ `,type:q.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Object.hasOwn(e,`modes`)||t.push({message:`A MultiMode Lexer cannot be initialized without a <modes> property in its definition
22
+ `,type:q.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Object.hasOwn(e,`modes`)&&Object.hasOwn(e,`defaultMode`)&&!Object.hasOwn(e.modes,e.defaultMode)&&t.push({message:`A MultiMode Lexer cannot be initialized with a ${Ie}: <${e.defaultMode}>which does not exist\n`,type:q.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Object.hasOwn(e,`modes`)&&Object.keys(e.modes).forEach(n=>{let r=e.modes[n];r.forEach((e,i)=>{e===void 0?t.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${n}> at index: <${i}>\n`,type:q.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED}):Object.hasOwn(e,`LONGER_ALT`)&&(Array.isArray(e.LONGER_ALT)?e.LONGER_ALT:[e.LONGER_ALT]).forEach(i=>{i===void 0||r.includes(i)||t.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${i.name}> on token <${e.name}> outside of mode <${n}>\n`,type:q.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})})}),t}(n,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT(`performWarningRuntimeChecks`,()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(function(e,t,n){let r=[],i=!1,a=Object.values(e.modes||{}).flat().filter(Boolean).filter(e=>e[Fe]!==J.NA),o=qe(n);return t&&a.forEach(e=>{let t=Ge(e,o);if(!1!==t){let n={message:Ke(e,t),type:t.issue,tokenType:e};r.push(n)}else Object.hasOwn(e,`LINE_BREAKS`)?!0===e.LINE_BREAKS&&(i=!0):Pe(o,e.PATTERN)&&(i=!0)}),t&&!i&&r.push({message:`Warning: No LINE_BREAKS Found.
23
+ This Lexer has been defined to track line and column information,
24
+ But none of the Token Types can be identified as matching a line terminator.
25
+ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS
26
+ for details.`,type:q.NO_LINE_BREAKS_FLAGS}),r}(n,this.trackStartLines,this.config.lineTerminatorCharacters))})),n.modes=n.modes?n.modes:{},Object.entries(n.modes).forEach(([e,t])=>{n.modes[e]=t.filter(e=>e!==void 0)});let i=Object.keys(n.modes);if(Object.entries(n.modes).forEach(([e,n])=>{this.TRACE_INIT(`Mode: <${e}> processing`,()=>{if(this.modes.push(e),!1===this.config.skipValidations&&this.TRACE_INIT(`validatePatterns`,()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(Re(n,i))}),this.lexerDefinitionErrors.length===0){let r;et(n),this.TRACE_INIT(`analyzeTokenTypes`,()=>{r=Le(n,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[e]=r.patternIdxToConfig,this.charCodeToPatternIdxToConfig[e]=r.charCodeToPatternIdxToConfig,this.emptyGroups=Object.assign({},this.emptyGroups,r.emptyGroups),this.hasCustom=r.hasCustom||this.hasCustom,this.canModeBeOptimized[e]=r.canBeOptimized}})}),this.defaultMode=n.defaultMode,this.cachedGroupKeys=Object.keys(this.emptyGroups),this.lexerDefinitionErrors.length>0&&!this.config.deferDefinitionErrorsHandling){let e=this.lexerDefinitionErrors.map(e=>e.message).join(`-----------------------
27
+ `);throw Error(`Errors detected in definition of Lexer:
28
+ `+e)}this.lexerDefinitionWarning.forEach(e=>{O(e.message)}),this.TRACE_INIT(`Choosing sub-methods implementations`,()=>{if(r&&(this.handleModes=()=>{}),!1===this.trackStartLines&&(this.computeNewColumn=e=>e),!1===this.trackEndLines&&(this.updateTokenEndLineColumnLocation=()=>{}),/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))throw Error(`Invalid <positionTracking> config option: "${this.config.positionTracking}"`);this.createTokenInstance=this.createOffsetOnlyToken}this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT(`Failed Optimization Warnings`,()=>{let e=Object.entries(this.canModeBeOptimized).reduce((e,[t,n])=>(!1===n&&e.push(t),e),[]);if(t.ensureOptimizations&&e.length>0)throw Error(`Lexer Modes: < ${e.join(`, `)} > cannot be optimized.\n\t Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.\n\t Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT(`clearRegExpParserCache`,()=>{Ce={}}),this.TRACE_INIT(`toFastProperties`,()=>{ae(this)})})}tokenize(e,t=this.defaultMode){if(this.lexerDefinitionErrors.length>0){let e=this.lexerDefinitionErrors.map(e=>e.message).join(`-----------------------
29
+ `);throw Error(`Unable to Tokenize because Errors detected in definition of Lexer:
30
+ `+e)}return this.tokenizeInternal(e,t)}tokenizeInternal(e,t){let n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_=e,v=_.length,y=0,ee=0,b=this.hasCustom?0:Math.floor(e.length/10),x=Array(b),te=[],S=this.trackStartLines?1:void 0,C=this.trackStartLines?1:void 0,w={};for(let e=0;e<this.cachedGroupKeys.length;e++)w[this.cachedGroupKeys[e]]=[];let ne=this.trackStartLines,T=this.config.lineTerminatorsPattern,re=0,E=[],D=[],O=[],ie=[];Object.freeze(ie);let ae=!1,k=e=>{if(O.length===1&&e.tokenType.PUSH_MODE===void 0){let t=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e);te.push({offset:e.startOffset,line:e.startLine,column:e.startColumn,length:e.image.length,message:t})}else{O.pop();let e=O.at(-1);E=this.patternIdxToConfig[e],D=this.charCodeToPatternIdxToConfig[e],re=E.length;let t=this.canModeBeOptimized[e]&&!1===this.config.safeMode;ae=!(!D||!t)}};function A(e){O.push(e),D=this.charCodeToPatternIdxToConfig[e],E=this.patternIdxToConfig[e],re=E.length;let t=this.canModeBeOptimized[e]&&!1===this.config.safeMode;ae=!(!D||!t)}let j;A.call(this,t);let M=this.config.recoveryEnabled;for(;y<v;){s=null,u=-1;let t=_.charCodeAt(y),b;if(ae){let e=K(t),n=D[e];b=n===void 0?ie:n}else b=E;let N=b.length;for(n=0;n<N;n++){j=b[n];let r=j.pattern;switch(c=null,j.matchType){case 0:t===j.short&&(u=1,s=r);break;case 1:g=r.exec(_,y,x,w),g===null?s=null:(s=g[0],u=s.length,g.payload!==void 0&&(c=g.payload));break;case 3:{let e=j.asciiClass;if(e[t]!==1){r.lastIndex=0;break}let n=y+1;for(;e[_.charCodeAt(n)]===1;)n++;u=n-y,r.lastIndex=n;break}case 2:r.lastIndex=y,u=this.matchLength(r,e,y)}if(u!==-1){if(o=j.longerAlt,o!==void 0){s=e.substring(y,y+u);let t=o.length;for(i=0;i<t;i++){let t=E[o[i]],n=t.pattern;if(l=null,t.matchType===1?(g=n.exec(_,y,x,w),g===null?a=null:(a=g[0],g.payload!==void 0&&(l=g.payload))):(n.lastIndex=y,a=this.match(n,e,y)),a&&a.length>s.length){s=a,u=a.length,c=l,j=t;break}}}break}}if(u!==-1){if(d=j.group,d!==void 0&&(s=s===null?e.substring(y,y+u):s,f=j.tokenTypeIdx,p=this.createTokenInstance(s,y,f,j.tokenType,S,C,u),this.handlePayload(p,c),!1===d?ee=this.addToken(x,ee,p):w[d].push(p)),!0===ne&&!0===j.canLineTerminator){let t,n,r=0;T.lastIndex=0;do s=s===null?e.substring(y,y+u):s,t=T.test(s),!0===t&&(n=T.lastIndex-1,r++);while(!0===t);r===0?C=this.computeNewColumn(C,u):(S+=r,C=u-n,this.updateTokenEndLineColumnLocation(p,d,n,r,S,C,u))}else C=this.computeNewColumn(C,u);y+=u,this.handleModes(j,k,A,p)}else{let t=y,n=S,i=C,a=!1===M;for(;!1===a&&y<v;)for(y++,r=0;r<re;r++){let t=E[r],n=t.pattern;switch(t.matchType){case 0:_.charCodeAt(y)===t.short&&(a=!0);break;case 1:a=n.exec(_,y,x,w)!==null;break;case 3:case 2:n.lastIndex=y,a=n.exec(e)!==null}if(!0===a)break}if(m=y-t,C=this.computeNewColumn(C,m),h=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(_,t,m,n,i,O.at(-1)),te.push({offset:t,line:n,column:i,length:m,message:h}),!1===M)break}}return this.hasCustom||(x.length=ee),{tokens:x,groups:w,errors:te}}handleModes(e,t,n,r){if(!0===e.pop){let i=e.push;t(r),i!==void 0&&n.call(this,i)}else e.push!==void 0&&n.call(this,e.push)}updateTokenEndLineColumnLocation(e,t,n,r,i,a,o){let s,c;t!==void 0&&(s=n===o-1,c=s?-1:0,r===1&&!0===s||(e.endLine=i+c,e.endColumn=a-1-c))}computeNewColumn(e,t){return e+t}createOffsetOnlyToken(e,t,n,r){return{image:e,startOffset:t,tokenTypeIdx:n,tokenType:r}}createStartOnlyToken(e,t,n,r,i,a){return{image:e,startOffset:t,startLine:i,startColumn:a,tokenTypeIdx:n,tokenType:r}}createFullToken(e,t,n,r,i,a,o){return{image:e,startOffset:t,endOffset:t+o-1,startLine:i,endLine:i,startColumn:a,endColumn:a+o-1,tokenTypeIdx:n,tokenType:r}}addTokenUsingPush(e,t,n){return e.push(n),t}addTokenUsingMemberAccess(e,t,n){return e[t]=n,++t}handlePayloadNoCustom(e,t){}handlePayloadWithCustom(e,t){t!==null&&(e.payload=t)}match(e,t,n){return!0===e.test(t)?t.substring(n,e.lastIndex):null}matchLength(e,t,n){return!0===e.test(t)?e.lastIndex-n:-1}};function st(e){return ct(e)?e.LABEL:e.name}function ct(e){return typeof e.LABEL==`string`&&e.LABEL!==``}J.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.`,J.NA=/NOT_APPLICABLE/;var lt=`parent`,ut=`categories`,dt=`label`,ft=`group`,pt=`push_mode`,mt=`pop_mode`,ht=`longer_alt`,gt=`line_breaks`,_t=`start_chars_hint`;function Y(e){return function(e){let t=e.pattern,n={};if(n.name=e.name,t!==void 0&&(n.PATTERN=t),Object.hasOwn(e,lt))throw`The parent property is no longer supported.
31
+ See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;return Object.hasOwn(e,ut)&&(n.CATEGORIES=e[ut]),et([n]),Object.hasOwn(e,dt)&&(n.LABEL=e[dt]),Object.hasOwn(e,ft)&&(n.GROUP=e[ft]),Object.hasOwn(e,mt)&&(n.POP_MODE=e[mt]),Object.hasOwn(e,pt)&&(n.PUSH_MODE=e[pt]),Object.hasOwn(e,ht)&&(n.LONGER_ALT=e[ht]),Object.hasOwn(e,gt)&&(n.LINE_BREAKS=e[gt]),Object.hasOwn(e,_t)&&(n.START_CHARS_HINT=e[_t]),n}(e)}var X=Y({name:`EOF`,pattern:J.NA});function vt(e,t,n,r,i,a,o,s){return{image:t,startOffset:n,endOffset:r,startLine:i,endLine:a,startColumn:o,endColumn:s,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}et([X]);var yt={buildMismatchTokenMessage:({expected:e,actual:t,previous:n,ruleName:r})=>`Expecting ${ct(e)?`--\x3e ${st(e)} <--`:`token of type --\x3e ${e.name} <--`} but found --\x3e '${t.image}' <--`,buildNotAllInputParsedMessage:({firstRedundant:e,ruleName:t})=>`Redundant input, expecting EOF but found: `+e.image,buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,previous:n,customUserDescription:r,ruleName:i}){let a=`
32
+ but found: '`+t[0].image+`'`;return r?`Expecting: `+r+a:`Expecting: one of these possible Token sequences:\n${e.reduce((e,t)=>e.concat(t),[]).map(e=>`[${e.map(e=>st(e)).join(`, `)}]`).map((e,t)=>` ${t+1}. ${e}`).join(`
33
+ `)}`+a},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:n,ruleName:r}){let i=`
34
+ but found: '`+t[0].image+`'`;return n?`Expecting: `+n+i:`Expecting: expecting at least one iteration which starts with one of these possible Token sequences::\n <${e.map(e=>`[${e.map(e=>st(e)).join(`,`)}]`).join(` ,`)}>`+i}};Object.freeze(yt);var bt={buildRuleNotFoundError:(e,t)=>`Invalid grammar, reference to a rule which is not defined: ->`+t.nonTerminalName+`<-
35
+ inside top level rule: ->`+e.name+`<-`},xt={buildDuplicateFoundError(e,t){let n=e.name,r=t[0],i=r.idx,a=H(r),o=(s=r)instanceof z?s.terminalType.name:s instanceof A?s.nonTerminalName:``;var s;let c=`->${a}${i>0?i:``}<- ${o?`with argument: ->${o}<-`:``}\n appears more than once (${t.length} times) in the top level rule: ->${n}<-. \n For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES \n `;return c=c.replace(/[ \t]+/g,` `),c=c.replace(/\s\s+/g,`
36
+ `),c},buildNamespaceConflictError:e=>`Namespace conflict found in grammar.\nThe grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>.\nTo resolve this make sure each Terminal and Non-Terminal names are unique\nThis is easy to accomplish by using the convention that Terminal names start with an uppercase letter\nand Non-Terminal names start with a lower case letter.`,buildAlternationPrefixAmbiguityError(e){let t=e.prefixPath.map(e=>st(e)).join(`, `),n=e.alternation.idx===0?``:e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(` ,`)}> due to common lookahead prefix\nin <OR${n}> inside <${e.topLevelRule.name}> Rule,\n<${t}> may appears as a prefix path in all these alternatives.\nSee: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\nFor Further details.`},buildAlternationAmbiguityError(e){let t=e.alternation.idx===0?``:e.alternation.idx,n=e.prefixPath.length===0,r=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(` ,`)}> in <OR${t}> inside <${e.topLevelRule.name}> Rule,\n`;return r+=n?`These alternatives are all empty (match no tokens), making them indistinguishable.
37
+ Only the last alternative may be empty.
38
+ `:`<${e.prefixPath.map(e=>st(e)).join(`, `)}> may appears as a prefix path in all these alternatives.\n`,r+=`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
39
+ For Further details.`,r},buildEmptyRepetitionError(e){let t=H(e.repetition);return e.repetition.idx!==0&&(t+=e.repetition.idx),`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens.\nThis could lead to an infinite loop.`},buildTokenNameError:e=>`deprecated`,buildEmptyAlternationError:e=>`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in <OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.\nOnly the last alternative may be an empty alternative.`,buildTooManyAlternativesError:e=>`An Alternation cannot have more than 256 alternatives:\n<OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.\n has ${e.alternation.definition.length+1} alternatives.`,buildLeftRecursionError(e){let t=e.topLevelRule.name;return`Left Recursion found in grammar.\nrule: <${t}> can be invoked from itself (directly or indirectly)\nwithout consuming any Tokens. The grammar path that causes this is: \n ${t} --\x3e ${e.leftRecursionPath.map(e=>e.name).concat([t]).join(` --> `)}\n To fix this refactor your grammar to remove the left recursion.\nsee: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError:e=>`deprecated`,buildDuplicateRuleNameError(e){let t;return t=e.topLevelRule instanceof j?e.topLevelRule.name:e.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}},Z,St=class extends V{constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){Object.values(this.nameToTopRule).forEach(e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{let t=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:t,type:Q.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}},Ct=class extends ce{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=[...this.path.ruleStack].reverse(),this.occurrenceStack=[...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,n){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){let r=t.concat(n);this.updateExpectedNext(),this.walk(e.referencedRule,r)}}updateExpectedNext(){this.ruleStack.length===0?(this.nextProductionName=``,this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}},wt=class extends Ct{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,n){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){let e=new M({definition:t.concat(n)});this.possibleTokTypes=ue(e),this.found=!0}}},Tt=class extends ce{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}},Et=class extends Tt{walkMany(e,t,n){if(e.idx===this.occurrence){let e=t.concat(n)[0];this.result.isEndOfRule=e===void 0,e instanceof z&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkMany(e,t,n)}},Dt=class extends Tt{walkManySep(e,t,n){if(e.idx===this.occurrence){let e=t.concat(n)[0];this.result.isEndOfRule=e===void 0,e instanceof z&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkManySep(e,t,n)}},Ot=class extends Tt{walkAtLeastOne(e,t,n){if(e.idx===this.occurrence){let e=t.concat(n)[0];this.result.isEndOfRule=e===void 0,e instanceof z&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOne(e,t,n)}},kt=class extends Tt{walkAtLeastOneSep(e,t,n){if(e.idx===this.occurrence){let e=t.concat(n)[0];this.result.isEndOfRule=e===void 0,e instanceof z&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOneSep(e,t,n)}};function At(e,t,n=[]){n=[...n];let r=[],i=0;function a(a){let o=At(a.concat(e.slice(i+1)),t,n);return r.concat(o)}for(;n.length<t&&i<e.length;){let t=e[i];if(t instanceof M||t instanceof A)return a(t.definition);if(t instanceof N)r=a(t.definition);else{if(t instanceof P)return a(t.definition.concat([new I({definition:t.definition})]));if(t instanceof F)return a([new M({definition:t.definition}),new I({definition:[new z({terminalType:t.separator})].concat(t.definition)})]);if(t instanceof L)r=a(t.definition.concat([new I({definition:[new z({terminalType:t.separator})].concat(t.definition)})]));else if(t instanceof I)r=a(t.definition.concat([new I({definition:t.definition})]));else{if(t instanceof R)return t.definition.forEach(e=>{e.definition.length!==0&&(r=a(e.definition))}),r;if(!(t instanceof z))throw Error(`non exhaustive match`);n.push(t.terminalType)}}i++}return r.push({partialPath:n,suffixDef:e.slice(i)}),r}function jt(e,t,n,r){let i=[...n];i.push(e.name);let a=[...r];return a.push(1),{idx:t,def:e.definition,ruleStack:i,occurrenceStack:a}}function Mt(e){if(e instanceof N||e===`Option`)return Z.OPTION;if(e instanceof I||e===`Repetition`)return Z.REPETITION;if(e instanceof P||e===`RepetitionMandatory`)return Z.REPETITION_MANDATORY;if(e instanceof F||e===`RepetitionMandatoryWithSeparator`)return Z.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof L||e===`RepetitionWithSeparator`)return Z.REPETITION_WITH_SEPARATOR;if(e instanceof R||e===`Alternation`)return Z.ALTERNATION;throw Error(`non exhaustive match`)}function Nt(e,t,n,r){let i=e.length,a=e.every(e=>e.every(e=>e.length===1));if(t)return function(t){let r=t.map(e=>e.GATE);for(let t=0;t<i;t++){let i=e[t],a=i.length,o=r[t];if(o===void 0||!1!==o.call(this))e:for(let e=0;e<a;e++){let r=i[e],a=r.length;for(let e=0;e<a;e++)if(!1===n(this.LA_FAST(e+1),r[e]))continue e;return t}}};if(a&&!r){let t=e.map(e=>e.flat()).reduce((e,t,n)=>(t.forEach(t=>{t.tokenTypeIdx in e||(e[t.tokenTypeIdx]=n),t.categoryMatches.forEach(t=>{Object.hasOwn(e,t)||(e[t]=n)})}),e),{});return function(){let e=this.LA_FAST(1);return t[e.tokenTypeIdx]}}return function(){for(let t=0;t<i;t++){let r=e[t],i=r.length;e:for(let e=0;e<i;e++){let i=r[e],a=i.length;for(let e=0;e<a;e++)if(!1===n(this.LA_FAST(e+1),i[e]))continue e;return t}}}}function Pt(e,t,n){let r=e.every(e=>e.length===1),i=e.length;if(r&&!n){let t=e.flat();if(t.length===1&&t[0].categoryMatches.length===0){let e=t[0].tokenTypeIdx;return function(){return this.LA_FAST(1).tokenTypeIdx===e}}{let e=t.reduce((e,t,n)=>(e[t.tokenTypeIdx]=!0,t.categoryMatches.forEach(t=>{e[t]=!0}),e),[]);return function(){let t=this.LA_FAST(1);return!0===e[t.tokenTypeIdx]}}}return function(){e:for(let n=0;n<i;n++){let r=e[n],i=r.length;for(let e=0;e<i;e++)if(!1===t(this.LA_FAST(e+1),r[e]))continue e;return!0}return!1}}(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`})(Z||={});var Ft=class extends ce{constructor(e,t,n){super(),this.topProd=e,this.targetOccurrence=t,this.targetProdType=n}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,t,n,r){return e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.restDef=n.concat(r),!0)}walkOption(e,t,n){this.checkIsTarget(e,Z.OPTION,t,n)||super.walkOption(e,t,n)}walkAtLeastOne(e,t,n){this.checkIsTarget(e,Z.REPETITION_MANDATORY,t,n)||super.walkOption(e,t,n)}walkAtLeastOneSep(e,t,n){this.checkIsTarget(e,Z.REPETITION_MANDATORY_WITH_SEPARATOR,t,n)||super.walkOption(e,t,n)}walkMany(e,t,n){this.checkIsTarget(e,Z.REPETITION,t,n)||super.walkOption(e,t,n)}walkManySep(e,t,n){this.checkIsTarget(e,Z.REPETITION_WITH_SEPARATOR,t,n)||super.walkOption(e,t,n)}},It=class extends V{constructor(e,t,n){super(),this.targetOccurrence=e,this.targetProdType=t,this.targetRef=n,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,Z.OPTION)}visitRepetition(e){this.checkIsTarget(e,Z.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,Z.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,Z.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,Z.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,Z.ALTERNATION)}};function Lt(e){let t=Array(e);for(let n=0;n<e;n++)t[n]=[];return t}function Rt(e){let t=[``];for(let n=0;n<e.length;n++){let r=e[n],i=[];for(let e=0;e<t.length;e++){let n=t[e];i.push(n+`_`+r.tokenTypeIdx);for(let e=0;e<r.categoryMatches.length;e++){let t=`_`+r.categoryMatches[e];i.push(n+t)}}t=i}return t}function zt(e,t,n){for(let r=0;r<e.length;r++){if(r===n)continue;let i=e[r];for(let e=0;e<t.length;e++)if(!0===i[t[e]])return!1}return!0}function Bt(e,t){let n=e.map(e=>At([e],1)),r=Lt(n.length),i=n.map(e=>{let t={};return e.forEach(e=>{Rt(e.partialPath).forEach(e=>{t[e]=!0})}),t}),a=n;for(let e=1;e<=t;e++){let n=a;a=Lt(n.length);for(let o=0;o<n.length;o++){let s=n[o];for(let n=0;n<s.length;n++){let c=s[n].partialPath,l=s[n].suffixDef,u=Rt(c);if(zt(i,u,o)||l.length===0||c.length===t){let e=r[o];if(!1===Ut(e,c)){e.push(c);for(let e=0;e<u.length;e++){let t=u[e];i[o][t]=!0}}}else{let t=At(l,e+1,c);a[o]=a[o].concat(t),t.forEach(e=>{Rt(e.partialPath).forEach(e=>{i[o][e]=!0})})}}}}return r}function Vt(e,t,n,r){let i=new It(e,Z.ALTERNATION,r);return t.accept(i),Bt(i.result,n)}function Ht(e,t,n,r){let i=new It(e,n);t.accept(i);let a=i.result,o=new Ft(t,e,n).startWalking();return Bt([new M({definition:a}),new M({definition:o})],r)}function Ut(e,t){e:for(let n=0;n<e.length;n++){let r=e[n];if(r.length===t.length){for(let e=0;e<r.length;e++){let n=t[e],i=r[e];if((n===i||i.categoryMatchesMap[n.tokenTypeIdx]!==void 0)==0)continue e}return!0}}return!1}function Wt(e){return e.every(e=>e.every(e=>e.every(e=>e.categoryMatches.length===0)))}function Gt(e,t,n,r){let i=e.flatMap(e=>function(e,t){let n=new Jt;e.accept(n);let r=n.allProductions,i=Object.groupBy(r,Kt),a=Object.fromEntries(Object.entries(i).filter(([e,t])=>t.length>1));return Object.values(a).map(n=>{let r=n[0],i=t.buildDuplicateFoundError(e,n),a=H(r),o={message:i,type:Q.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:a,occurrence:r.idx},s=qt(r);return s&&(o.parameter=s),o})}(e,n)),a=function(e,t,n){let r=[],i=t.map(e=>e.name);return e.forEach(e=>{let t=e.name;if(i.includes(t)){let i=n.buildNamespaceConflictError(e);r.push({message:i,type:Q.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}}),r}(e,t,n),o=e.flatMap(e=>function(e,t){let n=new Zt;return e.accept(n),n.alternations.flatMap(n=>n.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:n}),type:Q.TOO_MANY_ALTS,ruleName:e.name,occurrence:n.idx}]:[])}(e,n)),s=e.flatMap(t=>function(e,t,n,r){let i=[];if(t.reduce((t,n)=>n.name===e.name?t+1:t,0)>1){let t=r.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});i.push({message:t,type:Q.DUPLICATE_RULE_NAME,ruleName:e.name})}return i}(t,e,r,n));return i.concat(a,o,s)}function Kt(e){return`${H(e)}_#_${e.idx}_#_${qt(e)}`}function qt(e){return e instanceof z?e.terminalType.name:e instanceof A?e.nonTerminalName:``}var Jt=class extends V{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 Yt(e,t,n,r=[]){let i=[],a=Xt(t.definition);if(a.length===0)return[];{let t=e.name;a.includes(e)&&i.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:r}),type:Q.LEFT_RECURSION,ruleName:t});let o=r.concat([e]),s=a.filter(e=>!o.includes(e)).flatMap(t=>{let i=[...r];return i.push(t),Yt(e,t,n,i)});return i.concat(s)}}function Xt(e){let t=[];if(e.length===0)return t;let n=e[0];if(n instanceof A)t.push(n.referencedRule);else if(n instanceof M||n instanceof N||n instanceof P||n instanceof F||n instanceof L||n instanceof I)t=t.concat(Xt(n.definition));else if(n instanceof R)t=n.definition.map(e=>Xt(e.definition)).flat();else if(!(n instanceof z))throw Error(`non exhaustive match`);let r=se(n),i=e.length>1;if(r&&i){let n=e.slice(1);return t.concat(Xt(n))}return t}var Zt=class extends V{constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}};function Qt(e,t){let n=new Zt;return e.accept(n),n.alternations.flatMap(n=>n.definition.slice(0,-1).flatMap((r,i)=>function(e,t,n,r){let i=`EXIT_NONE_TERMINAL`,a=[i],o=`EXIT_ALTERNATIVE`,s=!1,c=t.length,l=c-r-1,u=[],d=[];for(d.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});d.length!==0;){let e=d.pop();if(e===o){s&&d.at(-1).idx<=l&&d.pop();continue}let r=e.def,f=e.idx,p=e.ruleStack,m=e.occurrenceStack;if(r.length===0)continue;let h=r[0];if(h===i){let e={idx:f,def:r.slice(1),ruleStack:p.slice(0,-1),occurrenceStack:m.slice(0,-1)};d.push(e)}else if(h instanceof z){if(f<c-1){let e=f+1;if(n(t[e],h.terminalType)){let t={idx:e,def:r.slice(1),ruleStack:p,occurrenceStack:m};d.push(t)}}else{if(f!==c-1)throw Error(`non exhaustive match`);u.push({nextTokenType:h.terminalType,nextTokenOccurrence:h.idx,ruleStack:p,occurrenceStack:m}),s=!0}}else if(h instanceof A){let e=[...p];e.push(h.nonTerminalName);let t=[...m];t.push(h.idx);let n={idx:f,def:h.definition.concat(a,r.slice(1)),ruleStack:e,occurrenceStack:t};d.push(n)}else if(h instanceof N){let e={idx:f,def:r.slice(1),ruleStack:p,occurrenceStack:m};d.push(e),d.push(o);let t={idx:f,def:h.definition.concat(r.slice(1)),ruleStack:p,occurrenceStack:m};d.push(t)}else if(h instanceof P){let e=new I({definition:h.definition,idx:h.idx}),t={idx:f,def:h.definition.concat([e],r.slice(1)),ruleStack:p,occurrenceStack:m};d.push(t)}else if(h instanceof F){let e=new I({definition:[new z({terminalType:h.separator})].concat(h.definition),idx:h.idx}),t={idx:f,def:h.definition.concat([e],r.slice(1)),ruleStack:p,occurrenceStack:m};d.push(t)}else if(h instanceof L){let e={idx:f,def:r.slice(1),ruleStack:p,occurrenceStack:m};d.push(e),d.push(o);let t=new I({definition:[new z({terminalType:h.separator})].concat(h.definition),idx:h.idx}),n={idx:f,def:h.definition.concat([t],r.slice(1)),ruleStack:p,occurrenceStack:m};d.push(n)}else if(h instanceof I){let e={idx:f,def:r.slice(1),ruleStack:p,occurrenceStack:m};d.push(e),d.push(o);let t=new I({definition:h.definition,idx:h.idx}),n={idx:f,def:h.definition.concat([t],r.slice(1)),ruleStack:p,occurrenceStack:m};d.push(n)}else if(h instanceof R)for(let e=h.definition.length-1;e>=0;e--){let t={idx:f,def:h.definition[e].definition.concat(r.slice(1)),ruleStack:p,occurrenceStack:m};d.push(t),d.push(o)}else if(h instanceof M)d.push({idx:f,def:h.definition.concat(r.slice(1)),ruleStack:p,occurrenceStack:m});else{if(!(h instanceof j))throw Error(`non exhaustive match`);d.push(jt(h,f,p,m))}}return u}([r],[],Xe,1).length===0?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:n,emptyChoiceIdx:i}),type:Q.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:n.idx,alternative:i+1}]:[]))}function $t(e,t,n){let r=new Zt;e.accept(r);let i=r.alternations;return i=i.filter(e=>!0!==e.ignoreAmbiguities),i.flatMap(r=>{let i=r.idx,a=Vt(i,e,r.maxLookahead||t,r),o=function(e,t,n,r){let i=[];return e.reduce((n,r,a)=>(!0===t.definition[a].ignoreAmbiguities||r.forEach(r=>{let o=[a];e.forEach((e,n)=>{a!==n&&Ut(e,r)&&!0!==t.definition[n].ignoreAmbiguities&&o.push(n)}),o.length>1&&!Ut(i,r)&&(i.push(r),n.push({alts:o,path:r}))}),n),[]).map(e=>{let i=e.alts.map(e=>e+1);return{message:r.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:Q.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:e.alts}})}(a,r,e,n),s=function(e,t,n,r){let i=e.reduce((e,t,n)=>{let r=t.map(e=>({idx:n,path:e}));return e.concat(r)},[]);return i.flatMap(e=>{if(!0===t.definition[e.idx].ignoreAmbiguities)return[];let a=e.idx,o=e.path;return i.filter(e=>{return!0!==t.definition[e.idx].ignoreAmbiguities&&e.idx<a&&(n=e.path,r=o,n.length<r.length&&n.every((e,t)=>{let n=r[t];return e===n||n.categoryMatchesMap[e.tokenTypeIdx]}));var n,r}).map(e=>{let i=[e.idx+1,a+1],o=t.idx===0?``:t.idx;return{message:r.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path}),type:Q.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:o,alternatives:i}})})}(a,r,e,n);return o.concat(s)})}var en=class extends V{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 tn(e){let t=Object.assign({errMsgProvider:bt},e),n={};return e.rules.forEach(e=>{n[e.name]=e}),function(e,t){let n=new St(e,t);return n.resolveRefs(),n.errors}(n,t.errMsgProvider)}var nn=`MismatchedTokenException`,rn=`NoViableAltException`,an=`EarlyExitException`,on=`NotAllInputParsedException`,sn=[nn,rn,an,on];function cn(e){return sn.includes(e.name)}Object.freeze(sn);var ln=class extends Error{constructor(e,t){super(e),this.token=t,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},un=class extends ln{constructor(e,t,n){super(e,t),this.previousToken=n,this.name=nn}},dn=class extends ln{constructor(e,t,n){super(e,t),this.previousToken=n,this.name=rn}},fn=class extends ln{constructor(e,t){super(e,t),this.name=on}},pn=class extends ln{constructor(e,t,n){super(e,t),this.previousToken=n,this.name=an}},mn={},hn=class extends Error{constructor(e){super(e),this.name=`InRuleRecoveryException`}};function gn(e,t,n,r,i,a,o){var s,c;let l=r|i,u=(s=this.firstAfterRepMap)[c=this.currRuleShortName]??(s[c]=[]),d=u[l];if(d===void 0){let e=this.getCurrRuleFullName();d=new a(this.getGAstProductions()[e],i).startWalking(),u[l]=d}let f=d.token,p=d.occurrence,m=d.isEndOfRule;this.RULE_STACK_IDX===0&&m&&f===void 0&&(f=X,p=1),f!==void 0&&p!==void 0&&this.shouldInRepetitionRecoveryBeTried(f,p,o)&&this.tryInRepetitionRecovery(e,t,n,f)}var _n=1024,vn=1280,yn=1536,bn=class{constructor(e){this.maxLookahead=e?.maxLookahead??$.maxLookahead}validate(e){let t=this.validateNoLeftRecursion(e.rules);if(t.length===0){let n=this.validateEmptyOrAlternatives(e.rules),r=this.validateAmbiguousAlternationAlternatives(e.rules,this.maxLookahead),i=this.validateSomeNonEmptyLookaheadPath(e.rules,this.maxLookahead);return[...t,...n,...r,...i]}return t}validateNoLeftRecursion(e){return e.flatMap(e=>Yt(e,e,xt))}validateEmptyOrAlternatives(e){return e.flatMap(e=>Qt(e,xt))}validateAmbiguousAlternationAlternatives(e,t){return e.flatMap(e=>$t(e,t,xt))}validateSomeNonEmptyLookaheadPath(e,t){return function(e,t,n){let r=[];return e.forEach(e=>{let i=new en;e.accept(i),i.allProductions.forEach(i=>{let a=Mt(i),o=i.maxLookahead||t;if(Ht(i.idx,e,a,o)[0].flat().length===0){let t=n.buildEmptyRepetitionError({topLevelRule:e,repetition:i});r.push({message:t,type:Q.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}})}),r}(e,t,xt)}buildLookaheadForAlternation(e){return function(e,t,n,r,i,a){let o=Vt(e,t,n);return a(o,r,Wt(o)?Ze:Xe,i)}(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,Nt)}buildLookaheadForOptional(e){return function(e,t,n,r,i,a){let o=Ht(e,t,i,n),s=Wt(o)?Ze:Xe;return a(o[0],s,r)}(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,Mt(e.prodType),Pt)}},xn=new class extends V{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)}};function Sn(e,t){e.startOffset===-1?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset==1&&(e.endOffset=t.endOffset)}function Cn(e,t){e.startOffset===-1?(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==1&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}var wn;function Tn(e,t){Object.defineProperty(e,"name",{enumerable:!1,configurable:!0,writable:!1,value:t})}function En(e,t){let n=Object.keys(e),r=n.length;for(let i=0;i<r;i++){let r=e[n[i]],a=r.length;for(let e=0;e<a;e++){let n=r[e];n.tokenTypeIdx===void 0&&this[n.name](n.children,t)}}}function Dn(e,t){let n=function(){};return Tn(n,e+`BaseSemantics`),n.prototype={visit:function(e,t){if(Array.isArray(e)&&(e=e[0]),e!==void 0)return this[e.name](e.children,t)},validateVisitor:function(){let e=function(e,t){return function(e,t){return t.filter(t=>typeof e[t]==`function`==0).map(t=>({msg:`Missing visitor method: <${t}> on ${e.constructor.name} CST Visitor.`,type:wn.MISSING_METHOD,methodName:t})).filter(Boolean)}(e,t)}(this,t);if(e.length!==0){let t=e.map(e=>e.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:\n\t${t.join(`
40
+
41
+ `).replace(/\n/g,`
42
+ `)}`)}}},n.prototype.constructor=n,n._RULE_NAMES=t,n}(function(e){e[e.REDUNDANT_METHOD=0]=`REDUNDANT_METHOD`,e[e.MISSING_METHOD=1]=`MISSING_METHOD`})(wn||={});var On={description:`This Object indicates the Parser is during Recording Phase`};Object.freeze(On);var kn=!0,An=Y({name:`RECORDING_PHASE_TOKEN`,pattern:J.NA});et([An]);var jn=vt(An,`This IToken indicates the Parser is in Recording Phase
43
+ See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(jn);var Mn={name:`This CSTNode indicates the Parser is in Recording Phase
44
+ See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}};function Nn(e,t,n,r=!1){In(n);let i=this.recordingProdStack.at(-1),a=typeof t==`function`?t:t.DEF,o=new e({definition:[],idx:n});return r&&(o.separator=t.SEP),Object.hasOwn(t,`MAX_LOOKAHEAD`)&&(o.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(o),a.call(this),i.definition.push(o),this.recordingProdStack.pop(),On}function Pn(e,t){In(t);let n=this.recordingProdStack.at(-1),r=!1===Array.isArray(e),i=!1===r?e:e.DEF,a=new R({definition:[],idx:t,ignoreAmbiguities:r&&!0===e.IGNORE_AMBIGUITIES});return Object.hasOwn(e,`MAX_LOOKAHEAD`)&&(a.maxLookahead=e.MAX_LOOKAHEAD),a.hasPredicates=i.some(e=>typeof e.GATE==`function`),n.definition.push(a),i.forEach(e=>{let t=new M({definition:[]});a.definition.push(t),Object.hasOwn(e,`IGNORE_AMBIGUITIES`)?t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES:Object.hasOwn(e,`GATE`)&&(t.ignoreAmbiguities=!0),this.recordingProdStack.push(t),e.ALT.call(this),this.recordingProdStack.pop()}),On}function Fn(e){return e===0?``:`${e}`}function In(e){if(e<0||e>255){let t=Error(`Invalid DSL Method idx value: <${e}>\n\tIdx value must be a none negative value smaller than 256`);throw t.KNOWN_RECORDER_ERROR=!0,t}}var Ln=vt(X,``,-1,-1,-1,-1,-1,-1);Object.freeze(Ln);var Q,$=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:yt,nodeLocationTracking:`none`,traceInitPerf:!1,skipValidations:!1}),Rn=Object.freeze({recoveryValueFunc:()=>{},resyncEnabled:!0});(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`})(Q||={});var zn,Bn=class e{static performSelfAnalysis(e){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;let n=this.className;this.TRACE_INIT(`toFastProps`,()=>{ae(this)}),this.TRACE_INIT(`Grammar Recording`,()=>{try{this.enableRecording(),this.definedRulesNames.forEach(e=>{let t=this[e].originalGrammarAction,n;this.TRACE_INIT(`${e} Rule`,()=>{n=this.topLevelRuleRecord(e,t)}),this.gastProductionsCache[e]=n})}finally{this.disableRecording()}});let r=[];if(this.TRACE_INIT(`Grammar Resolving`,()=>{r=tn({rules:Object.values(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(r)}),this.TRACE_INIT(`Grammar Validations`,()=>{if(r.length===0&&!1===this.skipValidations){let t=function(e){let t=e.errMsgProvider??xt;return Gt(e.rules,e.tokenTypes,t,e.grammarName)}({rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),errMsgProvider:xt,grammarName:n}),r=(e={lookaheadStrategy:this.lookaheadStrategy,rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),grammarName:n}).lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName}).map(e=>Object.assign({type:Q.CUSTOM_LOOKAHEAD_VALIDATION},e));this.definitionErrors=this.definitionErrors.concat(t,r)}var e}),this.definitionErrors.length===0&&(this.recoveryEnabled&&this.TRACE_INIT(`computeAllProdsFollows`,()=>{let e=function(e){let t={};return e.forEach(e=>{let n=new fe(e).startWalking();Object.assign(t,n)}),t}(Object.values(this.gastProductionsCache));this.resyncFollows=e}),this.TRACE_INIT(`ComputeLookaheadFunctions`,()=>{var e,t;(t=(e=this.lookaheadStrategy).initialize)==null||t.call(e,{rules:Object.values(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(Object.values(this.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&this.definitionErrors.length!==0)throw t=this.definitionErrors.map(e=>e.message),Error(`Parser Definition Errors detected:\n ${t.join(`
45
+ -------------------------------
46
+ `)}`)})}constructor(e,t){this.definitionErrors=[],this.selfAnalysisDone=!1;let n=this;if(n.initErrorHandler(t),n.initLexerAdapter(),n.initLooksAhead(t),n.initRecognizerEngine(e,t),n.initRecoverable(t),n.initTreeBuilder(t),n.initGastRecorder(t),n.initPerformanceTracer(t),Object.hasOwn(t,`ignoredIssues`))throw Error(`The <ignoredIssues> IParserConfig property has been deprecated.
47
+ Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
48
+ See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
49
+ For further details.`);this.skipValidations=Object.hasOwn(t,`skipValidations`)?t.skipValidations:$.skipValidations}};Bn.DEFER_DEFINITION_ERRORS_HANDLING=!1,zn=Bn,[class{initRecoverable(e){this.firstAfterRepMap=[],this.resyncFollows={},this.recoveryEnabled=Object.hasOwn(e,`recoveryEnabled`)?e.recoveryEnabled:$.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=gn)}getTokenToInsert(e){let t=vt(e,``,-1,-1,-1,-1,-1,-1);return t.isInsertedInRecovery=!0,t}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,t,n,r){let i=this.findReSyncTokenType(),a=this.exportLexerState(),o=[],s=!1,c=this.LA_FAST(1),l=this.LA_FAST(1),u=()=>{let e=this.LA(0),t=new un(this.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:c,previous:e,ruleName:this.getCurrRuleFullName()}),c,this.LA(0));t.resyncedTokens=o.slice(0,-1),this.SAVE_ERROR(t)};for(;!s;){if(this.tokenMatcher(l,r))return void u();if(n.call(this))return u(),void e.apply(this,t);this.tokenMatcher(l,i)?s=!0:(l=this.SKIP_TOKEN(),this.addToResyncTokens(l,o))}this.importLexerState(a)}shouldInRepetitionRecoveryBeTried(e,t,n){return!1!==n&&!this.tokenMatcher(this.LA_FAST(1),e)&&!this.isBackTracking()&&!this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t))}getNextPossibleTokenTypes(e){let t=e.ruleStack[0],n=this.getGAstProductions()[t];return new wt(n,e).startWalking()}getFollowsForInRuleRecovery(e,t){let n=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(n)}tryInRuleRecovery(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){let e=this.SKIP_TOKEN();return this.consumeToken(),e}throw new hn(`sad sad panda`)}canPerformInRuleRecovery(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,t){if(!this.canTokenTypeBeInsertedInRecovery(e)||t.length===0)return!1;let n=this.LA_FAST(1);return t.find(e=>this.tokenMatcher(n,e))!==void 0}canRecoverWithSingleTokenDeletion(e){return!!this.canTokenTypeBeDeletedInRecovery(e)&&this.tokenMatcher(this.LA(2),e)}isInCurrentRuleReSyncSet(e){let t=this.getCurrFollowKey();return this.getFollowSetFromFollowKey(t).includes(e)}findReSyncTokenType(){let e=this.flattenFollowSet(),t=this.LA_FAST(1),n=2;for(;;){let r=e.find(e=>Xe(t,e));if(r!==void 0)return r;t=this.LA(n),n++}}getCurrFollowKey(){if(this.RULE_STACK_IDX===0)return mn;let e=this.currRuleShortName,t=this.getLastExplicitRuleOccurrenceIndex(),n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(n)}}buildFullFollowKeyStack(){let e=this.RULE_STACK,t=this.RULE_OCCURRENCE_STACK,n=this.RULE_STACK_IDX+1,r=Array(n);for(let i=0;i<n;i++)r[i]=i===0?mn:{ruleName:this.shortRuleNameToFullName(e[i]),idxInCallingRule:t[i],inRule:this.shortRuleNameToFullName(e[i-1])};return r}flattenFollowSet(){return this.buildFullFollowKeyStack().map(e=>this.getFollowSetFromFollowKey(e)).flat()}getFollowSetFromFollowKey(e){if(e===mn)return[X];let t=e.ruleName+e.idxInCallingRule+de+e.inRule;return this.resyncFollows[t]}addToResyncTokens(e,t){return this.tokenMatcher(e,X)||t.push(e),t}reSyncTo(e){let t=[],n=this.LA_FAST(1);for(;!1===this.tokenMatcher(n,e);)n=this.SKIP_TOKEN(),this.addToResyncTokens(n,t);return t.slice(0,-1)}attemptInRepetitionRecovery(e,t,n,r,i,a,o){}getCurrentGrammarPath(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:this.RULE_OCCURRENCE_STACK.slice(0,this.RULE_OCCURRENCE_STACK_IDX+1),lastTok:e,lastTokOccurrence:t}}getHumanReadableRuleStack(){let e=this.RULE_STACK_IDX+1,t=Array(e);for(let n=0;n<e;n++)t[n]=this.shortRuleNameToFullName(this.RULE_STACK[n]);return t}},class{initLooksAhead(e){this.dynamicTokensEnabled=Object.hasOwn(e,`dynamicTokensEnabled`)?e.dynamicTokensEnabled:$.dynamicTokensEnabled,this.maxLookahead=Object.hasOwn(e,`maxLookahead`)?e.maxLookahead:$.maxLookahead,this.lookaheadStrategy=Object.hasOwn(e,`lookaheadStrategy`)?e.lookaheadStrategy:new bn({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=[],this.currRuleLookaheadFuncs=[]}preComputeLookaheadFunctions(e){e.forEach(e=>{this.TRACE_INIT(`${e.name} Rule Lookahead`,()=>{let{alternation:t,repetition:n,option:r,repetitionMandatory:i,repetitionMandatoryWithSeparator:a,repetitionWithSeparator:o}=function(e){xn.reset(),e.accept(xn);let t=xn.dslMethods;return xn.reset(),t}(e);t.forEach(t=>{let n=t.idx===0?``:t.idx;this.TRACE_INIT(`${H(t)}${n}`,()=>{let n=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:t.idx,rule:e,maxLookahead:t.maxLookahead||this.maxLookahead,hasPredicates:t.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled});this.setLaFuncCache(this.fullRuleNameToShort[e.name],256|t.idx,n)})}),n.forEach(t=>{this.computeLookaheadFunc(e,t.idx,768,`Repetition`,t.maxLookahead,H(t))}),r.forEach(t=>{this.computeLookaheadFunc(e,t.idx,512,`Option`,t.maxLookahead,H(t))}),i.forEach(t=>{this.computeLookaheadFunc(e,t.idx,_n,`RepetitionMandatory`,t.maxLookahead,H(t))}),a.forEach(t=>{this.computeLookaheadFunc(e,t.idx,yn,`RepetitionMandatoryWithSeparator`,t.maxLookahead,H(t))}),o.forEach(t=>{this.computeLookaheadFunc(e,t.idx,vn,`RepetitionWithSeparator`,t.maxLookahead,H(t))})})})}computeLookaheadFunc(e,t,n,r,i,a){this.TRACE_INIT(`${a}${t===0?``:t}`,()=>{let a=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:t,rule:e,maxLookahead:i||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:r});this.setLaFuncCache(this.fullRuleNameToShort[e.name],n|t,a)})}setLaFuncCache(e,t,n){let r=this.lookAheadFuncsCache[e];r===void 0&&(r=[],this.lookAheadFuncsCache[e]=r),r[t]=n}},class{initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=Object.hasOwn(e,`nodeLocationTracking`)?e.nodeLocationTracking:$.nodeLocationTracking,this.outputCst){if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Cn,this.setNodeLocationFromNode=Cn,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=Sn,this.setNodeLocationFromNode=Sn,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else{if(!/none/i.test(this.nodeLocationTracking))throw Error(`Invalid <nodeLocationTracking> config option: "${e.nodeLocationTracking}"`);this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=()=>{},this.setInitialNodeLocation=()=>{}}}else this.cstInvocationStateUpdate=()=>{},this.cstFinallyStateUpdate=()=>{},this.cstPostTerminal=()=>{},this.cstPostNonTerminal=()=>{},this.cstPostRule=()=>{}}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:-1,endOffset:-1}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA_FAST(1).startOffset,endOffset:-1}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:-1,startLine:-1,startColumn:-1,endOffset:-1,endLine:-1,endColumn:-1}}setInitialNodeLocationFullRegular(e){let t=this.LA_FAST(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:-1,endLine:-1,endColumn:-1}}cstInvocationStateUpdate(e){let t={name:e,children:Object.create(null)};this.setInitialNodeLocation(t),this.CST_STACK.push(t)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){let t=this.LA(0),n=e.location;n.startOffset!==-1&&n.startOffset<=t.startOffset==1?(n.endOffset=t.endOffset,n.endLine=t.endLine,n.endColumn=t.endColumn):(n.startOffset=-1,n.startLine=-1,n.startColumn=-1)}cstPostRuleOnlyOffset(e){let t=this.LA(0),n=e.location;n.startOffset!==-1&&n.startOffset<=t.startOffset==1?n.endOffset=t.endOffset:n.startOffset=-1}cstPostTerminal(e,t){let n=this.CST_STACK[this.CST_STACK.length-1];var r,i=t,a=e;(r=n).children[a]===void 0?r.children[a]=[i]:r.children[a].push(i),this.setNodeLocationFromToken(n.location,t)}cstPostNonTerminal(e,t){let n=this.CST_STACK[this.CST_STACK.length-1];(function(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)})(n,t,e),this.setNodeLocationFromNode(n.location,e.location)}get currCSTNode(){return this.CST_STACK[this.CST_STACK.length-1]}getBaseCstVisitorConstructor(){if(this.baseCstVisitorConstructor===void 0){let e=Dn(this.className,Object.keys(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(this.baseCstVisitorWithDefaultsConstructor===void 0){let e=function(e,t,n){let r=function(){};Tn(r,e+`BaseSemanticsWithDefaults`);let i=Object.create(n.prototype);return t.forEach(e=>{i[e]=En}),(r.prototype=i).constructor=r,r}(this.className,Object.keys(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getPreviousExplicitRuleShortName(){return this.RULE_STACK[this.RULE_STACK_IDX-1]}getLastExplicitRuleOccurrenceIndex(){return this.RULE_OCCURRENCE_STACK[this.RULE_OCCURRENCE_STACK_IDX]}},class{initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(!0!==this.selfAnalysisDone)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.tokVectorLength-2?(this.consumeToken(),this.LA_FAST(1)):Ln}LA_FAST(e){let t=this.currIdx+e;return this.tokVector[t]}LA(e){let t=this.currIdx+e;return t<0||this.tokVectorLength<=t?Ln:this.tokVector[t]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVectorLength-1}getLexerPosition(){return this.exportLexerState()}},class{initRecognizerEngine(e,t){if(this.className=this.constructor.name,this.shortRuleNameToFull=[],this.fullRuleNameToShort={},this.ruleShortNameIdx=0,this.tokenMatcher=Ze,this.subruleIdx=0,this.currRuleShortName=-1,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK=[],this.RULE_OCCURRENCE_STACK_IDX=-1,this.gastProductionsCache={},Object.hasOwn(t,`serializedGrammar`))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
50
+ See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0
51
+ For Further details.`);if(Array.isArray(e)){if(e.length===0)throw Error(`A Token Vocabulary cannot be empty.
52
+ Note that the first argument for the parser constructor
53
+ 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.
54
+ See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0
55
+ For Further details.`)}if(Array.isArray(e))this.tokensMap=e.reduce((e,t)=>(e[t.name]=t,e),{});else if(Object.hasOwn(e,`modes`)&&Object.values(e.modes).flat().every(it)){let t=Object.values(e.modes).flat(),n=[...new Set(t)];this.tokensMap=n.reduce((e,t)=>(e[t.name]=t,e),{})}else{if(typeof e!=`object`||!e)throw Error(`<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition`);this.tokensMap=Object.assign({},e)}this.tokensMap.EOF=X;let n=(Object.hasOwn(e,`modes`)?Object.values(e.modes).flat():Object.values(e)).every(e=>e.categoryMatches?.length==0);this.tokenMatcher=n?Ze:Xe,et(Object.values(this.tokensMap))}defineRule(e,t,n){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called'\nMake sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let r=Object.hasOwn(n,`resyncEnabled`)?n.resyncEnabled:Rn.resyncEnabled,i=Object.hasOwn(n,`recoveryValueFunc`)?n.recoveryValueFunc:Rn.recoveryValueFunc,a=this.ruleShortNameIdx++,o;return this.shortRuleNameToFull[a]=e,this.fullRuleNameToShort[e]=a,o=!0===this.outputCst?function(...n){try{this.ruleInvocationStateUpdate(a,e,this.subruleIdx),t.apply(this,n);let r=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(r),r}catch(e){return this.invokeRuleCatch(e,r,i)}finally{this.ruleFinallyStateUpdate()}}:function(...n){try{return this.ruleInvocationStateUpdate(a,e,this.subruleIdx),t.apply(this,n)}catch(e){return this.invokeRuleCatch(e,r,i)}finally{this.ruleFinallyStateUpdate()}},Object.assign(function(...t){this.onBeforeParse(e);try{return o.apply(this,t)}finally{this.onAfterParse(e)}},{ruleName:e,originalGrammarAction:t,coreRule:o})}invokeRuleCatch(e,t,n){let r=this.RULE_STACK_IDX===0,i=t&&!this.isBackTracking()&&this.recoveryEnabled;if(cn(e)){let t=e;if(i){let r=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(r)){if(t.resyncedTokens=this.reSyncTo(r),this.outputCst){let e=this.CST_STACK[this.CST_STACK.length-1];return e.recoveredNode=!0,e}return n(e)}if(this.outputCst){let e=this.CST_STACK[this.CST_STACK.length-1];e.recoveredNode=!0,t.partialCstResult=e}throw t}if(r)return this.moveToTerminatedState(),n(e);throw t}throw e}optionInternal(e,t){let n=512|t;return this.optionInternalLogic(e,t,n)}optionInternalLogic(e,t,n){let r,i=this.currRuleLookaheadFuncs[n];if(typeof e!=`function`){r=e.DEF;let t=e.GATE;if(t!==void 0){let e=i;i=()=>t.call(this)&&e.call(this)}}else r=e;if(!0===i.call(this))return r.call(this)}atLeastOneInternal(e,t){let n=_n|e;return this.atLeastOneInternalLogic(e,t,n)}atLeastOneInternalLogic(e,t,n){let r,i=this.currRuleLookaheadFuncs[n];if(typeof t!=`function`){r=t.DEF;let e=t.GATE;if(e!==void 0){let t=i;i=()=>e.call(this)&&t.call(this)}}else r=t;if(!0!==i.call(this))throw this.raiseEarlyExitException(e,Z.REPETITION_MANDATORY,t.ERR_MSG);{let e=this.doSingleRepetition(r);for(;!0===i.call(this)&&!0===e;)e=this.doSingleRepetition(r)}this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],i,_n,e,Ot)}atLeastOneSepFirstInternal(e,t){let n=yn|e;this.atLeastOneSepFirstInternalLogic(e,t,n)}atLeastOneSepFirstInternalLogic(e,t,n){let r=t.DEF,i=t.SEP;if(!0!==this.currRuleLookaheadFuncs[n].call(this))throw this.raiseEarlyExitException(e,Z.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG);{r.call(this);let t=()=>this.tokenMatcher(this.LA_FAST(1),i);for(;!0===this.tokenMatcher(this.LA_FAST(1),i);)this.CONSUME(i),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,r,kt],t,yn,e,kt)}}manyInternal(e,t){let n=768|e;return this.manyInternalLogic(e,t,n)}manyInternalLogic(e,t,n){let r,i=this.currRuleLookaheadFuncs[n];if(typeof t!=`function`){r=t.DEF;let e=t.GATE;if(e!==void 0){let t=i;i=()=>e.call(this)&&t.call(this)}}else r=t;let a=!0;for(;!0===i.call(this)&&!0===a;)a=this.doSingleRepetition(r);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],i,768,e,Et,a)}manySepFirstInternal(e,t){let n=vn|e;this.manySepFirstInternalLogic(e,t,n)}manySepFirstInternalLogic(e,t,n){let r=t.DEF,i=t.SEP;if(!0===this.currRuleLookaheadFuncs[n].call(this)){r.call(this);let t=()=>this.tokenMatcher(this.LA_FAST(1),i);for(;!0===this.tokenMatcher(this.LA_FAST(1),i);)this.CONSUME(i),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,r,Dt],t,vn,e,Dt)}}repetitionSepSecondInternal(e,t,n,r,i){for(;n();)this.CONSUME(t),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,n,r,i],n,yn,e,i)}doSingleRepetition(e){let t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t}orInternal(e,t){let n=256|t,r=Array.isArray(e)?e:e.DEF,i=this.currRuleLookaheadFuncs[n].call(this,r);if(i!==void 0)return r[i].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)}ruleFinallyStateUpdate(){this.RULE_STACK_IDX--,this.RULE_OCCURRENCE_STACK_IDX--,this.RULE_STACK_IDX>=0&&(this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX],this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[this.currRuleShortName]),this.cstFinallyStateUpdate()}subruleInternal(e,t,n){let r;try{let i=n===void 0?void 0:n.ARGS;return this.subruleIdx=t,r=e.coreRule.apply(this,i),this.cstPostNonTerminal(r,n!==void 0&&n.LABEL!==void 0?n.LABEL:e.ruleName),r}catch(t){throw this.subruleInternalError(t,n,e.ruleName)}}subruleInternalError(e,t,n){throw cn(e)&&e.partialCstResult!==void 0&&(this.cstPostNonTerminal(e.partialCstResult,t!==void 0&&t.LABEL!==void 0?t.LABEL:n),delete e.partialCstResult),e}consumeInternal(e,t,n){let r;try{let t=this.LA_FAST(1);!0===this.tokenMatcher(t,e)?(this.consumeToken(),r=t):this.consumeInternalError(e,t,n)}catch(n){r=this.consumeInternalRecovery(e,t,n)}return this.cstPostTerminal(n!==void 0&&n.LABEL!==void 0?n.LABEL:e.name,r),r}consumeInternalError(e,t,n){let r,i=this.LA(0);throw r=n!==void 0&&n.ERR_MSG?n.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:i,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new un(r,t,i))}consumeInternalRecovery(e,t,n){if(!this.recoveryEnabled||n.name!==`MismatchedTokenException`||this.isBackTracking())throw n;{let r=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,r)}catch(e){throw e.name===`InRuleRecoveryException`?n:e}}}saveRecogState(){let e=this.errors,t=this.RULE_STACK.slice(0,this.RULE_STACK_IDX+1);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState);let t=e.RULE_STACK;for(let e=0;e<t.length;e++)this.RULE_STACK[e]=t[e];this.RULE_STACK_IDX=t.length-1,this.RULE_STACK_IDX>=0&&(this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX],this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[this.currRuleShortName])}ruleInvocationStateUpdate(e,t,n){this.RULE_OCCURRENCE_STACK[++this.RULE_OCCURRENCE_STACK_IDX]=n,this.RULE_STACK[++this.RULE_STACK_IDX]=e,this.currRuleShortName=e,this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[e],this.cstInvocationStateUpdate(t)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){let e=this.currRuleShortName;return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),X)}reset(){this.resetLexerState(),this.subruleIdx=0,this.currRuleShortName=-1,this.currRuleLookaheadFuncs=[],this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK_IDX=-1,this.CST_STACK=[]}onBeforeParse(e){for(let e=0;e<this.maxLookahead+1;e++)this.tokVector.push(Ln)}onAfterParse(e){if(!1===this.isAtEndOfInput()){let e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new fn(t,e))}for(;this.tokVector.at(-1)===Ln;)this.tokVector.pop()}},class{ACTION(e){return e.call(this)}consume(e,t,n){return this.consumeInternal(t,e,n)}subrule(e,t,n){return this.subruleInternal(t,e,n)}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,n=Rn){if(this.definedRulesNames.includes(e)){let t={message:xt.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:Q.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(t)}this.definedRulesNames.push(e);let r=this.defineRule(e,t,n);return this[e]=r,r}OVERRIDE_RULE(e,t,n=Rn){let r=function(e,t,n){let r=[],i;return t.includes(e)||(i=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${n}<-as it is not defined in any of the super grammars `,r.push({message:i,type:Q.INVALID_RULE_OVERRIDE,ruleName:e})),r}(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(r);let i=this.defineRule(e,t,n);return this[e]=i,i}BACKTRACK(e,t){let n=e.coreRule??e;return function(){this.isBackTrackingStack.push(1);let e=this.saveRecogState();try{return n.apply(this,t),!0}catch(e){if(cn(e))return!1;throw e}finally{this.reloadRecogState(e),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return Object.values(this.gastProductionsCache).map(oe)}},class{initErrorHandler(e){this._errors=[],this.errorMessageProvider=Object.hasOwn(e,`errorMessageProvider`)?e.errorMessageProvider:$.errorMessageProvider}SAVE_ERROR(e){if(cn(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:this.RULE_OCCURRENCE_STACK.slice(0,this.RULE_OCCURRENCE_STACK_IDX+1)},this._errors.push(e),e;throw Error(`Trying to save an Error which is not a RecognitionException`)}get errors(){return[...this._errors]}set errors(e){this._errors=e}raiseEarlyExitException(e,t,n){let r=this.getCurrRuleFullName(),i=Ht(e,this.getGAstProductions()[r],t,this.maxLookahead)[0],a=[];for(let e=1;e<=this.maxLookahead;e++)a.push(this.LA(e));let o=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:i,actual:a,previous:this.LA(0),customUserDescription:n,ruleName:r});throw this.SAVE_ERROR(new pn(o,this.LA(1),this.LA(0)))}raiseNoAltException(e,t){let n=this.getCurrRuleFullName(),r=Vt(e,this.getGAstProductions()[n],this.maxLookahead),i=[];for(let e=1;e<=this.maxLookahead;e++)i.push(this.LA(e));let a=this.LA(0),o=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:r,actual:i,previous:a,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new dn(o,this.LA(1),a))}},class{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++){let t=e>0?e:``;this[`CONSUME${t}`]=function(t,n){return this.consumeInternalRecord(t,e,n)},this[`SUBRULE${t}`]=function(t,n){return this.subruleInternalRecord(t,e,n)},this[`OPTION${t}`]=function(t){return this.optionInternalRecord(t,e)},this[`OR${t}`]=function(t){return this.orInternalRecord(t,e)},this[`MANY${t}`]=function(t){this.manyInternalRecord(e,t)},this[`MANY_SEP${t}`]=function(t){this.manySepFirstInternalRecord(e,t)},this[`AT_LEAST_ONE${t}`]=function(t){this.atLeastOneInternalRecord(e,t)},this[`AT_LEAST_ONE_SEP${t}`]=function(t){this.atLeastOneSepFirstInternalRecord(e,t)}}this.consume=function(e,t,n){return this.consumeInternalRecord(t,e,n)},this.subrule=function(e,t,n){return this.subruleInternalRecord(t,e,n)},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`,()=>{let e=this;for(let t=0;t<10;t++){let n=t>0?t:``;delete e[`CONSUME${n}`],delete e[`SUBRULE${n}`],delete e[`OPTION${n}`],delete e[`OR${n}`],delete e[`MANY${n}`],delete e[`MANY_SEP${n}`],delete e[`AT_LEAST_ONE${n}`],delete e[`AT_LEAST_ONE_SEP${n}`]}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 Ln}topLevelRuleRecord(e,t){try{let n=new j({definition:[],name:e});return n.name=e,this.recordingProdStack.push(n),t.call(this),this.recordingProdStack.pop(),n}catch(e){if(!0!==e.KNOWN_RECORDER_ERROR)try{e.message+=`
56
+ This error was thrown during the "grammar recording phase" For more info see:
57
+ https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch{throw e}throw e}}optionInternalRecord(e,t){return Nn.call(this,N,e,t)}atLeastOneInternalRecord(e,t){Nn.call(this,P,t,e)}atLeastOneSepFirstInternalRecord(e,t){Nn.call(this,F,t,e,kn)}manyInternalRecord(e,t){Nn.call(this,I,t,e)}manySepFirstInternalRecord(e,t){Nn.call(this,L,t,e,kn)}orInternalRecord(e,t){return Pn.call(this,e,t)}subruleInternalRecord(e,t,n){if(In(t),!e||!Object.hasOwn(e,`ruleName`)){let n=Error(`<SUBRULE${Fn(t)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}>\n inside top level rule: <${this.recordingProdStack[0].name}>`);throw n.KNOWN_RECORDER_ERROR=!0,n}let r=this.recordingProdStack.at(-1),i=e.ruleName,a=new A({idx:t,nonTerminalName:i,label:n?.LABEL,referencedRule:void 0});return r.definition.push(a),this.outputCst?Mn:On}consumeInternalRecord(e,t,n){if(In(t),!nt(e)){let n=Error(`<CONSUME${Fn(t)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}>\n inside top level rule: <${this.recordingProdStack[0].name}>`);throw n.KNOWN_RECORDER_ERROR=!0,n}let r=this.recordingProdStack.at(-1),i=new z({idx:t,terminalType:e,label:n?.LABEL});return r.definition.push(i),jn}},class{initPerformanceTracer(e){if(Object.hasOwn(e,`traceInitPerf`)){let t=e.traceInitPerf,n=typeof t==`number`;this.traceInitMaxIdent=n?t:1/0,this.traceInitPerf=n?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=$.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,t){if(!0===this.traceInitPerf){this.traceInitIndent++;let n=Array(this.traceInitIndent+1).join(` `);this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${n}--\x3e <${e}>`);let{time:r,value:i}=ie(t),a=r>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&a(`${n}<-- <${e}> time: ${r}ms`),this.traceInitIndent--,i}return t()}}].forEach(e=>{let t=e.prototype;Object.getOwnPropertyNames(t).forEach(n=>{if(n===`constructor`)return;let r=Object.getOwnPropertyDescriptor(t,n);r&&(r.get||r.set)?Object.defineProperty(zn.prototype,n,r):zn.prototype[n]=e.prototype[n]})});var Vn=class extends Bn{constructor(e,t=$){let n=Object.assign({},t);n.outputCst=!1,super(e,n)}},Hn=class t{static shared(e){let n=e?.locale??d,r=e?.maxColumn??Kn,i=e?.maxRow??qn,a=Gn.get(n);a||(a=new Map,Gn.set(n,a));let o=`${r}:${i}`,s=a.get(o);return s||(s=new t({locale:n,maxColumn:r,maxRow:i}),a.set(o,s)),s}constructor(e){let t=e?.maxColumn??Kn,n=e?.maxRow??qn,r=e?.locale??d;this._locale=r,this._maxColumn=t,this._maxRow=n;let{separatorFunction:a,separatorColumn:s,separatorRow:c,separatorDecimal:l}=r.separators;if(s===c)throw Error(`FormulaLexer: separatorColumn and separatorRow must differ (both '${s}')`);let u=Y({name:`WhiteSpace`,pattern:/[ \n\v\f\r\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,group:J.SKIPPED}),f=Y({name:`StringToken`,pattern:/"(""|[^"])*"/}),p=Y({name:`FunctionToken`,pattern:/[a-zA-Z_\u007F-\uFFFF]+[a-zA-Z0-9_.\u007F-\uFFFF]*(?=\()/}),m=Y({name:`TableReference`,pattern:{exec:o},line_breaks:!1,start_chars_hint:Wn}),h=Y({name:`BracketedString`,pattern:{exec:i},line_breaks:!1,start_chars_hint:[91],longer_alt:[m,f]}),g=e=>(e??[]).map(e=>e?.trim()).filter(Boolean).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).map(e=>e+`|`).join(``),_=e=>e.replace(/[A-Za-z]/g,e=>`[${e.toUpperCase()}${e.toLowerCase()}]`),v=Y({name:`LiteralError`,pattern:new RegExp(g(r.errorLiterals)+[`#PARSE!`,`#NULL!`,`#DIV\\/0!`,`#VALUE!`,`#NUM!`,`#FIELD!`,`#N\\/A`,`#GETTING_DATA`,`#SPILL!`,`#CONNECT!`,`#BLOCKED!`,`#UNKNOWN!`,`#CALC!`,`#BUSY!`,`#PYTHON!`,`#TIMEOUT!`].map(_).join(`|`))}),y=Y({name:`RefError`,pattern:new RegExp(g(r.errorRefs)+[`#REF!`,`#NAME\\?`].map(_).join(`|`))}),ee=Y({name:`SingleQuotedString`,pattern:/'(''|[^'])*'/}),b=Y({name:`SheetQuoted`,pattern:/'(?:''|[^'])*?'!/}),x=Y({name:`Sheet`,pattern:/[A-Za-z_.\d\u007F-\uFFFF]*!/}),te=/[a-zA-Z_\\\u007F-\uFFFF][a-zA-Z0-9_.?\\\u007F-\uFFFF]*:?/y,S=Y({name:`NamedToken`,pattern:{exec:(e,t)=>{te.lastIndex=t;let n=te.exec(e);if(!n)return null;let r=n[0],i=r.indexOf(`.:`);return i===-1?r.endsWith(`:`)&&(r=r.slice(0,-1)):r=r.substring(0,i),[r]}},line_breaks:!1,start_chars_hint:Wn}),C=Y({name:`Cell`,pattern:{exec:Xn(t,n)},line_breaks:!1,start_chars_hint:[36,...Un],longer_alt:S}),w=Y({name:`Column`,pattern:{exec:Yn(t)},line_breaks:!1,start_chars_hint:[36,...Un],longer_alt:S}),ne=Y({name:`AbsRow`,pattern:/[$][0-9]+/}),T=l===`.`?`\\.`:l,re=Y({name:`NumberToken`,pattern:RegExp(`[0-9]+${T}(?!:)[0-9]*([eE][+-]?[0-9]+|\\*\\*[+-]?[0-9]+)?|${T}[0-9]+([eE][+-]?[0-9]+|\\*\\*[+-]?[0-9]+)?|[0-9]+[eE][+-]?[0-9]+`)}),E=Y({name:`ScientificDigit`,pattern:/[0-9]+\*\*[+-]?[0-9]+/}),D=Y({name:`DigitToken`,pattern:/[0-9]+/}),O=[`TRUE`,`FALSE`];for(let e of[r.booleanTrue,r.booleanFalse]){let t=e?.trim();t&&!O.some(e=>e.toLowerCase()===t.toLowerCase())&&O.push(t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`))}let ie=Y({name:`BooleanToken`,pattern:new RegExp(O.join(`|`),`i`)}),ae=Y({name:`ArgSeparator`,pattern:Zn(a)}),k=Y({name:`ColSeparator`,pattern:Zn(s)}),A=Y({name:`RowSeparator`,pattern:Zn(c)}),j=Y({name:`RangeOp`,pattern:/:/}),M=Y({name:`RangeTrimFullOp`,pattern:/\.:\./}),N=Y({name:`RangeTrimLeadingOp`,pattern:/\.:/}),P=Y({name:`RangeTrimTrailingOp`,pattern:/:\./}),F=Y({name:`OpenParen`,pattern:/\(/}),I=Y({name:`CloseParen`,pattern:/\)/}),L=Y({name:`OpenCurlyParen`,pattern:/{/}),R=Y({name:`CloseCurlyParen`,pattern:/}/}),z=Y({name:`QuoteS`,pattern:/'/}),oe=Y({name:`MulOp`,pattern:/\*(?!\*)/}),B=Y({name:`PlusOp`,pattern:/\+/}),V=Y({name:`DivOp`,pattern:/\//}),se=Y({name:`MinOp`,pattern:/-/}),H=Y({name:`ImplicitIntersectOp`,pattern:/@/}),ce=Y({name:`ConcatOp`,pattern:/&/}),le=Y({name:`ExOp`,pattern:/\^/}),ue=Y({name:`PercentOp`,pattern:/%/}),de=Y({name:`ArrayAnchorOp`,pattern:/#/,longer_alt:[v,y]}),fe=Y({name:`GtOp`,pattern:/>/}),U=Y({name:`EqOp`,pattern:/=/}),pe=Y({name:`LtOp`,pattern:/</}),W=[u,f,b,ee,x,p,m,h,v,y,ae,...s===a?[]:[k],A,M,N,P,j,C,ie,w,ne,re,E,D,de,H,S,F,I,L,R,z,oe,B,V,se,ce,le,ue,Y({name:`NeqOp`,pattern:/<>/}),Y({name:`GteOp`,pattern:/>=/}),Y({name:`LteOp`,pattern:/<=/}),fe,U,pe];this._lexer=new J(W,{ensureOptimizations:!0});let G={};W.forEach(e=>{G[e.name]=e}),s===a&&(G.ColSeparator=ae),this._vocabulary=G}tokenize(t,n=!0){let r=this._lexer.tokenize(t);if(n&&r.errors.length>0){let n=r.errors[0],i=n.line,a=n.column,o=t.substr(n.offset,n.length||1),s=o?`Unexpected character '${o}'`:n.message;throw new e.Parse(s,{line:i,column:a,offset:n.offset,length:n.length})}return r}getVocabulary(){return this._vocabulary}getLocale(){return this._locale}getMaxColumn(){return this._maxColumn}getMaxRow(){return this._maxRow}getSeparators(){return this._locale.separators}},Un=(()=>{let e=[];for(let t=65;t<=90;t++)e.push(t);for(let t=97;t<=122;t++)e.push(t);for(let t=48;t<=57;t++)e.push(t);return e})().filter(e=>e<48||e>57),Wn=(()=>{let e=[...Un,95,92];for(let t=127;t<=65535;t++)e.push(t);return e})(),Gn=new WeakMap,Kn=16384,qn=1048576;function Jn(e,t,n){let r=0;for(let i=t;i<n;i++){let t=e.charCodeAt(i);r=26*r+(t>=97?t-96:t-64)}return r}function Yn(e){return(t,n)=>{let r=n;t.charCodeAt(r)===36&&r++;let i=r;for(;r<t.length&&r-i<3;){let e=t.charCodeAt(r);if(!(e>=65&&e<=90||e>=97&&e<=122))break;r++}if(r-i===0||Jn(t,i,r)>e)return null;if(r<t.length){let e=t.charCodeAt(r);if(e>=48&&e<=57)return null}return[t.substring(n,r)]}}function Xn(e,t){return(n,r)=>{let i=r;n.charCodeAt(i)===36&&i++;let a=i;for(;i<n.length&&i-a<3;){let e=n.charCodeAt(i);if(!(e>=65&&e<=90||e>=97&&e<=122))break;i++}if(i-a===0||Jn(n,a,i)>e)return null;i<n.length&&n.charCodeAt(i)===36&&i++;let o=i;for(;i<n.length;){let e=n.charCodeAt(i);if(!(e>=48&&e<=57))break;i++}if(i===o)return null;let s=parseInt(n.substring(o,i),10);return s<1||s>t?null:[n.substring(r,i)]}}function Zn(e){return new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`))}var Qn=class{constructor(e=d){let t=function(e){let t=[...te];if(e)for(let n of Object.values(e)){let e=n?.trim();e&&!t.some(t=>t.toLowerCase()===e.toLowerCase())&&t.push(e)}return t.sort((e,t)=>t.length-e.length),t.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`)}(e.specifiers),n=Y({name:`WhiteSpace`,pattern:/\s+/,group:J.SKIPPED}),r=Y({name:`TableSpecifier`,pattern:RegExp(`\\[#(?:${t})\\]`,`i`)}),i=[n,r,Y({name:`BracketedColumn`,pattern:/\[(?:'['#[\]]|'(?!['#[\]])|[^'[\]])*\]/,longer_alt:[r]}),Y({name:`BareSpecifier`,pattern:RegExp(`#(?:${t})`,`i`)}),Y({name:`ColumnSep`,pattern:/:/}),Y({name:`ListSep`,pattern:new RegExp(e.separators.separatorFunction.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`))})];this._lexer=new J(i,{ensureOptimizations:!0});let a={};i.forEach(e=>{a[e.name]=e}),this._vocabulary=a}getVocabulary(){return this._vocabulary}tokenize(e){return this._lexer.tokenize(e)}},$n=class extends Vn{constructor(e=d){let t=new Qn(e),n=t.getVocabulary();super(n,{nodeLocationTracking:`none`,maxLookahead:2,skipValidations:!0,recoveryEnabled:!1}),this._lexer=t;let{TableSpecifier:r,BracketedColumn:i,BareSpecifier:o,ColumnSep:s,ListSep:c}=n,l=this;l.RULE(`ruleContent`,()=>{let e=[],t=l.SUBRULE(l.ruleItem);return l.ACTION(()=>{t&&e.push(t)}),l.MANY(()=>{l.CONSUME(c),l.OPTION(()=>{let t=l.SUBRULE2(l.ruleItem);l.ACTION(()=>{t&&e.push(t)})})}),e}),l.RULE(`ruleItem`,()=>l.OR([{ALT:()=>l.SUBRULE(l.ruleSpecifier)},{ALT:()=>l.SUBRULE(l.ruleColumnOrRange)}])),l.RULE(`ruleSpecifier`,()=>l.OR([{ALT:()=>{let t=l.CONSUME(r);return l.ACTION(()=>{let n=b(t.image,e);return n.image=t.image,n})}},{ALT:()=>{let t=l.CONSUME(o);return l.ACTION(()=>{let n=b(t.image,e);return n.image=t.image,n})}}])),l.RULE(`ruleColumnOrRange`,()=>{let e=l.CONSUME(i),t,n;return l.OPTION(()=>{t=l.CONSUME(s),n=l.CONSUME2(i)}),l.ACTION(()=>{let r=a(e.image);if(r.image=e.image,!n)return r;let i=a(n.image);i.image=n.image;let o=f(`:`,r,i,!0);return o.image=t?.image??`:`,o})}),l.performSelfAnalysis()}_parseInner(e){let t=this._lexer.tokenize(e);return t.errors.length>0||t.tokens.length===0?[]:(this.input=t.tokens,this.reset(),this.ruleContent()??[])}_parseContent(e){if(!e)return[];let t=e.trim();if(!t)return[];let n=t[0];if(n===`@`){let e=t.slice(1).trim();if(!e){let e=w(`@`,null,!0);return e.image=`@`,[e]}if(e.charAt(0)===`[`){let t=this._parseInner(e);if(t.length===1&&t[0].type===`infix`){let e=w(`@`,t[0],!0);return e.image=`@`,[e]}}let n=a(e);n.image=e;let r=w(`@`,n,!0);return r.image=`@`,[r]}if(n!==`[`&&n!==`#`){let t=a(e);return t.image=e,[t]}return this._parseInner(t)}parse(e,t,n){this.reset();let r=()=>({root:g(``,[]),errors:[]});if(!n)return r();let i=0;if(n.charAt(0)===`[`){let e=n.indexOf(`]`);e!==-1&&n.charAt(e+1)===`!`&&(i=e+2)}let a=n.indexOf(`[`,i);if(a===-1)return r();let o=n.slice(0,a),s=n.slice(a+1,-1),c=this._parseContent(s);return{root:g(o,c),errors:this.errors.length>0?[...this.errors]:[]}}},er=new Set([`:`,`.:.`,`.:`,`:.`]),tr=new Set([`.:.`,`.:`,`:.`]),nr=e=>{if(!e)return null;if(e.type===m.Cell){let t=e.value;return t.rowIndex===-(2**53-1)?`col`:t.colIndex===-(2**53-1)?`row`:null}return Number.isInteger(e.value)?`row`:null},rr=(e,t)=>{let n=parseInt(e.charCodeAt(0)===36?e.substring(1):e,10);return n>=1&&n<=t},ir=`A formula must not be empty`,ar=(e,t)=>`A formula must not be longer than ${t} characters (this one is ${e})`;function or(e,t){let n=e?.[0]?.image;if(!n){let e=t?.image;return e?`Expected a value after '${e}'`:`Expected a value`}return`Unexpected '${n}'`}var sr={...yt,buildNoViableAltMessage:e=>or(e.actual,e.previous),buildEarlyExitMessage:e=>or(e.actual,e.previous),buildNotAllInputParsedMessage:e=>{let t=e.firstRedundant?.image;return t?`Unexpected '${t}'`:yt.buildNotAllInputParsedMessage(e)},buildMismatchTokenMessage:e=>{let t=e.actual?.image;return e.expected===X&&t?`Unexpected '${t}'`:yt.buildMismatchTokenMessage(e)}},cr=class extends Vn{constructor(e){let i=e?.lexer??Hn.shared(e?.lexerOptions),a=i.getVocabulary();super(a,{skipValidations:!0,recoveryEnabled:!0,...e,nodeLocationTracking:`full`,errorMessageProvider:sr,maxLookahead:1}),this._ruleInfixOp=this.RULE(`ruleInfixOp`,()=>{let{PlusOp:e,MinOp:t,MulOp:r,DivOp:i,ExOp:a,ConcatOp:o,GtOp:s,EqOp:l,LtOp:u,NeqOp:d,GteOp:p,LteOp:m}=this._vocab,h=[];return h.push({node:this.SUBRULE(this._rulePostfixOp)}),this.MANY(()=>{let n=this.OR(this._c1||=[{ALT:()=>this.CONSUME(e).image},{ALT:()=>this.CONSUME(t).image},{ALT:()=>this.CONSUME(r).image},{ALT:()=>this.CONSUME(i).image},{ALT:()=>this.CONSUME(a).image},{ALT:()=>this.CONSUME(o).image},{ALT:()=>this.CONSUME(s).image},{ALT:()=>this.CONSUME(l).image},{ALT:()=>this.CONSUME(u).image},{ALT:()=>this.CONSUME(d).image},{ALT:()=>this.CONSUME(p).image},{ALT:()=>this.CONSUME(m).image}]),f={value:n,index:this.getLexerPosition(),isRange:c.includes(n)},g=this.SUBRULE2(this._rulePostfixOp);h.push({op:f,node:g})}),this.ACTION(()=>{let e=h.length-1,t=n.length;for(let r=0;e>0&&r<t;r++){let t=n[r],i=1;for(;i<h.length;){let n=h[i].op;if(t.includes(n.value)){let t=h[i-1].node,r=h[i].node,a=f(n.value,t,r,n.isRange);a=this._tag(a,n.index),h[i-1].node=a,h.splice(i,1),e--}else i++}}}),h[0].node}),this._rulePlusMinusOp=this.RULE(`rulePlusMinusOp`,()=>{let{PlusOp:e,MinOp:t}=this._vocab;return this.OR([{ALT:()=>this.CONSUME(e)},{ALT:()=>this.CONSUME(t)}])}),this._rulePostfixOp=this.RULE(`rulePostfixOp`,()=>{let{PercentOp:e}=this._vocab,t=this.SUBRULE(this._rulePrefixOp),n=[];return this.MANY(()=>{let t=this.CONSUME(e).image;this.ACTION(()=>{n.push([t,this.getLexerPosition()])})}),this.ACTION(()=>{let e=n.length;if(e!==0)for(let r=0;r<e;r++){let e=n[r],i=e[0],a=e[1],o=c.includes(i);t=h(i,t,o),t=this._tag(t,a)}}),t}),this._rulePrefixOp=this.RULE(`rulePrefixOp`,()=>{let{PlusOp:e,MinOp:t,ImplicitIntersectOp:n}=this._vocab,r=[];this.MANY(()=>{let i=this.OR([{ALT:()=>this.CONSUME(e).image},{ALT:()=>this.CONSUME(t).image},{ALT:()=>this.CONSUME(n).image}]);this.ACTION(()=>{r.push([i,this.getLexerPosition()])})});let i=this.SUBRULE(this._ruleRangeOp);return this.ACTION(()=>{let e=r.length;if(e!==0)for(let t=e-1;t>=0;t--){let e=r[t],n=e[0],a=e[1],o=c.includes(n);i=w(n,i,o),i=this._tag(i,a)}}),i}),this._ruleRangeOp=this.RULE(`ruleRangeOp`,()=>{let{RangeOp:e,RangeTrimFullOp:t,RangeTrimLeadingOp:n,RangeTrimTrailingOp:r,ArrayAnchorOp:i}=this._vocab,a=[];return a.push({node:this.SUBRULE(this._ruleCallOp)}),this.MANY2(()=>{this.CONSUME(i),a.push({anchor:this.getLexerPosition()})}),this.MANY(()=>{let o={value:this.OR(this._c2||=[{ALT:()=>this.CONSUME(e).image},{ALT:()=>this.CONSUME(t).image},{ALT:()=>this.CONSUME(n).image},{ALT:()=>this.CONSUME(r).image}]),index:this.getLexerPosition()},s=this.SUBRULE2(this._ruleCallOp);a.push({op:o,node:s}),this.MANY3(()=>{this.CONSUME2(i),a.push({anchor:this.getLexerPosition()})})}),this.ACTION(()=>{for(let e=1;e+1<a.length;e++){let t=a[e],n=a[e+1];if(t.op?.value!==`:`||n.op?.value!==`:`)continue;let r=nr(t.node);r&&nr(n.node)===r&&nr(a[e-1].node)!==r&&(t.node=this._tag(f(`:`,t.node,n.node,!0),n.op.index),a.splice(e+1,1))}for(let e=1;e<a.length;e++){let t=a[e];if(t.anchor!==void 0){a[0].node=this._tag(h(`#`,a[0].node,!0),t.anchor);continue}let n=t.op,r=f(n.value,a[0].node,t.node,!0);r=this._tag(r,n.index),a[0].node=r}}),a[0].node}),this._ruleCallOp=this.RULE(`ruleCallOp`,()=>{let{OpenParen:e,CloseParen:t}=this._vocab,n=this.SUBRULE(this._ruleFormula);return this.MANY({GATE:()=>{let t=this.LA(0),n=this.LA(1);return!(!t||!n||n.tokenType!==e)&&n.startOffset===t.endOffset+1},DEF:()=>{this.CONSUME(e);let r=this.getLexerPosition(),i=this.SUBRULE(this._ruleFunctionArguments),a=n,o=this.ACTION(()=>this._tag(l(a,i),r)),s=this.OPTION(()=>this.CONSUME(t));this.ACTION(()=>{s||this._reportError(o,`Missing closing parenthesis ')'`,r),this._tagClose(o,this.getLexerPosition()),n=o})}}),n}),this._ruleIntersectOp=this.RULE(`ruleIntersectOp`,()=>{let e=[this.SUBRULE(this._ruleInfixOp)];return this.MANY(()=>{this.OPTION({GATE:()=>{let e=this.LA(0);return this.LA(1).startOffset>e.endOffset+1},DEF:()=>{e.push(this.SUBRULE3(this._ruleInfixOp))}})}),this.ACTION(()=>{for(;e.length>1;){let t=e.length-1;for(let n=0;n<t;n++){let r=e[n],i=e[n+1],a=f(` `,r,i,!0),o=this._tokenMap.get(r);o&&delete o.tokenIndexClose;let s=this._tokenMap.get(i),c=s?.tokenIndex;if(c!==void 0){let e=this.input[c],t=this.input[c-1]?.endOffset??-1,n=this._inputText.slice(t+1,e.startOffset).slice(0,-1);n.length>0&&(a.wsBefore=n)}s&&delete s.tokenIndex,n+1<t&&s&&delete s.tokenIndexClose,e.splice(n,2,a),n--,t--}}}),e[0]}),this._ruleFormula=this.RULE(`ruleFormula`,()=>this.OR9([{ALT:()=>this.SUBRULE(this._ruleLiteral)},{ALT:()=>this.SUBRULE(this._ruleReference)},{ALT:()=>this.SUBRULE(this._ruleFunction)},{ALT:()=>this.SUBRULE(this._ruleParen)},{ALT:()=>this.SUBRULE(this._ruleTableReference)},{ALT:()=>this.SUBRULE(this._ruleBracketedString)},{ALT:()=>this.SUBRULE(this._ruleLiteralArray)}])),this._ruleGroup=this.RULE(`ruleGroup`,()=>{let{ArgSeparator:e}=this._vocab,t=[];return this.MANY(()=>{this.CONSUME(e);let n=this.SUBRULE2(this._ruleIntersectOp);this.ACTION(()=>{t.push(n)})}),t}),this._ruleParen=this.RULE(`ruleParen`,()=>{let{OpenParen:e,CloseParen:t}=this._vocab;return this._processParen(m.Paren,e,t)}),this._ruleLiteralArray=this.RULE(`ruleLiteralArray`,()=>{let{OpenCurlyParen:e,CloseCurlyParen:t,ColSeparator:n,RowSeparator:r}=this._vocab,i=_();this.CONSUME(e);let a=this.getLexerPosition(),o=this.ACTION(()=>this._tag(s(i),a)),c=this.SUBRULE(this._ruleLiteralForArray);this.ACTION(()=>{i.value.push(c)}),this.MANY(()=>{let e=!1;this.OR([{ALT:()=>{this.CONSUME(n),e=!0}},{ALT:()=>this.CONSUME(r)}]);let t=this.SUBRULE2(this._ruleLiteralForArray);this.ACTION(()=>{e||(i=_(),o.value.push(i)),i.value.push(t)})});let l=this.OPTION(()=>this.CONSUME(t));return o=this.ACTION(()=>(l||this._reportError(o,`Missing closing parenthesis '}'`,a),this._tagClose(o,this.getLexerPosition()))),o}),this._ruleLiteralForArray=this.RULE(`ruleLiteralForArray`,()=>{let{StringToken:e,BooleanToken:t,LiteralError:n,RefError:i}=this._vocab;return this.OR([{ALT:()=>{let e=this.OPTION(()=>this.SUBRULE(this._rulePlusMinusOp)),t=this.SUBRULE(this._ruleNumber),n=this.ACTION(()=>this._tag(ne(t.image,this._locale),this.getLexerPosition()));return this.ACTION(()=>e?v(e.image,n):n)}},{ALT:()=>{let t=this.CONSUME(e);return this.ACTION(()=>this._tag(r(t.image),this.getLexerPosition()))}},{ALT:()=>{let e=this.CONSUME(t);return this.ACTION(()=>this._tag(re(e.image,this._locale),this.getLexerPosition()))}},{ALT:()=>{let e=this.CONSUME(n);return this.ACTION(()=>this._tag(u(e.image,this._locale),this.getLexerPosition()))}},{ALT:()=>{let e=this.CONSUME(i);return this.ACTION(()=>this._tag(T(e.image,this._locale),this.getLexerPosition()))}}])}),this._ruleLiteral=this.RULE(`ruleLiteral`,()=>{let{StringToken:e,BooleanToken:t,LiteralError:n,RefError:i}=this._vocab;return this.OR([{ALT:()=>{let e=this.SUBRULE(this._ruleNumber);return this.ACTION(()=>this._tag(ne(e.image,this._locale),this.getLexerPosition()))}},{ALT:()=>{let t=this.CONSUME(e);return this.ACTION(()=>this._tag(r(t.image),this.getLexerPosition()))}},{ALT:()=>{let e=this.CONSUME(t);return this.ACTION(()=>this._tag(re(e.image,this._locale),this.getLexerPosition()))}},{ALT:()=>{let e=this.CONSUME(n);return this.ACTION(()=>this._tag(u(e.image,this._locale),this.getLexerPosition()))}},{ALT:()=>{let e=this.CONSUME(i);return this.ACTION(()=>this._tag(T(e.image,this._locale),this.getLexerPosition()))}}])}),this._ruleFunction=this.RULE(`ruleFunction`,()=>{let{FunctionToken:e,OpenParen:t,CloseParen:n}=this._vocab,r=this.CONSUME(e).image,i=this.getLexerPosition();this.CONSUME(t);let a=this.SUBRULE(this._ruleFunctionArguments),o=this.ACTION(()=>this._tag(C(r,a),i)),s=this.OPTION(()=>this.CONSUME(n));return o=this.ACTION(()=>(s||this._reportError(o,`Missing closing parenthesis ')'`,i),this._tagClose(o,this.getLexerPosition()))),o}),this._ruleFunctionArguments=this.RULE(`ruleFunctionArguments`,()=>{let{ArgSeparator:e,CloseParen:t}=this._vocab,n=[];return this.OPTION({GATE:()=>this.LA(1).tokenType!==t,DEF:()=>{let t;this.OPTION2(()=>{t=this.SUBRULE(this._ruleIntersectOp)}),t=this.ACTION(()=>t??this._tagClose(ee(),this.getLexerPosition())),n.push(t),this.MANY(()=>{let t;this.CONSUME(e),this.OPTION3(()=>{t=this.SUBRULE2(this._ruleIntersectOp)}),t=this.ACTION(()=>t??this._tagClose(ee(),this.getLexerPosition())),n.push(t)})}}),n}),this._ruleBracketedString=this.RULE(`ruleBracketedString`,()=>{let{BracketedString:e}=this._vocab,t=this.CONSUME(e),n=this.getLexerPosition();return this.ACTION(()=>{let e=this._srParser.parse(this.rowIndex,this.colIndex,t.image);for(let t of e.errors)this._astErrors.push(t);return this._tag(e.root,n)})}),this._ruleTableReference=this.RULE(`ruleTableReference`,()=>{let{TableReference:e}=this._vocab,t=this.CONSUME(e),n=this.getLexerPosition();return this.ACTION(()=>{let e=this._srParser.parse(this.rowIndex,this.colIndex,t.image);for(let t of e.errors)this._astErrors.push(t);return this._tag(e.root,n)})}),this._ruleReference=this.RULE(`ruleReference`,()=>{let{Sheet:e,SheetQuoted:n,DivOp:r,MulOp:i,PlusOp:a,MinOp:o,ArgSeparator:s,Cell:c,NamedToken:l,SingleQuotedString:u,Column:d,AbsRow:f,DigitToken:h,RefError:g}=this._vocab,_,v;this.OPTION2({GATE:()=>{for(let t=1;t<6;t++){let c=this.LA(t);if(c.tokenType===e||c.tokenType===n)return!0;if(c.image===``||c.image===`)`||c.tokenType===r||c.tokenType===i||c.tokenType===a||c.tokenType===o||c.tokenType===s)break}return!1},DEF:()=>{v=this.getLexerPosition()+1,_=this.SUBRULE(this._rulePrefixSheetName)}});let y=this.OR([{ALT:()=>{let e=this.CONSUME(c),n=this.getLexerPosition();return this.ACTION(()=>this._tag(t(e.image,this.rowIndex,this.colIndex),n))}},{ALT:()=>{let e=this.OR2([{ALT:()=>this.CONSUME(l)},{ALT:()=>this.CONSUME(u)}]);return this.ACTION(()=>this._tag(p(e.image),this.getLexerPosition()))}},{ALT:()=>this.SUBRULE(this._ruleBracketedString)},{ALT:()=>this.SUBRULE(this._ruleFunction)},{ALT:()=>{let e=this.CONSUME(d);return this.ACTION(()=>this._tag(S(e.image,this.colIndex),this.getLexerPosition()))}},{ALT:()=>{let e=this.CONSUME(f);return this.ACTION(()=>this._tag(E(e.image,this.rowIndex),this.getLexerPosition()))}},{ALT:()=>{let e=this.CONSUME(h);return this.ACTION(()=>this._tag(E(e.image,this.rowIndex),this.getLexerPosition()))}},{ALT:()=>{let e=this.CONSUME(g);return this.ACTION(()=>this._tag(T(e.image,this._locale),this.getLexerPosition()))}}]);return this.ACTION(()=>{if(_&&y){if(_.name===``)return void this._reportError(y,`'${_.image}' is not a valid sheet reference — a '!' needs a sheet name before it`);let e=y;if(y.type===m.Postfix&&y.inputs?.[0]&&(e=y.inputs[0]),e.type===m.Cell||e.type===m.Named||e.type===m.Row||e.type===m.TableColumn||e.type===m.Error){e.value.scope=_.name,e.value.scopeImage=_.image;let t=this._tokenMap.get(e);t&&v!==void 0&&(t.tokenIndex=v)}}}),y}),this._rulePrefixSheetName=this.RULE(`rulePrefixSheetName`,()=>{let{SheetQuoted:e,BracketedString:t,NamedToken:n,Column:r,RangeOp:i,Sheet:a}=this._vocab;return this.OR([{ALT:()=>{let t=this.CONSUME(e).image;return{name:t.slice(1,-2).replace(/''/g,`'`),image:t}}},{ALT:()=>{let e=``;this.OPTION(()=>{e+=this.CONSUME(t).image}),this.OPTION2({GATE:()=>this.LA(2).tokenType===i,DEF:()=>{e+=this.OR2([{ALT:()=>this.CONSUME(n).image},{GATE:()=>this.LA(1).image.charCodeAt(0)!==36,ALT:()=>this.CONSUME(r).image}]),this.CONSUME(i),e+=`:`}});let o=this.CONSUME(a).image;return{name:e+o.slice(0,-1),image:e+o}}}])}),this._ruleNumber=this.RULE(`ruleNumber`,()=>{let{NumberToken:e,ScientificDigit:t,DigitToken:n}=this._vocab;return this.OR([{ALT:()=>this.CONSUME(e)},{ALT:()=>this.CONSUME(t)},{ALT:()=>this.CONSUME(n)}])}),this._ruleRoot=this.RULE(`ruleRoot`,()=>{let{ArgSeparator:e}=this._vocab,t=this.SUBRULE(this._ruleIntersectOp),n=[];return this.MANY(()=>{this.CONSUME(e),n.push(this.SUBRULE2(this._ruleIntersectOp))}),this.ACTION(()=>n.length===0?t:{type:m.List,value:`,`,inputs:[t,...n],isReference:!0})}),this._lexer=i,this._locale=i.getLocale(),this._vocab=a,this._srParser=e?.srParser??new $n(this._locale),this.performSelfAnalysis()}getLexer(){return this._lexer}parse(t,n,r){let i=this._lexer.tokenize(r),a;if(!i)return{root:{type:m.Unparsed,value:r},errors:[]};let o=i.tokens;if(o.length===0)throw new e.Parse(ir);return this.input=o,this._inputText=r,this._inputTextLength=r.length,this.rowIndex=t,this.colIndex=n,this._astErrors=[],this._tokenMap=new Map,this.reset(),a=this._ruleRoot(),a&&this._bindAllWhitespace(a),a=x(a,(e,n)=>{let r=e.type,i=n?.isReference?n.value:void 0,a=typeof i==`string`&&er.has(i),o=typeof i==`string`&&tr.has(i),s=a?n.inputs:void 0,c=s?s[0]===e?s[1]:s[0]:void 0,l=this._lexer.getMaxRow();if(a&&r!==m.Cell&&Number.isInteger(e.value)){let n=E(e.image,t);return y(n,e),nr(c)===`row`?rr(e.image,l)||this._reportError(n,`'${e.image}' is not a valid row — rows run from 1 to ${l}`):this._reportError(n,`'${e.image}' is not a valid reference — a whole row can only pair with another row (as in ${e.image}:${e.image})`),n}if(o&&r===m.Named)return this._reportError(e,`'${e.image??e.value?.nameId}' is a name — '${i}' needs a cell or range on both sides`),e;if(r===m.Cell){let t=e.value,n=t.colIndex===-(2**53-1),r=t.rowIndex===-(2**53-1);if((n||r)&&nr(c)===(n?`row`:`col`))return n&&!rr(e.image,l)&&this._reportError(e,`'${e.image}' is not a valid row — rows run from 1 to ${l}`),e;if(n||r||t.colIndex>=16384){let a=p(e.image);y(a,e);let s=t.scope;return s&&(a.value.scope=s,a.value.scopeImage=t.scopeImage),n?this._reportError(a,`'${e.image}' is not a valid reference — a row needs a column (use ${e.image}:${e.image} for the whole row)`):r&&e.image.includes(`$`)?this._reportError(a,`'${e.image}' is not a valid reference — a whole column can only pair with another column (as in ${e.image}:${e.image})`):o&&this._reportError(a,`'${e.image}' is a name — '${i}' needs a cell or range on both sides`),a}}return e}),{root:a,errors:[...this.errors,...this._astErrors]}}_processParen(e,t,n){let r;this.CONSUME(t);let i=this.getLexerPosition();r=this.ACTION(()=>(r={type:e,value:null,inputs:null},this._tag(r,i)));let a=[],o=this.SUBRULE(this._ruleIntersectOp);o&&a.push(o);let s=this.SUBRULE(this._ruleGroup),c=this.OPTION(()=>this.CONSUME(n));return r=this.ACTION(()=>{if(s)for(let e=0;e<s.length;e++)a.push(s[e]);return r&&(c||this._reportError(r,`Missing closing parenthesis`,i),r.inputs=a),this._tagClose(r,this.getLexerPosition())}),r}_reportError(e,t,n=void 0,r=`SyntaxError`){n===void 0&&(n=this.getLexerPosition()),e.error=!0,this._astErrors.push({name:r,message:t,previousToken:this.input[n],ast:e})}_tag(e,t){return e?(e.image??=this.input[t].image,this._tokenMap.set(e,{tokenIndex:t,tokenIndexClose:t}),e):(console.warn(`node is null`),e)}_tagClose(e,t){let n=this._tokenMap.get(e);return n?n.tokenIndexClose=t:this._tokenMap.set(e,{tokenIndexClose:t}),e}_bindNodeWhitespace(e){let t=this._tokenMap.get(e);if(!t)return;let n=this.input,r=this._inputText,i=t.tokenIndex;if(i!==void 0){let t=n[i],a=n[i-1]?.endOffset??-1;a+1<t.startOffset&&(e.wsBefore=r.slice(a+1,t.startOffset))}let a=t.tokenIndexClose;if(a!==void 0){let t=n[a],i=n[a+1]?.startOffset??this._inputTextLength;t.endOffset+1<i&&(e.wsAfter=r.slice(t.endOffset+1,i))}}_bindAllWhitespace(e){if(e){if(this._bindNodeWhitespace(e),e.inputs)for(let t of e.inputs)t&&this._bindAllWhitespace(t);if(e.type===m.Array&&Array.isArray(e.value)){for(let t of e.value)if(t&&Array.isArray(t.value))for(let e of t.value)e&&this._bindAllWhitespace(e)}}}};export{ir as i,ar as n,cr as r,Hn as t};
@@ -0,0 +1 @@
1
+ import{d as e}from"./BnoVwUBEor8NgQNs.js";import{n as t}from"./Cenh1POxiGMxIQlv.js";var n=async(n,r)=>{let i=n;(function(e){if(e.byteLength<4)return!1;let t=new Uint8Array(e),n={gzip:[31,139],zip:[80,75,3,4],bz2:[66,90,104],br:[206,178,207,129]},r=Object.keys(n);for(let e=0;e<r.length;e++){let i=r[e],a=n[i],o=!0;for(let e=0;e<a.length;e++)if(t[e]!==a[e]){o=!1;break}if(o)return i}return!1})(i)&&(i=await t(i));let a=new TextDecoder().decode(i),o=JSON.parse(a),s={...r?.createWorkbookOptions??{},json:o};return new e(s)};export{n as readSXL};
@@ -0,0 +1 @@
1
+ function e(e,t){if(!Number.isFinite(e))return`0`;let n=e.toFixed(t);return n.indexOf(`.`)>=0&&(n=n.replace(/\.?0+$/,``)),n===`-0`?`0`:n}export{e as t};
@@ -0,0 +1 @@
1
+ var e=[[`3cd4 hc t`,`cd2 l vc`,`cd4 hc b`,`0 r vc`],[`aI xI yI`,`ptAng xGp yGp`,`aA xA yA`,`aB xBp yBp`],[`3cd4 hc t`,`cd2 l y1`,`cd4 hc b`,`0 r y1`],[`3cd4 x1 t`,`cd2 l vc`,`cd4 x1 b`,`0 r vc`],[`3cd4 hc t`,`cd2 l y2`,`cd4 hc b`,`0 r y2`]],t=Object.freeze({bentArrow:{av:[`adj1 val 25000`,`adj2 val 25000`,`adj3 val 25000`,`adj4 val 43750`],gd:[`a2 pin 0 adj2 50000`,`maxAdj1 */ a2 2 1`,`a1 pin 0 adj1 maxAdj1`,`a3 pin 0 adj3 50000`,`th */ ss a1 100000`,`aw2 */ ss a2 100000`,`th2 */ th 1 2`,`dh2 +- aw2 0 th2`,`ah */ ss a3 100000`,`bw +- r 0 ah`,`bh +- b 0 dh2`,`bs min bw bh`,`maxAdj4 */ 100000 bs ss`,`a4 pin 0 adj4 maxAdj4`,`bd */ ss a4 100000`,`bd3 +- bd 0 th`,`bd2 max bd3 0`,`x3 +- th bd2 0`,`x4 +- r 0 ah`,`y3 +- dh2 th 0`,`y4 +- y3 dh2 0`,`y5 +- dh2 bd 0`,`y6 +- y3 bd2 0`],ah:[`xy adj1 _ th b 0 maxAdj1 _ _`,`xy _ adj2 r y4 _ _ 0 50000`,`xy adj3 _ x4 t 0 50000 _ _`,`xy adj4 _ bd t 0 maxAdj4 _ _`],cxn:[`3cd4 x4 t`,`cd4 x4 y4`,`cd4 th2 b`,`0 r aw2`],paths:[{d:`M l b L l y5 A bd bd cd2 cd4 L x4 dh2 L x4 t L r aw2 L x4 y4 L x4 y3 L x3 y3 A bd2 bd2 3cd4 -5400000 L th b Z`}]},bentUpArrow:{av:[`adj1 val 25000`,`adj2 val 25000`,`adj3 val 25000`],gd:[`a1 pin 0 adj1 50000`,`a2 pin 0 adj2 50000`,`a3 pin 0 adj3 50000`,`y1 */ ss a3 100000`,`dx1 */ ss a2 50000`,`x1 +- r 0 dx1`,`dx3 */ ss a2 100000`,`x3 +- r 0 dx3`,`dx2 */ ss a1 200000`,`x2 +- x3 0 dx2`,`x4 +- x3 dx2 0`,`dy2 */ ss a1 100000`,`y2 +- b 0 dy2`,`x0 */ x4 1 2`,`y3 +/ y2 b 2`,`y15 +/ y1 b 2`],ah:[`xy _ adj1 l y2 _ _ 0 50000`,`xy adj2 _ x1 t 0 50000 _ _`,`xy _ adj3 x2 y1 _ _ 0 50000`],cxn:[`3cd4 x3 t`,`cd2 x1 y1`,`cd2 l y3`,`cd4 x0 b`,`0 x4 y15`,`0 r y1`],rect:`l y2 x4 b`,paths:[{d:`M l y2 L x2 y2 L x2 y1 L x1 y1 L x3 t L r y1 L x4 y1 L x4 b L l b Z`}]},chevron:{av:[`adj val 50000`],gd:[`maxAdj */ 100000 w ss`,`a pin 0 adj maxAdj`,`x1 */ ss a 100000`,`x2 +- r 0 x1`,`x3 */ x2 1 2`,`dx +- x2 0 x1`,`il ?: dx x1 l`,`ir ?: dx x2 r`],ah:[`xy adj _ x2 t 0 maxAdj _ _`],cxn:[`3cd4 x3 t`,`cd2 x1 vc`,`cd4 x3 b`,`0 r vc`],rect:`il t ir b`,paths:[{d:`M l t L x2 t L r vc L x2 b L l b L x1 vc Z`}]},circularArrow:{av:[`adj1 val 12500`,`adj2 val 1142319`,`adj3 val 20457681`,`adj4 val 10800000`,`adj5 val 12500`],gd:`a5 pin 0 adj5 25000.maxAdj1 */ a5 2 1.a1 pin 0 adj1 maxAdj1.enAng pin 1 adj3 21599999.stAng pin 0 adj4 21599999.th */ ss a1 100000.thh */ ss a5 100000.th2 */ th 1 2.rw1 +- wd2 th2 thh.rh1 +- hd2 th2 thh.rw2 +- rw1 0 th.rh2 +- rh1 0 th.rw3 +- rw2 th2 0.rh3 +- rh2 th2 0.wtH sin rw3 enAng.htH cos rh3 enAng.dxH cat2 rw3 htH wtH.dyH sat2 rh3 htH wtH.xH +- hc dxH 0.yH +- vc dyH 0.rI min rw2 rh2.u1 */ dxH dxH 1.u2 */ dyH dyH 1.u3 */ rI rI 1.u4 +- u1 0 u3.u5 +- u2 0 u3.u6 */ u4 u5 u1.u7 */ u6 1 u2.u8 +- 1 0 u7.u9 sqrt u8.u10 */ u4 1 dxH.u11 */ u10 1 dyH.u12 +/ 1 u9 u11.u13 at2 1 u12.u14 +- u13 21600000 0.u15 ?: u13 u13 u14.u16 +- u15 0 enAng.u17 +- u16 21600000 0.u18 ?: u16 u16 u17.u19 +- u18 0 cd2.u20 +- u18 0 21600000.u21 ?: u19 u20 u18.maxAng abs u21.aAng pin 0 adj2 maxAng.ptAng +- enAng aAng 0.wtA sin rw3 ptAng.htA cos rh3 ptAng.dxA cat2 rw3 htA wtA.dyA sat2 rh3 htA wtA.xA +- hc dxA 0.yA +- vc dyA 0.wtE sin rw1 stAng.htE cos rh1 stAng.dxE cat2 rw1 htE wtE.dyE sat2 rh1 htE wtE.xE +- hc dxE 0.yE +- vc dyE 0.dxG cos thh ptAng.dyG sin thh ptAng.xG +- xH dxG 0.yG +- yH dyG 0.dxB cos thh ptAng.dyB sin thh ptAng.xB +- xH 0 dxB 0.yB +- yH 0 dyB 0.sx1 +- xB 0 hc.sy1 +- yB 0 vc.sx2 +- xG 0 hc.sy2 +- yG 0 vc.rO min rw1 rh1.x1O */ sx1 rO rw1.y1O */ sy1 rO rh1.x2O */ sx2 rO rw1.y2O */ sy2 rO rh1.dxO +- x2O 0 x1O.dyO +- y2O 0 y1O.dO mod dxO dyO 0.q1 */ x1O y2O 1.q2 */ x2O y1O 1.DO +- q1 0 q2.q3 */ rO rO 1.q4 */ dO dO 1.q5 */ q3 q4 1.q6 */ DO DO 1.q7 +- q5 0 q6.q8 max q7 0.sdelO sqrt q8.ndyO */ dyO -1 1.sdyO ?: ndyO -1 1.q9 */ sdyO dxO 1.q10 */ q9 sdelO 1.q11 */ DO dyO 1.dxF1 +/ q11 q10 q4.q12 +- q11 0 q10.dxF2 */ q12 1 q4.adyO abs dyO.q13 */ adyO sdelO 1.q14 */ DO dxO -1.dyF1 +/ q14 q13 q4.q15 +- q14 0 q13.dyF2 */ q15 1 q4.q16 +- x2O 0 dxF1.q17 +- x2O 0 dxF2.q18 +- y2O 0 dyF1.q19 +- y2O 0 dyF2.q20 mod q16 q18 0.q21 mod q17 q19 0.q22 +- q21 0 q20.dxF ?: q22 dxF1 dxF2.dyF ?: q22 dyF1 dyF2.sdxF */ dxF rw1 rO.sdyF */ dyF rh1 rO.xF +- hc sdxF 0.yF +- vc sdyF 0.x1I */ sx1 rI rw2.y1I */ sy1 rI rh2.x2I */ sx2 rI rw2.y2I */ sy2 rI rh2.dxI +- x2I 0 x1I.dyI +- y2I 0 y1I.dI mod dxI dyI 0.v1 */ x1I y2I 1.v2 */ x2I y1I 1.DI +- v1 0 v2.v3 */ rI rI 1.v4 */ dI dI 1.v5 */ v3 v4 1.v6 */ DI DI 1.v7 +- v5 0 v6.v8 max v7 0.sdelI sqrt v8.v9 */ sdyO dxI 1.v10 */ v9 sdelI 1.v11 */ DI dyI 1.dxC1 +/ v11 v10 v4.v12 +- v11 0 v10.dxC2 */ v12 1 v4.adyI abs dyI.v13 */ adyI sdelI 1.v14 */ DI dxI -1.dyC1 +/ v14 v13 v4.v15 +- v14 0 v13.dyC2 */ v15 1 v4.v16 +- x1I 0 dxC1.v17 +- x1I 0 dxC2.v18 +- y1I 0 dyC1.v19 +- y1I 0 dyC2.v20 mod v16 v18 0.v21 mod v17 v19 0.v22 +- v21 0 v20.dxC ?: v22 dxC1 dxC2.dyC ?: v22 dyC1 dyC2.sdxC */ dxC rw2 rI.sdyC */ dyC rh2 rI.xC +- hc sdxC 0.yC +- vc sdyC 0.ist0 at2 sdxC sdyC.ist1 +- ist0 21600000 0.istAng ?: ist0 ist0 ist1.isw1 +- stAng 0 istAng.isw2 +- isw1 0 21600000.iswAng ?: isw1 isw2 isw1.p1 +- xF 0 xC.p2 +- yF 0 yC.p3 mod p1 p2 0.p4 */ p3 1 2.p5 +- p4 0 thh.xGp ?: p5 xF xG.yGp ?: p5 yF yG.xBp ?: p5 xC xB.yBp ?: p5 yC yB.en0 at2 sdxF sdyF.en1 +- en0 21600000 0.en2 ?: en0 en0 en1.sw0 +- en2 0 stAng.sw1 +- sw0 21600000 0.swAng ?: sw0 sw0 sw1.wtI sin rw3 stAng.htI cos rh3 stAng.dxI cat2 rw3 htI wtI.dyI sat2 rh3 htI wtI.xI +- hc dxI 0.yI +- vc dyI 0.aI +- stAng 0 cd4.aA +- ptAng cd4 0.aB +- ptAng cd2 0.idx cos rw1 2700000.idy sin rh1 2700000.il +- hc 0 idx.ir +- hc idx 0.it +- vc 0 idy.ib +- vc idy 0`.split(`.`),ah:[`polar _ adj2 xA yA _ _ 0 maxAng`,`polar _ adj4 xE yE _ _ 0 21599999`,`polar adj1 adj3 xF yF 0 maxAdj1 0 21599999`,`polar adj5 _ xB yB 0 25000 _ _`],cxn:1,rect:`il it ir ib`,paths:[{d:`M xE yE A rw1 rh1 stAng swAng L xGp yGp L xA yA L xBp yBp L xC yC A rw2 rh2 istAng iswAng Z`}]},curvedDownArrow:{av:[`adj1 val 25000`,`adj2 val 50000`,`adj3 val 25000`],gd:`maxAdj2 */ 50000 w ss.a2 pin 0 adj2 maxAdj2.a1 pin 0 adj1 100000.th */ ss a1 100000.aw */ ss a2 100000.q1 +/ th aw 4.wR +- wd2 0 q1.q7 */ wR 2 1.q8 */ q7 q7 1.q9 */ th th 1.q10 +- q8 0 q9.q11 sqrt q10.idy */ q11 h q7.maxAdj3 */ 100000 idy ss.a3 pin 0 adj3 maxAdj3.ah */ ss adj3 100000.x3 +- wR th 0.q2 */ h h 1.q3 */ ah ah 1.q4 +- q2 0 q3.q5 sqrt q4.dx */ q5 wR h.x5 +- wR dx 0.x7 +- x3 dx 0.q6 +- aw 0 th.dh */ q6 1 2.x4 +- x5 0 dh.x8 +- x7 dh 0.aw2 */ aw 1 2.x6 +- r 0 aw2.y1 +- b 0 ah.swAng at2 ah dx.mswAng +- 0 0 swAng.iy +- b 0 idy.ix +/ wR x3 2.q12 */ th 1 2.dang2 at2 idy q12.stAng +- 3cd4 swAng 0.stAng2 +- 3cd4 0 dang2.swAng2 +- dang2 0 cd4.swAng3 +- cd4 dang2 0`.split(`.`),ah:[`xy adj1 _ x7 y1 0 adj2 _ _`,`xy adj2 _ x4 b 0 maxAdj2 _ _`,`xy _ adj3 r y1 _ _ 0 maxAdj3`],cxn:[`3cd4 ix t`,`cd4 q12 b`,`cd4 x4 y1`,`cd4 x6 b`,`0 x8 y1`],paths:[{s:0,d:`M x6 b L x4 y1 L x5 y1 A wR h stAng mswAng L x3 t A wR h 3cd4 swAng L x8 y1 Z`},{f:`darkenLess`,s:0,d:`M ix iy A wR h stAng2 swAng2 L l b A wR h cd2 swAng3 Z`},{f:`none`,d:`M ix iy A wR h stAng2 swAng2 L l b A wR h cd2 cd4 L x3 t A wR h 3cd4 swAng L x8 y1 L x6 b L x4 y1 L x5 y1 A wR h stAng mswAng`}]},curvedLeftArrow:{av:[`adj1 val 25000`,`adj2 val 50000`,`adj3 val 25000`],gd:`maxAdj2 */ 50000 h ss.a2 pin 0 adj2 maxAdj2.a1 pin 0 adj1 a2.th */ ss a1 100000.aw */ ss a2 100000.q1 +/ th aw 4.hR +- hd2 0 q1.q7 */ hR 2 1.q8 */ q7 q7 1.q9 */ th th 1.q10 +- q8 0 q9.q11 sqrt q10.idx */ q11 w q7.maxAdj3 */ 100000 idx ss.a3 pin 0 adj3 maxAdj3.ah */ ss a3 100000.y3 +- hR th 0.q2 */ w w 1.q3 */ ah ah 1.q4 +- q2 0 q3.q5 sqrt q4.dy */ q5 hR w.y5 +- hR dy 0.y7 +- y3 dy 0.q6 +- aw 0 th.dh */ q6 1 2.y4 +- y5 0 dh.y8 +- y7 dh 0.aw2 */ aw 1 2.y6 +- b 0 aw2.x1 +- l ah 0.swAng at2 ah dy.mswAng +- 0 0 swAng.ix +- l idx 0.iy +/ hR y3 2.q12 */ th 1 2.dang2 at2 idx q12.swAng2 +- dang2 0 swAng.swAng3 +- swAng dang2 0.stAng3 +- 0 0 dang2`.split(`.`),ah:[`xy _ adj1 x1 y5 _ _ 0 a2`,`xy _ adj2 r y4 _ _ 0 maxAdj2`,`xy adj3 _ x1 b 0 maxAdj3 _ _`],cxn:[`cd2 l q12`,`cd2 x1 y4`,`cd3 l y6`,`cd4 x1 y8`,`0 r iy`],paths:[{s:0,d:`M l y6 L x1 y4 L x1 y5 A w hR swAng swAng2 A w hR stAng3 swAng3 L x1 y8 Z`},{f:`darkenLess`,s:0,d:`M r y3 A w hR 0 -5400000 L l t A w hR 3cd4 cd4 Z`},{f:`none`,d:`M r y3 A w hR 0 -5400000 L l t A w hR 3cd4 cd4 L r y3 A w hR 0 swAng L x1 y8 L l y6 L x1 y4 L x1 y5 A w hR swAng swAng2`}]},curvedRightArrow:{av:[`adj1 val 25000`,`adj2 val 50000`,`adj3 val 25000`],gd:`maxAdj2 */ 50000 h ss.a2 pin 0 adj2 maxAdj2.a1 pin 0 adj1 a2.th */ ss a1 100000.aw */ ss a2 100000.q1 +/ th aw 4.hR +- hd2 0 q1.q7 */ hR 2 1.q8 */ q7 q7 1.q9 */ th th 1.q10 +- q8 0 q9.q11 sqrt q10.idx */ q11 w q7.maxAdj3 */ 100000 idx ss.a3 pin 0 adj3 maxAdj3.ah */ ss a3 100000.y3 +- hR th 0.q2 */ w w 1.q3 */ ah ah 1.q4 +- q2 0 q3.q5 sqrt q4.dy */ q5 hR w.y5 +- hR dy 0.y7 +- y3 dy 0.q6 +- aw 0 th.dh */ q6 1 2.y4 +- y5 0 dh.y8 +- y7 dh 0.aw2 */ aw 1 2.y6 +- b 0 aw2.x1 +- r 0 ah.swAng at2 ah dy.stAng +- cd2 0 swAng.mswAng +- 0 0 swAng.ix +- r 0 idx.iy +/ hR y3 2.q12 */ th 1 2.dang2 at2 idx q12.swAng2 +- dang2 0 cd4.swAng3 +- cd4 dang2 0.stAng3 +- cd2 0 dang2`.split(`.`),ah:[`xy _ adj1 x1 y5 _ _ 0 a2`,`xy _ adj2 r y4 _ _ 0 maxAdj2`,`xy adj3 _ x1 b 0 maxAdj3 _ _`],cxn:[`cd2 l iy`,`cd4 x1 y8`,`0 r y6`,`0 x1 y4`,`0 r q12`],paths:[{s:0,d:`M l hR A w hR cd2 mswAng L x1 y4 L r y6 L x1 y8 L x1 y7 A w hR stAng swAng Z`},{f:`darkenLess`,s:0,d:`M r th A w hR 3cd4 swAng2 A w hR stAng3 swAng3 Z`},{f:`none`,d:`M l hR A w hR cd2 mswAng L x1 y4 L r y6 L x1 y8 L x1 y7 A w hR stAng swAng L l hR A w hR cd2 cd4 L r th A w hR 3cd4 swAng2`}]},curvedUpArrow:{av:[`adj1 val 25000`,`adj2 val 50000`,`adj3 val 25000`],gd:`maxAdj2 */ 50000 w ss.a2 pin 0 adj2 maxAdj2.a1 pin 0 adj1 100000.th */ ss a1 100000.aw */ ss a2 100000.q1 +/ th aw 4.wR +- wd2 0 q1.q7 */ wR 2 1.q8 */ q7 q7 1.q9 */ th th 1.q10 +- q8 0 q9.q11 sqrt q10.idy */ q11 h q7.maxAdj3 */ 100000 idy ss.a3 pin 0 adj3 maxAdj3.ah */ ss adj3 100000.x3 +- wR th 0.q2 */ h h 1.q3 */ ah ah 1.q4 +- q2 0 q3.q5 sqrt q4.dx */ q5 wR h.x5 +- wR dx 0.x7 +- x3 dx 0.q6 +- aw 0 th.dh */ q6 1 2.x4 +- x5 0 dh.x8 +- x7 dh 0.aw2 */ aw 1 2.x6 +- r 0 aw2.y1 +- t ah 0.swAng at2 ah dx.mswAng +- 0 0 swAng.iy +- t idy 0.ix +/ wR x3 2.q12 */ th 1 2.dang2 at2 idy q12.swAng2 +- dang2 0 swAng.mswAng2 +- 0 0 swAng2.stAng3 +- cd4 0 swAng.swAng3 +- swAng dang2 0.stAng2 +- cd4 0 dang2`.split(`.`),ah:[`xy adj1 _ x7 y1 0 a2 _ _`,`xy adj2 _ x4 t 0 maxAdj2 _ _`,`xy _ adj3 r y1 _ _ 0 maxAdj3`],cxn:[`3cd4 x6 t`,`3cd4 x4 y1`,`3cd4 q12 t`,`cd4 ix b`,`0 x8 y1`],paths:[{s:0,d:`M x6 t L x8 y1 L x7 y1 A wR h stAng3 swAng3 A wR h stAng2 swAng2 L x4 y1 Z`},{f:`darkenLess`,s:0,d:`M wR b A wR h cd4 cd4 L th t A wR h cd2 -5400000 Z`},{f:`none`,d:`M ix iy A wR h stAng2 swAng2 L x4 y1 L x6 t L x8 y1 L x7 y1 A wR h stAng3 swAng L wR b A wR h cd4 cd4 L th t A wR h cd2 -5400000`}]},downArrow:{av:[`adj1 val 50000`,`adj2 val 50000`],gd:[`maxAdj2 */ 100000 h ss`,`a1 pin 0 adj1 100000`,`a2 pin 0 adj2 maxAdj2`,`dy1 */ ss a2 100000`,`y1 +- b 0 dy1`,`dx1 */ w a1 200000`,`x1 +- hc 0 dx1`,`x2 +- hc dx1 0`,`dy2 */ x1 dy1 wd2`,`y2 +- y1 dy2 0`],ah:[`xy adj1 _ x1 t 0 100000 _ _`,`xy _ adj2 l y1 _ _ 0 maxAdj2`],cxn:2,rect:`x1 t x2 y2`,paths:[{d:`M l y1 L x1 y1 L x1 t L x2 t L x2 y1 L r y1 L hc b Z`}]},downArrowCallout:{av:[`adj1 val 25000`,`adj2 val 25000`,`adj3 val 25000`,`adj4 val 64977`],gd:[`maxAdj2 */ 50000 w ss`,`a2 pin 0 adj2 maxAdj2`,`maxAdj1 */ a2 2 1`,`a1 pin 0 adj1 maxAdj1`,`maxAdj3 */ 100000 h ss`,`a3 pin 0 adj3 maxAdj3`,`q2 */ a3 ss h`,`maxAdj4 +- 100000 0 q2`,`a4 pin 0 adj4 maxAdj4`,`dx1 */ ss a2 100000`,`dx2 */ ss a1 200000`,`x1 +- hc 0 dx1`,`x2 +- hc 0 dx2`,`x3 +- hc dx2 0`,`x4 +- hc dx1 0`,`dy3 */ ss a3 100000`,`y3 +- b 0 dy3`,`y2 */ h a4 100000`,`y1 */ y2 1 2`],ah:[`xy adj1 _ x2 y3 0 maxAdj1 _ _`,`xy adj2 _ x1 b 0 maxAdj2 _ _`,`xy _ adj3 r y3 _ _ 0 maxAdj3`,`xy _ adj4 l y2 _ _ 0 maxAdj4`],cxn:2,rect:`l t r y2`,paths:[{d:`M l t L r t L r y2 L x3 y2 L x3 y3 L x4 y3 L hc b L x1 y3 L x2 y3 L x2 y2 L l y2 Z`}]},homePlate:{av:[`adj val 50000`],gd:[`maxAdj */ 100000 w ss`,`a pin 0 adj maxAdj`,`dx1 */ ss a 100000`,`x1 +- r 0 dx1`,`ir +/ x1 r 2`,`x2 */ x1 1 2`],ah:[`xy adj _ x1 t 0 maxAdj _ _`],cxn:[`3cd4 x2 t`,`cd2 l vc`,`cd4 x1 b`,`0 r vc`],rect:`l t ir b`,paths:[{d:`M l t L x1 t L r vc L x1 b L l b Z`}]},leftArrow:{av:[`adj1 val 50000`,`adj2 val 50000`],gd:[`maxAdj2 */ 100000 w ss`,`a1 pin 0 adj1 100000`,`a2 pin 0 adj2 maxAdj2`,`dx2 */ ss a2 100000`,`x2 +- l dx2 0`,`dy1 */ h a1 200000`,`y1 +- vc 0 dy1`,`y2 +- vc dy1 0`,`dx1 */ y1 dx2 hd2`,`x1 +- x2 0 dx1`],ah:[`xy _ adj1 r y1 _ _ 0 100000`,`xy adj2 _ x2 t 0 maxAdj2 _ _`],cxn:[`3cd4 x2 t`,`cd2 l vc`,`cd4 x2 b`,`0 r vc`],rect:`x1 y1 r y2`,paths:[{d:`M l vc L x2 t L x2 y1 L r y1 L r y2 L x2 y2 L x2 b Z`}]},leftArrowCallout:{av:[`adj1 val 25000`,`adj2 val 25000`,`adj3 val 25000`,`adj4 val 64977`],gd:[`maxAdj2 */ 50000 h ss`,`a2 pin 0 adj2 maxAdj2`,`maxAdj1 */ a2 2 1`,`a1 pin 0 adj1 maxAdj1`,`maxAdj3 */ 100000 w ss`,`a3 pin 0 adj3 maxAdj3`,`q2 */ a3 ss w`,`maxAdj4 +- 100000 0 q2`,`a4 pin 0 adj4 maxAdj4`,`dy1 */ ss a2 100000`,`dy2 */ ss a1 200000`,`y1 +- vc 0 dy1`,`y2 +- vc 0 dy2`,`y3 +- vc dy2 0`,`y4 +- vc dy1 0`,`x1 */ ss a3 100000`,`dx2 */ w a4 100000`,`x2 +- r 0 dx2`,`x3 +/ x2 r 2`],ah:[`xy _ adj1 x1 y2 _ _ 0 maxAdj1`,`xy _ adj2 l y1 _ _ 0 maxAdj2`,`xy adj3 _ x1 t 0 maxAdj3 _ _`,`xy adj4 _ x2 b 0 maxAdj4 _ _`],cxn:[`3cd4 x3 t`,`cd2 l vc`,`cd4 x3 b`,`0 r vc`],rect:`x2 t r b`,paths:[{d:`M l vc L x1 y1 L x1 y2 L x2 y2 L x2 t L r t L r b L x2 b L x2 y3 L x1 y3 L x1 y4 Z`}]},leftCircularArrow:{av:[`adj1 val 12500`,`adj2 val -1142319`,`adj3 val 1142319`,`adj4 val 10800000`,`adj5 val 12500`],gd:`a5 pin 0 adj5 25000.maxAdj1 */ a5 2 1.a1 pin 0 adj1 maxAdj1.enAng pin 1 adj3 21599999.stAng pin 0 adj4 21599999.th */ ss a1 100000.thh */ ss a5 100000.th2 */ th 1 2.rw1 +- wd2 th2 thh.rh1 +- hd2 th2 thh.rw2 +- rw1 0 th.rh2 +- rh1 0 th.rw3 +- rw2 th2 0.rh3 +- rh2 th2 0.wtH sin rw3 enAng.htH cos rh3 enAng.dxH cat2 rw3 htH wtH.dyH sat2 rh3 htH wtH.xH +- hc dxH 0.yH +- vc dyH 0.rI min rw2 rh2.u1 */ dxH dxH 1.u2 */ dyH dyH 1.u3 */ rI rI 1.u4 +- u1 0 u3.u5 +- u2 0 u3.u6 */ u4 u5 u1.u7 */ u6 1 u2.u8 +- 1 0 u7.u9 sqrt u8.u10 */ u4 1 dxH.u11 */ u10 1 dyH.u12 +/ 1 u9 u11.u13 at2 1 u12.u14 +- u13 21600000 0.u15 ?: u13 u13 u14.u16 +- u15 0 enAng.u17 +- u16 21600000 0.u18 ?: u16 u16 u17.u19 +- u18 0 cd2.u20 +- u18 0 21600000.u21 ?: u19 u20 u18.u22 abs u21.minAng */ u22 -1 1.u23 abs adj2.a2 */ u23 -1 1.aAng pin minAng a2 0.ptAng +- enAng aAng 0.wtA sin rw3 ptAng.htA cos rh3 ptAng.dxA cat2 rw3 htA wtA.dyA sat2 rh3 htA wtA.xA +- hc dxA 0.yA +- vc dyA 0.wtE sin rw1 stAng.htE cos rh1 stAng.dxE cat2 rw1 htE wtE.dyE sat2 rh1 htE wtE.xE +- hc dxE 0.yE +- vc dyE 0.wtD sin rw2 stAng.htD cos rh2 stAng.dxD cat2 rw2 htD wtD.dyD sat2 rh2 htD wtD.xD +- hc dxD 0.yD +- vc dyD 0.dxG cos thh ptAng.dyG sin thh ptAng.xG +- xH dxG 0.yG +- yH dyG 0.dxB cos thh ptAng.dyB sin thh ptAng.xB +- xH 0 dxB 0.yB +- yH 0 dyB 0.sx1 +- xB 0 hc.sy1 +- yB 0 vc.sx2 +- xG 0 hc.sy2 +- yG 0 vc.rO min rw1 rh1.x1O */ sx1 rO rw1.y1O */ sy1 rO rh1.x2O */ sx2 rO rw1.y2O */ sy2 rO rh1.dxO +- x2O 0 x1O.dyO +- y2O 0 y1O.dO mod dxO dyO 0.q1 */ x1O y2O 1.q2 */ x2O y1O 1.DO +- q1 0 q2.q3 */ rO rO 1.q4 */ dO dO 1.q5 */ q3 q4 1.q6 */ DO DO 1.q7 +- q5 0 q6.q8 max q7 0.sdelO sqrt q8.ndyO */ dyO -1 1.sdyO ?: ndyO -1 1.q9 */ sdyO dxO 1.q10 */ q9 sdelO 1.q11 */ DO dyO 1.dxF1 +/ q11 q10 q4.q12 +- q11 0 q10.dxF2 */ q12 1 q4.adyO abs dyO.q13 */ adyO sdelO 1.q14 */ DO dxO -1.dyF1 +/ q14 q13 q4.q15 +- q14 0 q13.dyF2 */ q15 1 q4.q16 +- x2O 0 dxF1.q17 +- x2O 0 dxF2.q18 +- y2O 0 dyF1.q19 +- y2O 0 dyF2.q20 mod q16 q18 0.q21 mod q17 q19 0.q22 +- q21 0 q20.dxF ?: q22 dxF1 dxF2.dyF ?: q22 dyF1 dyF2.sdxF */ dxF rw1 rO.sdyF */ dyF rh1 rO.xF +- hc sdxF 0.yF +- vc sdyF 0.x1I */ sx1 rI rw2.y1I */ sy1 rI rh2.x2I */ sx2 rI rw2.y2I */ sy2 rI rh2.dxI +- x2I 0 x1I.dyI +- y2I 0 y1I.dI mod dxI dyI 0.v1 */ x1I y2I 1.v2 */ x2I y1I 1.DI +- v1 0 v2.v3 */ rI rI 1.v4 */ dI dI 1.v5 */ v3 v4 1.v6 */ DI DI 1.v7 +- v5 0 v6.v8 max v7 0.sdelI sqrt v8.v9 */ sdyO dxI 1.v10 */ v9 sdelI 1.v11 */ DI dyI 1.dxC1 +/ v11 v10 v4.v12 +- v11 0 v10.dxC2 */ v12 1 v4.adyI abs dyI.v13 */ adyI sdelI 1.v14 */ DI dxI -1.dyC1 +/ v14 v13 v4.v15 +- v14 0 v13.dyC2 */ v15 1 v4.v16 +- x1I 0 dxC1.v17 +- x1I 0 dxC2.v18 +- y1I 0 dyC1.v19 +- y1I 0 dyC2.v20 mod v16 v18 0.v21 mod v17 v19 0.v22 +- v21 0 v20.dxC ?: v22 dxC1 dxC2.dyC ?: v22 dyC1 dyC2.sdxC */ dxC rw2 rI.sdyC */ dyC rh2 rI.xC +- hc sdxC 0.yC +- vc sdyC 0.ist0 at2 sdxC sdyC.ist1 +- ist0 21600000 0.istAng0 ?: ist0 ist0 ist1.isw1 +- stAng 0 istAng0.isw2 +- isw1 21600000 0.iswAng0 ?: isw1 isw1 isw2.istAng +- istAng0 iswAng0 0.iswAng +- 0 0 iswAng0.p1 +- xF 0 xC.p2 +- yF 0 yC.p3 mod p1 p2 0.p4 */ p3 1 2.p5 +- p4 0 thh.xGp ?: p5 xF xG.yGp ?: p5 yF yG.xBp ?: p5 xC xB.yBp ?: p5 yC yB.en0 at2 sdxF sdyF.en1 +- en0 21600000 0.en2 ?: en0 en0 en1.sw0 +- en2 0 stAng.sw1 +- sw0 0 21600000.swAng ?: sw0 sw1 sw0.stAng0 +- stAng swAng 0.swAng0 +- 0 0 swAng.wtI sin rw3 stAng.htI cos rh3 stAng.dxI cat2 rw3 htI wtI.dyI sat2 rh3 htI wtI.xI +- hc dxI 0.yI +- vc dyI 0.aI +- stAng cd4 0.aA +- ptAng 0 cd4.aB +- ptAng cd2 0.idx cos rw1 2700000.idy sin rh1 2700000.il +- hc 0 idx.ir +- hc idx 0.it +- vc 0 idy.ib +- vc idy 0`.split(`.`),ah:[`polar _ adj2 xA yA _ _ minAng 0`,`polar _ adj4 xE yE _ _ 0 21599999`,`polar adj1 adj3 xF yF 0 maxAdj1 0 21599999`,`polar adj5 _ xB yB 0 25000 _ _`],cxn:1,rect:`il it ir ib`,paths:[{d:`M xE yE L xD yD A rw2 rh2 istAng iswAng L xBp yBp L xA yA L xGp yGp L xF yF A rw1 rh1 stAng0 swAng0 Z`}]},leftRightArrow:{av:[`adj1 val 50000`,`adj2 val 50000`],gd:[`maxAdj2 */ 50000 w ss`,`a1 pin 0 adj1 100000`,`a2 pin 0 adj2 maxAdj2`,`x2 */ ss a2 100000`,`x3 +- r 0 x2`,`dy */ h a1 200000`,`y1 +- vc 0 dy`,`y2 +- vc dy 0`,`dx1 */ y1 x2 hd2`,`x1 +- x2 0 dx1`,`x4 +- x3 dx1 0`],ah:[`xy _ adj1 x3 y1 _ _ 0 100000`,`xy adj2 _ x2 t 0 maxAdj2 _ _`],cxn:[`0 r vc`,`cd4 x3 b`,`cd4 x2 b`,`cd2 l vc`,`3cd4 x2 t`,`3cd4 x3 t`],rect:`x1 y1 x4 y2`,paths:[{d:`M l vc L x2 t L x2 y1 L x3 y1 L x3 t L r vc L x3 b L x3 y2 L x2 y2 L x2 b Z`}]},leftRightArrowCallout:{av:[`adj1 val 25000`,`adj2 val 25000`,`adj3 val 25000`,`adj4 val 48123`],gd:[`maxAdj2 */ 50000 h ss`,`a2 pin 0 adj2 maxAdj2`,`maxAdj1 */ a2 2 1`,`a1 pin 0 adj1 maxAdj1`,`maxAdj3 */ 50000 w ss`,`a3 pin 0 adj3 maxAdj3`,`q2 */ a3 ss wd2`,`maxAdj4 +- 100000 0 q2`,`a4 pin 0 adj4 maxAdj4`,`dy1 */ ss a2 100000`,`dy2 */ ss a1 200000`,`y1 +- vc 0 dy1`,`y2 +- vc 0 dy2`,`y3 +- vc dy2 0`,`y4 +- vc dy1 0`,`x1 */ ss a3 100000`,`x4 +- r 0 x1`,`dx2 */ w a4 200000`,`x2 +- hc 0 dx2`,`x3 +- hc dx2 0`],ah:[`xy _ adj1 x1 y2 _ _ 0 maxAdj1`,`xy _ adj2 l y1 _ _ 0 maxAdj2`,`xy adj3 _ x1 t 0 maxAdj3 _ _`,`xy adj4 _ x2 b 0 maxAdj4 _ _`],cxn:0,rect:`x2 t x3 b`,paths:[{d:`M l vc L x1 y1 L x1 y2 L x2 y2 L x2 t L x3 t L x3 y2 L x4 y2 L x4 y1 L r vc L x4 y4 L x4 y3 L x3 y3 L x3 b L x2 b L x2 y3 L x1 y3 L x1 y4 Z`}]},leftRightCircularArrow:{av:[`adj1 val 12500`,`adj2 val 1142319`,`adj3 val 20457681`,`adj4 val 11942319`,`adj5 val 12500`],gd:`a5 pin 0 adj5 25000.maxAdj1 */ a5 2 1.a1 pin 0 adj1 maxAdj1.enAng pin 1 adj3 21599999.stAng pin 0 adj4 21599999.th */ ss a1 100000.thh */ ss a5 100000.th2 */ th 1 2.rw1 +- wd2 th2 thh.rh1 +- hd2 th2 thh.rw2 +- rw1 0 th.rh2 +- rh1 0 th.rw3 +- rw2 th2 0.rh3 +- rh2 th2 0.wtH sin rw3 enAng.htH cos rh3 enAng.dxH cat2 rw3 htH wtH.dyH sat2 rh3 htH wtH.xH +- hc dxH 0.yH +- vc dyH 0.rI min rw2 rh2.u1 */ dxH dxH 1.u2 */ dyH dyH 1.u3 */ rI rI 1.u4 +- u1 0 u3.u5 +- u2 0 u3.u6 */ u4 u5 u1.u7 */ u6 1 u2.u8 +- 1 0 u7.u9 sqrt u8.u10 */ u4 1 dxH.u11 */ u10 1 dyH.u12 +/ 1 u9 u11.u13 at2 1 u12.u14 +- u13 21600000 0.u15 ?: u13 u13 u14.u16 +- u15 0 enAng.u17 +- u16 21600000 0.u18 ?: u16 u16 u17.u19 +- u18 0 cd2.u20 +- u18 0 21600000.u21 ?: u19 u20 u18.maxAng abs u21.aAng pin 0 adj2 maxAng.ptAng +- enAng aAng 0.wtA sin rw3 ptAng.htA cos rh3 ptAng.dxA cat2 rw3 htA wtA.dyA sat2 rh3 htA wtA.xA +- hc dxA 0.yA +- vc dyA 0.dxG cos thh ptAng.dyG sin thh ptAng.xG +- xH dxG 0.yG +- yH dyG 0.dxB cos thh ptAng.dyB sin thh ptAng.xB +- xH 0 dxB 0.yB +- yH 0 dyB 0.sx1 +- xB 0 hc.sy1 +- yB 0 vc.sx2 +- xG 0 hc.sy2 +- yG 0 vc.rO min rw1 rh1.x1O */ sx1 rO rw1.y1O */ sy1 rO rh1.x2O */ sx2 rO rw1.y2O */ sy2 rO rh1.dxO +- x2O 0 x1O.dyO +- y2O 0 y1O.dO mod dxO dyO 0.q1 */ x1O y2O 1.q2 */ x2O y1O 1.DO +- q1 0 q2.q3 */ rO rO 1.q4 */ dO dO 1.q5 */ q3 q4 1.q6 */ DO DO 1.q7 +- q5 0 q6.q8 max q7 0.sdelO sqrt q8.ndyO */ dyO -1 1.sdyO ?: ndyO -1 1.q9 */ sdyO dxO 1.q10 */ q9 sdelO 1.q11 */ DO dyO 1.dxF1 +/ q11 q10 q4.q12 +- q11 0 q10.dxF2 */ q12 1 q4.adyO abs dyO.q13 */ adyO sdelO 1.q14 */ DO dxO -1.dyF1 +/ q14 q13 q4.q15 +- q14 0 q13.dyF2 */ q15 1 q4.q16 +- x2O 0 dxF1.q17 +- x2O 0 dxF2.q18 +- y2O 0 dyF1.q19 +- y2O 0 dyF2.q20 mod q16 q18 0.q21 mod q17 q19 0.q22 +- q21 0 q20.dxF ?: q22 dxF1 dxF2.dyF ?: q22 dyF1 dyF2.sdxF */ dxF rw1 rO.sdyF */ dyF rh1 rO.xF +- hc sdxF 0.yF +- vc sdyF 0.x1I */ sx1 rI rw2.y1I */ sy1 rI rh2.x2I */ sx2 rI rw2.y2I */ sy2 rI rh2.dxI +- x2I 0 x1I.dyI +- y2I 0 y1I.dI mod dxI dyI 0.v1 */ x1I y2I 1.v2 */ x2I y1I 1.DI +- v1 0 v2.v3 */ rI rI 1.v4 */ dI dI 1.v5 */ v3 v4 1.v6 */ DI DI 1.v7 +- v5 0 v6.v8 max v7 0.sdelI sqrt v8.v9 */ sdyO dxI 1.v10 */ v9 sdelI 1.v11 */ DI dyI 1.dxC1 +/ v11 v10 v4.v12 +- v11 0 v10.dxC2 */ v12 1 v4.adyI abs dyI.v13 */ adyI sdelI 1.v14 */ DI dxI -1.dyC1 +/ v14 v13 v4.v15 +- v14 0 v13.dyC2 */ v15 1 v4.v16 +- x1I 0 dxC1.v17 +- x1I 0 dxC2.v18 +- y1I 0 dyC1.v19 +- y1I 0 dyC2.v20 mod v16 v18 0.v21 mod v17 v19 0.v22 +- v21 0 v20.dxC ?: v22 dxC1 dxC2.dyC ?: v22 dyC1 dyC2.sdxC */ dxC rw2 rI.sdyC */ dyC rh2 rI.xC +- hc sdxC 0.yC +- vc sdyC 0.wtI sin rw3 stAng.htI cos rh3 stAng.dxI cat2 rw3 htI wtI.dyI sat2 rh3 htI wtI.xI +- hc dxI 0.yI +- vc dyI 0.lptAng +- stAng 0 aAng.wtL sin rw3 lptAng.htL cos rh3 lptAng.dxL cat2 rw3 htL wtL.dyL sat2 rh3 htL wtL.xL +- hc dxL 0.yL +- vc dyL 0.dxK cos thh lptAng.dyK sin thh lptAng.xK +- xI dxK 0.yK +- yI dyK 0.dxJ cos thh lptAng.dyJ sin thh lptAng.xJ +- xI 0 dxJ 0.yJ +- yI 0 dyJ 0.p1 +- xF 0 xC.p2 +- yF 0 yC.p3 mod p1 p2 0.p4 */ p3 1 2.p5 +- p4 0 thh.xGp ?: p5 xF xG.yGp ?: p5 yF yG.xBp ?: p5 xC xB.yBp ?: p5 yC yB.en0 at2 sdxF sdyF.en1 +- en0 21600000 0.en2 ?: en0 en0 en1.od0 +- en2 0 enAng.od1 +- od0 21600000 0.od2 ?: od0 od0 od1.st0 +- stAng 0 od2.st1 +- st0 21600000 0.st2 ?: st0 st0 st1.sw0 +- en2 0 st2.sw1 +- sw0 21600000 0.swAng ?: sw0 sw0 sw1.ist0 at2 sdxC sdyC.ist1 +- ist0 21600000 0.istAng ?: ist0 ist0 ist1.id0 +- istAng 0 enAng.id1 +- id0 0 21600000.id2 ?: id0 id1 id0.ien0 +- stAng 0 id2.ien1 +- ien0 0 21600000.ien2 ?: ien1 ien1 ien0.isw1 +- ien2 0 istAng.isw2 +- isw1 0 21600000.iswAng ?: isw1 isw2 isw1.wtE sin rw1 st2.htE cos rh1 st2.dxE cat2 rw1 htE wtE.dyE sat2 rh1 htE wtE.xE +- hc dxE 0.yE +- vc dyE 0.wtD sin rw2 ien2.htD cos rh2 ien2.dxD cat2 rw2 htD wtD.dyD sat2 rh2 htD wtD.xD +- hc dxD 0.yD +- vc dyD 0.xKp ?: p5 xE xK.yKp ?: p5 yE yK.xJp ?: p5 xD xJ.yJp ?: p5 yD yJ.aL +- lptAng 0 cd4.aA +- ptAng cd4 0.aB +- ptAng cd2 0.aJ +- lptAng cd2 0.idx cos rw1 2700000.idy sin rh1 2700000.il +- hc 0 idx.ir +- hc idx 0.it +- vc 0 idy.ib +- vc idy 0`.split(`.`),ah:[`polar _ adj2 xA yA _ _ 0 maxAng`,`polar _ adj4 xE yE _ _ 0 21599999`,`polar adj1 adj3 xF yF 0 maxAdj1 0 21599999`,`polar adj5 _ xB yB 0 25000 _ _`],cxn:[`aL xL yL`,`lptAng xKp yKp`,`ptAng xGp yGp`,`aA xA yA`,`aB xBp yBp`,`aJ xJp yJp`],rect:`il it ir ib`,paths:[{d:`M xL yL L xKp yKp L xE yE A rw1 rh1 st2 swAng L xGp yGp L xA yA L xBp yBp L xC yC A rw2 rh2 istAng iswAng L xJp yJp Z`}]},leftRightUpArrow:{av:[`adj1 val 25000`,`adj2 val 25000`,`adj3 val 25000`],gd:[`a2 pin 0 adj2 50000`,`maxAdj1 */ a2 2 1`,`a1 pin 0 adj1 maxAdj1`,`q1 +- 100000 0 maxAdj1`,`maxAdj3 */ q1 1 2`,`a3 pin 0 adj3 maxAdj3`,`x1 */ ss a3 100000`,`dx2 */ ss a2 100000`,`x2 +- hc 0 dx2`,`x5 +- hc dx2 0`,`dx3 */ ss a1 200000`,`x3 +- hc 0 dx3`,`x4 +- hc dx3 0`,`x6 +- r 0 x1`,`dy2 */ ss a2 50000`,`y2 +- b 0 dy2`,`y4 +- b 0 dx2`,`y3 +- y4 0 dx3`,`y5 +- y4 dx3 0`,`il */ dx3 x1 dx2`,`ir +- r 0 il`],ah:[`xy adj1 _ x3 x1 0 maxAdj1 _ _`,`xy adj2 _ x2 t 0 50000 _ _`,`xy _ adj3 r x1 _ _ 0 maxAdj3`],cxn:[`3cd4 hc t`,`cd2 l y4`,`cd4 hc y5`,`0 r y4`],rect:`il y3 ir y5`,paths:[{d:`M l y4 L x1 y2 L x1 y3 L x3 y3 L x3 x1 L x2 x1 L hc t L x5 x1 L x4 x1 L x4 y3 L x6 y3 L x6 y2 L r y4 L x6 b L x6 y5 L x1 y5 L x1 b Z`}]},leftUpArrow:{av:[`adj1 val 25000`,`adj2 val 25000`,`adj3 val 25000`],gd:[`a2 pin 0 adj2 50000`,`maxAdj1 */ a2 2 1`,`a1 pin 0 adj1 maxAdj1`,`maxAdj3 +- 100000 0 maxAdj1`,`a3 pin 0 adj3 maxAdj3`,`x1 */ ss a3 100000`,`dx2 */ ss a2 50000`,`x2 +- r 0 dx2`,`y2 +- b 0 dx2`,`dx4 */ ss a2 100000`,`x4 +- r 0 dx4`,`y4 +- b 0 dx4`,`dx3 */ ss a1 200000`,`x3 +- x4 0 dx3`,`x5 +- x4 dx3 0`,`y3 +- y4 0 dx3`,`y5 +- y4 dx3 0`,`il */ dx3 x1 dx4`,`cx1 +/ x1 x5 2`,`cy1 +/ x1 y5 2`],ah:[`xy _ adj1 x3 y3 _ _ 0 maxAdj1`,`xy adj2 _ x2 t 0 50000 _ _`,`xy _ adj3 x3 x1 _ _ 0 maxAdj3`],cxn:[`3cd4 x4 t`,`cd2 x2 x1`,`3cd4 x1 y2`,`cd2 l y4`,`cd4 x1 b`,`cd4 cx1 y5`,`0 x5 cy1`,`0 r x1`],rect:`il y3 x4 y5`,paths:[{d:`M l y4 L x1 y2 L x1 y3 L x3 y3 L x3 x1 L x2 x1 L x4 t L r x1 L x5 x1 L x5 y5 L x1 y5 L x1 b Z`}]},notchedRightArrow:{av:[`adj1 val 50000`,`adj2 val 50000`],gd:[`maxAdj2 */ 100000 w ss`,`a1 pin 0 adj1 100000`,`a2 pin 0 adj2 maxAdj2`,`dx2 */ ss a2 100000`,`x2 +- r 0 dx2`,`dy1 */ h a1 200000`,`y1 +- vc 0 dy1`,`y2 +- vc dy1 0`,`x1 */ dy1 dx2 hd2`,`x3 +- r 0 x1`],ah:[`xy _ adj1 r y1 _ _ 0 100000`,`xy adj2 _ x2 t 0 maxAdj2 _ _`],cxn:[`3cd4 x2 t`,`cd2 x1 vc`,`cd4 x2 b`,`0 r vc`],rect:`x1 y1 x3 y2`,paths:[{d:`M l y1 L x2 y1 L x2 t L r vc L x2 b L x2 y2 L l y2 L x1 vc Z`}]},quadArrow:{av:[`adj1 val 22500`,`adj2 val 22500`,`adj3 val 22500`],gd:[`a2 pin 0 adj2 50000`,`maxAdj1 */ a2 2 1`,`a1 pin 0 adj1 maxAdj1`,`q1 +- 100000 0 maxAdj1`,`maxAdj3 */ q1 1 2`,`a3 pin 0 adj3 maxAdj3`,`x1 */ ss a3 100000`,`dx2 */ ss a2 100000`,`x2 +- hc 0 dx2`,`x5 +- hc dx2 0`,`dx3 */ ss a1 200000`,`x3 +- hc 0 dx3`,`x4 +- hc dx3 0`,`x6 +- r 0 x1`,`y2 +- vc 0 dx2`,`y5 +- vc dx2 0`,`y3 +- vc 0 dx3`,`y4 +- vc dx3 0`,`y6 +- b 0 x1`,`il */ dx3 x1 dx2`,`ir +- r 0 il`],ah:[`xy adj1 _ x3 x1 0 maxAdj1 _ _`,`xy adj2 _ x2 t 0 50000 _ _`,`xy _ adj3 r x1 _ _ 0 maxAdj3`],cxn:0,rect:`il y3 ir y4`,paths:[{d:`M l vc L x1 y2 L x1 y3 L x3 y3 L x3 x1 L x2 x1 L hc t L x5 x1 L x4 x1 L x4 y3 L x6 y3 L x6 y2 L r vc L x6 y5 L x6 y4 L x4 y4 L x4 y6 L x5 y6 L hc b L x2 y6 L x3 y6 L x3 y4 L x1 y4 L x1 y5 Z`}]},quadArrowCallout:{av:[`adj1 val 18515`,`adj2 val 18515`,`adj3 val 18515`,`adj4 val 48123`],gd:`a2 pin 0 adj2 50000.maxAdj1 */ a2 2 1.a1 pin 0 adj1 maxAdj1.maxAdj3 +- 50000 0 a2.a3 pin 0 adj3 maxAdj3.q2 */ a3 2 1.maxAdj4 +- 100000 0 q2.a4 pin a1 adj4 maxAdj4.dx2 */ ss a2 100000.dx3 */ ss a1 200000.ah */ ss a3 100000.dx1 */ w a4 200000.dy1 */ h a4 200000.x8 +- r 0 ah.x2 +- hc 0 dx1.x7 +- hc dx1 0.x3 +- hc 0 dx2.x6 +- hc dx2 0.x4 +- hc 0 dx3.x5 +- hc dx3 0.y8 +- b 0 ah.y2 +- vc 0 dy1.y7 +- vc dy1 0.y3 +- vc 0 dx2.y6 +- vc dx2 0.y4 +- vc 0 dx3.y5 +- vc dx3 0`.split(`.`),ah:[`xy adj1 _ x4 ah 0 maxAdj1 _ _`,`xy adj2 _ x3 t 0 50000 _ _`,`xy _ adj3 r ah _ _ 0 maxAdj3`,`xy _ adj4 l y2 _ _ a1 maxAdj4`],cxn:0,rect:`x2 y2 x7 y7`,paths:[{d:`M l vc L ah y3 L ah y4 L x2 y4 L x2 y2 L x4 y2 L x4 ah L x3 ah L hc t L x6 ah L x5 ah L x5 y2 L x7 y2 L x7 y4 L x8 y4 L x8 y3 L r vc L x8 y6 L x8 y5 L x7 y5 L x7 y7 L x5 y7 L x5 y8 L x6 y8 L hc b L x3 y8 L x4 y8 L x4 y7 L x2 y7 L x2 y5 L ah y5 L ah y6 Z`}]},rightArrow:{av:[`adj1 val 50000`,`adj2 val 50000`],gd:[`maxAdj2 */ 100000 w ss`,`a1 pin 0 adj1 100000`,`a2 pin 0 adj2 maxAdj2`,`dx1 */ ss a2 100000`,`x1 +- r 0 dx1`,`dy1 */ h a1 200000`,`y1 +- vc 0 dy1`,`y2 +- vc dy1 0`,`dx2 */ y1 dx1 hd2`,`x2 +- x1 dx2 0`],ah:[`xy _ adj1 l y1 _ _ 0 100000`,`xy adj2 _ x1 t 0 maxAdj2 _ _`],cxn:3,rect:`l y1 x2 y2`,paths:[{d:`M l y1 L x1 y1 L x1 t L r vc L x1 b L x1 y2 L l y2 Z`}]},rightArrowCallout:{av:[`adj1 val 25000`,`adj2 val 25000`,`adj3 val 25000`,`adj4 val 64977`],gd:[`maxAdj2 */ 50000 h ss`,`a2 pin 0 adj2 maxAdj2`,`maxAdj1 */ a2 2 1`,`a1 pin 0 adj1 maxAdj1`,`maxAdj3 */ 100000 w ss`,`a3 pin 0 adj3 maxAdj3`,`q2 */ a3 ss w`,`maxAdj4 +- 100000 0 q2`,`a4 pin 0 adj4 maxAdj4`,`dy1 */ ss a2 100000`,`dy2 */ ss a1 200000`,`y1 +- vc 0 dy1`,`y2 +- vc 0 dy2`,`y3 +- vc dy2 0`,`y4 +- vc dy1 0`,`dx3 */ ss a3 100000`,`x3 +- r 0 dx3`,`x2 */ w a4 100000`,`x1 */ x2 1 2`],ah:[`xy _ adj1 x3 y2 _ _ 0 maxAdj1`,`xy _ adj2 r y1 _ _ 0 maxAdj2`,`xy adj3 _ x3 t 0 maxAdj3 _ _`,`xy adj4 _ x2 b 0 maxAdj4 _ _`],cxn:3,rect:`l t x2 b`,paths:[{d:`M l t L x2 t L x2 y2 L x3 y2 L x3 y1 L r vc L x3 y4 L x3 y3 L x2 y3 L x2 b L l b Z`}]},stripedRightArrow:{av:[`adj1 val 50000`,`adj2 val 50000`],gd:[`maxAdj2 */ 84375 w ss`,`a1 pin 0 adj1 100000`,`a2 pin 0 adj2 maxAdj2`,`x4 */ ss 5 32`,`dx5 */ ss a2 100000`,`x5 +- r 0 dx5`,`dy1 */ h a1 200000`,`y1 +- vc 0 dy1`,`y2 +- vc dy1 0`,`dx6 */ dy1 dx5 hd2`,`x6 +- r 0 dx6`],ah:[`xy _ adj1 l y1 _ _ 0 100000`,`xy adj2 _ x5 t 0 maxAdj2 _ _`],cxn:[`3cd4 x5 t`,`cd2 l vc`,`cd4 x5 b`,`0 r vc`],rect:`x4 y1 x6 y2`,paths:[{d:`M l y1 L ssd32 y1 L ssd32 y2 L l y2 Z M ssd16 y1 L ssd8 y1 L ssd8 y2 L ssd16 y2 Z M x4 y1 L x5 y1 L x5 t L r vc L x5 b L x5 y2 L x4 y2 Z`}]},swooshArrow:{av:[`adj1 val 25000`,`adj2 val 16667`],gd:[`a1 pin 1 adj1 75000`,`maxAdj2 */ 70000 w ss`,`a2 pin 0 adj2 maxAdj2`,`ad1 */ h a1 100000`,`ad2 */ ss a2 100000`,`xB +- r 0 ad2`,`yB +- t ssd8 0`,`alfa */ cd4 1 14`,`dx0 tan ssd8 alfa`,`xC +- xB 0 dx0`,`dx1 tan ad1 alfa`,`yF +- yB ad1 0`,`xF +- xB dx1 0`,`xE +- xF dx0 0`,`yE +- yF ssd8 0`,`dy2 +- yE 0 t`,`dy22 */ dy2 1 2`,`dy3 */ h 1 20`,`yD +- t dy22 dy3`,`dy4 */ hd6 1 1`,`yP1 +- hd6 dy4 0`,`xP1 val wd6`,`dy5 */ hd6 1 2`,`yP2 +- yF dy5 0`,`xP2 val wd4`],ah:[`xy _ adj1 xF yF _ _ 1 75000`,`xy adj2 _ xB yB 0 maxAdj2 _ _`],cxn:[`cd4 l b`,`3cd4 xC t`,`0 r yD`,`cd4 xE yE`],paths:[{d:`M l b Q xP1 yP1 xB yB L xC t L r yD L xE yE L xF yF Q xP2 yP2 l b Z`}]},upArrow:{av:[`adj1 val 50000`,`adj2 val 50000`],gd:[`maxAdj2 */ 100000 h ss`,`a1 pin 0 adj1 100000`,`a2 pin 0 adj2 maxAdj2`,`dy2 */ ss a2 100000`,`y2 +- t dy2 0`,`dx1 */ w a1 200000`,`x1 +- hc 0 dx1`,`x2 +- hc dx1 0`,`dy1 */ x1 dy2 wd2`,`y1 +- y2 0 dy1`],ah:[`xy adj1 _ x1 b 0 100000 _ _`,`xy _ adj2 l y2 _ _ 0 maxAdj2`],cxn:4,rect:`x1 y1 x2 b`,paths:[{d:`M l y2 L hc t L r y2 L x2 y2 L x2 b L x1 b L x1 y2 Z`}]},upArrowCallout:{av:[`adj1 val 25000`,`adj2 val 25000`,`adj3 val 25000`,`adj4 val 64977`],gd:[`maxAdj2 */ 50000 w ss`,`a2 pin 0 adj2 maxAdj2`,`maxAdj1 */ a2 2 1`,`a1 pin 0 adj1 maxAdj1`,`maxAdj3 */ 100000 h ss`,`a3 pin 0 adj3 maxAdj3`,`q2 */ a3 ss h`,`maxAdj4 +- 100000 0 q2`,`a4 pin 0 adj4 maxAdj4`,`dx1 */ ss a2 100000`,`dx2 */ ss a1 200000`,`x1 +- hc 0 dx1`,`x2 +- hc 0 dx2`,`x3 +- hc dx2 0`,`x4 +- hc dx1 0`,`y1 */ ss a3 100000`,`dy2 */ h a4 100000`,`y2 +- b 0 dy2`,`y3 +/ y2 b 2`],ah:[`xy adj1 _ x2 y1 0 maxAdj1 _ _`,`xy adj2 _ x1 t 0 maxAdj2 _ _`,`xy _ adj3 r y1 _ _ 0 maxAdj3`,`xy _ adj4 l y2 _ _ 0 maxAdj4`],cxn:4,rect:`l y2 r b`,paths:[{d:`M l y2 L x2 y2 L x2 y1 L x1 y1 L hc t L x4 y1 L x3 y1 L x3 y2 L r y2 L r b L l b Z`}]},upDownArrow:{av:[`adj1 val 50000`,`adj2 val 50000`],gd:[`maxAdj2 */ 50000 h ss`,`a1 pin 0 adj1 100000`,`a2 pin 0 adj2 maxAdj2`,`y2 */ ss a2 100000`,`y3 +- b 0 y2`,`dx1 */ w a1 200000`,`x1 +- hc 0 dx1`,`x2 +- hc dx1 0`,`dy1 */ x1 y2 wd2`,`y1 +- y2 0 dy1`,`y4 +- y3 dy1 0`],ah:[`xy adj1 _ x1 y3 0 100000 _ _`,`xy _ adj2 l y2 _ _ 0 maxAdj2`],cxn:[`3cd4 hc t`,`cd2 l y2`,`cd2 x1 vc`,`cd2 l y3`,`cd4 hc b`,`0 r y3`,`0 x2 vc`,`0 r y2`],rect:`x1 y1 x2 y4`,paths:[{d:`M l y2 L hc t L r y2 L x2 y2 L x2 y3 L r y3 L hc b L l y3 L x1 y3 L x1 y2 Z`}]},upDownArrowCallout:{av:[`adj1 val 25000`,`adj2 val 25000`,`adj3 val 25000`,`adj4 val 48123`],gd:[`maxAdj2 */ 50000 w ss`,`a2 pin 0 adj2 maxAdj2`,`maxAdj1 */ a2 2 1`,`a1 pin 0 adj1 maxAdj1`,`maxAdj3 */ 50000 h ss`,`a3 pin 0 adj3 maxAdj3`,`q2 */ a3 ss hd2`,`maxAdj4 +- 100000 0 q2`,`a4 pin 0 adj4 maxAdj4`,`dx1 */ ss a2 100000`,`dx2 */ ss a1 200000`,`x1 +- hc 0 dx1`,`x2 +- hc 0 dx2`,`x3 +- hc dx2 0`,`x4 +- hc dx1 0`,`y1 */ ss a3 100000`,`y4 +- b 0 y1`,`dy2 */ h a4 200000`,`y2 +- vc 0 dy2`,`y3 +- vc dy2 0`],ah:[`xy adj1 _ x2 y1 0 maxAdj1 _ _`,`xy adj2 _ x1 t 0 maxAdj2 _ _`,`xy _ adj3 r y1 _ _ 0 maxAdj3`,`xy _ adj4 l y2 _ _ 0 maxAdj4`],cxn:0,rect:`l y2 r y3`,paths:[{d:`M l y2 L x2 y2 L x2 y1 L x1 y1 L hc t L x4 y1 L x3 y1 L x3 y2 L r y2 L r y3 L x3 y3 L x3 y4 L x4 y4 L hc b L x1 y4 L x2 y4 L x2 y3 L l y3 Z`}]},uturnArrow:{av:[`adj1 val 25000`,`adj2 val 25000`,`adj3 val 25000`,`adj4 val 43750`,`adj5 val 75000`],gd:`a2 pin 0 adj2 25000.maxAdj1 */ a2 2 1.a1 pin 0 adj1 maxAdj1.q2 */ a1 ss h.q3 +- 100000 0 q2.maxAdj3 */ q3 h ss.a3 pin 0 adj3 maxAdj3.q1 +- a3 a1 0.minAdj5 */ q1 ss h.a5 pin minAdj5 adj5 100000.th */ ss a1 100000.aw2 */ ss a2 100000.th2 */ th 1 2.dh2 +- aw2 0 th2.y5 */ h a5 100000.ah */ ss a3 100000.y4 +- y5 0 ah.x9 +- r 0 dh2.bw */ x9 1 2.bs min bw y4.maxAdj4 */ bs 100000 ss.a4 pin 0 adj4 maxAdj4.bd */ ss a4 100000.bd3 +- bd 0 th.bd2 max bd3 0.x3 +- th bd2 0.x8 +- r 0 aw2.x6 +- x8 0 aw2.x7 +- x6 dh2 0.x4 +- x9 0 bd.x5 +- x7 0 bd2.cx +/ th x7 2`.split(`.`),ah:[`xy adj1 _ th b 0 maxAdj1 _ _`,`xy adj2 _ x6 b 0 25000 _ _`,`xy _ adj3 x6 y4 _ _ 0 maxAdj3`,`xy adj4 _ bd t 0 maxAdj4 _ _`,`xy _ adj5 r y5 _ _ minAdj5 100000`],cxn:[`cd4 x6 y4`,`cd4 x8 y5`,`0 r y4`,`3cd4 cx t`,`cd4 th2 b`],paths:[{d:`M l b L l bd A bd bd cd2 cd4 L x4 t A bd bd 3cd4 cd4 L x9 y4 L r y4 L x8 y5 L x6 y4 L x7 y4 L x7 x3 A bd2 bd2 0 -5400000 L x3 th A bd2 bd2 3cd4 -5400000 L th b Z`}]}});export{t as BUILT_IN,e as CXN_SHARED};