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