@bleedingdev/modern-js-utils 3.9.0-ultramodern.9 → 3.9.3-ultramodern.1

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 (1396) hide show
  1. package/dist/cjs/cli/applyOptionsChain.js +1 -1
  2. package/dist/cjs/cli/get/config.js +1 -1
  3. package/dist/cjs/cli/is/config.js +1 -1
  4. package/dist/cjs/cli/require.js +3 -7
  5. package/dist/cjs/compiled.js +28 -34
  6. package/dist/cjs/fast-glob.js +50 -0
  7. package/dist/cjs/watch-options.js +18 -0
  8. package/dist/compiled/address/LICENSE.txt +22 -0
  9. package/dist/compiled/address/declaration-licenses/address/LICENSE.txt +22 -0
  10. package/dist/compiled/address/index.d.mts +50 -0
  11. package/dist/compiled/address/index.d.ts +50 -0
  12. package/dist/compiled/address/index.js +189 -136
  13. package/dist/compiled/address/index.mjs +187 -0
  14. package/dist/compiled/address/licenses-cjs.txt +24 -0
  15. package/dist/compiled/address/licenses-esm.txt +24 -0
  16. package/dist/compiled/address/package.json +1 -1
  17. package/dist/compiled/address/provenance.json +22 -0
  18. package/dist/compiled/browserslist/LICENSE +20 -0
  19. package/dist/compiled/browserslist/declaration-licenses/browserslist/LICENSE +20 -0
  20. package/dist/compiled/browserslist/index.d.ts +51 -5
  21. package/dist/compiled/browserslist/index.js +1763 -820
  22. package/dist/compiled/browserslist/licenses-cjs.txt +286 -0
  23. package/dist/compiled/browserslist/package.json +1 -1
  24. package/dist/compiled/browserslist/provenance.json +19 -0
  25. package/dist/compiled/chalk/declaration-licenses/chalk/license +9 -0
  26. package/dist/compiled/chalk/index.d.mts +677 -0
  27. package/dist/compiled/chalk/index.d.ts +619 -357
  28. package/dist/compiled/chalk/index.js +734 -2343
  29. package/dist/compiled/chalk/index.mjs +761 -0
  30. package/dist/compiled/chalk/license +1 -1
  31. package/dist/compiled/chalk/licenses-cjs.txt +11 -0
  32. package/dist/compiled/chalk/licenses-esm.txt +11 -0
  33. package/dist/compiled/chalk/package.json +1 -1
  34. package/dist/compiled/chalk/provenance.json +19 -0
  35. package/dist/compiled/chokidar/LICENSE +21 -0
  36. package/dist/compiled/chokidar/declaration-licenses/chokidar/LICENSE +21 -0
  37. package/dist/compiled/chokidar/declaration-licenses/readdirp/LICENSE +21 -0
  38. package/dist/compiled/chokidar/index.d.mts +385 -0
  39. package/dist/compiled/chokidar/index.d.ts +385 -0
  40. package/dist/compiled/chokidar/index.js +1437 -4099
  41. package/dist/compiled/chokidar/index.js.LICENSE.txt +1 -41
  42. package/dist/compiled/chokidar/index.mjs +1492 -0
  43. package/dist/compiled/chokidar/index.mjs.LICENSE.txt +1 -0
  44. package/dist/compiled/chokidar/licenses-cjs.txt +48 -0
  45. package/dist/compiled/chokidar/licenses-esm.txt +48 -0
  46. package/dist/compiled/chokidar/package.json +1 -1
  47. package/dist/compiled/chokidar/provenance.json +27 -0
  48. package/dist/compiled/commander/declaration-licenses/commander/LICENSE +22 -0
  49. package/dist/compiled/commander/index.d.mts +1116 -0
  50. package/dist/compiled/commander/index.d.ts +1116 -0
  51. package/dist/compiled/commander/index.js +1738 -1499
  52. package/dist/compiled/commander/index.mjs +1778 -2
  53. package/dist/compiled/commander/licenses-cjs.txt +24 -0
  54. package/dist/compiled/commander/licenses-esm.txt +24 -0
  55. package/dist/compiled/commander/package.json +1 -1
  56. package/dist/compiled/commander/provenance.json +22 -0
  57. package/dist/compiled/debug/declaration-licenses/@types_ms/LICENSE +21 -0
  58. package/dist/compiled/debug/index.d.ts +79 -16
  59. package/dist/compiled/debug/index.js +172 -106
  60. package/dist/compiled/debug/licenses-cjs.txt +60 -0
  61. package/dist/compiled/debug/package.json +1 -1
  62. package/dist/compiled/debug/provenance.json +27 -0
  63. package/dist/compiled/dotenv-expand/declaration-licenses/dotenv-expand/LICENSE +24 -0
  64. package/dist/compiled/dotenv-expand/index.d.ts +48 -10
  65. package/dist/compiled/dotenv-expand/index.js +65 -41
  66. package/dist/compiled/dotenv-expand/licenses-cjs.txt +25 -0
  67. package/dist/compiled/dotenv-expand/package.json +1 -1
  68. package/dist/compiled/dotenv-expand/provenance.json +22 -0
  69. package/dist/compiled/execa/declaration-licenses/execa/license +9 -0
  70. package/dist/compiled/execa/index.d.mts +2451 -0
  71. package/dist/compiled/execa/index.d.ts +2301 -414
  72. package/dist/compiled/execa/index.js +6485 -1681
  73. package/dist/compiled/execa/index.mjs +6541 -0
  74. package/dist/compiled/execa/licenses-cjs.txt +443 -0
  75. package/dist/compiled/execa/licenses-esm.txt +443 -0
  76. package/dist/compiled/execa/package.json +1 -1
  77. package/dist/compiled/execa/provenance.json +19 -0
  78. package/dist/compiled/filesize/LICENSE +28 -0
  79. package/dist/compiled/filesize/declaration-licenses/filesize/LICENSE +28 -0
  80. package/dist/compiled/filesize/index.d.mts +98 -0
  81. package/dist/compiled/filesize/index.d.ts +98 -0
  82. package/dist/compiled/filesize/index.js +425 -185
  83. package/dist/compiled/filesize/index.js.LICENSE.txt +2 -2
  84. package/dist/compiled/filesize/index.mjs +450 -0
  85. package/dist/compiled/filesize/index.mjs.LICENSE.txt +7 -0
  86. package/dist/compiled/filesize/licenses-cjs.txt +29 -0
  87. package/dist/compiled/filesize/licenses-esm.txt +29 -0
  88. package/dist/compiled/filesize/package.json +1 -1
  89. package/dist/compiled/filesize/provenance.json +22 -0
  90. package/dist/compiled/fs-extra/LICENSE +15 -0
  91. package/dist/compiled/fs-extra/declaration-licenses/@types_fs-extra/LICENSE +21 -0
  92. package/dist/compiled/fs-extra/declaration-licenses/@types_jsonfile/LICENSE +21 -0
  93. package/dist/compiled/fs-extra/index.d.ts +997 -496
  94. package/dist/compiled/fs-extra/index.js +1142 -1355
  95. package/dist/compiled/fs-extra/licenses-cjs.txt +79 -0
  96. package/dist/compiled/fs-extra/package.json +1 -1
  97. package/dist/compiled/fs-extra/provenance.json +27 -0
  98. package/dist/compiled/glob/LICENSE.md +63 -0
  99. package/dist/compiled/glob/declaration-licenses/glob/LICENSE.md +63 -0
  100. package/dist/compiled/glob/declaration-licenses/lru-cache/LICENSE.md +55 -0
  101. package/dist/compiled/glob/declaration-licenses/minimatch/LICENSE.md +55 -0
  102. package/dist/compiled/glob/declaration-licenses/minipass/LICENSE.md +55 -0
  103. package/dist/compiled/glob/declaration-licenses/path-scurry/LICENSE.md +55 -0
  104. package/dist/compiled/glob/index.d.mts +3823 -0
  105. package/dist/compiled/glob/index.d.ts +3823 -91
  106. package/dist/compiled/glob/index.js +3612 -1937
  107. package/dist/compiled/glob/index.mjs +3467 -0
  108. package/dist/compiled/glob/licenses-cjs.txt +65 -0
  109. package/dist/compiled/glob/licenses-esm.txt +65 -0
  110. package/dist/compiled/glob/package.json +1 -1
  111. package/dist/compiled/glob/provenance.json +42 -0
  112. package/dist/compiled/globby/declaration-licenses/globby/license +9 -0
  113. package/dist/compiled/globby/index.d.mts +422 -0
  114. package/dist/compiled/globby/index.d.ts +364 -128
  115. package/dist/compiled/globby/index.js +4417 -521
  116. package/dist/compiled/globby/index.js.LICENSE.txt +20 -0
  117. package/dist/compiled/globby/index.mjs +4572 -0
  118. package/dist/compiled/globby/index.mjs.LICENSE.txt +20 -0
  119. package/dist/compiled/globby/license +1 -1
  120. package/dist/compiled/globby/licenses-cjs.txt +237 -0
  121. package/dist/compiled/globby/licenses-esm.txt +237 -0
  122. package/dist/compiled/globby/package.json +1 -1
  123. package/dist/compiled/globby/provenance.json +19 -0
  124. package/dist/compiled/gzip-size/declaration-licenses/gzip-size/license +9 -0
  125. package/dist/compiled/gzip-size/index.d.mts +106 -0
  126. package/dist/compiled/gzip-size/index.d.ts +91 -81
  127. package/dist/compiled/gzip-size/index.js +117 -94
  128. package/dist/compiled/gzip-size/index.mjs +170 -0
  129. package/dist/compiled/gzip-size/licenses-cjs.txt +33 -0
  130. package/dist/compiled/gzip-size/licenses-esm.txt +33 -0
  131. package/dist/compiled/gzip-size/package.json +1 -1
  132. package/dist/compiled/gzip-size/provenance.json +19 -0
  133. package/dist/compiled/import-lazy/declaration-licenses/import-lazy/license +9 -0
  134. package/dist/compiled/import-lazy/index.d.ts +2 -2
  135. package/dist/compiled/import-lazy/index.js +18 -19
  136. package/dist/compiled/import-lazy/licenses-cjs.txt +11 -0
  137. package/dist/compiled/import-lazy/package.json +1 -1
  138. package/dist/compiled/import-lazy/provenance.json +19 -0
  139. package/dist/compiled/inquirer/LICENSE +22 -0
  140. package/dist/compiled/inquirer/declaration-licenses/@inquirer_checkbox/LICENSE +22 -0
  141. package/dist/compiled/inquirer/declaration-licenses/@inquirer_confirm/LICENSE +22 -0
  142. package/dist/compiled/inquirer/declaration-licenses/@inquirer_core/LICENSE +22 -0
  143. package/dist/compiled/inquirer/declaration-licenses/@inquirer_editor/LICENSE +22 -0
  144. package/dist/compiled/inquirer/declaration-licenses/@inquirer_expand/LICENSE +22 -0
  145. package/dist/compiled/inquirer/declaration-licenses/@inquirer_external-editor/LICENSE +22 -0
  146. package/dist/compiled/inquirer/declaration-licenses/@inquirer_input/LICENSE +22 -0
  147. package/dist/compiled/inquirer/declaration-licenses/@inquirer_number/LICENSE +22 -0
  148. package/dist/compiled/inquirer/declaration-licenses/@inquirer_password/LICENSE +22 -0
  149. package/dist/compiled/inquirer/declaration-licenses/@inquirer_prompts/LICENSE +22 -0
  150. package/dist/compiled/inquirer/declaration-licenses/@inquirer_rawlist/LICENSE +22 -0
  151. package/dist/compiled/inquirer/declaration-licenses/@inquirer_search/LICENSE +22 -0
  152. package/dist/compiled/inquirer/declaration-licenses/@inquirer_select/LICENSE +22 -0
  153. package/dist/compiled/inquirer/declaration-licenses/@inquirer_type/LICENSE +22 -0
  154. package/dist/compiled/inquirer/declaration-licenses/inquirer/LICENSE +22 -0
  155. package/dist/compiled/inquirer/index.d.mts +790 -0
  156. package/dist/compiled/inquirer/index.d.ts +727 -934
  157. package/dist/compiled/inquirer/index.js +5975 -14467
  158. package/dist/compiled/inquirer/index.mjs +11624 -0
  159. package/dist/compiled/inquirer/licenses-cjs.txt +619 -0
  160. package/dist/compiled/inquirer/licenses-esm.txt +619 -0
  161. package/dist/compiled/inquirer/package.json +1 -1
  162. package/dist/compiled/inquirer/provenance.json +92 -0
  163. package/dist/compiled/js-yaml/declaration-licenses/js-yaml/LICENSE +21 -0
  164. package/dist/compiled/js-yaml/index.d.mts +1126 -0
  165. package/dist/compiled/js-yaml/index.d.ts +1114 -142
  166. package/dist/compiled/js-yaml/index.js +20 -21
  167. package/dist/compiled/js-yaml/index.js.LICENSE.txt +1 -1
  168. package/dist/compiled/js-yaml/index.mjs +5 -4
  169. package/dist/compiled/js-yaml/index.mjs.LICENSE.txt +1 -1
  170. package/dist/compiled/js-yaml/licenses-cjs.txt +23 -0
  171. package/dist/compiled/js-yaml/licenses-esm.txt +23 -0
  172. package/dist/compiled/js-yaml/package.json +1 -1
  173. package/dist/compiled/js-yaml/provenance.json +19 -0
  174. package/dist/compiled/json5/LICENSE.md +23 -0
  175. package/dist/compiled/json5/declaration-licenses/json5/LICENSE.md +23 -0
  176. package/dist/compiled/json5/index.d.ts +103 -0
  177. package/dist/compiled/json5/index.js +11 -11
  178. package/dist/compiled/json5/licenses-cjs.txt +25 -0
  179. package/dist/compiled/json5/package.json +1 -1
  180. package/dist/compiled/json5/provenance.json +22 -0
  181. package/dist/compiled/lodash/add.d.ts +2 -0
  182. package/dist/compiled/lodash/after.d.ts +2 -0
  183. package/dist/compiled/lodash/ary.d.ts +2 -0
  184. package/dist/compiled/lodash/assign.d.ts +2 -0
  185. package/dist/compiled/lodash/assignIn.d.ts +2 -0
  186. package/dist/compiled/lodash/assignInWith.d.ts +2 -0
  187. package/dist/compiled/lodash/assignWith.d.ts +2 -0
  188. package/dist/compiled/lodash/at.d.ts +2 -0
  189. package/dist/compiled/lodash/attempt.d.ts +2 -0
  190. package/dist/compiled/lodash/before.d.ts +2 -0
  191. package/dist/compiled/lodash/bind.d.ts +2 -0
  192. package/dist/compiled/lodash/bindAll.d.ts +2 -0
  193. package/dist/compiled/lodash/bindKey.d.ts +2 -0
  194. package/dist/compiled/lodash/camelCase.d.ts +2 -0
  195. package/dist/compiled/lodash/capitalize.d.ts +2 -0
  196. package/dist/compiled/lodash/castArray.d.ts +2 -0
  197. package/dist/compiled/lodash/ceil.d.ts +2 -0
  198. package/dist/compiled/lodash/chain.d.ts +2 -0
  199. package/dist/compiled/lodash/chunk.d.ts +2 -0
  200. package/dist/compiled/lodash/clamp.d.ts +2 -0
  201. package/dist/compiled/lodash/clone.d.ts +2 -0
  202. package/dist/compiled/lodash/cloneDeep.d.ts +2 -0
  203. package/dist/compiled/lodash/cloneDeepWith.d.ts +2 -0
  204. package/dist/compiled/lodash/cloneWith.d.ts +2 -0
  205. package/dist/compiled/lodash/common/array.d.ts +56 -22
  206. package/dist/compiled/lodash/common/collection.d.ts +9 -1
  207. package/dist/compiled/lodash/common/common.d.ts +17 -10
  208. package/dist/compiled/lodash/common/function.d.ts +10 -1
  209. package/dist/compiled/lodash/common/lang.d.ts +8 -5
  210. package/dist/compiled/lodash/common/math.d.ts +3 -1
  211. package/dist/compiled/lodash/common/object.d.ts +141 -17
  212. package/dist/compiled/lodash/common/seq.d.ts +2 -2
  213. package/dist/compiled/lodash/common/string.d.ts +17 -17
  214. package/dist/compiled/lodash/compact.d.ts +2 -0
  215. package/dist/compiled/lodash/concat.d.ts +2 -0
  216. package/dist/compiled/lodash/cond.d.ts +2 -0
  217. package/dist/compiled/lodash/conforms.d.ts +2 -0
  218. package/dist/compiled/lodash/conformsTo.d.ts +2 -0
  219. package/dist/compiled/lodash/constant.d.ts +2 -0
  220. package/dist/compiled/lodash/countBy.d.ts +2 -0
  221. package/dist/compiled/lodash/create.d.ts +2 -0
  222. package/dist/compiled/lodash/curry.d.ts +2 -0
  223. package/dist/compiled/lodash/curryRight.d.ts +2 -0
  224. package/dist/compiled/lodash/debounce.d.ts +2 -0
  225. package/dist/compiled/lodash/deburr.d.ts +2 -0
  226. package/dist/compiled/lodash/declaration-licenses/@types_lodash/LICENSE +21 -0
  227. package/dist/compiled/lodash/defaultTo.d.ts +2 -0
  228. package/dist/compiled/lodash/defaults.d.ts +2 -0
  229. package/dist/compiled/lodash/defaultsDeep.d.ts +2 -0
  230. package/dist/compiled/lodash/defer.d.ts +2 -0
  231. package/dist/compiled/lodash/delay.d.ts +2 -0
  232. package/dist/compiled/lodash/difference.d.ts +2 -0
  233. package/dist/compiled/lodash/differenceBy.d.ts +2 -0
  234. package/dist/compiled/lodash/differenceWith.d.ts +2 -0
  235. package/dist/compiled/lodash/divide.d.ts +2 -0
  236. package/dist/compiled/lodash/drop.d.ts +2 -0
  237. package/dist/compiled/lodash/dropRight.d.ts +2 -0
  238. package/dist/compiled/lodash/dropRightWhile.d.ts +2 -0
  239. package/dist/compiled/lodash/dropWhile.d.ts +2 -0
  240. package/dist/compiled/lodash/each.d.ts +2 -0
  241. package/dist/compiled/lodash/eachRight.d.ts +2 -0
  242. package/dist/compiled/lodash/endsWith.d.ts +2 -0
  243. package/dist/compiled/lodash/entries.d.ts +2 -0
  244. package/dist/compiled/lodash/entriesIn.d.ts +2 -0
  245. package/dist/compiled/lodash/eq.d.ts +2 -0
  246. package/dist/compiled/lodash/escape.d.ts +2 -0
  247. package/dist/compiled/lodash/escapeRegExp.d.ts +2 -0
  248. package/dist/compiled/lodash/every.d.ts +2 -0
  249. package/dist/compiled/lodash/extend.d.ts +2 -0
  250. package/dist/compiled/lodash/extendWith.d.ts +2 -0
  251. package/dist/compiled/lodash/fill.d.ts +2 -0
  252. package/dist/compiled/lodash/filter.d.ts +2 -0
  253. package/dist/compiled/lodash/find.d.ts +2 -0
  254. package/dist/compiled/lodash/findIndex.d.ts +2 -0
  255. package/dist/compiled/lodash/findKey.d.ts +2 -0
  256. package/dist/compiled/lodash/findLast.d.ts +2 -0
  257. package/dist/compiled/lodash/findLastIndex.d.ts +2 -0
  258. package/dist/compiled/lodash/findLastKey.d.ts +2 -0
  259. package/dist/compiled/lodash/first.d.ts +2 -0
  260. package/dist/compiled/lodash/flatMap.d.ts +2 -0
  261. package/dist/compiled/lodash/flatMapDeep.d.ts +2 -0
  262. package/dist/compiled/lodash/flatMapDepth.d.ts +2 -0
  263. package/dist/compiled/lodash/flatten.d.ts +2 -0
  264. package/dist/compiled/lodash/flattenDeep.d.ts +2 -0
  265. package/dist/compiled/lodash/flattenDepth.d.ts +2 -0
  266. package/dist/compiled/lodash/flip.d.ts +2 -0
  267. package/dist/compiled/lodash/floor.d.ts +2 -0
  268. package/dist/compiled/lodash/flow.d.ts +2 -0
  269. package/dist/compiled/lodash/flowRight.d.ts +2 -0
  270. package/dist/compiled/lodash/forEach.d.ts +2 -0
  271. package/dist/compiled/lodash/forEachRight.d.ts +2 -0
  272. package/dist/compiled/lodash/forIn.d.ts +2 -0
  273. package/dist/compiled/lodash/forInRight.d.ts +2 -0
  274. package/dist/compiled/lodash/forOwn.d.ts +2 -0
  275. package/dist/compiled/lodash/forOwnRight.d.ts +2 -0
  276. package/dist/compiled/lodash/fp/F.d.ts +2 -0
  277. package/dist/compiled/lodash/fp/T.d.ts +2 -0
  278. package/dist/compiled/lodash/fp/__.d.ts +3 -0
  279. package/dist/compiled/lodash/fp/add.d.ts +2 -0
  280. package/dist/compiled/lodash/fp/after.d.ts +2 -0
  281. package/dist/compiled/lodash/fp/all.d.ts +2 -0
  282. package/dist/compiled/lodash/fp/allPass.d.ts +2 -0
  283. package/dist/compiled/lodash/fp/always.d.ts +2 -0
  284. package/dist/compiled/lodash/fp/any.d.ts +2 -0
  285. package/dist/compiled/lodash/fp/anyPass.d.ts +2 -0
  286. package/dist/compiled/lodash/fp/apply.d.ts +2 -0
  287. package/dist/compiled/lodash/fp/ary.d.ts +2 -0
  288. package/dist/compiled/lodash/fp/assign.d.ts +2 -0
  289. package/dist/compiled/lodash/fp/assignAll.d.ts +2 -0
  290. package/dist/compiled/lodash/fp/assignAllWith.d.ts +2 -0
  291. package/dist/compiled/lodash/fp/assignIn.d.ts +2 -0
  292. package/dist/compiled/lodash/fp/assignInAll.d.ts +2 -0
  293. package/dist/compiled/lodash/fp/assignInAllWith.d.ts +2 -0
  294. package/dist/compiled/lodash/fp/assignInWith.d.ts +2 -0
  295. package/dist/compiled/lodash/fp/assignWith.d.ts +2 -0
  296. package/dist/compiled/lodash/fp/assoc.d.ts +2 -0
  297. package/dist/compiled/lodash/fp/assocPath.d.ts +2 -0
  298. package/dist/compiled/lodash/fp/at.d.ts +2 -0
  299. package/dist/compiled/lodash/fp/attempt.d.ts +2 -0
  300. package/dist/compiled/lodash/fp/before.d.ts +2 -0
  301. package/dist/compiled/lodash/fp/bind.d.ts +2 -0
  302. package/dist/compiled/lodash/fp/bindAll.d.ts +2 -0
  303. package/dist/compiled/lodash/fp/bindKey.d.ts +2 -0
  304. package/dist/compiled/lodash/fp/camelCase.d.ts +2 -0
  305. package/dist/compiled/lodash/fp/capitalize.d.ts +2 -0
  306. package/dist/compiled/lodash/fp/castArray.d.ts +2 -0
  307. package/dist/compiled/lodash/fp/ceil.d.ts +2 -0
  308. package/dist/compiled/lodash/fp/chunk.d.ts +2 -0
  309. package/dist/compiled/lodash/fp/clamp.d.ts +2 -0
  310. package/dist/compiled/lodash/fp/clone.d.ts +2 -0
  311. package/dist/compiled/lodash/fp/cloneDeep.d.ts +2 -0
  312. package/dist/compiled/lodash/fp/cloneDeepWith.d.ts +2 -0
  313. package/dist/compiled/lodash/fp/cloneWith.d.ts +2 -0
  314. package/dist/compiled/lodash/fp/compact.d.ts +2 -0
  315. package/dist/compiled/lodash/fp/complement.d.ts +2 -0
  316. package/dist/compiled/lodash/fp/compose.d.ts +2 -0
  317. package/dist/compiled/lodash/fp/concat.d.ts +2 -0
  318. package/dist/compiled/lodash/fp/cond.d.ts +2 -0
  319. package/dist/compiled/lodash/fp/conforms.d.ts +2 -0
  320. package/dist/compiled/lodash/fp/conformsTo.d.ts +2 -0
  321. package/dist/compiled/lodash/fp/constant.d.ts +2 -0
  322. package/dist/compiled/lodash/fp/contains.d.ts +2 -0
  323. package/dist/compiled/lodash/fp/convert.d.ts +15 -0
  324. package/dist/compiled/lodash/fp/countBy.d.ts +2 -0
  325. package/dist/compiled/lodash/fp/create.d.ts +2 -0
  326. package/dist/compiled/lodash/fp/curry.d.ts +2 -0
  327. package/dist/compiled/lodash/fp/curryN.d.ts +2 -0
  328. package/dist/compiled/lodash/fp/curryRight.d.ts +2 -0
  329. package/dist/compiled/lodash/fp/curryRightN.d.ts +2 -0
  330. package/dist/compiled/lodash/fp/debounce.d.ts +2 -0
  331. package/dist/compiled/lodash/fp/deburr.d.ts +2 -0
  332. package/dist/compiled/lodash/fp/defaultTo.d.ts +2 -0
  333. package/dist/compiled/lodash/fp/defaults.d.ts +2 -0
  334. package/dist/compiled/lodash/fp/defaultsAll.d.ts +2 -0
  335. package/dist/compiled/lodash/fp/defaultsDeep.d.ts +2 -0
  336. package/dist/compiled/lodash/fp/defaultsDeepAll.d.ts +2 -0
  337. package/dist/compiled/lodash/fp/defer.d.ts +2 -0
  338. package/dist/compiled/lodash/fp/delay.d.ts +2 -0
  339. package/dist/compiled/lodash/fp/difference.d.ts +2 -0
  340. package/dist/compiled/lodash/fp/differenceBy.d.ts +2 -0
  341. package/dist/compiled/lodash/fp/differenceWith.d.ts +2 -0
  342. package/dist/compiled/lodash/fp/dissoc.d.ts +2 -0
  343. package/dist/compiled/lodash/fp/dissocPath.d.ts +2 -0
  344. package/dist/compiled/lodash/fp/divide.d.ts +2 -0
  345. package/dist/compiled/lodash/fp/drop.d.ts +2 -0
  346. package/dist/compiled/lodash/fp/dropLast.d.ts +2 -0
  347. package/dist/compiled/lodash/fp/dropLastWhile.d.ts +2 -0
  348. package/dist/compiled/lodash/fp/dropRight.d.ts +2 -0
  349. package/dist/compiled/lodash/fp/dropRightWhile.d.ts +2 -0
  350. package/dist/compiled/lodash/fp/dropWhile.d.ts +2 -0
  351. package/dist/compiled/lodash/fp/each.d.ts +2 -0
  352. package/dist/compiled/lodash/fp/eachRight.d.ts +2 -0
  353. package/dist/compiled/lodash/fp/endsWith.d.ts +2 -0
  354. package/dist/compiled/lodash/fp/entries.d.ts +2 -0
  355. package/dist/compiled/lodash/fp/entriesIn.d.ts +2 -0
  356. package/dist/compiled/lodash/fp/eq.d.ts +2 -0
  357. package/dist/compiled/lodash/fp/equals.d.ts +2 -0
  358. package/dist/compiled/lodash/fp/escape.d.ts +2 -0
  359. package/dist/compiled/lodash/fp/escapeRegExp.d.ts +2 -0
  360. package/dist/compiled/lodash/fp/every.d.ts +2 -0
  361. package/dist/compiled/lodash/fp/extend.d.ts +2 -0
  362. package/dist/compiled/lodash/fp/extendAll.d.ts +2 -0
  363. package/dist/compiled/lodash/fp/extendAllWith.d.ts +2 -0
  364. package/dist/compiled/lodash/fp/extendWith.d.ts +2 -0
  365. package/dist/compiled/lodash/fp/fill.d.ts +2 -0
  366. package/dist/compiled/lodash/fp/filter.d.ts +2 -0
  367. package/dist/compiled/lodash/fp/find.d.ts +2 -0
  368. package/dist/compiled/lodash/fp/findFrom.d.ts +2 -0
  369. package/dist/compiled/lodash/fp/findIndex.d.ts +2 -0
  370. package/dist/compiled/lodash/fp/findIndexFrom.d.ts +2 -0
  371. package/dist/compiled/lodash/fp/findKey.d.ts +2 -0
  372. package/dist/compiled/lodash/fp/findLast.d.ts +2 -0
  373. package/dist/compiled/lodash/fp/findLastFrom.d.ts +2 -0
  374. package/dist/compiled/lodash/fp/findLastIndex.d.ts +2 -0
  375. package/dist/compiled/lodash/fp/findLastIndexFrom.d.ts +2 -0
  376. package/dist/compiled/lodash/fp/findLastKey.d.ts +2 -0
  377. package/dist/compiled/lodash/fp/first.d.ts +2 -0
  378. package/dist/compiled/lodash/fp/flatMap.d.ts +2 -0
  379. package/dist/compiled/lodash/fp/flatMapDeep.d.ts +2 -0
  380. package/dist/compiled/lodash/fp/flatMapDepth.d.ts +2 -0
  381. package/dist/compiled/lodash/fp/flatten.d.ts +2 -0
  382. package/dist/compiled/lodash/fp/flattenDeep.d.ts +2 -0
  383. package/dist/compiled/lodash/fp/flattenDepth.d.ts +2 -0
  384. package/dist/compiled/lodash/fp/flip.d.ts +2 -0
  385. package/dist/compiled/lodash/fp/floor.d.ts +2 -0
  386. package/dist/compiled/lodash/fp/flow.d.ts +2 -0
  387. package/dist/compiled/lodash/fp/flowRight.d.ts +2 -0
  388. package/dist/compiled/lodash/fp/forEach.d.ts +2 -0
  389. package/dist/compiled/lodash/fp/forEachRight.d.ts +2 -0
  390. package/dist/compiled/lodash/fp/forIn.d.ts +2 -0
  391. package/dist/compiled/lodash/fp/forInRight.d.ts +2 -0
  392. package/dist/compiled/lodash/fp/forOwn.d.ts +2 -0
  393. package/dist/compiled/lodash/fp/forOwnRight.d.ts +2 -0
  394. package/dist/compiled/lodash/fp/fromPairs.d.ts +2 -0
  395. package/dist/compiled/lodash/fp/functions.d.ts +2 -0
  396. package/dist/compiled/lodash/fp/functionsIn.d.ts +2 -0
  397. package/dist/compiled/lodash/fp/get.d.ts +2 -0
  398. package/dist/compiled/lodash/fp/getOr.d.ts +2 -0
  399. package/dist/compiled/lodash/fp/groupBy.d.ts +2 -0
  400. package/dist/compiled/lodash/fp/gt.d.ts +2 -0
  401. package/dist/compiled/lodash/fp/gte.d.ts +2 -0
  402. package/dist/compiled/lodash/fp/has.d.ts +2 -0
  403. package/dist/compiled/lodash/fp/hasIn.d.ts +2 -0
  404. package/dist/compiled/lodash/fp/head.d.ts +2 -0
  405. package/dist/compiled/lodash/fp/identical.d.ts +2 -0
  406. package/dist/compiled/lodash/fp/identity.d.ts +2 -0
  407. package/dist/compiled/lodash/fp/inRange.d.ts +2 -0
  408. package/dist/compiled/lodash/fp/includes.d.ts +2 -0
  409. package/dist/compiled/lodash/fp/includesFrom.d.ts +2 -0
  410. package/dist/compiled/lodash/fp/indexBy.d.ts +2 -0
  411. package/dist/compiled/lodash/fp/indexOf.d.ts +2 -0
  412. package/dist/compiled/lodash/fp/indexOfFrom.d.ts +2 -0
  413. package/dist/compiled/lodash/fp/init.d.ts +2 -0
  414. package/dist/compiled/lodash/fp/initial.d.ts +2 -0
  415. package/dist/compiled/lodash/fp/intersection.d.ts +2 -0
  416. package/dist/compiled/lodash/fp/intersectionBy.d.ts +2 -0
  417. package/dist/compiled/lodash/fp/intersectionWith.d.ts +2 -0
  418. package/dist/compiled/lodash/fp/invert.d.ts +2 -0
  419. package/dist/compiled/lodash/fp/invertBy.d.ts +2 -0
  420. package/dist/compiled/lodash/fp/invertObj.d.ts +2 -0
  421. package/dist/compiled/lodash/fp/invoke.d.ts +2 -0
  422. package/dist/compiled/lodash/fp/invokeArgs.d.ts +2 -0
  423. package/dist/compiled/lodash/fp/invokeArgsMap.d.ts +2 -0
  424. package/dist/compiled/lodash/fp/invokeMap.d.ts +2 -0
  425. package/dist/compiled/lodash/fp/isArguments.d.ts +2 -0
  426. package/dist/compiled/lodash/fp/isArray.d.ts +2 -0
  427. package/dist/compiled/lodash/fp/isArrayBuffer.d.ts +2 -0
  428. package/dist/compiled/lodash/fp/isArrayLike.d.ts +2 -0
  429. package/dist/compiled/lodash/fp/isArrayLikeObject.d.ts +2 -0
  430. package/dist/compiled/lodash/fp/isBoolean.d.ts +2 -0
  431. package/dist/compiled/lodash/fp/isBuffer.d.ts +2 -0
  432. package/dist/compiled/lodash/fp/isDate.d.ts +2 -0
  433. package/dist/compiled/lodash/fp/isElement.d.ts +2 -0
  434. package/dist/compiled/lodash/fp/isEmpty.d.ts +2 -0
  435. package/dist/compiled/lodash/fp/isEqual.d.ts +2 -0
  436. package/dist/compiled/lodash/fp/isEqualWith.d.ts +2 -0
  437. package/dist/compiled/lodash/fp/isError.d.ts +2 -0
  438. package/dist/compiled/lodash/fp/isFinite.d.ts +2 -0
  439. package/dist/compiled/lodash/fp/isFunction.d.ts +2 -0
  440. package/dist/compiled/lodash/fp/isInteger.d.ts +2 -0
  441. package/dist/compiled/lodash/fp/isLength.d.ts +2 -0
  442. package/dist/compiled/lodash/fp/isMap.d.ts +2 -0
  443. package/dist/compiled/lodash/fp/isMatch.d.ts +2 -0
  444. package/dist/compiled/lodash/fp/isMatchWith.d.ts +2 -0
  445. package/dist/compiled/lodash/fp/isNaN.d.ts +2 -0
  446. package/dist/compiled/lodash/fp/isNative.d.ts +2 -0
  447. package/dist/compiled/lodash/fp/isNil.d.ts +2 -0
  448. package/dist/compiled/lodash/fp/isNull.d.ts +2 -0
  449. package/dist/compiled/lodash/fp/isNumber.d.ts +2 -0
  450. package/dist/compiled/lodash/fp/isObject.d.ts +2 -0
  451. package/dist/compiled/lodash/fp/isObjectLike.d.ts +2 -0
  452. package/dist/compiled/lodash/fp/isPlainObject.d.ts +2 -0
  453. package/dist/compiled/lodash/fp/isRegExp.d.ts +2 -0
  454. package/dist/compiled/lodash/fp/isSafeInteger.d.ts +2 -0
  455. package/dist/compiled/lodash/fp/isSet.d.ts +2 -0
  456. package/dist/compiled/lodash/fp/isString.d.ts +2 -0
  457. package/dist/compiled/lodash/fp/isSymbol.d.ts +2 -0
  458. package/dist/compiled/lodash/fp/isTypedArray.d.ts +2 -0
  459. package/dist/compiled/lodash/fp/isUndefined.d.ts +2 -0
  460. package/dist/compiled/lodash/fp/isWeakMap.d.ts +2 -0
  461. package/dist/compiled/lodash/fp/isWeakSet.d.ts +2 -0
  462. package/dist/compiled/lodash/fp/iteratee.d.ts +2 -0
  463. package/dist/compiled/lodash/fp/join.d.ts +2 -0
  464. package/dist/compiled/lodash/fp/juxt.d.ts +2 -0
  465. package/dist/compiled/lodash/fp/kebabCase.d.ts +2 -0
  466. package/dist/compiled/lodash/fp/keyBy.d.ts +2 -0
  467. package/dist/compiled/lodash/fp/keys.d.ts +2 -0
  468. package/dist/compiled/lodash/fp/keysIn.d.ts +2 -0
  469. package/dist/compiled/lodash/fp/last.d.ts +2 -0
  470. package/dist/compiled/lodash/fp/lastIndexOf.d.ts +2 -0
  471. package/dist/compiled/lodash/fp/lastIndexOfFrom.d.ts +2 -0
  472. package/dist/compiled/lodash/fp/lowerCase.d.ts +2 -0
  473. package/dist/compiled/lodash/fp/lowerFirst.d.ts +2 -0
  474. package/dist/compiled/lodash/fp/lt.d.ts +2 -0
  475. package/dist/compiled/lodash/fp/lte.d.ts +2 -0
  476. package/dist/compiled/lodash/fp/map.d.ts +2 -0
  477. package/dist/compiled/lodash/fp/mapKeys.d.ts +2 -0
  478. package/dist/compiled/lodash/fp/mapValues.d.ts +2 -0
  479. package/dist/compiled/lodash/fp/matches.d.ts +2 -0
  480. package/dist/compiled/lodash/fp/matchesProperty.d.ts +2 -0
  481. package/dist/compiled/lodash/fp/max.d.ts +2 -0
  482. package/dist/compiled/lodash/fp/maxBy.d.ts +2 -0
  483. package/dist/compiled/lodash/fp/mean.d.ts +2 -0
  484. package/dist/compiled/lodash/fp/meanBy.d.ts +2 -0
  485. package/dist/compiled/lodash/fp/memoize.d.ts +2 -0
  486. package/dist/compiled/lodash/fp/merge.d.ts +2 -0
  487. package/dist/compiled/lodash/fp/mergeAll.d.ts +2 -0
  488. package/dist/compiled/lodash/fp/mergeAllWith.d.ts +2 -0
  489. package/dist/compiled/lodash/fp/mergeWith.d.ts +2 -0
  490. package/dist/compiled/lodash/fp/method.d.ts +2 -0
  491. package/dist/compiled/lodash/fp/methodOf.d.ts +2 -0
  492. package/dist/compiled/lodash/fp/min.d.ts +2 -0
  493. package/dist/compiled/lodash/fp/minBy.d.ts +2 -0
  494. package/dist/compiled/lodash/fp/multiply.d.ts +2 -0
  495. package/dist/compiled/lodash/fp/nAry.d.ts +2 -0
  496. package/dist/compiled/lodash/fp/negate.d.ts +2 -0
  497. package/dist/compiled/lodash/fp/noConflict.d.ts +2 -0
  498. package/dist/compiled/lodash/fp/noop.d.ts +2 -0
  499. package/dist/compiled/lodash/fp/now.d.ts +2 -0
  500. package/dist/compiled/lodash/fp/nth.d.ts +2 -0
  501. package/dist/compiled/lodash/fp/nthArg.d.ts +2 -0
  502. package/dist/compiled/lodash/fp/omit.d.ts +2 -0
  503. package/dist/compiled/lodash/fp/omitAll.d.ts +2 -0
  504. package/dist/compiled/lodash/fp/omitBy.d.ts +2 -0
  505. package/dist/compiled/lodash/fp/once.d.ts +2 -0
  506. package/dist/compiled/lodash/fp/orderBy.d.ts +2 -0
  507. package/dist/compiled/lodash/fp/over.d.ts +2 -0
  508. package/dist/compiled/lodash/fp/overArgs.d.ts +2 -0
  509. package/dist/compiled/lodash/fp/overEvery.d.ts +2 -0
  510. package/dist/compiled/lodash/fp/overSome.d.ts +2 -0
  511. package/dist/compiled/lodash/fp/pad.d.ts +2 -0
  512. package/dist/compiled/lodash/fp/padChars.d.ts +2 -0
  513. package/dist/compiled/lodash/fp/padCharsEnd.d.ts +2 -0
  514. package/dist/compiled/lodash/fp/padCharsStart.d.ts +2 -0
  515. package/dist/compiled/lodash/fp/padEnd.d.ts +2 -0
  516. package/dist/compiled/lodash/fp/padStart.d.ts +2 -0
  517. package/dist/compiled/lodash/fp/parseInt.d.ts +2 -0
  518. package/dist/compiled/lodash/fp/partial.d.ts +2 -0
  519. package/dist/compiled/lodash/fp/partialRight.d.ts +2 -0
  520. package/dist/compiled/lodash/fp/partition.d.ts +2 -0
  521. package/dist/compiled/lodash/fp/path.d.ts +2 -0
  522. package/dist/compiled/lodash/fp/pathEq.d.ts +2 -0
  523. package/dist/compiled/lodash/fp/pathOr.d.ts +2 -0
  524. package/dist/compiled/lodash/fp/paths.d.ts +2 -0
  525. package/dist/compiled/lodash/fp/pick.d.ts +2 -0
  526. package/dist/compiled/lodash/fp/pickAll.d.ts +2 -0
  527. package/dist/compiled/lodash/fp/pickBy.d.ts +2 -0
  528. package/dist/compiled/lodash/fp/pipe.d.ts +2 -0
  529. package/dist/compiled/lodash/fp/placeholder.d.ts +3 -0
  530. package/dist/compiled/lodash/fp/pluck.d.ts +2 -0
  531. package/dist/compiled/lodash/fp/prop.d.ts +2 -0
  532. package/dist/compiled/lodash/fp/propEq.d.ts +2 -0
  533. package/dist/compiled/lodash/fp/propOr.d.ts +2 -0
  534. package/dist/compiled/lodash/fp/property.d.ts +2 -0
  535. package/dist/compiled/lodash/fp/propertyOf.d.ts +2 -0
  536. package/dist/compiled/lodash/fp/props.d.ts +2 -0
  537. package/dist/compiled/lodash/fp/pull.d.ts +2 -0
  538. package/dist/compiled/lodash/fp/pullAll.d.ts +2 -0
  539. package/dist/compiled/lodash/fp/pullAllBy.d.ts +2 -0
  540. package/dist/compiled/lodash/fp/pullAllWith.d.ts +2 -0
  541. package/dist/compiled/lodash/fp/pullAt.d.ts +2 -0
  542. package/dist/compiled/lodash/fp/random.d.ts +2 -0
  543. package/dist/compiled/lodash/fp/range.d.ts +2 -0
  544. package/dist/compiled/lodash/fp/rangeRight.d.ts +2 -0
  545. package/dist/compiled/lodash/fp/rangeStep.d.ts +2 -0
  546. package/dist/compiled/lodash/fp/rangeStepRight.d.ts +2 -0
  547. package/dist/compiled/lodash/fp/rearg.d.ts +2 -0
  548. package/dist/compiled/lodash/fp/reduce.d.ts +2 -0
  549. package/dist/compiled/lodash/fp/reduceRight.d.ts +2 -0
  550. package/dist/compiled/lodash/fp/reject.d.ts +2 -0
  551. package/dist/compiled/lodash/fp/remove.d.ts +2 -0
  552. package/dist/compiled/lodash/fp/repeat.d.ts +2 -0
  553. package/dist/compiled/lodash/fp/replace.d.ts +2 -0
  554. package/dist/compiled/lodash/fp/rest.d.ts +2 -0
  555. package/dist/compiled/lodash/fp/restFrom.d.ts +2 -0
  556. package/dist/compiled/lodash/fp/result.d.ts +2 -0
  557. package/dist/compiled/lodash/fp/reverse.d.ts +2 -0
  558. package/dist/compiled/lodash/fp/round.d.ts +2 -0
  559. package/dist/compiled/lodash/fp/runInContext.d.ts +2 -0
  560. package/dist/compiled/lodash/fp/sample.d.ts +2 -0
  561. package/dist/compiled/lodash/fp/sampleSize.d.ts +2 -0
  562. package/dist/compiled/lodash/fp/set.d.ts +2 -0
  563. package/dist/compiled/lodash/fp/setWith.d.ts +2 -0
  564. package/dist/compiled/lodash/fp/shuffle.d.ts +2 -0
  565. package/dist/compiled/lodash/fp/size.d.ts +2 -0
  566. package/dist/compiled/lodash/fp/slice.d.ts +2 -0
  567. package/dist/compiled/lodash/fp/snakeCase.d.ts +2 -0
  568. package/dist/compiled/lodash/fp/some.d.ts +2 -0
  569. package/dist/compiled/lodash/fp/sortBy.d.ts +2 -0
  570. package/dist/compiled/lodash/fp/sortedIndex.d.ts +2 -0
  571. package/dist/compiled/lodash/fp/sortedIndexBy.d.ts +2 -0
  572. package/dist/compiled/lodash/fp/sortedIndexOf.d.ts +2 -0
  573. package/dist/compiled/lodash/fp/sortedLastIndex.d.ts +2 -0
  574. package/dist/compiled/lodash/fp/sortedLastIndexBy.d.ts +2 -0
  575. package/dist/compiled/lodash/fp/sortedLastIndexOf.d.ts +2 -0
  576. package/dist/compiled/lodash/fp/sortedUniq.d.ts +2 -0
  577. package/dist/compiled/lodash/fp/sortedUniqBy.d.ts +2 -0
  578. package/dist/compiled/lodash/fp/split.d.ts +2 -0
  579. package/dist/compiled/lodash/fp/spread.d.ts +2 -0
  580. package/dist/compiled/lodash/fp/spreadFrom.d.ts +2 -0
  581. package/dist/compiled/lodash/fp/startCase.d.ts +2 -0
  582. package/dist/compiled/lodash/fp/startsWith.d.ts +2 -0
  583. package/dist/compiled/lodash/fp/stubArray.d.ts +2 -0
  584. package/dist/compiled/lodash/fp/stubFalse.d.ts +2 -0
  585. package/dist/compiled/lodash/fp/stubObject.d.ts +2 -0
  586. package/dist/compiled/lodash/fp/stubString.d.ts +2 -0
  587. package/dist/compiled/lodash/fp/stubTrue.d.ts +2 -0
  588. package/dist/compiled/lodash/fp/subtract.d.ts +2 -0
  589. package/dist/compiled/lodash/fp/sum.d.ts +2 -0
  590. package/dist/compiled/lodash/fp/sumBy.d.ts +2 -0
  591. package/dist/compiled/lodash/fp/symmetricDifference.d.ts +2 -0
  592. package/dist/compiled/lodash/fp/symmetricDifferenceBy.d.ts +2 -0
  593. package/dist/compiled/lodash/fp/symmetricDifferenceWith.d.ts +2 -0
  594. package/dist/compiled/lodash/fp/tail.d.ts +2 -0
  595. package/dist/compiled/lodash/fp/take.d.ts +2 -0
  596. package/dist/compiled/lodash/fp/takeLast.d.ts +2 -0
  597. package/dist/compiled/lodash/fp/takeLastWhile.d.ts +2 -0
  598. package/dist/compiled/lodash/fp/takeRight.d.ts +2 -0
  599. package/dist/compiled/lodash/fp/takeRightWhile.d.ts +2 -0
  600. package/dist/compiled/lodash/fp/takeWhile.d.ts +2 -0
  601. package/dist/compiled/lodash/fp/tap.d.ts +2 -0
  602. package/dist/compiled/lodash/fp/template.d.ts +2 -0
  603. package/dist/compiled/lodash/fp/throttle.d.ts +2 -0
  604. package/dist/compiled/lodash/fp/thru.d.ts +2 -0
  605. package/dist/compiled/lodash/fp/times.d.ts +2 -0
  606. package/dist/compiled/lodash/fp/toArray.d.ts +2 -0
  607. package/dist/compiled/lodash/fp/toFinite.d.ts +2 -0
  608. package/dist/compiled/lodash/fp/toInteger.d.ts +2 -0
  609. package/dist/compiled/lodash/fp/toLength.d.ts +2 -0
  610. package/dist/compiled/lodash/fp/toLower.d.ts +2 -0
  611. package/dist/compiled/lodash/fp/toNumber.d.ts +2 -0
  612. package/dist/compiled/lodash/fp/toPairs.d.ts +2 -0
  613. package/dist/compiled/lodash/fp/toPairsIn.d.ts +2 -0
  614. package/dist/compiled/lodash/fp/toPath.d.ts +2 -0
  615. package/dist/compiled/lodash/fp/toPlainObject.d.ts +2 -0
  616. package/dist/compiled/lodash/fp/toSafeInteger.d.ts +2 -0
  617. package/dist/compiled/lodash/fp/toString.d.ts +2 -0
  618. package/dist/compiled/lodash/fp/toUpper.d.ts +2 -0
  619. package/dist/compiled/lodash/fp/transform.d.ts +2 -0
  620. package/dist/compiled/lodash/fp/trim.d.ts +2 -0
  621. package/dist/compiled/lodash/fp/trimChars.d.ts +2 -0
  622. package/dist/compiled/lodash/fp/trimCharsEnd.d.ts +2 -0
  623. package/dist/compiled/lodash/fp/trimCharsStart.d.ts +2 -0
  624. package/dist/compiled/lodash/fp/trimEnd.d.ts +2 -0
  625. package/dist/compiled/lodash/fp/trimStart.d.ts +2 -0
  626. package/dist/compiled/lodash/fp/truncate.d.ts +2 -0
  627. package/dist/compiled/lodash/fp/unapply.d.ts +2 -0
  628. package/dist/compiled/lodash/fp/unary.d.ts +2 -0
  629. package/dist/compiled/lodash/fp/unescape.d.ts +2 -0
  630. package/dist/compiled/lodash/fp/union.d.ts +2 -0
  631. package/dist/compiled/lodash/fp/unionBy.d.ts +2 -0
  632. package/dist/compiled/lodash/fp/unionWith.d.ts +2 -0
  633. package/dist/compiled/lodash/fp/uniq.d.ts +2 -0
  634. package/dist/compiled/lodash/fp/uniqBy.d.ts +2 -0
  635. package/dist/compiled/lodash/fp/uniqWith.d.ts +2 -0
  636. package/dist/compiled/lodash/fp/uniqueId.d.ts +2 -0
  637. package/dist/compiled/lodash/fp/unnest.d.ts +2 -0
  638. package/dist/compiled/lodash/fp/unset.d.ts +2 -0
  639. package/dist/compiled/lodash/fp/unzip.d.ts +2 -0
  640. package/dist/compiled/lodash/fp/unzipWith.d.ts +2 -0
  641. package/dist/compiled/lodash/fp/update.d.ts +2 -0
  642. package/dist/compiled/lodash/fp/updateWith.d.ts +2 -0
  643. package/dist/compiled/lodash/fp/upperCase.d.ts +2 -0
  644. package/dist/compiled/lodash/fp/upperFirst.d.ts +2 -0
  645. package/dist/compiled/lodash/fp/useWith.d.ts +2 -0
  646. package/dist/compiled/lodash/fp/values.d.ts +2 -0
  647. package/dist/compiled/lodash/fp/valuesIn.d.ts +2 -0
  648. package/dist/compiled/lodash/fp/where.d.ts +2 -0
  649. package/dist/compiled/lodash/fp/whereEq.d.ts +2 -0
  650. package/dist/compiled/lodash/fp/without.d.ts +2 -0
  651. package/dist/compiled/lodash/fp/words.d.ts +2 -0
  652. package/dist/compiled/lodash/fp/wrap.d.ts +2 -0
  653. package/dist/compiled/lodash/fp/xor.d.ts +2 -0
  654. package/dist/compiled/lodash/fp/xorBy.d.ts +2 -0
  655. package/dist/compiled/lodash/fp/xorWith.d.ts +2 -0
  656. package/dist/compiled/lodash/fp/zip.d.ts +2 -0
  657. package/dist/compiled/lodash/fp/zipAll.d.ts +2 -0
  658. package/dist/compiled/lodash/fp/zipObj.d.ts +2 -0
  659. package/dist/compiled/lodash/fp/zipObject.d.ts +2 -0
  660. package/dist/compiled/lodash/fp/zipObjectDeep.d.ts +2 -0
  661. package/dist/compiled/lodash/fp/zipWith.d.ts +2 -0
  662. package/dist/compiled/lodash/fp.d.ts +4962 -0
  663. package/dist/compiled/lodash/fromPairs.d.ts +2 -0
  664. package/dist/compiled/lodash/functions.d.ts +2 -0
  665. package/dist/compiled/lodash/functionsIn.d.ts +2 -0
  666. package/dist/compiled/lodash/get.d.ts +2 -0
  667. package/dist/compiled/lodash/groupBy.d.ts +2 -0
  668. package/dist/compiled/lodash/gt.d.ts +2 -0
  669. package/dist/compiled/lodash/gte.d.ts +2 -0
  670. package/dist/compiled/lodash/has.d.ts +2 -0
  671. package/dist/compiled/lodash/hasIn.d.ts +2 -0
  672. package/dist/compiled/lodash/head.d.ts +2 -0
  673. package/dist/compiled/lodash/identity.d.ts +2 -0
  674. package/dist/compiled/lodash/inRange.d.ts +2 -0
  675. package/dist/compiled/lodash/includes.d.ts +2 -0
  676. package/dist/compiled/lodash/index.d.ts +1 -16
  677. package/dist/compiled/lodash/indexOf.d.ts +2 -0
  678. package/dist/compiled/lodash/initial.d.ts +2 -0
  679. package/dist/compiled/lodash/intersection.d.ts +2 -0
  680. package/dist/compiled/lodash/intersectionBy.d.ts +2 -0
  681. package/dist/compiled/lodash/intersectionWith.d.ts +2 -0
  682. package/dist/compiled/lodash/invert.d.ts +2 -0
  683. package/dist/compiled/lodash/invertBy.d.ts +2 -0
  684. package/dist/compiled/lodash/invoke.d.ts +2 -0
  685. package/dist/compiled/lodash/invokeMap.d.ts +2 -0
  686. package/dist/compiled/lodash/isArguments.d.ts +2 -0
  687. package/dist/compiled/lodash/isArray.d.ts +2 -0
  688. package/dist/compiled/lodash/isArrayBuffer.d.ts +2 -0
  689. package/dist/compiled/lodash/isArrayLike.d.ts +2 -0
  690. package/dist/compiled/lodash/isArrayLikeObject.d.ts +2 -0
  691. package/dist/compiled/lodash/isBoolean.d.ts +2 -0
  692. package/dist/compiled/lodash/isBuffer.d.ts +2 -0
  693. package/dist/compiled/lodash/isDate.d.ts +2 -0
  694. package/dist/compiled/lodash/isElement.d.ts +2 -0
  695. package/dist/compiled/lodash/isEmpty.d.ts +2 -0
  696. package/dist/compiled/lodash/isEqual.d.ts +2 -0
  697. package/dist/compiled/lodash/isEqualWith.d.ts +2 -0
  698. package/dist/compiled/lodash/isError.d.ts +2 -0
  699. package/dist/compiled/lodash/isFinite.d.ts +2 -0
  700. package/dist/compiled/lodash/isFunction.d.ts +2 -0
  701. package/dist/compiled/lodash/isInteger.d.ts +2 -0
  702. package/dist/compiled/lodash/isLength.d.ts +2 -0
  703. package/dist/compiled/lodash/isMap.d.ts +2 -0
  704. package/dist/compiled/lodash/isMatch.d.ts +2 -0
  705. package/dist/compiled/lodash/isMatchWith.d.ts +2 -0
  706. package/dist/compiled/lodash/isNaN.d.ts +2 -0
  707. package/dist/compiled/lodash/isNative.d.ts +2 -0
  708. package/dist/compiled/lodash/isNil.d.ts +2 -0
  709. package/dist/compiled/lodash/isNull.d.ts +2 -0
  710. package/dist/compiled/lodash/isNumber.d.ts +2 -0
  711. package/dist/compiled/lodash/isObject.d.ts +2 -0
  712. package/dist/compiled/lodash/isObjectLike.d.ts +2 -0
  713. package/dist/compiled/lodash/isPlainObject.d.ts +2 -0
  714. package/dist/compiled/lodash/isRegExp.d.ts +2 -0
  715. package/dist/compiled/lodash/isSafeInteger.d.ts +2 -0
  716. package/dist/compiled/lodash/isSet.d.ts +2 -0
  717. package/dist/compiled/lodash/isString.d.ts +2 -0
  718. package/dist/compiled/lodash/isSymbol.d.ts +2 -0
  719. package/dist/compiled/lodash/isTypedArray.d.ts +2 -0
  720. package/dist/compiled/lodash/isUndefined.d.ts +2 -0
  721. package/dist/compiled/lodash/isWeakMap.d.ts +2 -0
  722. package/dist/compiled/lodash/isWeakSet.d.ts +2 -0
  723. package/dist/compiled/lodash/iteratee.d.ts +2 -0
  724. package/dist/compiled/lodash/join.d.ts +2 -0
  725. package/dist/compiled/lodash/kebabCase.d.ts +2 -0
  726. package/dist/compiled/lodash/keyBy.d.ts +2 -0
  727. package/dist/compiled/lodash/keys.d.ts +2 -0
  728. package/dist/compiled/lodash/keysIn.d.ts +2 -0
  729. package/dist/compiled/lodash/last.d.ts +2 -0
  730. package/dist/compiled/lodash/lastIndexOf.d.ts +2 -0
  731. package/dist/compiled/lodash/licenses-cjs.txt +49 -0
  732. package/dist/compiled/lodash/lowerCase.d.ts +2 -0
  733. package/dist/compiled/lodash/lowerFirst.d.ts +2 -0
  734. package/dist/compiled/lodash/lt.d.ts +2 -0
  735. package/dist/compiled/lodash/lte.d.ts +2 -0
  736. package/dist/compiled/lodash/map.d.ts +2 -0
  737. package/dist/compiled/lodash/mapKeys.d.ts +2 -0
  738. package/dist/compiled/lodash/mapValues.d.ts +2 -0
  739. package/dist/compiled/lodash/matches.d.ts +2 -0
  740. package/dist/compiled/lodash/matchesProperty.d.ts +2 -0
  741. package/dist/compiled/lodash/max.d.ts +2 -0
  742. package/dist/compiled/lodash/maxBy.d.ts +2 -0
  743. package/dist/compiled/lodash/mean.d.ts +2 -0
  744. package/dist/compiled/lodash/meanBy.d.ts +2 -0
  745. package/dist/compiled/lodash/memoize.d.ts +2 -0
  746. package/dist/compiled/lodash/merge.d.ts +2 -0
  747. package/dist/compiled/lodash/mergeWith.d.ts +2 -0
  748. package/dist/compiled/lodash/method.d.ts +2 -0
  749. package/dist/compiled/lodash/methodOf.d.ts +2 -0
  750. package/dist/compiled/lodash/min.d.ts +2 -0
  751. package/dist/compiled/lodash/minBy.d.ts +2 -0
  752. package/dist/compiled/lodash/mixin.d.ts +2 -0
  753. package/dist/compiled/lodash/multiply.d.ts +2 -0
  754. package/dist/compiled/lodash/negate.d.ts +2 -0
  755. package/dist/compiled/lodash/noConflict.d.ts +2 -0
  756. package/dist/compiled/lodash/noop.d.ts +2 -0
  757. package/dist/compiled/lodash/now.d.ts +2 -0
  758. package/dist/compiled/lodash/nth.d.ts +2 -0
  759. package/dist/compiled/lodash/nthArg.d.ts +2 -0
  760. package/dist/compiled/lodash/omit.d.ts +2 -0
  761. package/dist/compiled/lodash/omitBy.d.ts +2 -0
  762. package/dist/compiled/lodash/once.d.ts +2 -0
  763. package/dist/compiled/lodash/orderBy.d.ts +2 -0
  764. package/dist/compiled/lodash/over.d.ts +2 -0
  765. package/dist/compiled/lodash/overArgs.d.ts +2 -0
  766. package/dist/compiled/lodash/overEvery.d.ts +2 -0
  767. package/dist/compiled/lodash/overSome.d.ts +2 -0
  768. package/dist/compiled/lodash/package.json +1 -1
  769. package/dist/compiled/lodash/pad.d.ts +2 -0
  770. package/dist/compiled/lodash/padEnd.d.ts +2 -0
  771. package/dist/compiled/lodash/padStart.d.ts +2 -0
  772. package/dist/compiled/lodash/parseInt.d.ts +2 -0
  773. package/dist/compiled/lodash/partial.d.ts +2 -0
  774. package/dist/compiled/lodash/partialRight.d.ts +2 -0
  775. package/dist/compiled/lodash/partition.d.ts +2 -0
  776. package/dist/compiled/lodash/pick.d.ts +2 -0
  777. package/dist/compiled/lodash/pickBy.d.ts +2 -0
  778. package/dist/compiled/lodash/property.d.ts +2 -0
  779. package/dist/compiled/lodash/propertyOf.d.ts +2 -0
  780. package/dist/compiled/lodash/provenance.json +19 -0
  781. package/dist/compiled/lodash/pull.d.ts +2 -0
  782. package/dist/compiled/lodash/pullAll.d.ts +2 -0
  783. package/dist/compiled/lodash/pullAllBy.d.ts +2 -0
  784. package/dist/compiled/lodash/pullAllWith.d.ts +2 -0
  785. package/dist/compiled/lodash/pullAt.d.ts +2 -0
  786. package/dist/compiled/lodash/random.d.ts +2 -0
  787. package/dist/compiled/lodash/range.d.ts +2 -0
  788. package/dist/compiled/lodash/rangeRight.d.ts +2 -0
  789. package/dist/compiled/lodash/rearg.d.ts +2 -0
  790. package/dist/compiled/lodash/reduce.d.ts +2 -0
  791. package/dist/compiled/lodash/reduceRight.d.ts +2 -0
  792. package/dist/compiled/lodash/reject.d.ts +2 -0
  793. package/dist/compiled/lodash/remove.d.ts +2 -0
  794. package/dist/compiled/lodash/repeat.d.ts +2 -0
  795. package/dist/compiled/lodash/replace.d.ts +2 -0
  796. package/dist/compiled/lodash/rest.d.ts +2 -0
  797. package/dist/compiled/lodash/result.d.ts +2 -0
  798. package/dist/compiled/lodash/reverse.d.ts +2 -0
  799. package/dist/compiled/lodash/round.d.ts +2 -0
  800. package/dist/compiled/lodash/runInContext.d.ts +2 -0
  801. package/dist/compiled/lodash/sample.d.ts +2 -0
  802. package/dist/compiled/lodash/sampleSize.d.ts +2 -0
  803. package/dist/compiled/lodash/set.d.ts +2 -0
  804. package/dist/compiled/lodash/setWith.d.ts +2 -0
  805. package/dist/compiled/lodash/shuffle.d.ts +2 -0
  806. package/dist/compiled/lodash/size.d.ts +2 -0
  807. package/dist/compiled/lodash/slice.d.ts +2 -0
  808. package/dist/compiled/lodash/snakeCase.d.ts +2 -0
  809. package/dist/compiled/lodash/some.d.ts +2 -0
  810. package/dist/compiled/lodash/sortBy.d.ts +2 -0
  811. package/dist/compiled/lodash/sortedIndex.d.ts +2 -0
  812. package/dist/compiled/lodash/sortedIndexBy.d.ts +2 -0
  813. package/dist/compiled/lodash/sortedIndexOf.d.ts +2 -0
  814. package/dist/compiled/lodash/sortedLastIndex.d.ts +2 -0
  815. package/dist/compiled/lodash/sortedLastIndexBy.d.ts +2 -0
  816. package/dist/compiled/lodash/sortedLastIndexOf.d.ts +2 -0
  817. package/dist/compiled/lodash/sortedUniq.d.ts +2 -0
  818. package/dist/compiled/lodash/sortedUniqBy.d.ts +2 -0
  819. package/dist/compiled/lodash/split.d.ts +2 -0
  820. package/dist/compiled/lodash/spread.d.ts +2 -0
  821. package/dist/compiled/lodash/startCase.d.ts +2 -0
  822. package/dist/compiled/lodash/startsWith.d.ts +2 -0
  823. package/dist/compiled/lodash/stubArray.d.ts +2 -0
  824. package/dist/compiled/lodash/stubFalse.d.ts +2 -0
  825. package/dist/compiled/lodash/stubObject.d.ts +2 -0
  826. package/dist/compiled/lodash/stubString.d.ts +2 -0
  827. package/dist/compiled/lodash/stubTrue.d.ts +2 -0
  828. package/dist/compiled/lodash/subtract.d.ts +2 -0
  829. package/dist/compiled/lodash/sum.d.ts +2 -0
  830. package/dist/compiled/lodash/sumBy.d.ts +2 -0
  831. package/dist/compiled/lodash/tail.d.ts +2 -0
  832. package/dist/compiled/lodash/take.d.ts +2 -0
  833. package/dist/compiled/lodash/takeRight.d.ts +2 -0
  834. package/dist/compiled/lodash/takeRightWhile.d.ts +2 -0
  835. package/dist/compiled/lodash/takeWhile.d.ts +2 -0
  836. package/dist/compiled/lodash/tap.d.ts +2 -0
  837. package/dist/compiled/lodash/template.d.ts +2 -0
  838. package/dist/compiled/lodash/throttle.d.ts +2 -0
  839. package/dist/compiled/lodash/thru.d.ts +2 -0
  840. package/dist/compiled/lodash/times.d.ts +2 -0
  841. package/dist/compiled/lodash/toArray.d.ts +2 -0
  842. package/dist/compiled/lodash/toFinite.d.ts +2 -0
  843. package/dist/compiled/lodash/toInteger.d.ts +2 -0
  844. package/dist/compiled/lodash/toLength.d.ts +2 -0
  845. package/dist/compiled/lodash/toLower.d.ts +2 -0
  846. package/dist/compiled/lodash/toNumber.d.ts +2 -0
  847. package/dist/compiled/lodash/toPairs.d.ts +2 -0
  848. package/dist/compiled/lodash/toPairsIn.d.ts +2 -0
  849. package/dist/compiled/lodash/toPath.d.ts +2 -0
  850. package/dist/compiled/lodash/toPlainObject.d.ts +2 -0
  851. package/dist/compiled/lodash/toSafeInteger.d.ts +2 -0
  852. package/dist/compiled/lodash/toString.d.ts +2 -0
  853. package/dist/compiled/lodash/toUpper.d.ts +2 -0
  854. package/dist/compiled/lodash/transform.d.ts +2 -0
  855. package/dist/compiled/lodash/trim.d.ts +2 -0
  856. package/dist/compiled/lodash/trimEnd.d.ts +2 -0
  857. package/dist/compiled/lodash/trimStart.d.ts +2 -0
  858. package/dist/compiled/lodash/truncate.d.ts +2 -0
  859. package/dist/compiled/lodash/unary.d.ts +2 -0
  860. package/dist/compiled/lodash/unescape.d.ts +2 -0
  861. package/dist/compiled/lodash/union.d.ts +2 -0
  862. package/dist/compiled/lodash/unionBy.d.ts +2 -0
  863. package/dist/compiled/lodash/unionWith.d.ts +2 -0
  864. package/dist/compiled/lodash/uniq.d.ts +2 -0
  865. package/dist/compiled/lodash/uniqBy.d.ts +2 -0
  866. package/dist/compiled/lodash/uniqWith.d.ts +2 -0
  867. package/dist/compiled/lodash/uniqueId.d.ts +2 -0
  868. package/dist/compiled/lodash/unset.d.ts +2 -0
  869. package/dist/compiled/lodash/unzip.d.ts +2 -0
  870. package/dist/compiled/lodash/unzipWith.d.ts +2 -0
  871. package/dist/compiled/lodash/update.d.ts +2 -0
  872. package/dist/compiled/lodash/updateWith.d.ts +2 -0
  873. package/dist/compiled/lodash/upperCase.d.ts +2 -0
  874. package/dist/compiled/lodash/upperFirst.d.ts +2 -0
  875. package/dist/compiled/lodash/values.d.ts +2 -0
  876. package/dist/compiled/lodash/valuesIn.d.ts +2 -0
  877. package/dist/compiled/lodash/without.d.ts +2 -0
  878. package/dist/compiled/lodash/words.d.ts +2 -0
  879. package/dist/compiled/lodash/wrap.d.ts +2 -0
  880. package/dist/compiled/lodash/xor.d.ts +2 -0
  881. package/dist/compiled/lodash/xorBy.d.ts +2 -0
  882. package/dist/compiled/lodash/xorWith.d.ts +2 -0
  883. package/dist/compiled/lodash/zip.d.ts +2 -0
  884. package/dist/compiled/lodash/zipObject.d.ts +2 -0
  885. package/dist/compiled/lodash/zipObjectDeep.d.ts +2 -0
  886. package/dist/compiled/lodash/zipWith.d.ts +2 -0
  887. package/dist/compiled/mime-types/declaration-licenses/@types_mime-types/LICENSE +21 -0
  888. package/dist/compiled/mime-types/index.d.ts +15 -12
  889. package/dist/compiled/mime-types/index.js +74 -28
  890. package/dist/compiled/mime-types/licenses-cjs.txt +52 -0
  891. package/dist/compiled/mime-types/package.json +1 -1
  892. package/dist/compiled/mime-types/provenance.json +19 -0
  893. package/dist/compiled/minimist/declaration-licenses/@types_minimist/LICENSE +21 -0
  894. package/dist/compiled/minimist/index.d.ts +3 -11
  895. package/dist/compiled/minimist/index.js +103 -104
  896. package/dist/compiled/minimist/licenses-cjs.txt +20 -0
  897. package/dist/compiled/minimist/package.json +1 -1
  898. package/dist/compiled/minimist/provenance.json +22 -0
  899. package/dist/compiled/nanoid/LICENSE +20 -0
  900. package/dist/compiled/nanoid/declaration-licenses/nanoid/LICENSE +20 -0
  901. package/dist/compiled/nanoid/index.d.mts +108 -0
  902. package/dist/compiled/nanoid/index.d.ts +31 -14
  903. package/dist/compiled/nanoid/index.js +117 -74
  904. package/dist/compiled/nanoid/index.mjs +98 -48
  905. package/dist/compiled/nanoid/licenses-cjs.txt +22 -0
  906. package/dist/compiled/nanoid/licenses-esm.txt +22 -0
  907. package/dist/compiled/nanoid/package.json +1 -1
  908. package/dist/compiled/nanoid/provenance.json +19 -0
  909. package/dist/compiled/ora/declaration-licenses/cli-spinners/license +9 -0
  910. package/dist/compiled/ora/declaration-licenses/ora/license +9 -0
  911. package/dist/compiled/ora/index.d.mts +501 -0
  912. package/dist/compiled/ora/index.d.ts +428 -204
  913. package/dist/compiled/ora/index.js +2121 -3893
  914. package/dist/compiled/ora/index.mjs +2155 -0
  915. package/dist/compiled/ora/licenses-cjs.txt +226 -0
  916. package/dist/compiled/ora/licenses-esm.txt +226 -0
  917. package/dist/compiled/ora/package.json +1 -1
  918. package/dist/compiled/ora/provenance.json +24 -0
  919. package/dist/compiled/pkg-up/declaration-licenses/@modern-js_compiled-pkg-up/license +9 -0
  920. package/dist/compiled/pkg-up/index.d.ts +9 -9
  921. package/dist/compiled/pkg-up/index.js +47 -14
  922. package/dist/compiled/pkg-up/licenses-cjs.txt +11 -0
  923. package/dist/compiled/pkg-up/package.json +1 -1
  924. package/dist/compiled/pkg-up/provenance.json +18 -0
  925. package/dist/compiled/semver/classes/comparator.d.ts +3 -3
  926. package/dist/compiled/semver/classes/range.d.ts +6 -6
  927. package/dist/compiled/semver/classes/semver.d.ts +11 -4
  928. package/dist/compiled/semver/declaration-licenses/@types_semver/LICENSE +21 -0
  929. package/dist/compiled/semver/functions/clean.d.ts +1 -1
  930. package/dist/compiled/semver/functions/cmp.d.ts +2 -2
  931. package/dist/compiled/semver/functions/coerce.d.ts +2 -2
  932. package/dist/compiled/semver/functions/compare-build.d.ts +7 -2
  933. package/dist/compiled/semver/functions/compare-loose.d.ts +4 -1
  934. package/dist/compiled/semver/functions/compare.d.ts +2 -2
  935. package/dist/compiled/semver/functions/diff.d.ts +3 -7
  936. package/dist/compiled/semver/functions/eq.d.ts +2 -2
  937. package/dist/compiled/semver/functions/gt.d.ts +2 -2
  938. package/dist/compiled/semver/functions/gte.d.ts +2 -2
  939. package/dist/compiled/semver/functions/inc.d.ts +15 -4
  940. package/dist/compiled/semver/functions/lt.d.ts +2 -2
  941. package/dist/compiled/semver/functions/lte.d.ts +2 -2
  942. package/dist/compiled/semver/functions/major.d.ts +2 -2
  943. package/dist/compiled/semver/functions/minor.d.ts +2 -2
  944. package/dist/compiled/semver/functions/neq.d.ts +2 -2
  945. package/dist/compiled/semver/functions/parse.d.ts +15 -4
  946. package/dist/compiled/semver/functions/patch.d.ts +2 -2
  947. package/dist/compiled/semver/functions/prerelease.d.ts +2 -2
  948. package/dist/compiled/semver/functions/rcompare.d.ts +2 -2
  949. package/dist/compiled/semver/functions/rsort.d.ts +2 -2
  950. package/dist/compiled/semver/functions/satisfies.d.ts +4 -4
  951. package/dist/compiled/semver/functions/sort.d.ts +2 -2
  952. package/dist/compiled/semver/functions/truncate.d.ts +10 -0
  953. package/dist/compiled/semver/functions/valid.d.ts +2 -2
  954. package/dist/compiled/semver/index.d.ts +82 -77
  955. package/dist/compiled/semver/index.js +639 -1026
  956. package/dist/compiled/semver/licenses-cjs.txt +17 -0
  957. package/dist/compiled/semver/package.json +1 -1
  958. package/dist/compiled/semver/preload.d.ts +2 -0
  959. package/dist/compiled/semver/provenance.json +22 -0
  960. package/dist/compiled/semver/ranges/gtr.d.ts +4 -4
  961. package/dist/compiled/semver/ranges/intersects.d.ts +3 -3
  962. package/dist/compiled/semver/ranges/ltr.d.ts +4 -4
  963. package/dist/compiled/semver/ranges/max-satisfying.d.ts +5 -5
  964. package/dist/compiled/semver/ranges/min-satisfying.d.ts +5 -5
  965. package/dist/compiled/semver/ranges/min-version.d.ts +3 -3
  966. package/dist/compiled/semver/ranges/outside.d.ts +5 -5
  967. package/dist/compiled/semver/ranges/simplify.d.ts +2 -2
  968. package/dist/compiled/semver/ranges/subset.d.ts +3 -7
  969. package/dist/compiled/semver/ranges/to-comparators.d.ts +2 -2
  970. package/dist/compiled/semver/ranges/valid.d.ts +3 -3
  971. package/dist/compiled/signale/declaration-licenses/@types_signale/LICENSE +21 -0
  972. package/dist/compiled/signale/index.d.ts +22 -29
  973. package/dist/compiled/signale/index.js +2934 -613
  974. package/dist/compiled/signale/license.md +21 -0
  975. package/dist/compiled/signale/licenses-cjs.txt +468 -0
  976. package/dist/compiled/signale/package.json +1 -1
  977. package/dist/compiled/signale/provenance.json +19 -0
  978. package/dist/compiled/slash/declaration-licenses/slash/license +9 -0
  979. package/dist/compiled/slash/index.d.mts +25 -0
  980. package/dist/compiled/slash/index.d.ts +4 -4
  981. package/dist/compiled/slash/index.js +31 -27
  982. package/dist/compiled/slash/index.mjs +25 -0
  983. package/dist/compiled/slash/license +1 -1
  984. package/dist/compiled/slash/licenses-cjs.txt +11 -0
  985. package/dist/compiled/slash/licenses-esm.txt +11 -0
  986. package/dist/compiled/slash/package.json +1 -1
  987. package/dist/compiled/slash/provenance.json +19 -0
  988. package/dist/compiled/strip-ansi/declaration-licenses/strip-ansi/license +9 -0
  989. package/dist/compiled/strip-ansi/index.d.mts +17 -0
  990. package/dist/compiled/strip-ansi/index.d.ts +2 -2
  991. package/dist/compiled/strip-ansi/index.js +39 -29
  992. package/dist/compiled/strip-ansi/index.mjs +33 -0
  993. package/dist/compiled/strip-ansi/license +1 -1
  994. package/dist/compiled/strip-ansi/licenses-cjs.txt +24 -0
  995. package/dist/compiled/strip-ansi/licenses-esm.txt +24 -0
  996. package/dist/compiled/strip-ansi/package.json +1 -1
  997. package/dist/compiled/strip-ansi/provenance.json +19 -0
  998. package/dist/compiled/tsconfig-paths/declaration-licenses/tsconfig-paths/LICENSE +21 -0
  999. package/dist/compiled/tsconfig-paths/index.d.mts +115 -0
  1000. package/dist/compiled/tsconfig-paths/index.d.ts +115 -0
  1001. package/dist/compiled/tsconfig-paths/index.js +256 -243
  1002. package/dist/compiled/tsconfig-paths/index.mjs +2 -2
  1003. package/dist/compiled/tsconfig-paths/licenses-cjs.txt +48 -0
  1004. package/dist/compiled/tsconfig-paths/package.json +1 -1
  1005. package/dist/compiled/tsconfig-paths/provenance.json +19 -0
  1006. package/dist/compiled/upath/LICENSE +22 -0
  1007. package/dist/compiled/upath/declaration-licenses/upath/LICENSE +22 -0
  1008. package/dist/compiled/upath/index.d.mts +84 -0
  1009. package/dist/compiled/upath/index.d.ts +84 -0
  1010. package/dist/compiled/upath/index.js +173 -110
  1011. package/dist/compiled/upath/index.mjs +236 -0
  1012. package/dist/compiled/upath/licenses-cjs.txt +24 -0
  1013. package/dist/compiled/upath/licenses-esm.txt +24 -0
  1014. package/dist/compiled/upath/package.json +1 -1
  1015. package/dist/compiled/upath/provenance.json +22 -0
  1016. package/dist/compiled/url-join/declaration-licenses/url-join/LICENSE +21 -0
  1017. package/dist/compiled/url-join/index.d.mts +9 -0
  1018. package/dist/compiled/url-join/index.d.ts +3 -11
  1019. package/dist/compiled/url-join/index.js +55 -55
  1020. package/dist/compiled/url-join/index.mjs +50 -0
  1021. package/dist/compiled/url-join/licenses-cjs.txt +23 -0
  1022. package/dist/compiled/url-join/licenses-esm.txt +23 -0
  1023. package/dist/compiled/url-join/package.json +1 -1
  1024. package/dist/compiled/url-join/provenance.json +22 -0
  1025. package/dist/esm/cli/applyOptionsChain.mjs +1 -1
  1026. package/dist/esm/cli/get/config.mjs +1 -1
  1027. package/dist/esm/cli/is/config.mjs +1 -1
  1028. package/dist/esm/cli/require.mjs +4 -5
  1029. package/dist/esm/compiled.mjs +22 -31
  1030. package/dist/esm/fast-glob.mjs +1 -0
  1031. package/dist/esm/watch-options.mjs +0 -0
  1032. package/dist/esm-node/cli/applyOptionsChain.mjs +1 -1
  1033. package/dist/esm-node/cli/get/config.mjs +1 -1
  1034. package/dist/esm-node/cli/is/config.mjs +1 -1
  1035. package/dist/esm-node/cli/require.mjs +4 -5
  1036. package/dist/esm-node/compiled.mjs +22 -30
  1037. package/dist/esm-node/fast-glob.mjs +2 -0
  1038. package/dist/esm-node/watch-options.mjs +1 -0
  1039. package/dist/types/cli/commands.d.ts +1 -1
  1040. package/dist/types/cli/modulePath.d.ts +1 -1
  1041. package/dist/types/cli/require.d.ts +0 -1
  1042. package/dist/types/compiled.d.ts +30 -29
  1043. package/dist/types/fast-glob.d.ts +1 -0
  1044. package/dist/types/watch-options.d.ts +1 -0
  1045. package/package.json +100 -36
  1046. package/rslib.config.mts +20 -84
  1047. package/dist/compiled/address/lib/address.d.ts +0 -28
  1048. package/dist/compiled/browserslist/license +0 -20
  1049. package/dist/compiled/chokidar/anymatch/index.d.ts +0 -19
  1050. package/dist/compiled/chokidar/fsevents.node +0 -0
  1051. package/dist/compiled/chokidar/license +0 -21
  1052. package/dist/compiled/chokidar/types/index.d.ts +0 -188
  1053. package/dist/compiled/commander/typings/index.d.ts +0 -890
  1054. package/dist/compiled/debug/ms/index.d.ts +0 -25
  1055. package/dist/compiled/dotenv/index.js +0 -101
  1056. package/dist/compiled/dotenv/license +0 -23
  1057. package/dist/compiled/dotenv/package.json +0 -1
  1058. package/dist/compiled/dotenv/types/index.d.ts +0 -59
  1059. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/adapters/fs.d.ts +0 -20
  1060. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/index.d.ts +0 -12
  1061. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/providers/async.d.ts +0 -7
  1062. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/settings.d.ts +0 -20
  1063. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/types/index.d.ts +0 -20
  1064. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/adapters/fs.d.ts +0 -13
  1065. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/index.d.ts +0 -12
  1066. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/providers/async.d.ts +0 -4
  1067. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/settings.d.ts +0 -16
  1068. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/types/index.d.ts +0 -4
  1069. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/index.d.ts +0 -14
  1070. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/providers/async.d.ts +0 -12
  1071. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/async.d.ts +0 -30
  1072. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/reader.d.ts +0 -6
  1073. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/settings.d.ts +0 -30
  1074. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/types/index.d.ts +0 -8
  1075. package/dist/compiled/fast-glob/index.js +0 -4665
  1076. package/dist/compiled/fast-glob/index.js.LICENSE.txt +0 -38
  1077. package/dist/compiled/fast-glob/license +0 -21
  1078. package/dist/compiled/fast-glob/out/index.d.ts +0 -27
  1079. package/dist/compiled/fast-glob/out/managers/tasks.d.ts +0 -22
  1080. package/dist/compiled/fast-glob/out/settings.d.ts +0 -164
  1081. package/dist/compiled/fast-glob/out/types/index.d.ts +0 -31
  1082. package/dist/compiled/fast-glob/package.json +0 -1
  1083. package/dist/compiled/filesize/filesize.d.ts +0 -131
  1084. package/dist/compiled/filesize/license +0 -28
  1085. package/dist/compiled/fs-extra/license +0 -15
  1086. package/dist/compiled/glob/license +0 -21
  1087. package/dist/compiled/glob/minimatch/index.d.ts +0 -204
  1088. package/dist/compiled/inquirer/index.js.LICENSE.txt +0 -7
  1089. package/dist/compiled/inquirer/lib/objects/choice.d.ts +0 -65
  1090. package/dist/compiled/inquirer/lib/objects/choices.d.ts +0 -206
  1091. package/dist/compiled/inquirer/lib/objects/separator.d.ts +0 -37
  1092. package/dist/compiled/inquirer/lib/prompts/base.d.ts +0 -100
  1093. package/dist/compiled/inquirer/lib/prompts/checkbox.d.ts +0 -116
  1094. package/dist/compiled/inquirer/lib/prompts/confirm.d.ts +0 -53
  1095. package/dist/compiled/inquirer/lib/prompts/editor.d.ts +0 -101
  1096. package/dist/compiled/inquirer/lib/prompts/expand.d.ts +0 -149
  1097. package/dist/compiled/inquirer/lib/prompts/input.d.ts +0 -82
  1098. package/dist/compiled/inquirer/lib/prompts/list.d.ts +0 -89
  1099. package/dist/compiled/inquirer/lib/prompts/number.d.ts +0 -32
  1100. package/dist/compiled/inquirer/lib/prompts/password.d.ts +0 -82
  1101. package/dist/compiled/inquirer/lib/prompts/rawlist.d.ts +0 -111
  1102. package/dist/compiled/inquirer/lib/ui/baseUI.d.ts +0 -37
  1103. package/dist/compiled/inquirer/lib/ui/bottom-bar.d.ts +0 -65
  1104. package/dist/compiled/inquirer/lib/ui/prompt.d.ts +0 -104
  1105. package/dist/compiled/inquirer/lib/utils/events.d.ts +0 -72
  1106. package/dist/compiled/inquirer/lib/utils/incrementListIndex.d.ts +0 -23
  1107. package/dist/compiled/inquirer/lib/utils/paginator.d.ts +0 -55
  1108. package/dist/compiled/inquirer/lib/utils/readline.d.ts +0 -56
  1109. package/dist/compiled/inquirer/lib/utils/screen-manager.d.ts +0 -90
  1110. package/dist/compiled/inquirer/lib/utils/utils.d.ts +0 -30
  1111. package/dist/compiled/inquirer/license +0 -22
  1112. package/dist/compiled/inquirer/rxjs/LICENSE.txt +0 -202
  1113. package/dist/compiled/inquirer/rxjs/ajax/index.d.ts +0 -5
  1114. package/dist/compiled/inquirer/rxjs/fetch/index.d.ts +0 -2
  1115. package/dist/compiled/inquirer/rxjs/index.d.ts +0 -173
  1116. package/dist/compiled/inquirer/rxjs/internal/AnyCatcher.d.ts +0 -10
  1117. package/dist/compiled/inquirer/rxjs/internal/AsyncSubject.d.ts +0 -13
  1118. package/dist/compiled/inquirer/rxjs/internal/BehaviorSubject.d.ts +0 -13
  1119. package/dist/compiled/inquirer/rxjs/internal/Notification.d.ts +0 -175
  1120. package/dist/compiled/inquirer/rxjs/internal/NotificationFactories.d.ts +0 -2
  1121. package/dist/compiled/inquirer/rxjs/internal/Observable.d.ts +0 -121
  1122. package/dist/compiled/inquirer/rxjs/internal/Operator.d.ts +0 -9
  1123. package/dist/compiled/inquirer/rxjs/internal/ReplaySubject.d.ts +0 -49
  1124. package/dist/compiled/inquirer/rxjs/internal/Scheduler.d.ts +0 -53
  1125. package/dist/compiled/inquirer/rxjs/internal/Subject.d.ts +0 -54
  1126. package/dist/compiled/inquirer/rxjs/internal/Subscriber.d.ts +0 -72
  1127. package/dist/compiled/inquirer/rxjs/internal/Subscription.d.ts +0 -92
  1128. package/dist/compiled/inquirer/rxjs/internal/ajax/AjaxResponse.d.ts +0 -115
  1129. package/dist/compiled/inquirer/rxjs/internal/ajax/ajax.d.ts +0 -227
  1130. package/dist/compiled/inquirer/rxjs/internal/ajax/errors.d.ts +0 -65
  1131. package/dist/compiled/inquirer/rxjs/internal/ajax/getXHRResponse.d.ts +0 -14
  1132. package/dist/compiled/inquirer/rxjs/internal/ajax/types.d.ts +0 -200
  1133. package/dist/compiled/inquirer/rxjs/internal/config.d.ts +0 -73
  1134. package/dist/compiled/inquirer/rxjs/internal/firstValueFrom.d.ts +0 -7
  1135. package/dist/compiled/inquirer/rxjs/internal/lastValueFrom.d.ts +0 -7
  1136. package/dist/compiled/inquirer/rxjs/internal/observable/ConnectableObservable.d.ts +0 -42
  1137. package/dist/compiled/inquirer/rxjs/internal/observable/bindCallback.d.ts +0 -5
  1138. package/dist/compiled/inquirer/rxjs/internal/observable/bindCallbackInternals.d.ts +0 -4
  1139. package/dist/compiled/inquirer/rxjs/internal/observable/bindNodeCallback.d.ts +0 -5
  1140. package/dist/compiled/inquirer/rxjs/internal/observable/combineLatest.d.ts +0 -33
  1141. package/dist/compiled/inquirer/rxjs/internal/observable/concat.d.ts +0 -5
  1142. package/dist/compiled/inquirer/rxjs/internal/observable/connectable.d.ts +0 -27
  1143. package/dist/compiled/inquirer/rxjs/internal/observable/defer.d.ts +0 -51
  1144. package/dist/compiled/inquirer/rxjs/internal/observable/dom/WebSocketSubject.d.ts +0 -173
  1145. package/dist/compiled/inquirer/rxjs/internal/observable/dom/animationFrames.d.ts +0 -76
  1146. package/dist/compiled/inquirer/rxjs/internal/observable/dom/fetch.d.ts +0 -7
  1147. package/dist/compiled/inquirer/rxjs/internal/observable/dom/webSocket.d.ts +0 -159
  1148. package/dist/compiled/inquirer/rxjs/internal/observable/empty.d.ts +0 -72
  1149. package/dist/compiled/inquirer/rxjs/internal/observable/forkJoin.d.ts +0 -24
  1150. package/dist/compiled/inquirer/rxjs/internal/observable/from.d.ts +0 -6
  1151. package/dist/compiled/inquirer/rxjs/internal/observable/fromEvent.d.ts +0 -45
  1152. package/dist/compiled/inquirer/rxjs/internal/observable/fromEventPattern.d.ts +0 -5
  1153. package/dist/compiled/inquirer/rxjs/internal/observable/fromSubscribable.d.ts +0 -14
  1154. package/dist/compiled/inquirer/rxjs/internal/observable/generate.d.ts +0 -314
  1155. package/dist/compiled/inquirer/rxjs/internal/observable/iif.d.ts +0 -82
  1156. package/dist/compiled/inquirer/rxjs/internal/observable/innerFrom.d.ts +0 -21
  1157. package/dist/compiled/inquirer/rxjs/internal/observable/interval.d.ts +0 -48
  1158. package/dist/compiled/inquirer/rxjs/internal/observable/merge.d.ts +0 -9
  1159. package/dist/compiled/inquirer/rxjs/internal/observable/never.d.ts +0 -40
  1160. package/dist/compiled/inquirer/rxjs/internal/observable/of.d.ts +0 -14
  1161. package/dist/compiled/inquirer/rxjs/internal/observable/onErrorResumeNext.d.ts +0 -5
  1162. package/dist/compiled/inquirer/rxjs/internal/observable/pairs.d.ts +0 -19
  1163. package/dist/compiled/inquirer/rxjs/internal/observable/partition.d.ts +0 -9
  1164. package/dist/compiled/inquirer/rxjs/internal/observable/race.d.ts +0 -12
  1165. package/dist/compiled/inquirer/rxjs/internal/observable/range.d.ts +0 -8
  1166. package/dist/compiled/inquirer/rxjs/internal/observable/throwError.d.ts +0 -115
  1167. package/dist/compiled/inquirer/rxjs/internal/observable/timer.d.ts +0 -126
  1168. package/dist/compiled/inquirer/rxjs/internal/observable/using.d.ts +0 -30
  1169. package/dist/compiled/inquirer/rxjs/internal/observable/zip.d.ts +0 -7
  1170. package/dist/compiled/inquirer/rxjs/internal/operators/OperatorSubscriber.d.ts +0 -41
  1171. package/dist/compiled/inquirer/rxjs/internal/operators/audit.d.ts +0 -48
  1172. package/dist/compiled/inquirer/rxjs/internal/operators/auditTime.d.ts +0 -50
  1173. package/dist/compiled/inquirer/rxjs/internal/operators/buffer.d.ts +0 -41
  1174. package/dist/compiled/inquirer/rxjs/internal/operators/bufferCount.d.ts +0 -54
  1175. package/dist/compiled/inquirer/rxjs/internal/operators/bufferTime.d.ts +0 -5
  1176. package/dist/compiled/inquirer/rxjs/internal/operators/bufferToggle.d.ts +0 -46
  1177. package/dist/compiled/inquirer/rxjs/internal/operators/bufferWhen.d.ts +0 -41
  1178. package/dist/compiled/inquirer/rxjs/internal/operators/catchError.d.ts +0 -4
  1179. package/dist/compiled/inquirer/rxjs/internal/operators/combineAll.d.ts +0 -6
  1180. package/dist/compiled/inquirer/rxjs/internal/operators/combineLatest.d.ts +0 -10
  1181. package/dist/compiled/inquirer/rxjs/internal/operators/combineLatestAll.d.ts +0 -6
  1182. package/dist/compiled/inquirer/rxjs/internal/operators/combineLatestWith.d.ts +0 -43
  1183. package/dist/compiled/inquirer/rxjs/internal/operators/concat.d.ts +0 -6
  1184. package/dist/compiled/inquirer/rxjs/internal/operators/concatAll.d.ts +0 -59
  1185. package/dist/compiled/inquirer/rxjs/internal/operators/concatMap.d.ts +0 -7
  1186. package/dist/compiled/inquirer/rxjs/internal/operators/concatMapTo.d.ts +0 -8
  1187. package/dist/compiled/inquirer/rxjs/internal/operators/concatWith.d.ts +0 -43
  1188. package/dist/compiled/inquirer/rxjs/internal/operators/connect.d.ts +0 -87
  1189. package/dist/compiled/inquirer/rxjs/internal/operators/count.d.ts +0 -58
  1190. package/dist/compiled/inquirer/rxjs/internal/operators/debounce.d.ts +0 -61
  1191. package/dist/compiled/inquirer/rxjs/internal/operators/debounceTime.d.ts +0 -59
  1192. package/dist/compiled/inquirer/rxjs/internal/operators/defaultIfEmpty.d.ts +0 -38
  1193. package/dist/compiled/inquirer/rxjs/internal/operators/delay.d.ts +0 -59
  1194. package/dist/compiled/inquirer/rxjs/internal/operators/delayWhen.d.ts +0 -6
  1195. package/dist/compiled/inquirer/rxjs/internal/operators/dematerialize.d.ts +0 -51
  1196. package/dist/compiled/inquirer/rxjs/internal/operators/distinct.d.ts +0 -60
  1197. package/dist/compiled/inquirer/rxjs/internal/operators/distinctUntilChanged.d.ts +0 -4
  1198. package/dist/compiled/inquirer/rxjs/internal/operators/distinctUntilKeyChanged.d.ts +0 -4
  1199. package/dist/compiled/inquirer/rxjs/internal/operators/elementAt.d.ts +0 -51
  1200. package/dist/compiled/inquirer/rxjs/internal/operators/endWith.d.ts +0 -7
  1201. package/dist/compiled/inquirer/rxjs/internal/operators/every.d.ts +0 -9
  1202. package/dist/compiled/inquirer/rxjs/internal/operators/exhaust.d.ts +0 -6
  1203. package/dist/compiled/inquirer/rxjs/internal/operators/exhaustAll.d.ts +0 -47
  1204. package/dist/compiled/inquirer/rxjs/internal/operators/exhaustMap.d.ts +0 -7
  1205. package/dist/compiled/inquirer/rxjs/internal/operators/expand.d.ts +0 -9
  1206. package/dist/compiled/inquirer/rxjs/internal/operators/filter.d.ts +0 -9
  1207. package/dist/compiled/inquirer/rxjs/internal/operators/finalize.d.ts +0 -64
  1208. package/dist/compiled/inquirer/rxjs/internal/operators/find.d.ts +0 -12
  1209. package/dist/compiled/inquirer/rxjs/internal/operators/findIndex.d.ts +0 -9
  1210. package/dist/compiled/inquirer/rxjs/internal/operators/first.d.ts +0 -9
  1211. package/dist/compiled/inquirer/rxjs/internal/operators/flatMap.d.ts +0 -6
  1212. package/dist/compiled/inquirer/rxjs/internal/operators/groupBy.d.ts +0 -119
  1213. package/dist/compiled/inquirer/rxjs/internal/operators/ignoreElements.d.ts +0 -38
  1214. package/dist/compiled/inquirer/rxjs/internal/operators/isEmpty.d.ts +0 -64
  1215. package/dist/compiled/inquirer/rxjs/internal/operators/joinAllInternals.d.ts +0 -14
  1216. package/dist/compiled/inquirer/rxjs/internal/operators/last.d.ts +0 -8
  1217. package/dist/compiled/inquirer/rxjs/internal/operators/map.d.ts +0 -5
  1218. package/dist/compiled/inquirer/rxjs/internal/operators/mapTo.d.ts +0 -10
  1219. package/dist/compiled/inquirer/rxjs/internal/operators/materialize.d.ts +0 -52
  1220. package/dist/compiled/inquirer/rxjs/internal/operators/max.d.ts +0 -50
  1221. package/dist/compiled/inquirer/rxjs/internal/operators/merge.d.ts +0 -10
  1222. package/dist/compiled/inquirer/rxjs/internal/operators/mergeAll.d.ts +0 -62
  1223. package/dist/compiled/inquirer/rxjs/internal/operators/mergeInternals.d.ts +0 -18
  1224. package/dist/compiled/inquirer/rxjs/internal/operators/mergeMap.d.ts +0 -7
  1225. package/dist/compiled/inquirer/rxjs/internal/operators/mergeMapTo.d.ts +0 -9
  1226. package/dist/compiled/inquirer/rxjs/internal/operators/mergeScan.d.ts +0 -68
  1227. package/dist/compiled/inquirer/rxjs/internal/operators/mergeWith.d.ts +0 -44
  1228. package/dist/compiled/inquirer/rxjs/internal/operators/min.d.ts +0 -50
  1229. package/dist/compiled/inquirer/rxjs/internal/operators/multicast.d.ts +0 -63
  1230. package/dist/compiled/inquirer/rxjs/internal/operators/observeOn.d.ts +0 -56
  1231. package/dist/compiled/inquirer/rxjs/internal/operators/onErrorResumeNextWith.d.ts +0 -8
  1232. package/dist/compiled/inquirer/rxjs/internal/operators/pairwise.d.ts +0 -46
  1233. package/dist/compiled/inquirer/rxjs/internal/operators/partition.d.ts +0 -54
  1234. package/dist/compiled/inquirer/rxjs/internal/operators/pluck.d.ts +0 -18
  1235. package/dist/compiled/inquirer/rxjs/internal/operators/publish.d.ts +0 -30
  1236. package/dist/compiled/inquirer/rxjs/internal/operators/publishBehavior.d.ts +0 -19
  1237. package/dist/compiled/inquirer/rxjs/internal/operators/publishLast.d.ts +0 -69
  1238. package/dist/compiled/inquirer/rxjs/internal/operators/publishReplay.d.ts +0 -56
  1239. package/dist/compiled/inquirer/rxjs/internal/operators/race.d.ts +0 -6
  1240. package/dist/compiled/inquirer/rxjs/internal/operators/raceWith.d.ts +0 -29
  1241. package/dist/compiled/inquirer/rxjs/internal/operators/reduce.d.ts +0 -5
  1242. package/dist/compiled/inquirer/rxjs/internal/operators/refCount.d.ts +0 -61
  1243. package/dist/compiled/inquirer/rxjs/internal/operators/repeat.d.ts +0 -108
  1244. package/dist/compiled/inquirer/rxjs/internal/operators/repeatWhen.d.ts +0 -38
  1245. package/dist/compiled/inquirer/rxjs/internal/operators/retry.d.ts +0 -28
  1246. package/dist/compiled/inquirer/rxjs/internal/operators/retryWhen.d.ts +0 -61
  1247. package/dist/compiled/inquirer/rxjs/internal/operators/sample.d.ts +0 -43
  1248. package/dist/compiled/inquirer/rxjs/internal/operators/sampleTime.d.ts +0 -46
  1249. package/dist/compiled/inquirer/rxjs/internal/operators/scan.d.ts +0 -5
  1250. package/dist/compiled/inquirer/rxjs/internal/operators/scanInternals.d.ts +0 -12
  1251. package/dist/compiled/inquirer/rxjs/internal/operators/sequenceEqual.d.ts +0 -60
  1252. package/dist/compiled/inquirer/rxjs/internal/operators/share.d.ts +0 -43
  1253. package/dist/compiled/inquirer/rxjs/internal/operators/shareReplay.d.ts +0 -10
  1254. package/dist/compiled/inquirer/rxjs/internal/operators/single.d.ts +0 -5
  1255. package/dist/compiled/inquirer/rxjs/internal/operators/skip.d.ts +0 -36
  1256. package/dist/compiled/inquirer/rxjs/internal/operators/skipLast.d.ts +0 -45
  1257. package/dist/compiled/inquirer/rxjs/internal/operators/skipUntil.d.ts +0 -48
  1258. package/dist/compiled/inquirer/rxjs/internal/operators/skipWhile.d.ts +0 -5
  1259. package/dist/compiled/inquirer/rxjs/internal/operators/startWith.d.ts +0 -7
  1260. package/dist/compiled/inquirer/rxjs/internal/operators/subscribeOn.d.ts +0 -62
  1261. package/dist/compiled/inquirer/rxjs/internal/operators/switchAll.d.ts +0 -61
  1262. package/dist/compiled/inquirer/rxjs/internal/operators/switchMap.d.ts +0 -7
  1263. package/dist/compiled/inquirer/rxjs/internal/operators/switchMapTo.d.ts +0 -8
  1264. package/dist/compiled/inquirer/rxjs/internal/operators/switchScan.d.ts +0 -20
  1265. package/dist/compiled/inquirer/rxjs/internal/operators/take.d.ts +0 -45
  1266. package/dist/compiled/inquirer/rxjs/internal/operators/takeLast.d.ts +0 -42
  1267. package/dist/compiled/inquirer/rxjs/internal/operators/takeUntil.d.ts +0 -41
  1268. package/dist/compiled/inquirer/rxjs/internal/operators/takeWhile.d.ts +0 -8
  1269. package/dist/compiled/inquirer/rxjs/internal/operators/tap.d.ts +0 -72
  1270. package/dist/compiled/inquirer/rxjs/internal/operators/throttle.d.ts +0 -78
  1271. package/dist/compiled/inquirer/rxjs/internal/operators/throttleTime.d.ts +0 -53
  1272. package/dist/compiled/inquirer/rxjs/internal/operators/throwIfEmpty.d.ts +0 -39
  1273. package/dist/compiled/inquirer/rxjs/internal/operators/timeInterval.d.ts +0 -50
  1274. package/dist/compiled/inquirer/rxjs/internal/operators/timeout.d.ts +0 -255
  1275. package/dist/compiled/inquirer/rxjs/internal/operators/timeoutWith.d.ts +0 -8
  1276. package/dist/compiled/inquirer/rxjs/internal/operators/timestamp.d.ts +0 -35
  1277. package/dist/compiled/inquirer/rxjs/internal/operators/toArray.d.ts +0 -33
  1278. package/dist/compiled/inquirer/rxjs/internal/operators/window.d.ts +0 -48
  1279. package/dist/compiled/inquirer/rxjs/internal/operators/windowCount.d.ts +0 -65
  1280. package/dist/compiled/inquirer/rxjs/internal/operators/windowTime.d.ts +0 -6
  1281. package/dist/compiled/inquirer/rxjs/internal/operators/windowToggle.d.ts +0 -49
  1282. package/dist/compiled/inquirer/rxjs/internal/operators/windowWhen.d.ts +0 -49
  1283. package/dist/compiled/inquirer/rxjs/internal/operators/withLatestFrom.d.ts +0 -4
  1284. package/dist/compiled/inquirer/rxjs/internal/operators/zip.d.ts +0 -10
  1285. package/dist/compiled/inquirer/rxjs/internal/operators/zipAll.d.ts +0 -14
  1286. package/dist/compiled/inquirer/rxjs/internal/operators/zipWith.d.ts +0 -26
  1287. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleArray.d.ts +0 -4
  1288. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleAsyncIterable.d.ts +0 -4
  1289. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleIterable.d.ts +0 -9
  1290. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleObservable.d.ts +0 -3
  1291. package/dist/compiled/inquirer/rxjs/internal/scheduled/schedulePromise.d.ts +0 -3
  1292. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleReadableStreamLike.d.ts +0 -4
  1293. package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduled.d.ts +0 -15
  1294. package/dist/compiled/inquirer/rxjs/internal/scheduler/Action.d.ts +0 -30
  1295. package/dist/compiled/inquirer/rxjs/internal/scheduler/AnimationFrameAction.d.ts +0 -12
  1296. package/dist/compiled/inquirer/rxjs/internal/scheduler/AnimationFrameScheduler.d.ts +0 -6
  1297. package/dist/compiled/inquirer/rxjs/internal/scheduler/AsapAction.d.ts +0 -12
  1298. package/dist/compiled/inquirer/rxjs/internal/scheduler/AsapScheduler.d.ts +0 -6
  1299. package/dist/compiled/inquirer/rxjs/internal/scheduler/AsyncAction.d.ts +0 -24
  1300. package/dist/compiled/inquirer/rxjs/internal/scheduler/AsyncScheduler.d.ts +0 -9
  1301. package/dist/compiled/inquirer/rxjs/internal/scheduler/QueueAction.d.ts +0 -14
  1302. package/dist/compiled/inquirer/rxjs/internal/scheduler/QueueScheduler.d.ts +0 -4
  1303. package/dist/compiled/inquirer/rxjs/internal/scheduler/VirtualTimeScheduler.d.ts +0 -48
  1304. package/dist/compiled/inquirer/rxjs/internal/scheduler/animationFrame.d.ts +0 -38
  1305. package/dist/compiled/inquirer/rxjs/internal/scheduler/animationFrameProvider.d.ts +0 -13
  1306. package/dist/compiled/inquirer/rxjs/internal/scheduler/asap.d.ts +0 -41
  1307. package/dist/compiled/inquirer/rxjs/internal/scheduler/async.d.ts +0 -53
  1308. package/dist/compiled/inquirer/rxjs/internal/scheduler/dateTimestampProvider.d.ts +0 -7
  1309. package/dist/compiled/inquirer/rxjs/internal/scheduler/immediateProvider.d.ts +0 -14
  1310. package/dist/compiled/inquirer/rxjs/internal/scheduler/intervalProvider.d.ts +0 -14
  1311. package/dist/compiled/inquirer/rxjs/internal/scheduler/performanceTimestampProvider.d.ts +0 -7
  1312. package/dist/compiled/inquirer/rxjs/internal/scheduler/queue.d.ts +0 -69
  1313. package/dist/compiled/inquirer/rxjs/internal/scheduler/timeoutProvider.d.ts +0 -14
  1314. package/dist/compiled/inquirer/rxjs/internal/scheduler/timerHandle.d.ts +0 -2
  1315. package/dist/compiled/inquirer/rxjs/internal/symbol/iterator.d.ts +0 -3
  1316. package/dist/compiled/inquirer/rxjs/internal/symbol/observable.d.ts +0 -8
  1317. package/dist/compiled/inquirer/rxjs/internal/testing/ColdObservable.d.ts +0 -16
  1318. package/dist/compiled/inquirer/rxjs/internal/testing/HotObservable.d.ts +0 -15
  1319. package/dist/compiled/inquirer/rxjs/internal/testing/SubscriptionLog.d.ts +0 -6
  1320. package/dist/compiled/inquirer/rxjs/internal/testing/SubscriptionLoggable.d.ts +0 -9
  1321. package/dist/compiled/inquirer/rxjs/internal/testing/TestMessage.d.ts +0 -7
  1322. package/dist/compiled/inquirer/rxjs/internal/testing/TestScheduler.d.ts +0 -88
  1323. package/dist/compiled/inquirer/rxjs/internal/types.d.ts +0 -307
  1324. package/dist/compiled/inquirer/rxjs/internal/util/ArgumentOutOfRangeError.d.ts +0 -19
  1325. package/dist/compiled/inquirer/rxjs/internal/util/EmptyError.d.ts +0 -21
  1326. package/dist/compiled/inquirer/rxjs/internal/util/Immediate.d.ts +0 -14
  1327. package/dist/compiled/inquirer/rxjs/internal/util/NotFoundError.d.ts +0 -17
  1328. package/dist/compiled/inquirer/rxjs/internal/util/ObjectUnsubscribedError.d.ts +0 -20
  1329. package/dist/compiled/inquirer/rxjs/internal/util/SequenceError.d.ts +0 -17
  1330. package/dist/compiled/inquirer/rxjs/internal/util/UnsubscriptionError.d.ts +0 -16
  1331. package/dist/compiled/inquirer/rxjs/internal/util/applyMixins.d.ts +0 -2
  1332. package/dist/compiled/inquirer/rxjs/internal/util/args.d.ts +0 -5
  1333. package/dist/compiled/inquirer/rxjs/internal/util/argsArgArrayOrObject.d.ts +0 -11
  1334. package/dist/compiled/inquirer/rxjs/internal/util/argsOrArgArray.d.ts +0 -6
  1335. package/dist/compiled/inquirer/rxjs/internal/util/arrRemove.d.ts +0 -7
  1336. package/dist/compiled/inquirer/rxjs/internal/util/createErrorClass.d.ts +0 -11
  1337. package/dist/compiled/inquirer/rxjs/internal/util/createObject.d.ts +0 -2
  1338. package/dist/compiled/inquirer/rxjs/internal/util/errorContext.d.ts +0 -14
  1339. package/dist/compiled/inquirer/rxjs/internal/util/executeSchedule.d.ts +0 -5
  1340. package/dist/compiled/inquirer/rxjs/internal/util/identity.d.ts +0 -44
  1341. package/dist/compiled/inquirer/rxjs/internal/util/isArrayLike.d.ts +0 -2
  1342. package/dist/compiled/inquirer/rxjs/internal/util/isAsyncIterable.d.ts +0 -2
  1343. package/dist/compiled/inquirer/rxjs/internal/util/isDate.d.ts +0 -9
  1344. package/dist/compiled/inquirer/rxjs/internal/util/isFunction.d.ts +0 -6
  1345. package/dist/compiled/inquirer/rxjs/internal/util/isInteropObservable.d.ts +0 -4
  1346. package/dist/compiled/inquirer/rxjs/internal/util/isIterable.d.ts +0 -3
  1347. package/dist/compiled/inquirer/rxjs/internal/util/isObservable.d.ts +0 -8
  1348. package/dist/compiled/inquirer/rxjs/internal/util/isPromise.d.ts +0 -6
  1349. package/dist/compiled/inquirer/rxjs/internal/util/isReadableStreamLike.d.ts +0 -4
  1350. package/dist/compiled/inquirer/rxjs/internal/util/isScheduler.d.ts +0 -3
  1351. package/dist/compiled/inquirer/rxjs/internal/util/lift.d.ts +0 -15
  1352. package/dist/compiled/inquirer/rxjs/internal/util/mapOneOrManyArgs.d.ts +0 -7
  1353. package/dist/compiled/inquirer/rxjs/internal/util/noop.d.ts +0 -2
  1354. package/dist/compiled/inquirer/rxjs/internal/util/not.d.ts +0 -2
  1355. package/dist/compiled/inquirer/rxjs/internal/util/pipe.d.ts +0 -14
  1356. package/dist/compiled/inquirer/rxjs/internal/util/reportUnhandledError.d.ts +0 -11
  1357. package/dist/compiled/inquirer/rxjs/internal/util/subscribeToArray.d.ts +0 -7
  1358. package/dist/compiled/inquirer/rxjs/internal/util/throwUnobservableError.d.ts +0 -6
  1359. package/dist/compiled/inquirer/rxjs/internal/util/workarounds.d.ts +0 -2
  1360. package/dist/compiled/inquirer/rxjs/operators/index.d.ts +0 -114
  1361. package/dist/compiled/inquirer/rxjs/testing/index.d.ts +0 -2
  1362. package/dist/compiled/inquirer/rxjs/webSocket/index.d.ts +0 -3
  1363. package/dist/compiled/inquirer/through/index.d.ts +0 -25
  1364. package/dist/compiled/json5/lib/index.d.ts +0 -4
  1365. package/dist/compiled/json5/lib/parse.d.ts +0 -15
  1366. package/dist/compiled/json5/lib/stringify.d.ts +0 -89
  1367. package/dist/compiled/nanoid/license +0 -20
  1368. package/dist/compiled/ora/cli-spinners/index.d.ts +0 -125
  1369. package/dist/compiled/ora/index.js.LICENSE.txt +0 -1
  1370. package/dist/compiled/tsconfig-paths/lib/config-loader.d.ts +0 -33
  1371. package/dist/compiled/tsconfig-paths/lib/filesystem.d.ts +0 -34
  1372. package/dist/compiled/tsconfig-paths/lib/index.d.ts +0 -5
  1373. package/dist/compiled/tsconfig-paths/lib/mapping-entry.d.ts +0 -18
  1374. package/dist/compiled/tsconfig-paths/lib/match-path-async.d.ts +0 -21
  1375. package/dist/compiled/tsconfig-paths/lib/match-path-sync.d.ts +0 -32
  1376. package/dist/compiled/tsconfig-paths/lib/register.d.ts +0 -12
  1377. package/dist/compiled/tsconfig-paths/lib/try-path.d.ts +0 -15
  1378. package/dist/compiled/tsconfig-paths/lib/tsconfig-loader.d.ts +0 -28
  1379. package/dist/compiled/upath/license +0 -22
  1380. package/dist/compiled/upath/upath.d.ts +0 -241
  1381. package/dist/compiled/webpack-chain/index.js +0 -1475
  1382. package/dist/compiled/webpack-chain/license +0 -373
  1383. package/dist/compiled/webpack-chain/package.json +0 -1
  1384. package/dist/compiled/webpack-chain/types/index.d.ts +0 -599
  1385. package/dist/esm/rslib-runtime~1.mjs +0 -12
  1386. /package/dist/compiled/commander/{license → LICENSE} +0 -0
  1387. /package/dist/compiled/debug/{license → LICENSE} +0 -0
  1388. /package/dist/compiled/{inquirer/types-license → debug/declaration-licenses/@types_debug/LICENSE} +0 -0
  1389. /package/dist/compiled/dotenv-expand/{license → LICENSE} +0 -0
  1390. /package/dist/compiled/js-yaml/{license → LICENSE} +0 -0
  1391. /package/dist/compiled/lodash/{license → LICENSE} +0 -0
  1392. /package/dist/compiled/mime-types/{license → LICENSE} +0 -0
  1393. /package/dist/compiled/minimist/{license → LICENSE} +0 -0
  1394. /package/dist/compiled/semver/{license → LICENSE} +0 -0
  1395. /package/dist/compiled/tsconfig-paths/{license → LICENSE} +0 -0
  1396. /package/dist/compiled/url-join/{license → LICENSE} +0 -0
@@ -1,1540 +1,1779 @@
1
1
  (()=>{
2
- var t = {
3
- 81: (t)=>{
4
- "use strict";
5
- t.exports = require("child_process");
6
- },
7
- 361: (t)=>{
8
- "use strict";
9
- t.exports = require("events");
10
- },
11
- 147: (t)=>{
12
- "use strict";
13
- t.exports = require("fs");
14
- },
15
- 17: (t)=>{
16
- "use strict";
17
- t.exports = require("path");
18
- },
19
- 282: (t)=>{
20
- "use strict";
21
- t.exports = require("process");
22
- },
23
- 632: (t, e, i)=>{
24
- const { Argument: n } = i(535);
25
- const { Command: s } = i(302);
26
- const { CommanderError: r, InvalidArgumentError: o } = i(796);
27
- const { Help: a } = i(519);
28
- const { Option: l } = i(437);
29
- e = t.exports = new s;
30
- e.program = e;
31
- e.Argument = n;
32
- e.Command = s;
33
- e.CommanderError = r;
34
- e.Help = a;
35
- e.InvalidArgumentError = o;
36
- e.InvalidOptionArgumentError = o;
37
- e.Option = l;
38
- },
39
- 535: (t, e, i)=>{
40
- const { InvalidArgumentError: n } = i(796);
41
- class Argument {
42
- constructor(t, e){
43
- this.description = e || "";
44
- this.variadic = false;
45
- this.parseArg = void 0;
46
- this.defaultValue = void 0;
47
- this.defaultValueDescription = void 0;
48
- this.argChoices = void 0;
49
- switch(t[0]){
50
- case "<":
51
- this.required = true;
52
- this._name = t.slice(1, -1);
53
- break;
54
- case "[":
55
- this.required = false;
56
- this._name = t.slice(1, -1);
57
- break;
58
- default:
59
- this.required = true;
60
- this._name = t;
61
- break;
62
- }
63
- if (this._name.length > 3 && "..." === this._name.slice(-3)) {
64
- this.variadic = true;
65
- this._name = this._name.slice(0, -3);
66
- }
67
- }
68
- name() {
69
- return this._name;
70
- }
71
- _concatValue(t, e) {
72
- if (e === this.defaultValue || !Array.isArray(e)) return [
73
- t
74
- ];
75
- return e.concat(t);
76
- }
77
- default(t, e) {
78
- this.defaultValue = t;
79
- this.defaultValueDescription = e;
80
- return this;
81
- }
82
- argParser(t) {
83
- this.parseArg = t;
84
- return this;
85
- }
86
- choices(t) {
87
- this.argChoices = t.slice();
88
- this.parseArg = (t, e)=>{
89
- if (!this.argChoices.includes(t)) throw new n(`Allowed choices are ${this.argChoices.join(", ")}.`);
90
- if (this.variadic) return this._concatValue(t, e);
91
- return t;
92
- };
93
- return this;
94
- }
95
- argRequired() {
2
+ "use strict";
3
+ var t = {};
4
+ (()=>{
5
+ t.d = (e, i)=>{
6
+ for(var n in i)if (t.o(i, n) && !t.o(e, n)) Object.defineProperty(e, n, {
7
+ enumerable: true,
8
+ get: i[n]
9
+ });
10
+ };
11
+ })();
12
+ (()=>{
13
+ t.o = (t, e)=>Object.prototype.hasOwnProperty.call(t, e);
14
+ })();
15
+ (()=>{
16
+ t.r = (t)=>{
17
+ if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(t, Symbol.toStringTag, {
18
+ value: "Module"
19
+ });
20
+ Object.defineProperty(t, "__esModule", {
21
+ value: true
22
+ });
23
+ };
24
+ })();
25
+ var e = {};
26
+ t.r(e);
27
+ t.d(e, {
28
+ Argument: ()=>Argument,
29
+ Command: ()=>Command,
30
+ CommanderError: ()=>CommanderError,
31
+ Help: ()=>Help,
32
+ InvalidArgumentError: ()=>InvalidArgumentError,
33
+ InvalidOptionArgumentError: ()=>InvalidArgumentError,
34
+ Option: ()=>Option,
35
+ createArgument: ()=>createArgument,
36
+ createCommand: ()=>createCommand,
37
+ createOption: ()=>createOption,
38
+ program: ()=>l
39
+ });
40
+ class CommanderError extends Error {
41
+ constructor(t, e, i){
42
+ super(i);
43
+ Error.captureStackTrace(this, this.constructor);
44
+ this.name = this.constructor.name;
45
+ this.code = e;
46
+ this.exitCode = t;
47
+ this.nestedError = void 0;
48
+ }
49
+ }
50
+ class InvalidArgumentError extends CommanderError {
51
+ constructor(t){
52
+ super(1, "commander.invalidArgument", t);
53
+ Error.captureStackTrace(this, this.constructor);
54
+ this.name = this.constructor.name;
55
+ }
56
+ }
57
+ class Argument {
58
+ constructor(t, e){
59
+ this.description = e || "";
60
+ this.variadic = false;
61
+ this.parseArg = void 0;
62
+ this.defaultValue = void 0;
63
+ this.defaultValueDescription = void 0;
64
+ this.argChoices = void 0;
65
+ switch(t[0]){
66
+ case "<":
96
67
  this.required = true;
97
- return this;
98
- }
99
- argOptional() {
68
+ this._name = t.slice(1, -1);
69
+ break;
70
+ case "[":
100
71
  this.required = false;
101
- return this;
102
- }
72
+ this._name = t.slice(1, -1);
73
+ break;
74
+ default:
75
+ this.required = true;
76
+ this._name = t;
77
+ break;
103
78
  }
104
- function humanReadableArgName(t) {
105
- const e = t.name() + (true === t.variadic ? "..." : "");
106
- return t.required ? "<" + e + ">" : "[" + e + "]";
79
+ if (this._name.endsWith("...")) {
80
+ this.variadic = true;
81
+ this._name = this._name.slice(0, -3);
107
82
  }
108
- e.Argument = Argument;
109
- e.humanReadableArgName = humanReadableArgName;
110
- },
111
- 302: (t, e, i)=>{
112
- const n = i(361).EventEmitter;
113
- const s = i(81);
114
- const r = i(17);
115
- const o = i(147);
116
- const a = i(282);
117
- const { Argument: l, humanReadableArgName: h } = i(535);
118
- const { CommanderError: u } = i(796);
119
- const { Help: c } = i(519);
120
- const { Option: p, splitOptionFlags: m, DualOptions: d } = i(437);
121
- const { suggestSimilar: f } = i(860);
122
- class Command extends n {
123
- constructor(t){
124
- super();
125
- this.commands = [];
126
- this.options = [];
127
- this.parent = null;
128
- this._allowUnknownOption = false;
129
- this._allowExcessArguments = true;
130
- this._args = [];
131
- this.args = [];
132
- this.rawArgs = [];
133
- this.processedArgs = [];
134
- this._scriptPath = null;
135
- this._name = t || "";
136
- this._optionValues = {};
137
- this._optionValueSources = {};
138
- this._storeOptionsAsProperties = false;
139
- this._actionHandler = null;
140
- this._executableHandler = false;
141
- this._executableFile = null;
142
- this._executableDir = null;
143
- this._defaultCommandName = null;
144
- this._exitCallback = null;
145
- this._aliases = [];
146
- this._combineFlagAndOptionalValue = true;
147
- this._description = "";
148
- this._summary = "";
149
- this._argsDescription = void 0;
150
- this._enablePositionalOptions = false;
151
- this._passThroughOptions = false;
152
- this._lifeCycleHooks = {};
153
- this._showHelpAfterError = false;
154
- this._showSuggestionAfterError = true;
155
- this._outputConfiguration = {
156
- writeOut: (t)=>a.stdout.write(t),
157
- writeErr: (t)=>a.stderr.write(t),
158
- getOutHelpWidth: ()=>a.stdout.isTTY ? a.stdout.columns : void 0,
159
- getErrHelpWidth: ()=>a.stderr.isTTY ? a.stderr.columns : void 0,
160
- outputError: (t, e)=>e(t)
161
- };
162
- this._hidden = false;
163
- this._hasHelpOption = true;
164
- this._helpFlags = "-h, --help";
165
- this._helpDescription = "display help for command";
166
- this._helpShortFlag = "-h";
167
- this._helpLongFlag = "--help";
168
- this._addImplicitHelpCommand = void 0;
169
- this._helpCommandName = "help";
170
- this._helpCommandnameAndArgs = "help [command]";
171
- this._helpCommandDescription = "display help for command";
172
- this._helpConfiguration = {};
173
- }
174
- copyInheritedSettings(t) {
175
- this._outputConfiguration = t._outputConfiguration;
176
- this._hasHelpOption = t._hasHelpOption;
177
- this._helpFlags = t._helpFlags;
178
- this._helpDescription = t._helpDescription;
179
- this._helpShortFlag = t._helpShortFlag;
180
- this._helpLongFlag = t._helpLongFlag;
181
- this._helpCommandName = t._helpCommandName;
182
- this._helpCommandnameAndArgs = t._helpCommandnameAndArgs;
183
- this._helpCommandDescription = t._helpCommandDescription;
184
- this._helpConfiguration = t._helpConfiguration;
185
- this._exitCallback = t._exitCallback;
186
- this._storeOptionsAsProperties = t._storeOptionsAsProperties;
187
- this._combineFlagAndOptionalValue = t._combineFlagAndOptionalValue;
188
- this._allowExcessArguments = t._allowExcessArguments;
189
- this._enablePositionalOptions = t._enablePositionalOptions;
190
- this._showHelpAfterError = t._showHelpAfterError;
191
- this._showSuggestionAfterError = t._showSuggestionAfterError;
192
- return this;
193
- }
194
- command(t, e, i) {
195
- let n = e;
196
- let s = i;
197
- if ("object" == typeof n && null !== n) {
198
- s = n;
199
- n = null;
200
- }
201
- s = s || {};
202
- const [, r, o] = t.match(/([^ ]+) *(.*)/);
203
- const a = this.createCommand(r);
204
- if (n) {
205
- a.description(n);
206
- a._executableHandler = true;
207
- }
208
- if (s.isDefault) this._defaultCommandName = a._name;
209
- a._hidden = !!(s.noHelp || s.hidden);
210
- a._executableFile = s.executableFile || null;
211
- if (o) a.arguments(o);
212
- this.commands.push(a);
213
- a.parent = this;
214
- a.copyInheritedSettings(this);
215
- if (n) return this;
216
- return a;
217
- }
218
- createCommand(t) {
219
- return new Command(t);
220
- }
221
- createHelp() {
222
- return Object.assign(new c, this.configureHelp());
223
- }
224
- configureHelp(t) {
225
- if (void 0 === t) return this._helpConfiguration;
226
- this._helpConfiguration = t;
227
- return this;
228
- }
229
- configureOutput(t) {
230
- if (void 0 === t) return this._outputConfiguration;
231
- Object.assign(this._outputConfiguration, t);
232
- return this;
233
- }
234
- showHelpAfterError(t = true) {
235
- if ("string" != typeof t) t = !!t;
236
- this._showHelpAfterError = t;
237
- return this;
238
- }
239
- showSuggestionAfterError(t = true) {
240
- this._showSuggestionAfterError = !!t;
241
- return this;
242
- }
243
- addCommand(t, e) {
244
- if (!t._name) throw new Error(`Command passed to .addCommand() must have a name\n- specify the name in Command constructor or using .name()`);
245
- e = e || {};
246
- if (e.isDefault) this._defaultCommandName = t._name;
247
- if (e.noHelp || e.hidden) t._hidden = true;
248
- this.commands.push(t);
249
- t.parent = this;
250
- return this;
251
- }
252
- createArgument(t, e) {
253
- return new l(t, e);
254
- }
255
- argument(t, e, i, n) {
256
- const s = this.createArgument(t, e);
257
- if ("function" == typeof i) s.default(n).argParser(i);
258
- else s.default(i);
259
- this.addArgument(s);
260
- return this;
261
- }
262
- arguments(t) {
263
- t.split(/ +/).forEach((t)=>{
264
- this.argument(t);
265
- });
266
- return this;
267
- }
268
- addArgument(t) {
269
- const e = this._args.slice(-1)[0];
270
- if (e && e.variadic) throw new Error(`only the last argument can be variadic '${e.name()}'`);
271
- if (t.required && void 0 !== t.defaultValue && void 0 === t.parseArg) throw new Error(`a default value for a required argument is never used: '${t.name()}'`);
272
- this._args.push(t);
273
- return this;
274
- }
275
- addHelpCommand(t, e) {
276
- if (false === t) this._addImplicitHelpCommand = false;
277
- else {
278
- this._addImplicitHelpCommand = true;
279
- if ("string" == typeof t) {
280
- this._helpCommandName = t.split(" ")[0];
281
- this._helpCommandnameAndArgs = t;
282
- }
283
- this._helpCommandDescription = e || this._helpCommandDescription;
83
+ }
84
+ name() {
85
+ return this._name;
86
+ }
87
+ _collectValue(t, e) {
88
+ if (e === this.defaultValue || !Array.isArray(e)) return [
89
+ t
90
+ ];
91
+ e.push(t);
92
+ return e;
93
+ }
94
+ default(t, e) {
95
+ this.defaultValue = t;
96
+ this.defaultValueDescription = e;
97
+ return this;
98
+ }
99
+ argParser(t) {
100
+ this.parseArg = t;
101
+ return this;
102
+ }
103
+ choices(t) {
104
+ this.argChoices = t.slice();
105
+ this.parseArg = (t, e)=>{
106
+ if (!this.argChoices.includes(t)) throw new InvalidArgumentError(`Allowed choices are ${this.argChoices.join(", ")}.`);
107
+ if (this.variadic) return this._collectValue(t, e);
108
+ return t;
109
+ };
110
+ return this;
111
+ }
112
+ argRequired() {
113
+ this.required = true;
114
+ return this;
115
+ }
116
+ argOptional() {
117
+ this.required = false;
118
+ return this;
119
+ }
120
+ }
121
+ function humanReadableArgName(t) {
122
+ const e = t.name() + (true === t.variadic ? "..." : "");
123
+ return t.required ? "<" + e + ">" : "[" + e + "]";
124
+ }
125
+ const i = require("node:events");
126
+ const n = require("node:child_process");
127
+ const s = require("node:path");
128
+ const r = require("node:fs");
129
+ const o = require("node:process");
130
+ const a = require("node:util");
131
+ class Help {
132
+ constructor(){
133
+ this.helpWidth = void 0;
134
+ this.minWidthToWrap = 40;
135
+ this.sortSubcommands = false;
136
+ this.sortOptions = false;
137
+ this.showGlobalOptions = false;
138
+ }
139
+ prepareContext(t) {
140
+ this.helpWidth = this.helpWidth ?? t.helpWidth ?? 80;
141
+ }
142
+ visibleCommands(t) {
143
+ const e = t.commands.filter((t)=>!t._hidden);
144
+ const i = t._getHelpCommand();
145
+ if (i && !i._hidden) e.push(i);
146
+ if (this.sortSubcommands) e.sort((t, e)=>t.name().localeCompare(e.name()));
147
+ return e;
148
+ }
149
+ compareOptions(t, e) {
150
+ const getSortKey = (t)=>t.short ? t.short.replace(/^-/, "") : t.long.replace(/^--/, "");
151
+ return getSortKey(t).localeCompare(getSortKey(e));
152
+ }
153
+ visibleOptions(t) {
154
+ const e = t.options.filter((t)=>!t.hidden);
155
+ const i = t._getHelpOption();
156
+ if (i && !i.hidden) {
157
+ const n = i.short && t._findOption(i.short);
158
+ const s = i.long && t._findOption(i.long);
159
+ if (n || s) {
160
+ if (i.long && !s) e.push(t.createOption(i.long, i.description));
161
+ else if (i.short && !n) e.push(t.createOption(i.short, i.description));
162
+ } else e.push(i);
163
+ }
164
+ if (this.sortOptions) e.sort(this.compareOptions);
165
+ return e;
166
+ }
167
+ visibleGlobalOptions(t) {
168
+ if (!this.showGlobalOptions) return [];
169
+ const e = [];
170
+ for(let i = t.parent; i; i = i.parent){
171
+ const t = i.options.filter((t)=>!t.hidden);
172
+ e.push(...t);
173
+ }
174
+ if (this.sortOptions) e.sort(this.compareOptions);
175
+ return e;
176
+ }
177
+ visibleArguments(t) {
178
+ if (t._argsDescription) t.registeredArguments.forEach((e)=>{
179
+ e.description = e.description || t._argsDescription[e.name()] || "";
180
+ });
181
+ if (t.registeredArguments.find((t)=>t.description)) return t.registeredArguments;
182
+ return [];
183
+ }
184
+ subcommandTerm(t) {
185
+ const e = t.registeredArguments.map((t)=>humanReadableArgName(t)).join(" ");
186
+ return t._name + (t._aliases[0] ? "|" + t._aliases[0] : "") + (t.options.length ? " [options]" : "") + (e ? " " + e : "");
187
+ }
188
+ optionTerm(t) {
189
+ return t.flags;
190
+ }
191
+ argumentTerm(t) {
192
+ return t.name();
193
+ }
194
+ longestSubcommandTermLength(t, e) {
195
+ return e.visibleCommands(t).reduce((t, i)=>Math.max(t, this.displayWidth(e.styleSubcommandTerm(e.subcommandTerm(i)))), 0);
196
+ }
197
+ longestOptionTermLength(t, e) {
198
+ return e.visibleOptions(t).reduce((t, i)=>Math.max(t, this.displayWidth(e.styleOptionTerm(e.optionTerm(i)))), 0);
199
+ }
200
+ longestGlobalOptionTermLength(t, e) {
201
+ return e.visibleGlobalOptions(t).reduce((t, i)=>Math.max(t, this.displayWidth(e.styleOptionTerm(e.optionTerm(i)))), 0);
202
+ }
203
+ longestArgumentTermLength(t, e) {
204
+ return e.visibleArguments(t).reduce((t, i)=>Math.max(t, this.displayWidth(e.styleArgumentTerm(e.argumentTerm(i)))), 0);
205
+ }
206
+ commandUsage(t) {
207
+ let e = t._name;
208
+ if (t._aliases[0]) e = e + "|" + t._aliases[0];
209
+ let i = "";
210
+ for(let e = t.parent; e; e = e.parent)i = e.name() + " " + i;
211
+ return i + e + " " + t.usage();
212
+ }
213
+ commandDescription(t) {
214
+ return t.description();
215
+ }
216
+ subcommandDescription(t) {
217
+ return t.summary() || t.description();
218
+ }
219
+ optionDescription(t) {
220
+ const e = [];
221
+ if (t.argChoices) e.push(`choices: ${t.argChoices.map((t)=>JSON.stringify(t)).join(", ")}`);
222
+ if (void 0 !== t.defaultValue) {
223
+ const i = t.required || t.optional || t.isBoolean() && "boolean" == typeof t.defaultValue;
224
+ if (i) e.push(`default: ${t.defaultValueDescription || JSON.stringify(t.defaultValue)}`);
225
+ }
226
+ if (void 0 !== t.presetArg && t.optional) e.push(`preset: ${JSON.stringify(t.presetArg)}`);
227
+ if (void 0 !== t.envVar) e.push(`env: ${t.envVar}`);
228
+ if (e.length > 0) {
229
+ const i = `(${e.join(", ")})`;
230
+ if (t.description) return `${t.description} ${i}`;
231
+ return i;
232
+ }
233
+ return t.description;
234
+ }
235
+ argumentDescription(t) {
236
+ const e = [];
237
+ if (t.argChoices) e.push(`choices: ${t.argChoices.map((t)=>JSON.stringify(t)).join(", ")}`);
238
+ if (void 0 !== t.defaultValue) e.push(`default: ${t.defaultValueDescription || JSON.stringify(t.defaultValue)}`);
239
+ if (e.length > 0) {
240
+ const i = `(${e.join(", ")})`;
241
+ if (t.description) return `${t.description} ${i}`;
242
+ return i;
243
+ }
244
+ return t.description;
245
+ }
246
+ formatItemList(t, e, i) {
247
+ if (0 === e.length) return [];
248
+ return [
249
+ i.styleTitle(t),
250
+ ...e,
251
+ ""
252
+ ];
253
+ }
254
+ groupItems(t, e, i) {
255
+ const n = new Map;
256
+ t.forEach((t)=>{
257
+ const e = i(t);
258
+ if (!n.has(e)) n.set(e, []);
259
+ });
260
+ e.forEach((t)=>{
261
+ const e = i(t);
262
+ if (!n.has(e)) n.set(e, []);
263
+ n.get(e).push(t);
264
+ });
265
+ return n;
266
+ }
267
+ formatHelp(t, e) {
268
+ const i = e.padWidth(t, e);
269
+ const n = e.helpWidth ?? 80;
270
+ function callFormatItem(t, n) {
271
+ return e.formatItem(t, i, n, e);
272
+ }
273
+ let s = [
274
+ `${e.styleTitle("Usage:")} ${e.styleUsage(e.commandUsage(t))}`,
275
+ ""
276
+ ];
277
+ const r = e.commandDescription(t);
278
+ if (r.length > 0) s = s.concat([
279
+ e.boxWrap(e.styleCommandDescription(r), n),
280
+ ""
281
+ ]);
282
+ const o = e.visibleArguments(t).map((t)=>callFormatItem(e.styleArgumentTerm(e.argumentTerm(t)), e.styleArgumentDescription(e.argumentDescription(t))));
283
+ s = s.concat(this.formatItemList("Arguments:", o, e));
284
+ const a = this.groupItems(t.options, e.visibleOptions(t), (t)=>t.helpGroupHeading ?? "Options:");
285
+ a.forEach((t, i)=>{
286
+ const n = t.map((t)=>callFormatItem(e.styleOptionTerm(e.optionTerm(t)), e.styleOptionDescription(e.optionDescription(t))));
287
+ s = s.concat(this.formatItemList(i, n, e));
288
+ });
289
+ if (e.showGlobalOptions) {
290
+ const i = e.visibleGlobalOptions(t).map((t)=>callFormatItem(e.styleOptionTerm(e.optionTerm(t)), e.styleOptionDescription(e.optionDescription(t))));
291
+ s = s.concat(this.formatItemList("Global Options:", i, e));
292
+ }
293
+ const h = this.groupItems(t.commands, e.visibleCommands(t), (t)=>t.helpGroup() || "Commands:");
294
+ h.forEach((t, i)=>{
295
+ const n = t.map((t)=>callFormatItem(e.styleSubcommandTerm(e.subcommandTerm(t)), e.styleSubcommandDescription(e.subcommandDescription(t))));
296
+ s = s.concat(this.formatItemList(i, n, e));
297
+ });
298
+ return s.join("\n");
299
+ }
300
+ displayWidth(t) {
301
+ return (0, a.stripVTControlCharacters)(t).length;
302
+ }
303
+ styleTitle(t) {
304
+ return t;
305
+ }
306
+ styleUsage(t) {
307
+ return t.split(" ").map((t)=>{
308
+ if ("[options]" === t) return this.styleOptionText(t);
309
+ if ("[command]" === t) return this.styleSubcommandText(t);
310
+ if ("[" === t[0] || "<" === t[0]) return this.styleArgumentText(t);
311
+ return this.styleCommandText(t);
312
+ }).join(" ");
313
+ }
314
+ styleCommandDescription(t) {
315
+ return this.styleDescriptionText(t);
316
+ }
317
+ styleOptionDescription(t) {
318
+ return this.styleDescriptionText(t);
319
+ }
320
+ styleSubcommandDescription(t) {
321
+ return this.styleDescriptionText(t);
322
+ }
323
+ styleArgumentDescription(t) {
324
+ return this.styleDescriptionText(t);
325
+ }
326
+ styleDescriptionText(t) {
327
+ return t;
328
+ }
329
+ styleOptionTerm(t) {
330
+ return this.styleOptionText(t);
331
+ }
332
+ styleSubcommandTerm(t) {
333
+ return t.split(" ").map((t)=>{
334
+ if ("[options]" === t) return this.styleOptionText(t);
335
+ if ("[" === t[0] || "<" === t[0]) return this.styleArgumentText(t);
336
+ return this.styleSubcommandText(t);
337
+ }).join(" ");
338
+ }
339
+ styleArgumentTerm(t) {
340
+ return this.styleArgumentText(t);
341
+ }
342
+ styleOptionText(t) {
343
+ return t;
344
+ }
345
+ styleArgumentText(t) {
346
+ return t;
347
+ }
348
+ styleSubcommandText(t) {
349
+ return t;
350
+ }
351
+ styleCommandText(t) {
352
+ return t;
353
+ }
354
+ padWidth(t, e) {
355
+ return Math.max(e.longestOptionTermLength(t, e), e.longestGlobalOptionTermLength(t, e), e.longestSubcommandTermLength(t, e), e.longestArgumentTermLength(t, e));
356
+ }
357
+ preformatted(t) {
358
+ return /\n[^\S\r\n]/.test(t);
359
+ }
360
+ formatItem(t, e, i, n) {
361
+ const s = 2;
362
+ const r = " ".repeat(s);
363
+ if (!i) return r + t;
364
+ const o = t.padEnd(e + t.length - n.displayWidth(t));
365
+ const a = 2;
366
+ const h = this.helpWidth ?? 80;
367
+ const l = h - e - a - s;
368
+ let u;
369
+ if (l < this.minWidthToWrap || n.preformatted(i)) u = i;
370
+ else {
371
+ const t = n.boxWrap(i, l);
372
+ u = t.replace(/\n/g, "\n" + " ".repeat(e + a));
373
+ }
374
+ return r + o + " ".repeat(a) + u.replace(/\n/g, `\n${r}`);
375
+ }
376
+ boxWrap(t, e) {
377
+ if (e < this.minWidthToWrap) return t;
378
+ const i = t.split(/\r\n|\n/);
379
+ const n = /[\s]*[^\s]+/g;
380
+ const s = [];
381
+ i.forEach((t)=>{
382
+ const i = t.match(n);
383
+ if (null === i) return void s.push("");
384
+ let r = [
385
+ i.shift()
386
+ ];
387
+ let o = this.displayWidth(r[0]);
388
+ i.forEach((t)=>{
389
+ const i = this.displayWidth(t);
390
+ if (o + i <= e) {
391
+ r.push(t);
392
+ o += i;
393
+ return;
284
394
  }
285
- return this;
286
- }
287
- _hasImplicitHelpCommand() {
288
- if (void 0 === this._addImplicitHelpCommand) return this.commands.length && !this._actionHandler && !this._findCommand("help");
289
- return this._addImplicitHelpCommand;
290
- }
291
- hook(t, e) {
292
- const i = [
293
- "preSubcommand",
294
- "preAction",
295
- "postAction"
395
+ s.push(r.join(""));
396
+ const n = t.trimStart();
397
+ r = [
398
+ n
296
399
  ];
297
- if (!i.includes(t)) throw new Error(`Unexpected value for event passed to hook : '${t}'.\nExpecting one of '${i.join("', '")}'`);
298
- if (this._lifeCycleHooks[t]) this._lifeCycleHooks[t].push(e);
299
- else this._lifeCycleHooks[t] = [
400
+ o = this.displayWidth(n);
401
+ });
402
+ s.push(r.join(""));
403
+ });
404
+ return s.join("\n");
405
+ }
406
+ }
407
+ class Option {
408
+ constructor(t, e){
409
+ this.flags = t;
410
+ this.description = e || "";
411
+ this.required = t.includes("<");
412
+ this.optional = t.includes("[");
413
+ this.variadic = /\w\.\.\.[>\]]$/.test(t);
414
+ this.mandatory = false;
415
+ const i = splitOptionFlags(t);
416
+ this.short = i.shortFlag;
417
+ this.long = i.longFlag;
418
+ this.negate = false;
419
+ if (this.long) this.negate = this.long.startsWith("--no-");
420
+ this.defaultValue = void 0;
421
+ this.defaultValueDescription = void 0;
422
+ this.presetArg = void 0;
423
+ this.envVar = void 0;
424
+ this.parseArg = void 0;
425
+ this.hidden = false;
426
+ this.argChoices = void 0;
427
+ this.conflictsWith = [];
428
+ this.implied = void 0;
429
+ this.helpGroupHeading = void 0;
430
+ }
431
+ default(t, e) {
432
+ this.defaultValue = t;
433
+ this.defaultValueDescription = e;
434
+ return this;
435
+ }
436
+ preset(t) {
437
+ this.presetArg = t;
438
+ return this;
439
+ }
440
+ conflicts(t) {
441
+ this.conflictsWith = this.conflictsWith.concat(t);
442
+ return this;
443
+ }
444
+ implies(t) {
445
+ let e = t;
446
+ if ("string" == typeof t) e = {
447
+ [t]: true
448
+ };
449
+ this.implied = Object.assign(this.implied || {}, e);
450
+ return this;
451
+ }
452
+ env(t) {
453
+ this.envVar = t;
454
+ return this;
455
+ }
456
+ argParser(t) {
457
+ this.parseArg = t;
458
+ return this;
459
+ }
460
+ makeOptionMandatory(t = true) {
461
+ this.mandatory = !!t;
462
+ return this;
463
+ }
464
+ hideHelp(t = true) {
465
+ this.hidden = !!t;
466
+ return this;
467
+ }
468
+ _collectValue(t, e) {
469
+ if (e === this.defaultValue || !Array.isArray(e)) return [
470
+ t
471
+ ];
472
+ e.push(t);
473
+ return e;
474
+ }
475
+ choices(t) {
476
+ this.argChoices = t.slice();
477
+ this.parseArg = (t, e)=>{
478
+ if (!this.argChoices.includes(t)) throw new InvalidArgumentError(`Allowed choices are ${this.argChoices.join(", ")}.`);
479
+ if (this.variadic) return this._collectValue(t, e);
480
+ return t;
481
+ };
482
+ return this;
483
+ }
484
+ name() {
485
+ if (this.long) return this.long.replace(/^--/, "");
486
+ return this.short.replace(/^-/, "");
487
+ }
488
+ attributeName() {
489
+ if (this.negate) return camelcase(this.name().replace(/^no-/, ""));
490
+ return camelcase(this.name());
491
+ }
492
+ helpGroup(t) {
493
+ this.helpGroupHeading = t;
494
+ return this;
495
+ }
496
+ is(t) {
497
+ return this.short === t || this.long === t;
498
+ }
499
+ isBoolean() {
500
+ return !this.required && !this.optional && !this.negate;
501
+ }
502
+ }
503
+ class DualOptions {
504
+ constructor(t){
505
+ this.positiveOptions = new Map;
506
+ this.negativeOptions = new Map;
507
+ this.dualOptions = new Set;
508
+ t.forEach((t)=>{
509
+ if (t.negate) this.negativeOptions.set(t.attributeName(), t);
510
+ else this.positiveOptions.set(t.attributeName(), t);
511
+ });
512
+ this.negativeOptions.forEach((t, e)=>{
513
+ if (this.positiveOptions.has(e)) this.dualOptions.add(e);
514
+ });
515
+ }
516
+ valueFromOption(t, e) {
517
+ const i = e.attributeName();
518
+ if (!this.dualOptions.has(i)) return true;
519
+ const n = this.negativeOptions.get(i).presetArg;
520
+ const s = void 0 !== n ? n : false;
521
+ return e.negate === (s === t);
522
+ }
523
+ }
524
+ function camelcase(t) {
525
+ return t.split("-").reduce((t, e)=>t + e[0].toUpperCase() + e.slice(1));
526
+ }
527
+ function splitOptionFlags(t) {
528
+ let e;
529
+ let i;
530
+ const n = /^-[^-]$/;
531
+ const s = /^--[^-]/;
532
+ const r = t.split(/[ |,]+/).concat("guard");
533
+ if (n.test(r[0])) e = r.shift();
534
+ if (s.test(r[0])) i = r.shift();
535
+ if (!e && n.test(r[0])) e = r.shift();
536
+ if (!e && s.test(r[0])) {
537
+ e = i;
538
+ i = r.shift();
539
+ }
540
+ if (r[0].startsWith("-")) {
541
+ const e = r[0];
542
+ const i = `option creation failed due to '${e}' in option flags '${t}'`;
543
+ if (/^-[^-][^-]/.test(e)) throw new Error(`${i}\n- a short flag is a single dash and a single character\n - either use a single dash and a single character (for a short flag)\n - or use a double dash for a long option (and can have two, like '--ws, --workspace')`);
544
+ if (n.test(e)) throw new Error(`${i}\n- too many short flags`);
545
+ if (s.test(e)) throw new Error(`${i}\n- too many long flags`);
546
+ throw new Error(`${i}\n- unrecognised flag format`);
547
+ }
548
+ if (void 0 === e && void 0 === i) throw new Error(`option creation failed due to no flags found in '${t}'.`);
549
+ return {
550
+ shortFlag: e,
551
+ longFlag: i
552
+ };
553
+ }
554
+ const h = 3;
555
+ function editDistance(t, e) {
556
+ if (Math.abs(t.length - e.length) > h) return Math.max(t.length, e.length);
557
+ const i = [];
558
+ for(let e = 0; e <= t.length; e++)i[e] = [
559
+ e
560
+ ];
561
+ for(let t = 0; t <= e.length; t++)i[0][t] = t;
562
+ for(let n = 1; n <= e.length; n++)for(let s = 1; s <= t.length; s++){
563
+ let r;
564
+ r = t[s - 1] === e[n - 1] ? 0 : 1;
565
+ i[s][n] = Math.min(i[s - 1][n] + 1, i[s][n - 1] + 1, i[s - 1][n - 1] + r);
566
+ if (s > 1 && n > 1 && t[s - 1] === e[n - 2] && t[s - 2] === e[n - 1]) i[s][n] = Math.min(i[s][n], i[s - 2][n - 2] + 1);
567
+ }
568
+ return i[t.length][e.length];
569
+ }
570
+ function suggestSimilar(t, e) {
571
+ if (!e || 0 === e.length) return "";
572
+ e = Array.from(new Set(e));
573
+ const i = t.startsWith("--");
574
+ if (i) {
575
+ t = t.slice(2);
576
+ e = e.map((t)=>t.slice(2));
577
+ }
578
+ let n = [];
579
+ let s = h;
580
+ const r = .4;
581
+ e.forEach((e)=>{
582
+ if (e.length <= 1) return;
583
+ const i = editDistance(t, e);
584
+ const o = Math.max(t.length, e.length);
585
+ const a = (o - i) / o;
586
+ if (a > r) {
587
+ if (i < s) {
588
+ s = i;
589
+ n = [
300
590
  e
301
591
  ];
302
- return this;
303
- }
304
- exitOverride(t) {
305
- if (t) this._exitCallback = t;
306
- else this._exitCallback = (t)=>{
307
- if ("commander.executeSubCommandAsync" !== t.code) throw t;
308
- };
309
- return this;
310
- }
311
- _exit(t, e, i) {
312
- if (this._exitCallback) this._exitCallback(new u(t, e, i));
313
- a.exit(t);
314
- }
315
- action(t) {
316
- const listener = (e)=>{
317
- const i = this._args.length;
318
- const n = e.slice(0, i);
319
- if (this._storeOptionsAsProperties) n[i] = this;
320
- else n[i] = this.opts();
321
- n.push(this);
322
- return t.apply(this, n);
323
- };
324
- this._actionHandler = listener;
325
- return this;
326
- }
327
- createOption(t, e) {
328
- return new p(t, e);
329
- }
330
- addOption(t) {
331
- const e = t.name();
332
- const i = t.attributeName();
333
- if (t.negate) {
334
- const e = t.long.replace(/^--no-/, "--");
335
- if (!this._findOption(e)) this.setOptionValueWithSource(i, void 0 === t.defaultValue ? true : t.defaultValue, "default");
336
- } else if (void 0 !== t.defaultValue) this.setOptionValueWithSource(i, t.defaultValue, "default");
337
- this.options.push(t);
338
- const handleOptionValue = (e, n, s)=>{
339
- if (null == e && void 0 !== t.presetArg) e = t.presetArg;
340
- const r = this.getOptionValue(i);
341
- if (null !== e && t.parseArg) try {
342
- e = t.parseArg(e, r);
343
- } catch (t) {
344
- if ("commander.invalidArgument" === t.code) {
345
- const e = `${n} ${t.message}`;
346
- this.error(e, {
347
- exitCode: t.exitCode,
348
- code: t.code
349
- });
350
- }
351
- throw t;
352
- }
353
- else if (null !== e && t.variadic) e = t._concatValue(e, r);
354
- if (null == e) e = t.negate ? false : t.isBoolean() || t.optional ? true : "";
355
- this.setOptionValueWithSource(i, e, s);
356
- };
357
- this.on("option:" + e, (e)=>{
358
- const i = `error: option '${t.flags}' argument '${e}' is invalid.`;
359
- handleOptionValue(e, i, "cli");
360
- });
361
- if (t.envVar) this.on("optionEnv:" + e, (e)=>{
362
- const i = `error: option '${t.flags}' value '${e}' from env '${t.envVar}' is invalid.`;
363
- handleOptionValue(e, i, "env");
592
+ } else if (i === s) n.push(e);
593
+ }
594
+ });
595
+ n.sort((t, e)=>t.localeCompare(e));
596
+ if (i) n = n.map((t)=>`--${t}`);
597
+ if (n.length > 1) return `\n(Did you mean one of ${n.join(", ")}?)`;
598
+ if (1 === n.length) return `\n(Did you mean ${n[0]}?)`;
599
+ return "";
600
+ }
601
+ class Command extends i.EventEmitter {
602
+ constructor(t){
603
+ super();
604
+ this.commands = [];
605
+ this.options = [];
606
+ this.parent = null;
607
+ this._allowUnknownOption = false;
608
+ this._allowExcessArguments = false;
609
+ this.registeredArguments = [];
610
+ this._args = this.registeredArguments;
611
+ this.args = [];
612
+ this.rawArgs = [];
613
+ this.processedArgs = [];
614
+ this._scriptPath = null;
615
+ this._name = t || "";
616
+ this._optionValues = {};
617
+ this._optionValueSources = {};
618
+ this._storeOptionsAsProperties = false;
619
+ this._actionHandler = null;
620
+ this._executableHandler = false;
621
+ this._executableFile = null;
622
+ this._executableDir = null;
623
+ this._defaultCommandName = null;
624
+ this._exitCallback = null;
625
+ this._aliases = [];
626
+ this._combineFlagAndOptionalValue = true;
627
+ this._description = "";
628
+ this._summary = "";
629
+ this._argsDescription = void 0;
630
+ this._enablePositionalOptions = false;
631
+ this._passThroughOptions = false;
632
+ this._lifeCycleHooks = {};
633
+ this._showHelpAfterError = false;
634
+ this._showSuggestionAfterError = true;
635
+ this._savedState = null;
636
+ this._outputConfiguration = {
637
+ writeOut: (t)=>o.stdout.write(t),
638
+ writeErr: (t)=>o.stderr.write(t),
639
+ outputError: (t, e)=>e(t),
640
+ getOutHelpWidth: ()=>o.stdout.isTTY ? o.stdout.columns : void 0,
641
+ getErrHelpWidth: ()=>o.stderr.isTTY ? o.stderr.columns : void 0,
642
+ getOutHasColors: ()=>useColor() ?? (o.stdout.isTTY && o.stdout.hasColors?.()),
643
+ getErrHasColors: ()=>useColor() ?? (o.stderr.isTTY && o.stderr.hasColors?.()),
644
+ stripColor: (t)=>(0, a.stripVTControlCharacters)(t)
645
+ };
646
+ this._hidden = false;
647
+ this._helpOption = void 0;
648
+ this._addImplicitHelpCommand = void 0;
649
+ this._helpCommand = void 0;
650
+ this._helpConfiguration = {};
651
+ this._helpGroupHeading = void 0;
652
+ this._defaultCommandGroup = void 0;
653
+ this._defaultOptionGroup = void 0;
654
+ }
655
+ copyInheritedSettings(t) {
656
+ this._outputConfiguration = t._outputConfiguration;
657
+ this._helpOption = t._helpOption;
658
+ this._helpCommand = t._helpCommand;
659
+ this._helpConfiguration = t._helpConfiguration;
660
+ this._exitCallback = t._exitCallback;
661
+ this._storeOptionsAsProperties = t._storeOptionsAsProperties;
662
+ this._combineFlagAndOptionalValue = t._combineFlagAndOptionalValue;
663
+ this._allowExcessArguments = t._allowExcessArguments;
664
+ this._enablePositionalOptions = t._enablePositionalOptions;
665
+ this._showHelpAfterError = t._showHelpAfterError;
666
+ this._showSuggestionAfterError = t._showSuggestionAfterError;
667
+ return this;
668
+ }
669
+ _getCommandAndAncestors() {
670
+ const t = [];
671
+ for(let e = this; e; e = e.parent)t.push(e);
672
+ return t;
673
+ }
674
+ command(t, e, i) {
675
+ let n = e;
676
+ let s = i;
677
+ if ("object" == typeof n && null !== n) {
678
+ s = n;
679
+ n = null;
680
+ }
681
+ s = s || {};
682
+ const [, r, o] = t.match(/([^ ]+) *(.*)/);
683
+ const a = this.createCommand(r);
684
+ if (n) {
685
+ a.description(n);
686
+ a._executableHandler = true;
687
+ }
688
+ if (s.isDefault) this._defaultCommandName = a._name;
689
+ a._hidden = !!(s.noHelp || s.hidden);
690
+ a._executableFile = s.executableFile || null;
691
+ if (o) a.arguments(o);
692
+ this._registerCommand(a);
693
+ a.parent = this;
694
+ a.copyInheritedSettings(this);
695
+ if (n) return this;
696
+ return a;
697
+ }
698
+ createCommand(t) {
699
+ return new Command(t);
700
+ }
701
+ createHelp() {
702
+ return Object.assign(new Help, this.configureHelp());
703
+ }
704
+ configureHelp(t) {
705
+ if (void 0 === t) return this._helpConfiguration;
706
+ this._helpConfiguration = t;
707
+ return this;
708
+ }
709
+ configureOutput(t) {
710
+ if (void 0 === t) return this._outputConfiguration;
711
+ this._outputConfiguration = {
712
+ ...this._outputConfiguration,
713
+ ...t
714
+ };
715
+ return this;
716
+ }
717
+ showHelpAfterError(t = true) {
718
+ if ("string" != typeof t) t = !!t;
719
+ this._showHelpAfterError = t;
720
+ return this;
721
+ }
722
+ showSuggestionAfterError(t = true) {
723
+ this._showSuggestionAfterError = !!t;
724
+ return this;
725
+ }
726
+ addCommand(t, e) {
727
+ if (!t._name) throw new Error(`Command passed to .addCommand() must have a name\n- specify the name in Command constructor or using .name()`);
728
+ e = e || {};
729
+ if (e.isDefault) this._defaultCommandName = t._name;
730
+ if (e.noHelp || e.hidden) t._hidden = true;
731
+ this._registerCommand(t);
732
+ t.parent = this;
733
+ t._checkForBrokenPassThrough();
734
+ return this;
735
+ }
736
+ createArgument(t, e) {
737
+ return new Argument(t, e);
738
+ }
739
+ argument(t, e, i, n) {
740
+ const s = this.createArgument(t, e);
741
+ if ("function" == typeof i) s.default(n).argParser(i);
742
+ else s.default(i);
743
+ this.addArgument(s);
744
+ return this;
745
+ }
746
+ arguments(t) {
747
+ t.trim().split(/ +/).forEach((t)=>{
748
+ this.argument(t);
749
+ });
750
+ return this;
751
+ }
752
+ addArgument(t) {
753
+ const e = this.registeredArguments.slice(-1)[0];
754
+ if (e?.variadic) throw new Error(`only the last argument can be variadic '${e.name()}'`);
755
+ if (t.required && void 0 !== t.defaultValue && void 0 === t.parseArg) throw new Error(`a default value for a required argument is never used: '${t.name()}'`);
756
+ this.registeredArguments.push(t);
757
+ return this;
758
+ }
759
+ helpCommand(t, e) {
760
+ if ("boolean" == typeof t) {
761
+ this._addImplicitHelpCommand = t;
762
+ if (t && this._defaultCommandGroup) this._initCommandGroup(this._getHelpCommand());
763
+ return this;
764
+ }
765
+ const i = t ?? "help [command]";
766
+ const [, n, s] = i.match(/([^ ]+) *(.*)/);
767
+ const r = e ?? "display help for command";
768
+ const o = this.createCommand(n);
769
+ o.helpOption(false);
770
+ if (s) o.arguments(s);
771
+ if (r) o.description(r);
772
+ this._addImplicitHelpCommand = true;
773
+ this._helpCommand = o;
774
+ if (t || e) this._initCommandGroup(o);
775
+ return this;
776
+ }
777
+ addHelpCommand(t, e) {
778
+ if ("object" != typeof t) {
779
+ this.helpCommand(t, e);
780
+ return this;
781
+ }
782
+ this._addImplicitHelpCommand = true;
783
+ this._helpCommand = t;
784
+ this._initCommandGroup(t);
785
+ return this;
786
+ }
787
+ _getHelpCommand() {
788
+ const t = this._addImplicitHelpCommand ?? (this.commands.length && !this._actionHandler && !this._findCommand("help"));
789
+ if (t) {
790
+ if (void 0 === this._helpCommand) this.helpCommand(void 0, void 0);
791
+ return this._helpCommand;
792
+ }
793
+ return null;
794
+ }
795
+ hook(t, e) {
796
+ const i = [
797
+ "preSubcommand",
798
+ "preAction",
799
+ "postAction"
800
+ ];
801
+ if (!i.includes(t)) throw new Error(`Unexpected value for event passed to hook : '${t}'.\nExpecting one of '${i.join("', '")}'`);
802
+ if (this._lifeCycleHooks[t]) this._lifeCycleHooks[t].push(e);
803
+ else this._lifeCycleHooks[t] = [
804
+ e
805
+ ];
806
+ return this;
807
+ }
808
+ exitOverride(t) {
809
+ if (t) this._exitCallback = t;
810
+ else this._exitCallback = (t)=>{
811
+ if ("commander.executeSubCommandAsync" !== t.code) throw t;
812
+ };
813
+ return this;
814
+ }
815
+ _exit(t, e, i) {
816
+ if (this._exitCallback) this._exitCallback(new CommanderError(t, e, i));
817
+ o.exit(t);
818
+ }
819
+ action(t) {
820
+ const listener = (e)=>{
821
+ const i = this.registeredArguments.length;
822
+ const n = e.slice(0, i);
823
+ if (this._storeOptionsAsProperties) n[i] = this;
824
+ else n[i] = this.opts();
825
+ n.push(this);
826
+ return t.apply(this, n);
827
+ };
828
+ this._actionHandler = listener;
829
+ return this;
830
+ }
831
+ createOption(t, e) {
832
+ return new Option(t, e);
833
+ }
834
+ _callParseArg(t, e, i, n) {
835
+ try {
836
+ return t.parseArg(e, i);
837
+ } catch (t) {
838
+ if ("commander.invalidArgument" === t.code) {
839
+ const e = `${n} ${t.message}`;
840
+ this.error(e, {
841
+ exitCode: t.exitCode,
842
+ code: t.code
364
843
  });
365
- return this;
366
- }
367
- _optionEx(t, e, i, n, s) {
368
- if ("object" == typeof e && e instanceof p) throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");
369
- const r = this.createOption(e, i);
370
- r.makeOptionMandatory(!!t.mandatory);
371
- if ("function" == typeof n) r.default(s).argParser(n);
372
- else if (n instanceof RegExp) {
373
- const t = n;
374
- n = (e, i)=>{
375
- const n = t.exec(e);
376
- return n ? n[0] : i;
377
- };
378
- r.default(s).argParser(n);
379
- } else r.default(n);
380
- return this.addOption(r);
381
- }
382
- option(t, e, i, n) {
383
- return this._optionEx({}, t, e, i, n);
384
- }
385
- requiredOption(t, e, i, n) {
386
- return this._optionEx({
387
- mandatory: true
388
- }, t, e, i, n);
389
844
  }
390
- combineFlagAndOptionalValue(t = true) {
391
- this._combineFlagAndOptionalValue = !!t;
392
- return this;
393
- }
394
- allowUnknownOption(t = true) {
395
- this._allowUnknownOption = !!t;
396
- return this;
397
- }
398
- allowExcessArguments(t = true) {
399
- this._allowExcessArguments = !!t;
400
- return this;
401
- }
402
- enablePositionalOptions(t = true) {
403
- this._enablePositionalOptions = !!t;
404
- return this;
405
- }
406
- passThroughOptions(t = true) {
407
- this._passThroughOptions = !!t;
408
- if (!!this.parent && t && !this.parent._enablePositionalOptions) throw new Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)");
409
- return this;
410
- }
411
- storeOptionsAsProperties(t = true) {
412
- this._storeOptionsAsProperties = !!t;
413
- if (this.options.length) throw new Error("call .storeOptionsAsProperties() before adding options");
414
- return this;
415
- }
416
- getOptionValue(t) {
417
- if (this._storeOptionsAsProperties) return this[t];
418
- return this._optionValues[t];
419
- }
420
- setOptionValue(t, e) {
421
- return this.setOptionValueWithSource(t, e, void 0);
422
- }
423
- setOptionValueWithSource(t, e, i) {
424
- if (this._storeOptionsAsProperties) this[t] = e;
425
- else this._optionValues[t] = e;
426
- this._optionValueSources[t] = i;
427
- return this;
428
- }
429
- getOptionValueSource(t) {
430
- return this._optionValueSources[t];
845
+ throw t;
846
+ }
847
+ }
848
+ _registerOption(t) {
849
+ const e = t.short && this._findOption(t.short) || t.long && this._findOption(t.long);
850
+ if (e) {
851
+ const i = t.long && this._findOption(t.long) ? t.long : t.short;
852
+ throw new Error(`Cannot add option '${t.flags}'${this._name && ` to command '${this._name}'`} due to conflicting flag '${i}'\n- already used by option '${e.flags}'`);
853
+ }
854
+ this._initOptionGroup(t);
855
+ this.options.push(t);
856
+ }
857
+ _registerCommand(t) {
858
+ const knownBy = (t)=>[
859
+ t.name()
860
+ ].concat(t.aliases());
861
+ const e = knownBy(t).find((t)=>this._findCommand(t));
862
+ if (e) {
863
+ const i = knownBy(this._findCommand(e)).join("|");
864
+ const n = knownBy(t).join("|");
865
+ throw new Error(`cannot add command '${n}' as already have command '${i}'`);
866
+ }
867
+ this._initCommandGroup(t);
868
+ this.commands.push(t);
869
+ }
870
+ addOption(t) {
871
+ this._registerOption(t);
872
+ const e = t.name();
873
+ const i = t.attributeName();
874
+ if (void 0 !== t.defaultValue) this.setOptionValueWithSource(i, t.defaultValue, "default");
875
+ const handleOptionValue = (e, n, s)=>{
876
+ if (null == e && void 0 !== t.presetArg) e = t.presetArg;
877
+ const r = this.getOptionValue(i);
878
+ if (null !== e && t.parseArg) e = this._callParseArg(t, e, r, n);
879
+ else if (null !== e && t.variadic) e = t._collectValue(e, r);
880
+ if (null == e) e = t.negate ? false : t.isBoolean() || t.optional ? true : "";
881
+ this.setOptionValueWithSource(i, e, s);
882
+ };
883
+ this.on("option:" + e, (e)=>{
884
+ const i = `error: option '${t.flags}' argument '${e}' is invalid.`;
885
+ handleOptionValue(e, i, "cli");
886
+ });
887
+ if (t.envVar) this.on("optionEnv:" + e, (e)=>{
888
+ const i = `error: option '${t.flags}' value '${e}' from env '${t.envVar}' is invalid.`;
889
+ handleOptionValue(e, i, "env");
890
+ });
891
+ return this;
892
+ }
893
+ _optionEx(t, e, i, n, s) {
894
+ if ("object" == typeof e && e instanceof Option) throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");
895
+ const r = this.createOption(e, i);
896
+ r.makeOptionMandatory(!!t.mandatory);
897
+ if ("function" == typeof n) r.default(s).argParser(n);
898
+ else if (n instanceof RegExp) {
899
+ const t = n;
900
+ n = (e, i)=>{
901
+ const n = t.exec(e);
902
+ return n ? n[0] : i;
903
+ };
904
+ r.default(s).argParser(n);
905
+ } else r.default(n);
906
+ return this.addOption(r);
907
+ }
908
+ option(t, e, i, n) {
909
+ return this._optionEx({}, t, e, i, n);
910
+ }
911
+ requiredOption(t, e, i, n) {
912
+ return this._optionEx({
913
+ mandatory: true
914
+ }, t, e, i, n);
915
+ }
916
+ combineFlagAndOptionalValue(t = true) {
917
+ this._combineFlagAndOptionalValue = !!t;
918
+ return this;
919
+ }
920
+ allowUnknownOption(t = true) {
921
+ this._allowUnknownOption = !!t;
922
+ return this;
923
+ }
924
+ allowExcessArguments(t = true) {
925
+ this._allowExcessArguments = !!t;
926
+ return this;
927
+ }
928
+ enablePositionalOptions(t = true) {
929
+ this._enablePositionalOptions = !!t;
930
+ return this;
931
+ }
932
+ passThroughOptions(t = true) {
933
+ this._passThroughOptions = !!t;
934
+ this._checkForBrokenPassThrough();
935
+ return this;
936
+ }
937
+ _checkForBrokenPassThrough() {
938
+ if (this.parent && this._passThroughOptions && !this.parent._enablePositionalOptions) throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`);
939
+ }
940
+ storeOptionsAsProperties(t = true) {
941
+ if (this.options.length) throw new Error("call .storeOptionsAsProperties() before adding options");
942
+ if (Object.keys(this._optionValues).length) throw new Error("call .storeOptionsAsProperties() before setting option values");
943
+ this._storeOptionsAsProperties = !!t;
944
+ return this;
945
+ }
946
+ getOptionValue(t) {
947
+ if (this._storeOptionsAsProperties) return this[t];
948
+ return this._optionValues[t];
949
+ }
950
+ setOptionValue(t, e) {
951
+ return this.setOptionValueWithSource(t, e, void 0);
952
+ }
953
+ setOptionValueWithSource(t, e, i) {
954
+ if (this._storeOptionsAsProperties) this[t] = e;
955
+ else this._optionValues[t] = e;
956
+ this._optionValueSources[t] = i;
957
+ return this;
958
+ }
959
+ getOptionValueSource(t) {
960
+ return this._optionValueSources[t];
961
+ }
962
+ getOptionValueSourceWithGlobals(t) {
963
+ let e;
964
+ this._getCommandAndAncestors().forEach((i)=>{
965
+ if (void 0 !== i.getOptionValueSource(t)) e = i.getOptionValueSource(t);
966
+ });
967
+ return e;
968
+ }
969
+ _prepareUserArgs(t, e) {
970
+ if (void 0 !== t && !Array.isArray(t)) throw new Error("first parameter to parse must be array or undefined");
971
+ e = e || {};
972
+ if (void 0 === t && void 0 === e.from) {
973
+ if (o.versions?.electron) e.from = "electron";
974
+ const t = o.execArgv ?? [];
975
+ if (t.includes("-e") || t.includes("--eval") || t.includes("-p") || t.includes("--print")) e.from = "eval";
976
+ }
977
+ if (void 0 === t) t = o.argv;
978
+ this.rawArgs = t.slice();
979
+ let i;
980
+ switch(e.from){
981
+ case void 0:
982
+ case "node":
983
+ this._scriptPath = t[1];
984
+ i = t.slice(2);
985
+ break;
986
+ case "electron":
987
+ if (o.defaultApp) {
988
+ this._scriptPath = t[1];
989
+ i = t.slice(2);
990
+ } else i = t.slice(1);
991
+ break;
992
+ case "user":
993
+ i = t.slice(0);
994
+ break;
995
+ case "eval":
996
+ i = t.slice(1);
997
+ break;
998
+ default:
999
+ throw new Error(`unexpected parse option { from: '${e.from}' }`);
1000
+ }
1001
+ if (!this._name && this._scriptPath) this.nameFromFilename(this._scriptPath);
1002
+ this._name = this._name || "program";
1003
+ return i;
1004
+ }
1005
+ parse(t, e) {
1006
+ this._prepareForParse();
1007
+ const i = this._prepareUserArgs(t, e);
1008
+ this._parseCommand([], i);
1009
+ return this;
1010
+ }
1011
+ async parseAsync(t, e) {
1012
+ this._prepareForParse();
1013
+ const i = this._prepareUserArgs(t, e);
1014
+ await this._parseCommand([], i);
1015
+ return this;
1016
+ }
1017
+ _prepareForParse() {
1018
+ if (null === this._savedState) {
1019
+ this.options.filter((t)=>t.negate && void 0 === t.defaultValue && void 0 === this.getOptionValue(t.attributeName())).forEach((t)=>{
1020
+ const e = t.long.replace(/^--no-/, "--");
1021
+ if (!this._findOption(e)) this.setOptionValueWithSource(t.attributeName(), true, "default");
1022
+ });
1023
+ this.saveStateBeforeParse();
1024
+ } else this.restoreStateBeforeParse();
1025
+ }
1026
+ saveStateBeforeParse() {
1027
+ this._savedState = {
1028
+ _name: this._name,
1029
+ _optionValues: {
1030
+ ...this._optionValues
1031
+ },
1032
+ _optionValueSources: {
1033
+ ...this._optionValueSources
1034
+ }
1035
+ };
1036
+ }
1037
+ restoreStateBeforeParse() {
1038
+ if (this._storeOptionsAsProperties) throw new Error(`Can not call parse again when storeOptionsAsProperties is true.\n- either make a new Command for each call to parse, or stop storing options as properties`);
1039
+ this._name = this._savedState._name;
1040
+ this._scriptPath = null;
1041
+ this.rawArgs = [];
1042
+ this._optionValues = {
1043
+ ...this._savedState._optionValues
1044
+ };
1045
+ this._optionValueSources = {
1046
+ ...this._savedState._optionValueSources
1047
+ };
1048
+ this.args = [];
1049
+ this.processedArgs = [];
1050
+ }
1051
+ _checkForMissingExecutable(t, e, i) {
1052
+ if (r.existsSync(t)) return;
1053
+ const n = e ? `searched for local subcommand relative to directory '${e}'` : "no directory for search for local subcommand, use .executableDir() to supply a custom directory";
1054
+ const s = `'${t}' does not exist\n - if '${i}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead\n - if the default executable name is not suitable, use the executableFile option to supply a custom name or path\n - ${n}`;
1055
+ throw new Error(s);
1056
+ }
1057
+ _executeSubCommand(t, e) {
1058
+ e = e.slice();
1059
+ const i = [
1060
+ ".js",
1061
+ ".ts",
1062
+ ".tsx",
1063
+ ".mjs",
1064
+ ".cjs"
1065
+ ];
1066
+ function findFile(t, e) {
1067
+ const n = s.resolve(t, e);
1068
+ if (r.existsSync(n)) return n;
1069
+ if (i.includes(s.extname(e))) return;
1070
+ const o = i.find((t)=>r.existsSync(`${n}${t}`));
1071
+ if (o) return `${n}${o}`;
1072
+ }
1073
+ this._checkForMissingMandatoryOptions();
1074
+ this._checkForConflictingOptions();
1075
+ let a = t._executableFile || `${this._name}-${t._name}`;
1076
+ let h = this._executableDir || "";
1077
+ if (this._scriptPath) {
1078
+ let t;
1079
+ try {
1080
+ t = r.realpathSync(this._scriptPath);
1081
+ } catch {
1082
+ t = this._scriptPath;
1083
+ }
1084
+ h = s.resolve(s.dirname(t), h);
1085
+ }
1086
+ if (h) {
1087
+ let e = findFile(h, a);
1088
+ if (!e && !t._executableFile && this._scriptPath) {
1089
+ const i = s.basename(this._scriptPath, s.extname(this._scriptPath));
1090
+ if (i !== this._name) e = findFile(h, `${i}-${t._name}`);
431
1091
  }
432
- getOptionValueSourceWithGlobals(t) {
433
- let e;
434
- getCommandAndParents(this).forEach((i)=>{
435
- if (void 0 !== i.getOptionValueSource(t)) e = i.getOptionValueSource(t);
1092
+ a = e || a;
1093
+ }
1094
+ const l = i.includes(s.extname(a));
1095
+ let u;
1096
+ if ("win32" !== o.platform) if (l) {
1097
+ e.unshift(a);
1098
+ e = incrementNodeInspectorPort(o.execArgv).concat(e);
1099
+ u = n.spawn(o.argv[0], e, {
1100
+ stdio: "inherit"
1101
+ });
1102
+ } else u = n.spawn(a, e, {
1103
+ stdio: "inherit"
1104
+ });
1105
+ else {
1106
+ this._checkForMissingExecutable(a, h, t._name);
1107
+ e.unshift(a);
1108
+ e = incrementNodeInspectorPort(o.execArgv).concat(e);
1109
+ u = n.spawn(o.execPath, e, {
1110
+ stdio: "inherit"
1111
+ });
1112
+ }
1113
+ if (!u.killed) {
1114
+ const t = [
1115
+ "SIGUSR1",
1116
+ "SIGUSR2",
1117
+ "SIGTERM",
1118
+ "SIGINT",
1119
+ "SIGHUP"
1120
+ ];
1121
+ t.forEach((t)=>{
1122
+ o.on(t, ()=>{
1123
+ if (false === u.killed && null === u.exitCode) u.kill(t);
436
1124
  });
437
- return e;
438
- }
439
- _prepareUserArgs(t, e) {
440
- if (void 0 !== t && !Array.isArray(t)) throw new Error("first parameter to parse must be array or undefined");
441
- e = e || {};
442
- if (void 0 === t) {
443
- t = a.argv;
444
- if (a.versions && a.versions.electron) e.from = "electron";
445
- }
446
- this.rawArgs = t.slice();
447
- let i;
448
- switch(e.from){
449
- case void 0:
450
- case "node":
451
- this._scriptPath = t[1];
452
- i = t.slice(2);
453
- break;
454
- case "electron":
455
- if (a.defaultApp) {
456
- this._scriptPath = t[1];
457
- i = t.slice(2);
458
- } else i = t.slice(1);
459
- break;
460
- case "user":
461
- i = t.slice(0);
462
- break;
463
- default:
464
- throw new Error(`unexpected parse option { from: '${e.from}' }`);
465
- }
466
- if (!this._name && this._scriptPath) this.nameFromFilename(this._scriptPath);
467
- this._name = this._name || "program";
468
- return i;
469
- }
470
- parse(t, e) {
471
- const i = this._prepareUserArgs(t, e);
472
- this._parseCommand([], i);
473
- return this;
474
- }
475
- async parseAsync(t, e) {
476
- const i = this._prepareUserArgs(t, e);
477
- await this._parseCommand([], i);
478
- return this;
479
- }
480
- _executeSubCommand(t, e) {
481
- e = e.slice();
482
- let i = false;
483
- const n = [
484
- ".js",
485
- ".ts",
486
- ".tsx",
487
- ".mjs",
488
- ".cjs"
489
- ];
490
- function findFile(t, e) {
491
- const i = r.resolve(t, e);
492
- if (o.existsSync(i)) return i;
493
- if (n.includes(r.extname(e))) return;
494
- const s = n.find((t)=>o.existsSync(`${i}${t}`));
495
- if (s) return `${i}${s}`;
496
- }
497
- this._checkForMissingMandatoryOptions();
498
- this._checkForConflictingOptions();
499
- let l = t._executableFile || `${this._name}-${t._name}`;
500
- let h = this._executableDir || "";
501
- if (this._scriptPath) {
502
- let t;
503
- try {
504
- t = o.realpathSync(this._scriptPath);
505
- } catch (e) {
506
- t = this._scriptPath;
507
- }
508
- h = r.resolve(r.dirname(t), h);
509
- }
510
- if (h) {
511
- let e = findFile(h, l);
512
- if (!e && !t._executableFile && this._scriptPath) {
513
- const i = r.basename(this._scriptPath, r.extname(this._scriptPath));
514
- if (i !== this._name) e = findFile(h, `${i}-${t._name}`);
515
- }
516
- l = e || l;
517
- }
518
- i = n.includes(r.extname(l));
519
- let c;
520
- if ("win32" !== a.platform) if (i) {
521
- e.unshift(l);
522
- e = incrementNodeInspectorPort(a.execArgv).concat(e);
523
- c = s.spawn(a.argv[0], e, {
524
- stdio: "inherit"
525
- });
526
- } else c = s.spawn(l, e, {
527
- stdio: "inherit"
1125
+ });
1126
+ }
1127
+ const c = this._exitCallback;
1128
+ u.on("close", (t)=>{
1129
+ t = t ?? 1;
1130
+ if (c) c(new CommanderError(t, "commander.executeSubCommandAsync", "(close)"));
1131
+ else o.exit(t);
1132
+ });
1133
+ u.on("error", (e)=>{
1134
+ if ("ENOENT" === e.code) this._checkForMissingExecutable(a, h, t._name);
1135
+ else if ("EACCES" === e.code) throw new Error(`'${a}' not executable`);
1136
+ if (c) {
1137
+ const t = new CommanderError(1, "commander.executeSubCommandAsync", "(error)");
1138
+ t.nestedError = e;
1139
+ c(t);
1140
+ } else o.exit(1);
1141
+ });
1142
+ this.runningCommand = u;
1143
+ }
1144
+ _dispatchSubcommand(t, e, i) {
1145
+ const n = this._findCommand(t);
1146
+ if (!n) this.help({
1147
+ error: true
1148
+ });
1149
+ n._prepareForParse();
1150
+ let s;
1151
+ s = this._chainOrCallSubCommandHook(s, n, "preSubcommand");
1152
+ s = this._chainOrCall(s, ()=>{
1153
+ if (!n._executableHandler) return n._parseCommand(e, i);
1154
+ else this._executeSubCommand(n, e.concat(i));
1155
+ });
1156
+ return s;
1157
+ }
1158
+ _dispatchHelpCommand(t) {
1159
+ if (!t) this.help();
1160
+ const e = this._findCommand(t);
1161
+ if (e && !e._executableHandler) e.help();
1162
+ return this._dispatchSubcommand(t, [], [
1163
+ this._getHelpOption()?.long ?? this._getHelpOption()?.short ?? "--help"
1164
+ ]);
1165
+ }
1166
+ _checkNumberOfArguments() {
1167
+ this.registeredArguments.forEach((t, e)=>{
1168
+ if (t.required && null == this.args[e]) this.missingArgument(t.name());
1169
+ });
1170
+ if (this.registeredArguments.length > 0 && this.registeredArguments[this.registeredArguments.length - 1].variadic) return;
1171
+ if (this.args.length > this.registeredArguments.length) this._excessArguments(this.args);
1172
+ }
1173
+ _processArguments() {
1174
+ const myParseArg = (t, e, i)=>{
1175
+ let n = e;
1176
+ if (null !== e && t.parseArg) {
1177
+ const s = `error: command-argument value '${e}' is invalid for argument '${t.name()}'.`;
1178
+ n = this._callParseArg(t, e, i, s);
1179
+ }
1180
+ return n;
1181
+ };
1182
+ this._checkNumberOfArguments();
1183
+ const t = [];
1184
+ this.registeredArguments.forEach((e, i)=>{
1185
+ let n = e.defaultValue;
1186
+ if (e.variadic) {
1187
+ if (i < this.args.length) {
1188
+ n = this.args.slice(i);
1189
+ if (e.parseArg) n = n.reduce((t, i)=>myParseArg(e, i, t), e.defaultValue);
1190
+ } else if (void 0 === n) n = [];
1191
+ } else if (i < this.args.length) {
1192
+ n = this.args[i];
1193
+ if (e.parseArg) n = myParseArg(e, n, e.defaultValue);
1194
+ }
1195
+ t[i] = n;
1196
+ });
1197
+ this.processedArgs = t;
1198
+ }
1199
+ _chainOrCall(t, e) {
1200
+ if (t?.then && "function" == typeof t.then) return t.then(()=>e());
1201
+ return e();
1202
+ }
1203
+ _chainOrCallHooks(t, e) {
1204
+ let i = t;
1205
+ const n = [];
1206
+ this._getCommandAndAncestors().reverse().filter((t)=>void 0 !== t._lifeCycleHooks[e]).forEach((t)=>{
1207
+ t._lifeCycleHooks[e].forEach((e)=>{
1208
+ n.push({
1209
+ hookedCommand: t,
1210
+ callback: e
528
1211
  });
529
- else {
530
- e.unshift(l);
531
- e = incrementNodeInspectorPort(a.execArgv).concat(e);
532
- c = s.spawn(a.execPath, e, {
533
- stdio: "inherit"
534
- });
535
- }
536
- if (!c.killed) {
537
- const t = [
538
- "SIGUSR1",
539
- "SIGUSR2",
540
- "SIGTERM",
541
- "SIGINT",
542
- "SIGHUP"
543
- ];
544
- t.forEach((t)=>{
545
- a.on(t, ()=>{
546
- if (false === c.killed && null === c.exitCode) c.kill(t);
547
- });
548
- });
1212
+ });
1213
+ });
1214
+ if ("postAction" === e) n.reverse();
1215
+ n.forEach((t)=>{
1216
+ i = this._chainOrCall(i, ()=>t.callback(t.hookedCommand, this));
1217
+ });
1218
+ return i;
1219
+ }
1220
+ _chainOrCallSubCommandHook(t, e, i) {
1221
+ let n = t;
1222
+ if (void 0 !== this._lifeCycleHooks[i]) this._lifeCycleHooks[i].forEach((t)=>{
1223
+ n = this._chainOrCall(n, ()=>t(this, e));
1224
+ });
1225
+ return n;
1226
+ }
1227
+ _parseCommand(t, e) {
1228
+ const i = this.parseOptions(e);
1229
+ this._parseOptionsEnv();
1230
+ this._parseOptionsImplied();
1231
+ t = t.concat(i.operands);
1232
+ e = i.unknown;
1233
+ this.args = t.concat(e);
1234
+ if (t && this._findCommand(t[0])) return this._dispatchSubcommand(t[0], t.slice(1), e);
1235
+ if (this._getHelpCommand() && t[0] === this._getHelpCommand().name()) return this._dispatchHelpCommand(t[1]);
1236
+ if (this._defaultCommandName) {
1237
+ this._outputHelpIfRequested(e);
1238
+ return this._dispatchSubcommand(this._defaultCommandName, t, e);
1239
+ }
1240
+ if (this.commands.length && 0 === this.args.length && !this._actionHandler && !this._defaultCommandName) this.help({
1241
+ error: true
1242
+ });
1243
+ this._outputHelpIfRequested(i.unknown);
1244
+ this._checkForMissingMandatoryOptions();
1245
+ this._checkForConflictingOptions();
1246
+ const checkForUnknownOptions = ()=>{
1247
+ if (i.unknown.length > 0) this.unknownOption(i.unknown[0]);
1248
+ };
1249
+ const n = `command:${this.name()}`;
1250
+ if (this._actionHandler) {
1251
+ checkForUnknownOptions();
1252
+ this._processArguments();
1253
+ let i;
1254
+ i = this._chainOrCallHooks(i, "preAction");
1255
+ i = this._chainOrCall(i, ()=>this._actionHandler(this.processedArgs));
1256
+ if (this.parent) i = this._chainOrCall(i, ()=>{
1257
+ this.parent.emit(n, t, e);
1258
+ });
1259
+ i = this._chainOrCallHooks(i, "postAction");
1260
+ return i;
1261
+ }
1262
+ if (this.parent?.listenerCount(n)) {
1263
+ checkForUnknownOptions();
1264
+ this._processArguments();
1265
+ this.parent.emit(n, t, e);
1266
+ } else if (t.length) {
1267
+ if (this._findCommand("*")) return this._dispatchSubcommand("*", t, e);
1268
+ if (this.listenerCount("command:*")) this.emit("command:*", t, e);
1269
+ else if (this.commands.length) this.unknownCommand();
1270
+ else {
1271
+ checkForUnknownOptions();
1272
+ this._processArguments();
1273
+ }
1274
+ } else if (this.commands.length) {
1275
+ checkForUnknownOptions();
1276
+ this.help({
1277
+ error: true
1278
+ });
1279
+ } else {
1280
+ checkForUnknownOptions();
1281
+ this._processArguments();
1282
+ }
1283
+ }
1284
+ _findCommand(t) {
1285
+ if (!t) return;
1286
+ return this.commands.find((e)=>e._name === t || e._aliases.includes(t));
1287
+ }
1288
+ _findOption(t) {
1289
+ return this.options.find((e)=>e.is(t));
1290
+ }
1291
+ _checkForMissingMandatoryOptions() {
1292
+ this._getCommandAndAncestors().forEach((t)=>{
1293
+ t.options.forEach((e)=>{
1294
+ if (e.mandatory && void 0 === t.getOptionValue(e.attributeName())) t.missingMandatoryOptionValue(e);
1295
+ });
1296
+ });
1297
+ }
1298
+ _checkForConflictingLocalOptions() {
1299
+ const t = this.options.filter((t)=>{
1300
+ const e = t.attributeName();
1301
+ if (void 0 === this.getOptionValue(e)) return false;
1302
+ return "default" !== this.getOptionValueSource(e);
1303
+ });
1304
+ const e = t.filter((t)=>t.conflictsWith.length > 0);
1305
+ e.forEach((e)=>{
1306
+ const i = t.find((t)=>e.conflictsWith.includes(t.attributeName()));
1307
+ if (i) this._conflictingOption(e, i);
1308
+ });
1309
+ }
1310
+ _checkForConflictingOptions() {
1311
+ this._getCommandAndAncestors().forEach((t)=>{
1312
+ t._checkForConflictingLocalOptions();
1313
+ });
1314
+ }
1315
+ parseOptions(t) {
1316
+ const e = [];
1317
+ const i = [];
1318
+ let n = e;
1319
+ function maybeOption(t) {
1320
+ return t.length > 1 && "-" === t[0];
1321
+ }
1322
+ const negativeNumberArg = (t)=>{
1323
+ if (!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(t)) return false;
1324
+ return !this._getCommandAndAncestors().some((t)=>t.options.map((t)=>t.short).some((t)=>/^-\d$/.test(t)));
1325
+ };
1326
+ let s = null;
1327
+ let r = null;
1328
+ let o = 0;
1329
+ while(o < t.length || r){
1330
+ const a = r ?? t[o++];
1331
+ r = null;
1332
+ if ("--" === a) {
1333
+ if (n === i) n.push(a);
1334
+ n.push(...t.slice(o));
1335
+ break;
1336
+ }
1337
+ if (s && (!maybeOption(a) || negativeNumberArg(a))) {
1338
+ this.emit(`option:${s.name()}`, a);
1339
+ continue;
1340
+ }
1341
+ s = null;
1342
+ if (maybeOption(a)) {
1343
+ const e = this._findOption(a);
1344
+ if (e) {
1345
+ if (e.required) {
1346
+ const i = t[o++];
1347
+ if (void 0 === i) this.optionMissingArgument(e);
1348
+ this.emit(`option:${e.name()}`, i);
1349
+ } else if (e.optional) {
1350
+ let i = null;
1351
+ if (o < t.length && (!maybeOption(t[o]) || negativeNumberArg(t[o]))) i = t[o++];
1352
+ this.emit(`option:${e.name()}`, i);
1353
+ } else this.emit(`option:${e.name()}`);
1354
+ s = e.variadic ? e : null;
1355
+ continue;
549
1356
  }
550
- const p = this._exitCallback;
551
- if (p) c.on("close", ()=>{
552
- p(new u(a.exitCode || 0, "commander.executeSubCommandAsync", "(close)"));
553
- });
554
- else c.on("close", a.exit.bind(a));
555
- c.on("error", (e)=>{
556
- if ("ENOENT" === e.code) {
557
- const e = h ? `searched for local subcommand relative to directory '${h}'` : "no directory for search for local subcommand, use .executableDir() to supply a custom directory";
558
- const i = `'${l}' does not exist\n - if '${t._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead\n - if the default executable name is not suitable, use the executableFile option to supply a custom name or path\n - ${e}`;
559
- throw new Error(i);
560
- }
561
- if ("EACCES" === e.code) throw new Error(`'${l}' not executable`);
562
- if (p) {
563
- const t = new u(1, "commander.executeSubCommandAsync", "(error)");
564
- t.nestedError = e;
565
- p(t);
566
- } else a.exit(1);
567
- });
568
- this.runningCommand = c;
569
- }
570
- _dispatchSubcommand(t, e, i) {
571
- const n = this._findCommand(t);
572
- if (!n) this.help({
573
- error: true
574
- });
575
- let s;
576
- s = this._chainOrCallSubCommandHook(s, n, "preSubcommand");
577
- s = this._chainOrCall(s, ()=>{
578
- if (!n._executableHandler) return n._parseCommand(e, i);
579
- this._executeSubCommand(n, e.concat(i));
580
- });
581
- return s;
582
- }
583
- _checkNumberOfArguments() {
584
- this._args.forEach((t, e)=>{
585
- if (t.required && null == this.args[e]) this.missingArgument(t.name());
586
- });
587
- if (this._args.length > 0 && this._args[this._args.length - 1].variadic) return;
588
- if (this.args.length > this._args.length) this._excessArguments(this.args);
589
- }
590
- _processArguments() {
591
- const myParseArg = (t, e, i)=>{
592
- let n = e;
593
- if (null !== e && t.parseArg) try {
594
- n = t.parseArg(e, i);
595
- } catch (i) {
596
- if ("commander.invalidArgument" === i.code) {
597
- const n = `error: command-argument value '${e}' is invalid for argument '${t.name()}'. ${i.message}`;
598
- this.error(n, {
599
- exitCode: i.exitCode,
600
- code: i.code
601
- });
602
- }
603
- throw i;
604
- }
605
- return n;
606
- };
607
- this._checkNumberOfArguments();
608
- const t = [];
609
- this._args.forEach((e, i)=>{
610
- let n = e.defaultValue;
611
- if (e.variadic) {
612
- if (i < this.args.length) {
613
- n = this.args.slice(i);
614
- if (e.parseArg) n = n.reduce((t, i)=>myParseArg(e, i, t), e.defaultValue);
615
- } else if (void 0 === n) n = [];
616
- } else if (i < this.args.length) {
617
- n = this.args[i];
618
- if (e.parseArg) n = myParseArg(e, n, e.defaultValue);
619
- }
620
- t[i] = n;
621
- });
622
- this.processedArgs = t;
623
1357
  }
624
- _chainOrCall(t, e) {
625
- if (t && t.then && "function" == typeof t.then) return t.then(()=>e());
626
- return e();
627
- }
628
- _chainOrCallHooks(t, e) {
629
- let i = t;
630
- const n = [];
631
- getCommandAndParents(this).reverse().filter((t)=>void 0 !== t._lifeCycleHooks[e]).forEach((t)=>{
632
- t._lifeCycleHooks[e].forEach((e)=>{
633
- n.push({
634
- hookedCommand: t,
635
- callback: e
636
- });
637
- });
638
- });
639
- if ("postAction" === e) n.reverse();
640
- n.forEach((t)=>{
641
- i = this._chainOrCall(i, ()=>t.callback(t.hookedCommand, this));
642
- });
643
- return i;
644
- }
645
- _chainOrCallSubCommandHook(t, e, i) {
646
- let n = t;
647
- if (void 0 !== this._lifeCycleHooks[i]) this._lifeCycleHooks[i].forEach((t)=>{
648
- n = this._chainOrCall(n, ()=>t(this, e));
649
- });
650
- return n;
651
- }
652
- _parseCommand(t, e) {
653
- const i = this.parseOptions(e);
654
- this._parseOptionsEnv();
655
- this._parseOptionsImplied();
656
- t = t.concat(i.operands);
657
- e = i.unknown;
658
- this.args = t.concat(e);
659
- if (t && this._findCommand(t[0])) return this._dispatchSubcommand(t[0], t.slice(1), e);
660
- if (this._hasImplicitHelpCommand() && t[0] === this._helpCommandName) {
661
- if (1 === t.length) this.help();
662
- return this._dispatchSubcommand(t[1], [], [
663
- this._helpLongFlag
664
- ]);
665
- }
666
- if (this._defaultCommandName) {
667
- outputHelpIfRequested(this, e);
668
- return this._dispatchSubcommand(this._defaultCommandName, t, e);
669
- }
670
- if (this.commands.length && 0 === this.args.length && !this._actionHandler && !this._defaultCommandName) this.help({
671
- error: true
672
- });
673
- outputHelpIfRequested(this, i.unknown);
674
- this._checkForMissingMandatoryOptions();
675
- this._checkForConflictingOptions();
676
- const checkForUnknownOptions = ()=>{
677
- if (i.unknown.length > 0) this.unknownOption(i.unknown[0]);
678
- };
679
- const n = `command:${this.name()}`;
680
- if (this._actionHandler) {
681
- checkForUnknownOptions();
682
- this._processArguments();
683
- let i;
684
- i = this._chainOrCallHooks(i, "preAction");
685
- i = this._chainOrCall(i, ()=>this._actionHandler(this.processedArgs));
686
- if (this.parent) i = this._chainOrCall(i, ()=>{
687
- this.parent.emit(n, t, e);
688
- });
689
- i = this._chainOrCallHooks(i, "postAction");
690
- return i;
691
- }
692
- if (this.parent && this.parent.listenerCount(n)) {
693
- checkForUnknownOptions();
694
- this._processArguments();
695
- this.parent.emit(n, t, e);
696
- } else if (t.length) {
697
- if (this._findCommand("*")) return this._dispatchSubcommand("*", t, e);
698
- if (this.listenerCount("command:*")) this.emit("command:*", t, e);
699
- else if (this.commands.length) this.unknownCommand();
1358
+ if (a.length > 2 && "-" === a[0] && "-" !== a[1]) {
1359
+ const t = this._findOption(`-${a[1]}`);
1360
+ if (t) {
1361
+ if (t.required || t.optional && this._combineFlagAndOptionalValue) this.emit(`option:${t.name()}`, a.slice(2));
700
1362
  else {
701
- checkForUnknownOptions();
702
- this._processArguments();
703
- }
704
- } else if (this.commands.length) {
705
- checkForUnknownOptions();
706
- this.help({
707
- error: true
708
- });
709
- } else {
710
- checkForUnknownOptions();
711
- this._processArguments();
712
- }
713
- }
714
- _findCommand(t) {
715
- if (!t) return;
716
- return this.commands.find((e)=>e._name === t || e._aliases.includes(t));
717
- }
718
- _findOption(t) {
719
- return this.options.find((e)=>e.is(t));
720
- }
721
- _checkForMissingMandatoryOptions() {
722
- for(let t = this; t; t = t.parent)t.options.forEach((e)=>{
723
- if (e.mandatory && void 0 === t.getOptionValue(e.attributeName())) t.missingMandatoryOptionValue(e);
724
- });
725
- }
726
- _checkForConflictingLocalOptions() {
727
- const t = this.options.filter((t)=>{
728
- const e = t.attributeName();
729
- if (void 0 === this.getOptionValue(e)) return false;
730
- return "default" !== this.getOptionValueSource(e);
731
- });
732
- const e = t.filter((t)=>t.conflictsWith.length > 0);
733
- e.forEach((e)=>{
734
- const i = t.find((t)=>e.conflictsWith.includes(t.attributeName()));
735
- if (i) this._conflictingOption(e, i);
736
- });
737
- }
738
- _checkForConflictingOptions() {
739
- for(let t = this; t; t = t.parent)t._checkForConflictingLocalOptions();
740
- }
741
- parseOptions(t) {
742
- const e = [];
743
- const i = [];
744
- let n = e;
745
- const s = t.slice();
746
- function maybeOption(t) {
747
- return t.length > 1 && "-" === t[0];
748
- }
749
- let r = null;
750
- while(s.length){
751
- const t = s.shift();
752
- if ("--" === t) {
753
- if (n === i) n.push(t);
754
- n.push(...s);
755
- break;
1363
+ this.emit(`option:${t.name()}`);
1364
+ r = `-${a.slice(2)}`;
756
1365
  }
757
- if (r && !maybeOption(t)) {
758
- this.emit(`option:${r.name()}`, t);
759
- continue;
760
- }
761
- r = null;
762
- if (maybeOption(t)) {
763
- const e = this._findOption(t);
764
- if (e) {
765
- if (e.required) {
766
- const t = s.shift();
767
- if (void 0 === t) this.optionMissingArgument(e);
768
- this.emit(`option:${e.name()}`, t);
769
- } else if (e.optional) {
770
- let t = null;
771
- if (s.length > 0 && !maybeOption(s[0])) t = s.shift();
772
- this.emit(`option:${e.name()}`, t);
773
- } else this.emit(`option:${e.name()}`);
774
- r = e.variadic ? e : null;
775
- continue;
776
- }
777
- }
778
- if (t.length > 2 && "-" === t[0] && "-" !== t[1]) {
779
- const e = this._findOption(`-${t[1]}`);
780
- if (e) {
781
- if (e.required || e.optional && this._combineFlagAndOptionalValue) this.emit(`option:${e.name()}`, t.slice(2));
782
- else {
783
- this.emit(`option:${e.name()}`);
784
- s.unshift(`-${t.slice(2)}`);
785
- }
786
- continue;
787
- }
788
- }
789
- if (/^--[^=]+=/.test(t)) {
790
- const e = t.indexOf("=");
791
- const i = this._findOption(t.slice(0, e));
792
- if (i && (i.required || i.optional)) {
793
- this.emit(`option:${i.name()}`, t.slice(e + 1));
794
- continue;
795
- }
796
- }
797
- if (maybeOption(t)) n = i;
798
- if ((this._enablePositionalOptions || this._passThroughOptions) && 0 === e.length && 0 === i.length) {
799
- if (this._findCommand(t)) {
800
- e.push(t);
801
- if (s.length > 0) i.push(...s);
802
- break;
803
- } else if (t === this._helpCommandName && this._hasImplicitHelpCommand()) {
804
- e.push(t);
805
- if (s.length > 0) e.push(...s);
806
- break;
807
- } else if (this._defaultCommandName) {
808
- i.push(t);
809
- if (s.length > 0) i.push(...s);
810
- break;
811
- }
812
- }
813
- if (this._passThroughOptions) {
814
- n.push(t);
815
- if (s.length > 0) n.push(...s);
816
- break;
817
- }
818
- n.push(t);
1366
+ continue;
819
1367
  }
820
- return {
821
- operands: e,
822
- unknown: i
823
- };
824
- }
825
- opts() {
826
- if (this._storeOptionsAsProperties) {
827
- const t = {};
828
- const e = this.options.length;
829
- for(let i = 0; i < e; i++){
830
- const e = this.options[i].attributeName();
831
- t[e] = e === this._versionOptionName ? this._version : this[e];
832
- }
833
- return t;
834
- }
835
- return this._optionValues;
836
- }
837
- optsWithGlobals() {
838
- return getCommandAndParents(this).reduce((t, e)=>Object.assign(t, e.opts()), {});
839
- }
840
- error(t, e) {
841
- this._outputConfiguration.outputError(`${t}\n`, this._outputConfiguration.writeErr);
842
- if ("string" == typeof this._showHelpAfterError) this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`);
843
- else if (this._showHelpAfterError) {
844
- this._outputConfiguration.writeErr("\n");
845
- this.outputHelp({
846
- error: true
847
- });
848
- }
849
- const i = e || {};
850
- const n = i.exitCode || 1;
851
- const s = i.code || "commander.error";
852
- this._exit(n, s, t);
853
- }
854
- _parseOptionsEnv() {
855
- this.options.forEach((t)=>{
856
- if (t.envVar && t.envVar in a.env) {
857
- const e = t.attributeName();
858
- if (void 0 === this.getOptionValue(e) || [
859
- "default",
860
- "config",
861
- "env"
862
- ].includes(this.getOptionValueSource(e))) if (t.required || t.optional) this.emit(`optionEnv:${t.name()}`, a.env[t.envVar]);
863
- else this.emit(`optionEnv:${t.name()}`);
864
- }
865
- });
866
- }
867
- _parseOptionsImplied() {
868
- const t = new d(this.options);
869
- const hasCustomOptionValue = (t)=>void 0 !== this.getOptionValue(t) && ![
870
- "default",
871
- "implied"
872
- ].includes(this.getOptionValueSource(t));
873
- this.options.filter((e)=>void 0 !== e.implied && hasCustomOptionValue(e.attributeName()) && t.valueFromOption(this.getOptionValue(e.attributeName()), e)).forEach((t)=>{
874
- Object.keys(t.implied).filter((t)=>!hasCustomOptionValue(t)).forEach((e)=>{
875
- this.setOptionValueWithSource(e, t.implied[e], "implied");
876
- });
877
- });
878
- }
879
- missingArgument(t) {
880
- const e = `error: missing required argument '${t}'`;
881
- this.error(e, {
882
- code: "commander.missingArgument"
883
- });
884
- }
885
- optionMissingArgument(t) {
886
- const e = `error: option '${t.flags}' argument missing`;
887
- this.error(e, {
888
- code: "commander.optionMissingArgument"
889
- });
890
- }
891
- missingMandatoryOptionValue(t) {
892
- const e = `error: required option '${t.flags}' not specified`;
893
- this.error(e, {
894
- code: "commander.missingMandatoryOptionValue"
895
- });
896
- }
897
- _conflictingOption(t, e) {
898
- const findBestOptionFromValue = (t)=>{
899
- const e = t.attributeName();
900
- const i = this.getOptionValue(e);
901
- const n = this.options.find((t)=>t.negate && e === t.attributeName());
902
- const s = this.options.find((t)=>!t.negate && e === t.attributeName());
903
- if (n && (void 0 === n.presetArg && false === i || void 0 !== n.presetArg && i === n.presetArg)) return n;
904
- return s || t;
905
- };
906
- const getErrorMessage = (t)=>{
907
- const e = findBestOptionFromValue(t);
908
- const i = e.attributeName();
909
- const n = this.getOptionValueSource(i);
910
- if ("env" === n) return `environment variable '${e.envVar}'`;
911
- return `option '${e.flags}'`;
912
- };
913
- const i = `error: ${getErrorMessage(t)} cannot be used with ${getErrorMessage(e)}`;
914
- this.error(i, {
915
- code: "commander.conflictingOption"
916
- });
917
- }
918
- unknownOption(t) {
919
- if (this._allowUnknownOption) return;
920
- let e = "";
921
- if (t.startsWith("--") && this._showSuggestionAfterError) {
922
- let i = [];
923
- let n = this;
924
- do {
925
- const t = n.createHelp().visibleOptions(n).filter((t)=>t.long).map((t)=>t.long);
926
- i = i.concat(t);
927
- n = n.parent;
928
- }while (n && !n._enablePositionalOptions);
929
- e = f(t, i);
930
- }
931
- const i = `error: unknown option '${t}'${e}`;
932
- this.error(i, {
933
- code: "commander.unknownOption"
934
- });
935
- }
936
- _excessArguments(t) {
937
- if (this._allowExcessArguments) return;
938
- const e = this._args.length;
939
- const i = 1 === e ? "" : "s";
940
- const n = this.parent ? ` for '${this.name()}'` : "";
941
- const s = `error: too many arguments${n}. Expected ${e} argument${i} but got ${t.length}.`;
942
- this.error(s, {
943
- code: "commander.excessArguments"
944
- });
945
- }
946
- unknownCommand() {
947
- const t = this.args[0];
948
- let e = "";
949
- if (this._showSuggestionAfterError) {
950
- const i = [];
951
- this.createHelp().visibleCommands(this).forEach((t)=>{
952
- i.push(t.name());
953
- if (t.alias()) i.push(t.alias());
954
- });
955
- e = f(t, i);
956
- }
957
- const i = `error: unknown command '${t}'${e}`;
958
- this.error(i, {
959
- code: "commander.unknownCommand"
960
- });
961
- }
962
- version(t, e, i) {
963
- if (void 0 === t) return this._version;
964
- this._version = t;
965
- e = e || "-V, --version";
966
- i = i || "output the version number";
967
- const n = this.createOption(e, i);
968
- this._versionOptionName = n.attributeName();
969
- this.options.push(n);
970
- this.on("option:" + n.name(), ()=>{
971
- this._outputConfiguration.writeOut(`${t}\n`);
972
- this._exit(0, "commander.version", t);
973
- });
974
- return this;
975
- }
976
- description(t, e) {
977
- if (void 0 === t && void 0 === e) return this._description;
978
- this._description = t;
979
- if (e) this._argsDescription = e;
980
- return this;
981
- }
982
- summary(t) {
983
- if (void 0 === t) return this._summary;
984
- this._summary = t;
985
- return this;
986
- }
987
- alias(t) {
988
- if (void 0 === t) return this._aliases[0];
989
- let e = this;
990
- if (0 !== this.commands.length && this.commands[this.commands.length - 1]._executableHandler) e = this.commands[this.commands.length - 1];
991
- if (t === e._name) throw new Error("Command alias can't be the same as its name");
992
- e._aliases.push(t);
993
- return this;
994
- }
995
- aliases(t) {
996
- if (void 0 === t) return this._aliases;
997
- t.forEach((t)=>this.alias(t));
998
- return this;
999
- }
1000
- usage(t) {
1001
- if (void 0 === t) {
1002
- if (this._usage) return this._usage;
1003
- const t = this._args.map((t)=>h(t));
1004
- return [].concat(this.options.length || this._hasHelpOption ? "[options]" : [], this.commands.length ? "[command]" : [], this._args.length ? t : []).join(" ");
1005
- }
1006
- this._usage = t;
1007
- return this;
1008
- }
1009
- name(t) {
1010
- if (void 0 === t) return this._name;
1011
- this._name = t;
1012
- return this;
1013
- }
1014
- nameFromFilename(t) {
1015
- this._name = r.basename(t, r.extname(t));
1016
- return this;
1017
- }
1018
- executableDir(t) {
1019
- if (void 0 === t) return this._executableDir;
1020
- this._executableDir = t;
1021
- return this;
1022
- }
1023
- helpInformation(t) {
1024
- const e = this.createHelp();
1025
- if (void 0 === e.helpWidth) e.helpWidth = t && t.error ? this._outputConfiguration.getErrHelpWidth() : this._outputConfiguration.getOutHelpWidth();
1026
- return e.formatHelp(this, e);
1027
1368
  }
1028
- _getHelpContext(t) {
1029
- t = t || {};
1030
- const e = {
1031
- error: !!t.error
1032
- };
1033
- let i;
1034
- i = e.error ? (t)=>this._outputConfiguration.writeErr(t) : (t)=>this._outputConfiguration.writeOut(t);
1035
- e.write = t.write || i;
1036
- e.command = this;
1037
- return e;
1038
- }
1039
- outputHelp(t) {
1040
- let e;
1041
- if ("function" == typeof t) {
1042
- e = t;
1043
- t = void 0;
1044
- }
1045
- const i = this._getHelpContext(t);
1046
- getCommandAndParents(this).reverse().forEach((t)=>t.emit("beforeAllHelp", i));
1047
- this.emit("beforeHelp", i);
1048
- let n = this.helpInformation(i);
1049
- if (e) {
1050
- n = e(n);
1051
- if ("string" != typeof n && !Buffer.isBuffer(n)) throw new Error("outputHelp callback must return a string or a Buffer");
1369
+ if (/^--[^=]+=/.test(a)) {
1370
+ const t = a.indexOf("=");
1371
+ const e = this._findOption(a.slice(0, t));
1372
+ if (e && (e.required || e.optional)) {
1373
+ this.emit(`option:${e.name()}`, a.slice(t + 1));
1374
+ continue;
1052
1375
  }
1053
- i.write(n);
1054
- this.emit(this._helpLongFlag);
1055
- this.emit("afterHelp", i);
1056
- getCommandAndParents(this).forEach((t)=>t.emit("afterAllHelp", i));
1057
1376
  }
1058
- helpOption(t, e) {
1059
- if ("boolean" == typeof t) {
1060
- this._hasHelpOption = t;
1061
- return this;
1377
+ if (n === e && maybeOption(a) && !(0 === this.commands.length && negativeNumberArg(a))) n = i;
1378
+ if ((this._enablePositionalOptions || this._passThroughOptions) && 0 === e.length && 0 === i.length) {
1379
+ if (this._findCommand(a)) {
1380
+ e.push(a);
1381
+ i.push(...t.slice(o));
1382
+ break;
1383
+ } else if (this._getHelpCommand() && a === this._getHelpCommand().name()) {
1384
+ e.push(a, ...t.slice(o));
1385
+ break;
1386
+ } else if (this._defaultCommandName) {
1387
+ i.push(a, ...t.slice(o));
1388
+ break;
1062
1389
  }
1063
- this._helpFlags = t || this._helpFlags;
1064
- this._helpDescription = e || this._helpDescription;
1065
- const i = m(this._helpFlags);
1066
- this._helpShortFlag = i.shortFlag;
1067
- this._helpLongFlag = i.longFlag;
1068
- return this;
1069
- }
1070
- help(t) {
1071
- this.outputHelp(t);
1072
- let e = a.exitCode || 0;
1073
- if (0 === e && t && "function" != typeof t && t.error) e = 1;
1074
- this._exit(e, "commander.help", "(outputHelp)");
1075
1390
  }
1076
- addHelpText(t, e) {
1077
- const i = [
1078
- "beforeAll",
1079
- "before",
1080
- "after",
1081
- "afterAll"
1082
- ];
1083
- if (!i.includes(t)) throw new Error(`Unexpected value for position to addHelpText.\nExpecting one of '${i.join("', '")}'`);
1084
- const n = `${t}Help`;
1085
- this.on(n, (t)=>{
1086
- let i;
1087
- i = "function" == typeof e ? e({
1088
- error: t.error,
1089
- command: t.command
1090
- }) : e;
1091
- if (i) t.write(`${i}\n`);
1092
- });
1093
- return this;
1391
+ if (this._passThroughOptions) {
1392
+ n.push(a, ...t.slice(o));
1393
+ break;
1094
1394
  }
1395
+ n.push(a);
1095
1396
  }
1096
- function outputHelpIfRequested(t, e) {
1097
- const i = t._hasHelpOption && e.find((e)=>e === t._helpLongFlag || e === t._helpShortFlag);
1098
- if (i) {
1099
- t.outputHelp();
1100
- t._exit(0, "commander.helpDisplayed", "(outputHelp)");
1101
- }
1397
+ return {
1398
+ operands: e,
1399
+ unknown: i
1400
+ };
1401
+ }
1402
+ opts() {
1403
+ if (this._storeOptionsAsProperties) {
1404
+ const t = {};
1405
+ const e = this.options.length;
1406
+ for(let i = 0; i < e; i++){
1407
+ const e = this.options[i].attributeName();
1408
+ t[e] = e === this._versionOptionName ? this._version : this[e];
1409
+ }
1410
+ return t;
1102
1411
  }
1103
- function incrementNodeInspectorPort(t) {
1104
- return t.map((t)=>{
1105
- if (!t.startsWith("--inspect")) return t;
1106
- let e;
1107
- let i = "127.0.0.1";
1108
- let n = "9229";
1109
- let s;
1110
- if (null !== (s = t.match(/^(--inspect(-brk)?)$/))) e = s[1];
1111
- else if (null !== (s = t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))) {
1112
- e = s[1];
1113
- if (/^\d+$/.test(s[3])) n = s[3];
1114
- else i = s[3];
1115
- } else if (null !== (s = t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))) {
1116
- e = s[1];
1117
- i = s[3];
1118
- n = s[4];
1119
- }
1120
- if (e && "0" !== n) return `${e}=${i}:${parseInt(n) + 1}`;
1121
- return t;
1412
+ return this._optionValues;
1413
+ }
1414
+ optsWithGlobals() {
1415
+ return this._getCommandAndAncestors().reduce((t, e)=>Object.assign(t, e.opts()), {});
1416
+ }
1417
+ error(t, e) {
1418
+ this._outputConfiguration.outputError(`${t}\n`, this._outputConfiguration.writeErr);
1419
+ if ("string" == typeof this._showHelpAfterError) this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`);
1420
+ else if (this._showHelpAfterError) {
1421
+ this._outputConfiguration.writeErr("\n");
1422
+ this.outputHelp({
1423
+ error: true
1122
1424
  });
1123
1425
  }
1124
- function getCommandAndParents(t) {
1125
- const e = [];
1126
- for(let i = t; i; i = i.parent)e.push(i);
1127
- return e;
1128
- }
1129
- e.Command = Command;
1130
- },
1131
- 796: (t, e)=>{
1132
- class CommanderError extends Error {
1133
- constructor(t, e, i){
1134
- super(i);
1135
- Error.captureStackTrace(this, this.constructor);
1136
- this.name = this.constructor.name;
1137
- this.code = e;
1138
- this.exitCode = t;
1139
- this.nestedError = void 0;
1140
- }
1426
+ const i = e || {};
1427
+ const n = i.exitCode || 1;
1428
+ const s = i.code || "commander.error";
1429
+ this._exit(n, s, t);
1430
+ }
1431
+ _parseOptionsEnv() {
1432
+ this.options.forEach((t)=>{
1433
+ if (t.envVar && t.envVar in o.env) {
1434
+ const e = t.attributeName();
1435
+ if (void 0 === this.getOptionValue(e) || [
1436
+ "default",
1437
+ "config",
1438
+ "env"
1439
+ ].includes(this.getOptionValueSource(e))) if (t.required || t.optional) this.emit(`optionEnv:${t.name()}`, o.env[t.envVar]);
1440
+ else this.emit(`optionEnv:${t.name()}`);
1441
+ }
1442
+ });
1443
+ }
1444
+ _parseOptionsImplied() {
1445
+ const t = new DualOptions(this.options);
1446
+ const hasCustomOptionValue = (t)=>void 0 !== this.getOptionValue(t) && ![
1447
+ "default",
1448
+ "implied"
1449
+ ].includes(this.getOptionValueSource(t));
1450
+ this.options.filter((e)=>void 0 !== e.implied && hasCustomOptionValue(e.attributeName()) && t.valueFromOption(this.getOptionValue(e.attributeName()), e)).forEach((t)=>{
1451
+ Object.keys(t.implied).filter((t)=>!hasCustomOptionValue(t)).forEach((e)=>{
1452
+ this.setOptionValueWithSource(e, t.implied[e], "implied");
1453
+ });
1454
+ });
1455
+ }
1456
+ missingArgument(t) {
1457
+ const e = `error: missing required argument '${t}'`;
1458
+ this.error(e, {
1459
+ code: "commander.missingArgument"
1460
+ });
1461
+ }
1462
+ optionMissingArgument(t) {
1463
+ const e = `error: option '${t.flags}' argument missing`;
1464
+ this.error(e, {
1465
+ code: "commander.optionMissingArgument"
1466
+ });
1467
+ }
1468
+ missingMandatoryOptionValue(t) {
1469
+ const e = `error: required option '${t.flags}' not specified`;
1470
+ this.error(e, {
1471
+ code: "commander.missingMandatoryOptionValue"
1472
+ });
1473
+ }
1474
+ _conflictingOption(t, e) {
1475
+ const findBestOptionFromValue = (t)=>{
1476
+ const e = t.attributeName();
1477
+ const i = this.getOptionValue(e);
1478
+ const n = this.options.find((t)=>t.negate && e === t.attributeName());
1479
+ const s = this.options.find((t)=>!t.negate && e === t.attributeName());
1480
+ if (n && (void 0 === n.presetArg && false === i || void 0 !== n.presetArg && i === n.presetArg)) return n;
1481
+ return s || t;
1482
+ };
1483
+ const getErrorMessage = (t)=>{
1484
+ const e = findBestOptionFromValue(t);
1485
+ const i = e.attributeName();
1486
+ const n = this.getOptionValueSource(i);
1487
+ if ("env" === n) return `environment variable '${e.envVar}'`;
1488
+ return `option '${e.flags}'`;
1489
+ };
1490
+ const i = `error: ${getErrorMessage(t)} cannot be used with ${getErrorMessage(e)}`;
1491
+ this.error(i, {
1492
+ code: "commander.conflictingOption"
1493
+ });
1494
+ }
1495
+ unknownOption(t) {
1496
+ if (this._allowUnknownOption) return;
1497
+ let e = "";
1498
+ if (t.startsWith("--") && this._showSuggestionAfterError) {
1499
+ let i = [];
1500
+ let n = this;
1501
+ do {
1502
+ const t = n.createHelp().visibleOptions(n).filter((t)=>t.long).map((t)=>t.long);
1503
+ i = i.concat(t);
1504
+ n = n.parent;
1505
+ }while (n && !n._enablePositionalOptions);
1506
+ e = suggestSimilar(t, i);
1141
1507
  }
1142
- class InvalidArgumentError extends CommanderError {
1143
- constructor(t){
1144
- super(1, "commander.invalidArgument", t);
1145
- Error.captureStackTrace(this, this.constructor);
1146
- this.name = this.constructor.name;
1147
- }
1508
+ const i = `error: unknown option '${t}'${e}`;
1509
+ this.error(i, {
1510
+ code: "commander.unknownOption"
1511
+ });
1512
+ }
1513
+ _excessArguments(t) {
1514
+ if (this._allowExcessArguments) return;
1515
+ const e = this.registeredArguments.length;
1516
+ const i = 1 === e ? "" : "s";
1517
+ const n = t.length;
1518
+ const s = this.parent ? ` for '${this.name()}'` : "";
1519
+ const r = t.join(", ");
1520
+ const o = `error: too many arguments${s}. Expected ${e} argument${i} but got ${n}: ${r}.`;
1521
+ this.error(o, {
1522
+ code: "commander.excessArguments"
1523
+ });
1524
+ }
1525
+ unknownCommand() {
1526
+ const t = this.args[0];
1527
+ let e = "";
1528
+ if (this._showSuggestionAfterError) {
1529
+ const i = [];
1530
+ this.createHelp().visibleCommands(this).forEach((t)=>{
1531
+ i.push(t.name());
1532
+ if (t.alias()) i.push(t.alias());
1533
+ });
1534
+ e = suggestSimilar(t, i);
1148
1535
  }
1149
- e.CommanderError = CommanderError;
1150
- e.InvalidArgumentError = InvalidArgumentError;
1151
- },
1152
- 519: (t, e, i)=>{
1153
- const { humanReadableArgName: n } = i(535);
1154
- class Help {
1155
- constructor(){
1156
- this.helpWidth = void 0;
1157
- this.sortSubcommands = false;
1158
- this.sortOptions = false;
1159
- this.showGlobalOptions = false;
1160
- }
1161
- visibleCommands(t) {
1162
- const e = t.commands.filter((t)=>!t._hidden);
1163
- if (t._hasImplicitHelpCommand()) {
1164
- const [, i, n] = t._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/);
1165
- const s = t.createCommand(i).helpOption(false);
1166
- s.description(t._helpCommandDescription);
1167
- if (n) s.arguments(n);
1168
- e.push(s);
1169
- }
1170
- if (this.sortSubcommands) e.sort((t, e)=>t.name().localeCompare(e.name()));
1171
- return e;
1172
- }
1173
- compareOptions(t, e) {
1174
- const getSortKey = (t)=>t.short ? t.short.replace(/^-/, "") : t.long.replace(/^--/, "");
1175
- return getSortKey(t).localeCompare(getSortKey(e));
1176
- }
1177
- visibleOptions(t) {
1178
- const e = t.options.filter((t)=>!t.hidden);
1179
- const i = t._hasHelpOption && t._helpShortFlag && !t._findOption(t._helpShortFlag);
1180
- const n = t._hasHelpOption && !t._findOption(t._helpLongFlag);
1181
- if (i || n) {
1182
- let s;
1183
- s = i ? n ? t.createOption(t._helpFlags, t._helpDescription) : t.createOption(t._helpShortFlag, t._helpDescription) : t.createOption(t._helpLongFlag, t._helpDescription);
1184
- e.push(s);
1185
- }
1186
- if (this.sortOptions) e.sort(this.compareOptions);
1187
- return e;
1188
- }
1189
- visibleGlobalOptions(t) {
1190
- if (!this.showGlobalOptions) return [];
1191
- const e = [];
1192
- for(let i = t.parent; i; i = i.parent){
1193
- const t = i.options.filter((t)=>!t.hidden);
1194
- e.push(...t);
1195
- }
1196
- if (this.sortOptions) e.sort(this.compareOptions);
1197
- return e;
1198
- }
1199
- visibleArguments(t) {
1200
- if (t._argsDescription) t._args.forEach((e)=>{
1201
- e.description = e.description || t._argsDescription[e.name()] || "";
1202
- });
1203
- if (t._args.find((t)=>t.description)) return t._args;
1204
- return [];
1205
- }
1206
- subcommandTerm(t) {
1207
- const e = t._args.map((t)=>n(t)).join(" ");
1208
- return t._name + (t._aliases[0] ? "|" + t._aliases[0] : "") + (t.options.length ? " [options]" : "") + (e ? " " + e : "");
1209
- }
1210
- optionTerm(t) {
1211
- return t.flags;
1212
- }
1213
- argumentTerm(t) {
1214
- return t.name();
1215
- }
1216
- longestSubcommandTermLength(t, e) {
1217
- return e.visibleCommands(t).reduce((t, i)=>Math.max(t, e.subcommandTerm(i).length), 0);
1218
- }
1219
- longestOptionTermLength(t, e) {
1220
- return e.visibleOptions(t).reduce((t, i)=>Math.max(t, e.optionTerm(i).length), 0);
1221
- }
1222
- longestGlobalOptionTermLength(t, e) {
1223
- return e.visibleGlobalOptions(t).reduce((t, i)=>Math.max(t, e.optionTerm(i).length), 0);
1224
- }
1225
- longestArgumentTermLength(t, e) {
1226
- return e.visibleArguments(t).reduce((t, i)=>Math.max(t, e.argumentTerm(i).length), 0);
1227
- }
1228
- commandUsage(t) {
1229
- let e = t._name;
1230
- if (t._aliases[0]) e = e + "|" + t._aliases[0];
1231
- let i = "";
1232
- for(let e = t.parent; e; e = e.parent)i = e.name() + " " + i;
1233
- return i + e + " " + t.usage();
1234
- }
1235
- commandDescription(t) {
1236
- return t.description();
1237
- }
1238
- subcommandDescription(t) {
1239
- return t.summary() || t.description();
1240
- }
1241
- optionDescription(t) {
1242
- const e = [];
1243
- if (t.argChoices) e.push(`choices: ${t.argChoices.map((t)=>JSON.stringify(t)).join(", ")}`);
1244
- if (void 0 !== t.defaultValue) {
1245
- const i = t.required || t.optional || t.isBoolean() && "boolean" == typeof t.defaultValue;
1246
- if (i) e.push(`default: ${t.defaultValueDescription || JSON.stringify(t.defaultValue)}`);
1247
- }
1248
- if (void 0 !== t.presetArg && t.optional) e.push(`preset: ${JSON.stringify(t.presetArg)}`);
1249
- if (void 0 !== t.envVar) e.push(`env: ${t.envVar}`);
1250
- if (e.length > 0) return `${t.description} (${e.join(", ")})`;
1251
- return t.description;
1252
- }
1253
- argumentDescription(t) {
1254
- const e = [];
1255
- if (t.argChoices) e.push(`choices: ${t.argChoices.map((t)=>JSON.stringify(t)).join(", ")}`);
1256
- if (void 0 !== t.defaultValue) e.push(`default: ${t.defaultValueDescription || JSON.stringify(t.defaultValue)}`);
1257
- if (e.length > 0) {
1258
- const i = `(${e.join(", ")})`;
1259
- if (t.description) return `${t.description} ${i}`;
1260
- return i;
1261
- }
1262
- return t.description;
1263
- }
1264
- formatHelp(t, e) {
1265
- const i = e.padWidth(t, e);
1266
- const n = e.helpWidth || 80;
1267
- const s = 2;
1268
- const r = 2;
1269
- function formatItem(t, o) {
1270
- if (o) {
1271
- const a = `${t.padEnd(i + r)}${o}`;
1272
- return e.wrap(a, n - s, i + r);
1273
- }
1274
- return t;
1275
- }
1276
- function formatList(t) {
1277
- return t.join("\n").replace(/^/gm, " ".repeat(s));
1278
- }
1279
- let o = [
1280
- `Usage: ${e.commandUsage(t)}`,
1281
- ""
1282
- ];
1283
- const a = e.commandDescription(t);
1284
- if (a.length > 0) o = o.concat([
1285
- e.wrap(a, n, 0),
1286
- ""
1287
- ]);
1288
- const l = e.visibleArguments(t).map((t)=>formatItem(e.argumentTerm(t), e.argumentDescription(t)));
1289
- if (l.length > 0) o = o.concat([
1290
- "Arguments:",
1291
- formatList(l),
1292
- ""
1293
- ]);
1294
- const h = e.visibleOptions(t).map((t)=>formatItem(e.optionTerm(t), e.optionDescription(t)));
1295
- if (h.length > 0) o = o.concat([
1296
- "Options:",
1297
- formatList(h),
1298
- ""
1299
- ]);
1300
- if (this.showGlobalOptions) {
1301
- const i = e.visibleGlobalOptions(t).map((t)=>formatItem(e.optionTerm(t), e.optionDescription(t)));
1302
- if (i.length > 0) o = o.concat([
1303
- "Global Options:",
1304
- formatList(i),
1305
- ""
1306
- ]);
1307
- }
1308
- const u = e.visibleCommands(t).map((t)=>formatItem(e.subcommandTerm(t), e.subcommandDescription(t)));
1309
- if (u.length > 0) o = o.concat([
1310
- "Commands:",
1311
- formatList(u),
1312
- ""
1313
- ]);
1314
- return o.join("\n");
1315
- }
1316
- padWidth(t, e) {
1317
- return Math.max(e.longestOptionTermLength(t, e), e.longestGlobalOptionTermLength(t, e), e.longestSubcommandTermLength(t, e), e.longestArgumentTermLength(t, e));
1318
- }
1319
- wrap(t, e, i, n = 40) {
1320
- const s = " \\f\\t\\v   -    \ufeff";
1321
- const r = new RegExp(`[\\n][${s}]+`);
1322
- if (t.match(r)) return t;
1323
- const o = e - i;
1324
- if (o < n) return t;
1325
- const a = t.slice(0, i);
1326
- const l = t.slice(i).replace("\r\n", "\n");
1327
- const h = " ".repeat(i);
1328
- const u = "​";
1329
- const c = `\\s${u}`;
1330
- const p = new RegExp(`\n|.{1,${o - 1}}([${c}]|$)|[^${c}]+?([${c}]|$)`, "g");
1331
- const m = l.match(p) || [];
1332
- return a + m.map((t, e)=>{
1333
- if ("\n" === t) return "";
1334
- return (e > 0 ? h : "") + t.trimEnd();
1335
- }).join("\n");
1336
- }
1536
+ const i = `error: unknown command '${t}'${e}`;
1537
+ this.error(i, {
1538
+ code: "commander.unknownCommand"
1539
+ });
1540
+ }
1541
+ version(t, e, i) {
1542
+ if (void 0 === t) return this._version;
1543
+ this._version = t;
1544
+ e = e || "-V, --version";
1545
+ i = i || "output the version number";
1546
+ const n = this.createOption(e, i);
1547
+ this._versionOptionName = n.attributeName();
1548
+ this._registerOption(n);
1549
+ this.on("option:" + n.name(), ()=>{
1550
+ this._outputConfiguration.writeOut(`${t}\n`);
1551
+ this._exit(0, "commander.version", t);
1552
+ });
1553
+ return this;
1554
+ }
1555
+ description(t, e) {
1556
+ if (void 0 === t && void 0 === e) return this._description;
1557
+ this._description = t;
1558
+ if (e) this._argsDescription = e;
1559
+ return this;
1560
+ }
1561
+ summary(t) {
1562
+ if (void 0 === t) return this._summary;
1563
+ this._summary = t;
1564
+ return this;
1565
+ }
1566
+ alias(t) {
1567
+ if (void 0 === t) return this._aliases[0];
1568
+ let e = this;
1569
+ if (0 !== this.commands.length && this.commands[this.commands.length - 1]._executableHandler) e = this.commands[this.commands.length - 1];
1570
+ if (t === e._name) throw new Error("Command alias can't be the same as its name");
1571
+ const i = this.parent?._findCommand(t);
1572
+ if (i) {
1573
+ const e = [
1574
+ i.name()
1575
+ ].concat(i.aliases()).join("|");
1576
+ throw new Error(`cannot add alias '${t}' to command '${this.name()}' as already have command '${e}'`);
1337
1577
  }
1338
- e.Help = Help;
1339
- },
1340
- 437: (t, e, i)=>{
1341
- const { InvalidArgumentError: n } = i(796);
1342
- class Option {
1343
- constructor(t, e){
1344
- this.flags = t;
1345
- this.description = e || "";
1346
- this.required = t.includes("<");
1347
- this.optional = t.includes("[");
1348
- this.variadic = /\w\.\.\.[>\]]$/.test(t);
1349
- this.mandatory = false;
1350
- const i = splitOptionFlags(t);
1351
- this.short = i.shortFlag;
1352
- this.long = i.longFlag;
1353
- this.negate = false;
1354
- if (this.long) this.negate = this.long.startsWith("--no-");
1355
- this.defaultValue = void 0;
1356
- this.defaultValueDescription = void 0;
1357
- this.presetArg = void 0;
1358
- this.envVar = void 0;
1359
- this.parseArg = void 0;
1360
- this.hidden = false;
1361
- this.argChoices = void 0;
1362
- this.conflictsWith = [];
1363
- this.implied = void 0;
1364
- }
1365
- default(t, e) {
1366
- this.defaultValue = t;
1367
- this.defaultValueDescription = e;
1368
- return this;
1369
- }
1370
- preset(t) {
1371
- this.presetArg = t;
1372
- return this;
1373
- }
1374
- conflicts(t) {
1375
- this.conflictsWith = this.conflictsWith.concat(t);
1376
- return this;
1377
- }
1378
- implies(t) {
1379
- this.implied = Object.assign(this.implied || {}, t);
1380
- return this;
1381
- }
1382
- env(t) {
1383
- this.envVar = t;
1384
- return this;
1385
- }
1386
- argParser(t) {
1387
- this.parseArg = t;
1388
- return this;
1389
- }
1390
- makeOptionMandatory(t = true) {
1391
- this.mandatory = !!t;
1392
- return this;
1393
- }
1394
- hideHelp(t = true) {
1395
- this.hidden = !!t;
1396
- return this;
1397
- }
1398
- _concatValue(t, e) {
1399
- if (e === this.defaultValue || !Array.isArray(e)) return [
1400
- t
1401
- ];
1402
- return e.concat(t);
1403
- }
1404
- choices(t) {
1405
- this.argChoices = t.slice();
1406
- this.parseArg = (t, e)=>{
1407
- if (!this.argChoices.includes(t)) throw new n(`Allowed choices are ${this.argChoices.join(", ")}.`);
1408
- if (this.variadic) return this._concatValue(t, e);
1409
- return t;
1410
- };
1411
- return this;
1412
- }
1413
- name() {
1414
- if (this.long) return this.long.replace(/^--/, "");
1415
- return this.short.replace(/^-/, "");
1416
- }
1417
- attributeName() {
1418
- return camelcase(this.name().replace(/^no-/, ""));
1419
- }
1420
- is(t) {
1421
- return this.short === t || this.long === t;
1422
- }
1423
- isBoolean() {
1424
- return !this.required && !this.optional && !this.negate;
1425
- }
1578
+ e._aliases.push(t);
1579
+ return this;
1580
+ }
1581
+ aliases(t) {
1582
+ if (void 0 === t) return this._aliases;
1583
+ t.forEach((t)=>this.alias(t));
1584
+ return this;
1585
+ }
1586
+ usage(t) {
1587
+ if (void 0 === t) {
1588
+ if (this._usage) return this._usage;
1589
+ const t = this.registeredArguments.map((t)=>humanReadableArgName(t));
1590
+ return [].concat(this.options.length || null !== this._helpOption ? "[options]" : [], this.commands.length ? "[command]" : [], this.registeredArguments.length ? t : []).join(" ");
1426
1591
  }
1427
- class DualOptions {
1428
- constructor(t){
1429
- this.positiveOptions = new Map;
1430
- this.negativeOptions = new Map;
1431
- this.dualOptions = new Set;
1432
- t.forEach((t)=>{
1433
- if (t.negate) this.negativeOptions.set(t.attributeName(), t);
1434
- else this.positiveOptions.set(t.attributeName(), t);
1435
- });
1436
- this.negativeOptions.forEach((t, e)=>{
1437
- if (this.positiveOptions.has(e)) this.dualOptions.add(e);
1438
- });
1439
- }
1440
- valueFromOption(t, e) {
1441
- const i = e.attributeName();
1442
- if (!this.dualOptions.has(i)) return true;
1443
- const n = this.negativeOptions.get(i).presetArg;
1444
- const s = void 0 !== n ? n : false;
1445
- return e.negate === (s === t);
1446
- }
1592
+ this._usage = t;
1593
+ return this;
1594
+ }
1595
+ name(t) {
1596
+ if (void 0 === t) return this._name;
1597
+ this._name = t;
1598
+ return this;
1599
+ }
1600
+ helpGroup(t) {
1601
+ if (void 0 === t) return this._helpGroupHeading ?? "";
1602
+ this._helpGroupHeading = t;
1603
+ return this;
1604
+ }
1605
+ commandsGroup(t) {
1606
+ if (void 0 === t) return this._defaultCommandGroup ?? "";
1607
+ this._defaultCommandGroup = t;
1608
+ return this;
1609
+ }
1610
+ optionsGroup(t) {
1611
+ if (void 0 === t) return this._defaultOptionGroup ?? "";
1612
+ this._defaultOptionGroup = t;
1613
+ return this;
1614
+ }
1615
+ _initOptionGroup(t) {
1616
+ if (this._defaultOptionGroup && !t.helpGroupHeading) t.helpGroup(this._defaultOptionGroup);
1617
+ }
1618
+ _initCommandGroup(t) {
1619
+ if (this._defaultCommandGroup && !t.helpGroup()) t.helpGroup(this._defaultCommandGroup);
1620
+ }
1621
+ nameFromFilename(t) {
1622
+ this._name = s.basename(t, s.extname(t));
1623
+ return this;
1624
+ }
1625
+ executableDir(t) {
1626
+ if (void 0 === t) return this._executableDir;
1627
+ this._executableDir = t;
1628
+ return this;
1629
+ }
1630
+ helpInformation(t) {
1631
+ const e = this.createHelp();
1632
+ const i = this._getOutputContext(t);
1633
+ e.prepareContext({
1634
+ error: i.error,
1635
+ helpWidth: i.helpWidth,
1636
+ outputHasColors: i.hasColors
1637
+ });
1638
+ const n = e.formatHelp(this, e);
1639
+ if (i.hasColors) return n;
1640
+ return this._outputConfiguration.stripColor(n);
1641
+ }
1642
+ _getOutputContext(t) {
1643
+ t = t || {};
1644
+ const e = !!t.error;
1645
+ let i;
1646
+ let n;
1647
+ let s;
1648
+ if (e) {
1649
+ i = (t)=>this._outputConfiguration.writeErr(t);
1650
+ n = this._outputConfiguration.getErrHasColors();
1651
+ s = this._outputConfiguration.getErrHelpWidth();
1652
+ } else {
1653
+ i = (t)=>this._outputConfiguration.writeOut(t);
1654
+ n = this._outputConfiguration.getOutHasColors();
1655
+ s = this._outputConfiguration.getOutHelpWidth();
1447
1656
  }
1448
- function camelcase(t) {
1449
- return t.split("-").reduce((t, e)=>t + e[0].toUpperCase() + e.slice(1));
1657
+ const write = (t)=>{
1658
+ if (!n) t = this._outputConfiguration.stripColor(t);
1659
+ return i(t);
1660
+ };
1661
+ return {
1662
+ error: e,
1663
+ write: write,
1664
+ hasColors: n,
1665
+ helpWidth: s
1666
+ };
1667
+ }
1668
+ outputHelp(t) {
1669
+ let e;
1670
+ if ("function" == typeof t) {
1671
+ e = t;
1672
+ t = void 0;
1450
1673
  }
1451
- function splitOptionFlags(t) {
1452
- let e;
1453
- let i;
1454
- const n = t.split(/[ |,]+/);
1455
- if (n.length > 1 && !/^[[<]/.test(n[1])) e = n.shift();
1456
- i = n.shift();
1457
- if (!e && /^-[^-]$/.test(i)) {
1458
- e = i;
1459
- i = void 0;
1460
- }
1461
- return {
1462
- shortFlag: e,
1463
- longFlag: i
1464
- };
1674
+ const i = this._getOutputContext(t);
1675
+ const n = {
1676
+ error: i.error,
1677
+ write: i.write,
1678
+ command: this
1679
+ };
1680
+ this._getCommandAndAncestors().reverse().forEach((t)=>t.emit("beforeAllHelp", n));
1681
+ this.emit("beforeHelp", n);
1682
+ let s = this.helpInformation({
1683
+ error: i.error
1684
+ });
1685
+ if (e) {
1686
+ s = e(s);
1687
+ if ("string" != typeof s && !Buffer.isBuffer(s)) throw new Error("outputHelp callback must return a string or a Buffer");
1465
1688
  }
1466
- e.Option = Option;
1467
- e.splitOptionFlags = splitOptionFlags;
1468
- e.DualOptions = DualOptions;
1469
- },
1470
- 860: (t, e)=>{
1471
- const i = 3;
1472
- function editDistance(t, e) {
1473
- if (Math.abs(t.length - e.length) > i) return Math.max(t.length, e.length);
1474
- const n = [];
1475
- for(let e = 0; e <= t.length; e++)n[e] = [
1476
- e
1477
- ];
1478
- for(let t = 0; t <= e.length; t++)n[0][t] = t;
1479
- for(let i = 1; i <= e.length; i++)for(let s = 1; s <= t.length; s++){
1480
- let r = 1;
1481
- r = t[s - 1] === e[i - 1] ? 0 : 1;
1482
- n[s][i] = Math.min(n[s - 1][i] + 1, n[s][i - 1] + 1, n[s - 1][i - 1] + r);
1483
- if (s > 1 && i > 1 && t[s - 1] === e[i - 2] && t[s - 2] === e[i - 1]) n[s][i] = Math.min(n[s][i], n[s - 2][i - 2] + 1);
1484
- }
1485
- return n[t.length][e.length];
1689
+ i.write(s);
1690
+ if (this._getHelpOption()?.long) this.emit(this._getHelpOption().long);
1691
+ this.emit("afterHelp", n);
1692
+ this._getCommandAndAncestors().forEach((t)=>t.emit("afterAllHelp", n));
1693
+ }
1694
+ helpOption(t, e) {
1695
+ if ("boolean" == typeof t) {
1696
+ if (t) {
1697
+ if (null === this._helpOption) this._helpOption = void 0;
1698
+ if (this._defaultOptionGroup) this._initOptionGroup(this._getHelpOption());
1699
+ } else this._helpOption = null;
1700
+ return this;
1486
1701
  }
1487
- function suggestSimilar(t, e) {
1488
- if (!e || 0 === e.length) return "";
1489
- e = Array.from(new Set(e));
1490
- const n = t.startsWith("--");
1491
- if (n) {
1492
- t = t.slice(2);
1493
- e = e.map((t)=>t.slice(2));
1494
- }
1495
- let s = [];
1496
- let r = i;
1497
- const o = .4;
1498
- e.forEach((e)=>{
1499
- if (e.length <= 1) return;
1500
- const i = editDistance(t, e);
1501
- const n = Math.max(t.length, e.length);
1502
- const a = (n - i) / n;
1503
- if (a > o) {
1504
- if (i < r) {
1505
- r = i;
1506
- s = [
1507
- e
1508
- ];
1509
- } else if (i === r) s.push(e);
1510
- }
1511
- });
1512
- s.sort((t, e)=>t.localeCompare(e));
1513
- if (n) s = s.map((t)=>`--${t}`);
1514
- if (s.length > 1) return `\n(Did you mean one of ${s.join(", ")}?)`;
1515
- if (1 === s.length) return `\n(Did you mean ${s[0]}?)`;
1516
- return "";
1702
+ this._helpOption = this.createOption(t ?? "-h, --help", e ?? "display help for command");
1703
+ if (t || e) this._initOptionGroup(this._helpOption);
1704
+ return this;
1705
+ }
1706
+ _getHelpOption() {
1707
+ if (void 0 === this._helpOption) this.helpOption(void 0, void 0);
1708
+ return this._helpOption;
1709
+ }
1710
+ addHelpOption(t) {
1711
+ this._helpOption = t;
1712
+ this._initOptionGroup(t);
1713
+ return this;
1714
+ }
1715
+ help(t) {
1716
+ this.outputHelp(t);
1717
+ let e = Number(o.exitCode ?? 0);
1718
+ if (0 === e && t && "function" != typeof t && t.error) e = 1;
1719
+ this._exit(e, "commander.help", "(outputHelp)");
1720
+ }
1721
+ addHelpText(t, e) {
1722
+ const i = [
1723
+ "beforeAll",
1724
+ "before",
1725
+ "after",
1726
+ "afterAll"
1727
+ ];
1728
+ if (!i.includes(t)) throw new Error(`Unexpected value for position to addHelpText.\nExpecting one of '${i.join("', '")}'`);
1729
+ const n = `${t}Help`;
1730
+ this.on(n, (t)=>{
1731
+ let i;
1732
+ i = "function" == typeof e ? e({
1733
+ error: t.error,
1734
+ command: t.command
1735
+ }) : e;
1736
+ if (i) t.write(`${i}\n`);
1737
+ });
1738
+ return this;
1739
+ }
1740
+ _outputHelpIfRequested(t) {
1741
+ const e = this._getHelpOption();
1742
+ const i = e && t.find((t)=>e.is(t));
1743
+ if (i) {
1744
+ this.outputHelp();
1745
+ this._exit(0, "commander.helpDisplayed", "(outputHelp)");
1517
1746
  }
1518
- e.suggestSimilar = suggestSimilar;
1519
1747
  }
1520
- };
1521
- var e = {};
1522
- function __nccwpck_require__(i) {
1523
- var n = e[i];
1524
- if (void 0 !== n) return n.exports;
1525
- var s = e[i] = {
1526
- exports: {}
1527
- };
1528
- var r = true;
1529
- try {
1530
- t[i](s, s.exports, __nccwpck_require__);
1531
- r = false;
1532
- } finally{
1533
- if (r) delete e[i];
1534
- }
1535
- return s.exports;
1536
1748
  }
1537
- if (void 0 !== __nccwpck_require__) __nccwpck_require__.ab = __dirname + "/";
1538
- var i = __nccwpck_require__(632);
1539
- module.exports = i;
1749
+ function incrementNodeInspectorPort(t) {
1750
+ return t.map((t)=>{
1751
+ if (!t.startsWith("--inspect")) return t;
1752
+ let e;
1753
+ let i = "127.0.0.1";
1754
+ let n = "9229";
1755
+ let s;
1756
+ if (null !== (s = t.match(/^(--inspect(-brk)?)$/))) e = s[1];
1757
+ else if (null !== (s = t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))) {
1758
+ e = s[1];
1759
+ if (/^\d+$/.test(s[3])) n = s[3];
1760
+ else i = s[3];
1761
+ } else if (null !== (s = t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))) {
1762
+ e = s[1];
1763
+ i = s[3];
1764
+ n = s[4];
1765
+ }
1766
+ if (e && "0" !== n) return `${e}=${i}:${parseInt(n) + 1}`;
1767
+ return t;
1768
+ });
1769
+ }
1770
+ function useColor() {
1771
+ if (o.env.NO_COLOR || "0" === o.env.FORCE_COLOR || "false" === o.env.FORCE_COLOR) return false;
1772
+ if (o.env.FORCE_COLOR || void 0 !== o.env.CLICOLOR_FORCE) return true;
1773
+ }
1774
+ const l = new Command;
1775
+ const createCommand = (t)=>new Command(t);
1776
+ const createOption = (t, e)=>new Option(t, e);
1777
+ const createArgument = (t, e)=>new Argument(t, e);
1778
+ module.exports = e;
1540
1779
  })();