@visulima/vis 2.0.2 → 3.0.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 (306) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/LICENSE.md +5395 -4307
  3. package/dist/bin.js +1 -1
  4. package/dist/binx.js +2 -2
  5. package/dist/config/index.js +1 -1
  6. package/dist/packem_chunks/CONFIG_FILES.js +6 -6
  7. package/dist/packem_chunks/DEFAULT_CLEAN_KEEP.js +1 -1
  8. package/dist/packem_chunks/agent-instructions.js +7 -7
  9. package/dist/packem_chunks/bloom-status.js +2 -2
  10. package/dist/packem_chunks/bloom-sync.js +2 -2
  11. package/dist/packem_chunks/cache-attestation.js +1 -1
  12. package/dist/packem_chunks/catalog-detector.js +1 -1
  13. package/dist/packem_chunks/catalog.js +87 -111
  14. package/dist/packem_chunks/cli-exec.js +1 -1
  15. package/dist/packem_chunks/cli-main.js +192 -217
  16. package/dist/packem_chunks/defineReleasePlugin.js +3 -3
  17. package/dist/packem_chunks/detect.js +8 -3
  18. package/dist/packem_chunks/devtools.js +1 -1
  19. package/dist/packem_chunks/discord.js +4 -4
  20. package/dist/packem_chunks/dispatch.js +4 -4
  21. package/dist/packem_chunks/doctor-probe.js +2 -2
  22. package/dist/packem_chunks/extra-files.js +3 -3
  23. package/dist/packem_chunks/fix.js +11 -11
  24. package/dist/packem_chunks/git.js +3 -3
  25. package/dist/packem_chunks/group-tags.js +1 -1
  26. package/dist/packem_chunks/handler.js +1 -1
  27. package/dist/packem_chunks/handler10.js +5 -5
  28. package/dist/packem_chunks/handler11.js +1 -1
  29. package/dist/packem_chunks/handler12.js +16 -16
  30. package/dist/packem_chunks/handler13.js +5 -5
  31. package/dist/packem_chunks/handler14.js +1 -1
  32. package/dist/packem_chunks/handler15.js +1 -1
  33. package/dist/packem_chunks/handler16.js +1 -1
  34. package/dist/packem_chunks/handler17.js +1 -1
  35. package/dist/packem_chunks/handler18.js +1 -1
  36. package/dist/packem_chunks/handler19.js +5 -5
  37. package/dist/packem_chunks/handler2.js +1 -1
  38. package/dist/packem_chunks/handler20.js +2 -2
  39. package/dist/packem_chunks/handler21.js +2 -2
  40. package/dist/packem_chunks/handler22.js +8 -8
  41. package/dist/packem_chunks/handler23.js +1 -1
  42. package/dist/packem_chunks/handler24.js +1 -1
  43. package/dist/packem_chunks/handler25.js +1 -1
  44. package/dist/packem_chunks/handler26.js +5 -5
  45. package/dist/packem_chunks/handler27.js +1 -1
  46. package/dist/packem_chunks/handler28.js +3 -3
  47. package/dist/packem_chunks/handler29.js +1 -1
  48. package/dist/packem_chunks/handler3.js +2 -2
  49. package/dist/packem_chunks/handler30.js +1 -1
  50. package/dist/packem_chunks/handler31.js +2 -2
  51. package/dist/packem_chunks/handler32.js +2 -2
  52. package/dist/packem_chunks/handler33.js +2 -2
  53. package/dist/packem_chunks/handler34.js +3 -3
  54. package/dist/packem_chunks/handler35.js +5 -5
  55. package/dist/packem_chunks/handler36.js +1 -1
  56. package/dist/packem_chunks/handler37.js +2 -2
  57. package/dist/packem_chunks/handler38.js +6 -6
  58. package/dist/packem_chunks/handler39.js +8 -8
  59. package/dist/packem_chunks/handler4.js +4 -4
  60. package/dist/packem_chunks/handler40.js +34 -34
  61. package/dist/packem_chunks/handler41.js +5 -5
  62. package/dist/packem_chunks/handler42.js +4 -4
  63. package/dist/packem_chunks/handler43.js +3 -3
  64. package/dist/packem_chunks/handler44.js +2 -2
  65. package/dist/packem_chunks/handler45.js +1 -1
  66. package/dist/packem_chunks/handler46.js +1 -1
  67. package/dist/packem_chunks/handler47.js +1 -1
  68. package/dist/packem_chunks/handler48.js +3 -3
  69. package/dist/packem_chunks/handler49.js +1 -1
  70. package/dist/packem_chunks/handler5.js +6 -6
  71. package/dist/packem_chunks/handler50.js +6 -6
  72. package/dist/packem_chunks/handler51.js +13 -13
  73. package/dist/packem_chunks/handler52.js +3 -3
  74. package/dist/packem_chunks/handler53.js +5 -5
  75. package/dist/packem_chunks/handler54.js +2 -2
  76. package/dist/packem_chunks/handler55.js +1 -1
  77. package/dist/packem_chunks/handler56.js +4 -4
  78. package/dist/packem_chunks/handler57.js +5 -5
  79. package/dist/packem_chunks/handler58.js +5 -5
  80. package/dist/packem_chunks/handler59.js +8 -8
  81. package/dist/packem_chunks/handler6.js +7 -7
  82. package/dist/packem_chunks/handler60.js +3 -3
  83. package/dist/packem_chunks/handler61.js +21 -21
  84. package/dist/packem_chunks/handler62.js +12 -12
  85. package/dist/packem_chunks/handler63.js +3 -3
  86. package/dist/packem_chunks/handler64.js +5 -5
  87. package/dist/packem_chunks/handler65.js +8 -8
  88. package/dist/packem_chunks/handler66.js +2 -2
  89. package/dist/packem_chunks/handler67.js +21 -21
  90. package/dist/packem_chunks/handler68.js +21 -21
  91. package/dist/packem_chunks/handler69.js +30 -30
  92. package/dist/packem_chunks/handler7.js +1 -1
  93. package/dist/packem_chunks/handler70.js +9 -9
  94. package/dist/packem_chunks/handler71.js +17 -17
  95. package/dist/packem_chunks/handler72.js +104 -104
  96. package/dist/packem_chunks/handler73.js +20 -20
  97. package/dist/packem_chunks/handler74.js +45 -45
  98. package/dist/packem_chunks/handler75.js +27 -3
  99. package/dist/packem_chunks/handler76.js +3 -27
  100. package/dist/packem_chunks/handler77.js +68 -68
  101. package/dist/packem_chunks/handler78.js +30 -30
  102. package/dist/packem_chunks/handler8.js +1 -1
  103. package/dist/packem_chunks/handler9.js +1 -1
  104. package/dist/packem_chunks/heal-accept.js +9 -9
  105. package/dist/packem_chunks/heal.js +11 -11
  106. package/dist/packem_chunks/help-command.js +7 -63
  107. package/dist/packem_chunks/index.js +1 -1
  108. package/dist/packem_chunks/index2.js +48 -802
  109. package/dist/packem_chunks/index3.js +3 -7
  110. package/dist/packem_chunks/index4.js +803 -134
  111. package/dist/packem_chunks/index5.js +7 -73
  112. package/dist/packem_chunks/index6.js +73 -0
  113. package/dist/packem_chunks/index7.js +135 -0
  114. package/dist/packem_chunks/interface.js +2 -2
  115. package/dist/packem_chunks/keys-refresh.js +4 -4
  116. package/dist/packem_chunks/lean.js +3 -3
  117. package/dist/packem_chunks/list.js +3 -3
  118. package/dist/packem_chunks/loader.js +4 -4
  119. package/dist/packem_chunks/loader2.js +1 -1
  120. package/dist/packem_chunks/orchestrator.js +27 -27
  121. package/dist/packem_chunks/pre-mode.js +2 -2
  122. package/dist/packem_chunks/print-config.js +1 -1
  123. package/dist/packem_chunks/prompts.js +7 -7
  124. package/dist/packem_chunks/prune.js +3 -3
  125. package/dist/packem_chunks/publish-guards.js +1 -1
  126. package/dist/packem_chunks/resolveFormatter.js +5 -5
  127. package/dist/packem_chunks/run.js +1 -1
  128. package/dist/packem_chunks/security.js +1 -1
  129. package/dist/packem_chunks/shell-runner.js +1 -1
  130. package/dist/packem_chunks/slack.js +2 -2
  131. package/dist/packem_chunks/snapshot.js +2 -2
  132. package/dist/packem_chunks/stage-publisher.js +1 -1
  133. package/dist/packem_chunks/staged-registry.js +2 -2
  134. package/dist/packem_chunks/state.js +3 -3
  135. package/dist/packem_chunks/status.js +2 -2
  136. package/dist/packem_chunks/success-walk.js +4 -4
  137. package/dist/packem_chunks/sync.js +2 -2
  138. package/dist/packem_chunks/sync2.js +2 -2
  139. package/dist/packem_chunks/tar.js +3 -3
  140. package/dist/packem_chunks/tripwire.js +2 -2
  141. package/dist/packem_chunks/ts-loader.js +5 -9
  142. package/dist/packem_chunks/verify-lockfile.js +2 -2
  143. package/dist/packem_chunks/version-resolver.js +2 -2
  144. package/dist/packem_chunks/webhook.js +1 -1
  145. package/dist/packem_chunks/workflow-templates.js +5 -5
  146. package/dist/packem_chunks/workspace.js +2 -2
  147. package/dist/packem_shared/ReleaseClient-DAvbxCdo.js +1 -0
  148. package/dist/packem_shared/Table-DyORjLji-CC9cYgCG.js +11 -0
  149. package/dist/packem_shared/{VisReleaseError-DMGRBTNO.js → VisReleaseError-DZtgcKf8.js} +1 -1
  150. package/dist/packem_shared/_commonjsHelpers-DTfxOvZk.js +1 -0
  151. package/dist/packem_shared/advisories-CyDqzi5j.js +1 -0
  152. package/dist/packem_shared/affected-selection-DPQR-Bd3.js +1 -0
  153. package/dist/packem_shared/affected-shas-Dd0P7fGD.js +1 -0
  154. package/dist/packem_shared/ai-analysis-DSQQDFU9.js +68 -0
  155. package/dist/packem_shared/ai-fix-6nXZbecQ.js +43 -0
  156. package/dist/packem_shared/augment-COAiXSIx.js +4 -0
  157. package/dist/packem_shared/bin-wafzkjaB.js +1 -0
  158. package/dist/packem_shared/build-scripts-pdVmqXRm.js +1 -0
  159. package/dist/packem_shared/clean-DRiLimTx.js +1 -0
  160. package/dist/packem_shared/command-runtime-CiLVo4ED.js +1 -0
  161. package/dist/packem_shared/{compile-cache-B_Vf_WxT.js → compile-cache-DoMHRsRZ.js} +1 -1
  162. package/dist/packem_shared/createAdapter-F7GidOzU.js +1 -0
  163. package/dist/packem_shared/createVersionActions-ByaJ1Nbv.js +1 -0
  164. package/dist/packem_shared/cyclonedx-C_ezHg8b.js +4 -0
  165. package/dist/packem_shared/dependency-scan-DBH2Qo4I.js +1 -0
  166. package/dist/packem_shared/docker-Br_iFmI-.js +59 -0
  167. package/dist/packem_shared/failure-log-D92tM0ie.js +2 -0
  168. package/dist/packem_shared/formatBytes-BHAzNIrn-DFIppnY0.js +4 -0
  169. package/dist/packem_shared/getRandomSpinner-4ZEcbTYv-DCyIuj19.js +1 -0
  170. package/dist/packem_shared/giget-CVyyR7x8.js +2 -0
  171. package/dist/packem_shared/glob-Cyk1H9ZL-ox19CSsT.js +1 -0
  172. package/dist/packem_shared/index-B4AjSxHU.js +1 -0
  173. package/dist/packem_shared/index-BisalDCf.js +39 -0
  174. package/dist/packem_shared/{index-BWl4DbMp.js → index-BjdW45xX.js} +1 -1
  175. package/dist/packem_shared/index-DHD8wb6Z.js +22 -0
  176. package/dist/packem_shared/index-DXPSWMbG.js +1 -0
  177. package/dist/packem_shared/index.server-CwSgbeN7.js +2 -0
  178. package/dist/packem_shared/isAccessibleSync-DYKTrrvc-CSnBISfV.js +1 -0
  179. package/dist/packem_shared/license-DvlYdo6T.js +1 -0
  180. package/dist/packem_shared/lifecycle-CfTZQHOG.js +2 -0
  181. package/dist/packem_shared/lockfile-35RFsJDs.js +1 -0
  182. package/dist/packem_shared/lockfile-DhHAaHN5.js +1 -0
  183. package/dist/packem_shared/main-BjJN8kWj.js +1 -0
  184. package/dist/packem_shared/manifests-BNSmpPF_.js +1 -0
  185. package/dist/packem_shared/min-release-age-ChzTC7_I.js +34 -0
  186. package/dist/packem_shared/missing-package-json-C0keIt78.js +1 -0
  187. package/dist/packem_shared/native-config-sync-BSzU4qUO.js +21 -0
  188. package/dist/packem_shared/osv-bloom-5wDAoZ1e.js +2 -0
  189. package/dist/packem_shared/otelPlugin-D8LL2-4L.js +1 -0
  190. package/dist/packem_shared/package-version-BJkg7-6H.js +4 -0
  191. package/dist/packem_shared/packument-C55kVxcQ.js +1 -0
  192. package/dist/packem_shared/{peer-warnings-BXAzXqY3.js → peer-warnings-CmYSxvql.js} +1 -1
  193. package/dist/packem_shared/pm-runner-de-jCq8q.js +1 -0
  194. package/dist/packem_shared/project-name-filter-BeREbPMI.js +7 -0
  195. package/dist/packem_shared/{prompt-BSAy8SMH.js → prompt-DMzaQEVa.js} +1 -1
  196. package/dist/packem_shared/provenance-CvfQEJPQ.js +1 -0
  197. package/dist/packem_shared/readJsonSync-CbryXYxN-B2aSeDpC.js +1 -0
  198. package/dist/packem_shared/registry-keys-DmBrAlhg.js +1 -0
  199. package/dist/packem_shared/resolve-explicit-COmP7eqr.js +5 -0
  200. package/dist/packem_shared/resolve-runtime-C7NBCA1C.js +1 -0
  201. package/dist/packem_shared/run-file-jMngGQhs.js +1 -0
  202. package/dist/packem_shared/runtime-check-BklgEMkC.js +1 -0
  203. package/dist/packem_shared/s1ngularity-RZOHbGrE.js +1 -0
  204. package/dist/packem_shared/scan-progress-C9nMDLis.js +2 -0
  205. package/dist/packem_shared/selectors-B7lSFz7l.js +3 -0
  206. package/dist/packem_shared/signatures-oZ_2IneN.js +2 -0
  207. package/dist/packem_shared/{slug-DoueYuLo.js → slug-OBHcH7wV.js} +1 -1
  208. package/dist/packem_shared/spinner-CbJfWYwB.js +1 -0
  209. package/dist/packem_shared/sticky-comment-DjhyCIZt.js +1 -0
  210. package/dist/packem_shared/subtree-DtmcKAJK.js +2 -0
  211. package/dist/packem_shared/symbols-BXDZ_sKt.js +1 -0
  212. package/dist/packem_shared/tabs-BilwonkM.js +1 -0
  213. package/dist/packem_shared/target-merge-D1xbylFw.js +4 -0
  214. package/dist/packem_shared/target-options-d_rIrLyq.js +1 -0
  215. package/dist/packem_shared/toolchain-DY11tPCw.js +5 -0
  216. package/dist/packem_shared/typosquats-D8ppc5kr.js +1 -0
  217. package/dist/packem_shared/use-measured-height-BPQg2q_p.js +1 -0
  218. package/dist/packem_shared/utils-DQFHJn72.js +1 -0
  219. package/dist/packem_shared/verify-D8wYvB85.js +1 -0
  220. package/dist/packem_shared/vis-update-app-ngwL2mRv.js +1 -0
  221. package/dist/packem_shared/vis-user-error-jhNwmkZp.js +30 -0
  222. package/dist/packem_shared/watch-Dswvj6Zp.js +1 -0
  223. package/dist/packem_shared/watch-loop-COWvvSbR.js +11 -0
  224. package/dist/packem_shared/writeFileSync-DJoHk3Ks-CgQ-VNNT.js +1 -0
  225. package/dist/release/core/changelog/index.d.ts +62 -2
  226. package/dist/release/core/package-managers/index.d.ts +25 -1
  227. package/dist/release/core/package-managers/index.js +1 -1
  228. package/dist/release/core/version-actions/index.d.ts +47 -2
  229. package/dist/release/core/version-actions/index.js +1 -1
  230. package/dist/release/index.d.ts +100 -1
  231. package/dist/release/index.js +1 -1
  232. package/dist/release/plugin-sdk.d.ts +16 -1
  233. package/dist/release/plugin-sdk.js +1 -1
  234. package/dist/release/presets.js +1 -1
  235. package/dist/release/types.js +1 -1
  236. package/dist/runtime/preload.js +1 -1
  237. package/index.d.ts +204 -204
  238. package/index.js +26 -26
  239. package/package.json +13 -13
  240. package/dist/packem_chunks/detect2.js +0 -8
  241. package/dist/packem_chunks/registry.js +0 -48
  242. package/dist/packem_shared/ReleaseClient-BY4OZNCK.js +0 -1
  243. package/dist/packem_shared/_commonjsHelpers-B5Y90VFO.js +0 -1
  244. package/dist/packem_shared/advisories-CCBGdU8U.js +0 -1
  245. package/dist/packem_shared/affected-selection-Dj-ymxhw.js +0 -1
  246. package/dist/packem_shared/affected-shas-PwkVbPch.js +0 -1
  247. package/dist/packem_shared/ai-analysis-bGCAc1jR.js +0 -68
  248. package/dist/packem_shared/ai-fix-DV5-dHBY.js +0 -43
  249. package/dist/packem_shared/augment-24KX2nkI.js +0 -4
  250. package/dist/packem_shared/bin-CtzhnYMp.js +0 -1
  251. package/dist/packem_shared/build-scripts-w4SNeR7D.js +0 -1
  252. package/dist/packem_shared/clean-DWjQl14S.js +0 -1
  253. package/dist/packem_shared/command-runtime-BLFPUYAT.js +0 -1
  254. package/dist/packem_shared/createAdapter-bU4DIP3F.js +0 -1
  255. package/dist/packem_shared/createVersionActions-BK43SNDH.js +0 -1
  256. package/dist/packem_shared/cyclonedx-C4KaVTn1.js +0 -4
  257. package/dist/packem_shared/dependency-scan-D_ona0Qm.js +0 -1
  258. package/dist/packem_shared/docker-DaVs-9wK.js +0 -59
  259. package/dist/packem_shared/en-D3CfXlO7.js +0 -27
  260. package/dist/packem_shared/failure-log-CTneNcio.js +0 -2
  261. package/dist/packem_shared/giget-CAxjpwew.js +0 -2
  262. package/dist/packem_shared/glob-BUjyjdE8-C4M8e02u.js +0 -1
  263. package/dist/packem_shared/index-BAe6e0XE.js +0 -1
  264. package/dist/packem_shared/index-CTMU29dI.js +0 -1
  265. package/dist/packem_shared/index-uBVnF4ji.js +0 -35
  266. package/dist/packem_shared/index.server-CusjRLCh.js +0 -2
  267. package/dist/packem_shared/license-t5KnNX6v.js +0 -1
  268. package/dist/packem_shared/lifecycle-B8A2T3gx.js +0 -2
  269. package/dist/packem_shared/lockfile-Bccery3L.js +0 -1
  270. package/dist/packem_shared/main-D_cam4hv.js +0 -1
  271. package/dist/packem_shared/manifests-BDkwiVbh.js +0 -1
  272. package/dist/packem_shared/min-release-age-OaYpLwux.js +0 -34
  273. package/dist/packem_shared/missing-package-json-BqS-OnKd.js +0 -1
  274. package/dist/packem_shared/native-config-sync-Ds1FtcrM.js +0 -21
  275. package/dist/packem_shared/osv-bloom-pKp7urSB.js +0 -2
  276. package/dist/packem_shared/otelPlugin-DmKDBaPo.js +0 -1
  277. package/dist/packem_shared/package-version-C47v64aB.js +0 -4
  278. package/dist/packem_shared/packument-HBVbyf7x.js +0 -1
  279. package/dist/packem_shared/pm-runner-C6eTANt1.js +0 -1
  280. package/dist/packem_shared/project-name-filter-CJ3XX2TI.js +0 -7
  281. package/dist/packem_shared/provenance-D4Cza8cp.js +0 -1
  282. package/dist/packem_shared/public-api-WqUCiyIe.js +0 -131
  283. package/dist/packem_shared/readJsonSync-DweZd5ZA-0eZh9sGm.js +0 -1
  284. package/dist/packem_shared/registry-keys-C0ez2VND.js +0 -1
  285. package/dist/packem_shared/resolve-explicit-BbT764KS.js +0 -5
  286. package/dist/packem_shared/resolve-runtime-D_vZovbB.js +0 -1
  287. package/dist/packem_shared/run-file-DyPFFN9U.js +0 -1
  288. package/dist/packem_shared/runtime-check-D4um-yQq.js +0 -1
  289. package/dist/packem_shared/s1ngularity-St6dhKiq.js +0 -1
  290. package/dist/packem_shared/scan-progress-q-N2JtIp.js +0 -2
  291. package/dist/packem_shared/selectors-Ce_6UAoY.js +0 -3
  292. package/dist/packem_shared/signatures-Dyeyg1q9.js +0 -2
  293. package/dist/packem_shared/sticky-comment-D6_7-w8T.js +0 -1
  294. package/dist/packem_shared/subtree-DSm0QEoE.js +0 -2
  295. package/dist/packem_shared/symbols-DPTlrJ3B.js +0 -1
  296. package/dist/packem_shared/target-merge-Cfy7c__2.js +0 -11
  297. package/dist/packem_shared/target-options-7XcbqGDe.js +0 -1
  298. package/dist/packem_shared/toolchain-C_pNMBM6.js +0 -5
  299. package/dist/packem_shared/typosquats-xzcAGPiM.js +0 -1
  300. package/dist/packem_shared/use-measured-height-CBjN0fle.js +0 -1
  301. package/dist/packem_shared/utils-CRueU43T.js +0 -1
  302. package/dist/packem_shared/verify-Dve9PQj3.js +0 -1
  303. package/dist/packem_shared/vis-update-app-DMAC2pPf.js +0 -1
  304. package/dist/packem_shared/vis-user-error-xmha3L4n.js +0 -30
  305. package/dist/packem_shared/watch-BXOOX7lx.js +0 -1
  306. package/dist/packem_shared/watch-loop-Q7UpkVbr.js +0 -11
@@ -0,0 +1 @@
1
+ import{createRequire as ae}from"node:module";let le;const ce=t=>(le??=ae(import.meta.url))(t),dt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,pe=t=>{if(typeof dt<"u"&&dt.versions&&dt.versions.node){const[e,n]=dt.versions.node.split(".").map(Number);if(e>22||e===22&&n>=3||e===20&&n>=16)return dt.getBuiltinModule(t)}return ce(t)},{createRequire:he}=pe("node:module");function fe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Lt={},xt,Pt;function vt(){if(Pt)return xt;Pt=1;const t="\\\\/",e=`[^${t}]`,n=0,l=Symbol("unignore"),c="\\.",u="\\+",r="\\?",p="\\/",y="(?=.)",$="[^/]",v=`(?:${p}|$)`,x=`(?:^|${p})`,T=`${c}{1,2}${v}`,E=`(?!${c})`,O=`(?!${x}${T})`,L=`(?!${c}{0,1}${v})`,m=`(?!${T})`,j=`[^.${p}]`,C=`${$}*?`,g={DOT_LITERAL:c,PLUS_LITERAL:u,QMARK_LITERAL:r,SLASH_LITERAL:p,ONE_CHAR:y,QMARK:$,END_ANCHOR:v,DOTS_SLASH:T,NO_DOT:E,NO_DOTS:O,NO_DOT_SLASH:L,NO_DOTS_SLASH:m,QMARK_NO_DOT:j,STAR:C,START_ANCHOR:x,SEP:"/"},d={...g,SLASH_LITERAL:`[${t}]`,QMARK:e,STAR:`${e}*?`,DOTS_SLASH:`${c}{1,2}(?:[${t}]|$)`,NO_DOT:`(?!${c})`,NO_DOTS:`(?!(?:^|[${t}])${c}{1,2}(?:[${t}]|$))`,NO_DOT_SLASH:`(?!${c}{0,1}(?:[${t}]|$))`,NO_DOTS_SLASH:`(?!${c}{1,2}(?:[${t}]|$))`,QMARK_NO_DOT:`[^.${t}]`,START_ANCHOR:`(?:^|[${t}])`,END_ANCHOR:`(?:[${t}]|$)`,SEP:"\\"},s={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};return xt={DEFAULT_MAX_EXTGLOB_RECURSION:n,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:s,UNIGNORE:l,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(b){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${b.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(b){return b===!0?d:g}},xt}var It;function St(){return It||(It=1,(function(t){const{REGEX_BACKSLASH:e,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:l,REGEX_SPECIAL_CHARS_GLOBAL:c}=vt();t.isObject=u=>u!==null&&typeof u=="object"&&!Array.isArray(u),t.hasRegexChars=u=>l.test(u),t.isRegexChar=u=>u.length===1&&t.hasRegexChars(u),t.escapeRegex=u=>u.replace(c,"\\$1"),t.toPosixSlashes=u=>u.replace(e,"/"),t.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){const u=navigator.platform.toLowerCase();return u==="win32"||u==="windows"}return process.platform?process.platform==="win32":!1},t.removeBackslashes=u=>u.replace(n,r=>r==="\\"?"":r),t.escapeLast=(u,r,p)=>{const y=u.lastIndexOf(r,p);return y===-1?u:u[y-1]==="\\"?t.escapeLast(u,r,y-1):`${u.slice(0,y)}\\${u.slice(y)}`},t.removePrefix=(u,r={})=>{let p=u;return p.startsWith("./")&&(p=p.slice(2),r.prefix="./"),p},t.wrapOutput=(u,r={},p={})=>{const y=p.contains?"":"^",$=p.contains?"":"$";let v=`${y}(?:${u})${$}`;return r.negated===!0&&(v=`(?:^(?!${v}).*$)`),v},t.basename=(u,{windows:r}={})=>{const p=u.split(r?/[\\/]/:"/"),y=p[p.length-1];return y===""?p[p.length-2]:y}})(Lt)),Lt}var mt,Nt;function ge(){if(Nt)return mt;Nt=1;const t=St(),{CHAR_ASTERISK:e,CHAR_AT:n,CHAR_BACKWARD_SLASH:l,CHAR_COMMA:c,CHAR_DOT:u,CHAR_EXCLAMATION_MARK:r,CHAR_FORWARD_SLASH:p,CHAR_LEFT_CURLY_BRACE:y,CHAR_LEFT_PARENTHESES:$,CHAR_LEFT_SQUARE_BRACKET:v,CHAR_PLUS:x,CHAR_QUESTION_MARK:T,CHAR_RIGHT_CURLY_BRACE:E,CHAR_RIGHT_PARENTHESES:O,CHAR_RIGHT_SQUARE_BRACKET:L}=vt(),m=C=>C===p||C===l,j=C=>{C.isPrefix!==!0&&(C.depth=C.isGlobstar?1/0:1)};return mt=(C,g)=>{const d=g||{},s=C.length-1,b=d.parts===!0||d.scanToEnd===!0,w=[],R=[],_=[];let A=C,I=-1,M=0,V=0,at=!1,J=!1,K=!1,tt=!1,lt=!1,rt=!1,et=!1,U=!1,st=!1,Q=!1,ct=0,z,S,N={value:"",depth:0,isGlob:!1};const W=()=>I>=s,a=()=>A.charCodeAt(I+1),F=()=>(z=S,A.charCodeAt(++I));for(;I<s;){S=F();let Z;if(S===l){et=N.backslashes=!0,S=F(),S===y&&(rt=!0);continue}if(rt===!0||S===y){for(ct++;W()!==!0&&(S=F());){if(S===l){et=N.backslashes=!0,F();continue}if(S===y){ct++;continue}if(rt!==!0&&S===u&&(S=F())===u){if(at=N.isBrace=!0,K=N.isGlob=!0,Q=!0,b===!0)continue;break}if(rt!==!0&&S===c){if(at=N.isBrace=!0,K=N.isGlob=!0,Q=!0,b===!0)continue;break}if(S===E&&(ct--,ct===0)){rt=!1,at=N.isBrace=!0,Q=!0;break}}if(b===!0)continue;break}if(S===p){if(w.push(I),R.push(N),N={value:"",depth:0,isGlob:!1},Q===!0)continue;if(z===u&&I===M+1){M+=2;continue}V=I+1;continue}if(d.noext!==!0&&(S===x||S===n||S===e||S===T||S===r)&&a()===$){if(K=N.isGlob=!0,tt=N.isExtglob=!0,Q=!0,S===r&&I===M&&(st=!0),b===!0){for(;W()!==!0&&(S=F());){if(S===l){et=N.backslashes=!0,S=F();continue}if(S===O){K=N.isGlob=!0,Q=!0;break}}continue}break}if(S===e){if(z===e&&(lt=N.isGlobstar=!0),K=N.isGlob=!0,Q=!0,b===!0)continue;break}if(S===T){if(K=N.isGlob=!0,Q=!0,b===!0)continue;break}if(S===v){for(;W()!==!0&&(Z=F());){if(Z===l){et=N.backslashes=!0,F();continue}if(Z===L){J=N.isBracket=!0,K=N.isGlob=!0,Q=!0;break}}if(b===!0)continue;break}if(d.nonegate!==!0&&S===r&&I===M){U=N.negated=!0,M++;continue}if(d.noparen!==!0&&S===$){if(K=N.isGlob=!0,b===!0){for(;W()!==!0&&(S=F());){if(S===$){et=N.backslashes=!0,S=F();continue}if(S===O){Q=!0;break}}continue}break}if(K===!0){if(Q=!0,b===!0)continue;break}}d.noext===!0&&(tt=!1,K=!1);let B=A,pt="",o="";M>0&&(pt=A.slice(0,M),A=A.slice(M),V-=M),B&&K===!0&&V>0?(B=A.slice(0,V),o=A.slice(V)):K===!0?(B="",o=A):B=A,B&&B!==""&&B!=="/"&&B!==A&&m(B.charCodeAt(B.length-1))&&(B=B.slice(0,-1)),d.unescape===!0&&(o&&(o=t.removeBackslashes(o)),B&&et===!0&&(B=t.removeBackslashes(B)));const i={prefix:pt,input:C,start:M,base:B,glob:o,isBrace:at,isBracket:J,isGlob:K,isExtglob:tt,isGlobstar:lt,negated:U,negatedExtglob:st};if(d.tokens===!0&&(i.maxDepth=0,m(S)||R.push(N),i.tokens=R),d.parts===!0||d.tokens===!0){let Z;for(let P=0;P<w.length;P++){const nt=Z?Z+1:M,ot=w[P],Y=C.slice(nt,ot);d.tokens&&(P===0&&M!==0?(R[P].isPrefix=!0,R[P].value=pt):R[P].value=Y,j(R[P]),i.maxDepth+=R[P].depth),(P!==0||Y!=="")&&_.push(Y),Z=ot}if(Z&&Z+1<C.length){const P=C.slice(Z+1);_.push(P),d.tokens&&(R[R.length-1].value=P,j(R[R.length-1]),i.maxDepth+=R[R.length-1].depth)}i.slashes=w,i.parts=_}return i},mt}var Ct,Dt;function de(){if(Dt)return Ct;Dt=1;const t=vt(),e=St(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:l,REGEX_NON_SPECIAL_CHARS:c,REGEX_SPECIAL_CHARS_BACKREF:u,REPLACEMENTS:r}=t,p=(g,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...g,d);g.sort();const s=`[${g.join("-")}]`;try{new RegExp(s)}catch{return g.map(b=>e.escapeRegex(b)).join("..")}return s},y=(g,d)=>`Missing ${g}: "${d}" - use "\\\\${d}" to match literal characters`,$=g=>{const d=[];let s=0,b=0,w=0,R="",_=!1;for(const A of g){if(_===!0){R+=A,_=!1;continue}if(A==="\\"){R+=A,_=!0;continue}if(A==='"'){w=w===1?0:1,R+=A;continue}if(w===0){if(A==="[")s++;else if(A==="]"&&s>0)s--;else if(s===0){if(A==="(")b++;else if(A===")"&&b>0)b--;else if(A==="|"&&b===0){d.push(R),R="";continue}}}R+=A}return d.push(R),d},v=g=>{let d=!1;for(const s of g){if(d===!0){d=!1;continue}if(s==="\\"){d=!0;continue}if(/[?*+@!()[\]{}]/.test(s))return!1}return!0},x=g=>{let d=g.trim(),s=!0;for(;s===!0;)s=!1,/^@\([^\\()[\]{}|]+\)$/.test(d)&&(d=d.slice(2,-1),s=!0);if(v(d))return d.replace(/\\(.)/g,"$1")},T=g=>{const d=g.map(x).filter(Boolean);for(let s=0;s<d.length;s++)for(let b=s+1;b<d.length;b++){const w=d[s],R=d[b],_=w[0];if(!(!_||w!==_.repeat(w.length)||R!==_.repeat(R.length))&&(w===R||w.startsWith(R)||R.startsWith(w)))return!0}return!1},E=(g,d=!0)=>{if(g[0]!=="+"&&g[0]!=="*"||g[1]!=="(")return;let s=0,b=0,w=0,R=!1;for(let _=1;_<g.length;_++){const A=g[_];if(R===!0){R=!1;continue}if(A==="\\"){R=!0;continue}if(A==='"'){w=w===1?0:1;continue}if(w!==1){if(A==="["){s++;continue}if(A==="]"&&s>0){s--;continue}if(!(s>0)){if(A==="("){b++;continue}if(A===")"&&(b--,b===0))return d===!0&&_!==g.length-1?void 0:{type:g[0],body:g.slice(2,_),end:_}}}}},O=g=>`${g.length===1?e.escapeRegex(g[0]):`[${g.map(d=>e.escapeRegex(d)).join("")}]`}*`,L=g=>{let d=0;const s=[];for(;d<g.length;){const b=E(g.slice(d),!1);if(!b||b.type!=="*")return;const w=$(b.body).map(_=>_.trim());if(w.length!==1)return;const R=x(w[0]);if(!R||R.length!==1)return;s.push(R),d+=b.end+1}if(!(s.length<1))return s},m=g=>{let d=0,s=g.trim(),b=E(s);for(;b;)d++,s=b.body.trim(),b=E(s);return d},j=(g,d)=>{if(d.maxExtglobRecursion===!1)return{risky:!1};const s=typeof d.maxExtglobRecursion=="number"?d.maxExtglobRecursion:t.DEFAULT_MAX_EXTGLOB_RECURSION,b=$(g).map(A=>A.trim());if(b.length>1&&(b.some(A=>A==="")||b.some(A=>/^[*?]+$/.test(A))||T(b)))return{risky:!0};const w=[];let R=!1,_=!0;for(const A of b){const I=L(A);if(I){R=!0,w.push(...I);continue}const M=x(A);if(M&&M.length===1){w.push(M);continue}if(_=!1,m(A)>s)return{risky:!0}}return R?_?{risky:!0,safeOutput:O([...new Set(w)])}:{risky:!0}:{risky:!1}},C=(g,d)=>{if(typeof g!="string")throw new TypeError("Expected a string");g=r[g]||g;const s={...d},b=typeof s.maxLength=="number"?Math.min(n,s.maxLength):n;let w=g.length;if(w>b)throw new SyntaxError(`Input length: ${w}, exceeds maximum allowed length: ${b}`);const R={type:"bos",value:"",output:s.prepend||""},_=[R],A=s.capture?"":"?:",I=t.globChars(s.windows),M=t.extglobChars(I),{DOT_LITERAL:V,PLUS_LITERAL:at,SLASH_LITERAL:J,ONE_CHAR:K,DOTS_SLASH:tt,NO_DOT:lt,NO_DOT_SLASH:rt,NO_DOTS_SLASH:et,QMARK:U,QMARK_NO_DOT:st,STAR:Q,START_ANCHOR:ct}=I,z=f=>`(${A}(?:(?!${ct}${f.dot?tt:V}).)*?)`,S=s.dot?"":lt,N=s.dot?U:st;let W=s.bash===!0?z(s):Q;s.capture&&(W=`(${W})`),typeof s.noext=="boolean"&&(s.noextglob=s.noext);const a={input:g,index:-1,start:0,dot:s.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:_};g=e.removePrefix(g,a),w=g.length;const F=[],B=[],pt=[];let o=R,i;const Z=()=>a.index===w-1,P=a.peek=(f=1)=>g[a.index+f],nt=a.advance=()=>g[++a.index]||"",ot=()=>g.slice(a.index+1),Y=(f="",G=0)=>{a.consumed+=f,a.index+=G},_t=f=>{a.output+=f.output!=null?f.output:f.value,Y(f.value)},ue=()=>{let f=1;for(;P()==="!"&&(P(2)!=="("||P(3)==="?");)nt(),a.start++,f++;return f%2===0?!1:(a.negated=!0,a.start++,!0)},bt=f=>{a[f]++,pt.push(f)},ht=f=>{a[f]--,pt.pop()},k=f=>{if(o.type==="globstar"){const G=a.braces>0&&(f.type==="comma"||f.type==="brace"),h=f.extglob===!0||F.length&&(f.type==="pipe"||f.type==="paren");f.type!=="slash"&&f.type!=="paren"&&!G&&!h&&(a.output=a.output.slice(0,-o.output.length),o.type="star",o.value="*",o.output=W,a.output+=o.output)}if(F.length&&f.type!=="paren"&&(F[F.length-1].inner+=f.value),(f.value||f.output)&&_t(f),o&&o.type==="text"&&f.type==="text"){o.output=(o.output||o.value)+f.value,o.value+=f.value;return}f.prev=o,_.push(f),o=f},Et=(f,G)=>{const h={...M[G],conditions:1,inner:""};h.prev=o,h.parens=a.parens,h.output=a.output,h.startIndex=a.index,h.tokensIndex=_.length;const H=(s.capture?"(":"")+h.open;bt("parens"),k({type:f,value:G,output:a.output?"":K}),k({type:"paren",extglob:!0,value:nt(),output:H}),F.push(h)},ie=f=>{const G=g.slice(f.startIndex,a.index+1),h=g.slice(f.startIndex+2,a.index),H=j(h,s);if((f.type==="plus"||f.type==="star")&&H.risky){const D=H.safeOutput?(f.output?"":K)+(s.capture?`(${H.safeOutput})`:H.safeOutput):void 0,ut=_[f.tokensIndex];ut.type="text",ut.value=G,ut.output=D||e.escapeRegex(G);for(let it=f.tokensIndex+1;it<_.length;it++)_[it].value="",_[it].output="",delete _[it].suffix;a.output=f.output+ut.output,a.backtrack=!0,k({type:"paren",extglob:!0,value:i,output:""}),ht("parens");return}let q=f.close+(s.capture?")":""),X;if(f.type==="negate"){let D=W;if(f.inner&&f.inner.length>1&&f.inner.includes("/")&&(D=z(s)),(D!==W||Z()||/^\)+$/.test(ot()))&&(q=f.close=`)$))${D}`),f.inner.includes("*")&&(X=ot())&&/^\.[^\\/.]+$/.test(X)){const ut=C(X,{...d,fastpaths:!1}).output;q=f.close=`)${ut})${D})`}f.prev.type==="bos"&&(a.negatedExtglob=!0)}k({type:"paren",extglob:!0,value:i,output:q}),ht("parens")};if(s.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(g)){let f=!1,G=g.replace(u,(h,H,q,X,D,ut)=>X==="\\"?(f=!0,h):X==="?"?H?H+X+(D?U.repeat(D.length):""):ut===0?N+(D?U.repeat(D.length):""):U.repeat(q.length):X==="."?V.repeat(q.length):X==="*"?H?H+X+(D?W:""):W:H?h:`\\${h}`);return f===!0&&(s.unescape===!0?G=G.replace(/\\/g,""):G=G.replace(/\\+/g,h=>h.length%2===0?"\\\\":h?"\\":"")),G===g&&s.contains===!0?(a.output=g,a):(a.output=e.wrapOutput(G,a,d),a)}for(;!Z();){if(i=nt(),i==="\0")continue;if(i==="\\"){const h=P();if(h==="/"&&s.bash!==!0||h==="."||h===";")continue;if(!h){i+="\\",k({type:"text",value:i});continue}const H=/^\\+/.exec(ot());let q=0;if(H&&H[0].length>2&&(q=H[0].length,a.index+=q,q%2!==0&&(i+="\\")),s.unescape===!0?i=nt():i+=nt(),a.brackets===0){k({type:"text",value:i});continue}}if(a.brackets>0&&(i!=="]"||o.value==="["||o.value==="[^")){if(s.posix!==!1&&i===":"){const h=o.value.slice(1);if(h.includes("[")&&(o.posix=!0,h.includes(":"))){const H=o.value.lastIndexOf("["),q=o.value.slice(0,H),X=o.value.slice(H+2),D=l[X];if(D){o.value=q+D,a.backtrack=!0,nt(),!R.output&&_.indexOf(o)===1&&(R.output=K);continue}}}(i==="["&&P()!==":"||i==="-"&&P()==="]")&&(i=`\\${i}`),i==="]"&&(o.value==="["||o.value==="[^")&&(i=`\\${i}`),s.posix===!0&&i==="!"&&o.value==="["&&(i="^"),o.value+=i,_t({value:i});continue}if(a.quotes===1&&i!=='"'){i=e.escapeRegex(i),o.value+=i,_t({value:i});continue}if(i==='"'){a.quotes=a.quotes===1?0:1,s.keepQuotes===!0&&k({type:"text",value:i});continue}if(i==="("){bt("parens"),k({type:"paren",value:i});continue}if(i===")"){if(a.parens===0&&s.strictBrackets===!0)throw new SyntaxError(y("opening","("));const h=F[F.length-1];if(h&&a.parens===h.parens+1){ie(F.pop());continue}k({type:"paren",value:i,output:a.parens?")":"\\)"}),ht("parens");continue}if(i==="["){if(s.nobracket===!0||!ot().includes("]")){if(s.nobracket!==!0&&s.strictBrackets===!0)throw new SyntaxError(y("closing","]"));i=`\\${i}`}else bt("brackets");k({type:"bracket",value:i});continue}if(i==="]"){if(s.nobracket===!0||o&&o.type==="bracket"&&o.value.length===1){k({type:"text",value:i,output:`\\${i}`});continue}if(a.brackets===0){if(s.strictBrackets===!0)throw new SyntaxError(y("opening","["));k({type:"text",value:i,output:`\\${i}`});continue}ht("brackets");const h=o.value.slice(1);if(o.posix!==!0&&h[0]==="^"&&!h.includes("/")&&(i=`/${i}`),o.value+=i,_t({value:i}),s.literalBrackets===!1||e.hasRegexChars(h))continue;const H=e.escapeRegex(o.value);if(a.output=a.output.slice(0,-o.value.length),s.literalBrackets===!0){a.output+=H,o.value=H;continue}o.value=`(${A}${H}|${o.value})`,a.output+=o.value;continue}if(i==="{"&&s.nobrace!==!0){bt("braces");const h={type:"brace",value:i,output:"(",outputIndex:a.output.length,tokensIndex:a.tokens.length};B.push(h),k(h);continue}if(i==="}"){const h=B[B.length-1];if(s.nobrace===!0||!h){k({type:"text",value:i,output:i});continue}let H=")";if(h.dots===!0){const q=_.slice(),X=[];for(let D=q.length-1;D>=0&&(_.pop(),q[D].type!=="brace");D--)q[D].type!=="dots"&&X.unshift(q[D].value);H=p(X,s),a.backtrack=!0}if(h.comma!==!0&&h.dots!==!0){const q=a.output.slice(0,h.outputIndex),X=a.tokens.slice(h.tokensIndex);h.value=h.output="\\{",i=H="\\}",a.output=q;for(const D of X)a.output+=D.output||D.value}k({type:"brace",value:i,output:H}),ht("braces"),B.pop();continue}if(i==="|"){F.length>0&&F[F.length-1].conditions++,k({type:"text",value:i});continue}if(i===","){let h=i;const H=B[B.length-1];H&&pt[pt.length-1]==="braces"&&(H.comma=!0,h="|"),k({type:"comma",value:i,output:h});continue}if(i==="/"){if(o.type==="dot"&&a.index===a.start+1){a.start=a.index+1,a.consumed="",a.output="",_.pop(),o=R;continue}k({type:"slash",value:i,output:J});continue}if(i==="."){if(a.braces>0&&o.type==="dot"){o.value==="."&&(o.output=V);const h=B[B.length-1];o.type="dots",o.output+=i,o.value+=i,h.dots=!0;continue}if(a.braces+a.parens===0&&o.type!=="bos"&&o.type!=="slash"){k({type:"text",value:i,output:V});continue}k({type:"dot",value:i,output:V});continue}if(i==="?"){if(!(o&&o.value==="(")&&s.noextglob!==!0&&P()==="("&&P(2)!=="?"){Et("qmark",i);continue}if(o&&o.type==="paren"){const h=P();let H=i;(o.value==="("&&!/[!=<:]/.test(h)||h==="<"&&!/<([!=]|\w+>)/.test(ot()))&&(H=`\\${i}`),k({type:"text",value:i,output:H});continue}if(s.dot!==!0&&(o.type==="slash"||o.type==="bos")){k({type:"qmark",value:i,output:st});continue}k({type:"qmark",value:i,output:U});continue}if(i==="!"){if(s.noextglob!==!0&&P()==="("&&(P(2)!=="?"||!/[!=<:]/.test(P(3)))){Et("negate",i);continue}if(s.nonegate!==!0&&a.index===0){ue();continue}}if(i==="+"){if(s.noextglob!==!0&&P()==="("&&P(2)!=="?"){Et("plus",i);continue}if(o&&o.value==="("||s.regex===!1){k({type:"plus",value:i,output:at});continue}if(o&&(o.type==="bracket"||o.type==="paren"||o.type==="brace")||a.parens>0){k({type:"plus",value:i});continue}k({type:"plus",value:at});continue}if(i==="@"){if(s.noextglob!==!0&&P()==="("&&P(2)!=="?"){k({type:"at",extglob:!0,value:i,output:""});continue}k({type:"text",value:i});continue}if(i!=="*"){(i==="$"||i==="^")&&(i=`\\${i}`);const h=c.exec(ot());h&&(i+=h[0],a.index+=h[0].length),k({type:"text",value:i});continue}if(o&&(o.type==="globstar"||o.star===!0)){o.type="star",o.star=!0,o.value+=i,o.output=W,a.backtrack=!0,a.globstar=!0,Y(i);continue}let f=ot();if(s.noextglob!==!0&&/^\([^?]/.test(f)){Et("star",i);continue}if(o.type==="star"){if(s.noglobstar===!0){Y(i);continue}const h=o.prev,H=h.prev,q=h.type==="slash"||h.type==="bos",X=H&&(H.type==="star"||H.type==="globstar");if(s.bash===!0&&(!q||f[0]&&f[0]!=="/")){k({type:"star",value:i,output:""});continue}const D=a.braces>0&&(h.type==="comma"||h.type==="brace"),ut=F.length&&(h.type==="pipe"||h.type==="paren");if(!q&&h.type!=="paren"&&!D&&!ut){k({type:"star",value:i,output:""});continue}for(;f.slice(0,3)==="/**";){const it=g[a.index+4];if(it&&it!=="/")break;f=f.slice(3),Y("/**",3)}if(h.type==="bos"&&Z()){o.type="globstar",o.value+=i,o.output=z(s),a.output=o.output,a.globstar=!0,Y(i);continue}if(h.type==="slash"&&h.prev.type!=="bos"&&!X&&Z()){a.output=a.output.slice(0,-(h.output+o.output).length),h.output=`(?:${h.output}`,o.type="globstar",o.output=z(s)+(s.strictSlashes?")":"|$)"),o.value+=i,a.globstar=!0,a.output+=h.output+o.output,Y(i);continue}if(h.type==="slash"&&h.prev.type!=="bos"&&f[0]==="/"){const it=f[1]!==void 0?"|$":"";a.output=a.output.slice(0,-(h.output+o.output).length),h.output=`(?:${h.output}`,o.type="globstar",o.output=`${z(s)}${J}|${J}${it})`,o.value+=i,a.output+=h.output+o.output,a.globstar=!0,Y(i+nt()),k({type:"slash",value:"/",output:""});continue}if(h.type==="bos"&&f[0]==="/"){o.type="globstar",o.value+=i,o.output=`(?:^|${J}|${z(s)}${J})`,a.output=o.output,a.globstar=!0,Y(i+nt()),k({type:"slash",value:"/",output:""});continue}if(D&&f[0]==="/"){o.type="globstar",o.value+=i,o.output=`(?:^|${J}|${z(s)}${J})`,a.output+=o.output,a.globstar=!0,Y(i+nt()),k({type:"slash",value:"/",output:""});continue}a.output=a.output.slice(0,-o.output.length),o.type="globstar",o.output=z(s),o.value+=i,a.output+=o.output,a.globstar=!0,Y(i);continue}const G={type:"star",value:i,output:W};if(s.bash===!0){G.output=".*?",(o.type==="bos"||o.type==="slash")&&(G.output=S+G.output),k(G);continue}if(o&&(o.type==="bracket"||o.type==="paren")&&s.regex===!0){G.output=i,k(G);continue}(a.index===a.start||o.type==="slash"||o.type==="dot")&&(o.type==="dot"?(a.output+=rt,o.output+=rt):s.dot===!0?(a.output+=et,o.output+=et):(a.output+=S,o.output+=S),P()!=="*"&&(a.output+=K,o.output+=K)),k(G)}for(;a.brackets>0;){if(s.strictBrackets===!0)throw new SyntaxError(y("closing","]"));a.output=e.escapeLast(a.output,"["),ht("brackets")}for(;a.parens>0;){if(s.strictBrackets===!0)throw new SyntaxError(y("closing",")"));a.output=e.escapeLast(a.output,"("),ht("parens")}for(;a.braces>0;){if(s.strictBrackets===!0)throw new SyntaxError(y("closing","}"));a.output=e.escapeLast(a.output,"{"),ht("braces")}if(s.strictSlashes!==!0&&(o.type==="star"||o.type==="bracket")&&k({type:"maybe_slash",value:"",output:`${J}?`}),a.backtrack===!0){a.output="";for(const f of a.tokens)a.output+=f.output!=null?f.output:f.value,f.suffix&&(a.output+=f.suffix)}return a};return C.fastpaths=(g,d)=>{const s={...d},b=typeof s.maxLength=="number"?Math.min(n,s.maxLength):n,w=g.length;if(w>b)throw new SyntaxError(`Input length: ${w}, exceeds maximum allowed length: ${b}`);g=r[g]||g;const{DOT_LITERAL:R,SLASH_LITERAL:_,ONE_CHAR:A,DOTS_SLASH:I,NO_DOT:M,NO_DOTS:V,NO_DOTS_SLASH:at,STAR:J,START_ANCHOR:K}=t.globChars(s.windows),tt=s.dot?V:M,lt=s.dot?at:M,rt=s.capture?"":"?:",et={negated:!1,prefix:""};let U=s.bash===!0?".*?":J;s.capture&&(U=`(${U})`);const st=S=>S.noglobstar===!0?U:`(${rt}(?:(?!${K}${S.dot?I:R}).)*?)`,Q=S=>{switch(S){case"*":return`${tt}${A}${U}`;case".*":return`${R}${A}${U}`;case"*.*":return`${tt}${U}${R}${A}${U}`;case"*/*":return`${tt}${U}${_}${A}${lt}${U}`;case"**":return tt+st(s);case"**/*":return`(?:${tt}${st(s)}${_})?${lt}${A}${U}`;case"**/*.*":return`(?:${tt}${st(s)}${_})?${lt}${U}${R}${A}${U}`;case"**/.*":return`(?:${tt}${st(s)}${_})?${R}${A}${U}`;default:{const N=/^(.*?)\.(\w+)$/.exec(S);if(!N)return;const W=Q(N[1]);return W?W+R+N[2]:void 0}}},ct=e.removePrefix(g,et);let z=Q(ct);return z&&s.strictSlashes!==!0&&(z+=`${_}?`),z},Ct=C,Ct}var kt,Bt;function ye(){if(Bt)return kt;Bt=1;const t=ge(),e=de(),n=St(),l=vt(),c=r=>r&&typeof r=="object"&&!Array.isArray(r),u=(r,p,y=!1)=>{if(Array.isArray(r)){const m=r.map(j=>u(j,p,y));return j=>{for(const C of m){const g=C(j);if(g)return g}return!1}}const $=c(r)&&r.tokens&&r.input;if(r===""||typeof r!="string"&&!$)throw new TypeError("Expected pattern to be a non-empty string");const v=p||{},x=v.windows,T=$?u.compileRe(r,p):u.makeRe(r,p,!1,!0),E=T.state;delete T.state;let O=()=>!1;if(v.ignore){const m={...p,ignore:null,onMatch:null,onResult:null};O=u(v.ignore,m,y)}const L=(m,j=!1)=>{const{isMatch:C,match:g,output:d}=u.test(m,T,p,{glob:r,posix:x}),s={glob:r,state:E,regex:T,posix:x,input:m,output:d,match:g,isMatch:C};if(typeof v.onResult=="function"&&v.onResult(s),C===!1)return s.isMatch=!1,j?s:!1;t:if(O(m)){if(typeof v.onIgnore=="function"&&v.onIgnore(s)===l.UNIGNORE){s.isMatch=!0;break t}return s.isMatch=!1,j?s:!1}return typeof v.onMatch=="function"&&v.onMatch(s),j?s:!0};return y&&(L.state=E),L};return u.test=(r,p,y,{glob:$,posix:v}={})=>{if(typeof r!="string")throw new TypeError("Expected input to be a string");if(r==="")return{isMatch:!1,output:""};const x=y||{},T=x.format||(v?n.toPosixSlashes:null);let E=r===$,O=E&&T?T(r):r;return E===!1&&(O=T?T(r):r,E=O===$),(E===!1||x.capture===!0)&&(x.matchBase===!0||x.basename===!0?E=u.matchBase(r,p,y,v):E=p.exec(O)),{isMatch:!!E,match:E,output:O}},u.matchBase=(r,p,y,$=y&&y.windows)=>(p instanceof RegExp?p:u.makeRe(p,y)).test(n.basename(r,{windows:$})),u.isMatch=(r,p,y)=>u(p,y)(r),u.parse=(r,p)=>Array.isArray(r)?r.map(y=>u.parse(y,p)):e(r,{...p,fastpaths:!1}),u.scan=(r,p)=>t(r,p),u.compileRe=(r,p,y=!1,$=!1)=>{if(y===!0)return r.output;const v=p||{},x=v.contains?"":"^",T=v.contains?"":"$";let E=`${x}(?:${r.output})${T}`;r&&r.negated===!0&&(E=`^(?!${E}).*$`);const O=u.toRegex(E,p);return $===!0&&(O.state=r),O},u.makeRe=(r,p={},y=!1,$=!1)=>{if(!r||typeof r!="string")throw new TypeError("Expected a non-empty string");let v={negated:!1,fastpaths:!0};return p.fastpaths!==!1&&(r[0]==="."||r[0]==="*")&&(v.output=e.fastpaths(r,p)),v.output||(v=e(r,p)),u.compileRe(v,p,y,$)},u.toRegex=(r,p)=>{try{const y=p||{};return new RegExp(r,y.flags||(y.nocase?"i":""))}catch(y){if(p&&p.debug===!0)throw y;return/$^/}},u.constants=l,kt=u,kt}var wt,Mt;function Ae(){if(Mt)return wt;Mt=1;const t=ye(),e=St();function n(l,c,u=!1){return c&&(c.windows===null||c.windows===void 0)&&(c={...c,windows:e.isWindows()}),t(l,c,u)}return Object.assign(n,t),wt=n,wt}var Re=Ae();const ft=fe(Re);let _e;const be=t=>(_e??=he(import.meta.url))(t),yt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Rt=t=>{if(typeof yt<"u"&&yt.versions&&yt.versions.node){const[e,n]=yt.versions.node.split(".").map(Number);if(e>22||e===22&&n>=3||e===20&&n>=16)return yt.getBuiltinModule(t)}return be(t)},Ft=Rt("fs"),Ee={...Ft,default:Ft},{statSync:ve,stat:Se,realpathSync:$e,realpath:xe,readdirSync:me,readdir:Ce}=Rt("fs"),{sep:Wt,basename:ke,dirname:Tt,resolve:Qt,normalize:we,relative:He,posix:gt,isAbsolute:Oe}=Rt("path"),{fileURLToPath:Te}=Rt("url"),{createRequire:Le}=Rt("module");var Gt=Le(import.meta.url);function Pe(t){let e=we(t);return e.length>1&&e[e.length-1]===Wt&&(e=e.substring(0,e.length-1)),e}const Ie=/[\\/]/g;function zt(t,e){return t.replace(Ie,e)}const Ne=/^[a-z]:[\\/]$/i;function De(t){return t==="/"||Ne.test(t)}function Ht(t,e){const{resolvePaths:n,normalizePath:l,pathSeparator:c}=e,u=process.platform==="win32"&&t.includes("/")||t.startsWith(".");if(n&&(t=Qt(t)),(l||u)&&(t=Pe(t)),t===".")return"";const r=t[t.length-1]!==c;return zt(r?t+c:t,c)}function Zt(t,e){return e+t}function Be(t,e){return function(n,l){return l.startsWith(t)?l.slice(t.length)+n:zt(He(t,l),e.pathSeparator)+e.pathSeparator+n}}function Me(t){return t}function Fe(t,e,n){return e+t+n}function Ge(t,e){const{relativePaths:n,includeBasePath:l}=e;return n&&t?Be(t,e):l?Zt:Me}function Ue(t){return function(e,n){n.push(e.substring(t.length)||".")}}function qe(t){return function(e,n,l){const c=e.substring(t.length)||".";l.every(u=>u(c,!0))&&n.push(c)}}const Ke=(t,e)=>{e.push(t||".")},Xe=(t,e,n)=>{const l=t||".";n.every(c=>c(l,!0))&&e.push(l)},je=()=>{};function We(t,e){const{includeDirs:n,filters:l,relativePaths:c}=e;return n?c?l&&l.length?qe(t):Ue(t):l&&l.length?Xe:Ke:je}const Qe=(t,e,n,l)=>{l.every(c=>c(t,!1))&&n.files++},ze=(t,e,n,l)=>{l.every(c=>c(t,!1))&&e.push(t)},Ze=(t,e,n,l)=>{n.files++},Ye=(t,e)=>{e.push(t)},Ve=()=>{};function Je(t){const{excludeFiles:e,filters:n,onlyCounts:l}=t;return e?Ve:n&&n.length?l?Qe:ze:l?Ze:Ye}const tn=t=>t,en=()=>[""].slice(0,0);function nn(t){return t.group?en:tn}const rn=(t,e,n)=>{t.push({directory:e,files:n,dir:e})},sn=()=>{};function on(t){return t.group?rn:sn}const un=function(t,e,n){const{queue:l,fs:c,options:{suppressErrors:u}}=e;l.enqueue(),c.realpath(t,(r,p)=>{if(r)return l.dequeue(u?null:r,e);c.stat(p,(y,$)=>{if(y)return l.dequeue(u?null:y,e);if($.isDirectory()&&Yt(t,p,e))return l.dequeue(null,e);n($,p),l.dequeue(null,e)})})},an=function(t,e,n){const{queue:l,fs:c,options:{suppressErrors:u}}=e;l.enqueue();try{const r=c.realpathSync(t),p=c.statSync(r);if(p.isDirectory()&&Yt(t,r,e))return;n(p,r)}catch(r){if(!u)throw r}};function ln(t,e){return!t.resolveSymlinks||t.excludeSymlinks?null:e?an:un}function Yt(t,e,n){if(n.options.useRealPaths)return cn(e,n);let l=Tt(t),c=1;for(;l!==n.root&&c<2;){const u=n.symlinks.get(l);u&&(u===e||u.startsWith(e)||e.startsWith(u))?c++:l=Tt(l)}return n.symlinks.set(t,e),c>1}function cn(t,e){return e.visited.includes(t+e.options.pathSeparator)}const pn=t=>t.counts,hn=t=>t.groups,fn=t=>t.paths,gn=t=>t.paths.slice(0,t.options.maxFiles),dn=(t,e,n)=>($t(e,n,t.counts,t.options.suppressErrors),null),yn=(t,e,n)=>($t(e,n,t.paths,t.options.suppressErrors),null),An=(t,e,n)=>($t(e,n,t.paths.slice(0,t.options.maxFiles),t.options.suppressErrors),null),Rn=(t,e,n)=>($t(e,n,t.groups,t.options.suppressErrors),null);function $t(t,e,n,l){e(t&&!l?t:null,n)}function _n(t,e){const{onlyCounts:n,group:l,maxFiles:c}=t;return n?e?pn:dn:l?e?hn:Rn:c?e?gn:An:e?fn:yn}const Vt={withFileTypes:!0},bn=(t,e,n,l,c)=>{if(t.queue.enqueue(),l<0)return t.queue.dequeue(null,t);const{fs:u}=t;t.visited.push(e),t.counts.directories++,u.readdir(e||".",Vt,(r,p=[])=>{c(p,n,l),t.queue.dequeue(t.options.suppressErrors?null:r,t)})},En=(t,e,n,l,c)=>{const{fs:u}=t;if(l<0)return;t.visited.push(e),t.counts.directories++;let r=[];try{r=u.readdirSync(e||".",Vt)}catch(p){if(!t.options.suppressErrors)throw p}c(r,n,l)};function vn(t){return t?En:bn}var Sn=class{count=0;constructor(t){this.onQueueEmpty=t}enqueue(){return this.count++,this.count}dequeue(t,e){this.onQueueEmpty&&(--this.count<=0||t)&&(this.onQueueEmpty(t,e),t&&(e.controller.abort(),this.onQueueEmpty=void 0))}},$n=class{_files=0;_directories=0;set files(t){this._files=t}get files(){return this._files}set directories(t){this._directories=t}get directories(){return this._directories}get dirs(){return this._directories}},xn=class{aborted=!1;abort(){this.aborted=!0}},Jt=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(t,e,n){this.isSynchronous=!n,this.callbackInvoker=_n(e,this.isSynchronous),this.root=Ht(t,e),this.state={root:De(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new $n,options:e,queue:new Sn((l,c)=>this.callbackInvoker(c,l,n)),symlinks:new Map,visited:[""].slice(0,0),controller:new xn,fs:e.fs||Ee},this.joinPath=Ge(this.root,e),this.pushDirectory=We(this.root,e),this.pushFile=Je(e),this.getArray=nn(e),this.groupFiles=on(e),this.resolveSymlink=ln(e,this.isSynchronous),this.walkDirectory=vn(this.isSynchronous)}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}walk=(t,e,n)=>{const{paths:l,options:{filters:c,resolveSymlinks:u,excludeSymlinks:r,exclude:p,maxFiles:y,signal:$,useRealPaths:v,pathSeparator:x},controller:T}=this.state;if(T.aborted||$&&$.aborted||y&&l.length>y)return;const E=this.getArray(this.state.paths);for(let O=0;O<t.length;++O){const L=t[O];if(L.isFile()||L.isSymbolicLink()&&!u&&!r){const m=this.joinPath(L.name,e);this.pushFile(m,E,this.state.counts,c)}else if(L.isDirectory()){let m=Fe(L.name,e,this.state.options.pathSeparator);if(p&&p(L.name,m))continue;this.pushDirectory(m,l,c),this.walkDirectory(this.state,m,m,n-1,this.walk)}else if(this.resolveSymlink&&L.isSymbolicLink()){let m=Zt(L.name,e);this.resolveSymlink(m,this.state,(j,C)=>{if(j.isDirectory()){if(C=Ht(C,this.state.options),p&&p(L.name,v?C:m+x))return;this.walkDirectory(this.state,C,v?C:m+x,n-1,this.walk)}else{C=v?C:m;const g=ke(C),d=Ht(Tt(C),this.state.options);C=this.joinPath(g,d),this.pushFile(C,E,this.state.counts,c)}})}}this.groupFiles(this.state.groups,e,E)}};function mn(t,e){return new Promise((n,l)=>{te(t,e,(c,u)=>{if(c)return l(c);n(u)})})}function te(t,e,n){new Jt(t,e,n).start()}function Cn(t,e){return new Jt(t,e).start()}var Ut=class{constructor(t,e){this.root=t,this.options=e}withPromise(){return mn(this.root,this.options)}withCallback(t){te(this.root,this.options,t)}sync(){return Cn(this.root,this.options)}};let ee=null;try{Gt.resolve("picomatch"),ee=Gt("picomatch")}catch{}var kn=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:Wt,filters:[]};globFunction;constructor(t){this.options={...this.options,...t},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(t){return this.options.pathSeparator=t,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(t){return this.options.maxDepth=t,this}withMaxFiles(t){return this.options.maxFiles=t,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:t=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=t,this.withFullPaths()}withAbortSignal(t){return this.options.signal=t,this}normalize(){return this.options.normalizePath=!0,this}filter(t){return this.options.filters.push(t),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(t){return this.options.exclude=t,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(t){return new Ut(t||".",this.options)}withGlobFunction(t){return this.globFunction=t,this}crawlWithOptions(t,e){return this.options={...this.options,...e},new Ut(t||".",this.options)}glob(...t){return this.globFunction?this.globWithOptions(t):this.globWithOptions(t,{dot:!0})}globWithOptions(t,...e){const n=this.globFunction||ee;if(!n)throw new Error("Please specify a glob function to use glob matching.");var l=this.globCache[t.join("\0")];return l||(l=n(t,...e),this.globCache[t.join("\0")]=l),this.options.filters.push(c=>l(c)),this}};const wn=Array.isArray,ne=/\\/g,Hn=/^[A-Za-z]:$/,re=process.platform==="win32",On=/^(\/?\.\.)+$/;function qt(t,e={}){const n=t.length,l=Array(n),c=Array(n);let u,r;for(u=0;u<n;u++){const p=se(t[u]);l[u]=p;const y=p.length,$=Array(y);for(r=0;r<y;r++)$[r]=ft(p[r],e);c[u]=$}return p=>{const y=p.split("/");if(y[0]===".."&&On.test(p))return!0;for(u=0;u<n;u++){const $=l[u],v=c[u],x=y.length,T=Math.min(x,$.length);for(r=0;r<T;){const E=$[r];if(E.includes("/"))return!0;if(!v[r](y[r]))break;if(!e.noglobstar&&E==="**")return!0;r++}if(r===x)return!0}return!1}}const Tn=/^[A-Z]:\/$/i,Ln=re?t=>Tn.test(t):t=>t==="/";function Kt(t,e,n){if(t===e||e.startsWith(`${t}/`)){if(n){const c=t.length+ +!Ln(t);return(u,r)=>u.slice(c,r?-1:void 0)||"."}const l=e.slice(t.length+1);return l?(c,u)=>{if(c===".")return l;const r=`${l}/${c}`;return u?r.slice(0,-1):r}:(c,u)=>u&&c!=="."?c.slice(0,-1):c}return n?l=>gt.relative(t,l)||".":l=>gt.relative(t,`${e}/${l}`)||"."}function Pn(t,e){if(e.startsWith(`${t}/`)){const n=e.slice(t.length+1);return l=>`${n}/${l}`}return n=>{const l=gt.relative(t,`${e}/${n}`);return n[n.length-1]==="/"&&l!==""?`${l}/`:l||"."}}function Xt(t){return t.replace(Hn,e=>`${e}/`)}const In={parts:!0};function se(t){var e;const n=ft.scan(t,In);return!((e=n.parts)===null||e===void 0)&&e.length?n.parts:[t]}const Nn=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,Dn=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,Bn=t=>t.replace(Nn,"\\$&"),Mn=t=>t.replace(Dn,"\\$&"),Fn=re?Mn:Bn;function Gn(t,e){const n=ft.scan(t);return n.isGlob||n.negated}function At(...t){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...t)}function oe(t){return typeof t=="string"?[t]:t??[]}const Un=/^(\/?\.\.)+/,qn=/\\(?=[()[\]{}!*+?@|])/g;function Ot(t,e,n,l){var c;const u=e.cwd;let r=t;t[t.length-1]==="/"&&(r=t.slice(0,-1));const p=r.lastIndexOf("/"),y=(p===-1?r:r.slice(p+1)).startsWith("!(");r[r.length-1]!=="*"&&!y&&e.expandDirectories&&(r+="/**");const $=Fn(u);r=Oe(r.replace(qn,""))?gt.relative($,r):gt.normalize(r);const v=(c=Un.exec(r))===null||c===void 0?void 0:c[0],x=se(r);if(v){const E=(v.length+1)/3;let O=0;const L=$.split("/");for(;O<E&&x[O+E]===L[L.length+O-E];)r=r.slice(0,(E-O-1)*3)+r.slice((E-O)*3+x[O+E].length+1)||".",O++;const m=gt.join(u,v.slice(O*3));m[0]!=="."&&n.root.length>m.length&&(n.root=Xt(m),n.depthOffset=-E+O)}if(!l&&n.depthOffset>=0){var T;(T=n.commonPath)!==null&&T!==void 0||(n.commonPath=x);const E=[],O=Math.min(n.commonPath.length,x.length);for(let L=0;L<O;L++){const m=x[L];if(m==="**"&&!x[L+1]){E.pop();break}if(L===x.length-1||m!==n.commonPath[L]||Gn(m))break;E.push(m)}n.depthOffset=E.length,n.commonPath=E,n.root=Xt(E.length>0?gt.join(u,...E):u)}return r}function Kn(t,e,n){const l=[],c=[],u=[];for(const r of t.ignore)r&&(r[0]!=="!"||r[1]==="("?c.push(Ot(r,t,n,!0)):u.push(r.slice(1)));for(const r of e)r&&(r[0]!=="!"||r[1]==="("?l.push(Ot(r,t,n,!1)):(r[1]!=="!"||r[2]==="(")&&c.push(Ot(r.slice(1),t,n,!0)));return{match:l,ignore:c,unignore:u}}function Xn(t,e){const n=t.cwd,l={root:n,depthOffset:0},c=Kn(t,e,l);t.debug&&At("internal processing patterns:",c);const{absolute:u,caseSensitiveMatch:r,debug:p,dot:y,followSymbolicLinks:$,onlyDirectories:v}=t,x=l.root.replace(ne,""),T={dot:y,nobrace:t.braceExpansion===!1,nocase:!r,noextglob:t.extglob===!1,noglobstar:t.globstar===!1,posix:!0},E=c.unignore.length>0,O=E?ft(c.unignore,T):void 0,L=E?qt(c.unignore,T):void 0,m=ft(c.match,{...T,ignore:c.ignore,onIgnore:O?_=>O(_.output)&&ft.constants.UNIGNORE:void 0}),j=ft(c.ignore,T),C=qt(c.match,T),g=Kt(n,x,u),d=u?g:Kt(n,x,!0),s=c.match.length>0&&c.match.every(_=>_==="**"||_==="**/*"),b=c.ignore.length>0||E||!s?(_,A)=>{const I=d(A,!0);return I==="."||L&&L(I)?!1:!C(I)||j(I)}:void 0;let w;t.deep!==void 0&&(w=Math.round(t.deep-l.depthOffset));const R=new kn({filters:[p?(_,A)=>{const I=g(_,A),M=m(I);return M&&At(`matched ${I}`),M}:(_,A)=>{const I=g(_,A);return m(I)}],exclude:p&&b?(_,A)=>{const I=b(_,A);return At(`${I?"skipped":"crawling"} ${A}`),I}:b,fs:t.fs,pathSeparator:"/",relativePaths:!u,resolvePaths:u,includeBasePath:u,resolveSymlinks:$,excludeSymlinks:!$,excludeFiles:v,includeDirs:v||!t.onlyFiles,maxDepth:w,signal:t.signal}).crawl(x);return t.debug&&At("internal properties:",{...l,root:x}),[R,n!==x&&!u&&Pn(n,x)]}function jn(t,e){if(e)for(let n=t.length-1;n>=0;n--)t[n]=e(t[n]);return t}const jt={caseSensitiveMatch:!0,debug:!!process.env.TINYGLOBBY_DEBUG,expandDirectories:!0,followSymbolicLinks:!0,onlyFiles:!0};function Wn(t){const e=Object.assign({},t);for(const n in jt)e[n]===void 0&&Object.assign(e,{[n]:jt[n]});return e.cwd=(e.cwd instanceof URL?Te(e.cwd):Qt(e.cwd||process.cwd())).replace(ne,"/"),e.ignore=oe(e.ignore),e.fs&&(e.fs={readdir:e.fs.readdir||Ce,readdirSync:e.fs.readdirSync||me,realpath:e.fs.realpath||xe,realpathSync:e.fs.realpathSync||$e,stat:e.fs.stat||Se,statSync:e.fs.statSync||ve}),e.debug&&At("globbing with options:",e),e}function Qn(t,e={}){var n;if(t&&e?.patterns)throw new Error("Cannot pass patterns as both an argument and an option");const l=wn(t)||typeof t=="string",c=oe((n=l?t:t.patterns)!==null&&n!==void 0?n:"**/*"),u=Wn(l?e:t);return c.length>0?Xn(u,c):[]}async function zn(t,e){const[n,l]=Qn(t,e);return n?jn(await n.withPromise(),l):[]}const Yn=async(t,e)=>await zn(t,e);export{Yn as l};
@@ -0,0 +1 @@
1
+ import{g as _r}from"./_commonjsHelpers-DTfxOvZk.js";import{b as j,c as H,d as U,e as Ge,f as yr,g as Lr,r as xr,a as jr,h as Ar}from"./clean-DRiLimTx.js";var ee,Ue;function Ir(){if(Ue)return ee;Ue=1;const t=j();return ee=(r,e,n,l,s)=>{typeof n=="string"&&(s=l,l=n,n=void 0);try{return new t(r instanceof t?r.version:r,n).inc(e,l,s).version}catch{return null}},ee}var re,Xe;function Nr(){if(Xe)return re;Xe=1;const t=H();return re=(r,e)=>{const n=t(r,null,!0),l=t(e,null,!0),s=n.compare(l);if(s===0)return null;const o=s>0,R=o?n:l,h=o?l:n,i=!!R.prerelease.length;if(!!h.prerelease.length&&!i){if(!h.patch&&!h.minor)return"major";if(h.compareMain(R)===0)return h.minor&&!h.patch?"minor":"patch"}const p=i?"pre":"";return n.major!==l.major?p+"major":n.minor!==l.minor?p+"minor":n.patch!==l.patch?p+"patch":"prerelease"},re}var te,ke;function Gr(){if(ke)return te;ke=1;const t=j();return te=(r,e)=>new t(r,e).major,te}var se,ze;function Dr(){if(ze)return se;ze=1;const t=j();return se=(r,e)=>new t(r,e).minor,se}var ne,Fe;function Br(){if(Fe)return ne;Fe=1;const t=j();return ne=(r,e)=>new t(r,e).patch,ne}var ie,Ke;function Wr(){if(Ke)return ie;Ke=1;const t=H();return ie=(r,e)=>{const n=t(r,e);return n&&n.prerelease.length?n.prerelease:null},ie}var ae,be;function G(){if(be)return ae;be=1;const t=j();return ae=(r,e,n)=>new t(r,n).compare(new t(e,n)),ae}var oe,Je;function Yr(){if(Je)return oe;Je=1;const t=G();return oe=(r,e,n)=>t(e,r,n),oe}var ce,Qe;function Hr(){if(Qe)return ce;Qe=1;const t=G();return ce=(r,e)=>t(r,e,!0),ce}var ue,Ze;function De(){if(Ze)return ue;Ze=1;const t=j();return ue=(r,e,n)=>{const l=new t(r,n),s=new t(e,n);return l.compare(s)||l.compareBuild(s)},ue}var le,Me;function Ur(){if(Me)return le;Me=1;const t=De();return le=(r,e)=>r.sort((n,l)=>t(n,l,e)),le}var fe,er;function Xr(){if(er)return fe;er=1;const t=De();return fe=(r,e)=>r.sort((n,l)=>t(l,n,e)),fe}var he,rr;function X(){if(rr)return he;rr=1;const t=G();return he=(r,e,n)=>t(r,e,n)>0,he}var me,tr;function Be(){if(tr)return me;tr=1;const t=G();return me=(r,e,n)=>t(r,e,n)<0,me}var pe,sr;function Pr(){if(sr)return pe;sr=1;const t=G();return pe=(r,e,n)=>t(r,e,n)===0,pe}var ve,nr;function Or(){if(nr)return ve;nr=1;const t=G();return ve=(r,e,n)=>t(r,e,n)!==0,ve}var de,ir;function We(){if(ir)return de;ir=1;const t=G();return de=(r,e,n)=>t(r,e,n)>=0,de}var Re,ar;function Ye(){if(ar)return Re;ar=1;const t=G();return Re=(r,e,n)=>t(r,e,n)<=0,Re}var $e,or;function Vr(){if(or)return $e;or=1;const t=Pr(),f=Or(),r=X(),e=We(),n=Be(),l=Ye();return $e=(o,R,h,i)=>{switch(R){case"===":return typeof o=="object"&&(o=o.version),typeof h=="object"&&(h=h.version),o===h;case"!==":return typeof o=="object"&&(o=o.version),typeof h=="object"&&(h=h.version),o!==h;case"":case"=":case"==":return t(o,h,i);case"!=":return f(o,h,i);case">":return r(o,h,i);case">=":return e(o,h,i);case"<":return n(o,h,i);case"<=":return l(o,h,i);default:throw new TypeError(`Invalid operator: ${R}`)}},$e}var qe,cr;function kr(){if(cr)return qe;cr=1;const t=j(),f=H(),{safeRe:r,t:e}=U();return qe=(l,s)=>{if(l instanceof t)return l;if(typeof l=="number"&&(l=String(l)),typeof l!="string")return null;s=s||{};let o=null;if(!s.rtl)o=l.match(s.includePrerelease?r[e.COERCEFULL]:r[e.COERCE]);else{const q=s.includePrerelease?r[e.COERCERTLFULL]:r[e.COERCERTL];let L;for(;(L=q.exec(l))&&(!o||o.index+o[0].length!==l.length);)(!o||L.index+L[0].length!==o.index+o[0].length)&&(o=L),q.lastIndex=L.index+L[1].length+L[2].length;q.lastIndex=-1}if(o===null)return null;const R=o[2],h=o[3]||"0",i=o[4]||"0",u=s.includePrerelease&&o[5]?`-${o[5]}`:"",p=s.includePrerelease&&o[6]?`+${o[6]}`:"";return f(`${R}.${h}.${i}${u}${p}`,s)},qe}var ge,ur;function zr(){if(ur)return ge;ur=1;const t=H(),f=Ge(),r=j(),e=(o,R,h)=>{if(!f.RELEASE_TYPES.includes(R))return null;const i=n(o,h);return i&&l(i,R)},n=(o,R)=>{const h=o instanceof r?o.version:o;return t(h,R)},l=(o,R)=>{if(s(R))return o.version;switch(o.prerelease=[],R){case"major":o.minor=0,o.patch=0;break;case"minor":o.patch=0;break}return o.format()},s=o=>o.startsWith("pre");return ge=e,ge}var Se,lr;function Fr(){if(lr)return Se;lr=1;class t{constructor(){this.max=1e3,this.map=new Map}get(r){const e=this.map.get(r);if(e!==void 0)return this.map.delete(r),this.map.set(r,e),e}delete(r){return this.map.delete(r)}set(r,e){if(!this.delete(r)&&e!==void 0){if(this.map.size>=this.max){const l=this.map.keys().next().value;this.delete(l)}this.map.set(r,e)}return this}}return Se=t,Se}var we,fr;function D(){if(fr)return we;fr=1;const t=/\s+/g;class f{constructor(a,d){if(d=n(d),a instanceof f)return a.loose===!!d.loose&&a.includePrerelease===!!d.includePrerelease?a:new f(a.raw,d);if(a instanceof l)return this.raw=a.value,this.set=[[a]],this.formatted=void 0,this;if(this.options=d,this.loose=!!d.loose,this.includePrerelease=!!d.includePrerelease,this.raw=a.trim().replace(t," "),this.set=this.raw.split("||").map(v=>this.parseRange(v.trim())).filter(v=>v.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const v=this.set[0];if(this.set=this.set.filter(S=>!_(S[0])),this.set.length===0)this.set=[v];else if(this.set.length>1){for(const S of this.set)if(S.length===1&&I(S[0])){this.set=[S];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let a=0;a<this.set.length;a++){a>0&&(this.formatted+="||");const d=this.set[a];for(let v=0;v<d.length;v++)v>0&&(this.formatted+=" "),this.formatted+=d[v].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(a){a=a.replace(y,"");const v=((this.options.includePrerelease&&L)|(this.options.loose&&P))+":"+a,S=e.get(v);if(S)return S;const m=this.options.loose,$=m?R[i.HYPHENRANGELOOSE]:R[i.HYPHENRANGE];a=a.replace($,Z(this.options.includePrerelease)),s("hyphen replace",a),a=a.replace(R[i.COMPARATORTRIM],u),s("comparator trim",a),a=a.replace(R[i.TILDETRIM],p),s("tilde trim",a),a=a.replace(R[i.CARETTRIM],q),s("caret trim",a);let C=a.split(" ").map(V=>B(V,this.options)).join(" ").split(/\s+/).map(V=>Q(V,this.options));m&&(C=C.filter(V=>(s("loose invalid filter",V,this.options),!!V.match(R[i.COMPARATORLOOSE])))),s("range list",C);const w=new Map,T=C.map(V=>new l(V,this.options));for(const V of T){if(_(V))return[V];w.set(V.value,V)}w.size>1&&w.has("")&&w.delete("");const A=[...w.values()];return e.set(v,A),A}intersects(a,d){if(!(a instanceof f))throw new TypeError("a Range is required");return this.set.some(v=>N(v,d)&&a.set.some(S=>N(S,d)&&v.every(m=>S.every($=>m.intersects($,d)))))}test(a){if(!a)return!1;if(typeof a=="string")try{a=new o(a,this.options)}catch{return!1}for(let d=0;d<this.set.length;d++)if(M(this.set[d],a,this.options))return!0;return!1}}we=f;const r=Fr(),e=new r,n=Lr(),l=k(),s=yr(),o=j(),{safeRe:R,src:h,t:i,comparatorTrimReplace:u,tildeTrimReplace:p,caretTrimReplace:q}=U(),{FLAG_INCLUDE_PRERELEASE:L,FLAG_LOOSE:P}=Ge(),y=new RegExp(h[i.BUILD],"g"),_=c=>c.value==="<0.0.0-0",I=c=>c.value==="",N=(c,a)=>{let d=!0;const v=c.slice();let S=v.pop();for(;d&&v.length;)d=v.every(m=>S.intersects(m,a)),S=v.pop();return d},B=(c,a)=>(c=c.replace(R[i.BUILD],""),s("comp",c,a),c=W(c,a),s("caret",c),c=x(c,a),s("tildes",c),c=K(c,a),s("xrange",c),c=J(c,a),s("stars",c),c),E=c=>!c||c.toLowerCase()==="x"||c==="*",O=(c,a,d)=>E(c)&&!E(a)||E(a)&&d&&!E(d),x=(c,a)=>c.trim().split(/\s+/).map(d=>g(d,a)).join(" "),g=(c,a)=>{const d=a.loose?R[i.TILDELOOSE]:R[i.TILDE],v=a.includePrerelease?"-0":"";return c.replace(d,(S,m,$,C,w)=>{s("tilde",c,S,m,$,C,w);let T;return E(m)?T="":E($)?T=`>=${m}.0.0${v} <${+m+1}.0.0-0`:E(C)?T=`>=${m}.${$}.0${v} <${m}.${+$+1}.0-0`:w?(s("replaceTilde pr",w),T=`>=${m}.${$}.${C}-${w} <${m}.${+$+1}.0-0`):T=`>=${m}.${$}.${C} <${m}.${+$+1}.0-0`,s("tilde return",T),T})},W=(c,a)=>c.trim().split(/\s+/).map(d=>F(d,a)).join(" "),F=(c,a)=>{s("caret",c,a);const d=a.loose?R[i.CARETLOOSE]:R[i.CARET],v=a.includePrerelease?"-0":"";return c.replace(d,(S,m,$,C,w)=>{s("caret",c,S,m,$,C,w);let T;return E(m)?T="":E($)?T=`>=${m}.0.0${v} <${+m+1}.0.0-0`:E(C)?m==="0"?T=`>=${m}.${$}.0${v} <${m}.${+$+1}.0-0`:T=`>=${m}.${$}.0${v} <${+m+1}.0.0-0`:w?(s("replaceCaret pr",w),m==="0"?$==="0"?T=`>=${m}.${$}.${C}-${w} <${m}.${$}.${+C+1}-0`:T=`>=${m}.${$}.${C}-${w} <${m}.${+$+1}.0-0`:T=`>=${m}.${$}.${C}-${w} <${+m+1}.0.0-0`):(s("no pr"),m==="0"?$==="0"?T=`>=${m}.${$}.${C} <${m}.${$}.${+C+1}-0`:T=`>=${m}.${$}.${C} <${m}.${+$+1}.0-0`:T=`>=${m}.${$}.${C} <${+m+1}.0.0-0`),s("caret return",T),T})},K=(c,a)=>(s("replaceXRanges",c,a),c.split(/\s+/).map(d=>b(d,a)).join(" ")),b=(c,a)=>{c=c.trim();const d=a.loose?R[i.XRANGELOOSE]:R[i.XRANGE];return c.replace(d,(v,S,m,$,C,w)=>{if(s("xRange",c,v,S,m,$,C,w),O(m,$,C))return c;const T=E(m),A=T||E($),V=A||E(C),Y=V;return S==="="&&Y&&(S=""),w=a.includePrerelease?"-0":"",T?S===">"||S==="<"?v="<0.0.0-0":v="*":S&&Y?(A&&($=0),C=0,S===">"?(S=">=",A?(m=+m+1,$=0,C=0):($=+$+1,C=0)):S==="<="&&(S="<",A?m=+m+1:$=+$+1),S==="<"&&(w="-0"),v=`${S+m}.${$}.${C}${w}`):A?v=`>=${m}.0.0${w} <${+m+1}.0.0-0`:V&&(v=`>=${m}.${$}.0${w} <${m}.${+$+1}.0-0`),s("xRange return",v),v})},J=(c,a)=>(s("replaceStars",c,a),c.trim().replace(R[i.STAR],"")),Q=(c,a)=>(s("replaceGTE0",c,a),c.trim().replace(R[a.includePrerelease?i.GTE0PRE:i.GTE0],"")),Z=c=>(a,d,v,S,m,$,C,w,T,A,V,Y)=>(E(v)?d="":E(S)?d=`>=${v}.0.0${c?"-0":""}`:E(m)?d=`>=${v}.${S}.0${c?"-0":""}`:$?d=`>=${d}`:d=`>=${d}${c?"-0":""}`,E(T)?w="":E(A)?w=`<${+T+1}.0.0-0`:E(V)?w=`<${T}.${+A+1}.0-0`:Y?w=`<=${T}.${A}.${V}-${Y}`:c?w=`<${T}.${A}.${+V+1}-0`:w=`<=${w}`,`${d} ${w}`.trim()),M=(c,a,d)=>{for(let v=0;v<c.length;v++)if(!c[v].test(a))return!1;if(a.prerelease.length&&!d.includePrerelease){for(let v=0;v<c.length;v++)if(s(c[v].semver),c[v].semver!==l.ANY&&c[v].semver.prerelease.length>0){const S=c[v].semver;if(S.major===a.major&&S.minor===a.minor&&S.patch===a.patch)return!0}return!1}return!0};return we}var Ee,hr;function k(){if(hr)return Ee;hr=1;const t=Symbol("SemVer ANY");class f{static get ANY(){return t}constructor(i,u){if(u=r(u),i instanceof f){if(i.loose===!!u.loose)return i;i=i.value}i=i.trim().split(/\s+/).join(" "),s("comparator",i,u),this.options=u,this.loose=!!u.loose,this.parse(i),this.semver===t?this.value="":this.value=this.operator+this.semver.version,s("comp",this)}parse(i){const u=this.options.loose?e[n.COMPARATORLOOSE]:e[n.COMPARATOR],p=i.match(u);if(!p)throw new TypeError(`Invalid comparator: ${i}`);this.operator=p[1]!==void 0?p[1]:"",this.operator==="="&&(this.operator=""),p[2]?this.semver=new o(p[2],this.options.loose):this.semver=t}toString(){return this.value}test(i){if(s("Comparator.test",i,this.options.loose),this.semver===t||i===t)return!0;if(typeof i=="string")try{i=new o(i,this.options)}catch{return!1}return l(i,this.operator,this.semver,this.options)}intersects(i,u){if(!(i instanceof f))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new R(i.value,u).test(this.value):i.operator===""?i.value===""?!0:new R(this.value,u).test(i.semver):(u=r(u),u.includePrerelease&&(this.value==="<0.0.0-0"||i.value==="<0.0.0-0")||!u.includePrerelease&&(this.value.startsWith("<0.0.0")||i.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&i.operator.startsWith(">")||this.operator.startsWith("<")&&i.operator.startsWith("<")||this.semver.version===i.semver.version&&this.operator.includes("=")&&i.operator.includes("=")||l(this.semver,"<",i.semver,u)&&this.operator.startsWith(">")&&i.operator.startsWith("<")||l(this.semver,">",i.semver,u)&&this.operator.startsWith("<")&&i.operator.startsWith(">")))}}Ee=f;const r=Lr(),{safeRe:e,t:n}=U(),l=Vr(),s=yr(),o=j(),R=D();return Ee}var Ce,mr;function z(){if(mr)return Ce;mr=1;const t=D();return Ce=(r,e,n)=>{try{e=new t(e,n)}catch{return!1}return e.test(r)},Ce}var Te,pr;function Kr(){if(pr)return Te;pr=1;const t=D();return Te=(r,e)=>new t(r,e).set.map(n=>n.map(l=>l.value).join(" ").trim().split(" ")),Te}var ye,vr;function br(){if(vr)return ye;vr=1;const t=j(),f=D();return ye=(e,n,l)=>{let s=null,o=null,R=null;try{R=new f(n,l)}catch{return null}return e.forEach(h=>{R.test(h)&&(!s||o.compare(h)===-1)&&(s=h,o=new t(s,l))}),s},ye}var Le,dr;function Jr(){if(dr)return Le;dr=1;const t=j(),f=D();return Le=(e,n,l)=>{let s=null,o=null,R=null;try{R=new f(n,l)}catch{return null}return e.forEach(h=>{R.test(h)&&(!s||o.compare(h)===1)&&(s=h,o=new t(s,l))}),s},Le}var Pe,Rr;function Qr(){if(Rr)return Pe;Rr=1;const t=j(),f=D(),r=X();return Pe=(n,l)=>{n=new f(n,l);let s=new t("0.0.0");if(n.test(s)||(s=new t("0.0.0-0"),n.test(s)))return s;s=null;for(let o=0;o<n.set.length;++o){const R=n.set[o];let h=null;R.forEach(i=>{const u=new t(i.semver.version);switch(i.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!h||r(u,h))&&(h=u);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${i.operator}`)}}),h&&(!s||r(s,h))&&(s=h)}return s&&n.test(s)?s:null},Pe}var Oe,$r;function Zr(){if($r)return Oe;$r=1;const t=D();return Oe=(r,e)=>{try{return new t(r,e).range||"*"}catch{return null}},Oe}var Ve,qr;function He(){if(qr)return Ve;qr=1;const t=j(),f=k(),{ANY:r}=f,e=D(),n=z(),l=X(),s=Be(),o=Ye(),R=We();return Ve=(i,u,p,q)=>{i=new t(i,q),u=new e(u,q);let L,P,y,_,I;switch(p){case">":L=l,P=o,y=s,_=">",I=">=";break;case"<":L=s,P=R,y=l,_="<",I="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(n(i,u,q))return!1;for(let N=0;N<u.set.length;++N){const B=u.set[N];let E=null,O=null;if(B.forEach(x=>{x.semver===r&&(x=new f(">=0.0.0")),E=E||x,O=O||x,L(x.semver,E.semver,q)?E=x:y(x.semver,O.semver,q)&&(O=x)}),E.operator===_||E.operator===I||(!O.operator||O.operator===_)&&P(i,O.semver))return!1;if(O.operator===I&&y(i,O.semver))return!1}return!0},Ve}var _e,gr;function Mr(){if(gr)return _e;gr=1;const t=He();return _e=(r,e,n)=>t(r,e,">",n),_e}var xe,Sr;function et(){if(Sr)return xe;Sr=1;const t=He();return xe=(r,e,n)=>t(r,e,"<",n),xe}var je,wr;function rt(){if(wr)return je;wr=1;const t=D();return je=(r,e,n)=>(r=new t(r,n),e=new t(e,n),r.intersects(e,n)),je}var Ae,Er;function tt(){if(Er)return Ae;Er=1;const t=z(),f=G();return Ae=(r,e,n)=>{const l=[];let s=null,o=null;const R=r.sort((p,q)=>f(p,q,n));for(const p of R)t(p,e,n)?(o=p,s||(s=p)):(o&&l.push([s,o]),o=null,s=null);s&&l.push([s,null]);const h=[];for(const[p,q]of l)p===q?h.push(p):!q&&p===R[0]?h.push("*"):q?p===R[0]?h.push(`<=${q}`):h.push(`${p} - ${q}`):h.push(`>=${p}`);const i=h.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return i.length<u.length?i:e},Ae}var Ie,Cr;function st(){if(Cr)return Ie;Cr=1;const t=D(),f=k(),{ANY:r}=f,e=z(),n=G(),l=(u,p,q={})=>{if(u===p)return!0;u=new t(u,q),p=new t(p,q);let L=!1;e:for(const P of u.set){for(const y of p.set){const _=R(P,y,q);if(L=L||_!==null,_)continue e}if(L)return!1}return!0},s=[new f(">=0.0.0-0")],o=[new f(">=0.0.0")],R=(u,p,q)=>{if(u===p)return!0;if(u.length===1&&u[0].semver===r){if(p.length===1&&p[0].semver===r)return!0;q.includePrerelease?u=s:u=o}if(p.length===1&&p[0].semver===r){if(q.includePrerelease)return!0;p=o}const L=new Set;let P,y;for(const g of u)g.operator===">"||g.operator===">="?P=h(P,g,q):g.operator==="<"||g.operator==="<="?y=i(y,g,q):L.add(g.semver);if(L.size>1)return null;let _;if(P&&y){if(_=n(P.semver,y.semver,q),_>0)return null;if(_===0&&(P.operator!==">="||y.operator!=="<="))return null}for(const g of L){if(P&&!e(g,String(P),q)||y&&!e(g,String(y),q))return null;for(const W of p)if(!e(g,String(W),q))return!1;return!0}let I,N,B,E,O=y&&!q.includePrerelease&&y.semver.prerelease.length?y.semver:!1,x=P&&!q.includePrerelease&&P.semver.prerelease.length?P.semver:!1;O&&O.prerelease.length===1&&y.operator==="<"&&O.prerelease[0]===0&&(O=!1);for(const g of p){if(E=E||g.operator===">"||g.operator===">=",B=B||g.operator==="<"||g.operator==="<=",P){if(x&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===x.major&&g.semver.minor===x.minor&&g.semver.patch===x.patch&&(x=!1),g.operator===">"||g.operator===">="){if(I=h(P,g,q),I===g&&I!==P)return!1}else if(P.operator===">="&&!g.test(P.semver))return!1}if(y){if(O&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===O.major&&g.semver.minor===O.minor&&g.semver.patch===O.patch&&(O=!1),g.operator==="<"||g.operator==="<="){if(N=i(y,g,q),N===g&&N!==y)return!1}else if(y.operator==="<="&&!g.test(y.semver))return!1}if(!g.operator&&(y||P)&&_!==0)return!1}return!(P&&B&&!y&&_!==0||y&&E&&!P&&_!==0||x||O)},h=(u,p,q)=>{if(!u)return p;const L=n(u.semver,p.semver,q);return L>0?u:L<0||p.operator===">"&&u.operator===">="?p:u},i=(u,p,q)=>{if(!u)return p;const L=n(u.semver,p.semver,q);return L<0?u:L>0||p.operator==="<"&&u.operator==="<="?p:u};return Ie=l,Ie}var Ne,Tr;function nt(){if(Tr)return Ne;Tr=1;const t=U(),f=Ge(),r=j(),e=Ar(),n=H(),l=xr(),s=jr(),o=Ir(),R=Nr(),h=Gr(),i=Dr(),u=Br(),p=Wr(),q=G(),L=Yr(),P=Hr(),y=De(),_=Ur(),I=Xr(),N=X(),B=Be(),E=Pr(),O=Or(),x=We(),g=Ye(),W=Vr(),F=kr(),K=zr(),b=k(),J=D(),Q=z(),Z=Kr(),M=br(),c=Jr(),a=Qr(),d=Zr(),v=He(),S=Mr(),m=et(),$=rt(),C=tt(),w=st();return Ne={parse:n,valid:l,clean:s,inc:o,diff:R,major:h,minor:i,patch:u,prerelease:p,compare:q,rcompare:L,compareLoose:P,compareBuild:y,sort:_,rsort:I,gt:N,lt:B,eq:E,neq:O,gte:x,lte:g,cmp:W,coerce:F,truncate:K,Comparator:b,Range:J,satisfies:Q,toComparators:Z,maxSatisfying:M,minSatisfying:c,minVersion:a,validRange:d,outside:v,gtr:S,ltr:m,intersects:$,simplifyRange:C,subset:w,SemVer:r,re:t.re,src:t.src,tokens:t.t,SEMVER_SPEC_VERSION:f.SEMVER_SPEC_VERSION,RELEASE_TYPES:f.RELEASE_TYPES,compareIdentifiers:e.compareIdentifiers,rcompareIdentifiers:e.rcompareIdentifiers},Ne}var it=nt();const ct=_r(it);export{ct as a,it as s};
@@ -0,0 +1,39 @@
1
+ const dt=/[\t\n\r ]/,Xt=(t,e,o=4,s=79)=>{let r=e.position,i=e.position,n="",a="";for(;r>0&&!dt.test(t.charAt(r-1));)if(r-=1,e.position-r>s/2-1){n=" ... ",r+=5;break}for(;i<t.length&&!dt.test(t.charAt(i));)if(i+=1,i-e.position>s/2-1){a=" ... ",i-=5;break}const l=t.slice(r,i),u=" ".repeat(o+e.position-r+n.length);return`${" ".repeat(o)}${n}${l}${a}
2
+ ${u}^`};let rt=class extends Error{mark;constructor(e,o,s){let r=e,i=o;if(o&&(r+=` at line ${String(o.line+1)}, column ${String(o.column+1)}`,s!==void 0)){const n=Xt(s,o);r+=`:
3
+ ${n}`,i={...o,snippet:n}}super(r),this.name="YAMLError",this.mark=i}},x=class extends rt{constructor(e,o,s){super(e,o,s),this.name="YAMLParseError"}},E=class extends rt{constructor(e,o,s){super(e,o,s),this.name="YAMLStringifyError"}},Zt=class extends rt{constructor(e,o,s){super(e,o,s),this.name="YAMLWarning"}},K=class{kind="SCALAR";value;anchor;comment;commentBefore;spaceBefore;tag;type;constructor(e){this.value=e}toJSON(){return I(this)}toString(){return String(this.value)}},$t=class{kind="ALIAS";source;comment;commentBefore;spaceBefore;constructor(e){this.source=e}toString(){return`*${this.source}`}};class ot{kind="PAIR";key;value;comment;commentBefore;spaceBefore;constructor(e,o){this.key=e,this.value=o}toJSON(){return{key:I(this.key),value:I(this.value)}}}const R=(t,e)=>typeof t=="object"&&t!==null&&t.kind===e,v=t=>R(t,"SCALAR"),it=t=>R(t,"ALIAS"),Ct=t=>R(t,"PAIR"),U=t=>R(t,"MAP"),nt=t=>R(t,"SEQ"),W=t=>U(t)||nt(t),Ht=t=>v(t)||it(t)||W(t),te=(t,e)=>{const o=v(t)?t.value:t,s=v(e)?e.value:e;return o===s};let Nt=class{anchor;comment;commentBefore;flow;spaceBefore;tag;getIn(e,o=!1){const[s,...r]=[...e];if(s===void 0)return;const i=this.get(s,!0);return r.length===0?o||!v(i)?i:i.value:W(i)?i.getIn(r,o):void 0}hasIn(e){const[o,...s]=[...e];if(o===void 0)return!1;if(s.length===0)return this.has(o);const r=this.get(o,!0);return W(r)?r.hasIn(s):!1}setIn(e,o){const[s,...r]=[...e];if(s===void 0)return;if(r.length===0){this.set(s,o);return}let i=this.get(s,!0);W(i)||(i=new T,this.set(s,i)),i.setIn(r,o)}deleteIn(e){const[o,...s]=[...e];if(o===void 0)return!1;if(s.length===0)return this.delete(o);const r=this.get(o,!0);return W(r)?r.deleteIn(s):!1}toJSON(){return I(this)}};class T extends Nt{kind="MAP";items=[];#t;#e=0;#r(){if(this.#t===void 0||this.#e!==this.items.length){const e=new Map;for(const o of this.items){const s=v(o.key)?o.key.value:o.key;e.has(s)||e.set(s,o)}this.#t=e,this.#e=this.items.length}return this.#t}#o(e){return this.#r().get(v(e)?e.value:e)}get(e,o=!1){const s=this.#o(e);if(s)return o||!v(s.value)?s.value:s.value.value}set(e,o){const s=this.#o(e);if(s){s.value=o;return}const r=new ot(e,o);this.items.push(r),this.#t!==void 0&&this.#e===this.items.length-1&&(this.#t.set(v(e)?e.value:e,r),this.#e=this.items.length)}has(e){return this.#o(e)!==void 0}delete(e){const o=this.items.findIndex(s=>te(s.key,e));return o===-1?!1:(this.items.splice(o,1),this.#t=void 0,!0)}add(e){this.items.push(e)}}let at=class extends Nt{kind="SEQ";items=[];get(e,o=!1){const s=V(e),r=s===void 0?void 0:this.items[s];return o||!v(r)?r:r.value}set(e,o){const s=V(e);s!==void 0&&(this.items[s]=o)}has(e){const o=V(e);return o!==void 0&&o<this.items.length}delete(e){const o=V(e);return o===void 0||o>=this.items.length?!1:(this.items.splice(o,1),!0)}add(e){this.items.push(e)}};const V=t=>{const e=v(t)?t.value:t,o=typeof e=="number"?e:Number(e);return Number.isInteger(o)&&o>=0?o:void 0},ee=t=>(v(t)?t.value:t)==="<<",xt=(t,e,o)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:o,writable:!0})},w=t=>typeof t=="string"?t:t===null||typeof t!="object"?String(t):v(t)?w(t.value):nt(t)?`[${t.items.map(e=>w(e)).join(",")}]`:U(t)?`{${t.items.map(e=>`${w(e.key)}: ${w(e.value)}`).toSorted((e,o)=>e.localeCompare(o)).join(", ")}}`:it(t)?`*${t.source}`:Array.isArray(t)?`[${t.map(e=>w(e)).join(",")}]`:Object.prototype.toString.call(t)==="[object Object]"?`{${Object.entries(t).map(([e,o])=>`${e}: ${w(o)}`).toSorted((e,o)=>e.localeCompare(o)).join(", ")}}`:Object.prototype.toString.call(t),oe=(t,e)=>{const o=I(t,e);return Array.isArray(o)?o.filter(s=>gt(s)):gt(o)?[o]:[]},gt=t=>typeof t=="object"&&t!==null&&!Array.isArray(t),se=(t,e)=>{const o={};t.anchor&&e.set(t.anchor,o);for(const s of t.items){if(ee(s.key)){re(o,s.value,e);continue}xt(o,w(s.key),I(s.value,e))}return o},re=(t,e,o)=>{for(const s of oe(e,o))for(const[r,i]of Object.entries(s))Object.hasOwn(t,r)||xt(t,r,i)},I=(t,e)=>{const o=e??new Map;if(v(t))return t.anchor&&o.set(t.anchor,t.value),t.value;if(it(t))return o.get(t.source);if(nt(t)){const s=[];t.anchor&&o.set(t.anchor,s);for(const r of t.items)s.push(I(r,o));return s}return U(t)?se(t,o):Ct(t)?{key:I(t.key,o),value:I(t.value,o)}:t},L=t=>{if(Ht(t)||Ct(t))return t;if(Array.isArray(t)){const e=new at;for(const o of t)e.items.push(L(o));return e}if(t instanceof Map){const e=new T;for(const[o,s]of t)e.items.push(new ot(L(o),L(s)));return e}if(typeof t=="object"&&t!==null&&Object.prototype.toString.call(t)==="[object Object]"){const e=new T;for(const[o,s]of Object.entries(t))e.items.push(new ot(new K(o),L(s)));return e}return new K(t)},Mt=/^[-+]?\d+$/,jt=/^0x[0-9a-fA-F]+$/,Lt=/^0o[0-7]+$/,ie=/^[-+]?(?:\.\d+|\d+(?:\.\d*)?)(?:e[-+]?\d+)?$/i,ne=/^([-+]?)\.(?:inf|Inf|INF)$/,ae=/^\.(?:nan|NaN|NAN)$/,le=t=>t==="~"||t==="null"||t==="Null"||t==="NULL",Ot=t=>t==="true"||t==="True"||t==="TRUE",Tt=t=>t==="false"||t==="False"||t==="FALSE",lt=t=>{if(t.length===0)return null;const e=t.charCodeAt(0);if(e>=65&&e<=90||e>=97&&e<=122||e===126){const{length:o}=t;if(o===1)return e===126?null:t;if(o===4){if(le(t))return null;if(Ot(t))return!0}else if(o===5&&Tt(t))return!1;return t}if(e>=48&&e<=57||e===43||e===45||e===46){if(Mt.test(t))return Number.parseInt(t,10);if(e===48&&jt.test(t))return Number.parseInt(t.slice(2),16);if(e===48&&Lt.test(t))return Number.parseInt(t.slice(2),8);if(e===46||e===43||e===45){const o=ne.exec(t);if(o)return o[1]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY;if(ae.test(t))return Number.NaN}if(ie.test(t))return Number.parseFloat(t)}return t},ce=t=>lt(t)!==t,H={status:"invalid"},ue={status:"unknown"},pe=(t,e)=>{switch(t){case"!!bool":case"tag:yaml.org,2002:bool":return Ot(e)?{status:"ok",value:!0}:Tt(e)?{status:"ok",value:!1}:H;case"!!float":case"tag:yaml.org,2002:float":{const o=lt(e);return typeof o=="number"?{status:"ok",value:o}:H}case"!!int":case"tag:yaml.org,2002:int":return jt.test(e)?{status:"ok",value:Number.parseInt(e.slice(2),16)}:Lt.test(e)?{status:"ok",value:Number.parseInt(e.slice(2),8)}:Mt.test(e)?{status:"ok",value:Number.parseInt(e,10)}:H;case"!!null":case"tag:yaml.org,2002:null":return{status:"ok",value:null};case"!!str":case"tag:yaml.org,2002:str":return{status:"ok",value:e};default:return ue}},fe=t=>t.startsWith("!!")?[t,`tag:yaml.org,2002:${t.slice(2)}`]:[t],he=t=>{if(!t)return;const e=typeof t=="function"?t([]):t;if(!Array.isArray(e))throw new x("customTags must be an array of tags, or a function returning one");if(e.length===0)return;const o=new Map,s=[];for(const r of e){for(const i of fe(r.tag))o.set(i,r);if(r.default&&r.test){const i=r.test.flags.includes("g")||r.test.flags.includes("y")?new RegExp(r.test.source,r.test.flags.replaceAll(/[gy]/gu,"")):r.test;s.push({...r,test:i})}}return{byTag:o,implicit:s}},de=(t,e)=>{if(t){for(const o of t.implicit)if(o.test.test(e))return{value:o.resolve(e)}}},ct=(t,e)=>{if(t){for(const o of t)if(o.identify?.(e)){const s=o.stringify?o.stringify(e):String(e);return`${o.tag} ${s}`}}},ge=/[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u2028\u2029\uFFFE\uFFFF]/,me=new Set("!\"#%&'*,-:>?@[\\]`{|}"),be=/^\s|\s$/,ye=/[\n\t]/,Ae=/:[ \t]|:$|[ \t]#/,ke=/[,[\]{}]/,ve=/^\s/,Se=/[ \t]$/,we=t=>{let e=t.length;for(;e>0&&t.codePointAt(e-1)===10;)e-=1;return e===t.length?t:t.slice(0,e)},Ie=/[\n\t]/g,$e=/\t/,Ce=/^\S+(?: \S+)*$/,Z=(t,e)=>" ".repeat(t*e.indent),Ne=(t,e)=>t<e?-1:t>e?1:0,xe=(t,e)=>!(t.length===0||t==="<<"||me.has(t[0])||be.test(t)||ye.test(t)||Ae.test(t)||e&&ke.test(t)),Me=t=>`'${t.replaceAll("'","''")}'`,B=(t,e)=>{let o="";for(const s of t){const r=s.codePointAt(0);switch(s){case`
4
+ `:{o+=String.raw`\n`;break}case" ":{o+=String.raw`\t`;break}case"\r":{o+=String.raw`\r`;break}case"\0":{o+=String.raw`\0`;break}case"\f":{o+=String.raw`\f`;break}case"\v":{o+=String.raw`\v`;break}case"\b":{o+=String.raw`\b`;break}case"\x1B":{o+=String.raw`\e`;break}case'"':{o+=String.raw`\"`;break}case"\\":{o+="\\\\";break}default:{const i=r.toString(16).toUpperCase();r<32||r>=127&&r<=159?o+=String.raw`\x${i.padStart(2,"0")}`:e&&r>126?o+=r<=255?String.raw`\x${i.padStart(2,"0")}`:String.raw`\u${i.padStart(4,"0")}`:o+=s}}}return`"${o}"`},je=(t,e,o)=>{const s=Z(e+1,o);let r="",i=t;t.endsWith(`
5
+ `)?(t.endsWith(`
6
+
7
+ `)&&(r="+"),i=t.slice(0,-1)):r="-";const n=i.split(`
8
+ `).map(a=>a===""?"":s+a).join(`
9
+ `);return`|${r}
10
+ ${n}`},Le=(t,e)=>{const o=t.split(" "),s=[];let r="";for(const i of o)r===""?r=i:r.length+1+i.length<=e?r+=` ${i}`:(s.push(r),r=i);return r!==""&&s.push(r),s},Oe=(t,e,o)=>{const s=Z(e+1,o),r=Math.max(1,o.lineWidth-s.length);return`>-
11
+ ${Le(t,r).map(i=>s+i).join(`
12
+ `)}`},Te=(t,e,o)=>{if(o.lineWidth<=0)return!1;const s=o.lineWidth-(e+1)*o.indent;return t.length<=s?!1:t.includes(" ")&&Ce.test(t)},ut=(t,e,o,s)=>t===""?'""':ge.test(t.replaceAll(Ie,""))?B(t,o.forceQuotes):o.forceQuotes?B(t,!0):t.includes(`
13
+ `)?o.blockQuote!==!1&&!s&&!ve.test(t)&&!Se.test(we(t))?je(t,e,o):B(t,!1):xe(t,s)&&!ce(t)?!s&&Te(t,e,o)?Oe(t,e,o):t:$e.test(t)?B(t,!1):o.singleQuote?Me(t):B(t,!1),Fe=t=>Number.isNaN(t)?".nan":t===Number.POSITIVE_INFINITY?".inf":t===Number.NEGATIVE_INFINITY?"-.inf":Object.is(t,-0)?"-0":String(t),Ft=(t,e)=>{const o=Object.entries(t);if(e.sortKeys===!0)o.sort(([s],[r])=>Ne(s,r));else if(typeof e.sortKeys=="function"){const s=e.sortKeys;o.sort(([r],[i])=>s(r,i))}return o},Ee=t=>Array.isArray(t)?t.length>0:typeof t=="object"&&t!==null&&Object.keys(t).length>0,D=(t,e,o)=>{let s=o;return s!==null&&typeof s=="object"&&typeof s.toJSON=="function"&&(s=s.toJSON()),t.replacer&&(s=t.replacer(e,s)),s},J=(t,e,o)=>{const s=ct(o.customTags,t);if(s!==void 0)return s;if(Array.isArray(t)){G(t,o),o.stack.add(t);const r=t.map((i,n)=>J(D(o,String(n),i),e,o));return o.stack.delete(t),r.length===0?"[]":o.flowCollectionPadding?`[ ${r.join(", ")} ]`:`[${r.join(", ")}]`}if(typeof t=="object"&&t!==null){G(t,o),o.stack.add(t);const r=Ft(t,o).map(([i,n])=>`${ut(i,e,o,!0)}: ${J(D(o,i,n),e,o)}`);return o.stack.delete(t),r.length===0?"{}":o.flowCollectionPadding?`{ ${r.join(", ")} }`:`{${r.join(", ")}}`}return Et(t,e,o,!0)},Et=(t,e,o,s)=>{if(t==null)return o.nullStr;switch(typeof t){case"bigint":return t.toString();case"boolean":return t?o.trueStr:o.falseStr;case"number":return Fe(t);case"string":return ut(t,e,o,s);default:{if(o.skipInvalid)return o.nullStr;throw new E(`cannot serialize a value of type "${typeof t}"`)}}},_t=(t,e,o)=>{const s=ct(o.customTags,t);return s!==void 0?s:Array.isArray(t)?t.length===0?"[]":st(e,o)?J(t,e,o):_e(t,e,o):typeof t=="object"&&t!==null&&Object.prototype.toString.call(t)==="[object Object]"?Object.keys(t).length===0?"{}":st(e,o)?J(t,e,o):Pe(t,e,o):Et(t,e,o,!1)},G=(t,e)=>{if(e.stack.has(t))throw new E("cannot serialize a circular structure to YAML")},st=(t,e)=>e.collectionStyle==="flow"?!0:e.collectionStyle==="block"?!1:e.flowLevel>=0&&t>=e.flowLevel,Pt=(t,e,o)=>{const s=Ee(t)&&ct(o.customTags,t)===void 0,r=_t(t,s?e+1:e,o);return{block:s&&!st(e+1,o)&&r!=="[]"&&r!=="{}",text:r}},_e=(t,e,o)=>{G(t,o),o.stack.add(t);const s=o.indentSeq||e===0?e:e-1,r=Z(s,o),i=`-${" ".repeat(o.indent-1)}`,n=(s+1)*o.indent,a=[];for(const[l,u]of t.entries()){const p=D(o,String(l),u);if(p===void 0&&o.skipInvalid&&!o.keepUndefined)continue;const{block:f,text:b}=Pt(p,s,o);a.push(r+i+(f?b.slice(n):b))}return o.stack.delete(t),a.length===0?"[]":a.join(`
14
+ `)},Pe=(t,e,o)=>{G(t,o),o.stack.add(t);const s=Z(e,o),r=Ft(t,o),i=[];for(const[n,a]of r){const l=D(o,n,a);if(l===void 0&&!o.keepUndefined)continue;const u=ut(n,e,o,!0),{block:p,text:f}=Pt(l,e,o);i.push(p?`${s+u}:
15
+ ${f}`:`${s+u}: ${f}`)}return o.stack.delete(t),i.length===0?"{}":i.join(`
16
+ `)},q=(t,e={})=>{const o={blockQuote:e.blockQuote??!0,collectionStyle:e.collectionStyle??"any",customTags:typeof e.customTags=="function"?e.customTags([]):e.customTags,falseStr:e.falseStr??"false",flowCollectionPadding:e.flowCollectionPadding??!0,flowLevel:e.flowLevel??-1,forceQuotes:e.forceQuotes??!1,indent:e.indent??2,indentSeq:e.indentSeq??!0,keepUndefined:e.keepUndefined??!1,lineWidth:e.lineWidth??80,nullStr:e.nullStr??"null",replacer:e.replacer,singleQuote:e.singleQuote??!1,skipInvalid:e.skipInvalid??!1,sortKeys:e.sortKeys??!1,stack:new Set,trueStr:e.trueStr??"true"};if(o.indent<2)throw new E("indentation width must be at least 2");const s=D(o,"",t);if(s===void 0)return e.directives?`---
17
+ `:`
18
+ `;const r=_t(s,0,o);return`${e.directives?`---
19
+ `:""}${r}
20
+ `},Bt=Symbol("invalid scalar"),Be=/^-?(?:0|[1-9]\d*)$/,We=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:e[-+]?\d+)?$/i,qe=/^[-+]?(?:0|[1-9][\d_]*)$/,Ye=/^[-+]?0[0-7_]+$/,Ke=/^[-+]?0x[\dA-Fa-f_]+$/,Ue=/^[-+]?0b[01_]+$/,De=/^[-+]?(?:\d[\d_]*)?\.[\d_]*(?:e[-+]?\d+)?$/i,Re=/^[-+]?[1-9][\d_]*(?::[0-5]?\d)+$/,Qe=/^[-+]?[1-9][\d_]*(?::[0-5]?\d)+\.[\d_]*$/,Ve=/^([-+])?\.(?:inf|Inf|INF)$/,Je=/^\.(?:nan|NaN|NAN)$/,Ge=/^[-+]?0b/,ze=/^[-+]?0x/,Xe=/^[-+]?0/,Ze=new Set(["","null","Null","NULL","~"]),He=new Set(["on","On","ON","true","True","TRUE","y","Y","yes","Yes","YES"]),to=new Set(["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"]),j=t=>t.includes("_")?t.replaceAll("_",""):t,mt=(t,e)=>{const o=j(t),s=o.startsWith("-"),r=s||o.startsWith("+")?o.slice(1):o;let i=0;for(const n of r.split(":"))i=i*60+(e?Number.parseFloat(n):Number.parseInt(n,10));return s?-i:i},eo=t=>{let e=0;const o=(d,h)=>{let m=0,g=0;for(;g<h&&e<t.length;){const S=t.codePointAt(e)??0;if(S<48||S>57)break;m=m*10+(S-48),e+=1,g+=1}return g<d?-1:m},s=d=>t[e]===d?(e+=1,!0):!1,r=()=>{const d=e;for(;t[e]===" "||t[e]===" ";)e+=1;return e-d},i=o(4,4);if(i<0||!s("-"))return;const n=o(1,2);if(n<0||!s("-"))return;const a=o(1,2);if(a<0)return;if(e===t.length)return new Date(Date.UTC(i,n-1,a));if(!s("T")&&!s("t")&&r()===0)return;const l=o(1,2);if(l<0||!s(":"))return;const u=o(2,2);if(u<0||!s(":"))return;const p=o(2,2);if(p<0)return;let f=0;if(s(".")){const d=e;if(o(1,9)<0)return;f=Math.round(+`0.${t.slice(d,e)}`*1e3)}r();let b=0;if(e<t.length&&!s("Z")&&!s("z")){const d=s("-");if(!d&&!s("+"))return;const h=o(1,2);if(h<0)return;s(":");const m=e<t.length?o(2,2):0;if(m<0)return;b=(h*60+m)*(d?-1:1)}if(e===t.length)return new Date(Date.UTC(i,n-1,a,l,u,p,f)-b*6e4)},oo=t=>t,so=t=>t==="null"?null:t==="true"?!0:t==="false"?!1:Be.test(t)?Number.parseInt(t,10):We.test(t)?Number.parseFloat(t):Bt,ro=t=>{if(Ze.has(t))return null;if(He.has(t))return!0;if(to.has(t))return!1;if(Ue.test(t)){const o=j(t);return(o.startsWith("-")?-1:1)*Number.parseInt(o.replace(Ge,""),2)}if(Ke.test(t)){const o=j(t);return(o.startsWith("-")?-1:1)*Number.parseInt(o.replace(ze,""),16)}if(Ye.test(t)){const o=j(t);return(o.startsWith("-")?-1:1)*Number.parseInt(o.replace(Xe,""),8)}if(Qe.test(t))return mt(t,!0);if(Re.test(t))return mt(t,!1);if(qe.test(t))return Number.parseInt(j(t),10);const e=Ve.exec(t);return e?e[1]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY:Je.test(t)?Number.NaN:De.test(t)?Number.parseFloat(j(t)):eo(t)??t},tt={core:lt,failsafe:oo,json:so,"yaml-1.1":ro},io=/^[-+]?(?:0B[01]+|0O[0-7]+|0X[\dA-F]+|\d+)$/i,no=t=>e=>{const o=t(e);if(typeof o!="number"||!Number.isInteger(o))return o;const s=j(e);return io.test(s)?BigInt(s):o},ao=t=>t==="core"||t==="failsafe"||t==="json"||t==="yaml-1.1",bt=(t,e,o=!1)=>{let s=tt.core;if(t!==void 0){if(!ao(t))throw new x(`unknown schema "${String(t)}"; expected one of core, failsafe, json, yaml-1.1`);s=tt[t]}else e==="1.1"&&(s=tt["yaml-1.1"]);return o?no(s):s},lo="tag:yaml.org,2002:merge",Wt=(t,e)=>t===lo||t==="?"&&e==="<<",co={alias:(t,e)=>t.anchorMap.get(e),anchor:()=>{},finish:(t,e)=>e,has:(t,e)=>Object.hasOwn(t,e),isMergeKey:Wt,key:(t,e)=>w(e),map:()=>({}),push:(t,e)=>{t.push(e)},seq:()=>[],set:(t,e,o,s)=>{if(o==="__proto__"&&t.options.preventProtoPollution){Object.defineProperty(e,o,{configurable:!0,enumerable:!0,value:s,writable:!0});return}e[o]=s}},uo={alias:(t,e)=>t.anchorMap.get(e),anchor:()=>{},finish:(t,e)=>e,has:(t,e)=>t.has(e),isMergeKey:Wt,key:(t,e)=>t.options.stringKeys?w(e):e,map:()=>new Map,push:(t,e)=>{t.push(e)},seq:()=>[],set:(t,e,o,s)=>{e.set(o,s)}},po={alias:(t,e)=>new $t(e),anchor:(t,e)=>{t.anchor=e},finish:(t,e,o)=>fo(t,e,o),has:(t,e)=>t.has(e),isMergeKey:()=>!1,key:(t,e)=>t.options.stringKeys?new K(w(e)):e,map:()=>new T,push:(t,e)=>{t.items.push(e)},seq:()=>new at,set:(t,e,o,s)=>{e.set(o,s)}},fo=(t,e,o)=>{if(e instanceof $t)return e;if(e instanceof K)return t.anchor!==null&&(e.anchor=t.anchor),t.tag!==null&&t.tag!=="?"&&t.tag!=="!"&&(e.tag=t.tag),e;if(e instanceof T||e instanceof at)return t.tag!==null&&t.tag!=="?"&&t.tag!=="!"&&(e.tag=t.tag),e;const s=new K(e);return o&&t.scalarStyle&&(s.type=t.scalarStyle),t.anchor!==null&&(s.anchor=t.anchor),t.tag!==null&&t.tag!=="?"&&t.tag!=="!"&&(s.tag=t.tag),s},ho=(t,e)=>t?po:e?uo:co;class go{input;length;position=0;line=0;lineStart=0;lineIndent=0;firstTabInLine=-1;documentMarkerLine=-1;documents=[];tag=null;anchor=null;kind=null;result=null;anchorMap=new Map;tagMap=new Map;aliasCount=0;depth=0;mappingRanges=null;resolveScalar;#t;nodes;build;lineCounter;scalarStyle=void 0;tags;options;constructor(e,o){this.input=e,this.length=e.length,this.options={...o,duplicateKeys:o.duplicateKeys??"error",maxAliasCount:o.maxAliasCount??100,maxDepth:o.maxDepth??1e3,preventProtoPollution:o.preventProtoPollution??!0,strict:o.strict??!0},this.#t=bt(this.options.schema,this.options.version,this.options.intAsBigInt),this.resolveScalar=this.#t,this.tags=he(this.options.customTags),this.nodes=o.nodes??!1,this.build=ho(this.nodes,this.options.mapAsMap),this.lineCounter=o.lineCounter}applyVersionDirective(e){this.resolveScalar=e==="1.1"||e==="1.2"?bt(this.options.schema,e,this.options.intAsBigInt):this.#t}resetVersionDirective(){this.resolveScalar=this.#t}}const qt=t=>({anchor:t.anchor,firstTabInLine:t.firstTabInLine,kind:t.kind,line:t.line,lineIndent:t.lineIndent,lineStart:t.lineStart,position:t.position,result:t.result,tag:t.tag}),Yt=(t,e)=>{t.position=e.position,t.line=e.line,t.lineStart=e.lineStart,t.lineIndent=e.lineIndent,t.firstTabInLine=e.firstTabInLine,t.tag=e.tag,t.anchor=e.anchor,t.kind=e.kind,t.result=e.result},mo=t=>({aliasCount:t.aliasCount,anchorMap:new Map(t.anchorMap),cursor:qt(t)}),bo=(t,e)=>{t.anchorMap=e.anchorMap,t.aliasCount=e.aliasCount,Yt(t,e.cursor)},c=(t,e)=>{throw new x(e,{column:t.position-t.lineStart,line:t.line,position:t.position},t.input)},yo=(t,e)=>{t.options.onWarning&&t.options.onWarning(new Zt(e,{column:t.position-t.lineStart,line:t.line,position:t.position},t.input))},Kt=t=>typeof t=="object"&&t!==null&&Object.prototype.toString.call(t)==="[object Object]",Ao=t=>t instanceof Map?[...t.keys()]:Object.keys(t),ko=(t,e)=>t instanceof Map?t.get(e):t[String(e)],yt=(t,e,o,s)=>{!Kt(o)&&!(o instanceof Map)&&c(t,"cannot merge mappings; the provided source object is unacceptable");const r=o;for(const i of Ao(r))t.build.has(e,i)||(t.build.set(t,e,i,ko(r,i)),s.add(i))},vo=(t,e,o,s,r,i)=>{if(t.mappingRanges===null||s<0)return;let n=t.mappingRanges.get(e);n===void 0&&(n=[],t.mappingRanges.set(e,n)),n.push({column:s-(t.input.lastIndexOf(`
21
+ `,s-1)+1),end:i,key:w(o),start:s,valueStart:r})},F=(t,e,o,s,r,i)=>{const{build:n}=t;let a=o;if(t.options.merge!==!1&&n.isMergeKey(s,r)){if(a??=new Set,Array.isArray(i))for(const u of i)yt(t,e,u,a);else yt(t,e,i,a);return a}const l=n.key(t,r);if(!a?.has(l)&&n.has(e,l)){if(t.options.duplicateKeys==="error")c(t,`duplicated mapping key "${String(l)}"`);else if(t.options.duplicateKeys==="ignore")return a}return n.set(t,e,l,i),a?.delete(l),a},$=t=>t===10||t===13,C=t=>t===9||t===32,k=t=>t===9||t===32||t===10||t===13||t===0,O=t=>t===44||t===91||t===93||t===123||t===125,Ut=new Uint8Array(128);for(const t of[33,34,35,37,38,39,42,62,64,96,124])Ut[t]=1;const So=t=>t<128&&Ut[t]===1,wo=t=>{if(t>=48&&t<=57)return t-48;const e=t|32;return e>=97&&e<=102?e-97+10:-1},Io=t=>t>=48&&t<=57?t-48:-1,y=Array.from({length:256});y[48]="\0";y[97]="\x07";y[98]="\b";y[116]=" ";y[9]=" ";y[110]=`
22
+ `;y[118]="\v";y[102]="\f";y[114]="\r";y[101]="\x1B";y[32]=" ";y[34]='"';y[47]="/";y[92]="\\";y[78]="…";y[95]=" ";y[76]="\u2028";y[80]="\u2029";const $o=t=>{switch(t){case 85:return 8;case 117:return 4;case 120:return 2;default:return 0}},N=(t,e,o)=>{e<o&&(t.result=t.result+t.input.slice(e,o))},pt=(t,e)=>{e===1?t.result=`${t.result} `:e>1&&(t.result=t.result+`
23
+ `.repeat(e-1))},ft=t=>{const e=t.input.charCodeAt(t.position);e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):c(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1,t.lineCounter?.addNewLine(t.position)},A=(t,e,o)=>{let s=0,r=t.input.charCodeAt(t.position);for(;r!==0;){for(;C(r);)r===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),r=t.input.charCodeAt(++t.position);if(e&&r===35){const i=t.position===t.lineStart?10:t.input.charCodeAt(t.position-1);k(i)||c(t,"a comment must be separated from other tokens by white space characters");do r=t.input.charCodeAt(++t.position);while(r!==10&&r!==13&&r!==0)}if($(r))for(ft(t),r=t.input.charCodeAt(t.position),s++,t.lineIndent=0;r===32;)t.lineIndent++,r=t.input.charCodeAt(++t.position);else break}return o!==-1&&s!==0&&t.lineIndent<o&&c(t,"deficient indentation"),s},Q=t=>{let{position:e}=t,o=t.input.charCodeAt(e);return!!((o===45||o===46)&&o===t.input.charCodeAt(e+1)&&o===t.input.charCodeAt(e+2)&&(e+=3,o=t.input.charCodeAt(e),o===0||k(o)))},Co=/^(?:!|!!|![a-z-]+!)$/i,No=t=>{let e=t.input.charCodeAt(t.position);if(e!==33)return!1;t.tag!==null&&c(t,"duplication of a tag property");let o=!1,s=!1,r="!";e=t.input.charCodeAt(++t.position),e===60?(o=!0,e=t.input.charCodeAt(++t.position)):e===33&&(s=!0,r="!!",e=t.input.charCodeAt(++t.position));let{position:i}=t,n;if(o){do e=t.input.charCodeAt(++t.position);while(e!==0&&e!==62);if(e===62)n=t.input.slice(i,t.position),t.position++;else return c(t,"unexpected end of the stream within a verbatim tag")}else{for(;e!==0&&!k(e)&&!O(e);)e===33&&(s?c(t,"tag suffix cannot contain exclamation marks"):(r=t.input.slice(i-1,t.position+1),Co.test(r)||c(t,"named tag handle cannot contain such characters"),s=!0,i=t.position+1)),e=t.input.charCodeAt(++t.position);n=t.input.slice(i,t.position)}return o?t.tag=n:t.tagMap.has(r)?t.tag=t.tagMap.get(r)+n:r==="!"?t.tag=`!${n}`:r==="!!"?t.tag=`tag:yaml.org,2002:${n}`:c(t,`undeclared tag handle "${r}"`),!0},xo=t=>{let e=t.input.charCodeAt(t.position);if(e!==38)return!1;t.anchor!==null&&c(t,"duplication of an anchor property"),e=t.input.charCodeAt(++t.position);const{position:o}=t;for(;e!==0&&!k(e)&&!O(e);)e=t.input.charCodeAt(++t.position);return t.position===o&&c(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(o,t.position),!0},Mo=t=>{let e=t.input.charCodeAt(t.position);if(e!==42)return!1;e=t.input.charCodeAt(++t.position);const{position:o}=t;for(;e!==0&&!k(e)&&!O(e);)e=t.input.charCodeAt(++t.position);t.position===o&&c(t,"name of an alias node must contain at least one character");const s=t.input.slice(o,t.position);return t.anchorMap.has(s)||c(t,`unidentified alias "${s}"`),t.aliasCount++,t.aliasCount>t.options.maxAliasCount&&c(t,"alias reference count limit exceeded (possible resource-exhaustion attack)"),t.result=t.build.alias(t,s),t.kind="scalar",!0},et=1,jo=2,At=3,Lo=(t,e,o)=>{t.scalarStyle="PLAIN";const s=t.kind,r=t.result,{input:i}=t;let n=i.charCodeAt(t.position);if(k(n)||O(n)||So(n))return!1;let a;if((n===63||n===45)&&(a=i.charCodeAt(t.position+1),k(a)||o&&O(a)))return!1;t.kind="scalar",t.result="";let l=t.position,u=t.position,p=!1,f=0,b=0,d=0;for(;n!==0;){if(n===58){if(a=i.charCodeAt(t.position+1),k(a)||o&&O(a))break}else if(n===35){const h=i.charCodeAt(t.position-1);if(k(h))break}else{if(t.position===t.lineStart&&Q(t)||o&&O(n))break;if($(n))if(f=t.line,b=t.lineStart,d=t.lineIndent,A(t,!1,-1),t.lineIndent>=e){p=!0,n=i.charCodeAt(t.position);continue}else{t.position=u,t.line=f,t.lineStart=b,t.lineIndent=d;break}}p&&(N(t,l,u),pt(t,t.line-f),l=t.position,u=t.position,p=!1),C(n)||(u=t.position+1),n=i.charCodeAt(++t.position)}return N(t,l,u),t.result!==""?!0:(t.kind=s,t.result=r,!1)},Oo=(t,e)=>{t.scalarStyle="QUOTE_SINGLE";let o=t.input.charCodeAt(t.position);if(o!==39)return!1;t.kind="scalar",t.result="",t.position++;let s=t.position,r=t.position;for(;(o=t.input.charCodeAt(t.position))!==0;)if(o===39)if(N(t,s,t.position),o=t.input.charCodeAt(++t.position),o===39)s=t.position,t.position++,r=t.position;else return!0;else $(o)?(N(t,s,r),pt(t,A(t,!1,e)),s=t.position,r=t.position):t.position===t.lineStart&&Q(t)?c(t,"unexpected end of the document within a single quoted scalar"):(C(o)||(r=t.position+1),t.position++);return c(t,"unexpected end of the stream within a single quoted scalar")},To=(t,e)=>{t.scalarStyle="QUOTE_DOUBLE";let o=t.input.charCodeAt(t.position);if(o!==34)return!1;t.kind="scalar",t.result="",t.position++;let s=t.position,r=t.position;for(;(o=t.input.charCodeAt(t.position))!==0;){if(o===34)return N(t,s,t.position),t.position++,!0;if(o===92){if(N(t,s,t.position),o=t.input.charCodeAt(++t.position),$(o))A(t,!1,e);else if(o<256&&y[o]!==void 0)t.result=t.result+y[o],t.position++;else{const i=$o(o);if(i>0){let n=i,a=0;for(;n>0;n--){o=t.input.charCodeAt(++t.position);const l=wo(o);l>=0?a=a*16+l:c(t,"expected hexadecimal character")}a>1114111&&c(t,`code point "${a.toString(16).toUpperCase()}" is outside the Unicode range`),t.result=t.result+String.fromCodePoint(a),t.position++}else c(t,"unknown escape sequence")}s=t.position,r=t.position}else $(o)?(N(t,s,r),pt(t,A(t,!1,e)),s=t.position,r=t.position):t.position===t.lineStart&&Q(t)?c(t,"unexpected end of the document within a double quoted scalar"):(C(o)||(r=t.position+1),t.position++)}return c(t,"unexpected end of the stream within a double quoted scalar")},Fo=(t,e)=>{let o=t.input.charCodeAt(t.position),s;if(o===124)s=!1,t.scalarStyle="BLOCK_LITERAL";else if(o===62)s=!0,t.scalarStyle="BLOCK_FOLDED";else return!1;t.kind="scalar",t.result="";let r=et,i=!1,n=!1,a=e,l=0,u=!1,p=0;for(;o!==0;)if(o=t.input.charCodeAt(++t.position),o===43||o===45)r===et?r=o===43?At:jo:c(t,"repeat of a chomping mode identifier");else{const f=Io(o);if(f>=0)f===0?c(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):n?c(t,"repeat of an indentation width identifier"):(a=e+f-1,n=!0);else break}if(C(o)){do o=t.input.charCodeAt(++t.position);while(C(o));if(o===35)do o=t.input.charCodeAt(++t.position);while(!$(o)&&o!==0)}for(;o!==0;){for(ft(t),t.lineIndent=0,o=t.input.charCodeAt(t.position);(!n||t.lineIndent<a)&&o===32;)t.lineIndent++,o=t.input.charCodeAt(++t.position);if(!n&&t.lineIndent>a&&(a=t.lineIndent),$(o)){!n&&t.lineIndent>p&&(p=t.lineIndent),l++;continue}t.options.strict&&o===9&&t.lineIndent<a&&c(t,"tab characters must not be used in indentation");const f=t.position===t.lineStart&&Q(t);if(t.options.strict&&o!==0&&!f&&!n&&p>t.lineIndent&&c(t,"a block scalar's leading empty lines cannot be indented more than its content"),t.lineIndent<a||o===0||f){r===At?t.result=t.result+`
24
+ `.repeat(i?1+l:l):r===et&&i&&(t.result=`${t.result}
25
+ `);break}s?C(o)?(u=!0,t.result=t.result+`
26
+ `.repeat(i?1+l:l)):u?(u=!1,t.result=t.result+`
27
+ `.repeat(l+1)):l===0?i&&(t.result=`${t.result} `):t.result=t.result+`
28
+ `.repeat(l):t.result=t.result+`
29
+ `.repeat(i?1+l:l),i=!0,n=!0,l=0;const b=t.position;for(;!$(o)&&o!==0;)o=t.input.charCodeAt(++t.position);N(t,b,t.position)}return!0},z=1,Dt=2,Rt=3,X=4,kt=(t,e)=>{const o=t.tag,s=t.anchor,r=t.build.seq();let i=!1;if(t.firstTabInLine!==-1)return!1;const n=t.line;t.anchor!==null&&(t.build.anchor(r,t.anchor),t.anchorMap.set(t.anchor,r));let a=t.input.charCodeAt(t.position);for(;a!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,c(t,"tab characters must not be used in indentation")),a===45);){const l=t.input.charCodeAt(t.position+1);if(!k(l))break;if(i=!0,t.position++,A(t,!0,-1)&&t.lineIndent<=e){t.build.push(r,null),a=t.input.charCodeAt(t.position);continue}const{line:u}=t;if(_(t,e,Rt,!1,!0),t.build.push(r,t.result),A(t,!0,-1),a=t.input.charCodeAt(t.position),(t.line===u||t.lineIndent>e)&&a!==0)c(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return i?(t.options.strict&&n===t.documentMarkerLine&&c(t,"a block collection cannot start on the same line as the document start marker"),t.tag=o,t.anchor=s,t.kind="sequence",t.result=r,!0):!1},Qt=(t,e,o)=>{const s=t.tag,r=t.anchor,i=t.build.map();let n,a=null,l=null,u=null,p=!1,f=!1,b=!1,d=-1,h=-1;if(t.firstTabInLine!==-1)return!1;const m=t.line;t.anchor!==null&&(t.build.anchor(i,t.anchor),t.anchorMap.set(t.anchor,i));let g=t.input.charCodeAt(t.position);for(;g!==0;){!p&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,c(t,"tab characters must not be used in indentation"));const S=t.input.charCodeAt(t.position+1),{line:P}=t;if((g===63||g===58)&&k(S))g===63?(p&&(n=F(t,i,n,a,l,null),a=null,l=null,u=null),f=!0,p=!0,b=!0):p?(p=!1,b=!0):(f=!0,p=!1,b=!1,a=null,l=null),t.position+=1,g=S;else{if(d=t.position,!_(t,o,Dt,!1,!0))break;if(t.line===P){for(g=t.input.charCodeAt(t.position);C(g);)g=t.input.charCodeAt(++t.position);if(g===58)g=t.input.charCodeAt(++t.position),k(g)||c(t,"a whitespace character is expected after the key-value separator within a block mapping"),p&&(n=F(t,i,n,a,l,null),a=null,l=null,u=null),f=!0,p=!1,b=!1,a=t.tag,l=t.result,h=t.position+1;else if(f)c(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=s,t.anchor=r,!0}else if(f)c(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=s,t.anchor=r,!0}if((t.line===P||t.lineIndent>e)&&(_(t,e,X,!0,b)&&(p?l=t.result:u=t.result),p||(vo(t,i,l,d,h,t.position),n=F(t,i,n,a,l,u),a=null,l=null,u=null,d=-1,h=-1),A(t,!0,-1),g=t.input.charCodeAt(t.position)),(t.line===P||t.lineIndent>e)&&g!==0)c(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return p&&F(t,i,n,a,l,null),f&&(t.options.strict&&m===t.documentMarkerLine&&c(t,"a block collection cannot start on the same line as the document start marker"),t.tag=s,t.anchor=r,t.kind="mapping",t.result=i),f},Eo=(t,e)=>{const o=t.tag,s=t.anchor;let r,i=t.input.charCodeAt(t.position),n,a,l;if(i===91)n=93,a=!1,l=t.build.seq();else if(i===123)n=125,a=!0,l=t.build.map();else return!1;t.anchor!==null&&(t.build.anchor(l,t.anchor),t.anchorMap.set(t.anchor,l)),i=t.input.charCodeAt(++t.position);let u=!0;for(;i!==0;){if(A(t,!0,e),i=t.input.charCodeAt(t.position),i===n)return t.position++,t.tag=o,t.anchor=s,t.kind=a?"mapping":"sequence",t.result=l,!0;u?i===44&&c(t,"expected the node content, but found ','"):c(t,"missed comma between flow collection entries");let p=null,f=null,b=null,d=!1;if(i===63){const m=t.input.charCodeAt(t.position+1);k(m)&&(d=!0,t.position++,A(t,!0,e))}const h=t.line;if(_(t,e,z,!1,!0),p=t.tag,f=t.result,A(t,!0,e),i=t.input.charCodeAt(t.position),i===58&&(a||d||h===t.line)&&(d=!0,t.position++,A(t,!0,e),_(t,e,z,!1,!0),b=t.result),a)r=F(t,l,r,p,f,b);else if(d){const m=t.build.map();r=F(t,m,r,p,f,b),t.build.push(l,m)}else t.build.push(l,f);A(t,!0,e),i=t.input.charCodeAt(t.position),i===44?(u=!0,i=t.input.charCodeAt(++t.position)):u=!1}return c(t,"unexpected end of the stream within a flow collection")},vt=(t,e,o,s)=>{const r=mo(t);s&&Yt(t,s),t.tag=null,t.anchor=null,t.kind=null,t.result=null;let i=!1;try{i=Qt(t,e,o)&&t.kind==="mapping"}catch(n){if(!(n instanceof x))throw n;i=!1}return i?!0:(bo(t,r),!1)},_o=(t,e,o,s,r)=>{let i=1,n=!1,a=!1,l=!1,u=!1,p=null;t.tag=null,t.anchor=null,t.kind=null,t.result=null;const f=o===X||o===Rt,b=f;let d=f;if(s&&A(t,!0,-1)&&(n=!0,t.lineIndent>e?i=1:t.lineIndent===e?i=0:i=-1),i===1)for(;;){const h=t.input.charCodeAt(t.position);if(n&&(h===33&&t.tag!==null||h===38&&t.anchor!==null)){u=!0;break}if(n&&(h===33||h===38)&&(t.tag!==null||t.anchor!==null)){const g=t.tag,S=t.anchor;if(vt(t,t.position-t.lineStart,e+1)){t.tag=g,t.anchor=S,t.anchor!==null&&t.anchorMap.set(t.anchor,t.result),l=!0;break}t.tag=g,t.anchor=S}t.options.strict&&n&&i!==1&&(h===33||h===38)&&c(t,"a node property must be indented more than its parent node");const m=qt(t);if(!No(t)&&!xo(t))break;p??=m,A(t,!0,-1)?(n=!0,d=f,t.lineIndent>e?i=1:t.lineIndent===e?i=0:i=-1):d=!1}if(d&&(d=n||r),l)a=!0;else if(i===1||o===X){const h=o===z||o===Dt?e:e+1,m=t.position-t.lineStart;if(i===1){let g=d&&(kt(t,m)||Qt(t,m,h));g||(g=Eo(t,h));const S=t.input.charCodeAt(t.position),P=p!==null&&f&&!d&&S!==124&&S!==62;let ht=!1;if(!g&&P&&p){const M=p.position-p.lineStart;ht=vt(t,M,h,p)}if(t.options.strict&&u&&t.kind!=="mapping"&&t.kind!=="sequence"&&c(t,"a node may only have one anchor and one tag"),g||ht)a=!0;else{let M=b&&Fo(t,h);M||(M=Oo(t,h)),M||(M=To(t,h)),M?a=!0:Mo(t)?(a=!0,(t.tag!==null||t.anchor!==null)&&c(t,"alias node should not have any properties")):Lo(t,h,o===z)&&(a=!0,t.tag??="?")}}else i===0&&(a=d&&kt(t,m))}if(t.tag==="?"){if(t.kind==="scalar"&&typeof t.result=="string"){const h=de(t.tags,t.result);if(h)return t.result=h.value,t.result=t.build.finish(t,t.result,a),t.anchor!==null&&t.anchorMap.set(t.anchor,t.result),t.tag!==null||t.anchor!==null||a;const m=t.resolveScalar(t.result);m===Bt&&c(t,`unquoted scalar "${t.result}" is not valid under the json schema`),t.result=m}}else if(t.tag!==null&&t.tag!=="!"&&(t.kind==="scalar"||!a&&t.kind===null)){const h=typeof t.result=="string"?t.result:"",m=t.tags?.byTag.get(t.tag);if(m)t.result=m.resolve(h);else{const g=pe(t.tag,h);g.status==="ok"?t.result=g.value:g.status==="invalid"&&c(t,`unacceptable value "${h}" for the "${t.tag}" tag`)}}return t.result=t.build.finish(t,t.result,a),t.anchor!==null&&t.anchorMap.set(t.anchor,t.result),t.tag!==null||t.anchor!==null||a},_=(t,e,o,s,r)=>{t.depth>=t.options.maxDepth&&c(t,`maximum nesting depth of ${String(t.options.maxDepth)} exceeded`),t.depth+=1;try{return _o(t,e,o,s,r)}finally{t.depth-=1}},Po=/^\d+\.\d+$/,Vt=t=>{let e=!1,o=!1;t.tagMap=new Map,t.anchorMap=new Map,t.aliasCount=0,t.resetVersionDirective();let s;for(;t.input.charCodeAt(t.position)!==0&&(A(t,!0,-1),s=t.input.charCodeAt(t.position),!(t.lineIndent>0||s!==37));){e=!0,s=t.input.charCodeAt(++t.position);let{position:n}=t;for(;s!==0&&!k(s);)s=t.input.charCodeAt(++t.position);const a=t.input.slice(n,t.position),l=[];for(a.length===0&&c(t,"directive name must not be less than one character in length");s!==0;){for(;C(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!$(s));break}if($(s))break;for(n=t.position;s!==0&&!k(s);)s=t.input.charCodeAt(++t.position);l.push(t.input.slice(n,t.position))}s!==0&&ft(t),a==="YAML"?(o?c(t,"duplication of a YAML directive"):l.length!==1?c(t,"the YAML directive accepts exactly one argument"):Po.test(l[0]??"")||c(t,"ill-formed argument of the YAML directive"),o=!0,t.applyVersionDirective(l[0])):a==="TAG"?l.length===2?t.tagMap.set(l[0],l[1]):c(t,"the TAG directive accepts exactly two arguments"):yo(t,`unknown document directive "${a}"`)}A(t,!0,-1);let r=!1;t.lineIndent===0&&t.input.startsWith("---",t.position)&&k(t.input.charCodeAt(t.position+3))?(t.position+=3,r=!0,A(t,!0,-1)===0&&(t.documentMarkerLine=t.line)):e&&c(t,"directives end mark is expected");const i=_(t,t.lineIndent-1,X,!1,!0);if(t.documentMarkerLine=-1,A(t,!0,-1),(i||r||e)&&t.documents.push(t.result),t.position===t.lineStart&&Q(t)){if(t.input.charCodeAt(t.position)===46){t.position+=3;let n=t.input.charCodeAt(t.position);for(;n===32||n===9;)n=t.input.charCodeAt(++t.position);n!==0&&n!==35&&!$(n)&&c(t,"unexpected content after document end marker"),A(t,!0,-1)}return}t.position<t.length-1&&c(t,"end of the stream or a document separator is expected")},Bo=t=>{let e=t;if(e.length>0){const o=e.charCodeAt(e.length-1);o!==10&&o!==13&&(e+=`
30
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1))}return e},Jt=(t,e)=>{if(typeof t!="string")throw new x(`expected a string to parse, received ${t===null?"null":typeof t}`);let o=Bo(t);if(o.includes("\0"))throw new x("null byte is not allowed in input");o+="\0";const s=new go(o,e);return s.position=0,s.lineIndent=0,s},Y=(t,e,o,s)=>{if(Array.isArray(o))for(let r=o.length-1;r>=0;r--){const i=Y(o,String(r),o[r],s);o[r]=i}else if(o instanceof Map)for(const r of o.keys()){const i=Y(o,r,o.get(r),s);i===void 0?o.delete(r):o.set(r,i)}else if(Kt(o)){const r=o;for(const i of Object.keys(r)){const n=Y(r,i,r[i],s);n===void 0?delete r[i]:r[i]=n}}return s.call(t,e,o)},Wo=(t,e={})=>{const o=Jt(t,e);for(;o.position<o.length-1;)Vt(o);const{reviver:s}=e;return s?o.documents.map(r=>Y({"":r},"",r,s)):o.documents},qo=t=>{const{input:e}=t;let o=e.indexOf(`
31
+ `,t.position);for(;o!==-1;){const s=o+1,r=e.slice(s,s+3);if(r==="---"||r==="...")return t.position=s,t.lineStart=s,t.line+=1,t.lineIndent=0,t.firstTabInLine=-1,t.position<t.length-1;o=e.indexOf(`
32
+ `,s)}return!1},Gt=(t,e={})=>{const o=[],s=Jt(t,{...e,onWarning:i=>{o.push(i),e.onWarning?.(i)}});s.mappingRanges=new WeakMap;const r=[];for(;s.position<s.length-1;){const i=s.documents.length,n=o.length,a=s.position;try{Vt(s)}catch(l){if(!(l instanceof x))throw l;if(r.push({contents:null,errors:[l],warnings:o.slice(n)}),!qo(s))break;continue}for(const l of s.documents.slice(i))r.push({contents:l,errors:[],warnings:o.slice(n)});if(s.position===a)break}return{documents:r,ranges:s.mappingRanges}},St=(t,e={})=>{const o=Wo(t,e);if(o.length!==0){if(o.length===1)return o[0];throw new x("expected a single document in the stream, but found more")}},Yo=/\s/,wt=(t,e)=>{let o=e;for(;o>0&&Yo.test(t[o-1]);)o-=1;return o},Ko=t=>typeof t=="object"&&t!==null&&!Array.isArray(t),It=(t,e,o)=>{const s=q(t,o).trimEnd();if(!s.includes(`
33
+ `)&&!Ko(t)&&!Array.isArray(t))return` ${s}`;const r=" ".repeat(e+(o.indent??2));return`
34
+ ${s.split(`
35
+ `).map(i=>i===""?i:r+i).join(`
36
+ `)}`};class zt{errors;warnings;contents;#t;#e=[];#r;#o;#s;constructor(e,o,s,r={}){this.#s=e,this.#t=s,this.#r=r,this.contents=o.contents,this.errors=o.errors,this.warnings=o.warnings}toJS(e){const o=I(this.contents);return e?.reviver?Y({"":o},"",o,e.reviver):o}toJSON(){return this.toJS()}getIn(e){this.#o??={value:I(this.contents)};let o=this.#o.value;for(const s of e){if(o===null||typeof o!="object"&&typeof o!="string")return;o=o[s]}return o}get(e){return this.getIn([e])}hasIn(e){return this.getIn(e)!==void 0}has(e){return this.hasIn([e])}setIn(e,o){if(e.length===0)throw new E("setIn requires a non-empty path");const s=e.map(String);let r=this.#i(),i=0;for(;i<s.length-1;){const p=r.get(s[i],!0);if(!U(p))break;r=p,i+=1}const n=this.#t.get(r)??[],a=s.slice(i);if(n.length===0&&r!==this.contents)throw new E(`cannot edit ${JSON.stringify(e)}: the target is not a block mapping`);const l=a.length===1?n.find(p=>p.key===a[0]):void 0;l?this.#n(l,o):this.#a(n,a,o);let u=r;for(const p of a.slice(0,-1)){const f=new T;u.set(L(p),f),u=f}u.set(L(a.at(-1)),L(o)),this.#o=void 0}set(e,o){this.setIn([e],o)}toString(){if(this.#e.length===0)return this.#s;const e=this.#e.toSorted((s,r)=>r.start-s.start);let o=this.#s;for(const s of e)o=o.slice(0,s.start)+s.text+o.slice(s.end);return this.#s=o,this.#e.length=0,o}#i(){if(this.contents===null||this.contents===void 0){const e=new T;return this.contents=e,this.#o=void 0,e}if(!U(this.contents))throw new E("cannot edit a document whose root is not a mapping");return this.contents}#n(e,o){const s=It(o,e.column,this.#r),r=e.valueStart>0?e.valueStart-1:e.end,i=Math.max(r,wt(this.#s,e.end));this.#e.push({end:i,start:r,text:s})}#a(e,o,s){let r;for(const u of e)(r===void 0||u.end>r.end)&&(r=u);const i=r?.column??0;let n="";for(const[u,p]of o.entries()){const f=" ".repeat(i+u*(this.#r.indent??2));n+=`
37
+ ${f}${p}:`,u===o.length-1&&(n+=It(s,i+u*(this.#r.indent??2),this.#r))}const a=wt(this.#s,r?.end??this.#s.length);let l=a===0?n.slice(1):n;this.#s.slice(a).includes(`
38
+ `)||(l+=`
39
+ `),this.#e.push({end:a,start:a,text:l})}}const Uo={contents:null,errors:[],warnings:[]};function Zo(t,e,o){const s=typeof e=="function"?St(t,{...o,reviver:e}):St(t,e??o);return s===void 0?null:s}function Ho(t,e,o){if(!(typeof e=="function"||Array.isArray(e)||e===null)&&e!==void 0)return q(t,e);let s={};if(typeof o=="number"?s={indent:o}:typeof o=="string"?s={indent:o.length}:o&&(s=o),Array.isArray(e)){const r=new Set(e.map(String));return q(t,{...s,replacer:(i,n)=>{if(i===""||r.has(i))return n}})}return typeof e=="function"?q(t,{...s,replacer:e}):q(t,s)}const ts=(t,e)=>{const{documents:o,ranges:s}=Gt(t,{...e,nodes:!0});return new zt(t,o[0]??Uo,s)},es=(t,e)=>{const{documents:o,ranges:s}=Gt(t,{...e,nodes:!0});return o.map(r=>new zt(t,r,s))};export{Zo as L,Ho as S,es as h,ts as y};
@@ -1 +1 @@
1
- import{createRequire as t}from"node:module";const o=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,{env:s}=o,r=e=>e in s&&s[e]!=="0"&&s[e]!=="false",_=r("CI")||r("CONTINUOUS_INTEGRATION");export{_ as I};
1
+ import{createRequire as t}from"node:module";const o=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,{env:s}=o,c=e=>e in s&&s[e]!=="0"&&s[e]!=="false",i=c("CI")||c("CONTINUOUS_INTEGRATION");export{i};
@@ -0,0 +1,22 @@
1
+ import{createRequire as wu}from"node:module";import{L as Fu}from"./index-BisalDCf.js";let xu;const vu=u=>(xu??=wu(import.meta.url))(u),V=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,$u=u=>{if(typeof V<"u"&&V.versions&&V.versions.node){const[D,e]=V.versions.node.split(".").map(Number);if(D>22||D===22&&e>=3||D===20&&e>=16)return V.getBuiltinModule(u)}return vu(u)},{createRequire:Y}=$u("node:module"),T0=0,L0=4,Su=Symbol("findUpStop"),M0=/"(?:[^"\\]|\\.)*"|\/\/[^\r\n]*|\/\*[\s\S]*?\*\//g,Nu=/^[A-Z]:\//i,I=(u="")=>u&&u.replaceAll("\\","/").replace(Nu,D=>D.toUpperCase()),ku=/^[/\\]{2}/,Pu=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,iu=/^[A-Z]:$/i,Cu=/^\/([A-Z]:)?$/i,Au=/^([A-Z]:)\/$/i,ju=/[^/](\.[^./]+)$/,Ou=/^[/\\]|^[a-z]:[/\\]/i,zu=/\/$/,_u=()=>{if(typeof process.cwd=="function")try{const u=process.cwd();if(typeof u=="string")return I(u)}catch{}return"/"},V0="/",mu=(u,D)=>{let e="",r=0,n=-1,i=0,a;for(let A=0;A<=u.length;++A){if(A<u.length)a=u[A];else{if(a==="/")break;a="/"}if(a==="/"){if(!(n===A-1||i===1))if(i===2){if(e.length<2||r!==2||!e.endsWith(".")||e.at(-2)!=="."){if(e.length>2){const p=e.lastIndexOf("/");p===-1?(e="",r=0):(e=e.slice(0,p),r=e.length-1-e.lastIndexOf("/")),n=A,i=0;continue}else if(e.length>0){e="",r=0,n=A,i=0;continue}}D&&(e+=e.length>0?"/..":"..",r=2)}else e.length>0?e+=`/${u.slice(n+1,A)}`:e=u.slice(n+1,A),r=A-n-1;n=A,i=0}else a==="."&&i!==-1?++i:i=-1}return e},M=u=>Pu.test(u),Iu=function(u){if(u.length===0)return".";u=I(u);const D=ku.exec(u),e=M(u),r=u.at(-1)==="/";return u=mu(u,!e),u.length===0?e?"/":r?"./":".":(r&&(u+="/"),iu.test(u)&&(u+="/"),D?e?`//${u}`:`//./${u}`:e&&!M(u)?`/${u}`:u)},R0=(...u)=>{let D="";for(const e of u)if(e)if(D.length>0){const r=D.at(-1)==="/",n=e[0]==="/";r&&n?D+=e.slice(1):D+=r||n?e:`/${e}`}else D+=e;return Iu(D)},H=function(...u){u=u.map(r=>I(r));let D="",e=!1;for(let r=u.length-1;r>=-1&&!e;r--){const n=r>=0?u[r]:_u();!n||n.length===0||(D=`${n}/${D}`,e=M(n))}return D=mu(D,!e),iu.test(D)?`${D}/`:e&&!M(D)?`/${D}`:D.length>0?D:"."},J0=function(u){return I(u)},Tu=function(u){return ju.exec(I(u))?.[1]??""},q0=function(u,D){const e=H(u).replace(Cu,"$1").replace(Au,"$1").split("/"),r=H(D).replace(Cu,"$1").replace(Au,"$1").split("/");if(r[0][1]===":"&&e[0][1]===":"&&e[0]!==r[0])return r.join("/");const n=Math.min(e.length,r.length);let i=0;for(;i<n&&e[i]===r[i];)i+=1;const a=e.length-i;return[...Array.from({length:a}).fill(".."),...r.slice(i)].join("/")},gu=u=>{const D=I(u).replace(zu,""),e=D.lastIndexOf("/");if(e===-1)return M(u)?"/":".";const r=D.slice(0,e);return iu.test(r)?`${r}/`:r||(M(u)?"/":".")},Lu=(u,D)=>{const e=I(u),r=e.slice(e.lastIndexOf("/")+1);if(D&&r.endsWith(D)){if(D===e)return"";const n=r.slice(0,-D.length);if(n.length>0)return n}return r},Mu=function(u){const D=Ou.exec(u)?.[0]?.replaceAll("\\","/")??"",e=Lu(u),r=Tu(e);return{base:e,dir:gu(u),ext:r,name:e.slice(0,e.length-r.length),root:D}};let Vu;const Ru=u=>(Vu??=Y(import.meta.url))(u),R=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ju=u=>{if(typeof R<"u"&&R.versions&&R.versions.node){const[D,e]=R.versions.node.split(".").map(Number);if(D>22||D===22&&e>=3||D===20&&e>=16)return R.getBuiltinModule(u)}return Ru(u)},{fileURLToPath:qu}=Ju("node:url");function Wu(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var au,cu;function Uu(){return cu||(cu=1,au=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cr3","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),au}var Hu=Uu();const Zu=Wu(Hu);new Set(Zu);const Gu=/^(?:\.?\.[/\\]|\.\.\B)/,W0=u=>Gu.test(u)||u==="..",K=u=>I(u instanceof URL?qu(u):u),Ku=u=>{if(!u||!(u instanceof URL)&&typeof u!="string")throw new TypeError("Path must be a non-empty string or URL.")};let Qu;const Xu=u=>(Qu??=Y(import.meta.url))(u),J=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Yu=u=>{if(typeof J<"u"&&J.versions&&J.versions.node){const[D,e]=J.versions.node.split(".").map(Number);if(D>22||D===22&&e>=3||D===20&&e>=16)return J.getBuiltinModule(u)}return Xu(u)},{statSync:u0,lstatSync:D0}=Yu("node:fs"),U0=(u,D={})=>{if(typeof u!="string"&&!Array.isArray(u)&&typeof u!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const e=D.cwd?K(D.cwd):process.cwd();let r=H(e);const{root:n}=Mu(r),i=K(D.stopAt??n),a=H(r,i),A=D.type??"file",p=function(c){return typeof u=="function"?[u(c)]:typeof u=="string"?[u]:Array.isArray(u)?u:[u]};D.allowSymlinks??=!0;const v=D.allowSymlinks?u0:D0;for(;r;){for(let c of p(r)){if(c===Su)return;if(c===void 0)continue;Buffer.isBuffer(c)?c=c.toString():c instanceof URL&&(c=K(c));const B=M(c)?c:H(r,c);try{const h=v(B);if(A==="file"&&h.isFile()||A==="directory"&&h.isDirectory())return B}catch{}}if(r===a||r===n)break;r=gu(r)}};let e0=class extends Error{constructor(D){super(`ENOENT: ${D}`)}get code(){return"ENOENT"}set code(D){throw new Error("Cannot overwrite code ENOENT")}get name(){return"NotFoundError"}set name(D){throw new Error("Cannot overwrite name of NotFoundError")}};class t0 extends Error{constructor(D){super(`EPERM: Operation not permitted, ${D}`)}get code(){return"EPERM"}set code(D){throw new Error("Cannot overwrite code EPERM")}get name(){return"PermissionError"}set name(D){throw new Error("Cannot overwrite name of PermissionError")}}const r0=(u,D)=>{const e=u?.code;return e==="ENOENT"?new e0(`no such file or directory, open '${D}'`):e==="EACCES"||e==="EPERM"?new t0(`unable to read the non-readable file: ${D}`):u};let n0;const i0=u=>(n0??=Y(import.meta.url))(u),q=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,du=u=>{if(typeof q<"u"&&q.versions&&q.versions.node){const[D,e]=q.versions.node.split(".").map(Number);if(D>22||D===22&&e>=3||D===20&&e>=16)return q.getBuiltinModule(u)}return i0(u)},{readFileSync:s0}=du("node:fs"),{unzipSync:o0,brotliDecompressSync:F0}=du("node:zlib"),C0={brotli:F0,gzip:o0,none:u=>u},A0=(u,D)=>{Ku(u),u=K(u);const{buffer:e,compression:r,encoding:n,flag:i}=D??{};let a;try{a=s0(u,i?{flag:i}:{})}catch(v){throw r0(v,u)}const A=C0[r??"none"],p=A(a);return e?p:p.toString(n??"utf8")},a0=globalThis.process??Object.create(null),Eu={versions:{}},lu=new Proxy(a0,{get(u,D){if(D in u)return u[D];if(D in Eu)return Eu[D]}}),c0=u=>u.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
2
+ `),E0=(u,D,e,r)=>{const n={column:0,line:-1,...u.start},i={...n,...u.end},a=n.line,A=n.column,p=i.line,v=i.column;let c=Math.max(a-(e+1),0),B=Math.min(D.length,p+r);a===-1&&(c=0),p===-1&&(B=D.length);const h=p-a,m={};if(h)for(let l=0;l<=h;l++){const o=l+a;if(!A)m[o]=!0;else if(l===0){const f=D[o-1]?.length;m[o]=[A,(f??0)-A+1]}else if(l===h)m[o]=[0,v];else{const f=D[o-l]?.length;m[o]=[0,f]}}else A===v?m[a]=A?[A,0]:!0:m[a]=[A,(v??0)-(A??0)];return{end:B,markerLines:m,start:c}},l0=lu.platform==="win32"&&!lu.env?.WT_SESSION?">":"❯",Z0=(u,D,e)=>{const r={linesAbove:2,linesBelow:3,prefix:"",showGutter:!0,tabWidth:4,...e,color:{gutter:l=>l,marker:l=>l,message:l=>l,...e?.color}},n=typeof D.start.column=="number";let i=(u.includes("\r")?c0(u):u).split(`
3
+ `);typeof r.tabWidth=="number"&&u.includes(" ")&&(i=i.map(l=>l.replaceAll(" "," ".repeat(r.tabWidth))));const{end:a,markerLines:A,start:p}=E0(D,i,r.linesAbove,r.linesBelow),v=String(a).length,{gutter:c,marker:B,message:h}=r.color;let m=i.slice(p,a).map((l,o)=>{const f=p+1+o,s=A[f],w=String(f).padStart(v),$=!A[f+1],y=` ${w}${r.showGutter?" |":""}`;if(s){let x="";if(Array.isArray(s)){const z=l.replaceAll(/[^\t]/g," ").slice(0,Math.max(s[0]-1,0)),bu=s[1]||1;x=[`
4
+ `,r.prefix+c(y.replaceAll(/\d/g," "))," ",z,B("^").repeat(bu)].join(""),$&&r.message&&(x+=` ${h(r.message)}`)}return[r.prefix+B(l0),c(y),l.length>0?` ${l}`:"",x].join("")}return`${r.prefix} ${c(y)}${l.length>0?` ${l}`:""}`}).join(`
5
+ `);return r.message&&!n&&(m=`${r.prefix+" ".repeat(v+1)+r.message}
6
+ ${m}`),m},fu=(u,D)=>{let e=0,r=D.length-2;for(;e<r;){const n=e+(r-e>>1);if(u<D[n])r=n-1;else if(u>=D[n+1])e=n+1;else{e=n;break}}return e},f0=/\n|\r(?!\n)/,B0=u=>u.split(f0).reduce((D,e)=>(D.push(D.at(-1)+e.length+1),D),[0]),G0=(u,D,e)=>{if(!Array.isArray(u)&&typeof u!="string"||(typeof u=="string"||Array.isArray(u))&&u.length===0)return{column:0,line:0};if(typeof D!="number"||typeof u=="string"&&D>=u.length||Array.isArray(u)&&D+1>=u.at(-1))return{column:0,line:0};if(typeof u=="string"){const n=B0(u),i=fu(D,n);return{column:D-n[i]+1,line:i+1}}const r=fu(D,u);return{column:D-u[r]+1,line:r+1}};class K0 extends Error{fileName;codeFrame;name="JSONError";#u;constructor(D){super(),this.#u=D}get message(){return`${this.#u}${this.fileName?` in ${this.fileName}`:""}${this.codeFrame?`
7
+
8
+ ${this.codeFrame}
9
+ `:""}`}set message(D){this.#u=D}}let p0;const m0=u=>(p0??=Y(import.meta.url))(u),W=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,su=u=>{if(typeof W<"u"&&W.versions&&W.versions.node){const[D,e]=W.versions.node.split(".").map(Number);if(D>22||D===22&&e>=3||D===20&&e>=16)return W.getBuiltinModule(u)}return m0(u)},g0=su("fs"),d0=su("os"),h0=su("path");var uu={},Bu;function y0(){if(Bu)return uu;Bu=1;var u=Object.defineProperty,D=(c,B)=>u(c,"name",{value:B,configurable:!0}),e=g0,r=d0,n=h0;const i=D(c=>{let B="";for(let h=0;h<c.length;h+=1){const m=c[h],l=m.toUpperCase();B+=m===l?m.toLowerCase():l}return B},"invertCase"),a=new Map,A=D((c,B)=>{const h=n.join(c,`.is-fs-case-sensitive-test-${process.pid}`);try{return B.writeFileSync(h,""),!B.existsSync(i(h))}finally{try{B.unlinkSync(h)}catch{}}},"checkDirectoryCaseWithWrite"),p=D((c,B,h)=>{try{return A(c,h)}catch(m){if(B===void 0)return A(r.tmpdir(),h);throw m}},"checkDirectoryCaseWithFallback"),v=D((c,B=e,h=!0)=>{const m=c??process.cwd();if(h&&a.has(m))return a.get(m);let l;const o=i(m);return o!==m&&B.existsSync(m)?l=!B.existsSync(o):l=p(m,c,B),h&&a.set(m,l),l},"isFsCaseSensitive");return uu.isFsCaseSensitive=v,uu}var b0=y0();const Q0=b0.isFsCaseSensitive;function X0(u,D,e){const r={},{buffer:n,compression:i,encoding:a="utf8",flag:A,...p}=r,v=A0(u,{buffer:n,compression:i,encoding:a,flag:A});return typeof D=="function"?Fu(v,D,p):Fu(v,p)}var w0=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,x0=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,v0=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Du={Space_Separator:w0,ID_Start:x0,ID_Continue:v0},b={isSpaceSeparator(u){return typeof u=="string"&&Du.Space_Separator.test(u)},isIdStartChar(u){return typeof u=="string"&&(u>="a"&&u<="z"||u>="A"&&u<="Z"||u==="$"||u==="_"||Du.ID_Start.test(u))},isIdContinueChar(u){return typeof u=="string"&&(u>="a"&&u<="z"||u>="A"&&u<="Z"||u>="0"&&u<="9"||u==="$"||u==="_"||u==="‌"||u==="‍"||Du.ID_Continue.test(u))},isDigit(u){return typeof u=="string"&&/[0-9]/.test(u)},isHexDigit(u){return typeof u=="string"&&/[0-9A-Fa-f]/.test(u)}};let tu,N,j,Q,_,k,S,ou,Z;var $0=function(D,e){tu=String(D),N="start",j=[],Q=0,_=1,k=0,S=void 0,ou=void 0,Z=void 0;do S=S0(),P0[N]();while(S.type!=="eof");return typeof e=="function"?ru({"":Z},"",e):Z};function ru(u,D,e){const r=u[D];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let n=0;n<r.length;n++){const i=String(n),a=ru(r,i,e);a===void 0?delete r[i]:Object.defineProperty(r,i,{value:a,writable:!0,enumerable:!0,configurable:!0})}else for(const n in r){const i=ru(r,n,e);i===void 0?delete r[n]:Object.defineProperty(r,n,{value:i,writable:!0,enumerable:!0,configurable:!0})}return e.call(u,D,r)}let C,F,U,P,E;function S0(){for(C="default",F="",U=!1,P=1;;){E=O();const u=hu[C]();if(u)return u}}function O(){if(tu[Q])return String.fromCodePoint(tu.codePointAt(Q))}function t(){const u=O();return u===`
10
+ `?(_++,k=0):u?k+=u.length:k++,u&&(Q+=u.length),u}const hu={default(){switch(E){case" ":case"\v":case"\f":case" ":case" ":case"\uFEFF":case`
11
+ `:case"\r":case"\u2028":case"\u2029":t();return;case"/":t(),C="comment";return;case void 0:return t(),g("eof")}if(b.isSpaceSeparator(E)){t();return}return hu[N]()},comment(){switch(E){case"*":t(),C="multiLineComment";return;case"/":t(),C="singleLineComment";return}throw d(t())},multiLineComment(){switch(E){case"*":t(),C="multiLineCommentAsterisk";return;case void 0:throw d(t())}t()},multiLineCommentAsterisk(){switch(E){case"*":t();return;case"/":t(),C="default";return;case void 0:throw d(t())}t(),C="multiLineComment"},singleLineComment(){switch(E){case`
12
+ `:case"\r":case"\u2028":case"\u2029":t(),C="default";return;case void 0:return t(),g("eof")}t()},value(){switch(E){case"{":case"[":return g("punctuator",t());case"n":return t(),T("ull"),g("null",null);case"t":return t(),T("rue"),g("boolean",!0);case"f":return t(),T("alse"),g("boolean",!1);case"-":case"+":t()==="-"&&(P=-1),C="sign";return;case".":F=t(),C="decimalPointLeading";return;case"0":F=t(),C="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":F=t(),C="decimalInteger";return;case"I":return t(),T("nfinity"),g("numeric",1/0);case"N":return t(),T("aN"),g("numeric",NaN);case'"':case"'":U=t()==='"',F="",C="string";return}throw d(t())},identifierNameStartEscape(){if(E!=="u")throw d(t());t();const u=nu();switch(u){case"$":case"_":break;default:if(!b.isIdStartChar(u))throw pu();break}F+=u,C="identifierName"},identifierName(){switch(E){case"$":case"_":case"‌":case"‍":F+=t();return;case"\\":t(),C="identifierNameEscape";return}if(b.isIdContinueChar(E)){F+=t();return}return g("identifier",F)},identifierNameEscape(){if(E!=="u")throw d(t());t();const u=nu();switch(u){case"$":case"_":case"‌":case"‍":break;default:if(!b.isIdContinueChar(u))throw pu();break}F+=u,C="identifierName"},sign(){switch(E){case".":F=t(),C="decimalPointLeading";return;case"0":F=t(),C="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":F=t(),C="decimalInteger";return;case"I":return t(),T("nfinity"),g("numeric",P*(1/0));case"N":return t(),T("aN"),g("numeric",NaN)}throw d(t())},zero(){switch(E){case".":F+=t(),C="decimalPoint";return;case"e":case"E":F+=t(),C="decimalExponent";return;case"x":case"X":F+=t(),C="hexadecimal";return}return g("numeric",P*0)},decimalInteger(){switch(E){case".":F+=t(),C="decimalPoint";return;case"e":case"E":F+=t(),C="decimalExponent";return}if(b.isDigit(E)){F+=t();return}return g("numeric",P*Number(F))},decimalPointLeading(){if(b.isDigit(E)){F+=t(),C="decimalFraction";return}throw d(t())},decimalPoint(){switch(E){case"e":case"E":F+=t(),C="decimalExponent";return}if(b.isDigit(E)){F+=t(),C="decimalFraction";return}return g("numeric",P*Number(F))},decimalFraction(){switch(E){case"e":case"E":F+=t(),C="decimalExponent";return}if(b.isDigit(E)){F+=t();return}return g("numeric",P*Number(F))},decimalExponent(){switch(E){case"+":case"-":F+=t(),C="decimalExponentSign";return}if(b.isDigit(E)){F+=t(),C="decimalExponentInteger";return}throw d(t())},decimalExponentSign(){if(b.isDigit(E)){F+=t(),C="decimalExponentInteger";return}throw d(t())},decimalExponentInteger(){if(b.isDigit(E)){F+=t();return}return g("numeric",P*Number(F))},hexadecimal(){if(b.isHexDigit(E)){F+=t(),C="hexadecimalInteger";return}throw d(t())},hexadecimalInteger(){if(b.isHexDigit(E)){F+=t();return}return g("numeric",P*Number(F))},string(){switch(E){case"\\":t(),F+=N0();return;case'"':if(U)return t(),g("string",F);F+=t();return;case"'":if(!U)return t(),g("string",F);F+=t();return;case`
13
+ `:case"\r":throw d(t());case"\u2028":case"\u2029":j0(E);break;case void 0:throw d(t())}F+=t()},start(){switch(E){case"{":case"[":return g("punctuator",t())}C="value"},beforePropertyName(){switch(E){case"$":case"_":F=t(),C="identifierName";return;case"\\":t(),C="identifierNameStartEscape";return;case"}":return g("punctuator",t());case'"':case"'":U=t()==='"',C="string";return}if(b.isIdStartChar(E)){F+=t(),C="identifierName";return}throw d(t())},afterPropertyName(){if(E===":")return g("punctuator",t());throw d(t())},beforePropertyValue(){C="value"},afterPropertyValue(){switch(E){case",":case"}":return g("punctuator",t())}throw d(t())},beforeArrayValue(){if(E==="]")return g("punctuator",t());C="value"},afterArrayValue(){switch(E){case",":case"]":return g("punctuator",t())}throw d(t())},end(){throw d(t())}};function g(u,D){return{type:u,value:D,line:_,column:k}}function T(u){for(const D of u){if(O()!==D)throw d(t());t()}}function N0(){switch(O()){case"b":return t(),"\b";case"f":return t(),"\f";case"n":return t(),`
14
+ `;case"r":return t(),"\r";case"t":return t()," ";case"v":return t(),"\v";case"0":if(t(),b.isDigit(O()))throw d(t());return"\0";case"x":return t(),k0();case"u":return t(),nu();case`
15
+ `:case"\u2028":case"\u2029":return t(),"";case"\r":return t(),O()===`
16
+ `&&t(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw d(t());case void 0:throw d(t())}return t()}function k0(){let u="",D=O();if(!b.isHexDigit(D)||(u+=t(),D=O(),!b.isHexDigit(D)))throw d(t());return u+=t(),String.fromCodePoint(parseInt(u,16))}function nu(){let u="",D=4;for(;D-- >0;){const e=O();if(!b.isHexDigit(e))throw d(t());u+=t()}return String.fromCodePoint(parseInt(u,16))}const P0={start(){if(S.type==="eof")throw L();eu()},beforePropertyName(){switch(S.type){case"identifier":case"string":ou=S.value,N="afterPropertyName";return;case"punctuator":G();return;case"eof":throw L()}},afterPropertyName(){if(S.type==="eof")throw L();N="beforePropertyValue"},beforePropertyValue(){if(S.type==="eof")throw L();eu()},beforeArrayValue(){if(S.type==="eof")throw L();if(S.type==="punctuator"&&S.value==="]"){G();return}eu()},afterPropertyValue(){if(S.type==="eof")throw L();switch(S.value){case",":N="beforePropertyName";return;case"}":G()}},afterArrayValue(){if(S.type==="eof")throw L();switch(S.value){case",":N="beforeArrayValue";return;case"]":G()}},end(){}};function eu(){let u;switch(S.type){case"punctuator":switch(S.value){case"{":u={};break;case"[":u=[];break}break;case"null":case"boolean":case"numeric":case"string":u=S.value;break}if(Z===void 0)Z=u;else{const D=j[j.length-1];Array.isArray(D)?D.push(u):Object.defineProperty(D,ou,{value:u,writable:!0,enumerable:!0,configurable:!0})}if(u!==null&&typeof u=="object")j.push(u),Array.isArray(u)?N="beforeArrayValue":N="beforePropertyName";else{const D=j[j.length-1];D==null?N="end":Array.isArray(D)?N="afterArrayValue":N="afterPropertyValue"}}function G(){j.pop();const u=j[j.length-1];u==null?N="end":Array.isArray(u)?N="afterArrayValue":N="afterPropertyValue"}function d(u){return X(u===void 0?`JSON5: invalid end of input at ${_}:${k}`:`JSON5: invalid character '${yu(u)}' at ${_}:${k}`)}function L(){return X(`JSON5: invalid end of input at ${_}:${k}`)}function pu(){return k-=5,X(`JSON5: invalid identifier character at ${_}:${k}`)}function j0(u){console.warn(`JSON5: '${yu(u)}' in strings is not valid ECMAScript; consider escaping`)}function yu(u){const D={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(D[u])return D[u];if(u<" "){const e=u.charCodeAt(0).toString(16);return"\\x"+("00"+e).substring(e.length)}return u}function X(u){const D=new SyntaxError(u);return D.lineNumber=_,D.columnNumber=k,D}var O0=function(D,e,r){const n=[];let i="",a,A,p="",v;if(e!=null&&typeof e=="object"&&!Array.isArray(e)&&(r=e.space,v=e.quote,e=e.replacer),typeof e=="function")A=e;else if(Array.isArray(e)){a=[];for(const o of e){let f;typeof o=="string"?f=o:(typeof o=="number"||o instanceof String||o instanceof Number)&&(f=String(o)),f!==void 0&&a.indexOf(f)<0&&a.push(f)}}return r instanceof Number?r=Number(r):r instanceof String&&(r=String(r)),typeof r=="number"?r>0&&(r=Math.min(10,Math.floor(r)),p=" ".substr(0,r)):typeof r=="string"&&(p=r.substr(0,10)),c("",{"":D});function c(o,f){let s=f[o];switch(s!=null&&(typeof s.toJSON5=="function"?s=s.toJSON5(o):typeof s.toJSON=="function"&&(s=s.toJSON(o))),A&&(s=A.call(f,o,s)),s instanceof Number?s=Number(s):s instanceof String?s=String(s):s instanceof Boolean&&(s=s.valueOf()),s){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof s=="string")return B(s);if(typeof s=="number")return String(s);if(typeof s=="object")return Array.isArray(s)?l(s):h(s)}function B(o){const f={"'":.1,'"':.2},s={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let w="";for(let y=0;y<o.length;y++){const x=o[y];switch(x){case"'":case'"':f[x]++,w+=x;continue;case"\0":if(b.isDigit(o[y+1])){w+="\\x00";continue}}if(s[x]){w+=s[x];continue}if(x<" "){let z=x.charCodeAt(0).toString(16);w+="\\x"+("00"+z).substring(z.length);continue}w+=x}const $=v||Object.keys(f).reduce((y,x)=>f[y]<f[x]?y:x);return w=w.replace(new RegExp($,"g"),s[$]),$+w+$}function h(o){if(n.indexOf(o)>=0)throw TypeError("Converting circular structure to JSON5");n.push(o);let f=i;i=i+p;let s=a||Object.keys(o),w=[];for(const y of s){const x=c(y,o);if(x!==void 0){let z=m(y)+":";p!==""&&(z+=" "),z+=x,w.push(z)}}let $;if(w.length===0)$="{}";else{let y;if(p==="")y=w.join(","),$="{"+y+"}";else{let x=`,
17
+ `+i;y=w.join(x),$=`{
18
+ `+i+y+`,
19
+ `+f+"}"}}return n.pop(),i=f,$}function m(o){if(o.length===0)return B(o);const f=String.fromCodePoint(o.codePointAt(0));if(!b.isIdStartChar(f))return B(o);for(let s=f.length;s<o.length;s++)if(!b.isIdContinueChar(String.fromCodePoint(o.codePointAt(s))))return B(o);return o}function l(o){if(n.indexOf(o)>=0)throw TypeError("Converting circular structure to JSON5");n.push(o);let f=i;i=i+p;let s=[];for(let $=0;$<o.length;$++){const y=c(String($),o);s.push(y!==void 0?y:"null")}let w;if(s.length===0)w="[]";else if(p==="")w="["+s.join(",")+"]";else{let $=`,
20
+ `+i,y=s.join($);w=`[
21
+ `+i+y+`,
22
+ `+f+"]"}return n.pop(),i=f,w}};const z0={parse:$0,stringify:O0};var Y0=z0;export{Lu as $,K as C,Iu as G,W0 as L,Z0 as T,H as U,L0 as _,q0 as a,V0 as b,Mu as c,G0 as d,R0 as e,r0 as f,Y0 as g,e0 as h,M0 as i,U0 as k,X0 as l,gu as m,Ku as n,T0 as o,Q0 as q,K0 as r,J0 as t,M as v,A0 as z};
@@ -0,0 +1 @@
1
+ import{m as k,D as S,f as L}from"./provenance-CvfQEJPQ.js";import{g as $}from"./packument-C55kVxcQ.js";import{f}from"./formatBytes-BHAzNIrn-DFIppnY0.js";import{a as E}from"./build-scripts-pdVmqXRm.js";import{n as h}from"./license-DvlYdo6T.js";import{v as A,U as P,z as x}from"./index-DHD8wb6Z.js";import{S as O}from"./lockfile-DhHAaHN5.js";import{L as b}from"./dependency-scan-DBH2Qo4I.js";const C=2,m=4,y={CRITICAL:0,HIGH:1,LOW:3,MODERATE:C,UNKNOWN:m},ae=(s,e)=>{const n=y[(s.vulnerability.severity??"UNKNOWN").toUpperCase()]??m,t=y[(e.vulnerability.severity??"UNKNOWN").toUpperCase()]??m;return n-t||s.packageName.localeCompare(e.packageName)||s.packageVersion.localeCompare(e.packageVersion)},M=(s,e)=>{const n=y[e.toUpperCase()]??C;return(y[s.toUpperCase()]??m)<=n},R=["firstSeen","installScripts","license","malware","publisherChange","score","unexpectedDeps","vulnerability"],w=6e4,D=(s,e,n)=>{for(const t of n)if(t===s||t===`${s}@${e}`||t.endsWith("*")&&s.startsWith(t.slice(0,-1)))return!0;return!1},W=async(s,e)=>{const n=e.security?.policies?.firstSeen;if(n?.minutes===void 0||n.minutes<=0)return[];const{minutes:t}=n,r=n.exclude??[],a=e.security?.acceptedRisks,c=t*w,o=Date.now();return(await k(s.packages,S,async l=>{if(D(l.name,l.version,r))return;const p=await $(l.name,{workspaceRoot:s.workspaceRoot});if(p===void 0)return;const u=p.time?.[l.version];if(u===void 0)return;const d=Date.parse(u);if(Number.isNaN(d))return;const v=o-d;if(v>=c)return;const g=Math.max(0,Math.floor(v/w));return{acceptedRisk:f(l.name,l.version,a,"firstSeen"),data:{ageMinutes:g,minimumMinutes:t,publishedAt:u},packageName:l.name,policy:"firstSeen",reason:`${l.name}@${l.version} was published ${String(g)} min ago — below the ${String(t)} min firstSeen cooldown.`,severity:"block",version:l.version}})).filter(l=>l!==void 0)},U=(s,e)=>{const n=e.security?.policies?.installScripts;if(!n)return[];const t=n.allow??{},r=n.strict===!0;if(!r&&Object.keys(t).length===0)return[];const a=E(s.workspaceRoot,t,{pinVersions:e.security?.pinVersions===!0});if(a.unapproved.length===0)return[];const c=e.security?.acceptedRisks,o=r?"block":"warn";return a.unapproved.map(i=>({acceptedRisk:f(i.name,i.version??"*",c,"installScripts"),data:{hooks:i.hooks},packageName:i.name,policy:"installScripts",reason:`${i.name}${i.version?`@${i.version}`:""} declares unapproved build script(s): ${i.hooks.join(", ")}`,severity:o,version:i.version??"*"}))},_=new Set(["AND","OR"]),I=s=>{const e=s.replaceAll("("," ").replaceAll(")"," ").split(/\s+/).map(r=>r.trim()).filter(r=>r.length>0),n=[];let t=!1;for(const r of e){const a=r.toUpperCase();if(t){t=!1;continue}if(a==="WITH"){t=!0;continue}if(_.has(a))continue;const c=r.endsWith("+"),o=c?r.slice(0,-1):r,i=h(o)??o;n.push(i),c&&n.push(`${i}-or-later`)}return n},T=s=>{if(typeof s.license=="string"){const e=s.license.trim();return e.length>0?e:void 0}if(s.license&&typeof s.license=="object"&&typeof s.license.type=="string"){const e=s.license.type.trim();if(e.length>0)return e}if(Array.isArray(s.licenses)&&s.licenses.length>0){const e=s.licenses.map(n=>n&&typeof n.type=="string"?n.type.trim():"").filter(n=>n.length>0);if(e.length>0)return e.length===1?e[0]:`(${e.join(" OR ")})`}},V=(s,e)=>{if(e.length===0)return;const n=new Set(e.map(t=>h(t)??t).map(t=>t.toLowerCase()));for(const t of s)if(n.has(t.toLowerCase()))return t},F=(s,e)=>{if(e.length===0)return;const n=new Set(e.map(t=>h(t)??t).map(t=>t.toLowerCase()));for(const t of s)if(!n.has(t.toLowerCase()))return t},j=(s,e)=>{const n=e.security?.policies?.license;if(!n)return[];const t=n.allow??[],r=n.deny??[];if(t.length===0&&r.length===0)return[];const a=e.security?.acceptedRisks,c=[];for(const o of s.packages){const i=s.manifestData?.get(`${o.name}@${o.version}`),l=i?T(i):void 0;if(!l){t.length>0&&c.push({acceptedRisk:f(o.name,o.version,a,"license"),data:{declaredLicense:null},packageName:o.name,policy:"license",reason:`${o.name}@${o.version} declares no license; allow-list mode requires one of: ${t.join(", ")}`,severity:"block",version:o.version});continue}const p=I(l),u=V(p,r);if(u){c.push({acceptedRisk:f(o.name,o.version,a,"license"),data:{declaredLicense:l,deniedLicense:u},packageName:o.name,policy:"license",reason:`${o.name}@${o.version} uses denied license '${u}' (declared: ${l})`,severity:"block",version:o.version});continue}const d=F(p,t);d&&c.push({acceptedRisk:f(o.name,o.version,a,"license"),data:{allowList:t,declaredLicense:l,unallowedLicense:d},packageName:o.name,policy:"license",reason:`${o.name}@${o.version} uses license '${d}' which is not on the allow-list (declared: ${l})`,severity:"block",version:o.version})}return c},K=6e4,z=(s,e,n)=>{for(const t of n)if(t===s||t===`${s}@${e}`||t.endsWith("*")&&s.startsWith(t.slice(0,-1)))return!0;return!1},B=async(s,e)=>{const n=e.security?.policies?.publisherChange;if(n?.mode!=="no-downgrade")return[];const t=n.exclude??[],r=typeof n.ignoreAfter=="number"?n.ignoreAfter*K:void 0,a=e.security?.acceptedRisks,c=Date.now();return(await k(s.packages,S,async i=>{if(z(i.name,i.version,t))return;const l=await $(i.name,{workspaceRoot:s.workspaceRoot});if(l===void 0)return;if(r!==void 0){const d=l.time?.[i.version],v=d===void 0?Number.NaN:Date.parse(d);if(!Number.isNaN(v)&&c-v>r)return}if(l.versions[i.version]?.dist?.attestations?.provenance!==void 0)return;const u=L(l,i.version);if(u!==void 0)return{acceptedRisk:f(i.name,i.version,a,"publisherChange"),data:{priorVersionWithProvenance:u},packageName:i.name,policy:"publisherChange",reason:`${i.name}@${i.version} dropped the provenance attestation that ${i.name}@${u} carried — publisher trust downgrade.`,severity:"block",version:i.version}})).filter(i=>i!==void 0)},Y=s=>{for(const e of Object.values(b))for(const n of[e.file,...e.aliases??[]])if(s===n||s.endsWith(`/${n}`)||s.endsWith(`.${n}`))return e.type},H=(s,e,n)=>{const t=A(e)?e:P(s,e);let r;try{r=x(t)}catch{return}const a=Y(t)??b[n]?.type;if(!a)return;const c=O(r,a);if(c.length===0)return;const o=new Set;for(const i of c)o.add(`${i.name}@${i.version}`);return o},q=(s,e)=>{for(const n of e)if(n===s||n.endsWith("*")&&s.startsWith(n.slice(0,-1)))return!0;return!1},G=(s,e)=>{const n=e.security?.policies?.unexpectedDeps;if(!n)return[];const t=n.allow??[],r=n.baselineLockfile;if(t.length===0&&!r)return[];const a=r?H(s.workspaceRoot,r,s.packageManager):void 0,c=e.security?.acceptedRisks,o=[];for(const i of s.packages){const l=t.length===0||q(i.name,t),p=a?a.has(`${i.name}@${i.version}`):!0;if(l&&p)continue;const u=[],d={};l||(u.push(`not on allow-list (${t.length} entr${t.length===1?"y":"ies"})`),d.allowList=t),!p&&a&&(u.push(`not present in baseline lockfile (${r})`),d.baselineLockfile=r),o.push({acceptedRisk:f(i.name,i.version,c,"unexpectedDeps"),data:d,packageName:i.name,policy:"unexpectedDeps",reason:`${i.name}@${i.version} is unexpected: ${u.join("; ")}`,severity:"block",version:i.version})}return o},X=(s,e)=>{if(!s.osvFindings||s.osvFindings.size===0)return[];const t=e.security?.policies?.vulnerability?.failOn,r=e.security?.acceptedRisks,a=[];for(const c of s.packages){const o=s.osvFindings.get(c.name);if(!(!o||o.length===0))for(const i of o){const l=t?M(i.severity,t)?"block":"warn":"info";a.push({acceptedRisk:f(c.name,c.version,r,"vulnerability"),data:{advisoryId:i.id,aliases:i.aliases??[],cvssScore:i.cvssScore,fixedVersions:i.fixedVersions,severity:i.severity,summary:i.summary},packageName:c.name,policy:"vulnerability",reason:`${i.severity} ${i.id} affects ${c.name}@${c.version}: ${i.summary}`,severity:l,version:c.version})}}return a},N=[{evaluate:X,isConfigured:s=>s.security?.policies?.vulnerability!==void 0,name:"vulnerability",offlineSupported:!0,surfaces:["audit","doctor"]},{evaluate:j,isConfigured:s=>{const e=s.security?.policies?.license;return!!(e&&(e.allow&&e.allow.length>0||e.deny&&e.deny.length>0))},name:"license",offlineSupported:!0,surfaces:["audit","doctor","install"]},{evaluate:U,isConfigured:s=>{const e=s.security?.policies?.installScripts;return!!(e&&(e.allow&&Object.keys(e.allow).length>0||e.strict===!0))},name:"installScripts",offlineSupported:!0,surfaces:["audit","doctor","install"]},{evaluate:G,isConfigured:s=>{const e=s.security?.policies?.unexpectedDeps;return!!(e&&(e.allow&&e.allow.length>0||typeof e.baselineLockfile=="string"))},name:"unexpectedDeps",offlineSupported:!0,surfaces:["audit","doctor","install"]},{evaluate:W,isConfigured:s=>{const e=s.security?.policies?.firstSeen?.minutes;return typeof e=="number"&&e>0},name:"firstSeen",offlineSupported:!1,surfaces:["audit","doctor","install"]},{evaluate:B,isConfigured:s=>s.security?.policies?.publisherChange?.mode==="no-downgrade",name:"publisherChange",offlineSupported:!1,surfaces:["audit","doctor","install"]}],J=(s,e,n)=>N.filter(t=>t.surfaces.includes(s)?n!==void 0?n.has(t.name):t.isConfigured(e):!1),ce=async(s,e,n)=>{const t=J(e,n.visConfig,n.enabledPolicies),r=[];for(const a of t){if(s.offline&&!a.offlineSupported){r.push({packageName:"*",policy:a.name,reason:`policy.${a.name} skipped: requires network (--offline)`,severity:"info",version:"*"});continue}try{const c=await a.evaluate(s,n.visConfig);r.push(...c)}catch(c){const o=c instanceof Error?c.message:String(c);r.push({packageName:"*",policy:a.name,reason:`policy.${a.name} failed: ${o}`,severity:"info",version:"*"})}}return r},Q=(()=>{const s=new Map;for(const e of R)s.set(e.toLowerCase(),e);return s})(),le=()=>N.map(s=>s.name),ue=(s,e)=>{if(s===void 0)return;const n=s.trim().toLowerCase();if(n===""||n==="none")return new Set;if(n==="all")return new Set(R);const t=new Set;for(const r of s.split(",").map(a=>a.trim()).filter(a=>a.length>0)){const a=r.replace(/^_+/,"").replaceAll(/_+([a-z])/g,(o,i)=>i.toUpperCase()),c=Q.get(a.toLowerCase());c===void 0?e?.(r):t.add(c)}return t};export{ae as c,ce as e,le as g,ue as p,M as s};
@@ -0,0 +1,2 @@
1
+ const G=/^-{1,2}(no-color|no-colors|color=false|color=never)$/,P=/^-{1,2}(color=256)$/,D=/^-{1,2}(color=16m|color=full|color=truecolor)$/,L=/^-{1,2}(color|colors|color=true|color=always)$/,F=/-mono|dumb/i,Y=/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/,j=/-256(color)?$/i,W=/^screen|^tmux|^xterm|^vt[1-5]\d\d|^ansi|color|mintty|rxvt|cygwin|linux/i,V=()=>{const r=globalThis.process?.getBuiltinModule;return typeof r!="function"?"":r("node:os").release()},_=(r,e={})=>{const{isTTY:s,sniffFlags:i=!0}=e,l=globalThis,g=l.Deno!=null,u=l.process??l.Deno??{},p=u.argv??u.args??[],B=i?p.indexOf("--"):-1,a=d=>{if(!i)return!1;const R=p.findIndex(k=>d.test(k));return R!==-1&&(B===-1||R<B)};let n={};try{n=g?l.Deno.env.toObject():u.env??{}}catch{}const o="FORCE_COLOR",b=o in n,c=n[o]??void 0,$=typeof c=="string",O=typeof c=="number";let m;if(c==="true")m=1;else if(c==="false")m=0;else if($&&c.length===0)m=1;else if($&&c.length>0){const d=Number.parseInt(c,10);m=Number.isNaN(d)?void 0:Math.max(0,Math.min(d,3))}else O&&(m=Number.isNaN(c)?void 0:Math.max(0,Math.min(c,3)));if(c!=="true"&&c!=="false"&&m!==void 0&&m<4)return m;const w=b&&m!==void 0&&m>0;if(b&&m===0||a(G)||!w&&"NO_COLOR"in n)return 0;if(a(P))return 2;if(a(D))return 3;if(a(L))return 1;const y=m??0;if("TF_BUILD"in n&&"AGENT_NAME"in n)return 1;if(n.TERM&&F.test(n.TERM))return y;if(g?l.Deno.build.os==="windows":u.platform==="win32"){if("WT_SESSION"in n)return 3;if("ANSICON"in n)return 1;try{let d;g?d=l.Deno.osRelease():typeof u.os?.release=="function"?d=u.os.release():d=V();const R=d.split(".");return Number(R[0])>=10&&Number(R[2])>=10586?Number(R[2])>=14931?3:2:1}catch{}}if("CI"in n)return["GITEA_ACTIONS","CIRCLECI","GITHUB_WORKFLOW","GITHUB_ACTIONS"].some(d=>d in n)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(d=>d in n)||n.CI_NAME==="codeship"?1:y;if(n.TERMINAL_EMULATOR?.includes("JediTerm"))return 3;if("TEAMCITY_VERSION"in n)return Y.test(n.TEAMCITY_VERSION)?1:0;if(n.COLORTERM==="truecolor"||n.TERM==="xterm-kitty"||n.TERM==="xterm-ghostty"||n.TERM==="wezterm")return 3;if("TERM_PROGRAM"in n){const d=Number.parseInt((n.TERM_PROGRAM_VERSION??"").split(".")[0],10);if(n.TERM_PROGRAM==="iTerm.app")return d>=3?3:2;if(n.TERM_PROGRAM==="Apple_Terminal")return 2}if(j.test(n.TERM))return 2;let T;return s!==void 0?T=s:g?T=r==="out"?l.Deno.stdout.isTerminal():l.Deno.stderr.isTerminal():"PM2_HOME"in n&&"pm_id"in n?T=!0:T=!!u[`std${r}`]?.isTTY,T&&W.test(n.TERM)||"COLORTERM"in n?1:y},H=()=>_("out"),U=()=>_("err");function q({onlyFirst:r=!1}={}){const e="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(e,r?void 0:"g")}const M=(r,e,s)=>e>r?e:Math.min(r,s),z=/^#?([a-f\d]{3}|[a-f\d]{6})$/i,J=r=>{let[,e]=z.exec(r)??[];const s=e?e.length:0;if(s===3){const l=e.charAt(0),g=e.charAt(1),u=e.charAt(2);e=l+l+g+g+u+u}else if(s!==6)return globalThis.process?.env?.NODE_ENV!=="production"&&console.warn(`[@visulima/colorize] Invalid hex color "${r}"; expected a 3- or 6-digit hex string (e.g. "#96C" or "#E0115F"). Falling back to black.`),[0,0,0];const i=Number.parseInt(e,16);return[i>>16&255,i>>8&255,i&255]},v=(r,e,s)=>r===e&&e===s?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/51)+6*Math.round(e/51)+Math.round(s/51),S=r=>{let e,s,i;if(r<8)return 30+r;if(r<16)return 90+(r-8);if(r>=232)e=s=i=((r-232)*10+8)/255;else{r-=16;const u=r%36;e=Math.floor(r/36)/5,s=Math.floor(u/6)/5,i=u%6/5}const l=Math.max(e,s,i)*2;if(l===0)return 30;const g=30+(Math.round(i)<<2|Math.round(s)<<1|Math.round(e));return l===2?g+60:g},N=(r,e,s)=>S(v(r,e,s)),h=39,f=49,C=10,E={close:"",open:""},I=r=>{const e=r>0?(o,b)=>({close:`\x1B[${String(b)}m`,open:`\x1B[${String(o)}m`}):()=>E,s=o=>(b,c,$)=>o(v(Number(b),Number(c),Number($))),i=o=>b=>{const[c,$,O]=J(b);return o(c,$,O)};let l=o=>e(`38;5;${String(o)}`,h),g=o=>e(`48;5;${String(o)}`,f),u=(o,b,c)=>e(`38;2;${String(o)};${String(b)};${String(c)}`,h),p=(o,b,c)=>e(`48;2;${String(o)};${String(b)};${String(c)}`,f);r===1?(l=o=>e(S(Number(o)),h),g=o=>e(S(Number(o))+C,f),u=(o,b,c)=>e(N(Number(o),Number(b),Number(c)),h),p=(o,b,c)=>e(N(Number(o),Number(b),Number(c))+C,f)):r===2&&(u=s(l),p=s(g));const B={bold:e(1,22),dim:e(2,22),hidden:e(8,28),inverse:e(7,27),italic:e(3,23),overline:e(53,55),reset:e(0,0),strike:e(9,29),strikethrough:e(9,29),underline:e(4,24),visible:E},a={bgBlack:e(40,f),bgBlackBright:e(100,f),bgBlue:e(44,f),bgBlueBright:e(104,f),bgCyan:e(46,f),bgCyanBright:e(106,f),bgGray:e(100,f),bgGreen:e(42,f),bgGreenBright:e(102,f),bgGrey:e(100,f),bgMagenta:e(45,f),bgMagentaBright:e(105,f),bgRed:e(41,f),bgRedBright:e(101,f),bgWhite:e(47,f),bgWhiteBright:e(107,f),bgYellow:e(43,f),bgYellowBright:e(103,f),black:e(30,h),blackBright:e(90,h),blue:e(34,h),blueBright:e(94,h),cyan:e(36,h),cyanBright:e(96,h),gray:e(90,h),green:e(32,h),greenBright:e(92,h),grey:e(90,h),magenta:e(35,h),magentaBright:e(95,h),red:e(31,h),redBright:e(91,h),white:e(37,h),whiteBright:e(97,h),yellow:e(33,h),yellowBright:e(93,h)},n={bg:o=>g(M(o,0,255)),bgHex:i(p),bgRgb:(o,b,c)=>p(M(o,0,255),M(b,0,255),M(c,0,255)),fg:o=>l(M(o,0,255)),hex:i(u),rgb:(o,b,c)=>u(M(o,0,255),M(b,0,255),M(c,0,255))};return{baseColors:a,baseStyles:B,styleMethods:n}},x=H(),K=U();I(x);const X=(r,e,s)=>{if(e==="")return r;let i=r.indexOf(e);if(i<0)return r;const l=e.length;let g=0,u="";for(;~i;)u+=r.slice(g,i)+s,g=i+l,i=r.indexOf(e,g);return u+r.slice(g)},Z=(r,e,s)=>{if(r==null||r==="")return"";let i;if(r.raw===void 0?i=String(r):i=String.raw(r,...e),i.includes("\x1B"))for(let l=s;l;l=l.props)i=X(i,l.close,l.open);return i.includes(`
2
+ `)&&(i=i.replace(/(\r*\n)/g,`${s.closeStack}$1${s.openStack}`)),s.openStack+i+s.closeStack},A=function(r){const e=r?.level??x,{baseColors:s,baseStyles:i,styleMethods:l}=I(e),g={};let u=null;const p=({props:a},{close:n,open:o})=>{const b=(a?.openStack??"")+o,c=n+(a?.closeStack??""),$=(O,...m)=>Z(O,m,$.props);return Object.setPrototypeOf($,u),$.props={close:n,closeStack:c,open:o,openStack:b,props:a},$.open=b,$.close=c,$},B=a=>String(a);B.strip=a=>a.replaceAll(q(),"");for(const a in s)g[a]={get(){const n=p(this,s[a]);return Object.defineProperty(this,a,{value:n}),n}};for(const a in i)g[a]={get(){const n=p(this,i[a]);return Object.defineProperty(this,a,{value:n}),n}};for(const a in l)g[a]={get(){return(...n)=>p(this,l[a](...n))}};return g.ansi256=g.fg,g.bgAnsi256=g.bg,u=Object.defineProperties({},g),Object.setPrototypeOf(B,u),B},t=new A;new A({level:K});t.ansi256;t.bg;t.bgAnsi256;t.bgHex;t.bgRgb;t.fg;t.hex;t.rgb;t.strip;t.bgBlack;t.bgBlackBright;t.bgBlue;t.bgBlueBright;t.bgCyan;t.bgCyanBright;t.bgGray;t.bgGreen;t.bgGreenBright;t.bgGrey;t.bgMagenta;t.bgMagentaBright;t.bgRed;t.bgRedBright;t.bgWhite;t.bgWhiteBright;t.bgYellow;t.bgYellowBright;t.black;t.blackBright;t.blue;t.blueBright;const Q=t.bold,ee=t.cyan;t.cyanBright;const te=t.dim;t.gray;const re=t.green;t.greenBright;t.grey;t.hidden;const ne=t.inverse;t.italic;const oe=t.magenta;t.magentaBright;t.overline;const ie=t.red;t.redBright;t.reset;t.strike;t.strikethrough;const se=t.underline;t.visible;t.white;t.whiteBright;const ce=t.yellow;t.yellowBright;export{U as $,ee as D,te as F,re as J,ne as P,oe as T,ie as X,se as e,Q as q,ce as r,t,H as w};
@@ -0,0 +1 @@
1
+ import{createRequire as n}from"node:module";import{o as p,n as a,C as f}from"./index-DHD8wb6Z.js";let i;const c=e=>(i??=n(import.meta.url))(e),r=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,u=e=>{if(typeof r<"u"&&r.versions&&r.versions.node){const[o,s]=r.versions.node.split(".").map(Number);if(o>22||o===22&&s>=3||o===20&&s>=16)return r.getBuiltinModule(e)}return c(e)},{createRequire:l}=u("node:module");let d;const _=e=>(d??=l(import.meta.url))(e),t=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,m=e=>{if(typeof t<"u"&&t.versions&&t.versions.node){const[o,s]=t.versions.node.split(".").map(Number);if(o>22||o===22&&s>=3||o===20&&s>=16)return t.getBuiltinModule(e)}return _(e)},{accessSync:g}=m("node:fs");function h(e,o=p){a(e),e=f(e);try{return g(e,o),!0}catch{return!1}}export{h as y};
@@ -0,0 +1 @@
1
+ const i=new Set(["0BSD","AGPL-3.0","AGPL-3.0-only","AGPL-3.0-or-later","Apache-1.1","Apache-2.0","Artistic-2.0","BlueOak-1.0.0","BSD-2-Clause","BSD-3-Clause","BSL-1.0","CC0-1.0","CC-BY-3.0","CC-BY-4.0","CDDL-1.0","CDDL-1.1","EPL-1.0","EPL-2.0","GPL-2.0","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0","GPL-3.0-only","GPL-3.0-or-later","ISC","LGPL-2.0","LGPL-2.1","LGPL-3.0","MIT","MIT-0","MPL-1.1","MPL-2.0","Python-2.0","Unlicense","WTFPL","Zlib"]),c={apache2:"Apache-2.0","apache 2.0":"Apache-2.0",bsd:"BSD-3-Clause","bsd-2":"BSD-2-Clause","bsd-3":"BSD-3-Clause",mit:"MIT",public:"Unlicense","public domain":"Unlicense"},o=(()=>{const e=new Map;for(const s of i)e.set(s.toLowerCase(),s);for(const[s,t]of Object.entries(c))e.set(s,t);return e})(),l=e=>{const s=e.trim();if(s.length!==0)return i.has(s)?s:o.get(s.toLowerCase())},a=e=>{let s;if(typeof e.license=="string")s=e.license;else if(e.license&&typeof e.license=="object"&&typeof e.license.type=="string")s=e.license.type;else if(Array.isArray(e.licenses)&&e.licenses.length>0){const n=e.licenses[0];n&&typeof n.type=="string"&&(s=n.type)}if(!s)return;const t=s.trim();if(t.length===0)return;if(/[()]|\b(?:and|or|with)\b/i.test(t))return[{expression:t}];const r=l(t);return r?[{license:{id:r}}]:[{license:{name:t}}]};export{a as e,l as n};
@@ -0,0 +1,2 @@
1
+ import{createRequire as K}from"node:module";import{n as E,o as z,C as S,f as X,e as h}from"./index-DHD8wb6Z.js";import{p as rt}from"./formatBytes-BHAzNIrn-DFIppnY0.js";import{N as it}from"./readJsonSync-CbryXYxN-B2aSeDpC.js";import{r as D}from"./writeFileSync-DJoHk3Ks-CgQ-VNNT.js";import{withEnhancedPath as lt}from"@visulima/task-runner";let V;const U=t=>(V??=K(import.meta.url))(t),f=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,l=t=>{if(typeof f<"u"&&f.versions&&f.versions.node){const[e,o]=f.versions.node.split(".").map(Number);if(e>22||e===22&&o>=3||e===20&&o>=16)return f.getBuiltinModule(t)}return U(t)},{Socket:Y}=l("node:net"),{randomBytes:J}=l("node:crypto"),{readdir:Q,rm:b,unlink:$,open:Z,readFile:tt,stat:et,writeFile:ot,rename:st}=l("node:fs/promises"),{createRequire:M}=l("node:module"),{spawn:nt}=l("node:child_process"),{openSync:ct,closeSync:at}=l("node:fs");let ht;const dt=t=>(ht??=M(import.meta.url))(t),u=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ft=t=>{if(typeof u<"u"&&u.versions&&u.versions.node){const[e,o]=u.versions.node.split(".").map(Number);if(e>22||e===22&&o>=3||e===20&&o>=16)return u.getBuiltinModule(t)}return dt(t)},{lstat:A,mkdir:ut}=ft("node:fs/promises"),pt=async t=>{E(t);try{const e=await A(t);if(!e.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(D(e))}'`);return}catch(e){if(e.code!=="ENOENT")throw e}try{await ut(t,{recursive:!0})}catch(e){if(e.code!=="EEXIST")throw e;const o=await A(t);if(!o.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(D(o))}'`,{cause:e})}};let wt;const yt=t=>(wt??=M(import.meta.url))(t),p=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,kt=t=>{if(typeof p<"u"&&p.versions&&p.versions.node){const[e,o]=p.versions.node.split(".").map(Number);if(e>22||e===22&&o>=3||e===20&&o>=16)return p.getBuiltinModule(t)}return yt(t)},{access:mt}=kt("node:fs/promises");async function _t(t,e=z){E(t),t=S(t);try{return await mt(t,e),!0}catch{return!1}}let gt;const vt=t=>(gt??=M(import.meta.url))(t),w=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,x=t=>{if(typeof w<"u"&&w.versions&&w.versions.node){const[e,o]=w.versions.node.split(".").map(Number);if(e>22||e===22&&o>=3||e===20&&o>=16)return w.getBuiltinModule(t)}return vt(t)},{readFile:bt}=x("node:fs/promises"),{unzip:Tt,brotliDecompress:Et}=x("node:zlib"),St={brotli:Et,gzip:Tt,none:(t,e)=>{e(null,t)}},Mt=async(t,e)=>{E(t),t=S(t);const{buffer:o,compression:s,encoding:r,flag:i}=e??{};let n;try{n=await bt(t,i?{flag:i}:{})}catch(c){throw X(c,t)}return await new Promise((c,g)=>{St[s??"none"](n,(k,m)=>{k?g(k):c(o?m:m.toString(r??"utf8"))})})};async function C(t,e,o){const s=await Mt(t,{buffer:!0,encoding:void 0});let r=new TextDecoder().decode(s);const{beforeParse:i,color:n}={};return typeof i=="function"&&(r=i(r)),it(r,e,S(t),{color:n})}const Ht=3e4,N=100;class Rt extends Error{constructor(e,o){super(e),this.elapsedMs=o,this.name="ServiceReadinessError"}elapsedMs}const Pt=async t=>{const e=t.host??"127.0.0.1",{port:o}=t,s=t.timeoutMs??Ht,r=Date.now();for(;Date.now()-r<s;){if(await $t(e,o))return;await Dt(N)}throw new Rt(`Timed out waiting for ${e}:${String(o)} to accept TCP connections (${String(s)}ms)`,Date.now()-r)},$t=(t,e)=>new Promise(o=>{const s=new Y,r=i=>{s.removeAllListeners(),s.destroy(),o(i)};s.once("connect",()=>{r(!0)}),s.once("error",()=>{r(!1)}),s.setTimeout(N,()=>{r(!1)});try{s.connect(e,t)}catch{r(!1)}}),Dt=t=>new Promise(e=>{setTimeout(e,t)}),At=async(t,e)=>{const o=t.readiness??(t.port===void 0?void 0:{tcp:{port:t.port}});o&&await Pt({host:o.tcp.host,port:o.tcp.port,timeoutMs:e?.timeoutMs??o.tcp.timeoutMs})},H=384,L=5e3,Lt=50,Ot=3e4,d=async t=>{const e=h(rt(t),"services");try{await pt(e)}catch(o){throw o.code==="ENOTDIR"?new Error(`Service registry path ${e} exists but is not a directory. Remove it or move the conflicting file before running \`vis service\`.`,{cause:o}):o}return e},R=t=>t.replaceAll("/","_").replaceAll(":","__"),P=(t,e)=>h(t,`${R(e)}.json`),It=(t,e)=>h(t,`${R(e)}.lock`),_=async(t,e)=>{const o=await d(t),s=P(o,e);if(await _t(s))try{return await C(s)}catch{return}},xt=async t=>{const e=await d(t);let o;try{o=await Q(e)}catch{return[]}const s=[];for(const r of o)if(r.endsWith(".json"))try{const i=await C(h(e,r));s.push(i)}catch{}return s},Ct=async(t,e)=>{const o=await d(t),s=P(o,e.id),r=h(o,`.${J(8).toString("hex")}.tmp`);await ot(r,`${JSON.stringify(e,void 0,2)}
2
+ `,{mode:H});try{await Wt(r,s)}catch(i){throw await b(r,{force:!0}).catch(()=>{}),i}},Nt=new Set(["EACCES","EBUSY","EPERM"]),Ft=8,jt=20,Wt=async(t,e)=>{let o=0;for(;;)try{await st(t,e);return}catch(s){const{code:r}=s;if(!(r!==void 0&&Nt.has(r))||o>=Ft)throw s;const n=jt*2**o;await new Promise(c=>{setTimeout(c,n)}),o+=1}},y=async(t,e,o)=>{const s=await d(t),r=o??await _(t,e);await b(P(s,e),{force:!0}),r&&await b(r.logFile,{force:!0}).catch(()=>{})},a=t=>{try{return process.kill(t,0),!0}catch{return!1}},se=async t=>{const e=await xt(t),o=[],s=[];for(const r of e){if(a(r.pid)){s.push(r);continue}const i=await _(t,r.id);if(i&&i.pid!==r.pid){s.push(i);continue}await y(t,r.id,r).catch(()=>{}),o.push(r.id)}return{pruned:o,surviving:s}},Bt=t=>new Promise(e=>{setTimeout(e,t)}),Gt=async t=>{try{const e=await Z(t,"wx",H);try{await e.writeFile(String(process.pid))}finally{await e.close().catch(()=>{})}return!0}catch(e){if(e.code==="EEXIST")return!1;throw e}},qt=async t=>{let e;try{const o=await tt(t,"utf8"),s=Number.parseInt(o.trim(),10);e=Number.isFinite(s)?s:void 0}catch{return!0}if(e!==void 0&&!a(e))return!0;try{const o=await et(t);return Date.now()-o.mtimeMs>Ot}catch{return!0}},F=async(t,e,o)=>{const s=await d(t),r=It(s,e),i=Date.now();for(;!await Gt(r);){if(await qt(r)){await $(r).catch(()=>{});continue}if(Date.now()-i>=L)throw new Error(`Could not acquire service lock for ${e} within ${String(L)}ms — another \`vis service\` invocation appears to be holding it.`);await Bt(Lt)}try{return await o()}finally{await $(r).catch(()=>{})}};function T(t,e={},o){for(const s in t){const r=t[s],i=o?`${o}:${s}`:s;typeof r=="object"&&r!==null?T(r,e,i):typeof r=="function"&&(e[i]=r)}return e}const j=(()=>{if(console.createTask)return console.createTask;const t={run:e=>e()};return()=>t})();function W(t,e,o,s){for(let r=o;r<t.length;r+=1)try{const i=s?s.run(()=>t[r](...e)):t[r](...e);if(i&&typeof i.then=="function")return Promise.resolve(i).then(()=>W(t,e,r+1,s))}catch(i){return Promise.reject(i)}}function Kt(t,e,o){if(t.length>0)return W(t,e,0,j(o))}function Vt(t,e,o){if(t.length>0){const s=j(o);return Promise.all(t.map(r=>s.run(()=>r(...e))))}}function v(t,e){for(const o of[...t])o(e)}var Ut=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,e,o={}){if(!t||typeof e!="function")return()=>{};const s=t;let r;for(;this._deprecatedHooks[t];)r=this._deprecatedHooks[t],t=r.to;if(r&&!o.allowDeprecated){let i=r.message;i||(i=`${s} hook has been deprecated`+(r.to?`, please use ${r.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!e.name)try{Object.defineProperty(e,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(e),()=>{e&&(this.removeHook(t,e),e=void 0)}}hookOnce(t,e){let o,s=(...r)=>(typeof o=="function"&&o(),o=void 0,s=void 0,e(...r));return o=this.hook(t,s),o}removeHook(t,e){const o=this._hooks[t];if(o){const s=o.indexOf(e);s!==-1&&o.splice(s,1),o.length===0&&(this._hooks[t]=void 0)}}clearHook(t){this._hooks[t]=void 0}deprecateHook(t,e){this._deprecatedHooks[t]=typeof e=="string"?{to:e}:e;const o=this._hooks[t]||[];this._hooks[t]=void 0;for(const s of o)this.hook(t,s)}deprecateHooks(t){for(const e in t)this.deprecateHook(e,t[e])}addHooks(t){const e=T(t),o=Object.keys(e).map(s=>this.hook(s,e[s]));return()=>{for(const s of o)s();o.length=0}}removeHooks(t){const e=T(t);for(const o in e)this.removeHook(o,e[o])}removeAllHooks(){this._hooks={}}callHook(t,...e){return this.callHookWith(Kt,t,e)}callHookParallel(t,...e){return this.callHookWith(Vt,t,e)}callHookWith(t,e,o){const s=this._before||this._after?{name:e,args:o,context:{}}:void 0;this._before&&v(this._before,s);const r=t(this._hooks[e]?[...this._hooks[e]]:[],o,e);return r instanceof Promise?r.finally(()=>{this._after&&s&&v(this._after,s)}):(this._after&&s&&v(this._after,s),r)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const e=this._before.indexOf(t);e!==-1&&this._before.splice(e,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const e=this._after.indexOf(t);e!==-1&&this._after.splice(e,1)}}}};function zt(){return new Ut}const re=()=>zt(),ie=async(t,e)=>{if(!(!e||e.length===0))for(const o of e){if(o.hooks)for(const[s,r]of Object.entries(o.hooks)){const i=Array.isArray(r)?r:[r];for(const n of i)t.hook(s,n)}o.setup&&await o.setup(t)}};class ne{#o;#e;#s=new Map;constructor(e,o){this.#o=e,this.#e=o}startTasks(e){for(const o of e)this.#s.set(o.id,o),this.#t("task:before",o)}endTasks(e){for(const o of e)this.#s.delete(o.task.id),this.#t("task:after",o.task,o),o.status==="failure"?this.#t("task:failure",o.task,o):Xt(o.status)&&this.#t("task:cacheHit",o.task,o)}printCacheMiss(e,o){this.#t("task:cacheMiss",e,o)}onTaskStdout(e,o){this.#t("task:stdout",e,o)}onTaskStderr(e,o){this.#t("task:stderr",e,o)}#t(e,...o){Promise.resolve(this.#o.callHook(e,...o)).catch(s=>{if(this.#e)try{this.#e(e,s)}catch{}})}}const Xt=t=>t==="local-cache"||t==="local-cache-kept-existing"||t==="remote-cache",O=process.platform==="win32",Yt=async t=>{const{command:e,cwd:o,env:s,logFile:r}=t,i=ct(r,"a",H);let n;const c=O?"cmd":"/bin/sh",g=O?["/d","/s","/c",e]:["-c",e];try{n=nt(c,g,{cwd:o,detached:!0,env:lt({...process.env,...s},o),stdio:["ignore",i,i],windowsHide:!0})}finally{at(i)}if(n.pid===void 0&&await new Promise((k,m)=>{n.once("spawn",()=>{k()}),n.once("error",q=>{m(q)})}),n.pid===void 0)throw new Error(`Failed to spawn detached process for command: ${e}`);return n.unref(),{pid:n.pid}},B=5e3,ce=async t=>F(t.workspaceRoot,t.id,async()=>{const e=await _(t.workspaceRoot,t.id);if(e&&a(e.pid))throw new Error(`Service ${t.id} is already running (pid ${String(e.pid)})`);e&&await y(t.workspaceRoot,t.id,e);const o=await d(t.workspaceRoot),s=R(t.id),r=h(o,`${s}.log`),{pid:i}=await Yt({command:t.command,cwd:t.cwd,env:t.env,logFile:r}),n={command:t.command,config:t.config,cwd:t.cwd,env:t.config.env??{},id:t.id,logFile:r,pid:i,slug:s,startedAt:new Date().toISOString(),visVersion:process.env.VIS_VERSION??"0.0.0"};if(await Ct(t.workspaceRoot,n),t.skipReadiness!==!0)try{await At(t.config,{timeoutMs:t.readinessTimeoutMs})}catch(c){throw await G(i,t.config.killGracePeriodMs??B).catch(()=>{}),await y(t.workspaceRoot,t.id,n).catch(()=>{}),c}return{entry:n}}),ae=async t=>F(t.workspaceRoot,t.id,async()=>{const e=await _(t.workspaceRoot,t.id);if(!e)return{stopped:!1};if(!a(e.pid))return await y(t.workspaceRoot,t.id,e),{stopped:!1};const o=t.graceMs??e.config.killGracePeriodMs??B;return await G(e.pid,o),await y(t.workspaceRoot,t.id,e),{stopped:!0}}),G=async(t,e)=>{I(t,"SIGTERM");const o=Date.now();for(;Date.now()-o<e;){if(!a(t))return;await new Promise(s=>{setTimeout(s,100)})}a(t)&&I(t,"SIGKILL")},I=(t,e)=>{try{process.platform==="win32"?process.kill(t,e):process.kill(-t,e)}catch(o){if(o.code==="ESRCH")return;throw o}};export{ne as H,Rt as S,ce as a,At as b,xt as c,re as d,ie as e,y as f,_t as g,a as i,se as p,_ as r,ae as s};
@@ -0,0 +1 @@
1
+ import{createRequire as f}from"node:module";import{e as c}from"./index-DHD8wb6Z.js";let p;const k=e=>(p??=f(import.meta.url))(e),i=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,_=e=>{if(typeof i<"u"&&i.versions&&i.versions.node){const[t,n]=i.versions.node.split(".").map(Number);if(t>22||t===22&&n>=3||t===20&&n>=16)return i.getBuiltinModule(e)}return k(e)},{statSync:m,existsSync:d}=_("node:fs"),b={aube:["aube-lock.yaml"],bun:["bun.lock","bun.lockb"],npm:["npm-shrinkwrap.json","package-lock.json"],pnpm:["pnpm-lock.yaml"],yarn:["yarn.lock"]},g={aube:["node_modules/.aube-state","node_modules/.modules.yaml"],bun:["node_modules/.bun-tag"],npm:["node_modules/.package-lock.json"],pnpm:["node_modules/.modules.yaml","node_modules/.pnpm/lock.yaml"],yarn:["node_modules/.yarn-integrity","node_modules/.yarn-state.yml",".yarn/install-state.gz"]},h={ci:{aube:"aube ci",bun:"bun install --frozen-lockfile",npm:"npm ci",pnpm:"pnpm install --frozen-lockfile",yarn:"yarn install --immutable"},tty:{aube:"aube install",bun:"bun install",npm:"npm install",pnpm:"pnpm install",yarn:"yarn install"}},y=1e3,M=e=>{for(const[t,n]of Object.entries(b))for(const s of n)if(d(c(e,s)))return{lockfileFile:s,manager:t}},j=(e,t)=>{let n;for(const s of g[t]){const o=c(e,s);if(!d(o))continue;const{mtimeMs:r}=m(o);(!n||r>n.mtimeMs)&&(n={mtimeMs:r,path:s})}return n},L=(e,t={})=>{const n=M(e);if(!n)return{checked:!1};const{lockfileFile:s,manager:o}=n,r=m(c(e,s)).mtimeMs,l=j(e,o),u=h[t.inCi?"ci":"tty"][o],a={installMarkerMtimeMs:l?.mtimeMs,lockfileMtimeMs:r,lockfilePath:s,marker:l?.path,packageManager:o};return l?r>l.mtimeMs+y?{checked:!0,detail:a,failure:"stale-install",message:`${s} is newer than node_modules (${l.path}) — run \`${u}\` to sync.`}:{checked:!0,detail:a}:{checked:!0,detail:a,failure:"missing-install",message:`lockfile detected but node_modules looks uninitialised — run \`${u}\` before \`vis run\`.`}},v=(e,t,n,s={})=>{if(s.skip)return{checked:!1,shouldContinue:!0};const o=L(e,{inCi:t});if(!o.failure)return{...o,shouldContinue:!0};const r=`preflight: ${o.message??"lockfile drift detected"}`;return t&&!s.ciAsWarning?{...o,formattedMessage:r,shouldContinue:!1}:(n.warn(r),{...o,formattedMessage:r,shouldContinue:!0})};export{M as d,v as r};
@@ -0,0 +1 @@
1
+ import{createRequire as R}from"node:module";let T;const q=n=>(T??=R(import.meta.url))(n),h=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,A=n=>{if(typeof h<"u"&&h.versions&&h.versions.node){const[e,t]=h.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return h.getBuiltinModule(n)}return q(n)},{createRequire:B}=A("node:module");let M;const E=n=>(M??=B(import.meta.url))(n),m=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,$=n=>{if(typeof m<"u"&&m.versions&&m.versions.node){const[e,t]=m.versions.node.split(".").map(Number);if(e>22||e===22&&t>=3||e===20&&t>=16)return m.getBuiltinModule(n)}return E(n)},{readFileSync:X}=$("node:fs"),{readFile:Y}=$("node:fs/promises"),I={sha256:"sha256",sha384:"sha384",sha512:"sha512"},N=1024,z=/^[A-Z0-9+/]+={0,2}$/i,j="node_modules/",v=/^['"]/,y=/['"]$/,J=/^[a-z][a-zA-Z0-9]*:\s*$/m,Z=/resolution:\s*\{[^}]*integrity:\s*([^,}\s]+)/,C=/^["']?((?:@[^/@"']+\/)?[^@"'\n]+)@[^\n]+\n((?:[\t ][^\n]*(?:\n|$))+)/gm,F=/^\s+version:?\s+"?([^"\n]+)"?/m,L=/^\s+integrity[\s:]+"?([^"\s]+)"?/m,D=n=>{if(n.length>N)return;const e=n.indexOf("-");if(e<=0)return;const t=I[n.slice(0,e).toLowerCase()];if(!t)return;const s=n.slice(e+1);if(z.test(s))try{const i=Buffer.from(s,"base64");return i.length===0?void 0:{algorithm:t,hex:i.toString("hex")}}catch{return}},b=(n,e,t)=>{const s=`${t.name}@${t.version}`;e.has(s)||(e.add(s),n.push(t))},u=(n,e,t)=>{t&&Object.keys(t).length>0&&(n[e]={...t})},g=n=>{if(!n)return;const e={};for(const[t,s]of Object.entries(n))e[t]=[s];return Object.keys(e).length>0?e:void 0},G=n=>{const e=[],t=new Set;let s;try{s=JSON.parse(n)}catch{return e}if(!s.packages)return e;for(const[i,o]of Object.entries(s.packages)){if(!i||!o.version)continue;const p=i.lastIndexOf(j);if(p===-1)continue;const c=i.slice(p+j.length);if(c.length===0)continue;const r=c.split("/"),a=c.startsWith("@")?2:1;if(r.length!==a||r.some(f=>f.length===0))continue;const l=o.name??c;if(l.startsWith("."))continue;const d={name:l,version:o.version};if(o.integrity){const f=D(o.integrity);f&&(d.integrity=f)}u(d,"dependencies",g(o.dependencies)),u(d,"peerDependencies",g(o.peerDependencies)),u(d,"optionalDependencies",g(o.optionalDependencies)),b(e,t,d)}return e},k=n=>{let e=n.trim();e.startsWith("/")&&(e=e.slice(1)),e=e.replace(v,"").replace(y,"");const t=e.indexOf("(");t>0&&(e=e.slice(0,t));const s=e.lastIndexOf("@");if(s<=0)return;const i=e.slice(0,s),o=e.slice(s+1);if(!(!i||!o||o.startsWith("link:")||o.startsWith("workspace:")||o.startsWith("file:")))return{name:i,version:o}},S=(n,e)=>{const t=new RegExp(String.raw`^${e}:\s*$`,"m").exec(n);if(!t)return;const s=t.index+t[0].length,i=J.exec(n.slice(s));return n.slice(s,i?s+i.index:n.length)},H=n=>{const e=new Map,t=S(n,"snapshots");if(!t)return e;const s=/^ {2}(['"]?[^\s:][^:\n]*?['"]?):\s*\n((?: {4}[^\n]*\n?)+)/gm;let i;for(;(i=s.exec(t)??void 0)!==void 0;){const o=k(i[1]);if(!o)continue;const p=`${o.name}@${o.version}`,c=i[2],r=e.get(p)??{};for(const a of["dependencies","peerDependencies","optionalDependencies"]){const l=x(c,a);if(!l)continue;const d=r[a]??{};for(const[f,W]of Object.entries(l)){const O=d[f]??[];for(const w of W)O.includes(w)||O.push(w);d[f]=O}r[a]=d}e.set(p,r)}return e},K=n=>{const e=[],t=new Set,s=S(n,"packages");if(!s)return e;const i=H(n),o=/^ {2}(['"]?[^\s:][^:\n]*?['"]?):\s*\n((?: {4}[^\n]*\n?)+)/gm;let p;for(;(p=o.exec(s)??void 0)!==void 0;){const c=k(p[1]);if(!c)continue;const r=p[2],a=Z.exec(r),l={name:c.name,version:c.version};if(a?.[1]){const f=D(a[1]);f&&(l.integrity=f)}const d=i.get(`${c.name}@${c.version}`);u(l,"dependencies",d?.dependencies??x(r,"dependencies")),u(l,"peerDependencies",d?.peerDependencies??x(r,"peerDependencies")),u(l,"optionalDependencies",d?.optionalDependencies??x(r,"optionalDependencies")),b(e,t,l)}return e},x=(n,e)=>{const t=new RegExp(String.raw`^ {4}${e}:\s*\n((?: {6,}[^\n]*\n?)+)`,"m").exec(n);if(!t?.[1])return;const s={},i=/^ {6}([^\s:]+):\s*([^\n]+)/gm;let o;for(;(o=i.exec(t[1])??void 0)!==void 0;){const p=o[1].replace(v,"").replace(y,"");let c=o[2].trim();c=c.replace(v,"").replace(y,"");const r=c.indexOf("(");if(r>0&&(c=c.slice(0,r).trim()),!p||!c)continue;const a=s[p]??[];a.includes(c)||a.push(c),s[p]=a}return Object.keys(s).length>0?s:void 0},P=n=>{const e=[],t=new Set,s=C;s.lastIndex=0;let i;for(;(i=s.exec(n)??void 0)!==void 0;){const o=i[1].replace(v,"").replace(y,"");if(!o)continue;const p=i[2],c=F.exec(p);if(!c?.[1])continue;const r={name:o,version:c[1].trim()},a=L.exec(p);if(a?.[1]){const l=D(a[1]);l&&(r.integrity=l)}u(r,"dependencies",_(p,"dependencies")),u(r,"peerDependencies",_(p,"peerDependencies")),u(r,"optionalDependencies",_(p,"optionalDependencies")),b(e,t,r)}return e},_=(n,e)=>{const t=new RegExp(String.raw`^ {2}${e}:\s*\n((?: {4,}[^\n]*\n?)+)`,"m").exec(n);if(!t?.[1])return;const s={},i=/^ {4}(['"]?[^\s:'"]+['"]?)\s*(?::\s*)?['"]([^'"\n]+)['"]/gm;let o;for(;(o=i.exec(t[1])??void 0)!==void 0;){const p=o[1].replace(v,"").replace(y,""),c=o[2];if(p&&c){const r=s[p]??[];r.includes(c)||r.push(c),s[p]=r}}return Object.keys(s).length>0?s:void 0},Q=/,(?=\s*[}\]])/g,U=n=>{const e=[],t=new Set;let s;try{s=JSON.parse(n.replaceAll(Q,""))}catch{return e}if(!s.packages)return e;for(const i of Object.values(s.packages)){const o=i[0];if(typeof o!="string")continue;const p=o.indexOf("@",1);if(p<=0)continue;const c=o.slice(0,p),r=o.slice(p+1);if(!c||!r||r.startsWith("workspace:")||r.startsWith("link:")||r.startsWith("file:"))continue;const a={name:c,version:r},l=i[3];if(typeof l=="string"&&l.length>0){const f=D(l);f&&(a.integrity=f)}const d=i[2];if(d&&typeof d=="object"&&!Array.isArray(d)){const f=d;u(a,"dependencies",g(f.dependencies)),u(a,"peerDependencies",g(f.peerDependencies)),u(a,"optionalDependencies",g(f.optionalDependencies))}b(e,t,a)}return e},ee=(n,e)=>{switch(e){case"bun":return U(n);case"npm":return G(n);case"pnpm":return K(n);case"yarn":return P(n);default:return[]}};export{ee as S};
@@ -0,0 +1 @@
1
+ import{createRequire as $}from"node:module";let P;const S=t=>(P??=$(import.meta.url))(t),u=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,h=t=>{if(typeof u<"u"&&u.versions&&u.versions.node){const[s,e]=u.versions.node.split(".").map(Number);if(s>22||s===22&&e>=3||s===20&&e>=16)return u.getBuiltinModule(t)}return S(t)},{spawn:T}=h("node:child_process"),{cwd:E}=u,{basename:j,normalize:k,delimiter:p,resolve:y,dirname:m}=h("node:path"),{pipeline:A}=h("node:stream/promises"),{PassThrough:q}=h("node:stream"),B=h("node:readline"),{openSync:F,readSync:H,closeSync:M,statSync:R}=h("node:fs"),z=/^path$/i,w={key:"PATH",value:""};function b(t){for(const s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||!z.test(s))continue;const e=t[s];return e?{key:s,value:e}:w}return w}function I(t,s){const e=s.value.split(p),o=[];let r=t,i;do o.push(y(r,"node_modules",".bin")),i=r,r=m(r);while(r!==i);o.push(m(process.execPath));const n=o.concat(e).join(p);return{key:s.key,value:n}}function L(t,s,e=!0){const o={...process.env,...s};if(!e)return o;const r=I(t,b(o));return o[r.key]=r.value,o}const N=t=>{let s=t.length;const e=new q,o=()=>{--s===0&&e.end()};for(const r of t)A(r,e,{end:!1}).then(o).catch(o);return e},_=/([()\][%!^"`<>&|;, *?])/g,X=/^#!\s*(.+)/,D=/\.(?:com|exe)$/i,W=/node_modules[\\/]\.bin[\\/][^\\/]+\.cmd$/i,V=process.platform==="win32",G=[".EXE",".CMD",".BAT",".COM"];function J(t,s=[],e={}){if(e.shell===!0||!V)return{command:t,args:s,options:e};let o=g(t,e),r=null;if(o!==null){const n=Buffer.alloc(150);let c=null;try{c=F(o,"r"),H(c,n,0,150,0)}catch{}finally{c!==null&&M(c)}const d=n.toString().match(X);if(d!==null){const a=d[1].trim(),l=a.indexOf(" "),x=l!==-1?a.slice(0,l):a,O=l!==-1?a.slice(l+1):"",f=j(x);r=f==="env"?O||null:f}}if(r!==null&&o!==null&&(s=[o,...s],t=r,o=g(t,e)),o===null||!D.test(o)){const i=o!==null&&W.test(o);t=k(t),t=t.replace(_,"^$1"),s=s.map(n=>(n=n.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),n=n.replace(/(?=(\\+?)?)\1$/,"$1$1"),n=`"${n}"`,n=n.replace(_,"^$1"),i&&(n=n.replace(_,"^$1")),n)),s=["/d","/s","/c",`"${[t,...s].join(" ")}"`],t=e.env?.comspec??"cmd.exe",e={...e,windowsVerbatimArguments:!0}}return{command:t,args:s,options:e}}function g(t,s){const e=(s.cwd??E()).toString(),o=s.env??process.env,r=b(o).value,i=t.includes("/")||t.includes("\\")?[""]:[e,...r.split(p)],n=o.PATHEXT?o.PATHEXT.split(p):G;t.includes(".")&&n[0]!==""&&n.unshift("");for(const c of i){const d=y(e,c.startsWith('"')&&c.endsWith('"')&&c.length>1?c.slice(1,-1):c,t);for(const a of n){const l=d+a;try{if(R(l).isFile())return l}catch{}}}return null}var v=class extends Error{result;output;get exitCode(){if(this.result.exitCode!==null)return this.result.exitCode}constructor(t,s){super(`Process exited with non-zero status (${t.exitCode})`),this.result=t,this.output=s}};const K={timeout:void 0,persist:!1},Q={windowsHide:!0};function U(t){const s=new AbortController;for(const e of t){if(e.aborted)return s.abort(),e;const o=()=>{s.abort(e.reason)};e.addEventListener("abort",o,{signal:s.signal})}return s.signal}async function C(t){let s="";try{for await(const e of t)s+=e.toString()}catch{}return s}var Y=class{_process;_aborted=!1;_options;_command;_args;_resolveClose;_processClosed;_thrownError;get process(){return this._process}get pid(){return this._process?.pid}get exitCode(){if(this._process&&this._process.exitCode!==null)return this._process.exitCode}constructor(t,s,e){this._options={...K,...e},this._command=t,this._args=s??[],this._processClosed=new Promise(o=>{this._resolveClose=o})}kill(t){return this._process?.kill(t)===!0}get aborted(){return this._aborted}get killed(){return this._process?.killed===!0}pipe(t,s,e){return tt(t,s,{...e,stdin:this})}async*[Symbol.asyncIterator](){const t=this._process;if(!t)return;const s=[];this._streamErr&&s.push(this._streamErr),this._streamOut&&s.push(this._streamOut);const e=N(s),o=B.createInterface({input:e});for await(const r of o)yield r.toString();if(await this._processClosed,t.removeAllListeners(),this._thrownError)throw this._thrownError;if(this._options?.throwOnError&&this.exitCode!==0&&this.exitCode!==void 0)throw new v(this)}async _waitForOutput(){const t=this._process;if(!t)throw new Error("No process was started");const[s,e]=await Promise.all([this._streamOut?C(this._streamOut):"",this._streamErr?C(this._streamErr):""]);await this._processClosed;const{stdin:o}=this._options;if(o&&typeof o!="string"&&await o,t.removeAllListeners(),this._thrownError)throw this._thrownError;const r={stderr:e,stdout:s,exitCode:this.exitCode};if(this._options.throwOnError&&this.exitCode!==0&&this.exitCode!==void 0)throw new v(this,r);return r}then(t,s){return this._waitForOutput().then(t,s)}_streamOut;_streamErr;spawn(){const t=E(),s=this._options,e={...Q,...s.nodeOptions},o=[];this._resetState(),s.timeout!==void 0&&o.push(AbortSignal.timeout(s.timeout)),s.signal!==void 0&&o.push(s.signal),s.persist===!0&&(e.detached=!0),o.length>0&&(e.signal=U(o)),e.env=L(t,e.env,s.nodePath);const r=J(this._command,this._args,e),i=T(r.command,r.args,r.options);if(i.stderr&&(this._streamErr=i.stderr),i.stdout&&(this._streamOut=i.stdout),this._process=i,i.once("error",this._onError),i.once("close",this._onClose),i.stdin){const{stdin:n}=s;typeof n=="string"?i.stdin.end(n):n?.process?.stdout?.pipe(i.stdin)}}_resetState(){this._aborted=!1,this._processClosed=new Promise(t=>{this._resolveClose=t}),this._thrownError=void 0}_onError=t=>{if(t.name==="AbortError"&&(!(t.cause instanceof Error)||t.cause.name!=="TimeoutError")){this._aborted=!0;return}this._thrownError=t};_onClose=()=>{this._resolveClose&&this._resolveClose()}};const Z=(t,s,e)=>{const o=new Y(t,s,e);return o.spawn(),o},tt=Z;export{Z as R};