@pnpm/exe 12.8.2 → 12.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (602) hide show
  1. package/bin/pnpm.mjs +5 -1
  2. package/bin/pnpx.mjs +1 -1
  3. package/dist/node_modules/.pnpm-workspace-state-v1.json +6 -2
  4. package/dist/wasm/LICENSE +22 -0
  5. package/dist/wasm/README.md +140 -0
  6. package/dist/wasm/THIRD-PARTY-NOTICES.md +42 -0
  7. package/dist/wasm/host/atomic-waits.mjs +43 -0
  8. package/dist/wasm/host/cancellation.mjs +6 -0
  9. package/dist/wasm/host/executable-mode.mjs +8 -0
  10. package/dist/wasm/host/file-locks.mjs +40 -0
  11. package/dist/wasm/host/filesystem.mjs +318 -0
  12. package/dist/wasm/host/guest-imports.mjs +45 -0
  13. package/dist/wasm/host/guest-operations.mjs +148 -0
  14. package/dist/wasm/host/lock-registry.mjs +167 -0
  15. package/dist/wasm/host/network.mjs +76 -0
  16. package/dist/wasm/host/operations.mjs +67 -0
  17. package/dist/wasm/host/poll.mjs +74 -0
  18. package/dist/wasm/host/process-stdio.mjs +41 -0
  19. package/dist/wasm/host/process-tree.mjs +54 -0
  20. package/dist/wasm/host/process.mjs +126 -0
  21. package/dist/wasm/host/protocol.mjs +1 -0
  22. package/dist/wasm/host/resources.mjs +76 -0
  23. package/dist/wasm/host/shell-runner.mjs +8 -0
  24. package/dist/wasm/host/shell.mjs +19 -0
  25. package/dist/wasm/host/signals.mjs +49 -0
  26. package/dist/wasm/host/terminal-input.mjs +7 -0
  27. package/dist/wasm/host/terminal-password.mjs +32 -0
  28. package/dist/wasm/host/terminal-session.mjs +114 -0
  29. package/dist/wasm/host/terminal.mjs +61 -0
  30. package/dist/wasm/host/thread-spawn.mjs +21 -0
  31. package/dist/wasm/host/upload.mjs +21 -0
  32. package/dist/wasm/host/wait-for-reply.mjs +7 -0
  33. package/dist/wasm/host/wasi-errno.mjs +81 -0
  34. package/dist/wasm/host/wasi-imports.mjs +58 -0
  35. package/dist/wasm/node_modules/.bin/js-yaml +91 -0
  36. package/dist/wasm/node_modules/.bin/node-which +91 -0
  37. package/dist/wasm/node_modules/.bin/shell +91 -0
  38. package/dist/wasm/node_modules/.pnpm-workspace-state-v1.json +355 -0
  39. package/dist/wasm/node_modules/@emnapi/wasi-threads/LICENSE +21 -0
  40. package/dist/wasm/node_modules/@emnapi/wasi-threads/README.md +203 -0
  41. package/dist/wasm/node_modules/@emnapi/wasi-threads/dist/wasi-threads.cjs.js +894 -0
  42. package/dist/wasm/node_modules/@emnapi/wasi-threads/dist/wasi-threads.cjs.min.d.ts +272 -0
  43. package/dist/wasm/node_modules/@emnapi/wasi-threads/dist/wasi-threads.cjs.min.js +1 -0
  44. package/dist/wasm/node_modules/@emnapi/wasi-threads/dist/wasi-threads.d.mts +272 -0
  45. package/dist/wasm/node_modules/@emnapi/wasi-threads/dist/wasi-threads.d.ts +274 -0
  46. package/dist/wasm/node_modules/@emnapi/wasi-threads/dist/wasi-threads.esm-bundler.js +942 -0
  47. package/dist/wasm/node_modules/@emnapi/wasi-threads/dist/wasi-threads.js +954 -0
  48. package/dist/wasm/node_modules/@emnapi/wasi-threads/dist/wasi-threads.min.d.mts +272 -0
  49. package/dist/wasm/node_modules/@emnapi/wasi-threads/dist/wasi-threads.min.js +1 -0
  50. package/dist/wasm/node_modules/@emnapi/wasi-threads/dist/wasi-threads.min.mjs +1 -0
  51. package/dist/wasm/node_modules/@emnapi/wasi-threads/dist/wasi-threads.mjs +889 -0
  52. package/dist/wasm/node_modules/@emnapi/wasi-threads/index.js +5 -0
  53. package/dist/wasm/node_modules/@emnapi/wasi-threads/package.json +50 -0
  54. package/dist/wasm/node_modules/@nodelib/fs.scandir/LICENSE +21 -0
  55. package/dist/wasm/node_modules/@nodelib/fs.scandir/README.md +171 -0
  56. package/dist/wasm/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
  57. package/dist/wasm/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +19 -0
  58. package/dist/wasm/node_modules/@nodelib/fs.scandir/out/constants.d.ts +4 -0
  59. package/dist/wasm/node_modules/@nodelib/fs.scandir/out/constants.js +17 -0
  60. package/dist/wasm/node_modules/@nodelib/fs.scandir/out/index.d.ts +12 -0
  61. package/dist/wasm/node_modules/@nodelib/fs.scandir/out/index.js +26 -0
  62. package/dist/wasm/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
  63. package/dist/wasm/node_modules/@nodelib/fs.scandir/out/providers/async.js +104 -0
  64. package/dist/wasm/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +1 -0
  65. package/dist/wasm/node_modules/@nodelib/fs.scandir/out/providers/common.js +13 -0
  66. package/dist/wasm/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +5 -0
  67. package/dist/wasm/node_modules/@nodelib/fs.scandir/out/providers/sync.js +54 -0
  68. package/dist/wasm/node_modules/@nodelib/fs.scandir/out/settings.d.ts +20 -0
  69. package/dist/wasm/node_modules/@nodelib/fs.scandir/out/settings.js +24 -0
  70. package/dist/wasm/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
  71. package/dist/wasm/node_modules/@nodelib/fs.scandir/out/types/index.js +2 -0
  72. package/dist/wasm/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +2 -0
  73. package/dist/wasm/node_modules/@nodelib/fs.scandir/out/utils/fs.js +19 -0
  74. package/dist/wasm/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +2 -0
  75. package/dist/wasm/node_modules/@nodelib/fs.scandir/out/utils/index.js +5 -0
  76. package/dist/wasm/node_modules/@nodelib/fs.scandir/package.json +44 -0
  77. package/dist/wasm/node_modules/@nodelib/fs.stat/LICENSE +21 -0
  78. package/dist/wasm/node_modules/@nodelib/fs.stat/README.md +126 -0
  79. package/dist/wasm/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
  80. package/dist/wasm/node_modules/@nodelib/fs.stat/out/adapters/fs.js +17 -0
  81. package/dist/wasm/node_modules/@nodelib/fs.stat/out/index.d.ts +12 -0
  82. package/dist/wasm/node_modules/@nodelib/fs.stat/out/index.js +26 -0
  83. package/dist/wasm/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
  84. package/dist/wasm/node_modules/@nodelib/fs.stat/out/providers/async.js +36 -0
  85. package/dist/wasm/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +3 -0
  86. package/dist/wasm/node_modules/@nodelib/fs.stat/out/providers/sync.js +23 -0
  87. package/dist/wasm/node_modules/@nodelib/fs.stat/out/settings.d.ts +16 -0
  88. package/dist/wasm/node_modules/@nodelib/fs.stat/out/settings.js +16 -0
  89. package/dist/wasm/node_modules/@nodelib/fs.stat/out/types/index.d.ts +4 -0
  90. package/dist/wasm/node_modules/@nodelib/fs.stat/out/types/index.js +2 -0
  91. package/dist/wasm/node_modules/@nodelib/fs.stat/package.json +37 -0
  92. package/dist/wasm/node_modules/@nodelib/fs.walk/LICENSE +21 -0
  93. package/dist/wasm/node_modules/@nodelib/fs.walk/README.md +215 -0
  94. package/dist/wasm/node_modules/@nodelib/fs.walk/out/index.d.ts +14 -0
  95. package/dist/wasm/node_modules/@nodelib/fs.walk/out/index.js +34 -0
  96. package/dist/wasm/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
  97. package/dist/wasm/node_modules/@nodelib/fs.walk/out/providers/async.js +30 -0
  98. package/dist/wasm/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +4 -0
  99. package/dist/wasm/node_modules/@nodelib/fs.walk/out/providers/index.js +9 -0
  100. package/dist/wasm/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +12 -0
  101. package/dist/wasm/node_modules/@nodelib/fs.walk/out/providers/stream.js +34 -0
  102. package/dist/wasm/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +10 -0
  103. package/dist/wasm/node_modules/@nodelib/fs.walk/out/providers/sync.js +14 -0
  104. package/dist/wasm/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
  105. package/dist/wasm/node_modules/@nodelib/fs.walk/out/readers/async.js +97 -0
  106. package/dist/wasm/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +7 -0
  107. package/dist/wasm/node_modules/@nodelib/fs.walk/out/readers/common.js +31 -0
  108. package/dist/wasm/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
  109. package/dist/wasm/node_modules/@nodelib/fs.walk/out/readers/reader.js +11 -0
  110. package/dist/wasm/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +15 -0
  111. package/dist/wasm/node_modules/@nodelib/fs.walk/out/readers/sync.js +59 -0
  112. package/dist/wasm/node_modules/@nodelib/fs.walk/out/settings.d.ts +30 -0
  113. package/dist/wasm/node_modules/@nodelib/fs.walk/out/settings.js +26 -0
  114. package/dist/wasm/node_modules/@nodelib/fs.walk/out/types/index.d.ts +8 -0
  115. package/dist/wasm/node_modules/@nodelib/fs.walk/out/types/index.js +2 -0
  116. package/dist/wasm/node_modules/@nodelib/fs.walk/package.json +44 -0
  117. package/dist/wasm/node_modules/@tybys/wasm-util/LICENSE +21 -0
  118. package/dist/wasm/node_modules/@tybys/wasm-util/README.md +193 -0
  119. package/dist/wasm/node_modules/@tybys/wasm-util/dist/tsdoc-metadata.json +11 -0
  120. package/dist/wasm/node_modules/@tybys/wasm-util/dist/wasm-util.d.ts +423 -0
  121. package/dist/wasm/node_modules/@tybys/wasm-util/dist/wasm-util.esm-bundler.js +2932 -0
  122. package/dist/wasm/node_modules/@tybys/wasm-util/dist/wasm-util.esm.js +2932 -0
  123. package/dist/wasm/node_modules/@tybys/wasm-util/dist/wasm-util.esm.min.js +1 -0
  124. package/dist/wasm/node_modules/@tybys/wasm-util/dist/wasm-util.js +2954 -0
  125. package/dist/wasm/node_modules/@tybys/wasm-util/dist/wasm-util.min.js +1 -0
  126. package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/asyncify.js +158 -0
  127. package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/index.js +13 -0
  128. package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/jspi.js +46 -0
  129. package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/load.js +97 -0
  130. package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/memory.js +35 -0
  131. package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/wasi/error.js +103 -0
  132. package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/wasi/fd.js +268 -0
  133. package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/wasi/fs.js +3 -0
  134. package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/wasi/index.js +192 -0
  135. package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/wasi/path.js +316 -0
  136. package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/wasi/preview1.js +1599 -0
  137. package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/wasi/rights.js +141 -0
  138. package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/wasi/types.js +220 -0
  139. package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/wasi/util.js +128 -0
  140. package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/webassembly.js +13 -0
  141. package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/asyncify.mjs +153 -0
  142. package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/index.mjs +9 -0
  143. package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/jspi.mjs +39 -0
  144. package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/load.mjs +89 -0
  145. package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/memory.mjs +28 -0
  146. package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/wasi/error.mjs +97 -0
  147. package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/wasi/fd.mjs +256 -0
  148. package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/wasi/fs.mjs +1 -0
  149. package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/wasi/index.mjs +186 -0
  150. package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/wasi/path.mjs +310 -0
  151. package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/wasi/preview1.mjs +1593 -0
  152. package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/wasi/rights.mjs +135 -0
  153. package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/wasi/types.mjs +216 -0
  154. package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/wasi/util.mjs +113 -0
  155. package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/webassembly.mjs +9 -0
  156. package/dist/wasm/node_modules/@tybys/wasm-util/package.json +58 -0
  157. package/dist/wasm/node_modules/@types/braces/LICENSE +21 -0
  158. package/dist/wasm/node_modules/@types/braces/README.md +15 -0
  159. package/dist/wasm/node_modules/@types/braces/index.d.ts +100 -0
  160. package/dist/wasm/node_modules/@types/braces/package.json +36 -0
  161. package/dist/wasm/node_modules/@types/micromatch/LICENSE +21 -0
  162. package/dist/wasm/node_modules/@types/micromatch/README.md +15 -0
  163. package/dist/wasm/node_modules/@types/micromatch/index.d.ts +670 -0
  164. package/dist/wasm/node_modules/@types/micromatch/package.json +28 -0
  165. package/dist/wasm/node_modules/@yarnpkg/fslib/README.md +17 -0
  166. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/AliasFS.d.ts +16 -0
  167. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/AliasFS.js +24 -0
  168. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/CwdFS.d.ts +15 -0
  169. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/CwdFS.js +36 -0
  170. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/FakeFS.d.ts +398 -0
  171. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/FakeFS.js +451 -0
  172. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/JailFS.d.ts +16 -0
  173. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/JailFS.js +35 -0
  174. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/LazyFS.d.ts +13 -0
  175. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/LazyFS.js +26 -0
  176. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/MountFS.d.ts +278 -0
  177. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/MountFS.js +873 -0
  178. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/NoFS.d.ts +78 -0
  179. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/NoFS.js +229 -0
  180. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/NodeFS.d.ts +223 -0
  181. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/NodeFS.js +476 -0
  182. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/NodePathFS.d.ts +18 -0
  183. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/NodePathFS.js +47 -0
  184. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/PosixFS.d.ts +9 -0
  185. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/PosixFS.js +18 -0
  186. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/ProxiedFS.d.ts +229 -0
  187. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/ProxiedFS.js +255 -0
  188. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/VirtualFS.d.ts +19 -0
  189. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/VirtualFS.js +89 -0
  190. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/algorithms/copyPromise.d.ts +19 -0
  191. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/algorithms/copyPromise.js +271 -0
  192. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/algorithms/opendir.d.ts +22 -0
  193. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/algorithms/opendir.js +65 -0
  194. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/algorithms/watchFile/CustomStatWatcher.d.ts +59 -0
  195. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/algorithms/watchFile/CustomStatWatcher.js +139 -0
  196. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/algorithms/watchFile.d.ts +6 -0
  197. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/algorithms/watchFile.js +67 -0
  198. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/constants.d.ts +13 -0
  199. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/constants.js +16 -0
  200. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/errors.d.ts +36 -0
  201. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/errors.js +54 -0
  202. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/index.d.ts +48 -0
  203. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/index.js +55 -0
  204. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/patchFs/FileHandle.d.ts +81 -0
  205. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/patchFs/FileHandle.js +254 -0
  206. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/patchFs/patchFs.d.ts +5 -0
  207. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/patchFs/patchFs.js +265 -0
  208. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/path.d.ts +84 -0
  209. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/path.js +103 -0
  210. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/statUtils.d.ts +81 -0
  211. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/statUtils.js +238 -0
  212. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/xfs.d.ts +18 -0
  213. package/dist/wasm/node_modules/@yarnpkg/fslib/lib/xfs.js +123 -0
  214. package/dist/wasm/node_modules/@yarnpkg/fslib/package.json +42 -0
  215. package/dist/wasm/node_modules/@yarnpkg/parsers/lib/grammars/resolution.d.ts +1 -0
  216. package/dist/wasm/node_modules/@yarnpkg/parsers/lib/grammars/resolution.js +530 -0
  217. package/dist/wasm/node_modules/@yarnpkg/parsers/lib/grammars/resolution.pegjs +17 -0
  218. package/dist/wasm/node_modules/@yarnpkg/parsers/lib/grammars/shell.d.ts +92 -0
  219. package/dist/wasm/node_modules/@yarnpkg/parsers/lib/grammars/shell.js +3653 -0
  220. package/dist/wasm/node_modules/@yarnpkg/parsers/lib/grammars/shell.pegjs +189 -0
  221. package/dist/wasm/node_modules/@yarnpkg/parsers/lib/grammars/syml.d.ts +1 -0
  222. package/dist/wasm/node_modules/@yarnpkg/parsers/lib/grammars/syml.js +1911 -0
  223. package/dist/wasm/node_modules/@yarnpkg/parsers/lib/grammars/syml.pegjs +125 -0
  224. package/dist/wasm/node_modules/@yarnpkg/parsers/lib/index.d.ts +6 -0
  225. package/dist/wasm/node_modules/@yarnpkg/parsers/lib/index.js +24 -0
  226. package/dist/wasm/node_modules/@yarnpkg/parsers/lib/resolution.d.ts +12 -0
  227. package/dist/wasm/node_modules/@yarnpkg/parsers/lib/resolution.js +31 -0
  228. package/dist/wasm/node_modules/@yarnpkg/parsers/lib/shell.d.ts +19 -0
  229. package/dist/wasm/node_modules/@yarnpkg/parsers/lib/shell.js +170 -0
  230. package/dist/wasm/node_modules/@yarnpkg/parsers/lib/syml.d.ts +11 -0
  231. package/dist/wasm/node_modules/@yarnpkg/parsers/lib/syml.js +132 -0
  232. package/dist/wasm/node_modules/@yarnpkg/parsers/package.json +46 -0
  233. package/dist/wasm/node_modules/@yarnpkg/shell/README.md +38 -0
  234. package/dist/wasm/node_modules/@yarnpkg/shell/lib/boot-cli-dev.js +3 -0
  235. package/dist/wasm/node_modules/@yarnpkg/shell/lib/cli.d.ts +2 -0
  236. package/dist/wasm/node_modules/@yarnpkg/shell/lib/cli.js +19 -0
  237. package/dist/wasm/node_modules/@yarnpkg/shell/lib/commands/entry.d.ts +8 -0
  238. package/dist/wasm/node_modules/@yarnpkg/shell/lib/commands/entry.js +60 -0
  239. package/dist/wasm/node_modules/@yarnpkg/shell/lib/errors.d.ts +6 -0
  240. package/dist/wasm/node_modules/@yarnpkg/shell/lib/errors.js +13 -0
  241. package/dist/wasm/node_modules/@yarnpkg/shell/lib/globUtils.d.ts +23 -0
  242. package/dist/wasm/node_modules/@yarnpkg/shell/lib/globUtils.js +47 -0
  243. package/dist/wasm/node_modules/@yarnpkg/shell/lib/index.d.ts +56 -0
  244. package/dist/wasm/node_modules/@yarnpkg/shell/lib/index.js +926 -0
  245. package/dist/wasm/node_modules/@yarnpkg/shell/lib/pipe.d.ts +54 -0
  246. package/dist/wasm/node_modules/@yarnpkg/shell/lib/pipe.js +281 -0
  247. package/dist/wasm/node_modules/@yarnpkg/shell/package.json +54 -0
  248. package/dist/wasm/node_modules/ansi-styles/index.d.ts +345 -0
  249. package/dist/wasm/node_modules/ansi-styles/index.js +163 -0
  250. package/dist/wasm/node_modules/ansi-styles/license +9 -0
  251. package/dist/wasm/node_modules/ansi-styles/package.json +56 -0
  252. package/dist/wasm/node_modules/ansi-styles/readme.md +152 -0
  253. package/dist/wasm/node_modules/argparse/CHANGELOG.md +216 -0
  254. package/dist/wasm/node_modules/argparse/LICENSE +254 -0
  255. package/dist/wasm/node_modules/argparse/README.md +84 -0
  256. package/dist/wasm/node_modules/argparse/argparse.js +3707 -0
  257. package/dist/wasm/node_modules/argparse/lib/sub.js +67 -0
  258. package/dist/wasm/node_modules/argparse/lib/textwrap.js +440 -0
  259. package/dist/wasm/node_modules/argparse/package.json +31 -0
  260. package/dist/wasm/node_modules/braces/LICENSE +21 -0
  261. package/dist/wasm/node_modules/braces/README.md +586 -0
  262. package/dist/wasm/node_modules/braces/index.js +170 -0
  263. package/dist/wasm/node_modules/braces/lib/compile.js +60 -0
  264. package/dist/wasm/node_modules/braces/lib/constants.js +57 -0
  265. package/dist/wasm/node_modules/braces/lib/expand.js +113 -0
  266. package/dist/wasm/node_modules/braces/lib/parse.js +331 -0
  267. package/dist/wasm/node_modules/braces/lib/stringify.js +32 -0
  268. package/dist/wasm/node_modules/braces/lib/utils.js +122 -0
  269. package/dist/wasm/node_modules/braces/package.json +77 -0
  270. package/dist/wasm/node_modules/chalk/index.d.ts +415 -0
  271. package/dist/wasm/node_modules/chalk/license +9 -0
  272. package/dist/wasm/node_modules/chalk/package.json +68 -0
  273. package/dist/wasm/node_modules/chalk/readme.md +341 -0
  274. package/dist/wasm/node_modules/chalk/source/index.js +229 -0
  275. package/dist/wasm/node_modules/chalk/source/templates.js +134 -0
  276. package/dist/wasm/node_modules/chalk/source/util.js +39 -0
  277. package/dist/wasm/node_modules/clipanion/README.md +98 -0
  278. package/dist/wasm/node_modules/clipanion/lib/advanced/Cli.d.ts +225 -0
  279. package/dist/wasm/node_modules/clipanion/lib/advanced/Cli.js +406 -0
  280. package/dist/wasm/node_modules/clipanion/lib/advanced/Cli.mjs +398 -0
  281. package/dist/wasm/node_modules/clipanion/lib/advanced/Command.d.ts +144 -0
  282. package/dist/wasm/node_modules/clipanion/lib/advanced/Command.js +91 -0
  283. package/dist/wasm/node_modules/clipanion/lib/advanced/Command.mjs +67 -0
  284. package/dist/wasm/node_modules/clipanion/lib/advanced/HelpCommand.d.ts +11 -0
  285. package/dist/wasm/node_modules/clipanion/lib/advanced/HelpCommand.js +54 -0
  286. package/dist/wasm/node_modules/clipanion/lib/advanced/HelpCommand.mjs +50 -0
  287. package/dist/wasm/node_modules/clipanion/lib/advanced/builtins/definitions.d.ts +8 -0
  288. package/dist/wasm/node_modules/clipanion/lib/advanced/builtins/definitions.js +17 -0
  289. package/dist/wasm/node_modules/clipanion/lib/advanced/builtins/definitions.mjs +13 -0
  290. package/dist/wasm/node_modules/clipanion/lib/advanced/builtins/help.d.ts +10 -0
  291. package/dist/wasm/node_modules/clipanion/lib/advanced/builtins/help.js +19 -0
  292. package/dist/wasm/node_modules/clipanion/lib/advanced/builtins/help.mjs +15 -0
  293. package/dist/wasm/node_modules/clipanion/lib/advanced/builtins/index.d.ts +3 -0
  294. package/dist/wasm/node_modules/clipanion/lib/advanced/builtins/index.js +13 -0
  295. package/dist/wasm/node_modules/clipanion/lib/advanced/builtins/index.mjs +3 -0
  296. package/dist/wasm/node_modules/clipanion/lib/advanced/builtins/version.d.ts +10 -0
  297. package/dist/wasm/node_modules/clipanion/lib/advanced/builtins/version.js +20 -0
  298. package/dist/wasm/node_modules/clipanion/lib/advanced/builtins/version.mjs +16 -0
  299. package/dist/wasm/node_modules/clipanion/lib/advanced/index.d.ts +7 -0
  300. package/dist/wasm/node_modules/clipanion/lib/advanced/index.js +19 -0
  301. package/dist/wasm/node_modules/clipanion/lib/advanced/index.mjs +8 -0
  302. package/dist/wasm/node_modules/clipanion/lib/advanced/options/Array.d.ts +17 -0
  303. package/dist/wasm/node_modules/clipanion/lib/advanced/options/Array.js +37 -0
  304. package/dist/wasm/node_modules/clipanion/lib/advanced/options/Array.mjs +33 -0
  305. package/dist/wasm/node_modules/clipanion/lib/advanced/options/Boolean.d.ts +14 -0
  306. package/dist/wasm/node_modules/clipanion/lib/advanced/options/Boolean.js +34 -0
  307. package/dist/wasm/node_modules/clipanion/lib/advanced/options/Boolean.mjs +30 -0
  308. package/dist/wasm/node_modules/clipanion/lib/advanced/options/Counter.d.ts +15 -0
  309. package/dist/wasm/node_modules/clipanion/lib/advanced/options/Counter.js +41 -0
  310. package/dist/wasm/node_modules/clipanion/lib/advanced/options/Counter.mjs +37 -0
  311. package/dist/wasm/node_modules/clipanion/lib/advanced/options/Proxy.d.ts +18 -0
  312. package/dist/wasm/node_modules/clipanion/lib/advanced/options/Proxy.js +35 -0
  313. package/dist/wasm/node_modules/clipanion/lib/advanced/options/Proxy.mjs +31 -0
  314. package/dist/wasm/node_modules/clipanion/lib/advanced/options/Rest.d.ts +18 -0
  315. package/dist/wasm/node_modules/clipanion/lib/advanced/options/Rest.js +51 -0
  316. package/dist/wasm/node_modules/clipanion/lib/advanced/options/Rest.mjs +47 -0
  317. package/dist/wasm/node_modules/clipanion/lib/advanced/options/String.d.ts +49 -0
  318. package/dist/wasm/node_modules/clipanion/lib/advanced/options/String.js +84 -0
  319. package/dist/wasm/node_modules/clipanion/lib/advanced/options/String.mjs +80 -0
  320. package/dist/wasm/node_modules/clipanion/lib/advanced/options/index.d.ts +7 -0
  321. package/dist/wasm/node_modules/clipanion/lib/advanced/options/index.js +26 -0
  322. package/dist/wasm/node_modules/clipanion/lib/advanced/options/index.mjs +7 -0
  323. package/dist/wasm/node_modules/clipanion/lib/advanced/options/utils.d.ts +25 -0
  324. package/dist/wasm/node_modules/clipanion/lib/advanced/options/utils.js +59 -0
  325. package/dist/wasm/node_modules/clipanion/lib/advanced/options/utils.mjs +50 -0
  326. package/dist/wasm/node_modules/clipanion/lib/constants.d.ts +11 -0
  327. package/dist/wasm/node_modules/clipanion/lib/constants.js +27 -0
  328. package/dist/wasm/node_modules/clipanion/lib/constants.mjs +13 -0
  329. package/dist/wasm/node_modules/clipanion/lib/core.d.ts +462 -0
  330. package/dist/wasm/node_modules/clipanion/lib/core.js +827 -0
  331. package/dist/wasm/node_modules/clipanion/lib/core.mjs +800 -0
  332. package/dist/wasm/node_modules/clipanion/lib/demos/advanced.d.ts +22 -0
  333. package/dist/wasm/node_modules/clipanion/lib/errors.d.ts +52 -0
  334. package/dist/wasm/node_modules/clipanion/lib/errors.js +70 -0
  335. package/dist/wasm/node_modules/clipanion/lib/errors.mjs +64 -0
  336. package/dist/wasm/node_modules/clipanion/lib/format.d.ts +19 -0
  337. package/dist/wasm/node_modules/clipanion/lib/format.js +74 -0
  338. package/dist/wasm/node_modules/clipanion/lib/format.mjs +68 -0
  339. package/dist/wasm/node_modules/clipanion/package.json +68 -0
  340. package/dist/wasm/node_modules/color-convert/CHANGELOG.md +54 -0
  341. package/dist/wasm/node_modules/color-convert/LICENSE +21 -0
  342. package/dist/wasm/node_modules/color-convert/README.md +68 -0
  343. package/dist/wasm/node_modules/color-convert/conversions.js +839 -0
  344. package/dist/wasm/node_modules/color-convert/index.js +81 -0
  345. package/dist/wasm/node_modules/color-convert/package.json +48 -0
  346. package/dist/wasm/node_modules/color-convert/route.js +97 -0
  347. package/dist/wasm/node_modules/color-name/LICENSE +8 -0
  348. package/dist/wasm/node_modules/color-name/README.md +11 -0
  349. package/dist/wasm/node_modules/color-name/index.js +152 -0
  350. package/dist/wasm/node_modules/color-name/package.json +28 -0
  351. package/dist/wasm/node_modules/cross-spawn/LICENSE +21 -0
  352. package/dist/wasm/node_modules/cross-spawn/README.md +89 -0
  353. package/dist/wasm/node_modules/cross-spawn/index.js +39 -0
  354. package/dist/wasm/node_modules/cross-spawn/lib/enoent.js +59 -0
  355. package/dist/wasm/node_modules/cross-spawn/lib/parse.js +91 -0
  356. package/dist/wasm/node_modules/cross-spawn/lib/util/escape.js +47 -0
  357. package/dist/wasm/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
  358. package/dist/wasm/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
  359. package/dist/wasm/node_modules/cross-spawn/package.json +73 -0
  360. package/dist/wasm/node_modules/fast-glob/LICENSE +21 -0
  361. package/dist/wasm/node_modules/fast-glob/README.md +830 -0
  362. package/dist/wasm/node_modules/fast-glob/out/index.d.ts +40 -0
  363. package/dist/wasm/node_modules/fast-glob/out/index.js +102 -0
  364. package/dist/wasm/node_modules/fast-glob/out/managers/tasks.d.ts +22 -0
  365. package/dist/wasm/node_modules/fast-glob/out/managers/tasks.js +110 -0
  366. package/dist/wasm/node_modules/fast-glob/out/providers/async.d.ts +9 -0
  367. package/dist/wasm/node_modules/fast-glob/out/providers/async.js +23 -0
  368. package/dist/wasm/node_modules/fast-glob/out/providers/filters/deep.d.ts +16 -0
  369. package/dist/wasm/node_modules/fast-glob/out/providers/filters/deep.js +62 -0
  370. package/dist/wasm/node_modules/fast-glob/out/providers/filters/entry.d.ts +17 -0
  371. package/dist/wasm/node_modules/fast-glob/out/providers/filters/entry.js +85 -0
  372. package/dist/wasm/node_modules/fast-glob/out/providers/filters/error.d.ts +8 -0
  373. package/dist/wasm/node_modules/fast-glob/out/providers/filters/error.js +15 -0
  374. package/dist/wasm/node_modules/fast-glob/out/providers/matchers/matcher.d.ts +33 -0
  375. package/dist/wasm/node_modules/fast-glob/out/providers/matchers/matcher.js +45 -0
  376. package/dist/wasm/node_modules/fast-glob/out/providers/matchers/partial.d.ts +4 -0
  377. package/dist/wasm/node_modules/fast-glob/out/providers/matchers/partial.js +38 -0
  378. package/dist/wasm/node_modules/fast-glob/out/providers/provider.d.ts +19 -0
  379. package/dist/wasm/node_modules/fast-glob/out/providers/provider.js +48 -0
  380. package/dist/wasm/node_modules/fast-glob/out/providers/stream.d.ts +11 -0
  381. package/dist/wasm/node_modules/fast-glob/out/providers/stream.js +31 -0
  382. package/dist/wasm/node_modules/fast-glob/out/providers/sync.d.ts +9 -0
  383. package/dist/wasm/node_modules/fast-glob/out/providers/sync.js +23 -0
  384. package/dist/wasm/node_modules/fast-glob/out/providers/transformers/entry.d.ts +8 -0
  385. package/dist/wasm/node_modules/fast-glob/out/providers/transformers/entry.js +26 -0
  386. package/dist/wasm/node_modules/fast-glob/out/readers/async.d.ts +10 -0
  387. package/dist/wasm/node_modules/fast-glob/out/readers/async.js +35 -0
  388. package/dist/wasm/node_modules/fast-glob/out/readers/reader.d.ts +15 -0
  389. package/dist/wasm/node_modules/fast-glob/out/readers/reader.js +33 -0
  390. package/dist/wasm/node_modules/fast-glob/out/readers/stream.d.ts +14 -0
  391. package/dist/wasm/node_modules/fast-glob/out/readers/stream.js +55 -0
  392. package/dist/wasm/node_modules/fast-glob/out/readers/sync.d.ts +12 -0
  393. package/dist/wasm/node_modules/fast-glob/out/readers/sync.js +43 -0
  394. package/dist/wasm/node_modules/fast-glob/out/settings.d.ts +164 -0
  395. package/dist/wasm/node_modules/fast-glob/out/settings.js +59 -0
  396. package/dist/wasm/node_modules/fast-glob/out/types/index.d.ts +31 -0
  397. package/dist/wasm/node_modules/fast-glob/out/types/index.js +2 -0
  398. package/dist/wasm/node_modules/fast-glob/out/utils/array.d.ts +2 -0
  399. package/dist/wasm/node_modules/fast-glob/out/utils/array.js +22 -0
  400. package/dist/wasm/node_modules/fast-glob/out/utils/errno.d.ts +2 -0
  401. package/dist/wasm/node_modules/fast-glob/out/utils/errno.js +7 -0
  402. package/dist/wasm/node_modules/fast-glob/out/utils/fs.d.ts +4 -0
  403. package/dist/wasm/node_modules/fast-glob/out/utils/fs.js +19 -0
  404. package/dist/wasm/node_modules/fast-glob/out/utils/index.d.ts +8 -0
  405. package/dist/wasm/node_modules/fast-glob/out/utils/index.js +17 -0
  406. package/dist/wasm/node_modules/fast-glob/out/utils/path.d.ts +13 -0
  407. package/dist/wasm/node_modules/fast-glob/out/utils/path.js +68 -0
  408. package/dist/wasm/node_modules/fast-glob/out/utils/pattern.d.ts +49 -0
  409. package/dist/wasm/node_modules/fast-glob/out/utils/pattern.js +206 -0
  410. package/dist/wasm/node_modules/fast-glob/out/utils/stream.d.ts +4 -0
  411. package/dist/wasm/node_modules/fast-glob/out/utils/stream.js +17 -0
  412. package/dist/wasm/node_modules/fast-glob/out/utils/string.d.ts +2 -0
  413. package/dist/wasm/node_modules/fast-glob/out/utils/string.js +11 -0
  414. package/dist/wasm/node_modules/fast-glob/package.json +81 -0
  415. package/dist/wasm/node_modules/fastq/LICENSE +13 -0
  416. package/dist/wasm/node_modules/fastq/README.md +310 -0
  417. package/dist/wasm/node_modules/fastq/SECURITY.md +15 -0
  418. package/dist/wasm/node_modules/fastq/bench.js +66 -0
  419. package/dist/wasm/node_modules/fastq/eslint.config.js +11 -0
  420. package/dist/wasm/node_modules/fastq/example.js +14 -0
  421. package/dist/wasm/node_modules/fastq/example.mjs +9 -0
  422. package/dist/wasm/node_modules/fastq/index.d.ts +59 -0
  423. package/dist/wasm/node_modules/fastq/package.json +49 -0
  424. package/dist/wasm/node_modules/fastq/queue.js +348 -0
  425. package/dist/wasm/node_modules/fastq/test/example.ts +83 -0
  426. package/dist/wasm/node_modules/fastq/test/promise.js +356 -0
  427. package/dist/wasm/node_modules/fastq/test/test.js +808 -0
  428. package/dist/wasm/node_modules/fastq/test/tsconfig.json +11 -0
  429. package/dist/wasm/node_modules/fill-range/LICENSE +21 -0
  430. package/dist/wasm/node_modules/fill-range/README.md +237 -0
  431. package/dist/wasm/node_modules/fill-range/index.js +248 -0
  432. package/dist/wasm/node_modules/fill-range/package.json +74 -0
  433. package/dist/wasm/node_modules/glob-parent/CHANGELOG.md +110 -0
  434. package/dist/wasm/node_modules/glob-parent/LICENSE +15 -0
  435. package/dist/wasm/node_modules/glob-parent/README.md +137 -0
  436. package/dist/wasm/node_modules/glob-parent/index.js +42 -0
  437. package/dist/wasm/node_modules/glob-parent/package.json +48 -0
  438. package/dist/wasm/node_modules/has-flag/index.d.ts +39 -0
  439. package/dist/wasm/node_modules/has-flag/index.js +8 -0
  440. package/dist/wasm/node_modules/has-flag/license +9 -0
  441. package/dist/wasm/node_modules/has-flag/package.json +46 -0
  442. package/dist/wasm/node_modules/has-flag/readme.md +89 -0
  443. package/dist/wasm/node_modules/is-extglob/LICENSE +21 -0
  444. package/dist/wasm/node_modules/is-extglob/README.md +107 -0
  445. package/dist/wasm/node_modules/is-extglob/index.js +20 -0
  446. package/dist/wasm/node_modules/is-extglob/package.json +69 -0
  447. package/dist/wasm/node_modules/is-glob/LICENSE +21 -0
  448. package/dist/wasm/node_modules/is-glob/README.md +206 -0
  449. package/dist/wasm/node_modules/is-glob/index.js +150 -0
  450. package/dist/wasm/node_modules/is-glob/package.json +81 -0
  451. package/dist/wasm/node_modules/is-number/LICENSE +21 -0
  452. package/dist/wasm/node_modules/is-number/README.md +187 -0
  453. package/dist/wasm/node_modules/is-number/index.js +18 -0
  454. package/dist/wasm/node_modules/is-number/package.json +82 -0
  455. package/dist/wasm/node_modules/isexe/.npmignore +2 -0
  456. package/dist/wasm/node_modules/isexe/LICENSE +15 -0
  457. package/dist/wasm/node_modules/isexe/README.md +51 -0
  458. package/dist/wasm/node_modules/isexe/index.js +57 -0
  459. package/dist/wasm/node_modules/isexe/mode.js +41 -0
  460. package/dist/wasm/node_modules/isexe/package.json +31 -0
  461. package/dist/wasm/node_modules/isexe/test/basic.js +221 -0
  462. package/dist/wasm/node_modules/isexe/windows.js +42 -0
  463. package/dist/wasm/node_modules/js-yaml/LICENSE +21 -0
  464. package/dist/wasm/node_modules/js-yaml/README.md +246 -0
  465. package/dist/wasm/node_modules/js-yaml/bin/js-yaml.js +126 -0
  466. package/dist/wasm/node_modules/js-yaml/dist/js-yaml.js +3874 -0
  467. package/dist/wasm/node_modules/js-yaml/dist/js-yaml.min.js +2 -0
  468. package/dist/wasm/node_modules/js-yaml/dist/js-yaml.mjs +3851 -0
  469. package/dist/wasm/node_modules/js-yaml/index.js +30 -0
  470. package/dist/wasm/node_modules/js-yaml/lib/common.js +59 -0
  471. package/dist/wasm/node_modules/js-yaml/lib/dumper.js +979 -0
  472. package/dist/wasm/node_modules/js-yaml/lib/exception.js +55 -0
  473. package/dist/wasm/node_modules/js-yaml/lib/loader.js +1733 -0
  474. package/dist/wasm/node_modules/js-yaml/lib/schema/core.js +11 -0
  475. package/dist/wasm/node_modules/js-yaml/lib/schema/default.js +22 -0
  476. package/dist/wasm/node_modules/js-yaml/lib/schema/failsafe.js +17 -0
  477. package/dist/wasm/node_modules/js-yaml/lib/schema/json.js +19 -0
  478. package/dist/wasm/node_modules/js-yaml/lib/schema.js +121 -0
  479. package/dist/wasm/node_modules/js-yaml/lib/snippet.js +101 -0
  480. package/dist/wasm/node_modules/js-yaml/lib/type/binary.js +125 -0
  481. package/dist/wasm/node_modules/js-yaml/lib/type/bool.js +35 -0
  482. package/dist/wasm/node_modules/js-yaml/lib/type/float.js +97 -0
  483. package/dist/wasm/node_modules/js-yaml/lib/type/int.js +156 -0
  484. package/dist/wasm/node_modules/js-yaml/lib/type/map.js +8 -0
  485. package/dist/wasm/node_modules/js-yaml/lib/type/merge.js +12 -0
  486. package/dist/wasm/node_modules/js-yaml/lib/type/null.js +35 -0
  487. package/dist/wasm/node_modules/js-yaml/lib/type/omap.js +44 -0
  488. package/dist/wasm/node_modules/js-yaml/lib/type/pairs.js +53 -0
  489. package/dist/wasm/node_modules/js-yaml/lib/type/seq.js +8 -0
  490. package/dist/wasm/node_modules/js-yaml/lib/type/set.js +29 -0
  491. package/dist/wasm/node_modules/js-yaml/lib/type/str.js +8 -0
  492. package/dist/wasm/node_modules/js-yaml/lib/type/timestamp.js +88 -0
  493. package/dist/wasm/node_modules/js-yaml/lib/type.js +65 -0
  494. package/dist/wasm/node_modules/js-yaml/package.json +65 -0
  495. package/dist/wasm/node_modules/merge2/LICENSE +21 -0
  496. package/dist/wasm/node_modules/merge2/README.md +144 -0
  497. package/dist/wasm/node_modules/merge2/index.js +144 -0
  498. package/dist/wasm/node_modules/merge2/package.json +43 -0
  499. package/dist/wasm/node_modules/micromatch/LICENSE +21 -0
  500. package/dist/wasm/node_modules/micromatch/README.md +1024 -0
  501. package/dist/wasm/node_modules/micromatch/index.js +474 -0
  502. package/dist/wasm/node_modules/micromatch/package.json +119 -0
  503. package/dist/wasm/node_modules/path-key/index.d.ts +40 -0
  504. package/dist/wasm/node_modules/path-key/index.js +16 -0
  505. package/dist/wasm/node_modules/path-key/license +9 -0
  506. package/dist/wasm/node_modules/path-key/package.json +39 -0
  507. package/dist/wasm/node_modules/path-key/readme.md +61 -0
  508. package/dist/wasm/node_modules/picomatch/LICENSE +21 -0
  509. package/dist/wasm/node_modules/picomatch/README.md +716 -0
  510. package/dist/wasm/node_modules/picomatch/index.js +3 -0
  511. package/dist/wasm/node_modules/picomatch/lib/constants.js +184 -0
  512. package/dist/wasm/node_modules/picomatch/lib/parse.js +1392 -0
  513. package/dist/wasm/node_modules/picomatch/lib/picomatch.js +342 -0
  514. package/dist/wasm/node_modules/picomatch/lib/scan.js +391 -0
  515. package/dist/wasm/node_modules/picomatch/lib/utils.js +64 -0
  516. package/dist/wasm/node_modules/picomatch/package.json +81 -0
  517. package/dist/wasm/node_modules/queue-microtask/LICENSE +20 -0
  518. package/dist/wasm/node_modules/queue-microtask/README.md +90 -0
  519. package/dist/wasm/node_modules/queue-microtask/index.d.ts +2 -0
  520. package/dist/wasm/node_modules/queue-microtask/index.js +9 -0
  521. package/dist/wasm/node_modules/queue-microtask/package.json +55 -0
  522. package/dist/wasm/node_modules/reusify/.github/dependabot.yml +7 -0
  523. package/dist/wasm/node_modules/reusify/.github/workflows/ci.yml +96 -0
  524. package/dist/wasm/node_modules/reusify/LICENSE +22 -0
  525. package/dist/wasm/node_modules/reusify/README.md +139 -0
  526. package/dist/wasm/node_modules/reusify/SECURITY.md +15 -0
  527. package/dist/wasm/node_modules/reusify/benchmarks/createNoCodeFunction.js +30 -0
  528. package/dist/wasm/node_modules/reusify/benchmarks/fib.js +13 -0
  529. package/dist/wasm/node_modules/reusify/benchmarks/reuseNoCodeFunction.js +38 -0
  530. package/dist/wasm/node_modules/reusify/eslint.config.js +14 -0
  531. package/dist/wasm/node_modules/reusify/package.json +50 -0
  532. package/dist/wasm/node_modules/reusify/reusify.d.ts +14 -0
  533. package/dist/wasm/node_modules/reusify/reusify.js +33 -0
  534. package/dist/wasm/node_modules/reusify/test.js +66 -0
  535. package/dist/wasm/node_modules/reusify/tsconfig.json +11 -0
  536. package/dist/wasm/node_modules/run-parallel/LICENSE +20 -0
  537. package/dist/wasm/node_modules/run-parallel/README.md +85 -0
  538. package/dist/wasm/node_modules/run-parallel/index.js +51 -0
  539. package/dist/wasm/node_modules/run-parallel/package.json +58 -0
  540. package/dist/wasm/node_modules/shebang-command/index.js +19 -0
  541. package/dist/wasm/node_modules/shebang-command/license +9 -0
  542. package/dist/wasm/node_modules/shebang-command/package.json +34 -0
  543. package/dist/wasm/node_modules/shebang-command/readme.md +34 -0
  544. package/dist/wasm/node_modules/shebang-regex/index.d.ts +22 -0
  545. package/dist/wasm/node_modules/shebang-regex/index.js +2 -0
  546. package/dist/wasm/node_modules/shebang-regex/license +9 -0
  547. package/dist/wasm/node_modules/shebang-regex/package.json +35 -0
  548. package/dist/wasm/node_modules/shebang-regex/readme.md +33 -0
  549. package/dist/wasm/node_modules/supports-color/browser.js +5 -0
  550. package/dist/wasm/node_modules/supports-color/index.js +135 -0
  551. package/dist/wasm/node_modules/supports-color/license +9 -0
  552. package/dist/wasm/node_modules/supports-color/package.json +53 -0
  553. package/dist/wasm/node_modules/supports-color/readme.md +76 -0
  554. package/dist/wasm/node_modules/to-regex-range/LICENSE +21 -0
  555. package/dist/wasm/node_modules/to-regex-range/README.md +305 -0
  556. package/dist/wasm/node_modules/to-regex-range/index.js +288 -0
  557. package/dist/wasm/node_modules/to-regex-range/package.json +88 -0
  558. package/dist/wasm/node_modules/tslib/CopyrightNotice.txt +15 -0
  559. package/dist/wasm/node_modules/tslib/LICENSE.txt +12 -0
  560. package/dist/wasm/node_modules/tslib/README.md +164 -0
  561. package/dist/wasm/node_modules/tslib/SECURITY.md +41 -0
  562. package/dist/wasm/node_modules/tslib/modules/index.d.ts +38 -0
  563. package/dist/wasm/node_modules/tslib/modules/index.js +70 -0
  564. package/dist/wasm/node_modules/tslib/modules/package.json +3 -0
  565. package/dist/wasm/node_modules/tslib/package.json +47 -0
  566. package/dist/wasm/node_modules/tslib/tslib.d.ts +460 -0
  567. package/dist/wasm/node_modules/tslib/tslib.es6.html +1 -0
  568. package/dist/wasm/node_modules/tslib/tslib.es6.js +402 -0
  569. package/dist/wasm/node_modules/tslib/tslib.es6.mjs +401 -0
  570. package/dist/wasm/node_modules/tslib/tslib.html +1 -0
  571. package/dist/wasm/node_modules/tslib/tslib.js +484 -0
  572. package/dist/wasm/node_modules/typanion/README.md +117 -0
  573. package/dist/wasm/node_modules/typanion/lib/index.d.ts +5 -0
  574. package/dist/wasm/node_modules/typanion/lib/index.js +1305 -0
  575. package/dist/wasm/node_modules/typanion/lib/index.mjs +1249 -0
  576. package/dist/wasm/node_modules/typanion/lib/internal/format.d.ts +5 -0
  577. package/dist/wasm/node_modules/typanion/lib/internal/regexps.d.ts +5 -0
  578. package/dist/wasm/node_modules/typanion/lib/internal/tools.d.ts +5 -0
  579. package/dist/wasm/node_modules/typanion/lib/predicates/cascadingPredicates.d.ts +114 -0
  580. package/dist/wasm/node_modules/typanion/lib/predicates/helperPredicates.d.ts +80 -0
  581. package/dist/wasm/node_modules/typanion/lib/predicates/typePredicates.d.ts +205 -0
  582. package/dist/wasm/node_modules/typanion/lib/tools.d.ts +90 -0
  583. package/dist/wasm/node_modules/typanion/lib/types.d.ts +22 -0
  584. package/dist/wasm/node_modules/typanion/package.json +40 -0
  585. package/dist/wasm/node_modules/which/CHANGELOG.md +166 -0
  586. package/dist/wasm/node_modules/which/LICENSE +15 -0
  587. package/dist/wasm/node_modules/which/README.md +54 -0
  588. package/dist/wasm/node_modules/which/bin/node-which +52 -0
  589. package/dist/wasm/node_modules/which/package.json +43 -0
  590. package/dist/wasm/node_modules/which/which.js +125 -0
  591. package/dist/wasm/package.json +10 -0
  592. package/dist/wasm/pnpm.mjs +8 -0
  593. package/dist/wasm/pnpm.wasm +4 -0
  594. package/dist/wasm/pnpx.mjs +8 -0
  595. package/dist/wasm/run.mjs +147 -0
  596. package/dist/wasm/worker.mjs +56 -0
  597. package/install.js +18 -21
  598. package/package.json +15 -15
  599. package/pn +2 -74
  600. package/pnpm +2 -94
  601. package/pnpx +2 -74
  602. package/pnx +2 -74
@@ -0,0 +1,3653 @@
1
+ /*
2
+ * Generated by PEG.js 0.10.0.
3
+ *
4
+ * http://pegjs.org/
5
+ */
6
+
7
+ "use strict";
8
+
9
+ function peg$subclass(child, parent) {
10
+ function ctor() { this.constructor = child; }
11
+ ctor.prototype = parent.prototype;
12
+ child.prototype = new ctor();
13
+ }
14
+
15
+ function peg$SyntaxError(message, expected, found, location) {
16
+ this.message = message;
17
+ this.expected = expected;
18
+ this.found = found;
19
+ this.location = location;
20
+ this.name = "SyntaxError";
21
+
22
+ if (typeof Error.captureStackTrace === "function") {
23
+ Error.captureStackTrace(this, peg$SyntaxError);
24
+ }
25
+ }
26
+
27
+ peg$subclass(peg$SyntaxError, Error);
28
+
29
+ peg$SyntaxError.buildMessage = function(expected, found) {
30
+ var DESCRIBE_EXPECTATION_FNS = {
31
+ literal: function(expectation) {
32
+ return "\"" + literalEscape(expectation.text) + "\"";
33
+ },
34
+
35
+ "class": function(expectation) {
36
+ var escapedParts = "",
37
+ i;
38
+
39
+ for (i = 0; i < expectation.parts.length; i++) {
40
+ escapedParts += expectation.parts[i] instanceof Array
41
+ ? classEscape(expectation.parts[i][0]) + "-" + classEscape(expectation.parts[i][1])
42
+ : classEscape(expectation.parts[i]);
43
+ }
44
+
45
+ return "[" + (expectation.inverted ? "^" : "") + escapedParts + "]";
46
+ },
47
+
48
+ any: function(expectation) {
49
+ return "any character";
50
+ },
51
+
52
+ end: function(expectation) {
53
+ return "end of input";
54
+ },
55
+
56
+ other: function(expectation) {
57
+ return expectation.description;
58
+ }
59
+ };
60
+
61
+ function hex(ch) {
62
+ return ch.charCodeAt(0).toString(16).toUpperCase();
63
+ }
64
+
65
+ function literalEscape(s) {
66
+ return s
67
+ .replace(/\\/g, '\\\\')
68
+ .replace(/"/g, '\\"')
69
+ .replace(/\0/g, '\\0')
70
+ .replace(/\t/g, '\\t')
71
+ .replace(/\n/g, '\\n')
72
+ .replace(/\r/g, '\\r')
73
+ .replace(/[\x00-\x0F]/g, function(ch) { return '\\x0' + hex(ch); })
74
+ .replace(/[\x10-\x1F\x7F-\x9F]/g, function(ch) { return '\\x' + hex(ch); });
75
+ }
76
+
77
+ function classEscape(s) {
78
+ return s
79
+ .replace(/\\/g, '\\\\')
80
+ .replace(/\]/g, '\\]')
81
+ .replace(/\^/g, '\\^')
82
+ .replace(/-/g, '\\-')
83
+ .replace(/\0/g, '\\0')
84
+ .replace(/\t/g, '\\t')
85
+ .replace(/\n/g, '\\n')
86
+ .replace(/\r/g, '\\r')
87
+ .replace(/[\x00-\x0F]/g, function(ch) { return '\\x0' + hex(ch); })
88
+ .replace(/[\x10-\x1F\x7F-\x9F]/g, function(ch) { return '\\x' + hex(ch); });
89
+ }
90
+
91
+ function describeExpectation(expectation) {
92
+ return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);
93
+ }
94
+
95
+ function describeExpected(expected) {
96
+ var descriptions = new Array(expected.length),
97
+ i, j;
98
+
99
+ for (i = 0; i < expected.length; i++) {
100
+ descriptions[i] = describeExpectation(expected[i]);
101
+ }
102
+
103
+ descriptions.sort();
104
+
105
+ if (descriptions.length > 0) {
106
+ for (i = 1, j = 1; i < descriptions.length; i++) {
107
+ if (descriptions[i - 1] !== descriptions[i]) {
108
+ descriptions[j] = descriptions[i];
109
+ j++;
110
+ }
111
+ }
112
+ descriptions.length = j;
113
+ }
114
+
115
+ switch (descriptions.length) {
116
+ case 1:
117
+ return descriptions[0];
118
+
119
+ case 2:
120
+ return descriptions[0] + " or " + descriptions[1];
121
+
122
+ default:
123
+ return descriptions.slice(0, -1).join(", ")
124
+ + ", or "
125
+ + descriptions[descriptions.length - 1];
126
+ }
127
+ }
128
+
129
+ function describeFound(found) {
130
+ return found ? "\"" + literalEscape(found) + "\"" : "end of input";
131
+ }
132
+
133
+ return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found.";
134
+ };
135
+
136
+ function peg$parse(input, options) {
137
+ options = options !== void 0 ? options : {};
138
+
139
+ var peg$FAILED = {},
140
+
141
+ peg$startRuleFunctions = { Start: peg$parseStart },
142
+ peg$startRuleFunction = peg$parseStart,
143
+
144
+ peg$c0 = function(line) { return line ? line : [] },
145
+ peg$c1 = function(command, type, then) { return [ { command, type } ].concat(then || []) },
146
+ peg$c2 = function(command, type) { return [ { command, type: type || ';' } ] },
147
+ peg$c3 = function(then) { return then },
148
+ peg$c4 = ";",
149
+ peg$c5 = peg$literalExpectation(";", false),
150
+ peg$c6 = "&",
151
+ peg$c7 = peg$literalExpectation("&", false),
152
+ peg$c8 = function(chain, then) { return then ? { chain, then } : { chain } },
153
+ peg$c9 = function(type, then) { return { type, line: then } },
154
+ peg$c10 = "&&",
155
+ peg$c11 = peg$literalExpectation("&&", false),
156
+ peg$c12 = "||",
157
+ peg$c13 = peg$literalExpectation("||", false),
158
+ peg$c14 = function(main, then) { return then ? { ...main, then } : main },
159
+ peg$c15 = function(type, then) { return { type, chain: then } },
160
+ peg$c16 = "|&",
161
+ peg$c17 = peg$literalExpectation("|&", false),
162
+ peg$c18 = "|",
163
+ peg$c19 = peg$literalExpectation("|", false),
164
+ peg$c20 = "=",
165
+ peg$c21 = peg$literalExpectation("=", false),
166
+ peg$c22 = function(name, arg) { return { name, args: [arg] } },
167
+ peg$c23 = function(name) { return { name, args: [] } },
168
+ peg$c24 = "(",
169
+ peg$c25 = peg$literalExpectation("(", false),
170
+ peg$c26 = ")",
171
+ peg$c27 = peg$literalExpectation(")", false),
172
+ peg$c28 = function(subshell, args) { return { type: `subshell`, subshell, args } },
173
+ peg$c29 = "{",
174
+ peg$c30 = peg$literalExpectation("{", false),
175
+ peg$c31 = "}",
176
+ peg$c32 = peg$literalExpectation("}", false),
177
+ peg$c33 = function(group, args) { return { type: `group`, group, args } },
178
+ peg$c34 = function(envs, args) { return { type: `command`, args, envs } },
179
+ peg$c35 = function(envs) { return { type: `envs`, envs } },
180
+ peg$c36 = function(args) { return args },
181
+ peg$c37 = function(arg) { return arg },
182
+ peg$c38 = /^[0-9]/,
183
+ peg$c39 = peg$classExpectation([["0", "9"]], false, false),
184
+ peg$c40 = function(fd, redirect, arg) { return { type: `redirection`, subtype: redirect, fd: fd !== null ? parseInt(fd) : null, args: [arg] } },
185
+ peg$c41 = ">>",
186
+ peg$c42 = peg$literalExpectation(">>", false),
187
+ peg$c43 = ">&",
188
+ peg$c44 = peg$literalExpectation(">&", false),
189
+ peg$c45 = ">",
190
+ peg$c46 = peg$literalExpectation(">", false),
191
+ peg$c47 = "<<<",
192
+ peg$c48 = peg$literalExpectation("<<<", false),
193
+ peg$c49 = "<&",
194
+ peg$c50 = peg$literalExpectation("<&", false),
195
+ peg$c51 = "<",
196
+ peg$c52 = peg$literalExpectation("<", false),
197
+ peg$c53 = function(segments) { return { type: `argument`, segments: [].concat(... segments) } },
198
+ peg$c54 = function(string) { return string },
199
+ peg$c55 = "$'",
200
+ peg$c56 = peg$literalExpectation("$'", false),
201
+ peg$c57 = "'",
202
+ peg$c58 = peg$literalExpectation("'", false),
203
+ peg$c59 = function(text) { return [ { type: `text`, text } ] },
204
+ peg$c60 = "\"\"",
205
+ peg$c61 = peg$literalExpectation("\"\"", false),
206
+ peg$c62 = function() { return { type: `text`, text: `` } },
207
+ peg$c63 = "\"",
208
+ peg$c64 = peg$literalExpectation("\"", false),
209
+ peg$c65 = function(segments) { return segments },
210
+ peg$c66 = function(arithmetic) { return { type: `arithmetic`, arithmetic, quoted: true} },
211
+ peg$c67 = function(shell) { return { type: `shell`, shell, quoted: true } },
212
+ peg$c68 = function(variable) { return { type: `variable`, ...variable, quoted: true } },
213
+ peg$c69 = function(text) { return { type: `text`, text } },
214
+ peg$c70 = function(arithmetic) { return { type: `arithmetic`, arithmetic, quoted: false} },
215
+ peg$c71 = function(shell) { return { type: `shell`, shell, quoted: false } },
216
+ peg$c72 = function(variable) { return { type: `variable`, ...variable, quoted: false } },
217
+ peg$c73 = function(pattern) { return { type: `glob`, pattern } },
218
+ peg$c74 = /^[^']/,
219
+ peg$c75 = peg$classExpectation(["'"], true, false),
220
+ peg$c76 = function(chars) { return chars.join(``) },
221
+ peg$c77 = /^[^$"]/,
222
+ peg$c78 = peg$classExpectation(["$", "\""], true, false),
223
+ peg$c79 = "\\\n",
224
+ peg$c80 = peg$literalExpectation("\\\n", false),
225
+ peg$c81 = function() { return `` },
226
+ peg$c82 = "\\",
227
+ peg$c83 = peg$literalExpectation("\\", false),
228
+ peg$c84 = /^[\\$"`]/,
229
+ peg$c85 = peg$classExpectation(["\\", "$", "\"", "`"], false, false),
230
+ peg$c86 = function(c) { return c },
231
+ peg$c87 = "\\a",
232
+ peg$c88 = peg$literalExpectation("\\a", false),
233
+ peg$c89 = function() { return '\a' },
234
+ peg$c90 = "\\b",
235
+ peg$c91 = peg$literalExpectation("\\b", false),
236
+ peg$c92 = function() { return '\b' },
237
+ peg$c93 = /^[Ee]/,
238
+ peg$c94 = peg$classExpectation(["E", "e"], false, false),
239
+ peg$c95 = function() { return '\x1b' },
240
+ peg$c96 = "\\f",
241
+ peg$c97 = peg$literalExpectation("\\f", false),
242
+ peg$c98 = function() { return '\f' },
243
+ peg$c99 = "\\n",
244
+ peg$c100 = peg$literalExpectation("\\n", false),
245
+ peg$c101 = function() { return '\n' },
246
+ peg$c102 = "\\r",
247
+ peg$c103 = peg$literalExpectation("\\r", false),
248
+ peg$c104 = function() { return '\r' },
249
+ peg$c105 = "\\t",
250
+ peg$c106 = peg$literalExpectation("\\t", false),
251
+ peg$c107 = function() { return '\t' },
252
+ peg$c108 = "\\v",
253
+ peg$c109 = peg$literalExpectation("\\v", false),
254
+ peg$c110 = function() { return '\v' },
255
+ peg$c111 = /^[\\'"?]/,
256
+ peg$c112 = peg$classExpectation(["\\", "'", "\"", "?"], false, false),
257
+ peg$c113 = function(c) { return String.fromCharCode(parseInt(c, 16)) },
258
+ peg$c114 = "\\x",
259
+ peg$c115 = peg$literalExpectation("\\x", false),
260
+ peg$c116 = "\\u",
261
+ peg$c117 = peg$literalExpectation("\\u", false),
262
+ peg$c118 = "\\U",
263
+ peg$c119 = peg$literalExpectation("\\U", false),
264
+ peg$c120 = function(c) { return String.fromCodePoint(parseInt(c, 16)) },
265
+ peg$c121 = /^[0-7]/,
266
+ peg$c122 = peg$classExpectation([["0", "7"]], false, false),
267
+ peg$c123 = /^[0-9a-fA-f]/,
268
+ peg$c124 = peg$classExpectation([["0", "9"], ["a", "f"], ["A", "f"]], false, false),
269
+ peg$c125 = peg$anyExpectation(),
270
+ peg$c126 = "{}",
271
+ peg$c127 = peg$literalExpectation("{}", false),
272
+ peg$c128 = function() { return '{}' },
273
+ peg$c129 = "-",
274
+ peg$c130 = peg$literalExpectation("-", false),
275
+ peg$c131 = "+",
276
+ peg$c132 = peg$literalExpectation("+", false),
277
+ peg$c133 = ".",
278
+ peg$c134 = peg$literalExpectation(".", false),
279
+ peg$c135 = function(sign, left, right) { return { type: `number`, value: (sign === '-' ? -1 : 1) * parseFloat(left.join(``) + `.` + right.join(``)) } },
280
+ peg$c136 = function(sign, value) { return { type: `number`, value: (sign === '-' ? -1 : 1) * parseInt(value.join(``)) } },
281
+ peg$c137 = function(variable) { return { type: `variable`, ...variable } },
282
+ peg$c138 = function(name) { return { type: `variable`, name } },
283
+ peg$c139 = function(value) { return value },
284
+ peg$c140 = "*",
285
+ peg$c141 = peg$literalExpectation("*", false),
286
+ peg$c142 = "/",
287
+ peg$c143 = peg$literalExpectation("/", false),
288
+ peg$c144 = function(left, op, right) { return { type: op === `*` ? `multiplication` : `division`, right } },
289
+ peg$c145 = function(left, rest) {
290
+ return rest.reduce((left, right) => ({ left, ...right }), left)
291
+ },
292
+ peg$c146 = function(left, op, right) { return { type: op === `+` ? `addition` : `subtraction`, right } },
293
+ peg$c147 = "$((",
294
+ peg$c148 = peg$literalExpectation("$((", false),
295
+ peg$c149 = "))",
296
+ peg$c150 = peg$literalExpectation("))", false),
297
+ peg$c151 = function(arithmetic) { return arithmetic },
298
+ peg$c152 = "$(",
299
+ peg$c153 = peg$literalExpectation("$(", false),
300
+ peg$c154 = function(command) { return command },
301
+ peg$c155 = "${",
302
+ peg$c156 = peg$literalExpectation("${", false),
303
+ peg$c157 = ":-",
304
+ peg$c158 = peg$literalExpectation(":-", false),
305
+ peg$c159 = function(name, arg) { return { name, defaultValue: arg } },
306
+ peg$c160 = ":-}",
307
+ peg$c161 = peg$literalExpectation(":-}", false),
308
+ peg$c162 = function(name) { return { name, defaultValue: [] } },
309
+ peg$c163 = ":+",
310
+ peg$c164 = peg$literalExpectation(":+", false),
311
+ peg$c165 = function(name, arg) { return { name, alternativeValue: arg } },
312
+ peg$c166 = ":+}",
313
+ peg$c167 = peg$literalExpectation(":+}", false),
314
+ peg$c168 = function(name) { return { name, alternativeValue: [] } },
315
+ peg$c169 = function(name) { return { name } },
316
+ peg$c170 = "$",
317
+ peg$c171 = peg$literalExpectation("$", false),
318
+ peg$c172 = function(pattern) { return options.isGlobPattern(pattern) },
319
+ peg$c173 = function(pattern) { return pattern },
320
+ peg$c174 = /^[a-zA-Z0-9_]/,
321
+ peg$c175 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_"], false, false),
322
+ peg$c176 = function() { return text() },
323
+ peg$c177 = /^[$@*?#a-zA-Z0-9_\-]/,
324
+ peg$c178 = peg$classExpectation(["$", "@", "*", "?", "#", ["a", "z"], ["A", "Z"], ["0", "9"], "_", "-"], false, false),
325
+ peg$c179 = /^[()}<>$|&; \t"']/,
326
+ peg$c180 = peg$classExpectation(["(", ")", "}", "<", ">", "$", "|", "&", ";", " ", "\t", "\"", "'"], false, false),
327
+ peg$c181 = /^[<>&; \t"']/,
328
+ peg$c182 = peg$classExpectation(["<", ">", "&", ";", " ", "\t", "\"", "'"], false, false),
329
+ peg$c183 = /^[ \t]/,
330
+ peg$c184 = peg$classExpectation([" ", "\t"], false, false),
331
+
332
+ peg$currPos = 0,
333
+ peg$savedPos = 0,
334
+ peg$posDetailsCache = [{ line: 1, column: 1 }],
335
+ peg$maxFailPos = 0,
336
+ peg$maxFailExpected = [],
337
+ peg$silentFails = 0,
338
+
339
+ peg$result;
340
+
341
+ if ("startRule" in options) {
342
+ if (!(options.startRule in peg$startRuleFunctions)) {
343
+ throw new Error("Can't start parsing from rule \"" + options.startRule + "\".");
344
+ }
345
+
346
+ peg$startRuleFunction = peg$startRuleFunctions[options.startRule];
347
+ }
348
+
349
+ function text() {
350
+ return input.substring(peg$savedPos, peg$currPos);
351
+ }
352
+
353
+ function location() {
354
+ return peg$computeLocation(peg$savedPos, peg$currPos);
355
+ }
356
+
357
+ function expected(description, location) {
358
+ location = location !== void 0 ? location : peg$computeLocation(peg$savedPos, peg$currPos)
359
+
360
+ throw peg$buildStructuredError(
361
+ [peg$otherExpectation(description)],
362
+ input.substring(peg$savedPos, peg$currPos),
363
+ location
364
+ );
365
+ }
366
+
367
+ function error(message, location) {
368
+ location = location !== void 0 ? location : peg$computeLocation(peg$savedPos, peg$currPos)
369
+
370
+ throw peg$buildSimpleError(message, location);
371
+ }
372
+
373
+ function peg$literalExpectation(text, ignoreCase) {
374
+ return { type: "literal", text: text, ignoreCase: ignoreCase };
375
+ }
376
+
377
+ function peg$classExpectation(parts, inverted, ignoreCase) {
378
+ return { type: "class", parts: parts, inverted: inverted, ignoreCase: ignoreCase };
379
+ }
380
+
381
+ function peg$anyExpectation() {
382
+ return { type: "any" };
383
+ }
384
+
385
+ function peg$endExpectation() {
386
+ return { type: "end" };
387
+ }
388
+
389
+ function peg$otherExpectation(description) {
390
+ return { type: "other", description: description };
391
+ }
392
+
393
+ function peg$computePosDetails(pos) {
394
+ var details = peg$posDetailsCache[pos], p;
395
+
396
+ if (details) {
397
+ return details;
398
+ } else {
399
+ p = pos - 1;
400
+ while (!peg$posDetailsCache[p]) {
401
+ p--;
402
+ }
403
+
404
+ details = peg$posDetailsCache[p];
405
+ details = {
406
+ line: details.line,
407
+ column: details.column
408
+ };
409
+
410
+ while (p < pos) {
411
+ if (input.charCodeAt(p) === 10) {
412
+ details.line++;
413
+ details.column = 1;
414
+ } else {
415
+ details.column++;
416
+ }
417
+
418
+ p++;
419
+ }
420
+
421
+ peg$posDetailsCache[pos] = details;
422
+ return details;
423
+ }
424
+ }
425
+
426
+ function peg$computeLocation(startPos, endPos) {
427
+ var startPosDetails = peg$computePosDetails(startPos),
428
+ endPosDetails = peg$computePosDetails(endPos);
429
+
430
+ return {
431
+ start: {
432
+ offset: startPos,
433
+ line: startPosDetails.line,
434
+ column: startPosDetails.column
435
+ },
436
+ end: {
437
+ offset: endPos,
438
+ line: endPosDetails.line,
439
+ column: endPosDetails.column
440
+ }
441
+ };
442
+ }
443
+
444
+ function peg$fail(expected) {
445
+ if (peg$currPos < peg$maxFailPos) { return; }
446
+
447
+ if (peg$currPos > peg$maxFailPos) {
448
+ peg$maxFailPos = peg$currPos;
449
+ peg$maxFailExpected = [];
450
+ }
451
+
452
+ peg$maxFailExpected.push(expected);
453
+ }
454
+
455
+ function peg$buildSimpleError(message, location) {
456
+ return new peg$SyntaxError(message, null, null, location);
457
+ }
458
+
459
+ function peg$buildStructuredError(expected, found, location) {
460
+ return new peg$SyntaxError(
461
+ peg$SyntaxError.buildMessage(expected, found),
462
+ expected,
463
+ found,
464
+ location
465
+ );
466
+ }
467
+
468
+ function peg$parseStart() {
469
+ var s0, s1, s2;
470
+
471
+ s0 = peg$currPos;
472
+ s1 = [];
473
+ s2 = peg$parseS();
474
+ while (s2 !== peg$FAILED) {
475
+ s1.push(s2);
476
+ s2 = peg$parseS();
477
+ }
478
+ if (s1 !== peg$FAILED) {
479
+ s2 = peg$parseShellLine();
480
+ if (s2 === peg$FAILED) {
481
+ s2 = null;
482
+ }
483
+ if (s2 !== peg$FAILED) {
484
+ peg$savedPos = s0;
485
+ s1 = peg$c0(s2);
486
+ s0 = s1;
487
+ } else {
488
+ peg$currPos = s0;
489
+ s0 = peg$FAILED;
490
+ }
491
+ } else {
492
+ peg$currPos = s0;
493
+ s0 = peg$FAILED;
494
+ }
495
+
496
+ return s0;
497
+ }
498
+
499
+ function peg$parseShellLine() {
500
+ var s0, s1, s2, s3, s4;
501
+
502
+ s0 = peg$currPos;
503
+ s1 = peg$parseCommandLine();
504
+ if (s1 !== peg$FAILED) {
505
+ s2 = [];
506
+ s3 = peg$parseS();
507
+ while (s3 !== peg$FAILED) {
508
+ s2.push(s3);
509
+ s3 = peg$parseS();
510
+ }
511
+ if (s2 !== peg$FAILED) {
512
+ s3 = peg$parseShellLineType();
513
+ if (s3 !== peg$FAILED) {
514
+ s4 = peg$parseShellLineThen();
515
+ if (s4 === peg$FAILED) {
516
+ s4 = null;
517
+ }
518
+ if (s4 !== peg$FAILED) {
519
+ peg$savedPos = s0;
520
+ s1 = peg$c1(s1, s3, s4);
521
+ s0 = s1;
522
+ } else {
523
+ peg$currPos = s0;
524
+ s0 = peg$FAILED;
525
+ }
526
+ } else {
527
+ peg$currPos = s0;
528
+ s0 = peg$FAILED;
529
+ }
530
+ } else {
531
+ peg$currPos = s0;
532
+ s0 = peg$FAILED;
533
+ }
534
+ } else {
535
+ peg$currPos = s0;
536
+ s0 = peg$FAILED;
537
+ }
538
+ if (s0 === peg$FAILED) {
539
+ s0 = peg$currPos;
540
+ s1 = peg$parseCommandLine();
541
+ if (s1 !== peg$FAILED) {
542
+ s2 = [];
543
+ s3 = peg$parseS();
544
+ while (s3 !== peg$FAILED) {
545
+ s2.push(s3);
546
+ s3 = peg$parseS();
547
+ }
548
+ if (s2 !== peg$FAILED) {
549
+ s3 = peg$parseShellLineType();
550
+ if (s3 === peg$FAILED) {
551
+ s3 = null;
552
+ }
553
+ if (s3 !== peg$FAILED) {
554
+ peg$savedPos = s0;
555
+ s1 = peg$c2(s1, s3);
556
+ s0 = s1;
557
+ } else {
558
+ peg$currPos = s0;
559
+ s0 = peg$FAILED;
560
+ }
561
+ } else {
562
+ peg$currPos = s0;
563
+ s0 = peg$FAILED;
564
+ }
565
+ } else {
566
+ peg$currPos = s0;
567
+ s0 = peg$FAILED;
568
+ }
569
+ }
570
+
571
+ return s0;
572
+ }
573
+
574
+ function peg$parseShellLineThen() {
575
+ var s0, s1, s2, s3, s4;
576
+
577
+ s0 = peg$currPos;
578
+ s1 = [];
579
+ s2 = peg$parseS();
580
+ while (s2 !== peg$FAILED) {
581
+ s1.push(s2);
582
+ s2 = peg$parseS();
583
+ }
584
+ if (s1 !== peg$FAILED) {
585
+ s2 = peg$parseShellLine();
586
+ if (s2 !== peg$FAILED) {
587
+ s3 = [];
588
+ s4 = peg$parseS();
589
+ while (s4 !== peg$FAILED) {
590
+ s3.push(s4);
591
+ s4 = peg$parseS();
592
+ }
593
+ if (s3 !== peg$FAILED) {
594
+ peg$savedPos = s0;
595
+ s1 = peg$c3(s2);
596
+ s0 = s1;
597
+ } else {
598
+ peg$currPos = s0;
599
+ s0 = peg$FAILED;
600
+ }
601
+ } else {
602
+ peg$currPos = s0;
603
+ s0 = peg$FAILED;
604
+ }
605
+ } else {
606
+ peg$currPos = s0;
607
+ s0 = peg$FAILED;
608
+ }
609
+
610
+ return s0;
611
+ }
612
+
613
+ function peg$parseShellLineType() {
614
+ var s0;
615
+
616
+ if (input.charCodeAt(peg$currPos) === 59) {
617
+ s0 = peg$c4;
618
+ peg$currPos++;
619
+ } else {
620
+ s0 = peg$FAILED;
621
+ if (peg$silentFails === 0) { peg$fail(peg$c5); }
622
+ }
623
+ if (s0 === peg$FAILED) {
624
+ if (input.charCodeAt(peg$currPos) === 38) {
625
+ s0 = peg$c6;
626
+ peg$currPos++;
627
+ } else {
628
+ s0 = peg$FAILED;
629
+ if (peg$silentFails === 0) { peg$fail(peg$c7); }
630
+ }
631
+ }
632
+
633
+ return s0;
634
+ }
635
+
636
+ function peg$parseCommandLine() {
637
+ var s0, s1, s2;
638
+
639
+ s0 = peg$currPos;
640
+ s1 = peg$parseCommandChain();
641
+ if (s1 !== peg$FAILED) {
642
+ s2 = peg$parseCommandLineThen();
643
+ if (s2 === peg$FAILED) {
644
+ s2 = null;
645
+ }
646
+ if (s2 !== peg$FAILED) {
647
+ peg$savedPos = s0;
648
+ s1 = peg$c8(s1, s2);
649
+ s0 = s1;
650
+ } else {
651
+ peg$currPos = s0;
652
+ s0 = peg$FAILED;
653
+ }
654
+ } else {
655
+ peg$currPos = s0;
656
+ s0 = peg$FAILED;
657
+ }
658
+
659
+ return s0;
660
+ }
661
+
662
+ function peg$parseCommandLineThen() {
663
+ var s0, s1, s2, s3, s4, s5, s6;
664
+
665
+ s0 = peg$currPos;
666
+ s1 = [];
667
+ s2 = peg$parseS();
668
+ while (s2 !== peg$FAILED) {
669
+ s1.push(s2);
670
+ s2 = peg$parseS();
671
+ }
672
+ if (s1 !== peg$FAILED) {
673
+ s2 = peg$parseCommandLineType();
674
+ if (s2 !== peg$FAILED) {
675
+ s3 = [];
676
+ s4 = peg$parseS();
677
+ while (s4 !== peg$FAILED) {
678
+ s3.push(s4);
679
+ s4 = peg$parseS();
680
+ }
681
+ if (s3 !== peg$FAILED) {
682
+ s4 = peg$parseCommandLine();
683
+ if (s4 !== peg$FAILED) {
684
+ s5 = [];
685
+ s6 = peg$parseS();
686
+ while (s6 !== peg$FAILED) {
687
+ s5.push(s6);
688
+ s6 = peg$parseS();
689
+ }
690
+ if (s5 !== peg$FAILED) {
691
+ peg$savedPos = s0;
692
+ s1 = peg$c9(s2, s4);
693
+ s0 = s1;
694
+ } else {
695
+ peg$currPos = s0;
696
+ s0 = peg$FAILED;
697
+ }
698
+ } else {
699
+ peg$currPos = s0;
700
+ s0 = peg$FAILED;
701
+ }
702
+ } else {
703
+ peg$currPos = s0;
704
+ s0 = peg$FAILED;
705
+ }
706
+ } else {
707
+ peg$currPos = s0;
708
+ s0 = peg$FAILED;
709
+ }
710
+ } else {
711
+ peg$currPos = s0;
712
+ s0 = peg$FAILED;
713
+ }
714
+
715
+ return s0;
716
+ }
717
+
718
+ function peg$parseCommandLineType() {
719
+ var s0;
720
+
721
+ if (input.substr(peg$currPos, 2) === peg$c10) {
722
+ s0 = peg$c10;
723
+ peg$currPos += 2;
724
+ } else {
725
+ s0 = peg$FAILED;
726
+ if (peg$silentFails === 0) { peg$fail(peg$c11); }
727
+ }
728
+ if (s0 === peg$FAILED) {
729
+ if (input.substr(peg$currPos, 2) === peg$c12) {
730
+ s0 = peg$c12;
731
+ peg$currPos += 2;
732
+ } else {
733
+ s0 = peg$FAILED;
734
+ if (peg$silentFails === 0) { peg$fail(peg$c13); }
735
+ }
736
+ }
737
+
738
+ return s0;
739
+ }
740
+
741
+ function peg$parseCommandChain() {
742
+ var s0, s1, s2;
743
+
744
+ s0 = peg$currPos;
745
+ s1 = peg$parseCommand();
746
+ if (s1 !== peg$FAILED) {
747
+ s2 = peg$parseCommandChainThen();
748
+ if (s2 === peg$FAILED) {
749
+ s2 = null;
750
+ }
751
+ if (s2 !== peg$FAILED) {
752
+ peg$savedPos = s0;
753
+ s1 = peg$c14(s1, s2);
754
+ s0 = s1;
755
+ } else {
756
+ peg$currPos = s0;
757
+ s0 = peg$FAILED;
758
+ }
759
+ } else {
760
+ peg$currPos = s0;
761
+ s0 = peg$FAILED;
762
+ }
763
+
764
+ return s0;
765
+ }
766
+
767
+ function peg$parseCommandChainThen() {
768
+ var s0, s1, s2, s3, s4, s5, s6;
769
+
770
+ s0 = peg$currPos;
771
+ s1 = [];
772
+ s2 = peg$parseS();
773
+ while (s2 !== peg$FAILED) {
774
+ s1.push(s2);
775
+ s2 = peg$parseS();
776
+ }
777
+ if (s1 !== peg$FAILED) {
778
+ s2 = peg$parseCommandChainType();
779
+ if (s2 !== peg$FAILED) {
780
+ s3 = [];
781
+ s4 = peg$parseS();
782
+ while (s4 !== peg$FAILED) {
783
+ s3.push(s4);
784
+ s4 = peg$parseS();
785
+ }
786
+ if (s3 !== peg$FAILED) {
787
+ s4 = peg$parseCommandChain();
788
+ if (s4 !== peg$FAILED) {
789
+ s5 = [];
790
+ s6 = peg$parseS();
791
+ while (s6 !== peg$FAILED) {
792
+ s5.push(s6);
793
+ s6 = peg$parseS();
794
+ }
795
+ if (s5 !== peg$FAILED) {
796
+ peg$savedPos = s0;
797
+ s1 = peg$c15(s2, s4);
798
+ s0 = s1;
799
+ } else {
800
+ peg$currPos = s0;
801
+ s0 = peg$FAILED;
802
+ }
803
+ } else {
804
+ peg$currPos = s0;
805
+ s0 = peg$FAILED;
806
+ }
807
+ } else {
808
+ peg$currPos = s0;
809
+ s0 = peg$FAILED;
810
+ }
811
+ } else {
812
+ peg$currPos = s0;
813
+ s0 = peg$FAILED;
814
+ }
815
+ } else {
816
+ peg$currPos = s0;
817
+ s0 = peg$FAILED;
818
+ }
819
+
820
+ return s0;
821
+ }
822
+
823
+ function peg$parseCommandChainType() {
824
+ var s0;
825
+
826
+ if (input.substr(peg$currPos, 2) === peg$c16) {
827
+ s0 = peg$c16;
828
+ peg$currPos += 2;
829
+ } else {
830
+ s0 = peg$FAILED;
831
+ if (peg$silentFails === 0) { peg$fail(peg$c17); }
832
+ }
833
+ if (s0 === peg$FAILED) {
834
+ if (input.charCodeAt(peg$currPos) === 124) {
835
+ s0 = peg$c18;
836
+ peg$currPos++;
837
+ } else {
838
+ s0 = peg$FAILED;
839
+ if (peg$silentFails === 0) { peg$fail(peg$c19); }
840
+ }
841
+ }
842
+
843
+ return s0;
844
+ }
845
+
846
+ function peg$parseVariableAssignment() {
847
+ var s0, s1, s2, s3, s4, s5;
848
+
849
+ s0 = peg$currPos;
850
+ s1 = peg$parseEnvVariable();
851
+ if (s1 !== peg$FAILED) {
852
+ if (input.charCodeAt(peg$currPos) === 61) {
853
+ s2 = peg$c20;
854
+ peg$currPos++;
855
+ } else {
856
+ s2 = peg$FAILED;
857
+ if (peg$silentFails === 0) { peg$fail(peg$c21); }
858
+ }
859
+ if (s2 !== peg$FAILED) {
860
+ s3 = peg$parseStrictValueArgument();
861
+ if (s3 !== peg$FAILED) {
862
+ s4 = [];
863
+ s5 = peg$parseS();
864
+ while (s5 !== peg$FAILED) {
865
+ s4.push(s5);
866
+ s5 = peg$parseS();
867
+ }
868
+ if (s4 !== peg$FAILED) {
869
+ peg$savedPos = s0;
870
+ s1 = peg$c22(s1, s3);
871
+ s0 = s1;
872
+ } else {
873
+ peg$currPos = s0;
874
+ s0 = peg$FAILED;
875
+ }
876
+ } else {
877
+ peg$currPos = s0;
878
+ s0 = peg$FAILED;
879
+ }
880
+ } else {
881
+ peg$currPos = s0;
882
+ s0 = peg$FAILED;
883
+ }
884
+ } else {
885
+ peg$currPos = s0;
886
+ s0 = peg$FAILED;
887
+ }
888
+ if (s0 === peg$FAILED) {
889
+ s0 = peg$currPos;
890
+ s1 = peg$parseEnvVariable();
891
+ if (s1 !== peg$FAILED) {
892
+ if (input.charCodeAt(peg$currPos) === 61) {
893
+ s2 = peg$c20;
894
+ peg$currPos++;
895
+ } else {
896
+ s2 = peg$FAILED;
897
+ if (peg$silentFails === 0) { peg$fail(peg$c21); }
898
+ }
899
+ if (s2 !== peg$FAILED) {
900
+ s3 = [];
901
+ s4 = peg$parseS();
902
+ while (s4 !== peg$FAILED) {
903
+ s3.push(s4);
904
+ s4 = peg$parseS();
905
+ }
906
+ if (s3 !== peg$FAILED) {
907
+ peg$savedPos = s0;
908
+ s1 = peg$c23(s1);
909
+ s0 = s1;
910
+ } else {
911
+ peg$currPos = s0;
912
+ s0 = peg$FAILED;
913
+ }
914
+ } else {
915
+ peg$currPos = s0;
916
+ s0 = peg$FAILED;
917
+ }
918
+ } else {
919
+ peg$currPos = s0;
920
+ s0 = peg$FAILED;
921
+ }
922
+ }
923
+
924
+ return s0;
925
+ }
926
+
927
+ function peg$parseCommand() {
928
+ var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10;
929
+
930
+ s0 = peg$currPos;
931
+ s1 = [];
932
+ s2 = peg$parseS();
933
+ while (s2 !== peg$FAILED) {
934
+ s1.push(s2);
935
+ s2 = peg$parseS();
936
+ }
937
+ if (s1 !== peg$FAILED) {
938
+ if (input.charCodeAt(peg$currPos) === 40) {
939
+ s2 = peg$c24;
940
+ peg$currPos++;
941
+ } else {
942
+ s2 = peg$FAILED;
943
+ if (peg$silentFails === 0) { peg$fail(peg$c25); }
944
+ }
945
+ if (s2 !== peg$FAILED) {
946
+ s3 = [];
947
+ s4 = peg$parseS();
948
+ while (s4 !== peg$FAILED) {
949
+ s3.push(s4);
950
+ s4 = peg$parseS();
951
+ }
952
+ if (s3 !== peg$FAILED) {
953
+ s4 = peg$parseShellLine();
954
+ if (s4 !== peg$FAILED) {
955
+ s5 = [];
956
+ s6 = peg$parseS();
957
+ while (s6 !== peg$FAILED) {
958
+ s5.push(s6);
959
+ s6 = peg$parseS();
960
+ }
961
+ if (s5 !== peg$FAILED) {
962
+ if (input.charCodeAt(peg$currPos) === 41) {
963
+ s6 = peg$c26;
964
+ peg$currPos++;
965
+ } else {
966
+ s6 = peg$FAILED;
967
+ if (peg$silentFails === 0) { peg$fail(peg$c27); }
968
+ }
969
+ if (s6 !== peg$FAILED) {
970
+ s7 = [];
971
+ s8 = peg$parseS();
972
+ while (s8 !== peg$FAILED) {
973
+ s7.push(s8);
974
+ s8 = peg$parseS();
975
+ }
976
+ if (s7 !== peg$FAILED) {
977
+ s8 = [];
978
+ s9 = peg$parseRedirectArgument();
979
+ while (s9 !== peg$FAILED) {
980
+ s8.push(s9);
981
+ s9 = peg$parseRedirectArgument();
982
+ }
983
+ if (s8 !== peg$FAILED) {
984
+ s9 = [];
985
+ s10 = peg$parseS();
986
+ while (s10 !== peg$FAILED) {
987
+ s9.push(s10);
988
+ s10 = peg$parseS();
989
+ }
990
+ if (s9 !== peg$FAILED) {
991
+ peg$savedPos = s0;
992
+ s1 = peg$c28(s4, s8);
993
+ s0 = s1;
994
+ } else {
995
+ peg$currPos = s0;
996
+ s0 = peg$FAILED;
997
+ }
998
+ } else {
999
+ peg$currPos = s0;
1000
+ s0 = peg$FAILED;
1001
+ }
1002
+ } else {
1003
+ peg$currPos = s0;
1004
+ s0 = peg$FAILED;
1005
+ }
1006
+ } else {
1007
+ peg$currPos = s0;
1008
+ s0 = peg$FAILED;
1009
+ }
1010
+ } else {
1011
+ peg$currPos = s0;
1012
+ s0 = peg$FAILED;
1013
+ }
1014
+ } else {
1015
+ peg$currPos = s0;
1016
+ s0 = peg$FAILED;
1017
+ }
1018
+ } else {
1019
+ peg$currPos = s0;
1020
+ s0 = peg$FAILED;
1021
+ }
1022
+ } else {
1023
+ peg$currPos = s0;
1024
+ s0 = peg$FAILED;
1025
+ }
1026
+ } else {
1027
+ peg$currPos = s0;
1028
+ s0 = peg$FAILED;
1029
+ }
1030
+ if (s0 === peg$FAILED) {
1031
+ s0 = peg$currPos;
1032
+ s1 = [];
1033
+ s2 = peg$parseS();
1034
+ while (s2 !== peg$FAILED) {
1035
+ s1.push(s2);
1036
+ s2 = peg$parseS();
1037
+ }
1038
+ if (s1 !== peg$FAILED) {
1039
+ if (input.charCodeAt(peg$currPos) === 123) {
1040
+ s2 = peg$c29;
1041
+ peg$currPos++;
1042
+ } else {
1043
+ s2 = peg$FAILED;
1044
+ if (peg$silentFails === 0) { peg$fail(peg$c30); }
1045
+ }
1046
+ if (s2 !== peg$FAILED) {
1047
+ s3 = [];
1048
+ s4 = peg$parseS();
1049
+ while (s4 !== peg$FAILED) {
1050
+ s3.push(s4);
1051
+ s4 = peg$parseS();
1052
+ }
1053
+ if (s3 !== peg$FAILED) {
1054
+ s4 = peg$parseShellLine();
1055
+ if (s4 !== peg$FAILED) {
1056
+ s5 = [];
1057
+ s6 = peg$parseS();
1058
+ while (s6 !== peg$FAILED) {
1059
+ s5.push(s6);
1060
+ s6 = peg$parseS();
1061
+ }
1062
+ if (s5 !== peg$FAILED) {
1063
+ if (input.charCodeAt(peg$currPos) === 125) {
1064
+ s6 = peg$c31;
1065
+ peg$currPos++;
1066
+ } else {
1067
+ s6 = peg$FAILED;
1068
+ if (peg$silentFails === 0) { peg$fail(peg$c32); }
1069
+ }
1070
+ if (s6 !== peg$FAILED) {
1071
+ s7 = [];
1072
+ s8 = peg$parseS();
1073
+ while (s8 !== peg$FAILED) {
1074
+ s7.push(s8);
1075
+ s8 = peg$parseS();
1076
+ }
1077
+ if (s7 !== peg$FAILED) {
1078
+ s8 = [];
1079
+ s9 = peg$parseRedirectArgument();
1080
+ while (s9 !== peg$FAILED) {
1081
+ s8.push(s9);
1082
+ s9 = peg$parseRedirectArgument();
1083
+ }
1084
+ if (s8 !== peg$FAILED) {
1085
+ s9 = [];
1086
+ s10 = peg$parseS();
1087
+ while (s10 !== peg$FAILED) {
1088
+ s9.push(s10);
1089
+ s10 = peg$parseS();
1090
+ }
1091
+ if (s9 !== peg$FAILED) {
1092
+ peg$savedPos = s0;
1093
+ s1 = peg$c33(s4, s8);
1094
+ s0 = s1;
1095
+ } else {
1096
+ peg$currPos = s0;
1097
+ s0 = peg$FAILED;
1098
+ }
1099
+ } else {
1100
+ peg$currPos = s0;
1101
+ s0 = peg$FAILED;
1102
+ }
1103
+ } else {
1104
+ peg$currPos = s0;
1105
+ s0 = peg$FAILED;
1106
+ }
1107
+ } else {
1108
+ peg$currPos = s0;
1109
+ s0 = peg$FAILED;
1110
+ }
1111
+ } else {
1112
+ peg$currPos = s0;
1113
+ s0 = peg$FAILED;
1114
+ }
1115
+ } else {
1116
+ peg$currPos = s0;
1117
+ s0 = peg$FAILED;
1118
+ }
1119
+ } else {
1120
+ peg$currPos = s0;
1121
+ s0 = peg$FAILED;
1122
+ }
1123
+ } else {
1124
+ peg$currPos = s0;
1125
+ s0 = peg$FAILED;
1126
+ }
1127
+ } else {
1128
+ peg$currPos = s0;
1129
+ s0 = peg$FAILED;
1130
+ }
1131
+ if (s0 === peg$FAILED) {
1132
+ s0 = peg$currPos;
1133
+ s1 = [];
1134
+ s2 = peg$parseS();
1135
+ while (s2 !== peg$FAILED) {
1136
+ s1.push(s2);
1137
+ s2 = peg$parseS();
1138
+ }
1139
+ if (s1 !== peg$FAILED) {
1140
+ s2 = [];
1141
+ s3 = peg$parseVariableAssignment();
1142
+ while (s3 !== peg$FAILED) {
1143
+ s2.push(s3);
1144
+ s3 = peg$parseVariableAssignment();
1145
+ }
1146
+ if (s2 !== peg$FAILED) {
1147
+ s3 = [];
1148
+ s4 = peg$parseS();
1149
+ while (s4 !== peg$FAILED) {
1150
+ s3.push(s4);
1151
+ s4 = peg$parseS();
1152
+ }
1153
+ if (s3 !== peg$FAILED) {
1154
+ s4 = [];
1155
+ s5 = peg$parseArgument();
1156
+ if (s5 !== peg$FAILED) {
1157
+ while (s5 !== peg$FAILED) {
1158
+ s4.push(s5);
1159
+ s5 = peg$parseArgument();
1160
+ }
1161
+ } else {
1162
+ s4 = peg$FAILED;
1163
+ }
1164
+ if (s4 !== peg$FAILED) {
1165
+ s5 = [];
1166
+ s6 = peg$parseS();
1167
+ while (s6 !== peg$FAILED) {
1168
+ s5.push(s6);
1169
+ s6 = peg$parseS();
1170
+ }
1171
+ if (s5 !== peg$FAILED) {
1172
+ peg$savedPos = s0;
1173
+ s1 = peg$c34(s2, s4);
1174
+ s0 = s1;
1175
+ } else {
1176
+ peg$currPos = s0;
1177
+ s0 = peg$FAILED;
1178
+ }
1179
+ } else {
1180
+ peg$currPos = s0;
1181
+ s0 = peg$FAILED;
1182
+ }
1183
+ } else {
1184
+ peg$currPos = s0;
1185
+ s0 = peg$FAILED;
1186
+ }
1187
+ } else {
1188
+ peg$currPos = s0;
1189
+ s0 = peg$FAILED;
1190
+ }
1191
+ } else {
1192
+ peg$currPos = s0;
1193
+ s0 = peg$FAILED;
1194
+ }
1195
+ if (s0 === peg$FAILED) {
1196
+ s0 = peg$currPos;
1197
+ s1 = [];
1198
+ s2 = peg$parseS();
1199
+ while (s2 !== peg$FAILED) {
1200
+ s1.push(s2);
1201
+ s2 = peg$parseS();
1202
+ }
1203
+ if (s1 !== peg$FAILED) {
1204
+ s2 = [];
1205
+ s3 = peg$parseVariableAssignment();
1206
+ if (s3 !== peg$FAILED) {
1207
+ while (s3 !== peg$FAILED) {
1208
+ s2.push(s3);
1209
+ s3 = peg$parseVariableAssignment();
1210
+ }
1211
+ } else {
1212
+ s2 = peg$FAILED;
1213
+ }
1214
+ if (s2 !== peg$FAILED) {
1215
+ s3 = [];
1216
+ s4 = peg$parseS();
1217
+ while (s4 !== peg$FAILED) {
1218
+ s3.push(s4);
1219
+ s4 = peg$parseS();
1220
+ }
1221
+ if (s3 !== peg$FAILED) {
1222
+ peg$savedPos = s0;
1223
+ s1 = peg$c35(s2);
1224
+ s0 = s1;
1225
+ } else {
1226
+ peg$currPos = s0;
1227
+ s0 = peg$FAILED;
1228
+ }
1229
+ } else {
1230
+ peg$currPos = s0;
1231
+ s0 = peg$FAILED;
1232
+ }
1233
+ } else {
1234
+ peg$currPos = s0;
1235
+ s0 = peg$FAILED;
1236
+ }
1237
+ }
1238
+ }
1239
+ }
1240
+
1241
+ return s0;
1242
+ }
1243
+
1244
+ function peg$parseCommandString() {
1245
+ var s0, s1, s2, s3, s4;
1246
+
1247
+ s0 = peg$currPos;
1248
+ s1 = [];
1249
+ s2 = peg$parseS();
1250
+ while (s2 !== peg$FAILED) {
1251
+ s1.push(s2);
1252
+ s2 = peg$parseS();
1253
+ }
1254
+ if (s1 !== peg$FAILED) {
1255
+ s2 = [];
1256
+ s3 = peg$parseValueArgument();
1257
+ if (s3 !== peg$FAILED) {
1258
+ while (s3 !== peg$FAILED) {
1259
+ s2.push(s3);
1260
+ s3 = peg$parseValueArgument();
1261
+ }
1262
+ } else {
1263
+ s2 = peg$FAILED;
1264
+ }
1265
+ if (s2 !== peg$FAILED) {
1266
+ s3 = [];
1267
+ s4 = peg$parseS();
1268
+ while (s4 !== peg$FAILED) {
1269
+ s3.push(s4);
1270
+ s4 = peg$parseS();
1271
+ }
1272
+ if (s3 !== peg$FAILED) {
1273
+ peg$savedPos = s0;
1274
+ s1 = peg$c36(s2);
1275
+ s0 = s1;
1276
+ } else {
1277
+ peg$currPos = s0;
1278
+ s0 = peg$FAILED;
1279
+ }
1280
+ } else {
1281
+ peg$currPos = s0;
1282
+ s0 = peg$FAILED;
1283
+ }
1284
+ } else {
1285
+ peg$currPos = s0;
1286
+ s0 = peg$FAILED;
1287
+ }
1288
+
1289
+ return s0;
1290
+ }
1291
+
1292
+ function peg$parseArgument() {
1293
+ var s0, s1, s2;
1294
+
1295
+ s0 = peg$currPos;
1296
+ s1 = [];
1297
+ s2 = peg$parseS();
1298
+ while (s2 !== peg$FAILED) {
1299
+ s1.push(s2);
1300
+ s2 = peg$parseS();
1301
+ }
1302
+ if (s1 !== peg$FAILED) {
1303
+ s2 = peg$parseRedirectArgument();
1304
+ if (s2 !== peg$FAILED) {
1305
+ peg$savedPos = s0;
1306
+ s1 = peg$c37(s2);
1307
+ s0 = s1;
1308
+ } else {
1309
+ peg$currPos = s0;
1310
+ s0 = peg$FAILED;
1311
+ }
1312
+ } else {
1313
+ peg$currPos = s0;
1314
+ s0 = peg$FAILED;
1315
+ }
1316
+ if (s0 === peg$FAILED) {
1317
+ s0 = peg$currPos;
1318
+ s1 = [];
1319
+ s2 = peg$parseS();
1320
+ while (s2 !== peg$FAILED) {
1321
+ s1.push(s2);
1322
+ s2 = peg$parseS();
1323
+ }
1324
+ if (s1 !== peg$FAILED) {
1325
+ s2 = peg$parseValueArgument();
1326
+ if (s2 !== peg$FAILED) {
1327
+ peg$savedPos = s0;
1328
+ s1 = peg$c37(s2);
1329
+ s0 = s1;
1330
+ } else {
1331
+ peg$currPos = s0;
1332
+ s0 = peg$FAILED;
1333
+ }
1334
+ } else {
1335
+ peg$currPos = s0;
1336
+ s0 = peg$FAILED;
1337
+ }
1338
+ }
1339
+
1340
+ return s0;
1341
+ }
1342
+
1343
+ function peg$parseRedirectArgument() {
1344
+ var s0, s1, s2, s3, s4;
1345
+
1346
+ s0 = peg$currPos;
1347
+ s1 = [];
1348
+ s2 = peg$parseS();
1349
+ while (s2 !== peg$FAILED) {
1350
+ s1.push(s2);
1351
+ s2 = peg$parseS();
1352
+ }
1353
+ if (s1 !== peg$FAILED) {
1354
+ if (peg$c38.test(input.charAt(peg$currPos))) {
1355
+ s2 = input.charAt(peg$currPos);
1356
+ peg$currPos++;
1357
+ } else {
1358
+ s2 = peg$FAILED;
1359
+ if (peg$silentFails === 0) { peg$fail(peg$c39); }
1360
+ }
1361
+ if (s2 === peg$FAILED) {
1362
+ s2 = null;
1363
+ }
1364
+ if (s2 !== peg$FAILED) {
1365
+ s3 = peg$parseRedirectType();
1366
+ if (s3 !== peg$FAILED) {
1367
+ s4 = peg$parseValueArgument();
1368
+ if (s4 !== peg$FAILED) {
1369
+ peg$savedPos = s0;
1370
+ s1 = peg$c40(s2, s3, s4);
1371
+ s0 = s1;
1372
+ } else {
1373
+ peg$currPos = s0;
1374
+ s0 = peg$FAILED;
1375
+ }
1376
+ } else {
1377
+ peg$currPos = s0;
1378
+ s0 = peg$FAILED;
1379
+ }
1380
+ } else {
1381
+ peg$currPos = s0;
1382
+ s0 = peg$FAILED;
1383
+ }
1384
+ } else {
1385
+ peg$currPos = s0;
1386
+ s0 = peg$FAILED;
1387
+ }
1388
+
1389
+ return s0;
1390
+ }
1391
+
1392
+ function peg$parseRedirectType() {
1393
+ var s0;
1394
+
1395
+ if (input.substr(peg$currPos, 2) === peg$c41) {
1396
+ s0 = peg$c41;
1397
+ peg$currPos += 2;
1398
+ } else {
1399
+ s0 = peg$FAILED;
1400
+ if (peg$silentFails === 0) { peg$fail(peg$c42); }
1401
+ }
1402
+ if (s0 === peg$FAILED) {
1403
+ if (input.substr(peg$currPos, 2) === peg$c43) {
1404
+ s0 = peg$c43;
1405
+ peg$currPos += 2;
1406
+ } else {
1407
+ s0 = peg$FAILED;
1408
+ if (peg$silentFails === 0) { peg$fail(peg$c44); }
1409
+ }
1410
+ if (s0 === peg$FAILED) {
1411
+ if (input.charCodeAt(peg$currPos) === 62) {
1412
+ s0 = peg$c45;
1413
+ peg$currPos++;
1414
+ } else {
1415
+ s0 = peg$FAILED;
1416
+ if (peg$silentFails === 0) { peg$fail(peg$c46); }
1417
+ }
1418
+ if (s0 === peg$FAILED) {
1419
+ if (input.substr(peg$currPos, 3) === peg$c47) {
1420
+ s0 = peg$c47;
1421
+ peg$currPos += 3;
1422
+ } else {
1423
+ s0 = peg$FAILED;
1424
+ if (peg$silentFails === 0) { peg$fail(peg$c48); }
1425
+ }
1426
+ if (s0 === peg$FAILED) {
1427
+ if (input.substr(peg$currPos, 2) === peg$c49) {
1428
+ s0 = peg$c49;
1429
+ peg$currPos += 2;
1430
+ } else {
1431
+ s0 = peg$FAILED;
1432
+ if (peg$silentFails === 0) { peg$fail(peg$c50); }
1433
+ }
1434
+ if (s0 === peg$FAILED) {
1435
+ if (input.charCodeAt(peg$currPos) === 60) {
1436
+ s0 = peg$c51;
1437
+ peg$currPos++;
1438
+ } else {
1439
+ s0 = peg$FAILED;
1440
+ if (peg$silentFails === 0) { peg$fail(peg$c52); }
1441
+ }
1442
+ }
1443
+ }
1444
+ }
1445
+ }
1446
+ }
1447
+
1448
+ return s0;
1449
+ }
1450
+
1451
+ function peg$parseValueArgument() {
1452
+ var s0, s1, s2;
1453
+
1454
+ s0 = peg$currPos;
1455
+ s1 = [];
1456
+ s2 = peg$parseS();
1457
+ while (s2 !== peg$FAILED) {
1458
+ s1.push(s2);
1459
+ s2 = peg$parseS();
1460
+ }
1461
+ if (s1 !== peg$FAILED) {
1462
+ s2 = peg$parseStrictValueArgument();
1463
+ if (s2 !== peg$FAILED) {
1464
+ peg$savedPos = s0;
1465
+ s1 = peg$c37(s2);
1466
+ s0 = s1;
1467
+ } else {
1468
+ peg$currPos = s0;
1469
+ s0 = peg$FAILED;
1470
+ }
1471
+ } else {
1472
+ peg$currPos = s0;
1473
+ s0 = peg$FAILED;
1474
+ }
1475
+
1476
+ return s0;
1477
+ }
1478
+
1479
+ function peg$parseStrictValueArgument() {
1480
+ var s0, s1, s2;
1481
+
1482
+ s0 = peg$currPos;
1483
+ s1 = [];
1484
+ s2 = peg$parseArgumentSegment();
1485
+ if (s2 !== peg$FAILED) {
1486
+ while (s2 !== peg$FAILED) {
1487
+ s1.push(s2);
1488
+ s2 = peg$parseArgumentSegment();
1489
+ }
1490
+ } else {
1491
+ s1 = peg$FAILED;
1492
+ }
1493
+ if (s1 !== peg$FAILED) {
1494
+ peg$savedPos = s0;
1495
+ s1 = peg$c53(s1);
1496
+ }
1497
+ s0 = s1;
1498
+
1499
+ return s0;
1500
+ }
1501
+
1502
+ function peg$parseArgumentSegment() {
1503
+ var s0, s1;
1504
+
1505
+ s0 = peg$currPos;
1506
+ s1 = peg$parseCQuoteString();
1507
+ if (s1 !== peg$FAILED) {
1508
+ peg$savedPos = s0;
1509
+ s1 = peg$c54(s1);
1510
+ }
1511
+ s0 = s1;
1512
+ if (s0 === peg$FAILED) {
1513
+ s0 = peg$currPos;
1514
+ s1 = peg$parseSglQuoteString();
1515
+ if (s1 !== peg$FAILED) {
1516
+ peg$savedPos = s0;
1517
+ s1 = peg$c54(s1);
1518
+ }
1519
+ s0 = s1;
1520
+ if (s0 === peg$FAILED) {
1521
+ s0 = peg$currPos;
1522
+ s1 = peg$parseDblQuoteString();
1523
+ if (s1 !== peg$FAILED) {
1524
+ peg$savedPos = s0;
1525
+ s1 = peg$c54(s1);
1526
+ }
1527
+ s0 = s1;
1528
+ if (s0 === peg$FAILED) {
1529
+ s0 = peg$currPos;
1530
+ s1 = peg$parsePlainString();
1531
+ if (s1 !== peg$FAILED) {
1532
+ peg$savedPos = s0;
1533
+ s1 = peg$c54(s1);
1534
+ }
1535
+ s0 = s1;
1536
+ }
1537
+ }
1538
+ }
1539
+
1540
+ return s0;
1541
+ }
1542
+
1543
+ function peg$parseCQuoteString() {
1544
+ var s0, s1, s2, s3;
1545
+
1546
+ s0 = peg$currPos;
1547
+ if (input.substr(peg$currPos, 2) === peg$c55) {
1548
+ s1 = peg$c55;
1549
+ peg$currPos += 2;
1550
+ } else {
1551
+ s1 = peg$FAILED;
1552
+ if (peg$silentFails === 0) { peg$fail(peg$c56); }
1553
+ }
1554
+ if (s1 !== peg$FAILED) {
1555
+ s2 = peg$parseCQuoteStringText();
1556
+ if (s2 !== peg$FAILED) {
1557
+ if (input.charCodeAt(peg$currPos) === 39) {
1558
+ s3 = peg$c57;
1559
+ peg$currPos++;
1560
+ } else {
1561
+ s3 = peg$FAILED;
1562
+ if (peg$silentFails === 0) { peg$fail(peg$c58); }
1563
+ }
1564
+ if (s3 !== peg$FAILED) {
1565
+ peg$savedPos = s0;
1566
+ s1 = peg$c59(s2);
1567
+ s0 = s1;
1568
+ } else {
1569
+ peg$currPos = s0;
1570
+ s0 = peg$FAILED;
1571
+ }
1572
+ } else {
1573
+ peg$currPos = s0;
1574
+ s0 = peg$FAILED;
1575
+ }
1576
+ } else {
1577
+ peg$currPos = s0;
1578
+ s0 = peg$FAILED;
1579
+ }
1580
+
1581
+ return s0;
1582
+ }
1583
+
1584
+ function peg$parseSglQuoteString() {
1585
+ var s0, s1, s2, s3;
1586
+
1587
+ s0 = peg$currPos;
1588
+ if (input.charCodeAt(peg$currPos) === 39) {
1589
+ s1 = peg$c57;
1590
+ peg$currPos++;
1591
+ } else {
1592
+ s1 = peg$FAILED;
1593
+ if (peg$silentFails === 0) { peg$fail(peg$c58); }
1594
+ }
1595
+ if (s1 !== peg$FAILED) {
1596
+ s2 = peg$parseSglQuoteStringText();
1597
+ if (s2 !== peg$FAILED) {
1598
+ if (input.charCodeAt(peg$currPos) === 39) {
1599
+ s3 = peg$c57;
1600
+ peg$currPos++;
1601
+ } else {
1602
+ s3 = peg$FAILED;
1603
+ if (peg$silentFails === 0) { peg$fail(peg$c58); }
1604
+ }
1605
+ if (s3 !== peg$FAILED) {
1606
+ peg$savedPos = s0;
1607
+ s1 = peg$c59(s2);
1608
+ s0 = s1;
1609
+ } else {
1610
+ peg$currPos = s0;
1611
+ s0 = peg$FAILED;
1612
+ }
1613
+ } else {
1614
+ peg$currPos = s0;
1615
+ s0 = peg$FAILED;
1616
+ }
1617
+ } else {
1618
+ peg$currPos = s0;
1619
+ s0 = peg$FAILED;
1620
+ }
1621
+
1622
+ return s0;
1623
+ }
1624
+
1625
+ function peg$parseDblQuoteString() {
1626
+ var s0, s1, s2, s3;
1627
+
1628
+ s0 = peg$currPos;
1629
+ if (input.substr(peg$currPos, 2) === peg$c60) {
1630
+ s1 = peg$c60;
1631
+ peg$currPos += 2;
1632
+ } else {
1633
+ s1 = peg$FAILED;
1634
+ if (peg$silentFails === 0) { peg$fail(peg$c61); }
1635
+ }
1636
+ if (s1 !== peg$FAILED) {
1637
+ peg$savedPos = s0;
1638
+ s1 = peg$c62();
1639
+ }
1640
+ s0 = s1;
1641
+ if (s0 === peg$FAILED) {
1642
+ s0 = peg$currPos;
1643
+ if (input.charCodeAt(peg$currPos) === 34) {
1644
+ s1 = peg$c63;
1645
+ peg$currPos++;
1646
+ } else {
1647
+ s1 = peg$FAILED;
1648
+ if (peg$silentFails === 0) { peg$fail(peg$c64); }
1649
+ }
1650
+ if (s1 !== peg$FAILED) {
1651
+ s2 = [];
1652
+ s3 = peg$parseDblQuoteStringSegment();
1653
+ while (s3 !== peg$FAILED) {
1654
+ s2.push(s3);
1655
+ s3 = peg$parseDblQuoteStringSegment();
1656
+ }
1657
+ if (s2 !== peg$FAILED) {
1658
+ if (input.charCodeAt(peg$currPos) === 34) {
1659
+ s3 = peg$c63;
1660
+ peg$currPos++;
1661
+ } else {
1662
+ s3 = peg$FAILED;
1663
+ if (peg$silentFails === 0) { peg$fail(peg$c64); }
1664
+ }
1665
+ if (s3 !== peg$FAILED) {
1666
+ peg$savedPos = s0;
1667
+ s1 = peg$c65(s2);
1668
+ s0 = s1;
1669
+ } else {
1670
+ peg$currPos = s0;
1671
+ s0 = peg$FAILED;
1672
+ }
1673
+ } else {
1674
+ peg$currPos = s0;
1675
+ s0 = peg$FAILED;
1676
+ }
1677
+ } else {
1678
+ peg$currPos = s0;
1679
+ s0 = peg$FAILED;
1680
+ }
1681
+ }
1682
+
1683
+ return s0;
1684
+ }
1685
+
1686
+ function peg$parsePlainString() {
1687
+ var s0, s1, s2;
1688
+
1689
+ s0 = peg$currPos;
1690
+ s1 = [];
1691
+ s2 = peg$parsePlainStringSegment();
1692
+ if (s2 !== peg$FAILED) {
1693
+ while (s2 !== peg$FAILED) {
1694
+ s1.push(s2);
1695
+ s2 = peg$parsePlainStringSegment();
1696
+ }
1697
+ } else {
1698
+ s1 = peg$FAILED;
1699
+ }
1700
+ if (s1 !== peg$FAILED) {
1701
+ peg$savedPos = s0;
1702
+ s1 = peg$c65(s1);
1703
+ }
1704
+ s0 = s1;
1705
+
1706
+ return s0;
1707
+ }
1708
+
1709
+ function peg$parseDblQuoteStringSegment() {
1710
+ var s0, s1;
1711
+
1712
+ s0 = peg$currPos;
1713
+ s1 = peg$parseArithmetic();
1714
+ if (s1 !== peg$FAILED) {
1715
+ peg$savedPos = s0;
1716
+ s1 = peg$c66(s1);
1717
+ }
1718
+ s0 = s1;
1719
+ if (s0 === peg$FAILED) {
1720
+ s0 = peg$currPos;
1721
+ s1 = peg$parseSubshell();
1722
+ if (s1 !== peg$FAILED) {
1723
+ peg$savedPos = s0;
1724
+ s1 = peg$c67(s1);
1725
+ }
1726
+ s0 = s1;
1727
+ if (s0 === peg$FAILED) {
1728
+ s0 = peg$currPos;
1729
+ s1 = peg$parseVariable();
1730
+ if (s1 !== peg$FAILED) {
1731
+ peg$savedPos = s0;
1732
+ s1 = peg$c68(s1);
1733
+ }
1734
+ s0 = s1;
1735
+ if (s0 === peg$FAILED) {
1736
+ s0 = peg$currPos;
1737
+ s1 = peg$parseDblQuoteStringText();
1738
+ if (s1 !== peg$FAILED) {
1739
+ peg$savedPos = s0;
1740
+ s1 = peg$c69(s1);
1741
+ }
1742
+ s0 = s1;
1743
+ }
1744
+ }
1745
+ }
1746
+
1747
+ return s0;
1748
+ }
1749
+
1750
+ function peg$parsePlainStringSegment() {
1751
+ var s0, s1;
1752
+
1753
+ s0 = peg$currPos;
1754
+ s1 = peg$parseArithmetic();
1755
+ if (s1 !== peg$FAILED) {
1756
+ peg$savedPos = s0;
1757
+ s1 = peg$c70(s1);
1758
+ }
1759
+ s0 = s1;
1760
+ if (s0 === peg$FAILED) {
1761
+ s0 = peg$currPos;
1762
+ s1 = peg$parseSubshell();
1763
+ if (s1 !== peg$FAILED) {
1764
+ peg$savedPos = s0;
1765
+ s1 = peg$c71(s1);
1766
+ }
1767
+ s0 = s1;
1768
+ if (s0 === peg$FAILED) {
1769
+ s0 = peg$currPos;
1770
+ s1 = peg$parseVariable();
1771
+ if (s1 !== peg$FAILED) {
1772
+ peg$savedPos = s0;
1773
+ s1 = peg$c72(s1);
1774
+ }
1775
+ s0 = s1;
1776
+ if (s0 === peg$FAILED) {
1777
+ s0 = peg$currPos;
1778
+ s1 = peg$parseGlob();
1779
+ if (s1 !== peg$FAILED) {
1780
+ peg$savedPos = s0;
1781
+ s1 = peg$c73(s1);
1782
+ }
1783
+ s0 = s1;
1784
+ if (s0 === peg$FAILED) {
1785
+ s0 = peg$currPos;
1786
+ s1 = peg$parsePlainStringText();
1787
+ if (s1 !== peg$FAILED) {
1788
+ peg$savedPos = s0;
1789
+ s1 = peg$c69(s1);
1790
+ }
1791
+ s0 = s1;
1792
+ }
1793
+ }
1794
+ }
1795
+ }
1796
+
1797
+ return s0;
1798
+ }
1799
+
1800
+ function peg$parseSglQuoteStringText() {
1801
+ var s0, s1, s2;
1802
+
1803
+ s0 = peg$currPos;
1804
+ s1 = [];
1805
+ if (peg$c74.test(input.charAt(peg$currPos))) {
1806
+ s2 = input.charAt(peg$currPos);
1807
+ peg$currPos++;
1808
+ } else {
1809
+ s2 = peg$FAILED;
1810
+ if (peg$silentFails === 0) { peg$fail(peg$c75); }
1811
+ }
1812
+ while (s2 !== peg$FAILED) {
1813
+ s1.push(s2);
1814
+ if (peg$c74.test(input.charAt(peg$currPos))) {
1815
+ s2 = input.charAt(peg$currPos);
1816
+ peg$currPos++;
1817
+ } else {
1818
+ s2 = peg$FAILED;
1819
+ if (peg$silentFails === 0) { peg$fail(peg$c75); }
1820
+ }
1821
+ }
1822
+ if (s1 !== peg$FAILED) {
1823
+ peg$savedPos = s0;
1824
+ s1 = peg$c76(s1);
1825
+ }
1826
+ s0 = s1;
1827
+
1828
+ return s0;
1829
+ }
1830
+
1831
+ function peg$parseDblQuoteStringText() {
1832
+ var s0, s1, s2;
1833
+
1834
+ s0 = peg$currPos;
1835
+ s1 = [];
1836
+ s2 = peg$parseDblQuoteEscapedChar();
1837
+ if (s2 === peg$FAILED) {
1838
+ if (peg$c77.test(input.charAt(peg$currPos))) {
1839
+ s2 = input.charAt(peg$currPos);
1840
+ peg$currPos++;
1841
+ } else {
1842
+ s2 = peg$FAILED;
1843
+ if (peg$silentFails === 0) { peg$fail(peg$c78); }
1844
+ }
1845
+ }
1846
+ if (s2 !== peg$FAILED) {
1847
+ while (s2 !== peg$FAILED) {
1848
+ s1.push(s2);
1849
+ s2 = peg$parseDblQuoteEscapedChar();
1850
+ if (s2 === peg$FAILED) {
1851
+ if (peg$c77.test(input.charAt(peg$currPos))) {
1852
+ s2 = input.charAt(peg$currPos);
1853
+ peg$currPos++;
1854
+ } else {
1855
+ s2 = peg$FAILED;
1856
+ if (peg$silentFails === 0) { peg$fail(peg$c78); }
1857
+ }
1858
+ }
1859
+ }
1860
+ } else {
1861
+ s1 = peg$FAILED;
1862
+ }
1863
+ if (s1 !== peg$FAILED) {
1864
+ peg$savedPos = s0;
1865
+ s1 = peg$c76(s1);
1866
+ }
1867
+ s0 = s1;
1868
+
1869
+ return s0;
1870
+ }
1871
+
1872
+ function peg$parseDblQuoteEscapedChar() {
1873
+ var s0, s1, s2;
1874
+
1875
+ s0 = peg$currPos;
1876
+ if (input.substr(peg$currPos, 2) === peg$c79) {
1877
+ s1 = peg$c79;
1878
+ peg$currPos += 2;
1879
+ } else {
1880
+ s1 = peg$FAILED;
1881
+ if (peg$silentFails === 0) { peg$fail(peg$c80); }
1882
+ }
1883
+ if (s1 !== peg$FAILED) {
1884
+ peg$savedPos = s0;
1885
+ s1 = peg$c81();
1886
+ }
1887
+ s0 = s1;
1888
+ if (s0 === peg$FAILED) {
1889
+ s0 = peg$currPos;
1890
+ if (input.charCodeAt(peg$currPos) === 92) {
1891
+ s1 = peg$c82;
1892
+ peg$currPos++;
1893
+ } else {
1894
+ s1 = peg$FAILED;
1895
+ if (peg$silentFails === 0) { peg$fail(peg$c83); }
1896
+ }
1897
+ if (s1 !== peg$FAILED) {
1898
+ if (peg$c84.test(input.charAt(peg$currPos))) {
1899
+ s2 = input.charAt(peg$currPos);
1900
+ peg$currPos++;
1901
+ } else {
1902
+ s2 = peg$FAILED;
1903
+ if (peg$silentFails === 0) { peg$fail(peg$c85); }
1904
+ }
1905
+ if (s2 !== peg$FAILED) {
1906
+ peg$savedPos = s0;
1907
+ s1 = peg$c86(s2);
1908
+ s0 = s1;
1909
+ } else {
1910
+ peg$currPos = s0;
1911
+ s0 = peg$FAILED;
1912
+ }
1913
+ } else {
1914
+ peg$currPos = s0;
1915
+ s0 = peg$FAILED;
1916
+ }
1917
+ }
1918
+
1919
+ return s0;
1920
+ }
1921
+
1922
+ function peg$parseCQuoteStringText() {
1923
+ var s0, s1, s2;
1924
+
1925
+ s0 = peg$currPos;
1926
+ s1 = [];
1927
+ s2 = peg$parseCQuoteEscapedChar();
1928
+ if (s2 === peg$FAILED) {
1929
+ if (peg$c74.test(input.charAt(peg$currPos))) {
1930
+ s2 = input.charAt(peg$currPos);
1931
+ peg$currPos++;
1932
+ } else {
1933
+ s2 = peg$FAILED;
1934
+ if (peg$silentFails === 0) { peg$fail(peg$c75); }
1935
+ }
1936
+ }
1937
+ while (s2 !== peg$FAILED) {
1938
+ s1.push(s2);
1939
+ s2 = peg$parseCQuoteEscapedChar();
1940
+ if (s2 === peg$FAILED) {
1941
+ if (peg$c74.test(input.charAt(peg$currPos))) {
1942
+ s2 = input.charAt(peg$currPos);
1943
+ peg$currPos++;
1944
+ } else {
1945
+ s2 = peg$FAILED;
1946
+ if (peg$silentFails === 0) { peg$fail(peg$c75); }
1947
+ }
1948
+ }
1949
+ }
1950
+ if (s1 !== peg$FAILED) {
1951
+ peg$savedPos = s0;
1952
+ s1 = peg$c76(s1);
1953
+ }
1954
+ s0 = s1;
1955
+
1956
+ return s0;
1957
+ }
1958
+
1959
+ function peg$parseCQuoteEscapedChar() {
1960
+ var s0, s1, s2;
1961
+
1962
+ s0 = peg$currPos;
1963
+ if (input.substr(peg$currPos, 2) === peg$c87) {
1964
+ s1 = peg$c87;
1965
+ peg$currPos += 2;
1966
+ } else {
1967
+ s1 = peg$FAILED;
1968
+ if (peg$silentFails === 0) { peg$fail(peg$c88); }
1969
+ }
1970
+ if (s1 !== peg$FAILED) {
1971
+ peg$savedPos = s0;
1972
+ s1 = peg$c89();
1973
+ }
1974
+ s0 = s1;
1975
+ if (s0 === peg$FAILED) {
1976
+ s0 = peg$currPos;
1977
+ if (input.substr(peg$currPos, 2) === peg$c90) {
1978
+ s1 = peg$c90;
1979
+ peg$currPos += 2;
1980
+ } else {
1981
+ s1 = peg$FAILED;
1982
+ if (peg$silentFails === 0) { peg$fail(peg$c91); }
1983
+ }
1984
+ if (s1 !== peg$FAILED) {
1985
+ peg$savedPos = s0;
1986
+ s1 = peg$c92();
1987
+ }
1988
+ s0 = s1;
1989
+ if (s0 === peg$FAILED) {
1990
+ s0 = peg$currPos;
1991
+ if (input.charCodeAt(peg$currPos) === 92) {
1992
+ s1 = peg$c82;
1993
+ peg$currPos++;
1994
+ } else {
1995
+ s1 = peg$FAILED;
1996
+ if (peg$silentFails === 0) { peg$fail(peg$c83); }
1997
+ }
1998
+ if (s1 !== peg$FAILED) {
1999
+ if (peg$c93.test(input.charAt(peg$currPos))) {
2000
+ s2 = input.charAt(peg$currPos);
2001
+ peg$currPos++;
2002
+ } else {
2003
+ s2 = peg$FAILED;
2004
+ if (peg$silentFails === 0) { peg$fail(peg$c94); }
2005
+ }
2006
+ if (s2 !== peg$FAILED) {
2007
+ peg$savedPos = s0;
2008
+ s1 = peg$c95();
2009
+ s0 = s1;
2010
+ } else {
2011
+ peg$currPos = s0;
2012
+ s0 = peg$FAILED;
2013
+ }
2014
+ } else {
2015
+ peg$currPos = s0;
2016
+ s0 = peg$FAILED;
2017
+ }
2018
+ if (s0 === peg$FAILED) {
2019
+ s0 = peg$currPos;
2020
+ if (input.substr(peg$currPos, 2) === peg$c96) {
2021
+ s1 = peg$c96;
2022
+ peg$currPos += 2;
2023
+ } else {
2024
+ s1 = peg$FAILED;
2025
+ if (peg$silentFails === 0) { peg$fail(peg$c97); }
2026
+ }
2027
+ if (s1 !== peg$FAILED) {
2028
+ peg$savedPos = s0;
2029
+ s1 = peg$c98();
2030
+ }
2031
+ s0 = s1;
2032
+ if (s0 === peg$FAILED) {
2033
+ s0 = peg$currPos;
2034
+ if (input.substr(peg$currPos, 2) === peg$c99) {
2035
+ s1 = peg$c99;
2036
+ peg$currPos += 2;
2037
+ } else {
2038
+ s1 = peg$FAILED;
2039
+ if (peg$silentFails === 0) { peg$fail(peg$c100); }
2040
+ }
2041
+ if (s1 !== peg$FAILED) {
2042
+ peg$savedPos = s0;
2043
+ s1 = peg$c101();
2044
+ }
2045
+ s0 = s1;
2046
+ if (s0 === peg$FAILED) {
2047
+ s0 = peg$currPos;
2048
+ if (input.substr(peg$currPos, 2) === peg$c102) {
2049
+ s1 = peg$c102;
2050
+ peg$currPos += 2;
2051
+ } else {
2052
+ s1 = peg$FAILED;
2053
+ if (peg$silentFails === 0) { peg$fail(peg$c103); }
2054
+ }
2055
+ if (s1 !== peg$FAILED) {
2056
+ peg$savedPos = s0;
2057
+ s1 = peg$c104();
2058
+ }
2059
+ s0 = s1;
2060
+ if (s0 === peg$FAILED) {
2061
+ s0 = peg$currPos;
2062
+ if (input.substr(peg$currPos, 2) === peg$c105) {
2063
+ s1 = peg$c105;
2064
+ peg$currPos += 2;
2065
+ } else {
2066
+ s1 = peg$FAILED;
2067
+ if (peg$silentFails === 0) { peg$fail(peg$c106); }
2068
+ }
2069
+ if (s1 !== peg$FAILED) {
2070
+ peg$savedPos = s0;
2071
+ s1 = peg$c107();
2072
+ }
2073
+ s0 = s1;
2074
+ if (s0 === peg$FAILED) {
2075
+ s0 = peg$currPos;
2076
+ if (input.substr(peg$currPos, 2) === peg$c108) {
2077
+ s1 = peg$c108;
2078
+ peg$currPos += 2;
2079
+ } else {
2080
+ s1 = peg$FAILED;
2081
+ if (peg$silentFails === 0) { peg$fail(peg$c109); }
2082
+ }
2083
+ if (s1 !== peg$FAILED) {
2084
+ peg$savedPos = s0;
2085
+ s1 = peg$c110();
2086
+ }
2087
+ s0 = s1;
2088
+ if (s0 === peg$FAILED) {
2089
+ s0 = peg$currPos;
2090
+ if (input.charCodeAt(peg$currPos) === 92) {
2091
+ s1 = peg$c82;
2092
+ peg$currPos++;
2093
+ } else {
2094
+ s1 = peg$FAILED;
2095
+ if (peg$silentFails === 0) { peg$fail(peg$c83); }
2096
+ }
2097
+ if (s1 !== peg$FAILED) {
2098
+ if (peg$c111.test(input.charAt(peg$currPos))) {
2099
+ s2 = input.charAt(peg$currPos);
2100
+ peg$currPos++;
2101
+ } else {
2102
+ s2 = peg$FAILED;
2103
+ if (peg$silentFails === 0) { peg$fail(peg$c112); }
2104
+ }
2105
+ if (s2 !== peg$FAILED) {
2106
+ peg$savedPos = s0;
2107
+ s1 = peg$c86(s2);
2108
+ s0 = s1;
2109
+ } else {
2110
+ peg$currPos = s0;
2111
+ s0 = peg$FAILED;
2112
+ }
2113
+ } else {
2114
+ peg$currPos = s0;
2115
+ s0 = peg$FAILED;
2116
+ }
2117
+ if (s0 === peg$FAILED) {
2118
+ s0 = peg$parseHexCodeString();
2119
+ }
2120
+ }
2121
+ }
2122
+ }
2123
+ }
2124
+ }
2125
+ }
2126
+ }
2127
+ }
2128
+
2129
+ return s0;
2130
+ }
2131
+
2132
+ function peg$parseHexCodeString() {
2133
+ var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11;
2134
+
2135
+ s0 = peg$currPos;
2136
+ if (input.charCodeAt(peg$currPos) === 92) {
2137
+ s1 = peg$c82;
2138
+ peg$currPos++;
2139
+ } else {
2140
+ s1 = peg$FAILED;
2141
+ if (peg$silentFails === 0) { peg$fail(peg$c83); }
2142
+ }
2143
+ if (s1 !== peg$FAILED) {
2144
+ s2 = peg$parseHexCodeChar0();
2145
+ if (s2 !== peg$FAILED) {
2146
+ peg$savedPos = s0;
2147
+ s1 = peg$c113(s2);
2148
+ s0 = s1;
2149
+ } else {
2150
+ peg$currPos = s0;
2151
+ s0 = peg$FAILED;
2152
+ }
2153
+ } else {
2154
+ peg$currPos = s0;
2155
+ s0 = peg$FAILED;
2156
+ }
2157
+ if (s0 === peg$FAILED) {
2158
+ s0 = peg$currPos;
2159
+ if (input.substr(peg$currPos, 2) === peg$c114) {
2160
+ s1 = peg$c114;
2161
+ peg$currPos += 2;
2162
+ } else {
2163
+ s1 = peg$FAILED;
2164
+ if (peg$silentFails === 0) { peg$fail(peg$c115); }
2165
+ }
2166
+ if (s1 !== peg$FAILED) {
2167
+ s2 = peg$currPos;
2168
+ s3 = peg$currPos;
2169
+ s4 = peg$parseHexCodeChar0();
2170
+ if (s4 !== peg$FAILED) {
2171
+ s5 = peg$parseHexCodeChar();
2172
+ if (s5 !== peg$FAILED) {
2173
+ s4 = [s4, s5];
2174
+ s3 = s4;
2175
+ } else {
2176
+ peg$currPos = s3;
2177
+ s3 = peg$FAILED;
2178
+ }
2179
+ } else {
2180
+ peg$currPos = s3;
2181
+ s3 = peg$FAILED;
2182
+ }
2183
+ if (s3 === peg$FAILED) {
2184
+ s3 = peg$parseHexCodeChar0();
2185
+ }
2186
+ if (s3 !== peg$FAILED) {
2187
+ s2 = input.substring(s2, peg$currPos);
2188
+ } else {
2189
+ s2 = s3;
2190
+ }
2191
+ if (s2 !== peg$FAILED) {
2192
+ peg$savedPos = s0;
2193
+ s1 = peg$c113(s2);
2194
+ s0 = s1;
2195
+ } else {
2196
+ peg$currPos = s0;
2197
+ s0 = peg$FAILED;
2198
+ }
2199
+ } else {
2200
+ peg$currPos = s0;
2201
+ s0 = peg$FAILED;
2202
+ }
2203
+ if (s0 === peg$FAILED) {
2204
+ s0 = peg$currPos;
2205
+ if (input.substr(peg$currPos, 2) === peg$c116) {
2206
+ s1 = peg$c116;
2207
+ peg$currPos += 2;
2208
+ } else {
2209
+ s1 = peg$FAILED;
2210
+ if (peg$silentFails === 0) { peg$fail(peg$c117); }
2211
+ }
2212
+ if (s1 !== peg$FAILED) {
2213
+ s2 = peg$currPos;
2214
+ s3 = peg$currPos;
2215
+ s4 = peg$parseHexCodeChar();
2216
+ if (s4 !== peg$FAILED) {
2217
+ s5 = peg$parseHexCodeChar();
2218
+ if (s5 !== peg$FAILED) {
2219
+ s6 = peg$parseHexCodeChar();
2220
+ if (s6 !== peg$FAILED) {
2221
+ s7 = peg$parseHexCodeChar();
2222
+ if (s7 !== peg$FAILED) {
2223
+ s4 = [s4, s5, s6, s7];
2224
+ s3 = s4;
2225
+ } else {
2226
+ peg$currPos = s3;
2227
+ s3 = peg$FAILED;
2228
+ }
2229
+ } else {
2230
+ peg$currPos = s3;
2231
+ s3 = peg$FAILED;
2232
+ }
2233
+ } else {
2234
+ peg$currPos = s3;
2235
+ s3 = peg$FAILED;
2236
+ }
2237
+ } else {
2238
+ peg$currPos = s3;
2239
+ s3 = peg$FAILED;
2240
+ }
2241
+ if (s3 !== peg$FAILED) {
2242
+ s2 = input.substring(s2, peg$currPos);
2243
+ } else {
2244
+ s2 = s3;
2245
+ }
2246
+ if (s2 !== peg$FAILED) {
2247
+ peg$savedPos = s0;
2248
+ s1 = peg$c113(s2);
2249
+ s0 = s1;
2250
+ } else {
2251
+ peg$currPos = s0;
2252
+ s0 = peg$FAILED;
2253
+ }
2254
+ } else {
2255
+ peg$currPos = s0;
2256
+ s0 = peg$FAILED;
2257
+ }
2258
+ if (s0 === peg$FAILED) {
2259
+ s0 = peg$currPos;
2260
+ if (input.substr(peg$currPos, 2) === peg$c118) {
2261
+ s1 = peg$c118;
2262
+ peg$currPos += 2;
2263
+ } else {
2264
+ s1 = peg$FAILED;
2265
+ if (peg$silentFails === 0) { peg$fail(peg$c119); }
2266
+ }
2267
+ if (s1 !== peg$FAILED) {
2268
+ s2 = peg$currPos;
2269
+ s3 = peg$currPos;
2270
+ s4 = peg$parseHexCodeChar();
2271
+ if (s4 !== peg$FAILED) {
2272
+ s5 = peg$parseHexCodeChar();
2273
+ if (s5 !== peg$FAILED) {
2274
+ s6 = peg$parseHexCodeChar();
2275
+ if (s6 !== peg$FAILED) {
2276
+ s7 = peg$parseHexCodeChar();
2277
+ if (s7 !== peg$FAILED) {
2278
+ s8 = peg$parseHexCodeChar();
2279
+ if (s8 !== peg$FAILED) {
2280
+ s9 = peg$parseHexCodeChar();
2281
+ if (s9 !== peg$FAILED) {
2282
+ s10 = peg$parseHexCodeChar();
2283
+ if (s10 !== peg$FAILED) {
2284
+ s11 = peg$parseHexCodeChar();
2285
+ if (s11 !== peg$FAILED) {
2286
+ s4 = [s4, s5, s6, s7, s8, s9, s10, s11];
2287
+ s3 = s4;
2288
+ } else {
2289
+ peg$currPos = s3;
2290
+ s3 = peg$FAILED;
2291
+ }
2292
+ } else {
2293
+ peg$currPos = s3;
2294
+ s3 = peg$FAILED;
2295
+ }
2296
+ } else {
2297
+ peg$currPos = s3;
2298
+ s3 = peg$FAILED;
2299
+ }
2300
+ } else {
2301
+ peg$currPos = s3;
2302
+ s3 = peg$FAILED;
2303
+ }
2304
+ } else {
2305
+ peg$currPos = s3;
2306
+ s3 = peg$FAILED;
2307
+ }
2308
+ } else {
2309
+ peg$currPos = s3;
2310
+ s3 = peg$FAILED;
2311
+ }
2312
+ } else {
2313
+ peg$currPos = s3;
2314
+ s3 = peg$FAILED;
2315
+ }
2316
+ } else {
2317
+ peg$currPos = s3;
2318
+ s3 = peg$FAILED;
2319
+ }
2320
+ if (s3 !== peg$FAILED) {
2321
+ s2 = input.substring(s2, peg$currPos);
2322
+ } else {
2323
+ s2 = s3;
2324
+ }
2325
+ if (s2 !== peg$FAILED) {
2326
+ peg$savedPos = s0;
2327
+ s1 = peg$c120(s2);
2328
+ s0 = s1;
2329
+ } else {
2330
+ peg$currPos = s0;
2331
+ s0 = peg$FAILED;
2332
+ }
2333
+ } else {
2334
+ peg$currPos = s0;
2335
+ s0 = peg$FAILED;
2336
+ }
2337
+ }
2338
+ }
2339
+ }
2340
+
2341
+ return s0;
2342
+ }
2343
+
2344
+ function peg$parseHexCodeChar0() {
2345
+ var s0;
2346
+
2347
+ if (peg$c121.test(input.charAt(peg$currPos))) {
2348
+ s0 = input.charAt(peg$currPos);
2349
+ peg$currPos++;
2350
+ } else {
2351
+ s0 = peg$FAILED;
2352
+ if (peg$silentFails === 0) { peg$fail(peg$c122); }
2353
+ }
2354
+
2355
+ return s0;
2356
+ }
2357
+
2358
+ function peg$parseHexCodeChar() {
2359
+ var s0;
2360
+
2361
+ if (peg$c123.test(input.charAt(peg$currPos))) {
2362
+ s0 = input.charAt(peg$currPos);
2363
+ peg$currPos++;
2364
+ } else {
2365
+ s0 = peg$FAILED;
2366
+ if (peg$silentFails === 0) { peg$fail(peg$c124); }
2367
+ }
2368
+
2369
+ return s0;
2370
+ }
2371
+
2372
+ function peg$parsePlainStringText() {
2373
+ var s0, s1, s2, s3, s4;
2374
+
2375
+ s0 = peg$currPos;
2376
+ s1 = [];
2377
+ s2 = peg$currPos;
2378
+ if (input.charCodeAt(peg$currPos) === 92) {
2379
+ s3 = peg$c82;
2380
+ peg$currPos++;
2381
+ } else {
2382
+ s3 = peg$FAILED;
2383
+ if (peg$silentFails === 0) { peg$fail(peg$c83); }
2384
+ }
2385
+ if (s3 !== peg$FAILED) {
2386
+ if (input.length > peg$currPos) {
2387
+ s4 = input.charAt(peg$currPos);
2388
+ peg$currPos++;
2389
+ } else {
2390
+ s4 = peg$FAILED;
2391
+ if (peg$silentFails === 0) { peg$fail(peg$c125); }
2392
+ }
2393
+ if (s4 !== peg$FAILED) {
2394
+ peg$savedPos = s2;
2395
+ s3 = peg$c86(s4);
2396
+ s2 = s3;
2397
+ } else {
2398
+ peg$currPos = s2;
2399
+ s2 = peg$FAILED;
2400
+ }
2401
+ } else {
2402
+ peg$currPos = s2;
2403
+ s2 = peg$FAILED;
2404
+ }
2405
+ if (s2 === peg$FAILED) {
2406
+ s2 = peg$currPos;
2407
+ if (input.substr(peg$currPos, 2) === peg$c126) {
2408
+ s3 = peg$c126;
2409
+ peg$currPos += 2;
2410
+ } else {
2411
+ s3 = peg$FAILED;
2412
+ if (peg$silentFails === 0) { peg$fail(peg$c127); }
2413
+ }
2414
+ if (s3 !== peg$FAILED) {
2415
+ peg$savedPos = s2;
2416
+ s3 = peg$c128();
2417
+ }
2418
+ s2 = s3;
2419
+ if (s2 === peg$FAILED) {
2420
+ s2 = peg$currPos;
2421
+ s3 = peg$currPos;
2422
+ peg$silentFails++;
2423
+ s4 = peg$parseSpecialShellChars();
2424
+ peg$silentFails--;
2425
+ if (s4 === peg$FAILED) {
2426
+ s3 = void 0;
2427
+ } else {
2428
+ peg$currPos = s3;
2429
+ s3 = peg$FAILED;
2430
+ }
2431
+ if (s3 !== peg$FAILED) {
2432
+ if (input.length > peg$currPos) {
2433
+ s4 = input.charAt(peg$currPos);
2434
+ peg$currPos++;
2435
+ } else {
2436
+ s4 = peg$FAILED;
2437
+ if (peg$silentFails === 0) { peg$fail(peg$c125); }
2438
+ }
2439
+ if (s4 !== peg$FAILED) {
2440
+ peg$savedPos = s2;
2441
+ s3 = peg$c86(s4);
2442
+ s2 = s3;
2443
+ } else {
2444
+ peg$currPos = s2;
2445
+ s2 = peg$FAILED;
2446
+ }
2447
+ } else {
2448
+ peg$currPos = s2;
2449
+ s2 = peg$FAILED;
2450
+ }
2451
+ }
2452
+ }
2453
+ if (s2 !== peg$FAILED) {
2454
+ while (s2 !== peg$FAILED) {
2455
+ s1.push(s2);
2456
+ s2 = peg$currPos;
2457
+ if (input.charCodeAt(peg$currPos) === 92) {
2458
+ s3 = peg$c82;
2459
+ peg$currPos++;
2460
+ } else {
2461
+ s3 = peg$FAILED;
2462
+ if (peg$silentFails === 0) { peg$fail(peg$c83); }
2463
+ }
2464
+ if (s3 !== peg$FAILED) {
2465
+ if (input.length > peg$currPos) {
2466
+ s4 = input.charAt(peg$currPos);
2467
+ peg$currPos++;
2468
+ } else {
2469
+ s4 = peg$FAILED;
2470
+ if (peg$silentFails === 0) { peg$fail(peg$c125); }
2471
+ }
2472
+ if (s4 !== peg$FAILED) {
2473
+ peg$savedPos = s2;
2474
+ s3 = peg$c86(s4);
2475
+ s2 = s3;
2476
+ } else {
2477
+ peg$currPos = s2;
2478
+ s2 = peg$FAILED;
2479
+ }
2480
+ } else {
2481
+ peg$currPos = s2;
2482
+ s2 = peg$FAILED;
2483
+ }
2484
+ if (s2 === peg$FAILED) {
2485
+ s2 = peg$currPos;
2486
+ if (input.substr(peg$currPos, 2) === peg$c126) {
2487
+ s3 = peg$c126;
2488
+ peg$currPos += 2;
2489
+ } else {
2490
+ s3 = peg$FAILED;
2491
+ if (peg$silentFails === 0) { peg$fail(peg$c127); }
2492
+ }
2493
+ if (s3 !== peg$FAILED) {
2494
+ peg$savedPos = s2;
2495
+ s3 = peg$c128();
2496
+ }
2497
+ s2 = s3;
2498
+ if (s2 === peg$FAILED) {
2499
+ s2 = peg$currPos;
2500
+ s3 = peg$currPos;
2501
+ peg$silentFails++;
2502
+ s4 = peg$parseSpecialShellChars();
2503
+ peg$silentFails--;
2504
+ if (s4 === peg$FAILED) {
2505
+ s3 = void 0;
2506
+ } else {
2507
+ peg$currPos = s3;
2508
+ s3 = peg$FAILED;
2509
+ }
2510
+ if (s3 !== peg$FAILED) {
2511
+ if (input.length > peg$currPos) {
2512
+ s4 = input.charAt(peg$currPos);
2513
+ peg$currPos++;
2514
+ } else {
2515
+ s4 = peg$FAILED;
2516
+ if (peg$silentFails === 0) { peg$fail(peg$c125); }
2517
+ }
2518
+ if (s4 !== peg$FAILED) {
2519
+ peg$savedPos = s2;
2520
+ s3 = peg$c86(s4);
2521
+ s2 = s3;
2522
+ } else {
2523
+ peg$currPos = s2;
2524
+ s2 = peg$FAILED;
2525
+ }
2526
+ } else {
2527
+ peg$currPos = s2;
2528
+ s2 = peg$FAILED;
2529
+ }
2530
+ }
2531
+ }
2532
+ }
2533
+ } else {
2534
+ s1 = peg$FAILED;
2535
+ }
2536
+ if (s1 !== peg$FAILED) {
2537
+ peg$savedPos = s0;
2538
+ s1 = peg$c76(s1);
2539
+ }
2540
+ s0 = s1;
2541
+
2542
+ return s0;
2543
+ }
2544
+
2545
+ function peg$parseArithmeticPrimary() {
2546
+ var s0, s1, s2, s3, s4, s5;
2547
+
2548
+ s0 = peg$currPos;
2549
+ if (input.charCodeAt(peg$currPos) === 45) {
2550
+ s1 = peg$c129;
2551
+ peg$currPos++;
2552
+ } else {
2553
+ s1 = peg$FAILED;
2554
+ if (peg$silentFails === 0) { peg$fail(peg$c130); }
2555
+ }
2556
+ if (s1 === peg$FAILED) {
2557
+ if (input.charCodeAt(peg$currPos) === 43) {
2558
+ s1 = peg$c131;
2559
+ peg$currPos++;
2560
+ } else {
2561
+ s1 = peg$FAILED;
2562
+ if (peg$silentFails === 0) { peg$fail(peg$c132); }
2563
+ }
2564
+ }
2565
+ if (s1 === peg$FAILED) {
2566
+ s1 = null;
2567
+ }
2568
+ if (s1 !== peg$FAILED) {
2569
+ s2 = [];
2570
+ if (peg$c38.test(input.charAt(peg$currPos))) {
2571
+ s3 = input.charAt(peg$currPos);
2572
+ peg$currPos++;
2573
+ } else {
2574
+ s3 = peg$FAILED;
2575
+ if (peg$silentFails === 0) { peg$fail(peg$c39); }
2576
+ }
2577
+ if (s3 !== peg$FAILED) {
2578
+ while (s3 !== peg$FAILED) {
2579
+ s2.push(s3);
2580
+ if (peg$c38.test(input.charAt(peg$currPos))) {
2581
+ s3 = input.charAt(peg$currPos);
2582
+ peg$currPos++;
2583
+ } else {
2584
+ s3 = peg$FAILED;
2585
+ if (peg$silentFails === 0) { peg$fail(peg$c39); }
2586
+ }
2587
+ }
2588
+ } else {
2589
+ s2 = peg$FAILED;
2590
+ }
2591
+ if (s2 !== peg$FAILED) {
2592
+ if (input.charCodeAt(peg$currPos) === 46) {
2593
+ s3 = peg$c133;
2594
+ peg$currPos++;
2595
+ } else {
2596
+ s3 = peg$FAILED;
2597
+ if (peg$silentFails === 0) { peg$fail(peg$c134); }
2598
+ }
2599
+ if (s3 !== peg$FAILED) {
2600
+ s4 = [];
2601
+ if (peg$c38.test(input.charAt(peg$currPos))) {
2602
+ s5 = input.charAt(peg$currPos);
2603
+ peg$currPos++;
2604
+ } else {
2605
+ s5 = peg$FAILED;
2606
+ if (peg$silentFails === 0) { peg$fail(peg$c39); }
2607
+ }
2608
+ if (s5 !== peg$FAILED) {
2609
+ while (s5 !== peg$FAILED) {
2610
+ s4.push(s5);
2611
+ if (peg$c38.test(input.charAt(peg$currPos))) {
2612
+ s5 = input.charAt(peg$currPos);
2613
+ peg$currPos++;
2614
+ } else {
2615
+ s5 = peg$FAILED;
2616
+ if (peg$silentFails === 0) { peg$fail(peg$c39); }
2617
+ }
2618
+ }
2619
+ } else {
2620
+ s4 = peg$FAILED;
2621
+ }
2622
+ if (s4 !== peg$FAILED) {
2623
+ peg$savedPos = s0;
2624
+ s1 = peg$c135(s1, s2, s4);
2625
+ s0 = s1;
2626
+ } else {
2627
+ peg$currPos = s0;
2628
+ s0 = peg$FAILED;
2629
+ }
2630
+ } else {
2631
+ peg$currPos = s0;
2632
+ s0 = peg$FAILED;
2633
+ }
2634
+ } else {
2635
+ peg$currPos = s0;
2636
+ s0 = peg$FAILED;
2637
+ }
2638
+ } else {
2639
+ peg$currPos = s0;
2640
+ s0 = peg$FAILED;
2641
+ }
2642
+ if (s0 === peg$FAILED) {
2643
+ s0 = peg$currPos;
2644
+ if (input.charCodeAt(peg$currPos) === 45) {
2645
+ s1 = peg$c129;
2646
+ peg$currPos++;
2647
+ } else {
2648
+ s1 = peg$FAILED;
2649
+ if (peg$silentFails === 0) { peg$fail(peg$c130); }
2650
+ }
2651
+ if (s1 === peg$FAILED) {
2652
+ if (input.charCodeAt(peg$currPos) === 43) {
2653
+ s1 = peg$c131;
2654
+ peg$currPos++;
2655
+ } else {
2656
+ s1 = peg$FAILED;
2657
+ if (peg$silentFails === 0) { peg$fail(peg$c132); }
2658
+ }
2659
+ }
2660
+ if (s1 === peg$FAILED) {
2661
+ s1 = null;
2662
+ }
2663
+ if (s1 !== peg$FAILED) {
2664
+ s2 = [];
2665
+ if (peg$c38.test(input.charAt(peg$currPos))) {
2666
+ s3 = input.charAt(peg$currPos);
2667
+ peg$currPos++;
2668
+ } else {
2669
+ s3 = peg$FAILED;
2670
+ if (peg$silentFails === 0) { peg$fail(peg$c39); }
2671
+ }
2672
+ if (s3 !== peg$FAILED) {
2673
+ while (s3 !== peg$FAILED) {
2674
+ s2.push(s3);
2675
+ if (peg$c38.test(input.charAt(peg$currPos))) {
2676
+ s3 = input.charAt(peg$currPos);
2677
+ peg$currPos++;
2678
+ } else {
2679
+ s3 = peg$FAILED;
2680
+ if (peg$silentFails === 0) { peg$fail(peg$c39); }
2681
+ }
2682
+ }
2683
+ } else {
2684
+ s2 = peg$FAILED;
2685
+ }
2686
+ if (s2 !== peg$FAILED) {
2687
+ peg$savedPos = s0;
2688
+ s1 = peg$c136(s1, s2);
2689
+ s0 = s1;
2690
+ } else {
2691
+ peg$currPos = s0;
2692
+ s0 = peg$FAILED;
2693
+ }
2694
+ } else {
2695
+ peg$currPos = s0;
2696
+ s0 = peg$FAILED;
2697
+ }
2698
+ if (s0 === peg$FAILED) {
2699
+ s0 = peg$currPos;
2700
+ s1 = peg$parseVariable();
2701
+ if (s1 !== peg$FAILED) {
2702
+ peg$savedPos = s0;
2703
+ s1 = peg$c137(s1);
2704
+ }
2705
+ s0 = s1;
2706
+ if (s0 === peg$FAILED) {
2707
+ s0 = peg$currPos;
2708
+ s1 = peg$parseIdentifier();
2709
+ if (s1 !== peg$FAILED) {
2710
+ peg$savedPos = s0;
2711
+ s1 = peg$c138(s1);
2712
+ }
2713
+ s0 = s1;
2714
+ if (s0 === peg$FAILED) {
2715
+ s0 = peg$currPos;
2716
+ if (input.charCodeAt(peg$currPos) === 40) {
2717
+ s1 = peg$c24;
2718
+ peg$currPos++;
2719
+ } else {
2720
+ s1 = peg$FAILED;
2721
+ if (peg$silentFails === 0) { peg$fail(peg$c25); }
2722
+ }
2723
+ if (s1 !== peg$FAILED) {
2724
+ s2 = [];
2725
+ s3 = peg$parseS();
2726
+ while (s3 !== peg$FAILED) {
2727
+ s2.push(s3);
2728
+ s3 = peg$parseS();
2729
+ }
2730
+ if (s2 !== peg$FAILED) {
2731
+ s3 = peg$parseArithmeticExpression();
2732
+ if (s3 !== peg$FAILED) {
2733
+ s4 = [];
2734
+ s5 = peg$parseS();
2735
+ while (s5 !== peg$FAILED) {
2736
+ s4.push(s5);
2737
+ s5 = peg$parseS();
2738
+ }
2739
+ if (s4 !== peg$FAILED) {
2740
+ if (input.charCodeAt(peg$currPos) === 41) {
2741
+ s5 = peg$c26;
2742
+ peg$currPos++;
2743
+ } else {
2744
+ s5 = peg$FAILED;
2745
+ if (peg$silentFails === 0) { peg$fail(peg$c27); }
2746
+ }
2747
+ if (s5 !== peg$FAILED) {
2748
+ peg$savedPos = s0;
2749
+ s1 = peg$c139(s3);
2750
+ s0 = s1;
2751
+ } else {
2752
+ peg$currPos = s0;
2753
+ s0 = peg$FAILED;
2754
+ }
2755
+ } else {
2756
+ peg$currPos = s0;
2757
+ s0 = peg$FAILED;
2758
+ }
2759
+ } else {
2760
+ peg$currPos = s0;
2761
+ s0 = peg$FAILED;
2762
+ }
2763
+ } else {
2764
+ peg$currPos = s0;
2765
+ s0 = peg$FAILED;
2766
+ }
2767
+ } else {
2768
+ peg$currPos = s0;
2769
+ s0 = peg$FAILED;
2770
+ }
2771
+ }
2772
+ }
2773
+ }
2774
+ }
2775
+
2776
+ return s0;
2777
+ }
2778
+
2779
+ function peg$parseArithmeticTimesExpression() {
2780
+ var s0, s1, s2, s3, s4, s5, s6, s7;
2781
+
2782
+ s0 = peg$currPos;
2783
+ s1 = peg$parseArithmeticPrimary();
2784
+ if (s1 !== peg$FAILED) {
2785
+ s2 = [];
2786
+ s3 = peg$currPos;
2787
+ s4 = [];
2788
+ s5 = peg$parseS();
2789
+ while (s5 !== peg$FAILED) {
2790
+ s4.push(s5);
2791
+ s5 = peg$parseS();
2792
+ }
2793
+ if (s4 !== peg$FAILED) {
2794
+ if (input.charCodeAt(peg$currPos) === 42) {
2795
+ s5 = peg$c140;
2796
+ peg$currPos++;
2797
+ } else {
2798
+ s5 = peg$FAILED;
2799
+ if (peg$silentFails === 0) { peg$fail(peg$c141); }
2800
+ }
2801
+ if (s5 === peg$FAILED) {
2802
+ if (input.charCodeAt(peg$currPos) === 47) {
2803
+ s5 = peg$c142;
2804
+ peg$currPos++;
2805
+ } else {
2806
+ s5 = peg$FAILED;
2807
+ if (peg$silentFails === 0) { peg$fail(peg$c143); }
2808
+ }
2809
+ }
2810
+ if (s5 !== peg$FAILED) {
2811
+ s6 = [];
2812
+ s7 = peg$parseS();
2813
+ while (s7 !== peg$FAILED) {
2814
+ s6.push(s7);
2815
+ s7 = peg$parseS();
2816
+ }
2817
+ if (s6 !== peg$FAILED) {
2818
+ s7 = peg$parseArithmeticPrimary();
2819
+ if (s7 !== peg$FAILED) {
2820
+ peg$savedPos = s3;
2821
+ s4 = peg$c144(s1, s5, s7);
2822
+ s3 = s4;
2823
+ } else {
2824
+ peg$currPos = s3;
2825
+ s3 = peg$FAILED;
2826
+ }
2827
+ } else {
2828
+ peg$currPos = s3;
2829
+ s3 = peg$FAILED;
2830
+ }
2831
+ } else {
2832
+ peg$currPos = s3;
2833
+ s3 = peg$FAILED;
2834
+ }
2835
+ } else {
2836
+ peg$currPos = s3;
2837
+ s3 = peg$FAILED;
2838
+ }
2839
+ while (s3 !== peg$FAILED) {
2840
+ s2.push(s3);
2841
+ s3 = peg$currPos;
2842
+ s4 = [];
2843
+ s5 = peg$parseS();
2844
+ while (s5 !== peg$FAILED) {
2845
+ s4.push(s5);
2846
+ s5 = peg$parseS();
2847
+ }
2848
+ if (s4 !== peg$FAILED) {
2849
+ if (input.charCodeAt(peg$currPos) === 42) {
2850
+ s5 = peg$c140;
2851
+ peg$currPos++;
2852
+ } else {
2853
+ s5 = peg$FAILED;
2854
+ if (peg$silentFails === 0) { peg$fail(peg$c141); }
2855
+ }
2856
+ if (s5 === peg$FAILED) {
2857
+ if (input.charCodeAt(peg$currPos) === 47) {
2858
+ s5 = peg$c142;
2859
+ peg$currPos++;
2860
+ } else {
2861
+ s5 = peg$FAILED;
2862
+ if (peg$silentFails === 0) { peg$fail(peg$c143); }
2863
+ }
2864
+ }
2865
+ if (s5 !== peg$FAILED) {
2866
+ s6 = [];
2867
+ s7 = peg$parseS();
2868
+ while (s7 !== peg$FAILED) {
2869
+ s6.push(s7);
2870
+ s7 = peg$parseS();
2871
+ }
2872
+ if (s6 !== peg$FAILED) {
2873
+ s7 = peg$parseArithmeticPrimary();
2874
+ if (s7 !== peg$FAILED) {
2875
+ peg$savedPos = s3;
2876
+ s4 = peg$c144(s1, s5, s7);
2877
+ s3 = s4;
2878
+ } else {
2879
+ peg$currPos = s3;
2880
+ s3 = peg$FAILED;
2881
+ }
2882
+ } else {
2883
+ peg$currPos = s3;
2884
+ s3 = peg$FAILED;
2885
+ }
2886
+ } else {
2887
+ peg$currPos = s3;
2888
+ s3 = peg$FAILED;
2889
+ }
2890
+ } else {
2891
+ peg$currPos = s3;
2892
+ s3 = peg$FAILED;
2893
+ }
2894
+ }
2895
+ if (s2 !== peg$FAILED) {
2896
+ peg$savedPos = s0;
2897
+ s1 = peg$c145(s1, s2);
2898
+ s0 = s1;
2899
+ } else {
2900
+ peg$currPos = s0;
2901
+ s0 = peg$FAILED;
2902
+ }
2903
+ } else {
2904
+ peg$currPos = s0;
2905
+ s0 = peg$FAILED;
2906
+ }
2907
+
2908
+ return s0;
2909
+ }
2910
+
2911
+ function peg$parseArithmeticExpression() {
2912
+ var s0, s1, s2, s3, s4, s5, s6, s7;
2913
+
2914
+ s0 = peg$currPos;
2915
+ s1 = peg$parseArithmeticTimesExpression();
2916
+ if (s1 !== peg$FAILED) {
2917
+ s2 = [];
2918
+ s3 = peg$currPos;
2919
+ s4 = [];
2920
+ s5 = peg$parseS();
2921
+ while (s5 !== peg$FAILED) {
2922
+ s4.push(s5);
2923
+ s5 = peg$parseS();
2924
+ }
2925
+ if (s4 !== peg$FAILED) {
2926
+ if (input.charCodeAt(peg$currPos) === 43) {
2927
+ s5 = peg$c131;
2928
+ peg$currPos++;
2929
+ } else {
2930
+ s5 = peg$FAILED;
2931
+ if (peg$silentFails === 0) { peg$fail(peg$c132); }
2932
+ }
2933
+ if (s5 === peg$FAILED) {
2934
+ if (input.charCodeAt(peg$currPos) === 45) {
2935
+ s5 = peg$c129;
2936
+ peg$currPos++;
2937
+ } else {
2938
+ s5 = peg$FAILED;
2939
+ if (peg$silentFails === 0) { peg$fail(peg$c130); }
2940
+ }
2941
+ }
2942
+ if (s5 !== peg$FAILED) {
2943
+ s6 = [];
2944
+ s7 = peg$parseS();
2945
+ while (s7 !== peg$FAILED) {
2946
+ s6.push(s7);
2947
+ s7 = peg$parseS();
2948
+ }
2949
+ if (s6 !== peg$FAILED) {
2950
+ s7 = peg$parseArithmeticTimesExpression();
2951
+ if (s7 !== peg$FAILED) {
2952
+ peg$savedPos = s3;
2953
+ s4 = peg$c146(s1, s5, s7);
2954
+ s3 = s4;
2955
+ } else {
2956
+ peg$currPos = s3;
2957
+ s3 = peg$FAILED;
2958
+ }
2959
+ } else {
2960
+ peg$currPos = s3;
2961
+ s3 = peg$FAILED;
2962
+ }
2963
+ } else {
2964
+ peg$currPos = s3;
2965
+ s3 = peg$FAILED;
2966
+ }
2967
+ } else {
2968
+ peg$currPos = s3;
2969
+ s3 = peg$FAILED;
2970
+ }
2971
+ while (s3 !== peg$FAILED) {
2972
+ s2.push(s3);
2973
+ s3 = peg$currPos;
2974
+ s4 = [];
2975
+ s5 = peg$parseS();
2976
+ while (s5 !== peg$FAILED) {
2977
+ s4.push(s5);
2978
+ s5 = peg$parseS();
2979
+ }
2980
+ if (s4 !== peg$FAILED) {
2981
+ if (input.charCodeAt(peg$currPos) === 43) {
2982
+ s5 = peg$c131;
2983
+ peg$currPos++;
2984
+ } else {
2985
+ s5 = peg$FAILED;
2986
+ if (peg$silentFails === 0) { peg$fail(peg$c132); }
2987
+ }
2988
+ if (s5 === peg$FAILED) {
2989
+ if (input.charCodeAt(peg$currPos) === 45) {
2990
+ s5 = peg$c129;
2991
+ peg$currPos++;
2992
+ } else {
2993
+ s5 = peg$FAILED;
2994
+ if (peg$silentFails === 0) { peg$fail(peg$c130); }
2995
+ }
2996
+ }
2997
+ if (s5 !== peg$FAILED) {
2998
+ s6 = [];
2999
+ s7 = peg$parseS();
3000
+ while (s7 !== peg$FAILED) {
3001
+ s6.push(s7);
3002
+ s7 = peg$parseS();
3003
+ }
3004
+ if (s6 !== peg$FAILED) {
3005
+ s7 = peg$parseArithmeticTimesExpression();
3006
+ if (s7 !== peg$FAILED) {
3007
+ peg$savedPos = s3;
3008
+ s4 = peg$c146(s1, s5, s7);
3009
+ s3 = s4;
3010
+ } else {
3011
+ peg$currPos = s3;
3012
+ s3 = peg$FAILED;
3013
+ }
3014
+ } else {
3015
+ peg$currPos = s3;
3016
+ s3 = peg$FAILED;
3017
+ }
3018
+ } else {
3019
+ peg$currPos = s3;
3020
+ s3 = peg$FAILED;
3021
+ }
3022
+ } else {
3023
+ peg$currPos = s3;
3024
+ s3 = peg$FAILED;
3025
+ }
3026
+ }
3027
+ if (s2 !== peg$FAILED) {
3028
+ peg$savedPos = s0;
3029
+ s1 = peg$c145(s1, s2);
3030
+ s0 = s1;
3031
+ } else {
3032
+ peg$currPos = s0;
3033
+ s0 = peg$FAILED;
3034
+ }
3035
+ } else {
3036
+ peg$currPos = s0;
3037
+ s0 = peg$FAILED;
3038
+ }
3039
+
3040
+ return s0;
3041
+ }
3042
+
3043
+ function peg$parseArithmetic() {
3044
+ var s0, s1, s2, s3, s4, s5;
3045
+
3046
+ s0 = peg$currPos;
3047
+ if (input.substr(peg$currPos, 3) === peg$c147) {
3048
+ s1 = peg$c147;
3049
+ peg$currPos += 3;
3050
+ } else {
3051
+ s1 = peg$FAILED;
3052
+ if (peg$silentFails === 0) { peg$fail(peg$c148); }
3053
+ }
3054
+ if (s1 !== peg$FAILED) {
3055
+ s2 = [];
3056
+ s3 = peg$parseS();
3057
+ while (s3 !== peg$FAILED) {
3058
+ s2.push(s3);
3059
+ s3 = peg$parseS();
3060
+ }
3061
+ if (s2 !== peg$FAILED) {
3062
+ s3 = peg$parseArithmeticExpression();
3063
+ if (s3 !== peg$FAILED) {
3064
+ s4 = [];
3065
+ s5 = peg$parseS();
3066
+ while (s5 !== peg$FAILED) {
3067
+ s4.push(s5);
3068
+ s5 = peg$parseS();
3069
+ }
3070
+ if (s4 !== peg$FAILED) {
3071
+ if (input.substr(peg$currPos, 2) === peg$c149) {
3072
+ s5 = peg$c149;
3073
+ peg$currPos += 2;
3074
+ } else {
3075
+ s5 = peg$FAILED;
3076
+ if (peg$silentFails === 0) { peg$fail(peg$c150); }
3077
+ }
3078
+ if (s5 !== peg$FAILED) {
3079
+ peg$savedPos = s0;
3080
+ s1 = peg$c151(s3);
3081
+ s0 = s1;
3082
+ } else {
3083
+ peg$currPos = s0;
3084
+ s0 = peg$FAILED;
3085
+ }
3086
+ } else {
3087
+ peg$currPos = s0;
3088
+ s0 = peg$FAILED;
3089
+ }
3090
+ } else {
3091
+ peg$currPos = s0;
3092
+ s0 = peg$FAILED;
3093
+ }
3094
+ } else {
3095
+ peg$currPos = s0;
3096
+ s0 = peg$FAILED;
3097
+ }
3098
+ } else {
3099
+ peg$currPos = s0;
3100
+ s0 = peg$FAILED;
3101
+ }
3102
+
3103
+ return s0;
3104
+ }
3105
+
3106
+ function peg$parseSubshell() {
3107
+ var s0, s1, s2, s3;
3108
+
3109
+ s0 = peg$currPos;
3110
+ if (input.substr(peg$currPos, 2) === peg$c152) {
3111
+ s1 = peg$c152;
3112
+ peg$currPos += 2;
3113
+ } else {
3114
+ s1 = peg$FAILED;
3115
+ if (peg$silentFails === 0) { peg$fail(peg$c153); }
3116
+ }
3117
+ if (s1 !== peg$FAILED) {
3118
+ s2 = peg$parseShellLine();
3119
+ if (s2 !== peg$FAILED) {
3120
+ if (input.charCodeAt(peg$currPos) === 41) {
3121
+ s3 = peg$c26;
3122
+ peg$currPos++;
3123
+ } else {
3124
+ s3 = peg$FAILED;
3125
+ if (peg$silentFails === 0) { peg$fail(peg$c27); }
3126
+ }
3127
+ if (s3 !== peg$FAILED) {
3128
+ peg$savedPos = s0;
3129
+ s1 = peg$c154(s2);
3130
+ s0 = s1;
3131
+ } else {
3132
+ peg$currPos = s0;
3133
+ s0 = peg$FAILED;
3134
+ }
3135
+ } else {
3136
+ peg$currPos = s0;
3137
+ s0 = peg$FAILED;
3138
+ }
3139
+ } else {
3140
+ peg$currPos = s0;
3141
+ s0 = peg$FAILED;
3142
+ }
3143
+
3144
+ return s0;
3145
+ }
3146
+
3147
+ function peg$parseVariable() {
3148
+ var s0, s1, s2, s3, s4, s5;
3149
+
3150
+ s0 = peg$currPos;
3151
+ if (input.substr(peg$currPos, 2) === peg$c155) {
3152
+ s1 = peg$c155;
3153
+ peg$currPos += 2;
3154
+ } else {
3155
+ s1 = peg$FAILED;
3156
+ if (peg$silentFails === 0) { peg$fail(peg$c156); }
3157
+ }
3158
+ if (s1 !== peg$FAILED) {
3159
+ s2 = peg$parseIdentifier();
3160
+ if (s2 !== peg$FAILED) {
3161
+ if (input.substr(peg$currPos, 2) === peg$c157) {
3162
+ s3 = peg$c157;
3163
+ peg$currPos += 2;
3164
+ } else {
3165
+ s3 = peg$FAILED;
3166
+ if (peg$silentFails === 0) { peg$fail(peg$c158); }
3167
+ }
3168
+ if (s3 !== peg$FAILED) {
3169
+ s4 = peg$parseCommandString();
3170
+ if (s4 !== peg$FAILED) {
3171
+ if (input.charCodeAt(peg$currPos) === 125) {
3172
+ s5 = peg$c31;
3173
+ peg$currPos++;
3174
+ } else {
3175
+ s5 = peg$FAILED;
3176
+ if (peg$silentFails === 0) { peg$fail(peg$c32); }
3177
+ }
3178
+ if (s5 !== peg$FAILED) {
3179
+ peg$savedPos = s0;
3180
+ s1 = peg$c159(s2, s4);
3181
+ s0 = s1;
3182
+ } else {
3183
+ peg$currPos = s0;
3184
+ s0 = peg$FAILED;
3185
+ }
3186
+ } else {
3187
+ peg$currPos = s0;
3188
+ s0 = peg$FAILED;
3189
+ }
3190
+ } else {
3191
+ peg$currPos = s0;
3192
+ s0 = peg$FAILED;
3193
+ }
3194
+ } else {
3195
+ peg$currPos = s0;
3196
+ s0 = peg$FAILED;
3197
+ }
3198
+ } else {
3199
+ peg$currPos = s0;
3200
+ s0 = peg$FAILED;
3201
+ }
3202
+ if (s0 === peg$FAILED) {
3203
+ s0 = peg$currPos;
3204
+ if (input.substr(peg$currPos, 2) === peg$c155) {
3205
+ s1 = peg$c155;
3206
+ peg$currPos += 2;
3207
+ } else {
3208
+ s1 = peg$FAILED;
3209
+ if (peg$silentFails === 0) { peg$fail(peg$c156); }
3210
+ }
3211
+ if (s1 !== peg$FAILED) {
3212
+ s2 = peg$parseIdentifier();
3213
+ if (s2 !== peg$FAILED) {
3214
+ if (input.substr(peg$currPos, 3) === peg$c160) {
3215
+ s3 = peg$c160;
3216
+ peg$currPos += 3;
3217
+ } else {
3218
+ s3 = peg$FAILED;
3219
+ if (peg$silentFails === 0) { peg$fail(peg$c161); }
3220
+ }
3221
+ if (s3 !== peg$FAILED) {
3222
+ peg$savedPos = s0;
3223
+ s1 = peg$c162(s2);
3224
+ s0 = s1;
3225
+ } else {
3226
+ peg$currPos = s0;
3227
+ s0 = peg$FAILED;
3228
+ }
3229
+ } else {
3230
+ peg$currPos = s0;
3231
+ s0 = peg$FAILED;
3232
+ }
3233
+ } else {
3234
+ peg$currPos = s0;
3235
+ s0 = peg$FAILED;
3236
+ }
3237
+ if (s0 === peg$FAILED) {
3238
+ s0 = peg$currPos;
3239
+ if (input.substr(peg$currPos, 2) === peg$c155) {
3240
+ s1 = peg$c155;
3241
+ peg$currPos += 2;
3242
+ } else {
3243
+ s1 = peg$FAILED;
3244
+ if (peg$silentFails === 0) { peg$fail(peg$c156); }
3245
+ }
3246
+ if (s1 !== peg$FAILED) {
3247
+ s2 = peg$parseIdentifier();
3248
+ if (s2 !== peg$FAILED) {
3249
+ if (input.substr(peg$currPos, 2) === peg$c163) {
3250
+ s3 = peg$c163;
3251
+ peg$currPos += 2;
3252
+ } else {
3253
+ s3 = peg$FAILED;
3254
+ if (peg$silentFails === 0) { peg$fail(peg$c164); }
3255
+ }
3256
+ if (s3 !== peg$FAILED) {
3257
+ s4 = peg$parseCommandString();
3258
+ if (s4 !== peg$FAILED) {
3259
+ if (input.charCodeAt(peg$currPos) === 125) {
3260
+ s5 = peg$c31;
3261
+ peg$currPos++;
3262
+ } else {
3263
+ s5 = peg$FAILED;
3264
+ if (peg$silentFails === 0) { peg$fail(peg$c32); }
3265
+ }
3266
+ if (s5 !== peg$FAILED) {
3267
+ peg$savedPos = s0;
3268
+ s1 = peg$c165(s2, s4);
3269
+ s0 = s1;
3270
+ } else {
3271
+ peg$currPos = s0;
3272
+ s0 = peg$FAILED;
3273
+ }
3274
+ } else {
3275
+ peg$currPos = s0;
3276
+ s0 = peg$FAILED;
3277
+ }
3278
+ } else {
3279
+ peg$currPos = s0;
3280
+ s0 = peg$FAILED;
3281
+ }
3282
+ } else {
3283
+ peg$currPos = s0;
3284
+ s0 = peg$FAILED;
3285
+ }
3286
+ } else {
3287
+ peg$currPos = s0;
3288
+ s0 = peg$FAILED;
3289
+ }
3290
+ if (s0 === peg$FAILED) {
3291
+ s0 = peg$currPos;
3292
+ if (input.substr(peg$currPos, 2) === peg$c155) {
3293
+ s1 = peg$c155;
3294
+ peg$currPos += 2;
3295
+ } else {
3296
+ s1 = peg$FAILED;
3297
+ if (peg$silentFails === 0) { peg$fail(peg$c156); }
3298
+ }
3299
+ if (s1 !== peg$FAILED) {
3300
+ s2 = peg$parseIdentifier();
3301
+ if (s2 !== peg$FAILED) {
3302
+ if (input.substr(peg$currPos, 3) === peg$c166) {
3303
+ s3 = peg$c166;
3304
+ peg$currPos += 3;
3305
+ } else {
3306
+ s3 = peg$FAILED;
3307
+ if (peg$silentFails === 0) { peg$fail(peg$c167); }
3308
+ }
3309
+ if (s3 !== peg$FAILED) {
3310
+ peg$savedPos = s0;
3311
+ s1 = peg$c168(s2);
3312
+ s0 = s1;
3313
+ } else {
3314
+ peg$currPos = s0;
3315
+ s0 = peg$FAILED;
3316
+ }
3317
+ } else {
3318
+ peg$currPos = s0;
3319
+ s0 = peg$FAILED;
3320
+ }
3321
+ } else {
3322
+ peg$currPos = s0;
3323
+ s0 = peg$FAILED;
3324
+ }
3325
+ if (s0 === peg$FAILED) {
3326
+ s0 = peg$currPos;
3327
+ if (input.substr(peg$currPos, 2) === peg$c155) {
3328
+ s1 = peg$c155;
3329
+ peg$currPos += 2;
3330
+ } else {
3331
+ s1 = peg$FAILED;
3332
+ if (peg$silentFails === 0) { peg$fail(peg$c156); }
3333
+ }
3334
+ if (s1 !== peg$FAILED) {
3335
+ s2 = peg$parseIdentifier();
3336
+ if (s2 !== peg$FAILED) {
3337
+ if (input.charCodeAt(peg$currPos) === 125) {
3338
+ s3 = peg$c31;
3339
+ peg$currPos++;
3340
+ } else {
3341
+ s3 = peg$FAILED;
3342
+ if (peg$silentFails === 0) { peg$fail(peg$c32); }
3343
+ }
3344
+ if (s3 !== peg$FAILED) {
3345
+ peg$savedPos = s0;
3346
+ s1 = peg$c169(s2);
3347
+ s0 = s1;
3348
+ } else {
3349
+ peg$currPos = s0;
3350
+ s0 = peg$FAILED;
3351
+ }
3352
+ } else {
3353
+ peg$currPos = s0;
3354
+ s0 = peg$FAILED;
3355
+ }
3356
+ } else {
3357
+ peg$currPos = s0;
3358
+ s0 = peg$FAILED;
3359
+ }
3360
+ if (s0 === peg$FAILED) {
3361
+ s0 = peg$currPos;
3362
+ if (input.charCodeAt(peg$currPos) === 36) {
3363
+ s1 = peg$c170;
3364
+ peg$currPos++;
3365
+ } else {
3366
+ s1 = peg$FAILED;
3367
+ if (peg$silentFails === 0) { peg$fail(peg$c171); }
3368
+ }
3369
+ if (s1 !== peg$FAILED) {
3370
+ s2 = peg$parseIdentifier();
3371
+ if (s2 !== peg$FAILED) {
3372
+ peg$savedPos = s0;
3373
+ s1 = peg$c169(s2);
3374
+ s0 = s1;
3375
+ } else {
3376
+ peg$currPos = s0;
3377
+ s0 = peg$FAILED;
3378
+ }
3379
+ } else {
3380
+ peg$currPos = s0;
3381
+ s0 = peg$FAILED;
3382
+ }
3383
+ }
3384
+ }
3385
+ }
3386
+ }
3387
+ }
3388
+
3389
+ return s0;
3390
+ }
3391
+
3392
+ function peg$parseGlob() {
3393
+ var s0, s1, s2;
3394
+
3395
+ s0 = peg$currPos;
3396
+ s1 = peg$parseGlobText();
3397
+ if (s1 !== peg$FAILED) {
3398
+ peg$savedPos = peg$currPos;
3399
+ s2 = peg$c172(s1);
3400
+ if (s2) {
3401
+ s2 = void 0;
3402
+ } else {
3403
+ s2 = peg$FAILED;
3404
+ }
3405
+ if (s2 !== peg$FAILED) {
3406
+ peg$savedPos = s0;
3407
+ s1 = peg$c173(s1);
3408
+ s0 = s1;
3409
+ } else {
3410
+ peg$currPos = s0;
3411
+ s0 = peg$FAILED;
3412
+ }
3413
+ } else {
3414
+ peg$currPos = s0;
3415
+ s0 = peg$FAILED;
3416
+ }
3417
+
3418
+ return s0;
3419
+ }
3420
+
3421
+ function peg$parseGlobText() {
3422
+ var s0, s1, s2, s3, s4;
3423
+
3424
+ s0 = peg$currPos;
3425
+ s1 = [];
3426
+ s2 = peg$currPos;
3427
+ s3 = peg$currPos;
3428
+ peg$silentFails++;
3429
+ s4 = peg$parseGlobSpecialShellChars();
3430
+ peg$silentFails--;
3431
+ if (s4 === peg$FAILED) {
3432
+ s3 = void 0;
3433
+ } else {
3434
+ peg$currPos = s3;
3435
+ s3 = peg$FAILED;
3436
+ }
3437
+ if (s3 !== peg$FAILED) {
3438
+ if (input.length > peg$currPos) {
3439
+ s4 = input.charAt(peg$currPos);
3440
+ peg$currPos++;
3441
+ } else {
3442
+ s4 = peg$FAILED;
3443
+ if (peg$silentFails === 0) { peg$fail(peg$c125); }
3444
+ }
3445
+ if (s4 !== peg$FAILED) {
3446
+ peg$savedPos = s2;
3447
+ s3 = peg$c86(s4);
3448
+ s2 = s3;
3449
+ } else {
3450
+ peg$currPos = s2;
3451
+ s2 = peg$FAILED;
3452
+ }
3453
+ } else {
3454
+ peg$currPos = s2;
3455
+ s2 = peg$FAILED;
3456
+ }
3457
+ if (s2 !== peg$FAILED) {
3458
+ while (s2 !== peg$FAILED) {
3459
+ s1.push(s2);
3460
+ s2 = peg$currPos;
3461
+ s3 = peg$currPos;
3462
+ peg$silentFails++;
3463
+ s4 = peg$parseGlobSpecialShellChars();
3464
+ peg$silentFails--;
3465
+ if (s4 === peg$FAILED) {
3466
+ s3 = void 0;
3467
+ } else {
3468
+ peg$currPos = s3;
3469
+ s3 = peg$FAILED;
3470
+ }
3471
+ if (s3 !== peg$FAILED) {
3472
+ if (input.length > peg$currPos) {
3473
+ s4 = input.charAt(peg$currPos);
3474
+ peg$currPos++;
3475
+ } else {
3476
+ s4 = peg$FAILED;
3477
+ if (peg$silentFails === 0) { peg$fail(peg$c125); }
3478
+ }
3479
+ if (s4 !== peg$FAILED) {
3480
+ peg$savedPos = s2;
3481
+ s3 = peg$c86(s4);
3482
+ s2 = s3;
3483
+ } else {
3484
+ peg$currPos = s2;
3485
+ s2 = peg$FAILED;
3486
+ }
3487
+ } else {
3488
+ peg$currPos = s2;
3489
+ s2 = peg$FAILED;
3490
+ }
3491
+ }
3492
+ } else {
3493
+ s1 = peg$FAILED;
3494
+ }
3495
+ if (s1 !== peg$FAILED) {
3496
+ peg$savedPos = s0;
3497
+ s1 = peg$c76(s1);
3498
+ }
3499
+ s0 = s1;
3500
+
3501
+ return s0;
3502
+ }
3503
+
3504
+ function peg$parseEnvVariable() {
3505
+ var s0, s1, s2;
3506
+
3507
+ s0 = peg$currPos;
3508
+ s1 = [];
3509
+ if (peg$c174.test(input.charAt(peg$currPos))) {
3510
+ s2 = input.charAt(peg$currPos);
3511
+ peg$currPos++;
3512
+ } else {
3513
+ s2 = peg$FAILED;
3514
+ if (peg$silentFails === 0) { peg$fail(peg$c175); }
3515
+ }
3516
+ if (s2 !== peg$FAILED) {
3517
+ while (s2 !== peg$FAILED) {
3518
+ s1.push(s2);
3519
+ if (peg$c174.test(input.charAt(peg$currPos))) {
3520
+ s2 = input.charAt(peg$currPos);
3521
+ peg$currPos++;
3522
+ } else {
3523
+ s2 = peg$FAILED;
3524
+ if (peg$silentFails === 0) { peg$fail(peg$c175); }
3525
+ }
3526
+ }
3527
+ } else {
3528
+ s1 = peg$FAILED;
3529
+ }
3530
+ if (s1 !== peg$FAILED) {
3531
+ peg$savedPos = s0;
3532
+ s1 = peg$c176();
3533
+ }
3534
+ s0 = s1;
3535
+
3536
+ return s0;
3537
+ }
3538
+
3539
+ function peg$parseIdentifier() {
3540
+ var s0, s1, s2;
3541
+
3542
+ s0 = peg$currPos;
3543
+ s1 = [];
3544
+ if (peg$c177.test(input.charAt(peg$currPos))) {
3545
+ s2 = input.charAt(peg$currPos);
3546
+ peg$currPos++;
3547
+ } else {
3548
+ s2 = peg$FAILED;
3549
+ if (peg$silentFails === 0) { peg$fail(peg$c178); }
3550
+ }
3551
+ if (s2 !== peg$FAILED) {
3552
+ while (s2 !== peg$FAILED) {
3553
+ s1.push(s2);
3554
+ if (peg$c177.test(input.charAt(peg$currPos))) {
3555
+ s2 = input.charAt(peg$currPos);
3556
+ peg$currPos++;
3557
+ } else {
3558
+ s2 = peg$FAILED;
3559
+ if (peg$silentFails === 0) { peg$fail(peg$c178); }
3560
+ }
3561
+ }
3562
+ } else {
3563
+ s1 = peg$FAILED;
3564
+ }
3565
+ if (s1 !== peg$FAILED) {
3566
+ peg$savedPos = s0;
3567
+ s1 = peg$c176();
3568
+ }
3569
+ s0 = s1;
3570
+
3571
+ return s0;
3572
+ }
3573
+
3574
+ function peg$parseSpecialShellChars() {
3575
+ var s0;
3576
+
3577
+ if (peg$c179.test(input.charAt(peg$currPos))) {
3578
+ s0 = input.charAt(peg$currPos);
3579
+ peg$currPos++;
3580
+ } else {
3581
+ s0 = peg$FAILED;
3582
+ if (peg$silentFails === 0) { peg$fail(peg$c180); }
3583
+ }
3584
+
3585
+ return s0;
3586
+ }
3587
+
3588
+ function peg$parseGlobSpecialShellChars() {
3589
+ var s0;
3590
+
3591
+ if (peg$c181.test(input.charAt(peg$currPos))) {
3592
+ s0 = input.charAt(peg$currPos);
3593
+ peg$currPos++;
3594
+ } else {
3595
+ s0 = peg$FAILED;
3596
+ if (peg$silentFails === 0) { peg$fail(peg$c182); }
3597
+ }
3598
+
3599
+ return s0;
3600
+ }
3601
+
3602
+ function peg$parseS() {
3603
+ var s0, s1;
3604
+
3605
+ s0 = [];
3606
+ if (peg$c183.test(input.charAt(peg$currPos))) {
3607
+ s1 = input.charAt(peg$currPos);
3608
+ peg$currPos++;
3609
+ } else {
3610
+ s1 = peg$FAILED;
3611
+ if (peg$silentFails === 0) { peg$fail(peg$c184); }
3612
+ }
3613
+ if (s1 !== peg$FAILED) {
3614
+ while (s1 !== peg$FAILED) {
3615
+ s0.push(s1);
3616
+ if (peg$c183.test(input.charAt(peg$currPos))) {
3617
+ s1 = input.charAt(peg$currPos);
3618
+ peg$currPos++;
3619
+ } else {
3620
+ s1 = peg$FAILED;
3621
+ if (peg$silentFails === 0) { peg$fail(peg$c184); }
3622
+ }
3623
+ }
3624
+ } else {
3625
+ s0 = peg$FAILED;
3626
+ }
3627
+
3628
+ return s0;
3629
+ }
3630
+
3631
+ peg$result = peg$startRuleFunction();
3632
+
3633
+ if (peg$result !== peg$FAILED && peg$currPos === input.length) {
3634
+ return peg$result;
3635
+ } else {
3636
+ if (peg$result !== peg$FAILED && peg$currPos < input.length) {
3637
+ peg$fail(peg$endExpectation());
3638
+ }
3639
+
3640
+ throw peg$buildStructuredError(
3641
+ peg$maxFailExpected,
3642
+ peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null,
3643
+ peg$maxFailPos < input.length
3644
+ ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1)
3645
+ : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)
3646
+ );
3647
+ }
3648
+ }
3649
+
3650
+ module.exports = {
3651
+ SyntaxError: peg$SyntaxError,
3652
+ parse: peg$parse
3653
+ };