@keystrokehq/keystroke 1.0.5 → 1.0.6

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 (965) hide show
  1. package/dist/agent.cjs +43 -22
  2. package/dist/agent.cjs.map +1 -1
  3. package/dist/agent.d.cts +2 -2
  4. package/dist/agent.d.mts +2 -2
  5. package/dist/agent.mjs +43 -22
  6. package/dist/agent.mjs.map +1 -1
  7. package/dist/awk2-LA3USKJP-Bsg1yxMI.cjs +13 -0
  8. package/dist/awk2-LA3USKJP-Bsg1yxMI.cjs.map +1 -0
  9. package/dist/awk2-LA3USKJP-C5Wfjk31.mjs +14 -0
  10. package/dist/awk2-LA3USKJP-C5Wfjk31.mjs.map +1 -0
  11. package/dist/base64-C2AIWVNC-CAa6k7ry.cjs +11 -0
  12. package/dist/base64-C2AIWVNC-CAa6k7ry.cjs.map +1 -0
  13. package/dist/base64-C2AIWVNC-CQNKfoex.mjs +12 -0
  14. package/dist/base64-C2AIWVNC-CQNKfoex.mjs.map +1 -0
  15. package/dist/bash-YZ33HQZQ-D0giTv18.cjs +11 -0
  16. package/dist/bash-YZ33HQZQ-D0giTv18.cjs.map +1 -0
  17. package/dist/bash-YZ33HQZQ-D2MVCG2v.mjs +11 -0
  18. package/dist/bash-YZ33HQZQ-D2MVCG2v.mjs.map +1 -0
  19. package/dist/cat-TSFMZVYS-Agr76aCC.cjs +12 -0
  20. package/dist/cat-TSFMZVYS-Agr76aCC.cjs.map +1 -0
  21. package/dist/cat-TSFMZVYS-CD1APoY5.mjs +13 -0
  22. package/dist/cat-TSFMZVYS-CD1APoY5.mjs.map +1 -0
  23. package/dist/chunk-2JIPICV3-68V6ZUjO.cjs +110 -0
  24. package/dist/chunk-2JIPICV3-68V6ZUjO.cjs.map +1 -0
  25. package/dist/chunk-2JIPICV3-DYcf0-Cy.mjs +100 -0
  26. package/dist/chunk-2JIPICV3-DYcf0-Cy.mjs.map +1 -0
  27. package/dist/chunk-2VDTE5BV-BJyNO5i5.mjs +111 -0
  28. package/dist/chunk-2VDTE5BV-BJyNO5i5.mjs.map +1 -0
  29. package/dist/chunk-2VDTE5BV-BQqrRidX.cjs +121 -0
  30. package/dist/chunk-2VDTE5BV-BQqrRidX.cjs.map +1 -0
  31. package/dist/chunk-46RN27KI-D5sGGom7.mjs +1742 -0
  32. package/dist/chunk-46RN27KI-D5sGGom7.mjs.map +1 -0
  33. package/dist/chunk-46RN27KI-Ix8DoKSJ.cjs +1752 -0
  34. package/dist/chunk-46RN27KI-Ix8DoKSJ.cjs.map +1 -0
  35. package/dist/chunk-4JLVZKHC-Backx4KG.mjs +127 -0
  36. package/dist/chunk-4JLVZKHC-Backx4KG.mjs.map +1 -0
  37. package/dist/chunk-4JLVZKHC-DjiHpNEw.cjs +137 -0
  38. package/dist/chunk-4JLVZKHC-DjiHpNEw.cjs.map +1 -0
  39. package/dist/chunk-4N6J7B5P-Ce0mEHBV.mjs +91 -0
  40. package/dist/chunk-4N6J7B5P-Ce0mEHBV.mjs.map +1 -0
  41. package/dist/chunk-4N6J7B5P-DhOH1Syh.cjs +101 -0
  42. package/dist/chunk-4N6J7B5P-DhOH1Syh.cjs.map +1 -0
  43. package/dist/chunk-5H5SCKJM-DsmV-a3q.mjs +601 -0
  44. package/dist/chunk-5H5SCKJM-DsmV-a3q.mjs.map +1 -0
  45. package/dist/chunk-5H5SCKJM-Tnv523v9.cjs +611 -0
  46. package/dist/chunk-5H5SCKJM-Tnv523v9.cjs.map +1 -0
  47. package/dist/chunk-6LASZU3O-BqzUND0Z.mjs +138 -0
  48. package/dist/chunk-6LASZU3O-BqzUND0Z.mjs.map +1 -0
  49. package/dist/chunk-6LASZU3O-D_JFhTJE.cjs +148 -0
  50. package/dist/chunk-6LASZU3O-D_JFhTJE.cjs.map +1 -0
  51. package/dist/chunk-6VAT5Z2D-sDjWs1F_.mjs +108 -0
  52. package/dist/chunk-6VAT5Z2D-sDjWs1F_.mjs.map +1 -0
  53. package/dist/chunk-6VAT5Z2D-u0kcsLTj.cjs +118 -0
  54. package/dist/chunk-6VAT5Z2D-u0kcsLTj.cjs.map +1 -0
  55. package/dist/chunk-7JHM3L42-DQabtQhs.mjs +138 -0
  56. package/dist/chunk-7JHM3L42-DQabtQhs.mjs.map +1 -0
  57. package/dist/chunk-7JHM3L42-mvOABw38.cjs +148 -0
  58. package/dist/chunk-7JHM3L42-mvOABw38.cjs.map +1 -0
  59. package/dist/chunk-A4R2GWRF-BGEfai-r.cjs +148 -0
  60. package/dist/chunk-A4R2GWRF-BGEfai-r.cjs.map +1 -0
  61. package/dist/chunk-A4R2GWRF-rzehKede.mjs +126 -0
  62. package/dist/chunk-A4R2GWRF-rzehKede.mjs.map +1 -0
  63. package/dist/chunk-ACSZB4FE-B0N-X9Dz.cjs +172 -0
  64. package/dist/chunk-ACSZB4FE-B0N-X9Dz.cjs.map +1 -0
  65. package/dist/chunk-ACSZB4FE-bazOGRZD.mjs +162 -0
  66. package/dist/chunk-ACSZB4FE-bazOGRZD.mjs.map +1 -0
  67. package/dist/chunk-BVKWRAS6-CO9Zsk4V.mjs +129 -0
  68. package/dist/chunk-BVKWRAS6-CO9Zsk4V.mjs.map +1 -0
  69. package/dist/chunk-BVKWRAS6-DVtQSbtn.cjs +139 -0
  70. package/dist/chunk-BVKWRAS6-DVtQSbtn.cjs.map +1 -0
  71. package/dist/chunk-CBJVD2XA-CjUFH9XV.mjs +772 -0
  72. package/dist/chunk-CBJVD2XA-CjUFH9XV.mjs.map +1 -0
  73. package/dist/chunk-CBJVD2XA-D5HCpyR8.cjs +783 -0
  74. package/dist/chunk-CBJVD2XA-D5HCpyR8.cjs.map +1 -0
  75. package/dist/chunk-EBAPSGAO-D9TSE7uP.cjs +250 -0
  76. package/dist/chunk-EBAPSGAO-D9TSE7uP.cjs.map +1 -0
  77. package/dist/chunk-EBAPSGAO-_AIzOTAv.mjs +246 -0
  78. package/dist/chunk-EBAPSGAO-_AIzOTAv.mjs.map +1 -0
  79. package/dist/chunk-FAXLQUCQ-CbRBJQSQ.mjs +65 -0
  80. package/dist/chunk-FAXLQUCQ-CbRBJQSQ.mjs.map +1 -0
  81. package/dist/chunk-FAXLQUCQ-CjMjzZ2I.cjs +75 -0
  82. package/dist/chunk-FAXLQUCQ-CjMjzZ2I.cjs.map +1 -0
  83. package/dist/chunk-FJK43EBQ-Bxghikpk.mjs +238 -0
  84. package/dist/chunk-FJK43EBQ-Bxghikpk.mjs.map +1 -0
  85. package/dist/chunk-FJK43EBQ-Cuos7IK5.cjs +248 -0
  86. package/dist/chunk-FJK43EBQ-Cuos7IK5.cjs.map +1 -0
  87. package/dist/chunk-FW54FHZR-DLKAjtJl.cjs +26 -0
  88. package/dist/chunk-FW54FHZR-DLKAjtJl.cjs.map +1 -0
  89. package/dist/chunk-FW54FHZR-hqH88jyr.mjs +16 -0
  90. package/dist/chunk-FW54FHZR-hqH88jyr.mjs.map +1 -0
  91. package/dist/chunk-FX7KQCEA-BQU3KSWz.mjs +1629 -0
  92. package/dist/chunk-FX7KQCEA-BQU3KSWz.mjs.map +1 -0
  93. package/dist/chunk-FX7KQCEA-Bk2TXrav.cjs +1640 -0
  94. package/dist/chunk-FX7KQCEA-Bk2TXrav.cjs.map +1 -0
  95. package/dist/chunk-FZRQOL3C-Bp9-5Zmg.mjs +121 -0
  96. package/dist/chunk-FZRQOL3C-Bp9-5Zmg.mjs.map +1 -0
  97. package/dist/chunk-FZRQOL3C-CendgWMm.cjs +131 -0
  98. package/dist/chunk-FZRQOL3C-CendgWMm.cjs.map +1 -0
  99. package/dist/chunk-GGC5NEPZ-CAGLViKl.cjs +131 -0
  100. package/dist/chunk-GGC5NEPZ-CAGLViKl.cjs.map +1 -0
  101. package/dist/chunk-GGC5NEPZ-K_o-OenR.mjs +121 -0
  102. package/dist/chunk-GGC5NEPZ-K_o-OenR.mjs.map +1 -0
  103. package/dist/chunk-GIUR5SNU-DoYdeYwo.cjs +896 -0
  104. package/dist/chunk-GIUR5SNU-DoYdeYwo.cjs.map +1 -0
  105. package/dist/chunk-GIUR5SNU-_bEKX5Zr.mjs +885 -0
  106. package/dist/chunk-GIUR5SNU-_bEKX5Zr.mjs.map +1 -0
  107. package/dist/chunk-GJC3WVOW-e51hHrUv.cjs +26 -0
  108. package/dist/chunk-GJC3WVOW-e51hHrUv.cjs.map +1 -0
  109. package/dist/chunk-GJC3WVOW-jVwEcTjm.mjs +16 -0
  110. package/dist/chunk-GJC3WVOW-jVwEcTjm.mjs.map +1 -0
  111. package/dist/chunk-GSPYNYZA-BCcWwAJd.mjs +129 -0
  112. package/dist/chunk-GSPYNYZA-BCcWwAJd.mjs.map +1 -0
  113. package/dist/chunk-GSPYNYZA-BFTwDcSE.cjs +151 -0
  114. package/dist/chunk-GSPYNYZA-BFTwDcSE.cjs.map +1 -0
  115. package/dist/chunk-GTQIUQM6-BJ3uRl49.cjs +163 -0
  116. package/dist/chunk-GTQIUQM6-BJ3uRl49.cjs.map +1 -0
  117. package/dist/chunk-GTQIUQM6-DMxFdbJn.mjs +153 -0
  118. package/dist/chunk-GTQIUQM6-DMxFdbJn.mjs.map +1 -0
  119. package/dist/chunk-HJBTD7PY-BrF_3AqA.cjs +193 -0
  120. package/dist/chunk-HJBTD7PY-BrF_3AqA.cjs.map +1 -0
  121. package/dist/chunk-HJBTD7PY-CyVlJQ2S.mjs +183 -0
  122. package/dist/chunk-HJBTD7PY-CyVlJQ2S.mjs.map +1 -0
  123. package/dist/chunk-ICIEVHY5-BIggbLb4.mjs +2875 -0
  124. package/dist/chunk-ICIEVHY5-BIggbLb4.mjs.map +1 -0
  125. package/dist/chunk-ICIEVHY5-DwD_mBxQ.cjs +2894 -0
  126. package/dist/chunk-ICIEVHY5-DwD_mBxQ.cjs.map +1 -0
  127. package/dist/chunk-KD3KENL6-Cjqq9zgg.cjs +162 -0
  128. package/dist/chunk-KD3KENL6-Cjqq9zgg.cjs.map +1 -0
  129. package/dist/chunk-KD3KENL6-DPGX18C1.mjs +152 -0
  130. package/dist/chunk-KD3KENL6-DPGX18C1.mjs.map +1 -0
  131. package/dist/chunk-LEKBROJD-Dan-FkfJ.cjs +3121 -0
  132. package/dist/chunk-LEKBROJD-Dan-FkfJ.cjs.map +1 -0
  133. package/dist/chunk-LEKBROJD-NeN8dqcJ.mjs +3111 -0
  134. package/dist/chunk-LEKBROJD-NeN8dqcJ.mjs.map +1 -0
  135. package/dist/chunk-LNBPBRV4-BjOa1SZW.mjs +2744 -0
  136. package/dist/chunk-LNBPBRV4-BjOa1SZW.mjs.map +1 -0
  137. package/dist/chunk-LNBPBRV4-i9oD7RNK.cjs +2754 -0
  138. package/dist/chunk-LNBPBRV4-i9oD7RNK.cjs.map +1 -0
  139. package/dist/chunk-LPJEKUCB-CD9-53O5.mjs +95 -0
  140. package/dist/chunk-LPJEKUCB-CD9-53O5.mjs.map +1 -0
  141. package/dist/chunk-LPJEKUCB-D2Vshvt5.cjs +105 -0
  142. package/dist/chunk-LPJEKUCB-D2Vshvt5.cjs.map +1 -0
  143. package/dist/chunk-MLIO3BK2-8o-YWlna.cjs +71 -0
  144. package/dist/chunk-MLIO3BK2-8o-YWlna.cjs.map +1 -0
  145. package/dist/chunk-MLIO3BK2-DYSoKlfn.mjs +61 -0
  146. package/dist/chunk-MLIO3BK2-DYSoKlfn.mjs.map +1 -0
  147. package/dist/chunk-MQKGGNPS-CN4fv8em.mjs +121 -0
  148. package/dist/chunk-MQKGGNPS-CN4fv8em.mjs.map +1 -0
  149. package/dist/chunk-MQKGGNPS-DYzifY7S.cjs +131 -0
  150. package/dist/chunk-MQKGGNPS-DYzifY7S.cjs.map +1 -0
  151. package/dist/chunk-N6DXJ2JN-B_dy8sr9.mjs +8630 -0
  152. package/dist/chunk-N6DXJ2JN-B_dy8sr9.mjs.map +1 -0
  153. package/dist/chunk-N6DXJ2JN-KqAa8cwh.cjs +8640 -0
  154. package/dist/chunk-N6DXJ2JN-KqAa8cwh.cjs.map +1 -0
  155. package/dist/chunk-OVGANXCG-Dw-aZ-C-.cjs +177 -0
  156. package/dist/chunk-OVGANXCG-Dw-aZ-C-.cjs.map +1 -0
  157. package/dist/chunk-OVGANXCG-yeVyf7EJ.mjs +167 -0
  158. package/dist/chunk-OVGANXCG-yeVyf7EJ.mjs.map +1 -0
  159. package/dist/chunk-Q7H5W7YE-Dpax_RCC.cjs +2964 -0
  160. package/dist/chunk-Q7H5W7YE-Dpax_RCC.cjs.map +1 -0
  161. package/dist/chunk-Q7H5W7YE-zOqC7dFv.mjs +2941 -0
  162. package/dist/chunk-Q7H5W7YE-zOqC7dFv.mjs.map +1 -0
  163. package/dist/chunk-R74UQCKX-DNl1Q52U.mjs +15889 -0
  164. package/dist/chunk-R74UQCKX-DNl1Q52U.mjs.map +1 -0
  165. package/dist/chunk-R74UQCKX-EZdevyKE.cjs +15903 -0
  166. package/dist/chunk-R74UQCKX-EZdevyKE.cjs.map +1 -0
  167. package/dist/chunk-S3LEJEPP-B0Q8TJpz.mjs +16 -0
  168. package/dist/chunk-S3LEJEPP-B0Q8TJpz.mjs.map +1 -0
  169. package/dist/chunk-S3LEJEPP-BsUig8Jg.cjs +26 -0
  170. package/dist/chunk-S3LEJEPP-BsUig8Jg.cjs.map +1 -0
  171. package/dist/chunk-S443BAN4-CbOp4s8f.mjs +66 -0
  172. package/dist/chunk-S443BAN4-CbOp4s8f.mjs.map +1 -0
  173. package/dist/chunk-S443BAN4-CusYVjOU.cjs +76 -0
  174. package/dist/chunk-S443BAN4-CusYVjOU.cjs.map +1 -0
  175. package/dist/chunk-SJYEXC2Z-Cn51vvkR.cjs +147 -0
  176. package/dist/chunk-SJYEXC2Z-Cn51vvkR.cjs.map +1 -0
  177. package/dist/chunk-SJYEXC2Z-DrsQeETp.mjs +137 -0
  178. package/dist/chunk-SJYEXC2Z-DrsQeETp.mjs.map +1 -0
  179. package/dist/chunk-T4TFLF3R-CHr2VGrs.cjs +389 -0
  180. package/dist/chunk-T4TFLF3R-CHr2VGrs.cjs.map +1 -0
  181. package/dist/chunk-T4TFLF3R-CxI8qUab.mjs +379 -0
  182. package/dist/chunk-T4TFLF3R-CxI8qUab.mjs.map +1 -0
  183. package/dist/chunk-U73A73IE-BEpgsC89.mjs +239 -0
  184. package/dist/chunk-U73A73IE-BEpgsC89.mjs.map +1 -0
  185. package/dist/chunk-U73A73IE-DyTD9Bif.cjs +249 -0
  186. package/dist/chunk-U73A73IE-DyTD9Bif.cjs.map +1 -0
  187. package/dist/chunk-UP6MSJGD-BDPikXkp.cjs +282 -0
  188. package/dist/chunk-UP6MSJGD-BDPikXkp.cjs.map +1 -0
  189. package/dist/chunk-UP6MSJGD-BXIvsX0C.mjs +272 -0
  190. package/dist/chunk-UP6MSJGD-BXIvsX0C.mjs.map +1 -0
  191. package/dist/chunk-VLCHOJWK-DGQd8f0U.mjs +128 -0
  192. package/dist/chunk-VLCHOJWK-DGQd8f0U.mjs.map +1 -0
  193. package/dist/chunk-VLCHOJWK-syZp3Vmw.cjs +138 -0
  194. package/dist/chunk-VLCHOJWK-syZp3Vmw.cjs.map +1 -0
  195. package/dist/chunk-XCQWV4AU-Bj_KRvmK.mjs +152 -0
  196. package/dist/chunk-XCQWV4AU-Bj_KRvmK.mjs.map +1 -0
  197. package/dist/chunk-XCQWV4AU-DRpOqSMs.cjs +162 -0
  198. package/dist/chunk-XCQWV4AU-DRpOqSMs.cjs.map +1 -0
  199. package/dist/chunk-XDGLKIHR-SUFrvh5B.cjs +464 -0
  200. package/dist/chunk-XDGLKIHR-SUFrvh5B.cjs.map +1 -0
  201. package/dist/chunk-XDGLKIHR-SllttS-8.mjs +430 -0
  202. package/dist/chunk-XDGLKIHR-SllttS-8.mjs.map +1 -0
  203. package/dist/chunk-XHLMAZX2-BknhS3CD.mjs +93 -0
  204. package/dist/chunk-XHLMAZX2-BknhS3CD.mjs.map +1 -0
  205. package/dist/chunk-XHLMAZX2-DiuICHhP.cjs +103 -0
  206. package/dist/chunk-XHLMAZX2-DiuICHhP.cjs.map +1 -0
  207. package/dist/chunk-XYXUMFSU-7LuapzIi.mjs +285 -0
  208. package/dist/chunk-XYXUMFSU-7LuapzIi.mjs.map +1 -0
  209. package/dist/chunk-XYXUMFSU-D9CT51kI.cjs +295 -0
  210. package/dist/chunk-XYXUMFSU-D9CT51kI.cjs.map +1 -0
  211. package/dist/chunk-YCLFEX4T-CM2kWI3U.mjs +76 -0
  212. package/dist/chunk-YCLFEX4T-CM2kWI3U.mjs.map +1 -0
  213. package/dist/chunk-YCLFEX4T-DtyEjr9g.cjs +86 -0
  214. package/dist/chunk-YCLFEX4T-DtyEjr9g.cjs.map +1 -0
  215. package/dist/chunk-YS4NUBYX-7Ku8CDer.cjs +128 -0
  216. package/dist/chunk-YS4NUBYX-7Ku8CDer.cjs.map +1 -0
  217. package/dist/chunk-YS4NUBYX-BgPTB0y1.mjs +118 -0
  218. package/dist/chunk-YS4NUBYX-BgPTB0y1.mjs.map +1 -0
  219. package/dist/chunk-ZDIT6ST5-6YvPqwJ7.cjs +116 -0
  220. package/dist/chunk-ZDIT6ST5-6YvPqwJ7.cjs.map +1 -0
  221. package/dist/chunk-ZDIT6ST5-ChUb35MO.mjs +106 -0
  222. package/dist/chunk-ZDIT6ST5-ChUb35MO.mjs.map +1 -0
  223. package/dist/chunk-ZZKH2ELC-BP0ro1_x.mjs +1370 -0
  224. package/dist/chunk-ZZKH2ELC-BP0ro1_x.mjs.map +1 -0
  225. package/dist/chunk-ZZKH2ELC-BxZGGGBF.cjs +1380 -0
  226. package/dist/chunk-ZZKH2ELC-BxZGGGBF.cjs.map +1 -0
  227. package/dist/column-XT6UFXNQ-BDUmtIhh.mjs +12 -0
  228. package/dist/column-XT6UFXNQ-BDUmtIhh.mjs.map +1 -0
  229. package/dist/column-XT6UFXNQ-CXUm4HFt.cjs +11 -0
  230. package/dist/column-XT6UFXNQ-CXUm4HFt.cjs.map +1 -0
  231. package/dist/comm-VV2LDX2J-AaE7hGd2.mjs +11 -0
  232. package/dist/comm-VV2LDX2J-AaE7hGd2.mjs.map +1 -0
  233. package/dist/comm-VV2LDX2J-BARQTdLU.cjs +10 -0
  234. package/dist/comm-VV2LDX2J-BARQTdLU.cjs.map +1 -0
  235. package/dist/cp-BISAAS7A-BoFio3Zq.cjs +11 -0
  236. package/dist/cp-BISAAS7A-BoFio3Zq.cjs.map +1 -0
  237. package/dist/cp-BISAAS7A-DsQOc9if.mjs +12 -0
  238. package/dist/cp-BISAAS7A-DsQOc9if.mjs.map +1 -0
  239. package/dist/curl-LV5Y3AMS-3murqFnf.mjs +365 -0
  240. package/dist/curl-LV5Y3AMS-3murqFnf.mjs.map +1 -0
  241. package/dist/curl-LV5Y3AMS-Cdx6P1bc.cjs +364 -0
  242. package/dist/curl-LV5Y3AMS-Cdx6P1bc.cjs.map +1 -0
  243. package/dist/cut-OKARJCCV-BbAfVf4C.mjs +12 -0
  244. package/dist/cut-OKARJCCV-BbAfVf4C.mjs.map +1 -0
  245. package/dist/cut-OKARJCCV-DDw10hRu.cjs +11 -0
  246. package/dist/cut-OKARJCCV-DDw10hRu.cjs.map +1 -0
  247. package/dist/diff-MWJFIG7X-CLas6smV.mjs +12 -0
  248. package/dist/diff-MWJFIG7X-CLas6smV.mjs.map +1 -0
  249. package/dist/diff-MWJFIG7X-NvtUFxir.cjs +11 -0
  250. package/dist/diff-MWJFIG7X-NvtUFxir.cjs.map +1 -0
  251. package/dist/dist-CRsUBf24.mjs +21833 -0
  252. package/dist/dist-CRsUBf24.mjs.map +1 -0
  253. package/dist/dist-DO51rYHS.cjs +22786 -0
  254. package/dist/dist-DO51rYHS.cjs.map +1 -0
  255. package/dist/du-572XNP42-Wy2eOMhn.mjs +12 -0
  256. package/dist/du-572XNP42-Wy2eOMhn.mjs.map +1 -0
  257. package/dist/du-572XNP42-dDEEbTX1.cjs +11 -0
  258. package/dist/du-572XNP42-dDEEbTX1.cjs.map +1 -0
  259. package/dist/env-36M5BO7M-BAXuvwk7.cjs +11 -0
  260. package/dist/env-36M5BO7M-BAXuvwk7.cjs.map +1 -0
  261. package/dist/env-36M5BO7M-BOjRwAeO.mjs +11 -0
  262. package/dist/env-36M5BO7M-BOjRwAeO.mjs.map +1 -0
  263. package/dist/expand-JSPG6VOP-C6lRyaq-.mjs +11 -0
  264. package/dist/expand-JSPG6VOP-C6lRyaq-.mjs.map +1 -0
  265. package/dist/expand-JSPG6VOP-CeMMDAbH.cjs +10 -0
  266. package/dist/expand-JSPG6VOP-CeMMDAbH.cjs.map +1 -0
  267. package/dist/expansion-R25BK4W3-CVb77iME.mjs +11 -0
  268. package/dist/expansion-R25BK4W3-CVb77iME.mjs.map +1 -0
  269. package/dist/expansion-R25BK4W3-km42UsJs.cjs +10 -0
  270. package/dist/expansion-R25BK4W3-km42UsJs.cjs.map +1 -0
  271. package/dist/expr-5JAACS4X-6wvqrn7I.mjs +11 -0
  272. package/dist/expr-5JAACS4X-6wvqrn7I.mjs.map +1 -0
  273. package/dist/expr-5JAACS4X-DN6RUYi_.cjs +10 -0
  274. package/dist/expr-5JAACS4X-DN6RUYi_.cjs.map +1 -0
  275. package/dist/find-INTH3OLC-CJ_tNr7A.mjs +15 -0
  276. package/dist/find-INTH3OLC-CJ_tNr7A.mjs.map +1 -0
  277. package/dist/find-INTH3OLC-cCsh7QUd.cjs +14 -0
  278. package/dist/find-INTH3OLC-cCsh7QUd.cjs.map +1 -0
  279. package/dist/flag-coverage-XWSYNE72-C11wAnI8.mjs +194 -0
  280. package/dist/flag-coverage-XWSYNE72-C11wAnI8.mjs.map +1 -0
  281. package/dist/flag-coverage-XWSYNE72-xsiUZ2Uv.cjs +193 -0
  282. package/dist/flag-coverage-XWSYNE72-xsiUZ2Uv.cjs.map +1 -0
  283. package/dist/fold-4TQNYMSW-BgRS35yE.cjs +10 -0
  284. package/dist/fold-4TQNYMSW-BgRS35yE.cjs.map +1 -0
  285. package/dist/fold-4TQNYMSW-BkFpLtPW.mjs +11 -0
  286. package/dist/fold-4TQNYMSW-BkFpLtPW.mjs.map +1 -0
  287. package/dist/grep-V3LQVMRQ-D-wFiXtO.cjs +15 -0
  288. package/dist/grep-V3LQVMRQ-D-wFiXtO.cjs.map +1 -0
  289. package/dist/grep-V3LQVMRQ-DPN9FrPQ.mjs +14 -0
  290. package/dist/grep-V3LQVMRQ-DPN9FrPQ.mjs.map +1 -0
  291. package/dist/gzip-O5ASJAFY-B9_bdmUE.mjs +12 -0
  292. package/dist/gzip-O5ASJAFY-B9_bdmUE.mjs.map +1 -0
  293. package/dist/gzip-O5ASJAFY-lhZQgzvc.cjs +13 -0
  294. package/dist/gzip-O5ASJAFY-lhZQgzvc.cjs.map +1 -0
  295. package/dist/head-442HYESI-CaszWZ_y.mjs +12 -0
  296. package/dist/head-442HYESI-CaszWZ_y.mjs.map +1 -0
  297. package/dist/head-442HYESI-wfQsPgRD.cjs +11 -0
  298. package/dist/head-442HYESI-wfQsPgRD.cjs.map +1 -0
  299. package/dist/help-HZ6M2CKN-0o2Py8lC.mjs +10 -0
  300. package/dist/help-HZ6M2CKN-0o2Py8lC.mjs.map +1 -0
  301. package/dist/help-HZ6M2CKN-CvhvGBWT.cjs +9 -0
  302. package/dist/help-HZ6M2CKN-CvhvGBWT.cjs.map +1 -0
  303. package/dist/html-to-markdown-JW4MSQZO-DSP05KrJ.mjs +11 -0
  304. package/dist/html-to-markdown-JW4MSQZO-DSP05KrJ.mjs.map +1 -0
  305. package/dist/html-to-markdown-JW4MSQZO-DYP7i3n_.cjs +10 -0
  306. package/dist/html-to-markdown-JW4MSQZO-DYP7i3n_.cjs.map +1 -0
  307. package/dist/index-B3iWqXUd.d.mts +280 -0
  308. package/dist/index-B3iWqXUd.d.mts.map +1 -0
  309. package/dist/index-Dd0B13U7.d.cts +336 -0
  310. package/dist/index-Dd0B13U7.d.cts.map +1 -0
  311. package/dist/index-DstR-eGs.d.cts +280 -0
  312. package/dist/index-DstR-eGs.d.cts.map +1 -0
  313. package/dist/index-IhPXtbNf.d.mts +337 -0
  314. package/dist/index-IhPXtbNf.d.mts.map +1 -0
  315. package/dist/join-TBRGI3LQ-CLwXT7j4.mjs +11 -0
  316. package/dist/join-TBRGI3LQ-CLwXT7j4.mjs.map +1 -0
  317. package/dist/join-TBRGI3LQ-bHNmcV0E.cjs +10 -0
  318. package/dist/join-TBRGI3LQ-bHNmcV0E.cjs.map +1 -0
  319. package/dist/jq-4XLYLOS5-BYrgOQR-.mjs +17 -0
  320. package/dist/jq-4XLYLOS5-BYrgOQR-.mjs.map +1 -0
  321. package/dist/jq-4XLYLOS5-DJJGyuG8.cjs +16 -0
  322. package/dist/jq-4XLYLOS5-DJJGyuG8.cjs.map +1 -0
  323. package/dist/js-exec-N5KEZBH7-D4Lzs88c.cjs +326 -0
  324. package/dist/js-exec-N5KEZBH7-D4Lzs88c.cjs.map +1 -0
  325. package/dist/js-exec-N5KEZBH7-IT4wAVKM.mjs +325 -0
  326. package/dist/js-exec-N5KEZBH7-IT4wAVKM.mjs.map +1 -0
  327. package/dist/ln-4LGSXXGD-BBiO0VXN.mjs +11 -0
  328. package/dist/ln-4LGSXXGD-BBiO0VXN.mjs.map +1 -0
  329. package/dist/ln-4LGSXXGD-Dea9eT1o.cjs +10 -0
  330. package/dist/ln-4LGSXXGD-Dea9eT1o.cjs.map +1 -0
  331. package/dist/ls-ZJGQER7M-BMEyfNHk.mjs +12 -0
  332. package/dist/ls-ZJGQER7M-BMEyfNHk.mjs.map +1 -0
  333. package/dist/ls-ZJGQER7M-D3JTk2Ir.cjs +11 -0
  334. package/dist/ls-ZJGQER7M-D3JTk2Ir.cjs.map +1 -0
  335. package/dist/md5sum-SPU24VSG-Bgoo_S_9.cjs +11 -0
  336. package/dist/md5sum-SPU24VSG-Bgoo_S_9.cjs.map +1 -0
  337. package/dist/md5sum-SPU24VSG-FZ-em7Fi.mjs +12 -0
  338. package/dist/md5sum-SPU24VSG-FZ-em7Fi.mjs.map +1 -0
  339. package/dist/microsandbox-CFgApCam-BbimRbAs.cjs +354 -0
  340. package/dist/microsandbox-CFgApCam-BbimRbAs.cjs.map +1 -0
  341. package/dist/microsandbox-CFgApCam-DvPEF4Jh.mjs +353 -0
  342. package/dist/microsandbox-CFgApCam-DvPEF4Jh.mjs.map +1 -0
  343. package/dist/mkdir-MEPGZOB6-C92GPZZj.cjs +11 -0
  344. package/dist/mkdir-MEPGZOB6-C92GPZZj.cjs.map +1 -0
  345. package/dist/mkdir-MEPGZOB6-Dr3I-wmH.mjs +12 -0
  346. package/dist/mkdir-MEPGZOB6-Dr3I-wmH.mjs.map +1 -0
  347. package/dist/mv-W5BIQ646-C6uESvHR.cjs +11 -0
  348. package/dist/mv-W5BIQ646-C6uESvHR.cjs.map +1 -0
  349. package/dist/mv-W5BIQ646-DWjUP97C.mjs +12 -0
  350. package/dist/mv-W5BIQ646-DWjUP97C.mjs.map +1 -0
  351. package/dist/nl-WSDW7I4O-Bis1QH0N.mjs +11 -0
  352. package/dist/nl-WSDW7I4O-Bis1QH0N.mjs.map +1 -0
  353. package/dist/nl-WSDW7I4O-WUHtx6ar.cjs +10 -0
  354. package/dist/nl-WSDW7I4O-WUHtx6ar.cjs.map +1 -0
  355. package/dist/od-WOKFDJTP-CeqINVqf.mjs +10 -0
  356. package/dist/od-WOKFDJTP-CeqINVqf.mjs.map +1 -0
  357. package/dist/od-WOKFDJTP-DZ_PhGba.cjs +9 -0
  358. package/dist/od-WOKFDJTP-DZ_PhGba.cjs.map +1 -0
  359. package/dist/paste-7JC6S4DX-BFJTwcs7.mjs +12 -0
  360. package/dist/paste-7JC6S4DX-BFJTwcs7.mjs.map +1 -0
  361. package/dist/paste-7JC6S4DX-BNnL5s0G.cjs +11 -0
  362. package/dist/paste-7JC6S4DX-BNnL5s0G.cjs.map +1 -0
  363. package/dist/printf-TWGXF445-CsczCwYS.mjs +13 -0
  364. package/dist/printf-TWGXF445-CsczCwYS.mjs.map +1 -0
  365. package/dist/printf-TWGXF445-DGYRYvFv.cjs +12 -0
  366. package/dist/printf-TWGXF445-DGYRYvFv.cjs.map +1 -0
  367. package/dist/python3-POMOR4OA-CSibkSxE.mjs +290 -0
  368. package/dist/python3-POMOR4OA-CSibkSxE.mjs.map +1 -0
  369. package/dist/python3-POMOR4OA-UrjbAdgU.cjs +291 -0
  370. package/dist/python3-POMOR4OA-UrjbAdgU.cjs.map +1 -0
  371. package/dist/rev-5EHFX4EJ-C6bEospo.cjs +10 -0
  372. package/dist/rev-5EHFX4EJ-C6bEospo.cjs.map +1 -0
  373. package/dist/rev-5EHFX4EJ-D9IxPBEV.mjs +11 -0
  374. package/dist/rev-5EHFX4EJ-D9IxPBEV.mjs.map +1 -0
  375. package/dist/rg-S4FXYXWB-6hVw5GJX.mjs +14 -0
  376. package/dist/rg-S4FXYXWB-6hVw5GJX.mjs.map +1 -0
  377. package/dist/rg-S4FXYXWB-eo-s3QO6.cjs +13 -0
  378. package/dist/rg-S4FXYXWB-eo-s3QO6.cjs.map +1 -0
  379. package/dist/rm-SSGETQVQ-DjPZkjcx.mjs +12 -0
  380. package/dist/rm-SSGETQVQ-DjPZkjcx.mjs.map +1 -0
  381. package/dist/rm-SSGETQVQ-pVbmfXAZ.cjs +11 -0
  382. package/dist/rm-SSGETQVQ-pVbmfXAZ.cjs.map +1 -0
  383. package/dist/rmdir-OC4ZLPYA-Dx4mqWyS.mjs +12 -0
  384. package/dist/rmdir-OC4ZLPYA-Dx4mqWyS.mjs.map +1 -0
  385. package/dist/rmdir-OC4ZLPYA-joHTq5dL.cjs +11 -0
  386. package/dist/rmdir-OC4ZLPYA-joHTq5dL.cjs.map +1 -0
  387. package/dist/sandbox.cjs +6 -1
  388. package/dist/sandbox.d.cts +2 -2
  389. package/dist/sandbox.d.mts +2 -2
  390. package/dist/sandbox.mjs +2 -2
  391. package/dist/sed-S5UIK574-0SsE8vLj.mjs +14 -0
  392. package/dist/sed-S5UIK574-0SsE8vLj.mjs.map +1 -0
  393. package/dist/sed-S5UIK574-CjEsIkX0.cjs +13 -0
  394. package/dist/sed-S5UIK574-CjEsIkX0.cjs.map +1 -0
  395. package/dist/sha1sum-2PTOAFR6-B3v7pL1o.mjs +12 -0
  396. package/dist/sha1sum-2PTOAFR6-B3v7pL1o.mjs.map +1 -0
  397. package/dist/sha1sum-2PTOAFR6-Zxn2YEQ7.cjs +11 -0
  398. package/dist/sha1sum-2PTOAFR6-Zxn2YEQ7.cjs.map +1 -0
  399. package/dist/sha256sum-NS7D3IXX-D2UBSHMT.cjs +11 -0
  400. package/dist/sha256sum-NS7D3IXX-D2UBSHMT.cjs.map +1 -0
  401. package/dist/sha256sum-NS7D3IXX-fTdb2H6C.mjs +12 -0
  402. package/dist/sha256sum-NS7D3IXX-fTdb2H6C.mjs.map +1 -0
  403. package/dist/sleep-X22JJINO-CiqvYYzF.mjs +13 -0
  404. package/dist/sleep-X22JJINO-CiqvYYzF.mjs.map +1 -0
  405. package/dist/sleep-X22JJINO-Dw3qJ3u5.cjs +12 -0
  406. package/dist/sleep-X22JJINO-Dw3qJ3u5.cjs.map +1 -0
  407. package/dist/sort-SW2YEO5B-CY3xZvLH.cjs +11 -0
  408. package/dist/sort-SW2YEO5B-CY3xZvLH.cjs.map +1 -0
  409. package/dist/sort-SW2YEO5B-DyfINHip.mjs +12 -0
  410. package/dist/sort-SW2YEO5B-DyfINHip.mjs.map +1 -0
  411. package/dist/split-4KKZZXXE-C0nde5vb.cjs +10 -0
  412. package/dist/split-4KKZZXXE-C0nde5vb.cjs.map +1 -0
  413. package/dist/split-4KKZZXXE-jgu86SzO.mjs +11 -0
  414. package/dist/split-4KKZZXXE-jgu86SzO.mjs.map +1 -0
  415. package/dist/sqlite3-CGOEFJAO-DEljm7cX.cjs +11 -0
  416. package/dist/sqlite3-CGOEFJAO-DEljm7cX.cjs.map +1 -0
  417. package/dist/sqlite3-CGOEFJAO-DORH3A_v.mjs +12 -0
  418. package/dist/sqlite3-CGOEFJAO-DORH3A_v.mjs.map +1 -0
  419. package/dist/strings-6WDHLGMX-h7oJ16OF.cjs +10 -0
  420. package/dist/strings-6WDHLGMX-h7oJ16OF.cjs.map +1 -0
  421. package/dist/strings-6WDHLGMX-zeuBxP_F.mjs +11 -0
  422. package/dist/strings-6WDHLGMX-zeuBxP_F.mjs.map +1 -0
  423. package/dist/tac-2STMMJYW-BtWvKy2f.cjs +9 -0
  424. package/dist/tac-2STMMJYW-BtWvKy2f.cjs.map +1 -0
  425. package/dist/tac-2STMMJYW-CSnezTaW.mjs +10 -0
  426. package/dist/tac-2STMMJYW-CSnezTaW.mjs.map +1 -0
  427. package/dist/tail-R4PCA2C4-BU60h82S.cjs +11 -0
  428. package/dist/tail-R4PCA2C4-BU60h82S.cjs.map +1 -0
  429. package/dist/tail-R4PCA2C4-DDQT5nh3.mjs +12 -0
  430. package/dist/tail-R4PCA2C4-DDQT5nh3.mjs.map +1 -0
  431. package/dist/tar-STHHZTZ6-BsXYP6cM.mjs +14 -0
  432. package/dist/tar-STHHZTZ6-BsXYP6cM.mjs.map +1 -0
  433. package/dist/tar-STHHZTZ6-qjKeyHOT.cjs +13 -0
  434. package/dist/tar-STHHZTZ6-qjKeyHOT.cjs.map +1 -0
  435. package/dist/tee-YUZ2FKCJ-BFNL3v2H.cjs +11 -0
  436. package/dist/tee-YUZ2FKCJ-BFNL3v2H.cjs.map +1 -0
  437. package/dist/tee-YUZ2FKCJ-XuHied3n.mjs +12 -0
  438. package/dist/tee-YUZ2FKCJ-XuHied3n.mjs.map +1 -0
  439. package/dist/time-D4LNBSWX-1kl3l_uS.mjs +10 -0
  440. package/dist/time-D4LNBSWX-1kl3l_uS.mjs.map +1 -0
  441. package/dist/time-D4LNBSWX-C4MkGGMR.cjs +9 -0
  442. package/dist/time-D4LNBSWX-C4MkGGMR.cjs.map +1 -0
  443. package/dist/timeout-YDCRSLPQ-B0LndT3y.cjs +12 -0
  444. package/dist/timeout-YDCRSLPQ-B0LndT3y.cjs.map +1 -0
  445. package/dist/timeout-YDCRSLPQ-s1vUoyqN.mjs +13 -0
  446. package/dist/timeout-YDCRSLPQ-s1vUoyqN.mjs.map +1 -0
  447. package/dist/touch-UA33VN3N-ChlyRE9Q.cjs +10 -0
  448. package/dist/touch-UA33VN3N-ChlyRE9Q.cjs.map +1 -0
  449. package/dist/touch-UA33VN3N-zPAUPvmL.mjs +11 -0
  450. package/dist/touch-UA33VN3N-zPAUPvmL.mjs.map +1 -0
  451. package/dist/tr-36LHWFRQ-BTAACzqK.cjs +11 -0
  452. package/dist/tr-36LHWFRQ-BTAACzqK.cjs.map +1 -0
  453. package/dist/tr-36LHWFRQ-C-r9nI1C.mjs +12 -0
  454. package/dist/tr-36LHWFRQ-C-r9nI1C.mjs.map +1 -0
  455. package/dist/tree-YLD52CNT-BwNhql16.cjs +11 -0
  456. package/dist/tree-YLD52CNT-BwNhql16.cjs.map +1 -0
  457. package/dist/tree-YLD52CNT-DFrQNxEu.mjs +12 -0
  458. package/dist/tree-YLD52CNT-DFrQNxEu.mjs.map +1 -0
  459. package/dist/trigger.d.cts +1 -1
  460. package/dist/trigger.d.mts +1 -1
  461. package/dist/unexpand-CADSA4VO-B7pxt0GX.mjs +11 -0
  462. package/dist/unexpand-CADSA4VO-B7pxt0GX.mjs.map +1 -0
  463. package/dist/unexpand-CADSA4VO-rkuYIkQz.cjs +10 -0
  464. package/dist/unexpand-CADSA4VO-rkuYIkQz.cjs.map +1 -0
  465. package/dist/uniq-XSIZR6PB-DhpovdZb.cjs +12 -0
  466. package/dist/uniq-XSIZR6PB-DhpovdZb.cjs.map +1 -0
  467. package/dist/uniq-XSIZR6PB-Du4BEJkI.mjs +13 -0
  468. package/dist/uniq-XSIZR6PB-Du4BEJkI.mjs.map +1 -0
  469. package/dist/wc-LF7NU4LA-NovrYY1W.mjs +13 -0
  470. package/dist/wc-LF7NU4LA-NovrYY1W.mjs.map +1 -0
  471. package/dist/wc-LF7NU4LA-wQgdjpdx.cjs +12 -0
  472. package/dist/wc-LF7NU4LA-wQgdjpdx.cjs.map +1 -0
  473. package/dist/xan-Y6WF3IRG-CMqV7U0I.cjs +17 -0
  474. package/dist/xan-Y6WF3IRG-CMqV7U0I.cjs.map +1 -0
  475. package/dist/xan-Y6WF3IRG-n8SCw3lP.mjs +18 -0
  476. package/dist/xan-Y6WF3IRG-n8SCw3lP.mjs.map +1 -0
  477. package/dist/xan-view-HDVKHFC2-B7cXzMeW.mjs +11 -0
  478. package/dist/xan-view-HDVKHFC2-B7cXzMeW.mjs.map +1 -0
  479. package/dist/xan-view-HDVKHFC2-DLpnDKhQ.cjs +10 -0
  480. package/dist/xan-view-HDVKHFC2-DLpnDKhQ.cjs.map +1 -0
  481. package/dist/xargs-MGZPH7AX-d_x__ghK.cjs +10 -0
  482. package/dist/xargs-MGZPH7AX-d_x__ghK.cjs.map +1 -0
  483. package/dist/xargs-MGZPH7AX-ig76l1m_.mjs +11 -0
  484. package/dist/xargs-MGZPH7AX-ig76l1m_.mjs.map +1 -0
  485. package/dist/yq-4QJW3EQG-C0Ob-21U.mjs +17 -0
  486. package/dist/yq-4QJW3EQG-C0Ob-21U.mjs.map +1 -0
  487. package/dist/yq-4QJW3EQG-CDSPxkds.cjs +16 -0
  488. package/dist/yq-4QJW3EQG-CDSPxkds.cjs.map +1 -0
  489. package/package.json +3 -3
  490. package/dist/awk2-LA3USKJP-MQo4jsqZ.cjs +0 -13
  491. package/dist/awk2-LA3USKJP-MQo4jsqZ.cjs.map +0 -1
  492. package/dist/awk2-LA3USKJP-XHEFOtkG.mjs +0 -14
  493. package/dist/awk2-LA3USKJP-XHEFOtkG.mjs.map +0 -1
  494. package/dist/base64-C2AIWVNC-DSt4g1ll.mjs +0 -12
  495. package/dist/base64-C2AIWVNC-DSt4g1ll.mjs.map +0 -1
  496. package/dist/base64-C2AIWVNC-h6eG-F3J.cjs +0 -11
  497. package/dist/base64-C2AIWVNC-h6eG-F3J.cjs.map +0 -1
  498. package/dist/bash-YZ33HQZQ-DrzXKu-u.cjs +0 -11
  499. package/dist/bash-YZ33HQZQ-DrzXKu-u.cjs.map +0 -1
  500. package/dist/bash-YZ33HQZQ-Du2CmXTW.mjs +0 -11
  501. package/dist/bash-YZ33HQZQ-Du2CmXTW.mjs.map +0 -1
  502. package/dist/cat-TSFMZVYS-BXUgCgqD.cjs +0 -12
  503. package/dist/cat-TSFMZVYS-BXUgCgqD.cjs.map +0 -1
  504. package/dist/cat-TSFMZVYS-Cc8z89mK.mjs +0 -13
  505. package/dist/cat-TSFMZVYS-Cc8z89mK.mjs.map +0 -1
  506. package/dist/chunk-2JIPICV3-BAgJZMKx.cjs +0 -110
  507. package/dist/chunk-2JIPICV3-BAgJZMKx.cjs.map +0 -1
  508. package/dist/chunk-2JIPICV3-C5_t2fo5.mjs +0 -100
  509. package/dist/chunk-2JIPICV3-C5_t2fo5.mjs.map +0 -1
  510. package/dist/chunk-2VDTE5BV-CLUdd0Ug.cjs +0 -121
  511. package/dist/chunk-2VDTE5BV-CLUdd0Ug.cjs.map +0 -1
  512. package/dist/chunk-2VDTE5BV-Dda9Ic6o.mjs +0 -111
  513. package/dist/chunk-2VDTE5BV-Dda9Ic6o.mjs.map +0 -1
  514. package/dist/chunk-46RN27KI-CTLlAZRF.mjs +0 -1742
  515. package/dist/chunk-46RN27KI-CTLlAZRF.mjs.map +0 -1
  516. package/dist/chunk-46RN27KI-CY9U3uG5.cjs +0 -1752
  517. package/dist/chunk-46RN27KI-CY9U3uG5.cjs.map +0 -1
  518. package/dist/chunk-4JLVZKHC-B6fg08-z.mjs +0 -127
  519. package/dist/chunk-4JLVZKHC-B6fg08-z.mjs.map +0 -1
  520. package/dist/chunk-4JLVZKHC-CqalqYZB.cjs +0 -137
  521. package/dist/chunk-4JLVZKHC-CqalqYZB.cjs.map +0 -1
  522. package/dist/chunk-4N6J7B5P-Cc5SfG-a.mjs +0 -91
  523. package/dist/chunk-4N6J7B5P-Cc5SfG-a.mjs.map +0 -1
  524. package/dist/chunk-4N6J7B5P-Dd52CR5Q.cjs +0 -101
  525. package/dist/chunk-4N6J7B5P-Dd52CR5Q.cjs.map +0 -1
  526. package/dist/chunk-5H5SCKJM-Bs3zaPjV.cjs +0 -611
  527. package/dist/chunk-5H5SCKJM-Bs3zaPjV.cjs.map +0 -1
  528. package/dist/chunk-5H5SCKJM-DpHXAhoN.mjs +0 -601
  529. package/dist/chunk-5H5SCKJM-DpHXAhoN.mjs.map +0 -1
  530. package/dist/chunk-6LASZU3O-Dcs97q_F.mjs +0 -138
  531. package/dist/chunk-6LASZU3O-Dcs97q_F.mjs.map +0 -1
  532. package/dist/chunk-6LASZU3O-Dp29gLjT.cjs +0 -148
  533. package/dist/chunk-6LASZU3O-Dp29gLjT.cjs.map +0 -1
  534. package/dist/chunk-6VAT5Z2D-8XKedTon.cjs +0 -118
  535. package/dist/chunk-6VAT5Z2D-8XKedTon.cjs.map +0 -1
  536. package/dist/chunk-6VAT5Z2D-BZHhKA7c.mjs +0 -108
  537. package/dist/chunk-6VAT5Z2D-BZHhKA7c.mjs.map +0 -1
  538. package/dist/chunk-7JHM3L42-BYN2LZjs.mjs +0 -138
  539. package/dist/chunk-7JHM3L42-BYN2LZjs.mjs.map +0 -1
  540. package/dist/chunk-7JHM3L42-BlJgYBgQ.cjs +0 -148
  541. package/dist/chunk-7JHM3L42-BlJgYBgQ.cjs.map +0 -1
  542. package/dist/chunk-A4R2GWRF-B1tT3uYG.mjs +0 -126
  543. package/dist/chunk-A4R2GWRF-B1tT3uYG.mjs.map +0 -1
  544. package/dist/chunk-A4R2GWRF-BQvRfQZx.cjs +0 -148
  545. package/dist/chunk-A4R2GWRF-BQvRfQZx.cjs.map +0 -1
  546. package/dist/chunk-ACSZB4FE-CyF6a2gO.cjs +0 -172
  547. package/dist/chunk-ACSZB4FE-CyF6a2gO.cjs.map +0 -1
  548. package/dist/chunk-ACSZB4FE-DWXJ0Xd0.mjs +0 -162
  549. package/dist/chunk-ACSZB4FE-DWXJ0Xd0.mjs.map +0 -1
  550. package/dist/chunk-BVKWRAS6-C8JWSwPf.cjs +0 -139
  551. package/dist/chunk-BVKWRAS6-C8JWSwPf.cjs.map +0 -1
  552. package/dist/chunk-BVKWRAS6-CZ7ZhG5l.mjs +0 -129
  553. package/dist/chunk-BVKWRAS6-CZ7ZhG5l.mjs.map +0 -1
  554. package/dist/chunk-CBJVD2XA-C6CKMip8.cjs +0 -783
  555. package/dist/chunk-CBJVD2XA-C6CKMip8.cjs.map +0 -1
  556. package/dist/chunk-CBJVD2XA-DEhFeS5P.mjs +0 -772
  557. package/dist/chunk-CBJVD2XA-DEhFeS5P.mjs.map +0 -1
  558. package/dist/chunk-EBAPSGAO-BEFjmxK3.mjs +0 -246
  559. package/dist/chunk-EBAPSGAO-BEFjmxK3.mjs.map +0 -1
  560. package/dist/chunk-EBAPSGAO-WP3WYuEM.cjs +0 -250
  561. package/dist/chunk-EBAPSGAO-WP3WYuEM.cjs.map +0 -1
  562. package/dist/chunk-FAXLQUCQ-BSwyxS2u.mjs +0 -65
  563. package/dist/chunk-FAXLQUCQ-BSwyxS2u.mjs.map +0 -1
  564. package/dist/chunk-FAXLQUCQ-Cwv5DKdx.cjs +0 -75
  565. package/dist/chunk-FAXLQUCQ-Cwv5DKdx.cjs.map +0 -1
  566. package/dist/chunk-FJK43EBQ-CGhSitWh.cjs +0 -248
  567. package/dist/chunk-FJK43EBQ-CGhSitWh.cjs.map +0 -1
  568. package/dist/chunk-FJK43EBQ-DyKKzn5g.mjs +0 -238
  569. package/dist/chunk-FJK43EBQ-DyKKzn5g.mjs.map +0 -1
  570. package/dist/chunk-FW54FHZR-Vl1Q6ZD8.mjs +0 -16
  571. package/dist/chunk-FW54FHZR-Vl1Q6ZD8.mjs.map +0 -1
  572. package/dist/chunk-FW54FHZR-wrnu5Sx-.cjs +0 -26
  573. package/dist/chunk-FW54FHZR-wrnu5Sx-.cjs.map +0 -1
  574. package/dist/chunk-FX7KQCEA-BYMGpH_x.cjs +0 -1640
  575. package/dist/chunk-FX7KQCEA-BYMGpH_x.cjs.map +0 -1
  576. package/dist/chunk-FX7KQCEA-CTFcQWVT.mjs +0 -1629
  577. package/dist/chunk-FX7KQCEA-CTFcQWVT.mjs.map +0 -1
  578. package/dist/chunk-FZRQOL3C-B5mKvpNC.mjs +0 -121
  579. package/dist/chunk-FZRQOL3C-B5mKvpNC.mjs.map +0 -1
  580. package/dist/chunk-FZRQOL3C-gTg5AXEz.cjs +0 -131
  581. package/dist/chunk-FZRQOL3C-gTg5AXEz.cjs.map +0 -1
  582. package/dist/chunk-GGC5NEPZ-DL1MHf1V.cjs +0 -131
  583. package/dist/chunk-GGC5NEPZ-DL1MHf1V.cjs.map +0 -1
  584. package/dist/chunk-GGC5NEPZ-SA_BxVS_.mjs +0 -121
  585. package/dist/chunk-GGC5NEPZ-SA_BxVS_.mjs.map +0 -1
  586. package/dist/chunk-GIUR5SNU-B7sZ46Ff.mjs +0 -885
  587. package/dist/chunk-GIUR5SNU-B7sZ46Ff.mjs.map +0 -1
  588. package/dist/chunk-GIUR5SNU-BC99ELqv.cjs +0 -896
  589. package/dist/chunk-GIUR5SNU-BC99ELqv.cjs.map +0 -1
  590. package/dist/chunk-GJC3WVOW-CdXlLmMe.cjs +0 -26
  591. package/dist/chunk-GJC3WVOW-CdXlLmMe.cjs.map +0 -1
  592. package/dist/chunk-GJC3WVOW-D3ZwNt7u.mjs +0 -16
  593. package/dist/chunk-GJC3WVOW-D3ZwNt7u.mjs.map +0 -1
  594. package/dist/chunk-GSPYNYZA-KannHCnj.mjs +0 -129
  595. package/dist/chunk-GSPYNYZA-KannHCnj.mjs.map +0 -1
  596. package/dist/chunk-GSPYNYZA-OrLX1I7I.cjs +0 -151
  597. package/dist/chunk-GSPYNYZA-OrLX1I7I.cjs.map +0 -1
  598. package/dist/chunk-GTQIUQM6-BC1kZeGP.mjs +0 -153
  599. package/dist/chunk-GTQIUQM6-BC1kZeGP.mjs.map +0 -1
  600. package/dist/chunk-GTQIUQM6-CwDVMKn6.cjs +0 -163
  601. package/dist/chunk-GTQIUQM6-CwDVMKn6.cjs.map +0 -1
  602. package/dist/chunk-HJBTD7PY-CKxGAMDr.mjs +0 -183
  603. package/dist/chunk-HJBTD7PY-CKxGAMDr.mjs.map +0 -1
  604. package/dist/chunk-HJBTD7PY-DA4hDtlo.cjs +0 -193
  605. package/dist/chunk-HJBTD7PY-DA4hDtlo.cjs.map +0 -1
  606. package/dist/chunk-ICIEVHY5-CD0gZJ2k.mjs +0 -2875
  607. package/dist/chunk-ICIEVHY5-CD0gZJ2k.mjs.map +0 -1
  608. package/dist/chunk-ICIEVHY5-Ctg5P32w.cjs +0 -2894
  609. package/dist/chunk-ICIEVHY5-Ctg5P32w.cjs.map +0 -1
  610. package/dist/chunk-KD3KENL6-6S-QKuc5.cjs +0 -162
  611. package/dist/chunk-KD3KENL6-6S-QKuc5.cjs.map +0 -1
  612. package/dist/chunk-KD3KENL6-CF8pw62b.mjs +0 -152
  613. package/dist/chunk-KD3KENL6-CF8pw62b.mjs.map +0 -1
  614. package/dist/chunk-LEKBROJD-CRcU6WFQ.mjs +0 -3111
  615. package/dist/chunk-LEKBROJD-CRcU6WFQ.mjs.map +0 -1
  616. package/dist/chunk-LEKBROJD-zi18A4DU.cjs +0 -3121
  617. package/dist/chunk-LEKBROJD-zi18A4DU.cjs.map +0 -1
  618. package/dist/chunk-LNBPBRV4-5wD-6ht6.cjs +0 -2754
  619. package/dist/chunk-LNBPBRV4-5wD-6ht6.cjs.map +0 -1
  620. package/dist/chunk-LNBPBRV4-DBxYlITO.mjs +0 -2744
  621. package/dist/chunk-LNBPBRV4-DBxYlITO.mjs.map +0 -1
  622. package/dist/chunk-LPJEKUCB-QZaNkyad.mjs +0 -95
  623. package/dist/chunk-LPJEKUCB-QZaNkyad.mjs.map +0 -1
  624. package/dist/chunk-LPJEKUCB-vdIopp7N.cjs +0 -105
  625. package/dist/chunk-LPJEKUCB-vdIopp7N.cjs.map +0 -1
  626. package/dist/chunk-MLIO3BK2-BlF_ddxZ.mjs +0 -61
  627. package/dist/chunk-MLIO3BK2-BlF_ddxZ.mjs.map +0 -1
  628. package/dist/chunk-MLIO3BK2-drNO7ej5.cjs +0 -71
  629. package/dist/chunk-MLIO3BK2-drNO7ej5.cjs.map +0 -1
  630. package/dist/chunk-MQKGGNPS-BbTRxxUr.mjs +0 -121
  631. package/dist/chunk-MQKGGNPS-BbTRxxUr.mjs.map +0 -1
  632. package/dist/chunk-MQKGGNPS-C8BsBOR8.cjs +0 -131
  633. package/dist/chunk-MQKGGNPS-C8BsBOR8.cjs.map +0 -1
  634. package/dist/chunk-N6DXJ2JN-BMEKf9op.cjs +0 -8640
  635. package/dist/chunk-N6DXJ2JN-BMEKf9op.cjs.map +0 -1
  636. package/dist/chunk-N6DXJ2JN-D9J4vxCO.mjs +0 -8630
  637. package/dist/chunk-N6DXJ2JN-D9J4vxCO.mjs.map +0 -1
  638. package/dist/chunk-OVGANXCG-BmGfUjGf.mjs +0 -167
  639. package/dist/chunk-OVGANXCG-BmGfUjGf.mjs.map +0 -1
  640. package/dist/chunk-OVGANXCG-mt_0BJiK.cjs +0 -177
  641. package/dist/chunk-OVGANXCG-mt_0BJiK.cjs.map +0 -1
  642. package/dist/chunk-Q7H5W7YE-BUAHaDyP.cjs +0 -2964
  643. package/dist/chunk-Q7H5W7YE-BUAHaDyP.cjs.map +0 -1
  644. package/dist/chunk-Q7H5W7YE-D1e5GEAT.mjs +0 -2941
  645. package/dist/chunk-Q7H5W7YE-D1e5GEAT.mjs.map +0 -1
  646. package/dist/chunk-R74UQCKX-B9J6dodS.mjs +0 -15889
  647. package/dist/chunk-R74UQCKX-B9J6dodS.mjs.map +0 -1
  648. package/dist/chunk-R74UQCKX-DlLQSQ6c.cjs +0 -15903
  649. package/dist/chunk-R74UQCKX-DlLQSQ6c.cjs.map +0 -1
  650. package/dist/chunk-S3LEJEPP-DaUJQZR5.mjs +0 -16
  651. package/dist/chunk-S3LEJEPP-DaUJQZR5.mjs.map +0 -1
  652. package/dist/chunk-S3LEJEPP-ZHDB-081.cjs +0 -26
  653. package/dist/chunk-S3LEJEPP-ZHDB-081.cjs.map +0 -1
  654. package/dist/chunk-S443BAN4-COfXsjLH.mjs +0 -66
  655. package/dist/chunk-S443BAN4-COfXsjLH.mjs.map +0 -1
  656. package/dist/chunk-S443BAN4-DhZMXLgt.cjs +0 -76
  657. package/dist/chunk-S443BAN4-DhZMXLgt.cjs.map +0 -1
  658. package/dist/chunk-SJYEXC2Z-BTBIzNmP.cjs +0 -147
  659. package/dist/chunk-SJYEXC2Z-BTBIzNmP.cjs.map +0 -1
  660. package/dist/chunk-SJYEXC2Z-BwgvLbFx.mjs +0 -137
  661. package/dist/chunk-SJYEXC2Z-BwgvLbFx.mjs.map +0 -1
  662. package/dist/chunk-T4TFLF3R-DHVmyCcW.cjs +0 -389
  663. package/dist/chunk-T4TFLF3R-DHVmyCcW.cjs.map +0 -1
  664. package/dist/chunk-T4TFLF3R-hg8SrzUy.mjs +0 -379
  665. package/dist/chunk-T4TFLF3R-hg8SrzUy.mjs.map +0 -1
  666. package/dist/chunk-U73A73IE-C8BSBuBL.cjs +0 -249
  667. package/dist/chunk-U73A73IE-C8BSBuBL.cjs.map +0 -1
  668. package/dist/chunk-U73A73IE-UD23BBHU.mjs +0 -239
  669. package/dist/chunk-U73A73IE-UD23BBHU.mjs.map +0 -1
  670. package/dist/chunk-UP6MSJGD-Bw04CWhl.cjs +0 -282
  671. package/dist/chunk-UP6MSJGD-Bw04CWhl.cjs.map +0 -1
  672. package/dist/chunk-UP6MSJGD-CylzmLHI.mjs +0 -272
  673. package/dist/chunk-UP6MSJGD-CylzmLHI.mjs.map +0 -1
  674. package/dist/chunk-VLCHOJWK-B_UKhhZd.mjs +0 -128
  675. package/dist/chunk-VLCHOJWK-B_UKhhZd.mjs.map +0 -1
  676. package/dist/chunk-VLCHOJWK-Dyte0n3p.cjs +0 -138
  677. package/dist/chunk-VLCHOJWK-Dyte0n3p.cjs.map +0 -1
  678. package/dist/chunk-XCQWV4AU-BjreXauh.mjs +0 -152
  679. package/dist/chunk-XCQWV4AU-BjreXauh.mjs.map +0 -1
  680. package/dist/chunk-XCQWV4AU-o54EU0d-.cjs +0 -162
  681. package/dist/chunk-XCQWV4AU-o54EU0d-.cjs.map +0 -1
  682. package/dist/chunk-XDGLKIHR-C841cbLF.mjs +0 -430
  683. package/dist/chunk-XDGLKIHR-C841cbLF.mjs.map +0 -1
  684. package/dist/chunk-XDGLKIHR-CDjpA0DG.cjs +0 -464
  685. package/dist/chunk-XDGLKIHR-CDjpA0DG.cjs.map +0 -1
  686. package/dist/chunk-XHLMAZX2-BiNlCfgR.cjs +0 -103
  687. package/dist/chunk-XHLMAZX2-BiNlCfgR.cjs.map +0 -1
  688. package/dist/chunk-XHLMAZX2-qbveT1zP.mjs +0 -93
  689. package/dist/chunk-XHLMAZX2-qbveT1zP.mjs.map +0 -1
  690. package/dist/chunk-XYXUMFSU-B9wJCh1s.mjs +0 -285
  691. package/dist/chunk-XYXUMFSU-B9wJCh1s.mjs.map +0 -1
  692. package/dist/chunk-XYXUMFSU-Cmx7wx5d.cjs +0 -295
  693. package/dist/chunk-XYXUMFSU-Cmx7wx5d.cjs.map +0 -1
  694. package/dist/chunk-YCLFEX4T-B-X7InFO.mjs +0 -76
  695. package/dist/chunk-YCLFEX4T-B-X7InFO.mjs.map +0 -1
  696. package/dist/chunk-YCLFEX4T-DyIzu5Ik.cjs +0 -86
  697. package/dist/chunk-YCLFEX4T-DyIzu5Ik.cjs.map +0 -1
  698. package/dist/chunk-YS4NUBYX-D-9Ngzc6.cjs +0 -128
  699. package/dist/chunk-YS4NUBYX-D-9Ngzc6.cjs.map +0 -1
  700. package/dist/chunk-YS4NUBYX-DQt3-bQ2.mjs +0 -118
  701. package/dist/chunk-YS4NUBYX-DQt3-bQ2.mjs.map +0 -1
  702. package/dist/chunk-ZDIT6ST5-B1nM-wUJ.mjs +0 -106
  703. package/dist/chunk-ZDIT6ST5-B1nM-wUJ.mjs.map +0 -1
  704. package/dist/chunk-ZDIT6ST5-bLM46AM5.cjs +0 -116
  705. package/dist/chunk-ZDIT6ST5-bLM46AM5.cjs.map +0 -1
  706. package/dist/chunk-ZZKH2ELC-Donay6J3.cjs +0 -1380
  707. package/dist/chunk-ZZKH2ELC-Donay6J3.cjs.map +0 -1
  708. package/dist/chunk-ZZKH2ELC-NvcCIbH7.mjs +0 -1370
  709. package/dist/chunk-ZZKH2ELC-NvcCIbH7.mjs.map +0 -1
  710. package/dist/column-XT6UFXNQ-BcosUreo.cjs +0 -11
  711. package/dist/column-XT6UFXNQ-BcosUreo.cjs.map +0 -1
  712. package/dist/column-XT6UFXNQ-U9qoSUvE.mjs +0 -12
  713. package/dist/column-XT6UFXNQ-U9qoSUvE.mjs.map +0 -1
  714. package/dist/comm-VV2LDX2J-B2Rs18o-.cjs +0 -10
  715. package/dist/comm-VV2LDX2J-B2Rs18o-.cjs.map +0 -1
  716. package/dist/comm-VV2LDX2J-CMd8scjN.mjs +0 -11
  717. package/dist/comm-VV2LDX2J-CMd8scjN.mjs.map +0 -1
  718. package/dist/cp-BISAAS7A-9RROtqmx.cjs +0 -11
  719. package/dist/cp-BISAAS7A-9RROtqmx.cjs.map +0 -1
  720. package/dist/cp-BISAAS7A-B0R-wWwz.mjs +0 -12
  721. package/dist/cp-BISAAS7A-B0R-wWwz.mjs.map +0 -1
  722. package/dist/curl-LV5Y3AMS-BsqeOPOD.cjs +0 -364
  723. package/dist/curl-LV5Y3AMS-BsqeOPOD.cjs.map +0 -1
  724. package/dist/curl-LV5Y3AMS-DcXVZy_D.mjs +0 -365
  725. package/dist/curl-LV5Y3AMS-DcXVZy_D.mjs.map +0 -1
  726. package/dist/cut-OKARJCCV-Bp9Ralg2.cjs +0 -11
  727. package/dist/cut-OKARJCCV-Bp9Ralg2.cjs.map +0 -1
  728. package/dist/cut-OKARJCCV-Dapti17C.mjs +0 -12
  729. package/dist/cut-OKARJCCV-Dapti17C.mjs.map +0 -1
  730. package/dist/diff-MWJFIG7X-86X0I5HS.mjs +0 -12
  731. package/dist/diff-MWJFIG7X-86X0I5HS.mjs.map +0 -1
  732. package/dist/diff-MWJFIG7X-DKPgQeze.cjs +0 -11
  733. package/dist/diff-MWJFIG7X-DKPgQeze.cjs.map +0 -1
  734. package/dist/dist-DvXTXlOJ.cjs +0 -22709
  735. package/dist/dist-DvXTXlOJ.cjs.map +0 -1
  736. package/dist/dist-n5qeJqNu.mjs +0 -21786
  737. package/dist/dist-n5qeJqNu.mjs.map +0 -1
  738. package/dist/du-572XNP42-AbesOA_Z.mjs +0 -12
  739. package/dist/du-572XNP42-AbesOA_Z.mjs.map +0 -1
  740. package/dist/du-572XNP42-BF8h_OM2.cjs +0 -11
  741. package/dist/du-572XNP42-BF8h_OM2.cjs.map +0 -1
  742. package/dist/env-36M5BO7M-D-dLYFsP.mjs +0 -11
  743. package/dist/env-36M5BO7M-D-dLYFsP.mjs.map +0 -1
  744. package/dist/env-36M5BO7M-qOv6puz7.cjs +0 -11
  745. package/dist/env-36M5BO7M-qOv6puz7.cjs.map +0 -1
  746. package/dist/expand-JSPG6VOP-Dt0q6Wr1.cjs +0 -10
  747. package/dist/expand-JSPG6VOP-Dt0q6Wr1.cjs.map +0 -1
  748. package/dist/expand-JSPG6VOP-Dzt5Sp1J.mjs +0 -11
  749. package/dist/expand-JSPG6VOP-Dzt5Sp1J.mjs.map +0 -1
  750. package/dist/expansion-R25BK4W3-B521nBnV.mjs +0 -11
  751. package/dist/expansion-R25BK4W3-B521nBnV.mjs.map +0 -1
  752. package/dist/expansion-R25BK4W3-CNMitv-e.cjs +0 -10
  753. package/dist/expansion-R25BK4W3-CNMitv-e.cjs.map +0 -1
  754. package/dist/expr-5JAACS4X-BMr1hVRH.cjs +0 -10
  755. package/dist/expr-5JAACS4X-BMr1hVRH.cjs.map +0 -1
  756. package/dist/expr-5JAACS4X-DK9dmrBG.mjs +0 -11
  757. package/dist/expr-5JAACS4X-DK9dmrBG.mjs.map +0 -1
  758. package/dist/find-INTH3OLC-BnpiVLAu.mjs +0 -15
  759. package/dist/find-INTH3OLC-BnpiVLAu.mjs.map +0 -1
  760. package/dist/find-INTH3OLC-D9IKX4-P.cjs +0 -14
  761. package/dist/find-INTH3OLC-D9IKX4-P.cjs.map +0 -1
  762. package/dist/flag-coverage-XWSYNE72-CBSvZZRo.cjs +0 -193
  763. package/dist/flag-coverage-XWSYNE72-CBSvZZRo.cjs.map +0 -1
  764. package/dist/flag-coverage-XWSYNE72-DshO_-pJ.mjs +0 -194
  765. package/dist/flag-coverage-XWSYNE72-DshO_-pJ.mjs.map +0 -1
  766. package/dist/fold-4TQNYMSW-Cq1ScJKt.mjs +0 -11
  767. package/dist/fold-4TQNYMSW-Cq1ScJKt.mjs.map +0 -1
  768. package/dist/fold-4TQNYMSW-DjQpxRVn.cjs +0 -10
  769. package/dist/fold-4TQNYMSW-DjQpxRVn.cjs.map +0 -1
  770. package/dist/grep-V3LQVMRQ-1fHRQVfv.mjs +0 -14
  771. package/dist/grep-V3LQVMRQ-1fHRQVfv.mjs.map +0 -1
  772. package/dist/grep-V3LQVMRQ-RSy6DPYn.cjs +0 -15
  773. package/dist/grep-V3LQVMRQ-RSy6DPYn.cjs.map +0 -1
  774. package/dist/gzip-O5ASJAFY-cFaXiUTA.cjs +0 -13
  775. package/dist/gzip-O5ASJAFY-cFaXiUTA.cjs.map +0 -1
  776. package/dist/gzip-O5ASJAFY-l7r1peHV.mjs +0 -12
  777. package/dist/gzip-O5ASJAFY-l7r1peHV.mjs.map +0 -1
  778. package/dist/head-442HYESI-BEvhcf49.cjs +0 -11
  779. package/dist/head-442HYESI-BEvhcf49.cjs.map +0 -1
  780. package/dist/head-442HYESI-C-DNCvLH.mjs +0 -12
  781. package/dist/head-442HYESI-C-DNCvLH.mjs.map +0 -1
  782. package/dist/help-HZ6M2CKN-BiKJu2D5.mjs +0 -10
  783. package/dist/help-HZ6M2CKN-BiKJu2D5.mjs.map +0 -1
  784. package/dist/help-HZ6M2CKN-Cd0QpVeL.cjs +0 -9
  785. package/dist/help-HZ6M2CKN-Cd0QpVeL.cjs.map +0 -1
  786. package/dist/html-to-markdown-JW4MSQZO-Cdx_rnn8.mjs +0 -11
  787. package/dist/html-to-markdown-JW4MSQZO-Cdx_rnn8.mjs.map +0 -1
  788. package/dist/html-to-markdown-JW4MSQZO-CemEldmP.cjs +0 -10
  789. package/dist/html-to-markdown-JW4MSQZO-CemEldmP.cjs.map +0 -1
  790. package/dist/index-8P2xANh8.d.cts +0 -331
  791. package/dist/index-8P2xANh8.d.cts.map +0 -1
  792. package/dist/index-CnbEp2h3.d.mts +0 -332
  793. package/dist/index-CnbEp2h3.d.mts.map +0 -1
  794. package/dist/index-D2z4tjak.d.mts +0 -258
  795. package/dist/index-D2z4tjak.d.mts.map +0 -1
  796. package/dist/index-hw0FZ4e3.d.cts +0 -258
  797. package/dist/index-hw0FZ4e3.d.cts.map +0 -1
  798. package/dist/join-TBRGI3LQ-MwmhS38E.mjs +0 -11
  799. package/dist/join-TBRGI3LQ-MwmhS38E.mjs.map +0 -1
  800. package/dist/join-TBRGI3LQ-lKWzSNnv.cjs +0 -10
  801. package/dist/join-TBRGI3LQ-lKWzSNnv.cjs.map +0 -1
  802. package/dist/jq-4XLYLOS5-D507Unie.mjs +0 -17
  803. package/dist/jq-4XLYLOS5-D507Unie.mjs.map +0 -1
  804. package/dist/jq-4XLYLOS5-Dk6mA80k.cjs +0 -16
  805. package/dist/jq-4XLYLOS5-Dk6mA80k.cjs.map +0 -1
  806. package/dist/js-exec-N5KEZBH7-BCyQ0pHN.mjs +0 -325
  807. package/dist/js-exec-N5KEZBH7-BCyQ0pHN.mjs.map +0 -1
  808. package/dist/js-exec-N5KEZBH7-J2HrmRZ3.cjs +0 -326
  809. package/dist/js-exec-N5KEZBH7-J2HrmRZ3.cjs.map +0 -1
  810. package/dist/ln-4LGSXXGD-DgtNNMVF.cjs +0 -10
  811. package/dist/ln-4LGSXXGD-DgtNNMVF.cjs.map +0 -1
  812. package/dist/ln-4LGSXXGD-DyJs5uSq.mjs +0 -11
  813. package/dist/ln-4LGSXXGD-DyJs5uSq.mjs.map +0 -1
  814. package/dist/ls-ZJGQER7M-705knR3W.cjs +0 -11
  815. package/dist/ls-ZJGQER7M-705knR3W.cjs.map +0 -1
  816. package/dist/ls-ZJGQER7M-BeHMfrQP.mjs +0 -12
  817. package/dist/ls-ZJGQER7M-BeHMfrQP.mjs.map +0 -1
  818. package/dist/md5sum-SPU24VSG-_dtTNOea.mjs +0 -12
  819. package/dist/md5sum-SPU24VSG-_dtTNOea.mjs.map +0 -1
  820. package/dist/md5sum-SPU24VSG-fhmGC0fK.cjs +0 -11
  821. package/dist/md5sum-SPU24VSG-fhmGC0fK.cjs.map +0 -1
  822. package/dist/microsandbox-BkkXAGE1-B4bKoUtC.cjs +0 -351
  823. package/dist/microsandbox-BkkXAGE1-B4bKoUtC.cjs.map +0 -1
  824. package/dist/microsandbox-BkkXAGE1-DC652IAD.mjs +0 -350
  825. package/dist/microsandbox-BkkXAGE1-DC652IAD.mjs.map +0 -1
  826. package/dist/mkdir-MEPGZOB6-CvzEBWyh.mjs +0 -12
  827. package/dist/mkdir-MEPGZOB6-CvzEBWyh.mjs.map +0 -1
  828. package/dist/mkdir-MEPGZOB6-T7LpFzer.cjs +0 -11
  829. package/dist/mkdir-MEPGZOB6-T7LpFzer.cjs.map +0 -1
  830. package/dist/mv-W5BIQ646-DczL0_4Q.cjs +0 -11
  831. package/dist/mv-W5BIQ646-DczL0_4Q.cjs.map +0 -1
  832. package/dist/mv-W5BIQ646-GzKe75t4.mjs +0 -12
  833. package/dist/mv-W5BIQ646-GzKe75t4.mjs.map +0 -1
  834. package/dist/nl-WSDW7I4O-DL6BlpVg.mjs +0 -11
  835. package/dist/nl-WSDW7I4O-DL6BlpVg.mjs.map +0 -1
  836. package/dist/nl-WSDW7I4O-UXWj_1rk.cjs +0 -10
  837. package/dist/nl-WSDW7I4O-UXWj_1rk.cjs.map +0 -1
  838. package/dist/od-WOKFDJTP-BKUh5J_0.mjs +0 -10
  839. package/dist/od-WOKFDJTP-BKUh5J_0.mjs.map +0 -1
  840. package/dist/od-WOKFDJTP-HOHUW-se.cjs +0 -9
  841. package/dist/od-WOKFDJTP-HOHUW-se.cjs.map +0 -1
  842. package/dist/paste-7JC6S4DX-C-MXoeid.cjs +0 -11
  843. package/dist/paste-7JC6S4DX-C-MXoeid.cjs.map +0 -1
  844. package/dist/paste-7JC6S4DX-Cp2p7sKP.mjs +0 -12
  845. package/dist/paste-7JC6S4DX-Cp2p7sKP.mjs.map +0 -1
  846. package/dist/printf-TWGXF445-BekmGiaM.cjs +0 -12
  847. package/dist/printf-TWGXF445-BekmGiaM.cjs.map +0 -1
  848. package/dist/printf-TWGXF445-n0FFdra6.mjs +0 -13
  849. package/dist/printf-TWGXF445-n0FFdra6.mjs.map +0 -1
  850. package/dist/python3-POMOR4OA-5kKfGAYH.cjs +0 -291
  851. package/dist/python3-POMOR4OA-5kKfGAYH.cjs.map +0 -1
  852. package/dist/python3-POMOR4OA-DVG84fAE.mjs +0 -290
  853. package/dist/python3-POMOR4OA-DVG84fAE.mjs.map +0 -1
  854. package/dist/rev-5EHFX4EJ-CCM4rRb9.cjs +0 -10
  855. package/dist/rev-5EHFX4EJ-CCM4rRb9.cjs.map +0 -1
  856. package/dist/rev-5EHFX4EJ-CxEh9Eg_.mjs +0 -11
  857. package/dist/rev-5EHFX4EJ-CxEh9Eg_.mjs.map +0 -1
  858. package/dist/rg-S4FXYXWB-CD2XrT-D.mjs +0 -14
  859. package/dist/rg-S4FXYXWB-CD2XrT-D.mjs.map +0 -1
  860. package/dist/rg-S4FXYXWB-CRJItYHR.cjs +0 -13
  861. package/dist/rg-S4FXYXWB-CRJItYHR.cjs.map +0 -1
  862. package/dist/rm-SSGETQVQ-BZau1cUE.cjs +0 -11
  863. package/dist/rm-SSGETQVQ-BZau1cUE.cjs.map +0 -1
  864. package/dist/rm-SSGETQVQ-CuLnDVf8.mjs +0 -12
  865. package/dist/rm-SSGETQVQ-CuLnDVf8.mjs.map +0 -1
  866. package/dist/rmdir-OC4ZLPYA-8qm_Lbix.cjs +0 -11
  867. package/dist/rmdir-OC4ZLPYA-8qm_Lbix.cjs.map +0 -1
  868. package/dist/rmdir-OC4ZLPYA-B5P90Mlg.mjs +0 -12
  869. package/dist/rmdir-OC4ZLPYA-B5P90Mlg.mjs.map +0 -1
  870. package/dist/sed-S5UIK574-Cp4P1a0l.mjs +0 -14
  871. package/dist/sed-S5UIK574-Cp4P1a0l.mjs.map +0 -1
  872. package/dist/sed-S5UIK574-gbu8PMbQ.cjs +0 -13
  873. package/dist/sed-S5UIK574-gbu8PMbQ.cjs.map +0 -1
  874. package/dist/sha1sum-2PTOAFR6-Bvrz-8iX.mjs +0 -12
  875. package/dist/sha1sum-2PTOAFR6-Bvrz-8iX.mjs.map +0 -1
  876. package/dist/sha1sum-2PTOAFR6-Za-gz4mo.cjs +0 -11
  877. package/dist/sha1sum-2PTOAFR6-Za-gz4mo.cjs.map +0 -1
  878. package/dist/sha256sum-NS7D3IXX-C-xCWapi.cjs +0 -11
  879. package/dist/sha256sum-NS7D3IXX-C-xCWapi.cjs.map +0 -1
  880. package/dist/sha256sum-NS7D3IXX-TyQCNwq3.mjs +0 -12
  881. package/dist/sha256sum-NS7D3IXX-TyQCNwq3.mjs.map +0 -1
  882. package/dist/sleep-X22JJINO-Dp-f-WY1.mjs +0 -13
  883. package/dist/sleep-X22JJINO-Dp-f-WY1.mjs.map +0 -1
  884. package/dist/sleep-X22JJINO-O4Bk4bOh.cjs +0 -12
  885. package/dist/sleep-X22JJINO-O4Bk4bOh.cjs.map +0 -1
  886. package/dist/sort-SW2YEO5B-B5lhQo4Q.cjs +0 -11
  887. package/dist/sort-SW2YEO5B-B5lhQo4Q.cjs.map +0 -1
  888. package/dist/sort-SW2YEO5B-Dtq0cIyl.mjs +0 -12
  889. package/dist/sort-SW2YEO5B-Dtq0cIyl.mjs.map +0 -1
  890. package/dist/split-4KKZZXXE-Cm2EVIJF.mjs +0 -11
  891. package/dist/split-4KKZZXXE-Cm2EVIJF.mjs.map +0 -1
  892. package/dist/split-4KKZZXXE-z8bO7VKd.cjs +0 -10
  893. package/dist/split-4KKZZXXE-z8bO7VKd.cjs.map +0 -1
  894. package/dist/sqlite3-CGOEFJAO-D5vwl05r.cjs +0 -11
  895. package/dist/sqlite3-CGOEFJAO-D5vwl05r.cjs.map +0 -1
  896. package/dist/sqlite3-CGOEFJAO-yXMBhVyd.mjs +0 -12
  897. package/dist/sqlite3-CGOEFJAO-yXMBhVyd.mjs.map +0 -1
  898. package/dist/strings-6WDHLGMX-CI7yrVvX.cjs +0 -10
  899. package/dist/strings-6WDHLGMX-CI7yrVvX.cjs.map +0 -1
  900. package/dist/strings-6WDHLGMX-ChNfz7d1.mjs +0 -11
  901. package/dist/strings-6WDHLGMX-ChNfz7d1.mjs.map +0 -1
  902. package/dist/tac-2STMMJYW-CUU-tVJV.cjs +0 -9
  903. package/dist/tac-2STMMJYW-CUU-tVJV.cjs.map +0 -1
  904. package/dist/tac-2STMMJYW-DXqIgfhX.mjs +0 -10
  905. package/dist/tac-2STMMJYW-DXqIgfhX.mjs.map +0 -1
  906. package/dist/tail-R4PCA2C4-DIXDHrhI.cjs +0 -11
  907. package/dist/tail-R4PCA2C4-DIXDHrhI.cjs.map +0 -1
  908. package/dist/tail-R4PCA2C4-Diznl4XA.mjs +0 -12
  909. package/dist/tail-R4PCA2C4-Diznl4XA.mjs.map +0 -1
  910. package/dist/tar-STHHZTZ6-AV666-h0.mjs +0 -14
  911. package/dist/tar-STHHZTZ6-AV666-h0.mjs.map +0 -1
  912. package/dist/tar-STHHZTZ6-hgukmWSQ.cjs +0 -13
  913. package/dist/tar-STHHZTZ6-hgukmWSQ.cjs.map +0 -1
  914. package/dist/tee-YUZ2FKCJ-Csh7BdHy.cjs +0 -11
  915. package/dist/tee-YUZ2FKCJ-Csh7BdHy.cjs.map +0 -1
  916. package/dist/tee-YUZ2FKCJ-DlqfpRJ5.mjs +0 -12
  917. package/dist/tee-YUZ2FKCJ-DlqfpRJ5.mjs.map +0 -1
  918. package/dist/time-D4LNBSWX-B6KNo4p2.mjs +0 -10
  919. package/dist/time-D4LNBSWX-B6KNo4p2.mjs.map +0 -1
  920. package/dist/time-D4LNBSWX-C1-xv91j.cjs +0 -9
  921. package/dist/time-D4LNBSWX-C1-xv91j.cjs.map +0 -1
  922. package/dist/timeout-YDCRSLPQ-DMYXJowX.cjs +0 -12
  923. package/dist/timeout-YDCRSLPQ-DMYXJowX.cjs.map +0 -1
  924. package/dist/timeout-YDCRSLPQ-Dsz1A4p_.mjs +0 -13
  925. package/dist/timeout-YDCRSLPQ-Dsz1A4p_.mjs.map +0 -1
  926. package/dist/touch-UA33VN3N-CS3e85fL.mjs +0 -11
  927. package/dist/touch-UA33VN3N-CS3e85fL.mjs.map +0 -1
  928. package/dist/touch-UA33VN3N-Dot1SzJ4.cjs +0 -10
  929. package/dist/touch-UA33VN3N-Dot1SzJ4.cjs.map +0 -1
  930. package/dist/tr-36LHWFRQ-BE_R4rvl.cjs +0 -11
  931. package/dist/tr-36LHWFRQ-BE_R4rvl.cjs.map +0 -1
  932. package/dist/tr-36LHWFRQ-CmBxW2hC.mjs +0 -12
  933. package/dist/tr-36LHWFRQ-CmBxW2hC.mjs.map +0 -1
  934. package/dist/tree-YLD52CNT-2EzlWOme.mjs +0 -12
  935. package/dist/tree-YLD52CNT-2EzlWOme.mjs.map +0 -1
  936. package/dist/tree-YLD52CNT-B9jKBHc2.cjs +0 -11
  937. package/dist/tree-YLD52CNT-B9jKBHc2.cjs.map +0 -1
  938. package/dist/unexpand-CADSA4VO-BqHc6UDU.mjs +0 -11
  939. package/dist/unexpand-CADSA4VO-BqHc6UDU.mjs.map +0 -1
  940. package/dist/unexpand-CADSA4VO-Bx91bdvO.cjs +0 -10
  941. package/dist/unexpand-CADSA4VO-Bx91bdvO.cjs.map +0 -1
  942. package/dist/uniq-XSIZR6PB-BwL9ZFnF.cjs +0 -12
  943. package/dist/uniq-XSIZR6PB-BwL9ZFnF.cjs.map +0 -1
  944. package/dist/uniq-XSIZR6PB-ChlQ89gh.mjs +0 -13
  945. package/dist/uniq-XSIZR6PB-ChlQ89gh.mjs.map +0 -1
  946. package/dist/wc-LF7NU4LA-BOFJ5VsO.mjs +0 -13
  947. package/dist/wc-LF7NU4LA-BOFJ5VsO.mjs.map +0 -1
  948. package/dist/wc-LF7NU4LA-o8wrw-aP.cjs +0 -12
  949. package/dist/wc-LF7NU4LA-o8wrw-aP.cjs.map +0 -1
  950. package/dist/xan-Y6WF3IRG-Ch8U70PM.mjs +0 -18
  951. package/dist/xan-Y6WF3IRG-Ch8U70PM.mjs.map +0 -1
  952. package/dist/xan-Y6WF3IRG-CmhavFMZ.cjs +0 -17
  953. package/dist/xan-Y6WF3IRG-CmhavFMZ.cjs.map +0 -1
  954. package/dist/xan-view-HDVKHFC2-Btb5_Jj_.cjs +0 -10
  955. package/dist/xan-view-HDVKHFC2-Btb5_Jj_.cjs.map +0 -1
  956. package/dist/xan-view-HDVKHFC2-DHaVaaBw.mjs +0 -11
  957. package/dist/xan-view-HDVKHFC2-DHaVaaBw.mjs.map +0 -1
  958. package/dist/xargs-MGZPH7AX-DWZbOIx-.mjs +0 -11
  959. package/dist/xargs-MGZPH7AX-DWZbOIx-.mjs.map +0 -1
  960. package/dist/xargs-MGZPH7AX-JFGtsxud.cjs +0 -10
  961. package/dist/xargs-MGZPH7AX-JFGtsxud.cjs.map +0 -1
  962. package/dist/yq-4QJW3EQG-CeQCFr3C.mjs +0 -17
  963. package/dist/yq-4QJW3EQG-CeQCFr3C.mjs.map +0 -1
  964. package/dist/yq-4QJW3EQG-SpsiM9yN.cjs +0 -16
  965. package/dist/yq-4QJW3EQG-SpsiM9yN.cjs.map +0 -1
@@ -0,0 +1,2744 @@
1
+ import { S as x, b as a, w as r$1, y as x$1 } from "./dist-CRsUBf24.mjs";
2
+ import { n as r1, t as I1 } from "./chunk-4RUAZWKT-CISqwIli.mjs";
3
+ import { i as b$1 } from "./chunk-SAI2SPQQ-D6YWGjkC.mjs";
4
+ import { n as d } from "./chunk-TN7HHBQW-B8PYcKz5.mjs";
5
+ import { n as r$2, r as s, t as o } from "./chunk-QAYAQNCG-B1r1SmqS.mjs";
6
+ import { createRequire } from "node:module";
7
+ //#region ../../node_modules/.pnpm/just-bash@3.0.1/node_modules/just-bash/dist/bundle/chunks/chunk-LNBPBRV4.js
8
+ createRequire(import.meta.url);
9
+ var Be = 1e4, He = 100, $e = new r1(/\s+/);
10
+ function se(e = {}) {
11
+ let { fieldSep: t = $e, maxIterations: n = Be, maxRecursionDepth: i = He, maxOutputSize: s = 0, fs: a, cwd: o, exec: l, coverage: u, requireDefenseContext: N } = e;
12
+ return {
13
+ FS: " ",
14
+ OFS: " ",
15
+ ORS: `
16
+ `,
17
+ OFMT: "%.6g",
18
+ NR: 0,
19
+ NF: 0,
20
+ FNR: 0,
21
+ FILENAME: "",
22
+ RSTART: 0,
23
+ RLENGTH: -1,
24
+ SUBSEP: "",
25
+ fields: [],
26
+ line: "",
27
+ vars: Object.create(null),
28
+ arrays: Object.create(null),
29
+ arrayAliases: /* @__PURE__ */ new Map(),
30
+ ARGC: 0,
31
+ ARGV: Object.create(null),
32
+ ENVIRON: Object.create(null),
33
+ functions: /* @__PURE__ */ new Map(),
34
+ fieldSep: t,
35
+ maxIterations: n,
36
+ maxRecursionDepth: i,
37
+ maxOutputSize: s,
38
+ currentRecursionDepth: 0,
39
+ exitCode: 0,
40
+ shouldExit: !1,
41
+ shouldNext: !1,
42
+ shouldNextFile: !1,
43
+ loopBreak: !1,
44
+ loopContinue: !1,
45
+ hasReturn: !1,
46
+ inEndBlock: !1,
47
+ output: "",
48
+ openedFiles: /* @__PURE__ */ new Set(),
49
+ fs: a,
50
+ cwd: o,
51
+ exec: l,
52
+ coverage: u,
53
+ requireDefenseContext: N
54
+ };
55
+ }
56
+ function Ne(e, t, n) {
57
+ switch (n) {
58
+ case "+": return e + t;
59
+ case "-": return e - t;
60
+ case "*": return e * t;
61
+ case "/": return t !== 0 ? e / t : 0;
62
+ case "%": return t !== 0 ? e % t : 0;
63
+ case "^":
64
+ case "**": return e ** t;
65
+ default: return 0;
66
+ }
67
+ }
68
+ function M(e) {
69
+ if (typeof e == "number") return e;
70
+ let t = parseFloat(e);
71
+ return Number.isNaN(t) ? 0 : t;
72
+ }
73
+ function k(e) {
74
+ return typeof e == "string" ? e : String(e);
75
+ }
76
+ async function j(e, t) {
77
+ if (e.type === "regex") return e.pattern;
78
+ let n = k(await t.evalExpr(e));
79
+ return n.startsWith("/") && n.endsWith("/") && (n = n.slice(1, -1)), n;
80
+ }
81
+ async function Se(e, t) {
82
+ return e ? e.type === "variable" ? e.name : e.type === "field" ? `$${Math.floor(M(await t.evalExpr(e.index)))}` : "$0" : "$0";
83
+ }
84
+ function me(e, t) {
85
+ if (e === "$0") return t.line;
86
+ if (e.startsWith("$")) {
87
+ let n = parseInt(e.slice(1), 10) - 1;
88
+ return t.fields[n] || "";
89
+ }
90
+ return k(t.vars[e] ?? "");
91
+ }
92
+ function we(e, t, n) {
93
+ if (e === "$0") n.line = t, n.fields = n.FS === " " ? t.trim().split(/\s+/).filter(Boolean) : n.fieldSep.split(t), n.NF = n.fields.length;
94
+ else if (e.startsWith("$")) {
95
+ let i = parseInt(e.slice(1), 10) - 1;
96
+ for (; n.fields.length <= i;) n.fields.push("");
97
+ n.fields[i] = t, n.NF = n.fields.length, n.line = n.fields.join(n.OFS);
98
+ } else n.vars[e] = t;
99
+ }
100
+ async function We(e, t, n) {
101
+ return e.length === 0 ? t.line.length : k(await n.evalExpr(e[0])).length;
102
+ }
103
+ async function Ve(e, t, n) {
104
+ if (e.length < 2) return "";
105
+ let i = k(await n.evalExpr(e[0])), s = Math.floor(M(await n.evalExpr(e[1]))) - 1;
106
+ if (e.length >= 3) {
107
+ let a = Math.floor(M(await n.evalExpr(e[2])));
108
+ return i.substr(Math.max(0, s), a);
109
+ }
110
+ return i.substr(Math.max(0, s));
111
+ }
112
+ async function Ke(e, t, n) {
113
+ if (e.length < 2) return 0;
114
+ let i = k(await n.evalExpr(e[0])), s = k(await n.evalExpr(e[1])), a = i.indexOf(s);
115
+ return a === -1 ? 0 : a + 1;
116
+ }
117
+ async function Xe(e, t, n) {
118
+ if (e.length < 2) return 0;
119
+ let i = k(await n.evalExpr(e[0])), s = e[1];
120
+ if (s.type !== "variable") return 0;
121
+ let a = s.name, o = t.FS;
122
+ if (e.length >= 3) {
123
+ let u = e[2];
124
+ if (u.type === "regex") o = I1(u.pattern);
125
+ else {
126
+ let N = k(await n.evalExpr(u));
127
+ o = N === " " ? I1("\\s+") : N;
128
+ }
129
+ } else t.FS === " " && (o = I1("\\s+"));
130
+ let l = typeof o == "string" ? i.split(o) : o.split(i);
131
+ t.arrays[a] = Object.create(null);
132
+ for (let u = 0; u < l.length; u++) t.arrays[a][String(u + 1)] = l[u];
133
+ return l.length;
134
+ }
135
+ async function qe(e, t, n) {
136
+ if (e.length < 2) return 0;
137
+ let i = await j(e[0], n), s = k(await n.evalExpr(e[1])), a = await Se(e[2], n), o = me(a, t);
138
+ try {
139
+ let u = I1(i).replace(o, Re(s)), N = u !== o ? 1 : 0;
140
+ return we(a, u, t), N;
141
+ } catch {
142
+ return 0;
143
+ }
144
+ }
145
+ async function ze(e, t, n) {
146
+ if (e.length < 2) return 0;
147
+ let i = await j(e[0], n), s = k(await n.evalExpr(e[1])), a = await Se(e[2], n), o = me(a, t);
148
+ try {
149
+ let l = I1(i, "g"), u = l.match(o), N = u ? u.length : 0;
150
+ return we(a, l.replace(o, Re(s)), t), N;
151
+ } catch {
152
+ return 0;
153
+ }
154
+ }
155
+ function Re(e) {
156
+ return (t) => {
157
+ let n = "", i = 0;
158
+ for (; i < e.length;) if (e[i] === "\\" && i + 1 < e.length) {
159
+ let s = e[i + 1];
160
+ s === "&" ? (n += "&", i += 2) : s === "\\" ? (n += "\\", i += 2) : (n += e[i + 1], i += 2);
161
+ } else e[i] === "&" ? (n += t, i++) : (n += e[i], i++);
162
+ return n;
163
+ };
164
+ }
165
+ async function je(e, t, n) {
166
+ if (e.length < 2) return t.RSTART = 0, t.RLENGTH = -1, 0;
167
+ let i = k(await n.evalExpr(e[0])), s = await j(e[1], n);
168
+ try {
169
+ let o = I1(s).exec(i);
170
+ if (o) return t.RSTART = o.index + 1, t.RLENGTH = o[0].length, t.RSTART;
171
+ } catch {}
172
+ return t.RSTART = 0, t.RLENGTH = -1, 0;
173
+ }
174
+ async function Qe(e, t, n) {
175
+ if (e.length < 3) return "";
176
+ let i = await j(e[0], n), s = k(await n.evalExpr(e[1])), a = k(await n.evalExpr(e[2])), o = e.length >= 4 ? k(await n.evalExpr(e[3])) : t.line;
177
+ try {
178
+ let l = a.toLowerCase() === "g", u = l ? 0 : parseInt(a, 10) || 1;
179
+ if (l) return I1(i, "g").replace(o, (A, ...C) => ye(s, A, C.slice(0, -2)));
180
+ {
181
+ let N = 0;
182
+ return I1(i, "g").replace(o, (C, ...O) => (N++, N === u ? ye(s, C, O.slice(0, -2)) : C));
183
+ }
184
+ } catch {
185
+ return o;
186
+ }
187
+ }
188
+ function ye(e, t, n) {
189
+ let i = "", s = 0;
190
+ for (; s < e.length;) if (e[s] === "\\" && s + 1 < e.length) {
191
+ let a = e[s + 1];
192
+ if (a === "&") i += "&", s += 2;
193
+ else if (a === "0") i += t, s += 2;
194
+ else if (a >= "1" && a <= "9") {
195
+ let o = parseInt(a, 10) - 1;
196
+ i += n[o] || "", s += 2;
197
+ } else a === "n" ? (i += `
198
+ `, s += 2) : a === "t" ? (i += " ", s += 2) : (i += a, s += 2);
199
+ } else e[s] === "&" ? (i += t, s++) : (i += e[s], s++);
200
+ return i;
201
+ }
202
+ async function Je(e, t, n) {
203
+ return e.length === 0 ? "" : k(await n.evalExpr(e[0])).toLowerCase();
204
+ }
205
+ async function Ze(e, t, n) {
206
+ return e.length === 0 ? "" : k(await n.evalExpr(e[0])).toUpperCase();
207
+ }
208
+ async function Ye(e, t, n) {
209
+ if (e.length === 0) return "";
210
+ let i = k(await n.evalExpr(e[0])), s = [];
211
+ for (let a = 1; a < e.length; a++) s.push(await n.evalExpr(e[a]));
212
+ return Q(i, s);
213
+ }
214
+ async function et(e, t, n) {
215
+ return e.length === 0 ? 0 : Math.floor(M(await n.evalExpr(e[0])));
216
+ }
217
+ async function tt(e, t, n) {
218
+ return e.length === 0 ? 0 : Math.sqrt(M(await n.evalExpr(e[0])));
219
+ }
220
+ async function nt(e, t, n) {
221
+ return e.length === 0 ? 0 : Math.sin(M(await n.evalExpr(e[0])));
222
+ }
223
+ async function rt(e, t, n) {
224
+ return e.length === 0 ? 0 : Math.cos(M(await n.evalExpr(e[0])));
225
+ }
226
+ async function it(e, t, n) {
227
+ let i = e.length > 0 ? M(await n.evalExpr(e[0])) : 0, s = e.length > 1 ? M(await n.evalExpr(e[1])) : 0;
228
+ return Math.atan2(i, s);
229
+ }
230
+ async function st(e, t, n) {
231
+ return e.length === 0 ? 0 : Math.log(M(await n.evalExpr(e[0])));
232
+ }
233
+ async function at(e, t, n) {
234
+ return e.length === 0 ? 1 : Math.exp(M(await n.evalExpr(e[0])));
235
+ }
236
+ function ot(e, t, n) {
237
+ return t.random ? t.random() : Math.random();
238
+ }
239
+ async function lt(e, t, n) {
240
+ let i = e.length > 0 ? M(await n.evalExpr(e[0])) : Date.now();
241
+ return t.vars._srand_seed = i, i;
242
+ }
243
+ function ut(e, t) {
244
+ return () => {
245
+ throw new Error(`${e}() is not supported - ${t}`);
246
+ };
247
+ }
248
+ function ae(e) {
249
+ return () => {
250
+ throw new Error(`function '${e}()' is not implemented`);
251
+ };
252
+ }
253
+ var U = 1e4;
254
+ function Q(e, t) {
255
+ let n = 0, i = "", s = 0;
256
+ for (; s < e.length;) if (e[s] === "%" && s + 1 < e.length) {
257
+ let a = s + 1, o = "", l = "", u = "", N, A = a;
258
+ for (; a < e.length && /\d/.test(e[a]);) a++;
259
+ a > A && e[a] === "$" ? (N = parseInt(e.substring(A, a), 10) - 1, a++) : a = A;
260
+ let C = () => {
261
+ if (a < e.length) {
262
+ if (a + 1 < e.length && (e[a] === "h" && e[a + 1] === "h" || e[a] === "l" && e[a + 1] === "l")) {
263
+ a += 2;
264
+ return;
265
+ }
266
+ /[lzjh]/.test(e[a]) && a++;
267
+ }
268
+ };
269
+ for (; a < e.length && /[-+ #0]/.test(e[a]);) o += e[a++];
270
+ if (e[a] === "*") {
271
+ let d = t[n++], R = d !== void 0 ? Math.floor(Number(d)) : 0;
272
+ R < 0 ? (o += "-", l = String(Math.min(-R, U))) : l = String(Math.min(R, U)), a++;
273
+ } else for (; a < e.length && /\d/.test(e[a]);) l += e[a++];
274
+ if (l && parseInt(l, 10) > U && (l = String(U)), e[a] === ".") {
275
+ if (a++, e[a] === "*") {
276
+ let d = t[n++];
277
+ u = String(Math.min(d !== void 0 ? Math.floor(Number(d)) : 0, U)), a++;
278
+ } else for (; a < e.length && /\d/.test(e[a]);) u += e[a++];
279
+ u && parseInt(u, 10) > U && (u = String(U));
280
+ }
281
+ C();
282
+ let O = e[a], w = t[N !== void 0 ? N : n];
283
+ switch (O) {
284
+ case "s": {
285
+ let d = w !== void 0 ? String(w) : "";
286
+ if (u && (d = d.substring(0, parseInt(u, 10))), l) {
287
+ let R = parseInt(l, 10);
288
+ o.includes("-") ? d = d.padEnd(R) : d = d.padStart(R);
289
+ }
290
+ i += d, N === void 0 && n++;
291
+ break;
292
+ }
293
+ case "d":
294
+ case "i": {
295
+ let d = w !== void 0 ? Math.floor(Number(w)) : 0;
296
+ Number.isNaN(d) && (d = 0);
297
+ let R = d < 0, h = Math.abs(d).toString();
298
+ if (u) {
299
+ let F = parseInt(u, 10);
300
+ h = h.padStart(F, "0");
301
+ }
302
+ let c = "";
303
+ R ? c = "-" : o.includes("+") ? c = "+" : o.includes(" ") && (c = " ");
304
+ let E = c + h;
305
+ if (l) {
306
+ let F = parseInt(l, 10);
307
+ o.includes("-") ? E = E.padEnd(F) : o.includes("0") && !u ? E = c + h.padStart(F - c.length, "0") : E = E.padStart(F);
308
+ }
309
+ i += E, N === void 0 && n++;
310
+ break;
311
+ }
312
+ case "f": {
313
+ let d = w !== void 0 ? Number(w) : 0;
314
+ Number.isNaN(d) && (d = 0);
315
+ let R = u ? parseInt(u, 10) : 6, h = d.toFixed(R);
316
+ if (l) {
317
+ let c = parseInt(l, 10);
318
+ o.includes("-") ? h = h.padEnd(c) : h = h.padStart(c);
319
+ }
320
+ i += h, N === void 0 && n++;
321
+ break;
322
+ }
323
+ case "e":
324
+ case "E": {
325
+ let d = w !== void 0 ? Number(w) : 0;
326
+ Number.isNaN(d) && (d = 0);
327
+ let R = u ? parseInt(u, 10) : 6, h = d.toExponential(R);
328
+ if (O === "E" && (h = h.toUpperCase()), l) {
329
+ let c = parseInt(l, 10);
330
+ o.includes("-") ? h = h.padEnd(c) : h = h.padStart(c);
331
+ }
332
+ i += h, N === void 0 && n++;
333
+ break;
334
+ }
335
+ case "g":
336
+ case "G": {
337
+ let d = w !== void 0 ? Number(w) : 0;
338
+ Number.isNaN(d) && (d = 0);
339
+ let R = u ? parseInt(u, 10) : 6, h = d !== 0 ? Math.floor(Math.log10(Math.abs(d))) : 0, c;
340
+ if (d === 0 ? c = "0" : h < -4 || h >= R ? (c = d.toExponential(R - 1), O === "G" && (c = c.toUpperCase())) : c = d.toPrecision(R), c.includes(".") && (c = c.replace(/\.?0+$/, "").replace(/\.?0+e/, "e")), c.includes("e") && (c = c.replace(/\.?0+e/, "e")), l) {
341
+ let E = parseInt(l, 10);
342
+ o.includes("-") ? c = c.padEnd(E) : c = c.padStart(E);
343
+ }
344
+ i += c, N === void 0 && n++;
345
+ break;
346
+ }
347
+ case "x":
348
+ case "X": {
349
+ let d = w !== void 0 ? Math.floor(Number(w)) : 0;
350
+ Number.isNaN(d) && (d = 0);
351
+ let R = Math.abs(d).toString(16);
352
+ if (O === "X" && (R = R.toUpperCase()), u) {
353
+ let E = parseInt(u, 10);
354
+ R = R.padStart(E, "0");
355
+ }
356
+ let h = d < 0 ? "-" : "", c = h + R;
357
+ if (l) {
358
+ let E = parseInt(l, 10);
359
+ o.includes("-") ? c = c.padEnd(E) : o.includes("0") && !u ? c = h + R.padStart(E - h.length, "0") : c = c.padStart(E);
360
+ }
361
+ i += c, N === void 0 && n++;
362
+ break;
363
+ }
364
+ case "o": {
365
+ let d = w !== void 0 ? Math.floor(Number(w)) : 0;
366
+ Number.isNaN(d) && (d = 0);
367
+ let R = Math.abs(d).toString(8);
368
+ if (u) {
369
+ let E = parseInt(u, 10);
370
+ R = R.padStart(E, "0");
371
+ }
372
+ let h = d < 0 ? "-" : "", c = h + R;
373
+ if (l) {
374
+ let E = parseInt(l, 10);
375
+ o.includes("-") ? c = c.padEnd(E) : o.includes("0") && !u ? c = h + R.padStart(E - h.length, "0") : c = c.padStart(E);
376
+ }
377
+ i += c, N === void 0 && n++;
378
+ break;
379
+ }
380
+ case "c":
381
+ typeof w == "number" ? i += String.fromCharCode(w) : i += String(w ?? "").charAt(0) || "", N === void 0 && n++;
382
+ break;
383
+ case "%":
384
+ i += "%";
385
+ break;
386
+ default: i += e.substring(s, a + 1);
387
+ }
388
+ s = a + 1;
389
+ } else if (e[s] === "\\" && s + 1 < e.length) {
390
+ let a = e[s + 1];
391
+ switch (a) {
392
+ case "n":
393
+ i += `
394
+ `;
395
+ break;
396
+ case "t":
397
+ i += " ";
398
+ break;
399
+ case "r":
400
+ i += "\r";
401
+ break;
402
+ case "\\":
403
+ i += "\\";
404
+ break;
405
+ default: i += a;
406
+ }
407
+ s += 2;
408
+ } else i += e[s++];
409
+ return i;
410
+ }
411
+ var ge = new Map([
412
+ ["length", We],
413
+ ["substr", Ve],
414
+ ["index", Ke],
415
+ ["split", Xe],
416
+ ["sub", qe],
417
+ ["gsub", ze],
418
+ ["match", je],
419
+ ["gensub", Qe],
420
+ ["tolower", Je],
421
+ ["toupper", Ze],
422
+ ["sprintf", Ye],
423
+ ["int", et],
424
+ ["sqrt", tt],
425
+ ["sin", nt],
426
+ ["cos", rt],
427
+ ["atan2", it],
428
+ ["log", st],
429
+ ["exp", at],
430
+ ["rand", ot],
431
+ ["srand", lt],
432
+ ["system", ut("system", "shell execution not allowed in sandboxed environment")],
433
+ ["close", () => 0],
434
+ ["fflush", () => 0],
435
+ ["systime", ae("systime")],
436
+ ["mktime", ae("mktime")],
437
+ ["strftime", ae("strftime")]
438
+ ]);
439
+ function b(e) {
440
+ return typeof e == "number" ? e !== 0 : !(e === "" || e === "0");
441
+ }
442
+ function g(e) {
443
+ if (typeof e == "number") return e;
444
+ let t = parseFloat(e);
445
+ return Number.isNaN(t) ? 0 : t;
446
+ }
447
+ function m(e) {
448
+ return typeof e == "string" ? e : String(e);
449
+ }
450
+ function oe(e) {
451
+ if (typeof e == "number") return !0;
452
+ let t = String(e).trim();
453
+ return t === "" ? !1 : !Number.isNaN(Number(t));
454
+ }
455
+ function K(e, t) {
456
+ try {
457
+ return I1(e).test(t);
458
+ } catch {
459
+ return !1;
460
+ }
461
+ }
462
+ function Ae(e, t) {
463
+ return t === "" ? [] : e.FS === " " ? t.trim().split(/\s+/).filter(Boolean) : e.fieldSep.split(t);
464
+ }
465
+ function J(e, t) {
466
+ return t === 0 ? e.line : t < 0 || t > e.fields.length ? "" : e.fields[t - 1] ?? "";
467
+ }
468
+ function le(e, t, n) {
469
+ if (t === 0) e.line = m(n), e.fields = Ae(e, e.line), e.NF = e.fields.length;
470
+ else if (t > 0) {
471
+ for (; e.fields.length < t;) e.fields.push("");
472
+ e.fields[t - 1] = m(n), e.NF = e.fields.length, e.line = e.fields.join(e.OFS);
473
+ }
474
+ }
475
+ function $(e, t) {
476
+ e.line = t, e.fields = Ae(e, t), e.NF = e.fields.length;
477
+ }
478
+ function ve(e, t) {
479
+ if (e.FS = t, t === " ") e.fieldSep = new r1(/\s+/);
480
+ else try {
481
+ e.fieldSep = I1(t);
482
+ } catch {
483
+ e.fieldSep = I1(t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
484
+ }
485
+ }
486
+ function Z(e, t) {
487
+ switch (t) {
488
+ case "FS": return e.FS;
489
+ case "OFS": return e.OFS;
490
+ case "ORS": return e.ORS;
491
+ case "OFMT": return e.OFMT;
492
+ case "NR": return e.NR;
493
+ case "NF": return e.NF;
494
+ case "FNR": return e.FNR;
495
+ case "FILENAME": return e.FILENAME;
496
+ case "RSTART": return e.RSTART;
497
+ case "RLENGTH": return e.RLENGTH;
498
+ case "SUBSEP": return e.SUBSEP;
499
+ case "ARGC": return e.ARGC;
500
+ }
501
+ return e.vars[t] ?? "";
502
+ }
503
+ function W(e, t, n) {
504
+ switch (t) {
505
+ case "FS":
506
+ ve(e, m(n));
507
+ return;
508
+ case "OFS":
509
+ e.OFS = m(n);
510
+ return;
511
+ case "ORS":
512
+ e.ORS = m(n);
513
+ return;
514
+ case "OFMT":
515
+ e.OFMT = m(n);
516
+ return;
517
+ case "NR":
518
+ e.NR = Math.floor(g(n));
519
+ return;
520
+ case "NF": {
521
+ let i = Math.floor(g(n));
522
+ if (i < e.NF) e.fields = e.fields.slice(0, i), e.line = e.fields.join(e.OFS);
523
+ else if (i > e.NF) {
524
+ for (; e.fields.length < i;) e.fields.push("");
525
+ e.line = e.fields.join(e.OFS);
526
+ }
527
+ e.NF = i;
528
+ return;
529
+ }
530
+ case "FNR":
531
+ e.FNR = Math.floor(g(n));
532
+ return;
533
+ case "FILENAME":
534
+ e.FILENAME = m(n);
535
+ return;
536
+ case "RSTART":
537
+ e.RSTART = Math.floor(g(n));
538
+ return;
539
+ case "RLENGTH":
540
+ e.RLENGTH = Math.floor(g(n));
541
+ return;
542
+ case "SUBSEP":
543
+ e.SUBSEP = m(n);
544
+ return;
545
+ }
546
+ e.vars[t] = n;
547
+ }
548
+ function X(e, t) {
549
+ let n = t, i = /* @__PURE__ */ new Set(), s = e.arrayAliases.get(n);
550
+ for (; s !== void 0 && !i.has(n);) i.add(n), n = s, s = e.arrayAliases.get(n);
551
+ return n;
552
+ }
553
+ function Y(e, t, n) {
554
+ if (t === "ARGV") return e.ARGV[n] ?? "";
555
+ if (t === "ENVIRON") return e.ENVIRON[n] ?? "";
556
+ let i = X(e, t);
557
+ return e.arrays[i]?.[n] ?? "";
558
+ }
559
+ function ue(e, t, n, i) {
560
+ let s = X(e, t);
561
+ e.arrays[s] || (e.arrays[s] = Object.create(null)), e.arrays[s][n] = i;
562
+ }
563
+ function Ie(e, t, n) {
564
+ if (t === "ARGV") return e.ARGV[n] !== void 0;
565
+ if (t === "ENVIRON") return e.ENVIRON[n] !== void 0;
566
+ let i = X(e, t);
567
+ return e.arrays[i]?.[n] !== void 0;
568
+ }
569
+ function ke(e, t, n) {
570
+ let i = X(e, t);
571
+ e.arrays[i] && delete e.arrays[i][n];
572
+ }
573
+ function Ce(e, t) {
574
+ let n = X(e, t);
575
+ delete e.arrays[n];
576
+ }
577
+ var be = null;
578
+ function Oe(e) {
579
+ be = e;
580
+ }
581
+ function L(e, t) {
582
+ a(e.requireDefenseContext, "awk", t);
583
+ }
584
+ function S(e, t, n) {
585
+ return x(e.requireDefenseContext, "awk", t, n);
586
+ }
587
+ async function f(e, t) {
588
+ switch (L(e, "expression evaluation"), e.coverage?.hit(`awk:expr:${t.type}`), t.type) {
589
+ case "number": return t.value;
590
+ case "string": return t.value;
591
+ case "regex": return K(t.pattern, e.line) ? 1 : 0;
592
+ case "field": return ct(e, t);
593
+ case "variable": return Z(e, t.name);
594
+ case "array_access": return ht(e, t);
595
+ case "binary": return pt(e, t);
596
+ case "unary": return Et(e, t);
597
+ case "ternary": return b(await S(e, "ternary condition evaluation", () => f(e, t.condition))) ? await S(e, "ternary consequent evaluation", () => f(e, t.consequent)) : await S(e, "ternary alternate evaluation", () => f(e, t.alternate));
598
+ case "call": return Nt(e, t.name, t.args);
599
+ case "assignment": return St(e, t);
600
+ case "pre_increment": return mt(e, t.operand);
601
+ case "pre_decrement": return wt(e, t.operand);
602
+ case "post_increment": return Rt(e, t.operand);
603
+ case "post_decrement": return gt(e, t.operand);
604
+ case "in": return At(e, t.key, t.array);
605
+ case "getline": return vt(e, t.variable, t.file, t.command);
606
+ case "tuple": return Ct(e, t.elements);
607
+ default: return "";
608
+ }
609
+ }
610
+ async function ct(e, t) {
611
+ L(e, "field reference evaluation");
612
+ return J(e, Math.floor(g(await S(e, "field index evaluation", () => f(e, t.index)))));
613
+ }
614
+ async function ht(e, t) {
615
+ L(e, "array access evaluation");
616
+ let n = m(await S(e, "array key evaluation", () => f(e, t.key)));
617
+ return Y(e, t.array, n);
618
+ }
619
+ async function pt(e, t) {
620
+ L(e, "binary expression evaluation");
621
+ let n = t.operator;
622
+ if (n === "||") return b(await S(e, "logical-or left evaluation", () => f(e, t.left))) || b(await S(e, "logical-or right evaluation", () => f(e, t.right))) ? 1 : 0;
623
+ if (n === "&&") return b(await S(e, "logical-and left evaluation", () => f(e, t.left))) && b(await S(e, "logical-and right evaluation", () => f(e, t.right))) ? 1 : 0;
624
+ if (n === "~") {
625
+ let l = await S(e, "regex left evaluation", () => f(e, t.left));
626
+ t.right.type === "regex" && e.coverage?.hit("awk:expr:regex");
627
+ let u = t.right.type === "regex" ? t.right.pattern : m(await S(e, "regex right evaluation", () => f(e, t.right)));
628
+ try {
629
+ return I1(u).test(m(l)) ? 1 : 0;
630
+ } catch {
631
+ return 0;
632
+ }
633
+ }
634
+ if (n === "!~") {
635
+ let l = await S(e, "negated-regex left evaluation", () => f(e, t.left));
636
+ t.right.type === "regex" && e.coverage?.hit("awk:expr:regex");
637
+ let u = t.right.type === "regex" ? t.right.pattern : m(await S(e, "negated-regex right evaluation", () => f(e, t.right)));
638
+ try {
639
+ return I1(u).test(m(l)) ? 0 : 1;
640
+ } catch {
641
+ return 1;
642
+ }
643
+ }
644
+ let i = await S(e, "binary left evaluation", () => f(e, t.left)), s = await S(e, "binary right evaluation", () => f(e, t.right));
645
+ if (n === " ") {
646
+ let l = m(i) + m(s);
647
+ if (e.maxOutputSize > 0 && l.length > e.maxOutputSize) throw new b$1(`awk: string concatenation size limit exceeded (${e.maxOutputSize} bytes)`, "string_length", e.output);
648
+ return l;
649
+ }
650
+ if (ft(n)) return dt(i, s, n);
651
+ return Ne(g(i), g(s), n);
652
+ }
653
+ function ft(e) {
654
+ return [
655
+ "<",
656
+ "<=",
657
+ ">",
658
+ ">=",
659
+ "==",
660
+ "!="
661
+ ].includes(e);
662
+ }
663
+ function dt(e, t, n) {
664
+ let i = oe(e), s = oe(t);
665
+ if (i && s) {
666
+ let l = g(e), u = g(t);
667
+ switch (n) {
668
+ case "<": return l < u ? 1 : 0;
669
+ case "<=": return l <= u ? 1 : 0;
670
+ case ">": return l > u ? 1 : 0;
671
+ case ">=": return l >= u ? 1 : 0;
672
+ case "==": return l === u ? 1 : 0;
673
+ case "!=": return l !== u ? 1 : 0;
674
+ }
675
+ }
676
+ let a = m(e), o = m(t);
677
+ switch (n) {
678
+ case "<": return a < o ? 1 : 0;
679
+ case "<=": return a <= o ? 1 : 0;
680
+ case ">": return a > o ? 1 : 0;
681
+ case ">=": return a >= o ? 1 : 0;
682
+ case "==": return a === o ? 1 : 0;
683
+ case "!=": return a !== o ? 1 : 0;
684
+ }
685
+ return 0;
686
+ }
687
+ async function Et(e, t) {
688
+ L(e, "unary expression evaluation");
689
+ let n = await S(e, "unary operand evaluation", () => f(e, t.operand));
690
+ switch (t.operator) {
691
+ case "!": return b(n) ? 0 : 1;
692
+ case "-": return -g(n);
693
+ case "+": return +g(n);
694
+ default: return n;
695
+ }
696
+ }
697
+ async function Nt(e, t, n) {
698
+ L(e, "function call evaluation");
699
+ let i = ge.get(t);
700
+ if (i) return i(n, e, { evalExpr: (a) => f(e, a) });
701
+ let s = e.functions.get(t);
702
+ return s ? yt(e, s, n) : "";
703
+ }
704
+ async function yt(e, t, n) {
705
+ if (L(e, "user function call"), e.currentRecursionDepth++, e.currentRecursionDepth > e.maxRecursionDepth) throw e.currentRecursionDepth--, new b$1(`awk: recursion depth exceeded maximum (${e.maxRecursionDepth})`, "recursion", e.output);
706
+ let i = Object.create(null);
707
+ for (let l of t.params) i[l] = e.vars[l];
708
+ let s = [];
709
+ for (let l = 0; l < t.params.length; l++) {
710
+ let u = t.params[l];
711
+ if (l < n.length) {
712
+ let N = n[l];
713
+ N.type === "variable" && (e.arrayAliases.set(u, N.name), s.push(u));
714
+ let A = await S(e, "user function argument evaluation", () => f(e, N));
715
+ e.vars[u] = A;
716
+ } else e.vars[u] = "";
717
+ }
718
+ e.hasReturn = !1, e.returnValue = void 0;
719
+ let a = be;
720
+ a && await S(e, "user function body execution", () => a(e, t.body.statements));
721
+ let o = e.returnValue ?? "";
722
+ for (let l of t.params) i[l] !== void 0 ? e.vars[l] = i[l] : delete e.vars[l];
723
+ for (let l of s) e.arrayAliases.delete(l);
724
+ return e.hasReturn = !1, e.returnValue = void 0, e.currentRecursionDepth--, o;
725
+ }
726
+ async function St(e, t) {
727
+ L(e, "assignment evaluation");
728
+ let n = await S(e, "assignment value evaluation", () => f(e, t.value)), i = t.target, s = t.operator, a;
729
+ if (s === "=") a = n;
730
+ else {
731
+ let o;
732
+ if (i.type === "field") o = J(e, Math.floor(g(await S(e, "assignment field index", () => f(e, i.index)))));
733
+ else if (i.type === "variable") o = Z(e, i.name);
734
+ else {
735
+ let N = m(await S(e, "assignment array key", () => f(e, i.key)));
736
+ o = Y(e, i.array, N);
737
+ }
738
+ let l = g(o), u = g(n);
739
+ switch (s) {
740
+ case "+=":
741
+ a = l + u;
742
+ break;
743
+ case "-=":
744
+ a = l - u;
745
+ break;
746
+ case "*=":
747
+ a = l * u;
748
+ break;
749
+ case "/=":
750
+ a = u !== 0 ? l / u : 0;
751
+ break;
752
+ case "%=":
753
+ a = u !== 0 ? l % u : 0;
754
+ break;
755
+ case "^=":
756
+ a = l ** u;
757
+ break;
758
+ default: a = n;
759
+ }
760
+ }
761
+ if (i.type === "field") le(e, Math.floor(g(await S(e, "assignment target field index", () => f(e, i.index)))), a);
762
+ else if (i.type === "variable") W(e, i.name, a);
763
+ else {
764
+ let o = m(await S(e, "assignment target array key", () => f(e, i.key)));
765
+ ue(e, i.array, o, a);
766
+ }
767
+ return a;
768
+ }
769
+ async function ee(e, t, n, i) {
770
+ L(e, "inc/dec evaluation");
771
+ let s;
772
+ if (t.type === "field") {
773
+ let a = Math.floor(g(await S(e, "inc/dec field index", () => f(e, t.index))));
774
+ s = g(J(e, a)), le(e, a, s + n);
775
+ } else if (t.type === "variable") s = g(Z(e, t.name)), W(e, t.name, s + n);
776
+ else {
777
+ let a = m(await S(e, "inc/dec array key", () => f(e, t.key)));
778
+ s = g(Y(e, t.array, a)), ue(e, t.array, a, s + n);
779
+ }
780
+ return i ? s + n : s;
781
+ }
782
+ async function mt(e, t) {
783
+ return ee(e, t, 1, !0);
784
+ }
785
+ async function wt(e, t) {
786
+ return ee(e, t, -1, !0);
787
+ }
788
+ async function Rt(e, t) {
789
+ return ee(e, t, 1, !1);
790
+ }
791
+ async function gt(e, t) {
792
+ return ee(e, t, -1, !1);
793
+ }
794
+ async function At(e, t, n) {
795
+ L(e, "in-expression evaluation");
796
+ let i;
797
+ if (t.type === "tuple") {
798
+ e.coverage?.hit("awk:expr:tuple");
799
+ let s = [];
800
+ for (let a of t.elements) s.push(m(await S(e, "tuple key element evaluation", () => f(e, a))));
801
+ i = s.join(e.SUBSEP);
802
+ } else i = m(await S(e, "in-expression key evaluation", () => f(e, t)));
803
+ return Ie(e, n, i) ? 1 : 0;
804
+ }
805
+ async function vt(e, t, n, i) {
806
+ if (L(e, "getline evaluation"), i) return It(e, t, i);
807
+ if (n) return kt(e, t, n);
808
+ if (!e.lines || e.lineIndex === void 0) return -1;
809
+ let s = e.lineIndex + 1;
810
+ if (s >= e.lines.length) return 0;
811
+ let a = e.lines[s];
812
+ return t ? W(e, t, a) : $(e, a), e.NR++, e.lineIndex = s, 1;
813
+ }
814
+ async function It(e, t, n) {
815
+ let i = e.exec;
816
+ if (!i) return -1;
817
+ L(e, "getline command source");
818
+ let s = m(await S(e, "getline command expression", () => f(e, n))), a = `__cmd_${s}`, o = `__cmdi_${s}`, l, u;
819
+ if (e.vars[a] === void 0) try {
820
+ l = x$1((await S(e, "getline command exec", () => i(s))).stdout).split(`
821
+ `), l.length > 0 && l[l.length - 1] === "" && l.pop(), e.vars[a] = JSON.stringify(l), e.vars[o] = -1, u = -1;
822
+ } catch (C) {
823
+ if (C instanceof d) throw C;
824
+ return -1;
825
+ }
826
+ else l = JSON.parse(e.vars[a]), u = e.vars[o];
827
+ let N = u + 1;
828
+ if (N >= l.length) return 0;
829
+ let A = l[N];
830
+ return e.vars[o] = N, t ? W(e, t, A) : $(e, A), 1;
831
+ }
832
+ async function kt(e, t, n) {
833
+ let i = e.fs;
834
+ if (!i || !e.cwd) return -1;
835
+ L(e, "getline file source");
836
+ let s = m(await S(e, "getline filename evaluation", () => f(e, n)));
837
+ if (s === "/dev/null") return 0;
838
+ let a = i.resolvePath(e.cwd, s), o = `__fc_${a}`, l = `__fi_${a}`, u, N;
839
+ if (e.vars[o] === void 0) try {
840
+ u = (await S(e, "getline file read", () => i.readFile(a))).split(`
841
+ `), u.length > 0 && u[u.length - 1] === "" && u.pop(), e.vars[o] = JSON.stringify(u), e.vars[l] = -1, N = -1;
842
+ } catch (O) {
843
+ if (O instanceof d) throw O;
844
+ return -1;
845
+ }
846
+ else u = JSON.parse(e.vars[o]), N = e.vars[l];
847
+ let A = N + 1;
848
+ if (A >= u.length) return 0;
849
+ let C = u[A];
850
+ return e.vars[l] = A, t ? W(e, t, C) : $(e, C), 1;
851
+ }
852
+ async function Ct(e, t) {
853
+ if (L(e, "tuple evaluation"), t.length === 0) return "";
854
+ for (let n = 0; n < t.length - 1; n++) await S(e, "tuple intermediate element", () => f(e, t[n]));
855
+ return S(e, "tuple final element", () => f(e, t[t.length - 1]));
856
+ }
857
+ Oe(V);
858
+ function ce(e) {
859
+ if (e.maxOutputSize > 0 && e.output.length > e.maxOutputSize) throw new b$1(`awk: output size limit exceeded (${e.maxOutputSize} bytes)`, "string_length", e.output);
860
+ }
861
+ function T(e, t) {
862
+ a(e.requireDefenseContext, "awk", t);
863
+ }
864
+ function y(e, t, n) {
865
+ return x(e.requireDefenseContext, "awk", t, n);
866
+ }
867
+ async function V(e, t) {
868
+ T(e, "block execution");
869
+ for (let n of t) if (await y(e, "statement execution", () => B(e, n)), bt(e)) break;
870
+ }
871
+ function bt(e) {
872
+ return e.shouldExit || e.shouldNext || e.shouldNextFile || e.loopBreak || e.loopContinue || e.hasReturn;
873
+ }
874
+ async function B(e, t) {
875
+ switch (T(e, "single statement execution"), e.coverage?.hit(`awk:stmt:${t.type}`), t.type) {
876
+ case "block":
877
+ await y(e, "nested block statement", () => V(e, t.statements));
878
+ break;
879
+ case "expr_stmt":
880
+ await y(e, "expression statement", () => f(e, t.expression));
881
+ break;
882
+ case "print":
883
+ await y(e, "print statement", () => Ot(e, t.args, t.output));
884
+ break;
885
+ case "printf":
886
+ await y(e, "printf statement", () => Lt(e, t.format, t.args, t.output));
887
+ break;
888
+ case "if":
889
+ await y(e, "if statement", () => Mt(e, t));
890
+ break;
891
+ case "while":
892
+ await y(e, "while statement", () => Pt(e, t));
893
+ break;
894
+ case "do_while":
895
+ await y(e, "do-while statement", () => Tt(e, t));
896
+ break;
897
+ case "for":
898
+ await y(e, "for statement", () => Ft(e, t));
899
+ break;
900
+ case "for_in":
901
+ await y(e, "for-in statement", () => Dt(e, t));
902
+ break;
903
+ case "break":
904
+ e.loopBreak = !0;
905
+ break;
906
+ case "continue":
907
+ e.loopContinue = !0;
908
+ break;
909
+ case "next":
910
+ e.shouldNext = !0;
911
+ break;
912
+ case "nextfile":
913
+ e.shouldNextFile = !0;
914
+ break;
915
+ case "exit":
916
+ e.shouldExit = !0;
917
+ {
918
+ let n = t.code;
919
+ e.exitCode = n ? Math.floor(g(await y(e, "exit code expression", () => f(e, n)))) : 0;
920
+ }
921
+ break;
922
+ case "return":
923
+ e.hasReturn = !0;
924
+ {
925
+ let n = t.value;
926
+ e.returnValue = n ? await y(e, "return expression", () => f(e, n)) : "";
927
+ }
928
+ break;
929
+ case "delete":
930
+ await y(e, "delete statement", () => _t(e, t.target));
931
+ break;
932
+ }
933
+ }
934
+ async function Ot(e, t, n) {
935
+ T(e, "print execution");
936
+ let i = [];
937
+ for (let a of t) {
938
+ let o = await y(e, "print argument evaluation", () => f(e, a));
939
+ typeof o == "number" ? Number.isInteger(o) && Math.abs(o) < Number.MAX_SAFE_INTEGER ? i.push(String(o)) : i.push(Q(e.OFMT, [o])) : i.push(m(o));
940
+ }
941
+ let s = i.join(e.OFS) + e.ORS;
942
+ n ? await y(e, "print redirection write", () => Le(e, n.redirect, n.file, s)) : (e.output += s, ce(e));
943
+ }
944
+ async function Lt(e, t, n, i) {
945
+ T(e, "printf execution");
946
+ let s = m(await y(e, "printf format evaluation", () => f(e, t))), a = [];
947
+ for (let l of n) a.push(await y(e, "printf argument evaluation", () => f(e, l)));
948
+ let o = Q(s, a);
949
+ i ? await y(e, "printf redirection write", () => Le(e, i.redirect, i.file, o)) : (e.output += o, ce(e));
950
+ }
951
+ async function Le(e, t, n, i) {
952
+ T(e, "file write execution");
953
+ let s = e.fs;
954
+ if (!s || !e.cwd) {
955
+ e.output += i, ce(e);
956
+ return;
957
+ }
958
+ let a = m(await y(e, "redirection filename evaluation", () => f(e, n))), o = s.resolvePath(e.cwd, a);
959
+ t === ">" ? e.openedFiles.has(o) ? await y(e, "redirection append write", () => s.appendFile(o, i)) : (await y(e, "redirection overwrite write", () => s.writeFile(o, i)), e.openedFiles.add(o)) : (e.openedFiles.has(o) || e.openedFiles.add(o), await y(e, "redirection append mode write", () => s.appendFile(o, i)));
960
+ }
961
+ async function Mt(e, t) {
962
+ if (T(e, "if execution"), b(await y(e, "if condition evaluation", () => f(e, t.condition)))) await y(e, "if consequent execution", () => B(e, t.consequent));
963
+ else if (t.alternate) {
964
+ let n = t.alternate;
965
+ await y(e, "if alternate execution", () => B(e, n));
966
+ }
967
+ }
968
+ async function Pt(e, t) {
969
+ T(e, "while execution");
970
+ let n = 0;
971
+ for (; b(await y(e, "while condition evaluation", () => f(e, t.condition)));) {
972
+ if (n++, n > e.maxIterations) throw new b$1(`awk: while loop exceeded maximum iterations (${e.maxIterations})`, "iterations", e.output);
973
+ if (e.loopContinue = !1, await y(e, "while body execution", () => B(e, t.body)), e.loopBreak) {
974
+ e.loopBreak = !1;
975
+ break;
976
+ }
977
+ if (e.shouldExit || e.shouldNext || e.hasReturn) break;
978
+ }
979
+ }
980
+ async function Tt(e, t) {
981
+ T(e, "do-while execution");
982
+ let n = 0;
983
+ do {
984
+ if (n++, n > e.maxIterations) throw new b$1(`awk: do-while loop exceeded maximum iterations (${e.maxIterations})`, "iterations", e.output);
985
+ if (e.loopContinue = !1, await y(e, "do-while body execution", () => B(e, t.body)), e.loopBreak) {
986
+ e.loopBreak = !1;
987
+ break;
988
+ }
989
+ if (e.shouldExit || e.shouldNext || e.hasReturn) break;
990
+ } while (b(await y(e, "do-while condition evaluation", () => f(e, t.condition))));
991
+ }
992
+ async function Ft(e, t) {
993
+ T(e, "for execution");
994
+ let n = t.init, i = t.condition, s = t.update;
995
+ n && await y(e, "for init evaluation", () => f(e, n));
996
+ let a = 0;
997
+ for (; !i || b(await y(e, "for condition evaluation", () => f(e, i)));) {
998
+ if (a++, a > e.maxIterations) throw new b$1(`awk: for loop exceeded maximum iterations (${e.maxIterations})`, "iterations", e.output);
999
+ if (e.loopContinue = !1, await y(e, "for body execution", () => B(e, t.body)), e.loopBreak) {
1000
+ e.loopBreak = !1;
1001
+ break;
1002
+ }
1003
+ if (e.shouldExit || e.shouldNext || e.hasReturn) break;
1004
+ s && await y(e, "for update evaluation", () => f(e, s));
1005
+ }
1006
+ }
1007
+ async function Dt(e, t) {
1008
+ T(e, "for-in execution");
1009
+ let n = e.arrays[t.array];
1010
+ if (n) for (let i of Object.keys(n)) {
1011
+ if (e.vars[t.variable] = i, e.loopContinue = !1, await y(e, "for-in body execution", () => B(e, t.body)), e.loopBreak) {
1012
+ e.loopBreak = !1;
1013
+ break;
1014
+ }
1015
+ if (e.shouldExit || e.shouldNext || e.hasReturn) break;
1016
+ }
1017
+ }
1018
+ async function _t(e, t) {
1019
+ if (T(e, "delete execution"), t.type === "array_access") {
1020
+ let n = m(await y(e, "delete key evaluation", () => f(e, t.key)));
1021
+ ke(e, t.array, n);
1022
+ } else t.type === "variable" && Ce(e, t.name);
1023
+ }
1024
+ var q = class {
1025
+ ctx;
1026
+ program = null;
1027
+ rangeStates = [];
1028
+ constructor(t) {
1029
+ this.ctx = t;
1030
+ }
1031
+ assertDefenseContext(t) {
1032
+ a(this.ctx.requireDefenseContext, "awk", t);
1033
+ }
1034
+ withDefenseContext(t, n) {
1035
+ return x(this.ctx.requireDefenseContext, "awk", t, n);
1036
+ }
1037
+ execute(t) {
1038
+ this.assertDefenseContext("program initialization"), this.program = t, this.ctx.output = "";
1039
+ for (let n of t.functions) this.ctx.functions.set(n.name, n);
1040
+ this.rangeStates = t.rules.map(() => !1);
1041
+ }
1042
+ async executeBegin() {
1043
+ if (this.assertDefenseContext("BEGIN execution entry"), !!this.program) {
1044
+ for (let t of this.program.rules) if (t.pattern?.type === "begin" && (await this.withDefenseContext("BEGIN block execution", () => V(this.ctx, t.action.statements)), this.ctx.shouldExit)) break;
1045
+ }
1046
+ }
1047
+ async executeLine(t) {
1048
+ if (this.assertDefenseContext("line execution entry"), !(!this.program || this.ctx.shouldExit)) {
1049
+ $(this.ctx, t), this.ctx.NR++, this.ctx.FNR++, this.ctx.shouldNext = !1;
1050
+ for (let n = 0; n < this.program.rules.length && !(this.ctx.shouldExit || this.ctx.shouldNext || this.ctx.shouldNextFile); n++) {
1051
+ let i = this.program.rules[n];
1052
+ i.pattern?.type === "begin" || i.pattern?.type === "end" || await this.withDefenseContext("rule match", () => this.matchesRule(i, n)) && await this.withDefenseContext("rule block execution", () => V(this.ctx, i.action.statements));
1053
+ }
1054
+ }
1055
+ }
1056
+ async executeEnd() {
1057
+ if (this.assertDefenseContext("END execution entry"), !!this.program && !this.ctx.inEndBlock) {
1058
+ this.ctx.inEndBlock = !0, this.ctx.shouldExit = !1;
1059
+ for (let t of this.program.rules) if (t.pattern?.type === "end" && (await this.withDefenseContext("END block execution", () => V(this.ctx, t.action.statements)), this.ctx.shouldExit)) break;
1060
+ this.ctx.inEndBlock = !1;
1061
+ }
1062
+ }
1063
+ getOutput() {
1064
+ return this.ctx.output;
1065
+ }
1066
+ getExitCode() {
1067
+ return this.ctx.exitCode;
1068
+ }
1069
+ getContext() {
1070
+ return this.ctx;
1071
+ }
1072
+ async matchesRule(t, n) {
1073
+ this.assertDefenseContext("rule matching");
1074
+ let i = t.pattern;
1075
+ if (!i) return !0;
1076
+ switch (i.type) {
1077
+ case "begin":
1078
+ case "end": return !1;
1079
+ case "regex_pattern": return K(i.pattern, this.ctx.line);
1080
+ case "expr_pattern": return b(await this.withDefenseContext("expression pattern evaluation", () => f(this.ctx, i.expression)));
1081
+ case "range": {
1082
+ let s = await this.withDefenseContext("range start pattern", () => this.matchPattern(i.start)), a = await this.withDefenseContext("range end pattern", () => this.matchPattern(i.end));
1083
+ return this.rangeStates[n] ? (a && (this.rangeStates[n] = !1), !0) : s ? (this.rangeStates[n] = !0, a && (this.rangeStates[n] = !1), !0) : !1;
1084
+ }
1085
+ default: return !1;
1086
+ }
1087
+ }
1088
+ async matchPattern(t) {
1089
+ switch (this.assertDefenseContext("pattern matching"), t.type) {
1090
+ case "regex_pattern": return K(t.pattern, this.ctx.line);
1091
+ case "expr_pattern": return b(await this.withDefenseContext("nested expression pattern", () => f(this.ctx, t.expression)));
1092
+ default: return !1;
1093
+ }
1094
+ }
1095
+ };
1096
+ var r;
1097
+ (function(e) {
1098
+ e.NUMBER = "NUMBER", e.STRING = "STRING", e.REGEX = "REGEX", e.IDENT = "IDENT", e.BEGIN = "BEGIN", e.END = "END", e.IF = "IF", e.ELSE = "ELSE", e.WHILE = "WHILE", e.DO = "DO", e.FOR = "FOR", e.IN = "IN", e.BREAK = "BREAK", e.CONTINUE = "CONTINUE", e.NEXT = "NEXT", e.NEXTFILE = "NEXTFILE", e.EXIT = "EXIT", e.RETURN = "RETURN", e.DELETE = "DELETE", e.FUNCTION = "FUNCTION", e.PRINT = "PRINT", e.PRINTF = "PRINTF", e.GETLINE = "GETLINE", e.PLUS = "PLUS", e.MINUS = "MINUS", e.STAR = "STAR", e.SLASH = "SLASH", e.PERCENT = "PERCENT", e.CARET = "CARET", e.EQ = "EQ", e.NE = "NE", e.LT = "LT", e.GT = "GT", e.LE = "LE", e.GE = "GE", e.MATCH = "MATCH", e.NOT_MATCH = "NOT_MATCH", e.AND = "AND", e.OR = "OR", e.NOT = "NOT", e.ASSIGN = "ASSIGN", e.PLUS_ASSIGN = "PLUS_ASSIGN", e.MINUS_ASSIGN = "MINUS_ASSIGN", e.STAR_ASSIGN = "STAR_ASSIGN", e.SLASH_ASSIGN = "SLASH_ASSIGN", e.PERCENT_ASSIGN = "PERCENT_ASSIGN", e.CARET_ASSIGN = "CARET_ASSIGN", e.INCREMENT = "INCREMENT", e.DECREMENT = "DECREMENT", e.QUESTION = "QUESTION", e.COLON = "COLON", e.COMMA = "COMMA", e.SEMICOLON = "SEMICOLON", e.NEWLINE = "NEWLINE", e.LPAREN = "LPAREN", e.RPAREN = "RPAREN", e.LBRACE = "LBRACE", e.RBRACE = "RBRACE", e.LBRACKET = "LBRACKET", e.RBRACKET = "RBRACKET", e.DOLLAR = "DOLLAR", e.APPEND = "APPEND", e.PIPE = "PIPE", e.EOF = "EOF";
1099
+ })(r || (r = {}));
1100
+ var Gt = new Map([
1101
+ ["BEGIN", r.BEGIN],
1102
+ ["END", r.END],
1103
+ ["if", r.IF],
1104
+ ["else", r.ELSE],
1105
+ ["while", r.WHILE],
1106
+ ["do", r.DO],
1107
+ ["for", r.FOR],
1108
+ ["in", r.IN],
1109
+ ["break", r.BREAK],
1110
+ ["continue", r.CONTINUE],
1111
+ ["next", r.NEXT],
1112
+ ["nextfile", r.NEXTFILE],
1113
+ ["exit", r.EXIT],
1114
+ ["return", r.RETURN],
1115
+ ["delete", r.DELETE],
1116
+ ["function", r.FUNCTION],
1117
+ ["print", r.PRINT],
1118
+ ["printf", r.PRINTF],
1119
+ ["getline", r.GETLINE]
1120
+ ]);
1121
+ function xt(e) {
1122
+ return e.replace(/\[\[:space:\]\]/g, "[ \\t\\n\\r\\f\\v]").replace(/\[\[:blank:\]\]/g, "[ \\t]").replace(/\[\[:alpha:\]\]/g, "[a-zA-Z]").replace(/\[\[:digit:\]\]/g, "[0-9]").replace(/\[\[:alnum:\]\]/g, "[a-zA-Z0-9]").replace(/\[\[:upper:\]\]/g, "[A-Z]").replace(/\[\[:lower:\]\]/g, "[a-z]").replace(/\[\[:punct:\]\]/g, "[!\"#$%&'()*+,\\-./:;<=>?@\\[\\]\\\\^_`{|}~]").replace(/\[\[:xdigit:\]\]/g, "[0-9A-Fa-f]").replace(/\[\[:graph:\]\]/g, "[!-~]").replace(/\[\[:print:\]\]/g, "[ -~]").replace(/\[\[:cntrl:\]\]/g, "[\\x00-\\x1f\\x7f]");
1123
+ }
1124
+ var Ut = new Set([
1125
+ r.COMMA,
1126
+ r.LBRACE,
1127
+ r.AND,
1128
+ r.OR,
1129
+ r.QUESTION,
1130
+ r.COLON,
1131
+ r.DO,
1132
+ r.ELSE,
1133
+ r.IF,
1134
+ r.WHILE
1135
+ ]), te = class {
1136
+ input;
1137
+ pos = 0;
1138
+ line = 1;
1139
+ column = 1;
1140
+ lastTokenType = null;
1141
+ constructor(t) {
1142
+ this.input = t;
1143
+ }
1144
+ tokenize() {
1145
+ let t = [];
1146
+ for (; this.pos < this.input.length;) {
1147
+ let n = this.nextToken();
1148
+ n && (t.push(n), this.lastTokenType = n.type);
1149
+ }
1150
+ return t.push(this.makeToken(r.EOF, "")), t;
1151
+ }
1152
+ makeToken(t, n) {
1153
+ return {
1154
+ type: t,
1155
+ value: n,
1156
+ line: this.line,
1157
+ column: this.column
1158
+ };
1159
+ }
1160
+ peek(t = 0) {
1161
+ return this.input[this.pos + t] || "";
1162
+ }
1163
+ advance() {
1164
+ let t = this.input[this.pos++] || "";
1165
+ return t === `
1166
+ ` ? (this.line++, this.column = 1) : this.column++, t;
1167
+ }
1168
+ skipWhitespace() {
1169
+ for (; this.pos < this.input.length;) {
1170
+ let t = this.peek();
1171
+ if (t === " " || t === " " || t === "\r") this.advance();
1172
+ else if (t === "\\") if (this.peek(1) === `
1173
+ `) this.advance(), this.advance();
1174
+ else break;
1175
+ else if (t === "#") for (; this.pos < this.input.length && this.peek() !== `
1176
+ `;) this.advance();
1177
+ else break;
1178
+ }
1179
+ }
1180
+ nextToken() {
1181
+ if (this.skipWhitespace(), this.pos >= this.input.length) return null;
1182
+ let t = this.line, n = this.column, i = this.peek();
1183
+ return i === `
1184
+ ` ? (this.advance(), this.lastTokenType !== null && Ut.has(this.lastTokenType) ? this.nextToken() : {
1185
+ type: r.NEWLINE,
1186
+ value: `
1187
+ `,
1188
+ line: t,
1189
+ column: n
1190
+ }) : i === "\"" ? this.readString() : i === "/" && this.canBeRegex() ? this.readRegex() : this.isDigit(i) || i === "." && this.isDigit(this.peek(1)) ? this.readNumber() : this.isAlpha(i) || i === "_" ? this.readIdentifier() : this.readOperator();
1191
+ }
1192
+ canBeRegex() {
1193
+ return new Set([
1194
+ null,
1195
+ r.NEWLINE,
1196
+ r.SEMICOLON,
1197
+ r.LBRACE,
1198
+ r.RBRACE,
1199
+ r.LPAREN,
1200
+ r.LBRACKET,
1201
+ r.COMMA,
1202
+ r.ASSIGN,
1203
+ r.PLUS_ASSIGN,
1204
+ r.MINUS_ASSIGN,
1205
+ r.STAR_ASSIGN,
1206
+ r.SLASH_ASSIGN,
1207
+ r.PERCENT_ASSIGN,
1208
+ r.CARET_ASSIGN,
1209
+ r.AND,
1210
+ r.OR,
1211
+ r.NOT,
1212
+ r.MATCH,
1213
+ r.NOT_MATCH,
1214
+ r.QUESTION,
1215
+ r.COLON,
1216
+ r.LT,
1217
+ r.GT,
1218
+ r.LE,
1219
+ r.GE,
1220
+ r.EQ,
1221
+ r.NE,
1222
+ r.PLUS,
1223
+ r.MINUS,
1224
+ r.STAR,
1225
+ r.PERCENT,
1226
+ r.CARET,
1227
+ r.PRINT,
1228
+ r.PRINTF,
1229
+ r.IF,
1230
+ r.WHILE,
1231
+ r.DO,
1232
+ r.FOR,
1233
+ r.RETURN
1234
+ ]).has(this.lastTokenType);
1235
+ }
1236
+ readString() {
1237
+ let t = this.line, n = this.column;
1238
+ this.advance();
1239
+ let i = "";
1240
+ for (; this.pos < this.input.length && this.peek() !== "\"";) if (this.peek() === "\\") {
1241
+ this.advance();
1242
+ let s = this.advance();
1243
+ switch (s) {
1244
+ case "n":
1245
+ i += `
1246
+ `;
1247
+ break;
1248
+ case "t":
1249
+ i += " ";
1250
+ break;
1251
+ case "r":
1252
+ i += "\r";
1253
+ break;
1254
+ case "f":
1255
+ i += "\f";
1256
+ break;
1257
+ case "b":
1258
+ i += "\b";
1259
+ break;
1260
+ case "v":
1261
+ i += "\v";
1262
+ break;
1263
+ case "a":
1264
+ i += "\x07";
1265
+ break;
1266
+ case "\\":
1267
+ i += "\\";
1268
+ break;
1269
+ case "\"":
1270
+ i += "\"";
1271
+ break;
1272
+ case "/":
1273
+ i += "/";
1274
+ break;
1275
+ case "x": {
1276
+ let a = "";
1277
+ for (; a.length < 2 && /[0-9a-fA-F]/.test(this.peek());) a += this.advance();
1278
+ a.length > 0 ? i += String.fromCharCode(parseInt(a, 16)) : i += "x";
1279
+ break;
1280
+ }
1281
+ default: if (/[0-7]/.test(s)) {
1282
+ let a = s;
1283
+ for (; a.length < 3 && /[0-7]/.test(this.peek());) a += this.advance();
1284
+ i += String.fromCharCode(parseInt(a, 8));
1285
+ } else i += s;
1286
+ }
1287
+ } else i += this.advance();
1288
+ return this.peek() === "\"" && this.advance(), {
1289
+ type: r.STRING,
1290
+ value: i,
1291
+ line: t,
1292
+ column: n
1293
+ };
1294
+ }
1295
+ readRegex() {
1296
+ let t = this.line, n = this.column;
1297
+ this.advance();
1298
+ let i = "";
1299
+ for (; this.pos < this.input.length && this.peek() !== "/";) if (this.peek() === "\\") i += this.advance(), this.pos < this.input.length && (i += this.advance());
1300
+ else {
1301
+ if (this.peek() === `
1302
+ `) break;
1303
+ i += this.advance();
1304
+ }
1305
+ return this.peek() === "/" && this.advance(), i = xt(i), {
1306
+ type: r.REGEX,
1307
+ value: i,
1308
+ line: t,
1309
+ column: n
1310
+ };
1311
+ }
1312
+ readNumber() {
1313
+ let t = this.line, n = this.column, i = "";
1314
+ for (; this.isDigit(this.peek());) i += this.advance();
1315
+ if (this.peek() === "." && this.isDigit(this.peek(1))) for (i += this.advance(); this.isDigit(this.peek());) i += this.advance();
1316
+ if (this.peek() === "e" || this.peek() === "E") for (i += this.advance(), (this.peek() === "+" || this.peek() === "-") && (i += this.advance()); this.isDigit(this.peek());) i += this.advance();
1317
+ return {
1318
+ type: r.NUMBER,
1319
+ value: parseFloat(i),
1320
+ line: t,
1321
+ column: n
1322
+ };
1323
+ }
1324
+ readIdentifier() {
1325
+ let t = this.line, n = this.column, i = "";
1326
+ for (; this.isAlphaNumeric(this.peek()) || this.peek() === "_";) i += this.advance();
1327
+ let s = Gt.get(i);
1328
+ return s !== void 0 ? {
1329
+ type: s,
1330
+ value: i,
1331
+ line: t,
1332
+ column: n
1333
+ } : {
1334
+ type: r.IDENT,
1335
+ value: i,
1336
+ line: t,
1337
+ column: n
1338
+ };
1339
+ }
1340
+ readOperator() {
1341
+ let t = this.line, n = this.column, i = this.advance(), s = this.peek();
1342
+ switch (i) {
1343
+ case "+": return s === "+" ? (this.advance(), {
1344
+ type: r.INCREMENT,
1345
+ value: "++",
1346
+ line: t,
1347
+ column: n
1348
+ }) : s === "=" ? (this.advance(), {
1349
+ type: r.PLUS_ASSIGN,
1350
+ value: "+=",
1351
+ line: t,
1352
+ column: n
1353
+ }) : {
1354
+ type: r.PLUS,
1355
+ value: "+",
1356
+ line: t,
1357
+ column: n
1358
+ };
1359
+ case "-": return s === "-" ? (this.advance(), {
1360
+ type: r.DECREMENT,
1361
+ value: "--",
1362
+ line: t,
1363
+ column: n
1364
+ }) : s === "=" ? (this.advance(), {
1365
+ type: r.MINUS_ASSIGN,
1366
+ value: "-=",
1367
+ line: t,
1368
+ column: n
1369
+ }) : {
1370
+ type: r.MINUS,
1371
+ value: "-",
1372
+ line: t,
1373
+ column: n
1374
+ };
1375
+ case "*": return s === "*" ? (this.advance(), {
1376
+ type: r.CARET,
1377
+ value: "**",
1378
+ line: t,
1379
+ column: n
1380
+ }) : s === "=" ? (this.advance(), {
1381
+ type: r.STAR_ASSIGN,
1382
+ value: "*=",
1383
+ line: t,
1384
+ column: n
1385
+ }) : {
1386
+ type: r.STAR,
1387
+ value: "*",
1388
+ line: t,
1389
+ column: n
1390
+ };
1391
+ case "/": return s === "=" ? (this.advance(), {
1392
+ type: r.SLASH_ASSIGN,
1393
+ value: "/=",
1394
+ line: t,
1395
+ column: n
1396
+ }) : {
1397
+ type: r.SLASH,
1398
+ value: "/",
1399
+ line: t,
1400
+ column: n
1401
+ };
1402
+ case "%": return s === "=" ? (this.advance(), {
1403
+ type: r.PERCENT_ASSIGN,
1404
+ value: "%=",
1405
+ line: t,
1406
+ column: n
1407
+ }) : {
1408
+ type: r.PERCENT,
1409
+ value: "%",
1410
+ line: t,
1411
+ column: n
1412
+ };
1413
+ case "^": return s === "=" ? (this.advance(), {
1414
+ type: r.CARET_ASSIGN,
1415
+ value: "^=",
1416
+ line: t,
1417
+ column: n
1418
+ }) : {
1419
+ type: r.CARET,
1420
+ value: "^",
1421
+ line: t,
1422
+ column: n
1423
+ };
1424
+ case "=": return s === "=" ? (this.advance(), {
1425
+ type: r.EQ,
1426
+ value: "==",
1427
+ line: t,
1428
+ column: n
1429
+ }) : {
1430
+ type: r.ASSIGN,
1431
+ value: "=",
1432
+ line: t,
1433
+ column: n
1434
+ };
1435
+ case "!": return s === "=" ? (this.advance(), {
1436
+ type: r.NE,
1437
+ value: "!=",
1438
+ line: t,
1439
+ column: n
1440
+ }) : s === "~" ? (this.advance(), {
1441
+ type: r.NOT_MATCH,
1442
+ value: "!~",
1443
+ line: t,
1444
+ column: n
1445
+ }) : {
1446
+ type: r.NOT,
1447
+ value: "!",
1448
+ line: t,
1449
+ column: n
1450
+ };
1451
+ case "<": return s === "=" ? (this.advance(), {
1452
+ type: r.LE,
1453
+ value: "<=",
1454
+ line: t,
1455
+ column: n
1456
+ }) : {
1457
+ type: r.LT,
1458
+ value: "<",
1459
+ line: t,
1460
+ column: n
1461
+ };
1462
+ case ">": return s === "=" ? (this.advance(), {
1463
+ type: r.GE,
1464
+ value: ">=",
1465
+ line: t,
1466
+ column: n
1467
+ }) : s === ">" ? (this.advance(), {
1468
+ type: r.APPEND,
1469
+ value: ">>",
1470
+ line: t,
1471
+ column: n
1472
+ }) : {
1473
+ type: r.GT,
1474
+ value: ">",
1475
+ line: t,
1476
+ column: n
1477
+ };
1478
+ case "&": return s === "&" ? (this.advance(), {
1479
+ type: r.AND,
1480
+ value: "&&",
1481
+ line: t,
1482
+ column: n
1483
+ }) : {
1484
+ type: r.IDENT,
1485
+ value: "&",
1486
+ line: t,
1487
+ column: n
1488
+ };
1489
+ case "|": return s === "|" ? (this.advance(), {
1490
+ type: r.OR,
1491
+ value: "||",
1492
+ line: t,
1493
+ column: n
1494
+ }) : {
1495
+ type: r.PIPE,
1496
+ value: "|",
1497
+ line: t,
1498
+ column: n
1499
+ };
1500
+ case "~": return {
1501
+ type: r.MATCH,
1502
+ value: "~",
1503
+ line: t,
1504
+ column: n
1505
+ };
1506
+ case "?": return {
1507
+ type: r.QUESTION,
1508
+ value: "?",
1509
+ line: t,
1510
+ column: n
1511
+ };
1512
+ case ":": return {
1513
+ type: r.COLON,
1514
+ value: ":",
1515
+ line: t,
1516
+ column: n
1517
+ };
1518
+ case ",": return {
1519
+ type: r.COMMA,
1520
+ value: ",",
1521
+ line: t,
1522
+ column: n
1523
+ };
1524
+ case ";": return {
1525
+ type: r.SEMICOLON,
1526
+ value: ";",
1527
+ line: t,
1528
+ column: n
1529
+ };
1530
+ case "(": return {
1531
+ type: r.LPAREN,
1532
+ value: "(",
1533
+ line: t,
1534
+ column: n
1535
+ };
1536
+ case ")": return {
1537
+ type: r.RPAREN,
1538
+ value: ")",
1539
+ line: t,
1540
+ column: n
1541
+ };
1542
+ case "{": return {
1543
+ type: r.LBRACE,
1544
+ value: "{",
1545
+ line: t,
1546
+ column: n
1547
+ };
1548
+ case "}": return {
1549
+ type: r.RBRACE,
1550
+ value: "}",
1551
+ line: t,
1552
+ column: n
1553
+ };
1554
+ case "[": return {
1555
+ type: r.LBRACKET,
1556
+ value: "[",
1557
+ line: t,
1558
+ column: n
1559
+ };
1560
+ case "]": return {
1561
+ type: r.RBRACKET,
1562
+ value: "]",
1563
+ line: t,
1564
+ column: n
1565
+ };
1566
+ case "$": return {
1567
+ type: r.DOLLAR,
1568
+ value: "$",
1569
+ line: t,
1570
+ column: n
1571
+ };
1572
+ default: return {
1573
+ type: r.IDENT,
1574
+ value: i,
1575
+ line: t,
1576
+ column: n
1577
+ };
1578
+ }
1579
+ }
1580
+ isDigit(t) {
1581
+ return t >= "0" && t <= "9";
1582
+ }
1583
+ isAlpha(t) {
1584
+ return t >= "a" && t <= "z" || t >= "A" && t <= "Z";
1585
+ }
1586
+ isAlphaNumeric(t) {
1587
+ return this.isDigit(t) || this.isAlpha(t);
1588
+ }
1589
+ };
1590
+ var p = {
1591
+ LPAREN: "LPAREN",
1592
+ RPAREN: "RPAREN",
1593
+ QUESTION: "QUESTION",
1594
+ NEWLINE: "NEWLINE",
1595
+ SEMICOLON: "SEMICOLON",
1596
+ RBRACE: "RBRACE",
1597
+ COMMA: "COMMA",
1598
+ PIPE: "PIPE",
1599
+ GT: "GT",
1600
+ APPEND: "APPEND",
1601
+ AND: "AND",
1602
+ OR: "OR",
1603
+ ASSIGN: "ASSIGN",
1604
+ PLUS_ASSIGN: "PLUS_ASSIGN",
1605
+ MINUS_ASSIGN: "MINUS_ASSIGN",
1606
+ STAR_ASSIGN: "STAR_ASSIGN",
1607
+ SLASH_ASSIGN: "SLASH_ASSIGN",
1608
+ PERCENT_ASSIGN: "PERCENT_ASSIGN",
1609
+ CARET_ASSIGN: "CARET_ASSIGN",
1610
+ RBRACKET: "RBRACKET",
1611
+ COLON: "COLON",
1612
+ IN: "IN",
1613
+ PRINT: "PRINT",
1614
+ PRINTF: "PRINTF",
1615
+ IDENT: "IDENT",
1616
+ LT: "LT",
1617
+ LE: "LE",
1618
+ GE: "GE",
1619
+ EQ: "EQ",
1620
+ NE: "NE",
1621
+ MATCH: "MATCH",
1622
+ NOT_MATCH: "NOT_MATCH",
1623
+ NUMBER: "NUMBER",
1624
+ STRING: "STRING",
1625
+ DOLLAR: "DOLLAR",
1626
+ NOT: "NOT",
1627
+ MINUS: "MINUS",
1628
+ PLUS: "PLUS",
1629
+ INCREMENT: "INCREMENT",
1630
+ DECREMENT: "DECREMENT"
1631
+ };
1632
+ function De(e) {
1633
+ e.expect(p.PRINT);
1634
+ let t = [];
1635
+ if (e.check(p.NEWLINE) || e.check(p.SEMICOLON) || e.check(p.RBRACE) || e.check(p.PIPE) || e.check(p.GT) || e.check(p.APPEND)) t.push({
1636
+ type: "field",
1637
+ index: {
1638
+ type: "number",
1639
+ value: 0
1640
+ }
1641
+ });
1642
+ else for (t.push(ne(e)); e.check(p.COMMA);) e.advance(), t.push(ne(e));
1643
+ let n;
1644
+ return e.check(p.GT) ? (e.advance(), n = {
1645
+ redirect: ">",
1646
+ file: e.parsePrimary()
1647
+ }) : e.check(p.APPEND) && (e.advance(), n = {
1648
+ redirect: ">>",
1649
+ file: e.parsePrimary()
1650
+ }), {
1651
+ type: "print",
1652
+ args: t,
1653
+ output: n
1654
+ };
1655
+ }
1656
+ function ne(e) {
1657
+ return Bt(e) ? he(e, !0) : he(e, !1);
1658
+ }
1659
+ function he(e, t) {
1660
+ let n = t ? e.parseTernary() : Ht(e);
1661
+ if (e.match(p.ASSIGN, p.PLUS_ASSIGN, p.MINUS_ASSIGN, p.STAR_ASSIGN, p.SLASH_ASSIGN, p.PERCENT_ASSIGN, p.CARET_ASSIGN)) {
1662
+ let i = e.advance(), s = he(e, t);
1663
+ if (n.type !== "variable" && n.type !== "field" && n.type !== "array_access") throw new Error("Invalid assignment target");
1664
+ return {
1665
+ type: "assignment",
1666
+ operator: new Map([
1667
+ ["=", "="],
1668
+ ["+=", "+="],
1669
+ ["-=", "-="],
1670
+ ["*=", "*="],
1671
+ ["/=", "/="],
1672
+ ["%=", "%="],
1673
+ ["^=", "^="]
1674
+ ]).get(i.value) ?? "=",
1675
+ target: n,
1676
+ value: s
1677
+ };
1678
+ }
1679
+ return n;
1680
+ }
1681
+ function Bt(e) {
1682
+ let t = 0, n = e.pos;
1683
+ for (; n < e.tokens.length;) {
1684
+ let i = e.tokens[n];
1685
+ if (i.type === p.LPAREN && t++, i.type === p.RPAREN && t--, i.type === p.QUESTION && t === 0) return !0;
1686
+ if (i.type === p.NEWLINE || i.type === p.SEMICOLON || i.type === p.RBRACE || i.type === p.COMMA || i.type === p.PIPE) return !1;
1687
+ n++;
1688
+ }
1689
+ return !1;
1690
+ }
1691
+ function Ht(e) {
1692
+ let t = Me(e);
1693
+ for (; e.check(p.OR);) {
1694
+ e.advance();
1695
+ let n = Me(e);
1696
+ t = {
1697
+ type: "binary",
1698
+ operator: "||",
1699
+ left: t,
1700
+ right: n
1701
+ };
1702
+ }
1703
+ return t;
1704
+ }
1705
+ function Me(e) {
1706
+ let t = Pe(e);
1707
+ for (; e.check(p.AND);) {
1708
+ e.advance();
1709
+ let n = Pe(e);
1710
+ t = {
1711
+ type: "binary",
1712
+ operator: "&&",
1713
+ left: t,
1714
+ right: n
1715
+ };
1716
+ }
1717
+ return t;
1718
+ }
1719
+ function Pe(e) {
1720
+ let t = $t(e);
1721
+ if (e.check(p.IN)) {
1722
+ e.advance();
1723
+ return {
1724
+ type: "in",
1725
+ key: t,
1726
+ array: String(e.expect(p.IDENT).value)
1727
+ };
1728
+ }
1729
+ return t;
1730
+ }
1731
+ function $t(e) {
1732
+ let t = Te(e);
1733
+ for (; Wt(e) && !Vt(e);) {
1734
+ let n = Te(e);
1735
+ t = {
1736
+ type: "binary",
1737
+ operator: " ",
1738
+ left: t,
1739
+ right: n
1740
+ };
1741
+ }
1742
+ return t;
1743
+ }
1744
+ function Te(e) {
1745
+ let t = Fe(e);
1746
+ for (; e.match(p.MATCH, p.NOT_MATCH);) {
1747
+ let n = e.advance().type === p.MATCH ? "~" : "!~", i = Fe(e);
1748
+ t = {
1749
+ type: "binary",
1750
+ operator: n,
1751
+ left: t,
1752
+ right: i
1753
+ };
1754
+ }
1755
+ return t;
1756
+ }
1757
+ function Fe(e) {
1758
+ let t = e.parseAddSub();
1759
+ for (; e.match(p.LT, p.LE, p.GE, p.EQ, p.NE);) {
1760
+ let n = e.advance(), i = e.parseAddSub();
1761
+ t = {
1762
+ type: "binary",
1763
+ operator: new Map([
1764
+ ["<", "<"],
1765
+ ["<=", "<="],
1766
+ [">=", ">="],
1767
+ ["==", "=="],
1768
+ ["!=", "!="]
1769
+ ]).get(n.value) ?? "==",
1770
+ left: t,
1771
+ right: i
1772
+ };
1773
+ }
1774
+ return t;
1775
+ }
1776
+ function Wt(e) {
1777
+ return e.match(p.NUMBER, p.STRING, p.IDENT, p.DOLLAR, p.LPAREN, p.NOT, p.MINUS, p.PLUS, p.INCREMENT, p.DECREMENT);
1778
+ }
1779
+ function Vt(e) {
1780
+ return e.match(p.AND, p.OR, p.QUESTION, p.ASSIGN, p.PLUS_ASSIGN, p.MINUS_ASSIGN, p.STAR_ASSIGN, p.SLASH_ASSIGN, p.PERCENT_ASSIGN, p.CARET_ASSIGN, p.COMMA, p.SEMICOLON, p.NEWLINE, p.RBRACE, p.RPAREN, p.RBRACKET, p.COLON, p.PIPE, p.APPEND, p.GT, p.IN);
1781
+ }
1782
+ function _e(e) {
1783
+ e.expect(p.PRINTF);
1784
+ let t = e.check(p.LPAREN);
1785
+ t && (e.advance(), e.skipNewlines());
1786
+ let n = t ? e.parseExpression() : ne(e), i = [];
1787
+ for (; e.check(p.COMMA);) e.advance(), t && e.skipNewlines(), i.push(t ? e.parseExpression() : ne(e));
1788
+ t && (e.skipNewlines(), e.expect(p.RPAREN));
1789
+ let s;
1790
+ return e.check(p.GT) ? (e.advance(), s = {
1791
+ redirect: ">",
1792
+ file: e.parsePrimary()
1793
+ }) : e.check(p.APPEND) && (e.advance(), s = {
1794
+ redirect: ">>",
1795
+ file: e.parsePrimary()
1796
+ }), {
1797
+ type: "printf",
1798
+ format: n,
1799
+ args: i,
1800
+ output: s
1801
+ };
1802
+ }
1803
+ var re = class {
1804
+ tokens = [];
1805
+ pos = 0;
1806
+ parse(t) {
1807
+ let n = new te(t);
1808
+ return this.tokens = n.tokenize(), this.pos = 0, this.parseProgram();
1809
+ }
1810
+ setPos(t) {
1811
+ this.pos = t;
1812
+ }
1813
+ current() {
1814
+ return this.tokens[this.pos] || {
1815
+ type: r.EOF,
1816
+ value: "",
1817
+ line: 0,
1818
+ column: 0
1819
+ };
1820
+ }
1821
+ advance() {
1822
+ let t = this.current();
1823
+ return this.pos < this.tokens.length && this.pos++, t;
1824
+ }
1825
+ match(...t) {
1826
+ return t.includes(this.current().type);
1827
+ }
1828
+ check(t) {
1829
+ return this.current().type === t;
1830
+ }
1831
+ expect(t, n) {
1832
+ if (!this.check(t)) {
1833
+ let i = this.current();
1834
+ throw new Error(n || `Expected ${t}, got ${i.type} at line ${i.line}:${i.column}`);
1835
+ }
1836
+ return this.advance();
1837
+ }
1838
+ skipNewlines() {
1839
+ for (; this.check(r.NEWLINE);) this.advance();
1840
+ }
1841
+ skipTerminators() {
1842
+ for (; this.check(r.NEWLINE) || this.check(r.SEMICOLON);) this.advance();
1843
+ }
1844
+ parseProgram() {
1845
+ let t = [], n = [];
1846
+ for (this.skipNewlines(); !this.check(r.EOF) && (this.skipNewlines(), !this.check(r.EOF));) this.check(r.FUNCTION) ? t.push(this.parseFunction()) : n.push(this.parseRule()), this.skipTerminators();
1847
+ return {
1848
+ functions: t,
1849
+ rules: n
1850
+ };
1851
+ }
1852
+ parseFunction() {
1853
+ this.expect(r.FUNCTION);
1854
+ let t = this.expect(r.IDENT).value;
1855
+ this.expect(r.LPAREN);
1856
+ let n = [];
1857
+ if (!this.check(r.RPAREN)) for (n.push(this.expect(r.IDENT).value); this.check(r.COMMA);) this.advance(), n.push(this.expect(r.IDENT).value);
1858
+ this.expect(r.RPAREN), this.skipNewlines();
1859
+ return {
1860
+ name: t,
1861
+ params: n,
1862
+ body: this.parseBlock()
1863
+ };
1864
+ }
1865
+ parseRule() {
1866
+ let t;
1867
+ if (this.check(r.BEGIN)) this.advance(), t = { type: "begin" };
1868
+ else if (this.check(r.END)) this.advance(), t = { type: "end" };
1869
+ else if (this.check(r.LBRACE)) t = void 0;
1870
+ else if (this.check(r.REGEX)) {
1871
+ let i = this.advance();
1872
+ if (this.check(r.AND) || this.check(r.OR)) {
1873
+ let s = {
1874
+ type: "binary",
1875
+ operator: "~",
1876
+ left: {
1877
+ type: "field",
1878
+ index: {
1879
+ type: "number",
1880
+ value: 0
1881
+ }
1882
+ },
1883
+ right: {
1884
+ type: "regex",
1885
+ pattern: i.value
1886
+ }
1887
+ };
1888
+ t = {
1889
+ type: "expr_pattern",
1890
+ expression: this.parseLogicalOrRest(s)
1891
+ };
1892
+ } else {
1893
+ let s = {
1894
+ type: "regex_pattern",
1895
+ pattern: i.value
1896
+ };
1897
+ if (this.check(r.COMMA)) {
1898
+ this.advance();
1899
+ let a;
1900
+ this.check(r.REGEX) ? a = {
1901
+ type: "regex_pattern",
1902
+ pattern: this.advance().value
1903
+ } : a = {
1904
+ type: "expr_pattern",
1905
+ expression: this.parseExpression()
1906
+ }, t = {
1907
+ type: "range",
1908
+ start: s,
1909
+ end: a
1910
+ };
1911
+ } else t = s;
1912
+ }
1913
+ } else {
1914
+ let s = {
1915
+ type: "expr_pattern",
1916
+ expression: this.parseExpression()
1917
+ };
1918
+ if (this.check(r.COMMA)) {
1919
+ this.advance();
1920
+ let a;
1921
+ this.check(r.REGEX) ? a = {
1922
+ type: "regex_pattern",
1923
+ pattern: this.advance().value
1924
+ } : a = {
1925
+ type: "expr_pattern",
1926
+ expression: this.parseExpression()
1927
+ }, t = {
1928
+ type: "range",
1929
+ start: s,
1930
+ end: a
1931
+ };
1932
+ } else t = s;
1933
+ }
1934
+ this.skipNewlines();
1935
+ let n;
1936
+ return this.check(r.LBRACE) ? n = this.parseBlock() : n = {
1937
+ type: "block",
1938
+ statements: [{
1939
+ type: "print",
1940
+ args: [{
1941
+ type: "field",
1942
+ index: {
1943
+ type: "number",
1944
+ value: 0
1945
+ }
1946
+ }]
1947
+ }]
1948
+ }, {
1949
+ pattern: t,
1950
+ action: n
1951
+ };
1952
+ }
1953
+ parseBlock() {
1954
+ this.expect(r.LBRACE), this.skipNewlines();
1955
+ let t = [];
1956
+ for (; !this.check(r.RBRACE) && !this.check(r.EOF);) t.push(this.parseStatement()), this.skipTerminators();
1957
+ return this.expect(r.RBRACE), {
1958
+ type: "block",
1959
+ statements: t
1960
+ };
1961
+ }
1962
+ parseStatement() {
1963
+ if (this.check(r.SEMICOLON) || this.check(r.NEWLINE)) return this.advance(), {
1964
+ type: "block",
1965
+ statements: []
1966
+ };
1967
+ if (this.check(r.LBRACE)) return this.parseBlock();
1968
+ if (this.check(r.IF)) return this.parseIf();
1969
+ if (this.check(r.WHILE)) return this.parseWhile();
1970
+ if (this.check(r.DO)) return this.parseDoWhile();
1971
+ if (this.check(r.FOR)) return this.parseFor();
1972
+ if (this.check(r.BREAK)) return this.advance(), { type: "break" };
1973
+ if (this.check(r.CONTINUE)) return this.advance(), { type: "continue" };
1974
+ if (this.check(r.NEXT)) return this.advance(), { type: "next" };
1975
+ if (this.check(r.NEXTFILE)) return this.advance(), { type: "nextfile" };
1976
+ if (this.check(r.EXIT)) {
1977
+ this.advance();
1978
+ let n;
1979
+ return !this.check(r.NEWLINE) && !this.check(r.SEMICOLON) && !this.check(r.RBRACE) && !this.check(r.EOF) && (n = this.parseExpression()), {
1980
+ type: "exit",
1981
+ code: n
1982
+ };
1983
+ }
1984
+ if (this.check(r.RETURN)) {
1985
+ this.advance();
1986
+ let n;
1987
+ return !this.check(r.NEWLINE) && !this.check(r.SEMICOLON) && !this.check(r.RBRACE) && !this.check(r.EOF) && (n = this.parseExpression()), {
1988
+ type: "return",
1989
+ value: n
1990
+ };
1991
+ }
1992
+ if (this.check(r.DELETE)) {
1993
+ this.advance();
1994
+ let n = this.parsePrimary();
1995
+ if (n.type !== "array_access" && n.type !== "variable") throw new Error("delete requires array element or array");
1996
+ return {
1997
+ type: "delete",
1998
+ target: n
1999
+ };
2000
+ }
2001
+ return this.check(r.PRINT) ? De(this) : this.check(r.PRINTF) ? _e(this) : {
2002
+ type: "expr_stmt",
2003
+ expression: this.parseExpression()
2004
+ };
2005
+ }
2006
+ parseIf() {
2007
+ this.expect(r.IF), this.expect(r.LPAREN);
2008
+ let t = this.parseExpression();
2009
+ this.expect(r.RPAREN), this.skipNewlines();
2010
+ let n = this.parseStatement();
2011
+ this.skipTerminators();
2012
+ let i;
2013
+ return this.check(r.ELSE) && (this.advance(), this.skipNewlines(), i = this.parseStatement()), {
2014
+ type: "if",
2015
+ condition: t,
2016
+ consequent: n,
2017
+ alternate: i
2018
+ };
2019
+ }
2020
+ parseWhile() {
2021
+ this.expect(r.WHILE), this.expect(r.LPAREN);
2022
+ let t = this.parseExpression();
2023
+ this.expect(r.RPAREN), this.skipNewlines();
2024
+ return {
2025
+ type: "while",
2026
+ condition: t,
2027
+ body: this.parseStatement()
2028
+ };
2029
+ }
2030
+ parseDoWhile() {
2031
+ this.expect(r.DO), this.skipNewlines();
2032
+ let t = this.parseStatement();
2033
+ this.skipNewlines(), this.expect(r.WHILE), this.expect(r.LPAREN);
2034
+ let n = this.parseExpression();
2035
+ return this.expect(r.RPAREN), {
2036
+ type: "do_while",
2037
+ body: t,
2038
+ condition: n
2039
+ };
2040
+ }
2041
+ parseFor() {
2042
+ if (this.expect(r.FOR), this.expect(r.LPAREN), this.check(r.IDENT)) {
2043
+ let a = this.advance();
2044
+ if (this.check(r.IN)) {
2045
+ this.advance();
2046
+ let o = this.expect(r.IDENT).value;
2047
+ this.expect(r.RPAREN), this.skipNewlines();
2048
+ let l = this.parseStatement();
2049
+ return {
2050
+ type: "for_in",
2051
+ variable: a.value,
2052
+ array: o,
2053
+ body: l
2054
+ };
2055
+ }
2056
+ this.pos--;
2057
+ }
2058
+ let t;
2059
+ this.check(r.SEMICOLON) || (t = this.parseExpression()), this.expect(r.SEMICOLON);
2060
+ let n;
2061
+ this.check(r.SEMICOLON) || (n = this.parseExpression()), this.expect(r.SEMICOLON);
2062
+ let i;
2063
+ this.check(r.RPAREN) || (i = this.parseExpression()), this.expect(r.RPAREN), this.skipNewlines();
2064
+ let s = this.parseStatement();
2065
+ return {
2066
+ type: "for",
2067
+ init: t,
2068
+ condition: n,
2069
+ update: i,
2070
+ body: s
2071
+ };
2072
+ }
2073
+ parseExpression() {
2074
+ return this.parseAssignment();
2075
+ }
2076
+ parseAssignment() {
2077
+ let t = this.parseTernary();
2078
+ if (this.match(r.ASSIGN, r.PLUS_ASSIGN, r.MINUS_ASSIGN, r.STAR_ASSIGN, r.SLASH_ASSIGN, r.PERCENT_ASSIGN, r.CARET_ASSIGN)) {
2079
+ let n = this.advance(), i = this.parseAssignment();
2080
+ if (t.type !== "variable" && t.type !== "field" && t.type !== "array_access") throw new Error("Invalid assignment target");
2081
+ let s = new Set([
2082
+ "=",
2083
+ "+=",
2084
+ "-=",
2085
+ "*=",
2086
+ "/=",
2087
+ "%=",
2088
+ "^="
2089
+ ]), a = n.value;
2090
+ if (!s.has(a)) throw new Error(`Unknown assignment operator: ${a}`);
2091
+ return {
2092
+ type: "assignment",
2093
+ operator: a,
2094
+ target: t,
2095
+ value: i
2096
+ };
2097
+ }
2098
+ return t;
2099
+ }
2100
+ parseTernary() {
2101
+ let t = this.parsePipeGetline();
2102
+ if (this.check(r.QUESTION)) {
2103
+ this.advance();
2104
+ let n = this.parseExpression();
2105
+ this.expect(r.COLON);
2106
+ let i = this.parseExpression();
2107
+ t = {
2108
+ type: "ternary",
2109
+ condition: t,
2110
+ consequent: n,
2111
+ alternate: i
2112
+ };
2113
+ }
2114
+ return t;
2115
+ }
2116
+ parsePipeGetline() {
2117
+ let t = this.parseOr();
2118
+ if (this.check(r.PIPE)) {
2119
+ if (this.advance(), !this.check(r.GETLINE)) throw new Error("Expected 'getline' after '|' in expression context");
2120
+ this.advance();
2121
+ let n;
2122
+ return this.check(r.IDENT) && (n = this.advance().value), {
2123
+ type: "getline",
2124
+ command: t,
2125
+ variable: n
2126
+ };
2127
+ }
2128
+ return t;
2129
+ }
2130
+ parseOr() {
2131
+ let t = this.parseAnd();
2132
+ for (; this.check(r.OR);) {
2133
+ this.advance();
2134
+ let n = this.parseAnd();
2135
+ t = {
2136
+ type: "binary",
2137
+ operator: "||",
2138
+ left: t,
2139
+ right: n
2140
+ };
2141
+ }
2142
+ return t;
2143
+ }
2144
+ parseLogicalOrRest(t) {
2145
+ for (t = this.parseLogicalAndRest(t); this.check(r.OR);) {
2146
+ this.advance();
2147
+ let n = this.parseAnd();
2148
+ t = {
2149
+ type: "binary",
2150
+ operator: "||",
2151
+ left: t,
2152
+ right: n
2153
+ };
2154
+ }
2155
+ return t;
2156
+ }
2157
+ parseLogicalAndRest(t) {
2158
+ for (; this.check(r.AND);) {
2159
+ this.advance();
2160
+ let n = this.parseIn();
2161
+ t = {
2162
+ type: "binary",
2163
+ operator: "&&",
2164
+ left: t,
2165
+ right: n
2166
+ };
2167
+ }
2168
+ return t;
2169
+ }
2170
+ parseAnd() {
2171
+ let t = this.parseIn();
2172
+ for (; this.check(r.AND);) {
2173
+ this.advance();
2174
+ let n = this.parseIn();
2175
+ t = {
2176
+ type: "binary",
2177
+ operator: "&&",
2178
+ left: t,
2179
+ right: n
2180
+ };
2181
+ }
2182
+ return t;
2183
+ }
2184
+ parseIn() {
2185
+ let t = this.parseConcatenation();
2186
+ if (this.check(r.IN)) {
2187
+ this.advance();
2188
+ return {
2189
+ type: "in",
2190
+ key: t,
2191
+ array: this.expect(r.IDENT).value
2192
+ };
2193
+ }
2194
+ return t;
2195
+ }
2196
+ parseConcatenation() {
2197
+ let t = this.parseMatch();
2198
+ for (; this.canStartExpression() && !this.isConcatTerminator();) {
2199
+ let n = this.parseMatch();
2200
+ t = {
2201
+ type: "binary",
2202
+ operator: " ",
2203
+ left: t,
2204
+ right: n
2205
+ };
2206
+ }
2207
+ return t;
2208
+ }
2209
+ parseMatch() {
2210
+ let t = this.parseComparison();
2211
+ for (; this.match(r.MATCH, r.NOT_MATCH);) {
2212
+ let n = this.advance().type === r.MATCH ? "~" : "!~", i = this.parseComparison();
2213
+ t = {
2214
+ type: "binary",
2215
+ operator: n,
2216
+ left: t,
2217
+ right: i
2218
+ };
2219
+ }
2220
+ return t;
2221
+ }
2222
+ parseComparison() {
2223
+ let t = this.parseAddSub();
2224
+ for (; this.match(r.LT, r.LE, r.GT, r.GE, r.EQ, r.NE);) {
2225
+ let n = this.advance(), i = this.parseAddSub();
2226
+ t = {
2227
+ type: "binary",
2228
+ operator: new Map([
2229
+ ["<", "<"],
2230
+ ["<=", "<="],
2231
+ [">", ">"],
2232
+ [">=", ">="],
2233
+ ["==", "=="],
2234
+ ["!=", "!="]
2235
+ ]).get(n.value) ?? "==",
2236
+ left: t,
2237
+ right: i
2238
+ };
2239
+ }
2240
+ return t;
2241
+ }
2242
+ canStartExpression() {
2243
+ return this.match(r.NUMBER, r.STRING, r.IDENT, r.DOLLAR, r.LPAREN, r.NOT, r.MINUS, r.PLUS, r.INCREMENT, r.DECREMENT);
2244
+ }
2245
+ isConcatTerminator() {
2246
+ return this.match(r.AND, r.OR, r.QUESTION, r.ASSIGN, r.PLUS_ASSIGN, r.MINUS_ASSIGN, r.STAR_ASSIGN, r.SLASH_ASSIGN, r.PERCENT_ASSIGN, r.CARET_ASSIGN, r.COMMA, r.SEMICOLON, r.NEWLINE, r.RBRACE, r.RPAREN, r.RBRACKET, r.COLON, r.PIPE, r.APPEND, r.IN);
2247
+ }
2248
+ parseAddSub() {
2249
+ let t = this.parseMulDiv();
2250
+ for (; this.match(r.PLUS, r.MINUS);) {
2251
+ let n = this.advance().value, i = this.parseMulDiv();
2252
+ t = {
2253
+ type: "binary",
2254
+ operator: n,
2255
+ left: t,
2256
+ right: i
2257
+ };
2258
+ }
2259
+ return t;
2260
+ }
2261
+ parseMulDiv() {
2262
+ let t = this.parseUnary();
2263
+ for (; this.match(r.STAR, r.SLASH, r.PERCENT);) {
2264
+ let n = this.advance(), i = this.parseUnary();
2265
+ t = {
2266
+ type: "binary",
2267
+ operator: new Map([
2268
+ ["*", "*"],
2269
+ ["/", "/"],
2270
+ ["%", "%"]
2271
+ ]).get(n.value) ?? "*",
2272
+ left: t,
2273
+ right: i
2274
+ };
2275
+ }
2276
+ return t;
2277
+ }
2278
+ parseUnary() {
2279
+ if (this.check(r.INCREMENT)) {
2280
+ this.advance();
2281
+ let t = this.parseUnary();
2282
+ return t.type !== "variable" && t.type !== "field" && t.type !== "array_access" ? {
2283
+ type: "unary",
2284
+ operator: "+",
2285
+ operand: {
2286
+ type: "unary",
2287
+ operator: "+",
2288
+ operand: t
2289
+ }
2290
+ } : {
2291
+ type: "pre_increment",
2292
+ operand: t
2293
+ };
2294
+ }
2295
+ if (this.check(r.DECREMENT)) {
2296
+ this.advance();
2297
+ let t = this.parseUnary();
2298
+ return t.type !== "variable" && t.type !== "field" && t.type !== "array_access" ? {
2299
+ type: "unary",
2300
+ operator: "-",
2301
+ operand: {
2302
+ type: "unary",
2303
+ operator: "-",
2304
+ operand: t
2305
+ }
2306
+ } : {
2307
+ type: "pre_decrement",
2308
+ operand: t
2309
+ };
2310
+ }
2311
+ if (this.match(r.NOT, r.MINUS, r.PLUS)) return {
2312
+ type: "unary",
2313
+ operator: this.advance().value,
2314
+ operand: this.parseUnary()
2315
+ };
2316
+ return this.parsePower();
2317
+ }
2318
+ parsePower() {
2319
+ let t = this.parsePostfix();
2320
+ if (this.check(r.CARET)) {
2321
+ this.advance();
2322
+ let n = this.parsePower();
2323
+ t = {
2324
+ type: "binary",
2325
+ operator: "^",
2326
+ left: t,
2327
+ right: n
2328
+ };
2329
+ }
2330
+ return t;
2331
+ }
2332
+ parsePostfix() {
2333
+ let t = this.parsePrimary();
2334
+ if (this.check(r.INCREMENT)) {
2335
+ if (this.advance(), t.type !== "variable" && t.type !== "field" && t.type !== "array_access") throw new Error("Invalid increment operand");
2336
+ return {
2337
+ type: "post_increment",
2338
+ operand: t
2339
+ };
2340
+ }
2341
+ if (this.check(r.DECREMENT)) {
2342
+ if (this.advance(), t.type !== "variable" && t.type !== "field" && t.type !== "array_access") throw new Error("Invalid decrement operand");
2343
+ return {
2344
+ type: "post_decrement",
2345
+ operand: t
2346
+ };
2347
+ }
2348
+ return t;
2349
+ }
2350
+ parseFieldIndex() {
2351
+ if (this.check(r.INCREMENT)) {
2352
+ this.advance();
2353
+ let t = this.parseFieldIndex();
2354
+ return t.type !== "variable" && t.type !== "field" && t.type !== "array_access" ? {
2355
+ type: "unary",
2356
+ operator: "+",
2357
+ operand: {
2358
+ type: "unary",
2359
+ operator: "+",
2360
+ operand: t
2361
+ }
2362
+ } : {
2363
+ type: "pre_increment",
2364
+ operand: t
2365
+ };
2366
+ }
2367
+ if (this.check(r.DECREMENT)) {
2368
+ this.advance();
2369
+ let t = this.parseFieldIndex();
2370
+ return t.type !== "variable" && t.type !== "field" && t.type !== "array_access" ? {
2371
+ type: "unary",
2372
+ operator: "-",
2373
+ operand: {
2374
+ type: "unary",
2375
+ operator: "-",
2376
+ operand: t
2377
+ }
2378
+ } : {
2379
+ type: "pre_decrement",
2380
+ operand: t
2381
+ };
2382
+ }
2383
+ if (this.match(r.NOT, r.MINUS, r.PLUS)) return {
2384
+ type: "unary",
2385
+ operator: this.advance().value,
2386
+ operand: this.parseFieldIndex()
2387
+ };
2388
+ return this.parseFieldIndexPower();
2389
+ }
2390
+ parseFieldIndexPower() {
2391
+ let t = this.parseFieldIndexPrimary();
2392
+ if (this.check(r.CARET)) {
2393
+ this.advance();
2394
+ let n = this.parseFieldIndexPower();
2395
+ t = {
2396
+ type: "binary",
2397
+ operator: "^",
2398
+ left: t,
2399
+ right: n
2400
+ };
2401
+ }
2402
+ return t;
2403
+ }
2404
+ parseFieldIndexPrimary() {
2405
+ if (this.check(r.NUMBER)) return {
2406
+ type: "number",
2407
+ value: this.advance().value
2408
+ };
2409
+ if (this.check(r.STRING)) return {
2410
+ type: "string",
2411
+ value: this.advance().value
2412
+ };
2413
+ if (this.check(r.DOLLAR)) return this.advance(), {
2414
+ type: "field",
2415
+ index: this.parseFieldIndex()
2416
+ };
2417
+ if (this.check(r.LPAREN)) {
2418
+ this.advance();
2419
+ let t = this.parseExpression();
2420
+ return this.expect(r.RPAREN), t;
2421
+ }
2422
+ if (this.check(r.IDENT)) {
2423
+ let t = this.advance().value;
2424
+ if (this.check(r.LPAREN)) {
2425
+ this.advance();
2426
+ let n = [];
2427
+ if (!this.check(r.RPAREN)) for (n.push(this.parseExpression()); this.check(r.COMMA);) this.advance(), n.push(this.parseExpression());
2428
+ return this.expect(r.RPAREN), {
2429
+ type: "call",
2430
+ name: t,
2431
+ args: n
2432
+ };
2433
+ }
2434
+ if (this.check(r.LBRACKET)) {
2435
+ this.advance();
2436
+ let n = this.parseExpression();
2437
+ if (this.check(r.COMMA)) {
2438
+ let i = [n];
2439
+ for (; this.check(r.COMMA);) this.advance(), i.push(this.parseExpression());
2440
+ this.expect(r.RBRACKET);
2441
+ return {
2442
+ type: "array_access",
2443
+ array: t,
2444
+ key: i.reduce((a, o) => ({
2445
+ type: "binary",
2446
+ operator: " ",
2447
+ left: {
2448
+ type: "binary",
2449
+ operator: " ",
2450
+ left: a,
2451
+ right: {
2452
+ type: "variable",
2453
+ name: "SUBSEP"
2454
+ }
2455
+ },
2456
+ right: o
2457
+ }))
2458
+ };
2459
+ }
2460
+ return this.expect(r.RBRACKET), {
2461
+ type: "array_access",
2462
+ array: t,
2463
+ key: n
2464
+ };
2465
+ }
2466
+ return {
2467
+ type: "variable",
2468
+ name: t
2469
+ };
2470
+ }
2471
+ throw new Error(`Unexpected token in field index: ${this.current().type} at line ${this.current().line}:${this.current().column}`);
2472
+ }
2473
+ parsePrimary() {
2474
+ if (this.check(r.NUMBER)) return {
2475
+ type: "number",
2476
+ value: this.advance().value
2477
+ };
2478
+ if (this.check(r.STRING)) return {
2479
+ type: "string",
2480
+ value: this.advance().value
2481
+ };
2482
+ if (this.check(r.REGEX)) return {
2483
+ type: "regex",
2484
+ pattern: this.advance().value
2485
+ };
2486
+ if (this.check(r.DOLLAR)) return this.advance(), {
2487
+ type: "field",
2488
+ index: this.parseFieldIndex()
2489
+ };
2490
+ if (this.check(r.LPAREN)) {
2491
+ this.advance();
2492
+ let t = this.parseExpression();
2493
+ if (this.check(r.COMMA)) {
2494
+ let n = [t];
2495
+ for (; this.check(r.COMMA);) this.advance(), n.push(this.parseExpression());
2496
+ return this.expect(r.RPAREN), {
2497
+ type: "tuple",
2498
+ elements: n
2499
+ };
2500
+ }
2501
+ return this.expect(r.RPAREN), t;
2502
+ }
2503
+ if (this.check(r.GETLINE)) {
2504
+ this.advance();
2505
+ let t, n;
2506
+ return this.check(r.IDENT) && (t = this.advance().value), this.check(r.LT) && (this.advance(), n = this.parsePrimary()), {
2507
+ type: "getline",
2508
+ variable: t,
2509
+ file: n
2510
+ };
2511
+ }
2512
+ if (this.check(r.IDENT)) {
2513
+ let t = this.advance().value;
2514
+ if (this.check(r.LPAREN)) {
2515
+ this.advance();
2516
+ let n = [];
2517
+ if (this.skipNewlines(), !this.check(r.RPAREN)) for (n.push(this.parseExpression()); this.check(r.COMMA);) this.advance(), this.skipNewlines(), n.push(this.parseExpression());
2518
+ return this.skipNewlines(), this.expect(r.RPAREN), {
2519
+ type: "call",
2520
+ name: t,
2521
+ args: n
2522
+ };
2523
+ }
2524
+ if (this.check(r.LBRACKET)) {
2525
+ this.advance();
2526
+ let n = [this.parseExpression()];
2527
+ for (; this.check(r.COMMA);) this.advance(), n.push(this.parseExpression());
2528
+ this.expect(r.RBRACKET);
2529
+ let i;
2530
+ if (n.length === 1) i = n[0];
2531
+ else {
2532
+ i = n[0];
2533
+ for (let s = 1; s < n.length; s++) i = {
2534
+ type: "binary",
2535
+ operator: " ",
2536
+ left: {
2537
+ type: "binary",
2538
+ operator: " ",
2539
+ left: i,
2540
+ right: {
2541
+ type: "variable",
2542
+ name: "SUBSEP"
2543
+ }
2544
+ },
2545
+ right: n[s]
2546
+ };
2547
+ }
2548
+ return {
2549
+ type: "array_access",
2550
+ array: t,
2551
+ key: i
2552
+ };
2553
+ }
2554
+ return {
2555
+ type: "variable",
2556
+ name: t
2557
+ };
2558
+ }
2559
+ throw new Error(`Unexpected token: ${this.current().type} at line ${this.current().line}:${this.current().column}`);
2560
+ }
2561
+ };
2562
+ var Kt = {
2563
+ name: "awk",
2564
+ summary: "pattern scanning and text processing language",
2565
+ usage: "awk [OPTIONS] 'PROGRAM' [FILE...]",
2566
+ options: [
2567
+ "-F FS use FS as field separator",
2568
+ "-v VAR=VAL assign VAL to variable VAR",
2569
+ " --help display this help and exit"
2570
+ ]
2571
+ }, zn = {
2572
+ name: "awk",
2573
+ async execute(e, t) {
2574
+ a(t.requireDefenseContext, "awk", "execution entry");
2575
+ let n = (h, c) => x(t.requireDefenseContext, "awk", h, c);
2576
+ if (o(e)) return s(Kt);
2577
+ let i = new r1(/\s+/), s$1 = " ", a$1 = Object.create(null), o$1 = 0;
2578
+ for (let h = 0; h < e.length; h++) {
2579
+ let c = e[h];
2580
+ if (c === "-F" && h + 1 < e.length) s$1 = pe(e[++h]), i = Ge(s$1), o$1 = h + 1;
2581
+ else if (c.startsWith("-F")) s$1 = pe(c.slice(2)), i = Ge(s$1), o$1 = h + 1;
2582
+ else if (c === "-v" && h + 1 < e.length) {
2583
+ let E = e[++h], F = E.indexOf("=");
2584
+ if (F > 0) {
2585
+ let G = E.slice(0, F);
2586
+ a$1[G] = pe(E.slice(F + 1));
2587
+ }
2588
+ o$1 = h + 1;
2589
+ } else {
2590
+ if (c.startsWith("--")) return r$2("awk", c);
2591
+ if (c.startsWith("-") && c.length > 1) {
2592
+ let E = c[1];
2593
+ if (E !== "F" && E !== "v") return r$2("awk", `-${E}`);
2594
+ o$1 = h + 1;
2595
+ } else if (!c.startsWith("-")) {
2596
+ o$1 = h;
2597
+ break;
2598
+ }
2599
+ }
2600
+ }
2601
+ if (o$1 >= e.length) return {
2602
+ stdout: "",
2603
+ stderr: `awk: missing program
2604
+ `,
2605
+ exitCode: 1
2606
+ };
2607
+ let l = e[o$1], u = e.slice(o$1 + 1), N = new re(), A;
2608
+ try {
2609
+ A = N.parse(l);
2610
+ } catch (h) {
2611
+ return {
2612
+ stdout: "",
2613
+ stderr: `awk: ${h instanceof Error ? h.message : String(h)}
2614
+ `,
2615
+ exitCode: 1
2616
+ };
2617
+ }
2618
+ let C = {
2619
+ readFile: t.fs.readFile.bind(t.fs),
2620
+ writeFile: t.fs.writeFile.bind(t.fs),
2621
+ appendFile: async (h, c) => {
2622
+ try {
2623
+ let E = await n("appendFile read", () => t.fs.readFile(h));
2624
+ await n("appendFile write", () => t.fs.writeFile(h, E + c));
2625
+ } catch (E) {
2626
+ if (E instanceof d) throw E;
2627
+ await n("appendFile create", () => t.fs.writeFile(h, c));
2628
+ }
2629
+ },
2630
+ resolvePath: t.fs.resolvePath.bind(t.fs)
2631
+ }, O = t.exec, I = se({
2632
+ fieldSep: i,
2633
+ maxIterations: t.limits?.maxAwkIterations,
2634
+ maxOutputSize: t.limits?.maxStringLength,
2635
+ fs: C,
2636
+ cwd: t.cwd,
2637
+ exec: O ? (h) => n("command pipe exec", () => O(h, {
2638
+ cwd: t.cwd,
2639
+ signal: t.signal
2640
+ })) : void 0,
2641
+ coverage: t.coverage,
2642
+ requireDefenseContext: t.requireDefenseContext
2643
+ });
2644
+ I.FS = s$1, I.vars = Object.assign(Object.create(null), a$1), I.ARGC = u.length + 1, I.ARGV = Object.create(null), I.ARGV[0] = "awk";
2645
+ for (let h = 0; h < u.length; h++) I.ARGV[String(h + 1)] = u[h];
2646
+ I.ENVIRON = r$1(t.env);
2647
+ let w = new q(I);
2648
+ w.execute(A);
2649
+ let d$1 = A.rules.some((h) => h.pattern?.type !== "begin" && h.pattern?.type !== "end"), R = A.rules.some((h) => h.pattern?.type === "end");
2650
+ try {
2651
+ if (await n("BEGIN execution", () => w.executeBegin()), I.shouldExit) return await n("END execution after BEGIN exit", () => w.executeEnd()), {
2652
+ stdout: w.getOutput(),
2653
+ stderr: "",
2654
+ exitCode: w.getExitCode()
2655
+ };
2656
+ if (!d$1 && !R) return {
2657
+ stdout: w.getOutput(),
2658
+ stderr: "",
2659
+ exitCode: w.getExitCode()
2660
+ };
2661
+ let h = [];
2662
+ if (u.length > 0) for (let c of u) try {
2663
+ let E = t.fs.resolvePath(t.cwd, c), G = (await n("input file read", () => t.fs.readFile(E))).split(`
2664
+ `);
2665
+ G.length > 0 && G[G.length - 1] === "" && G.pop(), h.push({
2666
+ filename: c,
2667
+ lines: G
2668
+ });
2669
+ } catch (E) {
2670
+ if (E instanceof d) throw E;
2671
+ return {
2672
+ stdout: "",
2673
+ stderr: `awk: ${c}: No such file or directory
2674
+ `,
2675
+ exitCode: 1
2676
+ };
2677
+ }
2678
+ else {
2679
+ let c = x$1(t.stdin).split(`
2680
+ `);
2681
+ c.length > 0 && c[c.length - 1] === "" && c.pop(), h.push({
2682
+ filename: "",
2683
+ lines: c
2684
+ });
2685
+ }
2686
+ for (let c of h) {
2687
+ for (I.FILENAME = c.filename, I.FNR = 0, I.lines = c.lines, I.lineIndex = -1, I.shouldNextFile = !1; I.lineIndex < c.lines.length - 1;) {
2688
+ I.lineIndex++;
2689
+ let E = I.lineIndex;
2690
+ if (await n("line execution", () => w.executeLine(c.lines[E])), I.shouldExit || I.shouldNextFile) break;
2691
+ }
2692
+ if (I.shouldExit) break;
2693
+ }
2694
+ return await n("END execution", () => w.executeEnd()), {
2695
+ stdout: w.getOutput(),
2696
+ stderr: "",
2697
+ exitCode: w.getExitCode()
2698
+ };
2699
+ } catch (h) {
2700
+ if (h instanceof d) throw h;
2701
+ let c = h instanceof Error ? h.message : String(h), E = h instanceof b$1 ? b$1.EXIT_CODE : 2;
2702
+ return {
2703
+ stdout: w.getOutput(),
2704
+ stderr: `awk: ${c}
2705
+ `,
2706
+ exitCode: E
2707
+ };
2708
+ }
2709
+ }
2710
+ };
2711
+ function pe(e) {
2712
+ return e.replace(/\\t/g, " ").replace(/\\n/g, `
2713
+ `).replace(/\\r/g, "\r").replace(/\\b/g, "\b").replace(/\\f/g, "\f").replace(/\\a/g, "\x07").replace(/\\v/g, "\v").replace(/\\\\/g, "\\");
2714
+ }
2715
+ function Ge(e) {
2716
+ if (e === " ") return I1("\\s+");
2717
+ if (/[[\](){}.*+?^$|\\]/.test(e)) try {
2718
+ return I1(e);
2719
+ } catch {
2720
+ return I1(xe(e));
2721
+ }
2722
+ return I1(xe(e));
2723
+ }
2724
+ function xe(e) {
2725
+ return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2726
+ }
2727
+ var jn = {
2728
+ name: "awk",
2729
+ flags: [{
2730
+ flag: "-F",
2731
+ type: "value",
2732
+ valueHint: "delimiter"
2733
+ }, {
2734
+ flag: "-v",
2735
+ type: "value",
2736
+ valueHint: "string"
2737
+ }],
2738
+ stdinType: "text",
2739
+ needsArgs: !0
2740
+ };
2741
+ //#endregion
2742
+ export { zn as n, jn as t };
2743
+
2744
+ //# sourceMappingURL=chunk-LNBPBRV4-BjOa1SZW.mjs.map