@socketsecurity/lib 3.2.3 → 3.2.5

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 (316) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +31 -35
  3. package/dist/abort.js +1 -1
  4. package/dist/agent.js +11 -11
  5. package/dist/ansi.js +1 -1
  6. package/dist/argv/flags.js +1 -1
  7. package/dist/argv/parse.js +1 -1
  8. package/dist/arrays.js +1 -1
  9. package/dist/bin.js +5 -5
  10. package/dist/cacache.js +1 -1
  11. package/dist/cache-with-ttl.js +1 -1
  12. package/dist/constants/agents.js +1 -1
  13. package/dist/constants/core.js +1 -1
  14. package/dist/constants/encoding.js +1 -1
  15. package/dist/constants/github.js +1 -1
  16. package/dist/constants/licenses.js +1 -1
  17. package/dist/constants/node.js +2 -13
  18. package/dist/constants/packages.js +10 -25
  19. package/dist/constants/paths.js +1 -1
  20. package/dist/constants/platform.js +1 -1
  21. package/dist/constants/process.js +3 -7
  22. package/dist/constants/socket.js +1 -1
  23. package/dist/constants/testing.js +1 -1
  24. package/dist/constants/time.js +1 -1
  25. package/dist/constants/typescript.js +1 -1
  26. package/dist/cover/code.js +1 -1
  27. package/dist/cover/formatters.js +1 -1
  28. package/dist/cover/type.js +1 -1
  29. package/dist/cover/types.js +1 -1
  30. package/dist/debug.js +4 -4
  31. package/dist/dlx-binary.js +5 -5
  32. package/dist/dlx-manifest.js +1 -1
  33. package/dist/dlx-package.js +1 -1
  34. package/dist/dlx.js +1 -1
  35. package/dist/effects/pulse-frames.js +4 -4
  36. package/dist/effects/text-shimmer.js +2 -2
  37. package/dist/effects/types.js +1 -1
  38. package/dist/effects/ultra.js +1 -1
  39. package/dist/env/ci.js +3 -3
  40. package/dist/env/debug.js +2 -2
  41. package/dist/env/github.js +2 -2
  42. package/dist/env/helpers.js +1 -1
  43. package/dist/env/home.js +2 -2
  44. package/dist/env/locale.js +2 -2
  45. package/dist/env/node-auth-token.js +2 -2
  46. package/dist/env/node-env.js +2 -2
  47. package/dist/env/npm.js +2 -2
  48. package/dist/env/package-manager.js +2 -2
  49. package/dist/env/path.js +2 -2
  50. package/dist/env/pre-commit.js +3 -3
  51. package/dist/env/rewire.js +1 -1
  52. package/dist/env/shell.js +2 -2
  53. package/dist/env/socket-cli-shadow.js +3 -3
  54. package/dist/env/socket-cli.js +3 -3
  55. package/dist/env/socket.js +3 -3
  56. package/dist/env/temp-dir.js +2 -2
  57. package/dist/env/term.js +2 -2
  58. package/dist/env/test.js +4 -4
  59. package/dist/env/windows.js +2 -2
  60. package/dist/env/xdg.js +2 -2
  61. package/dist/env.js +1 -1
  62. package/dist/external/@inquirer/confirm.js +16 -15
  63. package/dist/external/@inquirer/input.js +16 -15
  64. package/dist/external/@inquirer/password.js +17 -16
  65. package/dist/external/@inquirer/search.js +18 -17
  66. package/dist/external/@inquirer/select.js +19 -18
  67. package/dist/external/@npmcli/package-json/lib/read-package.js +7 -1
  68. package/dist/external/@npmcli/package-json/lib/sort.js +6 -1
  69. package/dist/external/@npmcli/package-json.js +18 -0
  70. package/dist/external/@npmcli/promise-spawn.js +2 -1
  71. package/dist/external/@socketregistry/is-unicode-supported.js +2 -1
  72. package/dist/external/@socketregistry/packageurl-js.js +3 -2
  73. package/dist/external/@socketregistry/yocto-spinner.js +5 -4
  74. package/dist/external/@yarnpkg/extensions.js +2 -1
  75. package/dist/external/cacache.js +10 -9
  76. package/dist/external/debug.js +2 -5
  77. package/dist/external/del.js +3 -2
  78. package/dist/external/fast-glob.js +3 -2
  79. package/dist/external/fast-sort.js +2 -1
  80. package/dist/external/get-east-asian-width.js +2 -1
  81. package/dist/external/libnpmexec.js +6 -0
  82. package/dist/external/libnpmpack.js +64 -63
  83. package/dist/external/make-fetch-happen.js +16 -15
  84. package/dist/external/normalize-package-data.js +3 -2
  85. package/dist/external/npm-package-arg.js +3 -2
  86. package/dist/external/pacote.js +36 -35
  87. package/dist/external/picomatch.js +2 -1
  88. package/dist/external/semver.js +2 -1
  89. package/dist/external/spdx-correct.js +2 -1
  90. package/dist/external/spdx-expression-parse.js +2 -1
  91. package/dist/external/streaming-iterables.js +2 -1
  92. package/dist/external/validate-npm-package-name.js +2 -1
  93. package/dist/external/which.js +2 -1
  94. package/dist/external/yargs-parser.js +2 -1
  95. package/dist/external/yoctocolors-cjs.js +2 -1
  96. package/dist/external/zod.js +10 -9
  97. package/dist/fs.js +3 -3
  98. package/dist/functions.js +1 -1
  99. package/dist/git.js +2 -2
  100. package/dist/github.js +3 -3
  101. package/dist/globs.js +3 -3
  102. package/dist/http-request.js +1 -1
  103. package/dist/ipc.js +1 -1
  104. package/dist/json.js +1 -1
  105. package/dist/lifecycle-script-names.d.ts +2 -0
  106. package/dist/lifecycle-script-names.js +40 -0
  107. package/dist/links/index.js +1 -1
  108. package/dist/logger.d.ts +29 -4
  109. package/dist/logger.js +34 -5
  110. package/dist/maintained-node-versions.js +1 -1
  111. package/dist/memoization.js +1 -1
  112. package/dist/objects.js +2 -2
  113. package/dist/package-default-node-range.d.ts +2 -0
  114. package/dist/package-default-node-range.js +27 -0
  115. package/dist/package-default-socket-categories.d.ts +2 -0
  116. package/dist/package-default-socket-categories.js +25 -0
  117. package/dist/package-extensions.d.ts +2 -0
  118. package/dist/package-extensions.js +66 -0
  119. package/dist/packages/editable.js +1 -1
  120. package/dist/packages/exports.js +2 -2
  121. package/dist/packages/isolation.js +3 -3
  122. package/dist/packages/licenses.js +3 -3
  123. package/dist/packages/manifest.js +4 -4
  124. package/dist/packages/normalize.js +2 -2
  125. package/dist/packages/operations.js +6 -6
  126. package/dist/packages/paths.js +1 -1
  127. package/dist/packages/provenance.js +2 -2
  128. package/dist/packages/specs.js +1 -1
  129. package/dist/packages/validation.js +1 -1
  130. package/dist/packages.js +1 -1
  131. package/dist/path.js +2 -2
  132. package/dist/paths/rewire.js +1 -1
  133. package/dist/paths.js +15 -15
  134. package/dist/performance.js +1 -1
  135. package/dist/process-lock.js +1 -1
  136. package/dist/promise-queue.js +1 -1
  137. package/dist/promises.js +3 -3
  138. package/dist/regexps.js +1 -1
  139. package/dist/sea.js +1 -1
  140. package/dist/shadow.js +1 -1
  141. package/dist/signal-exit.js +1 -1
  142. package/dist/sorts.js +1 -1
  143. package/dist/spawn.js +2 -2
  144. package/dist/spinner.js +3 -3
  145. package/dist/ssri.js +1 -1
  146. package/dist/stdio/clear.js +1 -1
  147. package/dist/stdio/divider.js +1 -1
  148. package/dist/stdio/footer.js +1 -1
  149. package/dist/stdio/header.js +1 -1
  150. package/dist/stdio/mask.js +1 -1
  151. package/dist/stdio/progress.js +1 -1
  152. package/dist/stdio/prompts.js +2 -2
  153. package/dist/stdio/stderr.js +1 -1
  154. package/dist/stdio/stdout.js +1 -1
  155. package/dist/streams.js +1 -1
  156. package/dist/strings.js +1 -1
  157. package/dist/suppress-warnings.js +1 -1
  158. package/dist/tables.js +1 -1
  159. package/dist/temporary-executor.js +2 -2
  160. package/dist/themes/context.js +1 -1
  161. package/dist/themes/index.js +1 -1
  162. package/dist/themes/themes.js +1 -1
  163. package/dist/themes/types.js +1 -1
  164. package/dist/themes/utils.js +1 -1
  165. package/dist/types.js +1 -1
  166. package/dist/url.js +1 -1
  167. package/dist/utils/get-ipc.js +1 -1
  168. package/dist/validation/json-parser.js +1 -1
  169. package/dist/validation/types.js +1 -1
  170. package/dist/versions.js +1 -1
  171. package/dist/words.js +1 -1
  172. package/dist/zod.js +1 -1
  173. package/package.json +18 -2
  174. package/dist/abort.js.map +0 -7
  175. package/dist/agent.js.map +0 -7
  176. package/dist/ansi.js.map +0 -7
  177. package/dist/argv/flags.js.map +0 -7
  178. package/dist/argv/parse.js.map +0 -7
  179. package/dist/arrays.js.map +0 -7
  180. package/dist/bin.js.map +0 -7
  181. package/dist/cacache.js.map +0 -7
  182. package/dist/cache-with-ttl.js.map +0 -7
  183. package/dist/constants/agents.js.map +0 -7
  184. package/dist/constants/core.js.map +0 -7
  185. package/dist/constants/encoding.js.map +0 -7
  186. package/dist/constants/github.js.map +0 -7
  187. package/dist/constants/licenses.js.map +0 -7
  188. package/dist/constants/node.js.map +0 -7
  189. package/dist/constants/packages.js.map +0 -7
  190. package/dist/constants/paths.js.map +0 -7
  191. package/dist/constants/platform.js.map +0 -7
  192. package/dist/constants/process.js.map +0 -7
  193. package/dist/constants/socket.js.map +0 -7
  194. package/dist/constants/testing.js.map +0 -7
  195. package/dist/constants/time.js.map +0 -7
  196. package/dist/constants/typescript.js.map +0 -7
  197. package/dist/cover/code.js.map +0 -7
  198. package/dist/cover/formatters.js.map +0 -7
  199. package/dist/cover/type.js.map +0 -7
  200. package/dist/cover/types.js.map +0 -7
  201. package/dist/debug.js.map +0 -7
  202. package/dist/dlx-binary.js.map +0 -7
  203. package/dist/dlx-manifest.js.map +0 -7
  204. package/dist/dlx-package.js.map +0 -7
  205. package/dist/dlx.js.map +0 -7
  206. package/dist/effects/pulse-frames.js.map +0 -7
  207. package/dist/effects/text-shimmer.js.map +0 -7
  208. package/dist/effects/types.js.map +0 -7
  209. package/dist/effects/ultra.js.map +0 -7
  210. package/dist/env/ci.js.map +0 -7
  211. package/dist/env/debug.js.map +0 -7
  212. package/dist/env/github.js.map +0 -7
  213. package/dist/env/helpers.js.map +0 -7
  214. package/dist/env/home.js.map +0 -7
  215. package/dist/env/locale.js.map +0 -7
  216. package/dist/env/node-auth-token.js.map +0 -7
  217. package/dist/env/node-env.js.map +0 -7
  218. package/dist/env/npm.js.map +0 -7
  219. package/dist/env/package-manager.js.map +0 -7
  220. package/dist/env/path.js.map +0 -7
  221. package/dist/env/pre-commit.js.map +0 -7
  222. package/dist/env/rewire.js.map +0 -7
  223. package/dist/env/shell.js.map +0 -7
  224. package/dist/env/socket-cli-shadow.js.map +0 -7
  225. package/dist/env/socket-cli.js.map +0 -7
  226. package/dist/env/socket.js.map +0 -7
  227. package/dist/env/temp-dir.js.map +0 -7
  228. package/dist/env/term.js.map +0 -7
  229. package/dist/env/test.js.map +0 -7
  230. package/dist/env/windows.js.map +0 -7
  231. package/dist/env/xdg.js.map +0 -7
  232. package/dist/env.js.map +0 -7
  233. package/dist/external/@npmcli/package-json/index.js +0 -1
  234. package/dist/external/@socketregistry/is-unicode-supported.d.ts +0 -2
  235. package/dist/external/@socketregistry/yocto-spinner.d.ts +0 -12
  236. package/dist/external/@yarnpkg/extensions.d.ts +0 -4
  237. package/dist/external/cacache.d.ts +0 -86
  238. package/dist/external/debug.d.ts +0 -22
  239. package/dist/external/del.d.ts +0 -1
  240. package/dist/external/fast-sort.d.ts +0 -3
  241. package/dist/external/get-east-asian-width.d.ts +0 -5
  242. package/dist/external/libnpmexec.d.ts +0 -33
  243. package/dist/external/libnpmpack.d.ts +0 -2
  244. package/dist/external/make-fetch-happen.d.ts +0 -15
  245. package/dist/external/pacote.d.ts +0 -14
  246. package/dist/external/semver.d.ts +0 -2
  247. package/dist/external/yargs-parser.d.ts +0 -2
  248. package/dist/external/yoctocolors-cjs.d.ts +0 -52
  249. package/dist/external/zod.d.ts +0 -1
  250. package/dist/fs.js.map +0 -7
  251. package/dist/functions.js.map +0 -7
  252. package/dist/git.js.map +0 -7
  253. package/dist/github.js.map +0 -7
  254. package/dist/globs.js.map +0 -7
  255. package/dist/http-request.js.map +0 -7
  256. package/dist/ipc.js.map +0 -7
  257. package/dist/json.js.map +0 -7
  258. package/dist/links/index.js.map +0 -7
  259. package/dist/logger.js.map +0 -7
  260. package/dist/maintained-node-versions.js.map +0 -7
  261. package/dist/memoization.js.map +0 -7
  262. package/dist/objects.js.map +0 -7
  263. package/dist/packages/editable.js.map +0 -7
  264. package/dist/packages/exports.js.map +0 -7
  265. package/dist/packages/isolation.js.map +0 -7
  266. package/dist/packages/licenses.js.map +0 -7
  267. package/dist/packages/manifest.js.map +0 -7
  268. package/dist/packages/normalize.js.map +0 -7
  269. package/dist/packages/operations.js.map +0 -7
  270. package/dist/packages/paths.js.map +0 -7
  271. package/dist/packages/provenance.js.map +0 -7
  272. package/dist/packages/specs.js.map +0 -7
  273. package/dist/packages/validation.js.map +0 -7
  274. package/dist/packages.js.map +0 -7
  275. package/dist/path.js.map +0 -7
  276. package/dist/paths/rewire.js.map +0 -7
  277. package/dist/paths.js.map +0 -7
  278. package/dist/performance.js.map +0 -7
  279. package/dist/process-lock.js.map +0 -7
  280. package/dist/promise-queue.js.map +0 -7
  281. package/dist/promises.js.map +0 -7
  282. package/dist/regexps.js.map +0 -7
  283. package/dist/sea.js.map +0 -7
  284. package/dist/shadow.js.map +0 -7
  285. package/dist/signal-exit.js.map +0 -7
  286. package/dist/sorts.js.map +0 -7
  287. package/dist/spawn.js.map +0 -7
  288. package/dist/spinner.js.map +0 -7
  289. package/dist/ssri.js.map +0 -7
  290. package/dist/stdio/clear.js.map +0 -7
  291. package/dist/stdio/divider.js.map +0 -7
  292. package/dist/stdio/footer.js.map +0 -7
  293. package/dist/stdio/header.js.map +0 -7
  294. package/dist/stdio/mask.js.map +0 -7
  295. package/dist/stdio/progress.js.map +0 -7
  296. package/dist/stdio/prompts.js.map +0 -7
  297. package/dist/stdio/stderr.js.map +0 -7
  298. package/dist/stdio/stdout.js.map +0 -7
  299. package/dist/streams.js.map +0 -7
  300. package/dist/strings.js.map +0 -7
  301. package/dist/suppress-warnings.js.map +0 -7
  302. package/dist/tables.js.map +0 -7
  303. package/dist/temporary-executor.js.map +0 -7
  304. package/dist/themes/context.js.map +0 -7
  305. package/dist/themes/index.js.map +0 -7
  306. package/dist/themes/themes.js.map +0 -7
  307. package/dist/themes/types.js.map +0 -7
  308. package/dist/themes/utils.js.map +0 -7
  309. package/dist/types.js.map +0 -7
  310. package/dist/url.js.map +0 -7
  311. package/dist/utils/get-ipc.js.map +0 -7
  312. package/dist/validation/json-parser.js.map +0 -7
  313. package/dist/validation/types.js.map +0 -7
  314. package/dist/versions.js.map +0 -7
  315. package/dist/words.js.map +0 -7
  316. package/dist/zod.js.map +0 -7
@@ -1,6 +1,7 @@
1
+ "use strict";
1
2
  /**
2
3
  * Bundled from normalize-package-data
3
4
  * This is a zero-dependency bundle created by esbuild.
4
5
  */
5
- var Ot=Object.defineProperty;var r=(t,e)=>Ot(t,"name",{value:e,configurable:!0});var P=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var V=P((es,de)=>{"use strict";var bt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>{}:()=>{};de.exports=bt});var K=P((ts,me)=>{"use strict";var wt="2.0.0",Rt=Number.MAX_SAFE_INTEGER||9007199254740991,vt=16,$t=250,Gt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];me.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:vt,MAX_SAFE_BUILD_LENGTH:$t,MAX_SAFE_INTEGER:Rt,RELEASE_TYPES:Gt,SEMVER_SPEC_VERSION:wt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Se=P((w,Ee)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Z,MAX_SAFE_BUILD_LENGTH:Tt,MAX_LENGTH:Ft}=K(),xt=V();w=Ee.exports={};var Ut=w.re=[],Bt=w.safeRe=[],a=w.src=[],Mt=w.safeSrc=[],c=w.t={},Ht=0,J="[a-zA-Z0-9-]",_t=[["\\s",1],["\\d",Ft],[J,Tt]],kt=r(t=>{for(let[e,i]of _t)t=t.split(`${e}*`).join(`${e}{0,${i}}`).split(`${e}+`).join(`${e}{1,${i}}`);return t},"makeSafeRegex"),L=r((t,e,i)=>{let s=kt(e),n=Ht++;xt(t,n,e),c[t]=n,a[n]=e,Mt[n]=s,Ut[n]=new RegExp(e,i?"g":void 0),Bt[n]=new RegExp(s,i?"g":void 0)},"createToken");L("NUMERICIDENTIFIER","0|[1-9]\\d*");L("NUMERICIDENTIFIERLOOSE","\\d+");L("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${J}*`);L("MAINVERSION",`(${a[c.NUMERICIDENTIFIER]})\\.(${a[c.NUMERICIDENTIFIER]})\\.(${a[c.NUMERICIDENTIFIER]})`);L("MAINVERSIONLOOSE",`(${a[c.NUMERICIDENTIFIERLOOSE]})\\.(${a[c.NUMERICIDENTIFIERLOOSE]})\\.(${a[c.NUMERICIDENTIFIERLOOSE]})`);L("PRERELEASEIDENTIFIER",`(?:${a[c.NONNUMERICIDENTIFIER]}|${a[c.NUMERICIDENTIFIER]})`);L("PRERELEASEIDENTIFIERLOOSE",`(?:${a[c.NONNUMERICIDENTIFIER]}|${a[c.NUMERICIDENTIFIERLOOSE]})`);L("PRERELEASE",`(?:-(${a[c.PRERELEASEIDENTIFIER]}(?:\\.${a[c.PRERELEASEIDENTIFIER]})*))`);L("PRERELEASELOOSE",`(?:-?(${a[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[c.PRERELEASEIDENTIFIERLOOSE]})*))`);L("BUILDIDENTIFIER",`${J}+`);L("BUILD",`(?:\\+(${a[c.BUILDIDENTIFIER]}(?:\\.${a[c.BUILDIDENTIFIER]})*))`);L("FULLPLAIN",`v?${a[c.MAINVERSION]}${a[c.PRERELEASE]}?${a[c.BUILD]}?`);L("FULL",`^${a[c.FULLPLAIN]}$`);L("LOOSEPLAIN",`[v=\\s]*${a[c.MAINVERSIONLOOSE]}${a[c.PRERELEASELOOSE]}?${a[c.BUILD]}?`);L("LOOSE",`^${a[c.LOOSEPLAIN]}$`);L("GTLT","((?:<|>)?=?)");L("XRANGEIDENTIFIERLOOSE",`${a[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);L("XRANGEIDENTIFIER",`${a[c.NUMERICIDENTIFIER]}|x|X|\\*`);L("XRANGEPLAIN",`[v=\\s]*(${a[c.XRANGEIDENTIFIER]})(?:\\.(${a[c.XRANGEIDENTIFIER]})(?:\\.(${a[c.XRANGEIDENTIFIER]})(?:${a[c.PRERELEASE]})?${a[c.BUILD]}?)?)?`);L("XRANGEPLAINLOOSE",`[v=\\s]*(${a[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[c.XRANGEIDENTIFIERLOOSE]})(?:${a[c.PRERELEASELOOSE]})?${a[c.BUILD]}?)?)?`);L("XRANGE",`^${a[c.GTLT]}\\s*${a[c.XRANGEPLAIN]}$`);L("XRANGELOOSE",`^${a[c.GTLT]}\\s*${a[c.XRANGEPLAINLOOSE]}$`);L("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Z}})(?:\\.(\\d{1,${Z}}))?(?:\\.(\\d{1,${Z}}))?`);L("COERCE",`${a[c.COERCEPLAIN]}(?:$|[^\\d])`);L("COERCEFULL",a[c.COERCEPLAIN]+`(?:${a[c.PRERELEASE]})?(?:${a[c.BUILD]})?(?:$|[^\\d])`);L("COERCERTL",a[c.COERCE],!0);L("COERCERTLFULL",a[c.COERCEFULL],!0);L("LONETILDE","(?:~>?)");L("TILDETRIM",`(\\s*)${a[c.LONETILDE]}\\s+`,!0);w.tildeTrimReplace="$1~";L("TILDE",`^${a[c.LONETILDE]}${a[c.XRANGEPLAIN]}$`);L("TILDELOOSE",`^${a[c.LONETILDE]}${a[c.XRANGEPLAINLOOSE]}$`);L("LONECARET","(?:\\^)");L("CARETTRIM",`(\\s*)${a[c.LONECARET]}\\s+`,!0);w.caretTrimReplace="$1^";L("CARET",`^${a[c.LONECARET]}${a[c.XRANGEPLAIN]}$`);L("CARETLOOSE",`^${a[c.LONECARET]}${a[c.XRANGEPLAINLOOSE]}$`);L("COMPARATORLOOSE",`^${a[c.GTLT]}\\s*(${a[c.LOOSEPLAIN]})$|^$`);L("COMPARATOR",`^${a[c.GTLT]}\\s*(${a[c.FULLPLAIN]})$|^$`);L("COMPARATORTRIM",`(\\s*)${a[c.GTLT]}\\s*(${a[c.LOOSEPLAIN]}|${a[c.XRANGEPLAIN]})`,!0);w.comparatorTrimReplace="$1$2$3";L("HYPHENRANGE",`^\\s*(${a[c.XRANGEPLAIN]})\\s+-\\s+(${a[c.XRANGEPLAIN]})\\s*$`);L("HYPHENRANGELOOSE",`^\\s*(${a[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[c.XRANGEPLAINLOOSE]})\\s*$`);L("STAR","(<|>)?=?\\s*\\*");L("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");L("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Ce=P((ss,ge)=>{"use strict";var Wt=Object.freeze({loose:!0}),jt=Object.freeze({}),zt=r(t=>t?typeof t!="object"?Wt:t:jt,"parseOptions");ge.exports=zt});var Ne=P((rs,De)=>{"use strict";var Pe=/^[0-9]+$/,Ae=r((t,e)=>{let i=Pe.test(t),s=Pe.test(e);return i&&s&&(t=+t,e=+e),t===e?0:i&&!s?-1:s&&!i?1:t<e?-1:1},"compareIdentifiers"),Yt=r((t,e)=>Ae(e,t),"rcompareIdentifiers");De.exports={compareIdentifiers:Ae,rcompareIdentifiers:Yt}});var Oe=P((ls,Ie)=>{"use strict";var H=V(),{MAX_LENGTH:ye,MAX_SAFE_INTEGER:_}=K(),{safeRe:k,t:W}=Se(),Xt=Ce(),{compareIdentifiers:x}=Ne(),Q=class t{static{r(this,"SemVer")}constructor(e,i){if(i=Xt(i),e instanceof t){if(e.loose===!!i.loose&&e.includePrerelease===!!i.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>ye)throw new TypeError(`version is longer than ${ye} characters`);H("SemVer",e,i),this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease;let s=e.trim().match(i.loose?k[W.LOOSE]:k[W.FULL]);if(!s)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>_||this.major<0)throw new TypeError("Invalid major version");if(this.minor>_||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>_||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(n=>{if(/^[0-9]+$/.test(n)){let o=+n;if(o>=0&&o<_)return o}return n}):this.prerelease=[],this.build=s[5]?s[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(H("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),x(this.major,e.major)||x(this.minor,e.minor)||x(this.patch,e.patch)}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let i=0;do{let s=this.prerelease[i],n=e.prerelease[i];if(H("prerelease compare",i,s,n),s===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(s===void 0)return-1;if(s===n)continue;return x(s,n)}while(++i)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let i=0;do{let s=this.build[i],n=e.build[i];if(H("build compare",i,s,n),s===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(s===void 0)return-1;if(s===n)continue;return x(s,n)}while(++i)}inc(e,i,s){if(e.startsWith("pre")){if(!i&&s===!1)throw new Error("invalid increment argument: identifier is empty");if(i){let n=`-${i}`.match(this.options.loose?k[W.PRERELEASELOOSE]:k[W.PRERELEASE]);if(!n||n[1]!==i)throw new Error(`invalid identifier: ${i}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",i,s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",i,s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",i,s),this.inc("pre",i,s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",i,s),this.inc("pre",i,s);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let n=Number(s)?1:0;if(this.prerelease.length===0)this.prerelease=[n];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(i===this.prerelease.join(".")&&s===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(n)}}if(i){let o=[i,n];s===!1&&(o=[i]),x(this.prerelease[0],i)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Ie.exports=Q});var ee=P((cs,we)=>{"use strict";var be=Oe(),qt=r((t,e,i=!1)=>{if(t instanceof be)return t;try{return new be(t,e)}catch(s){if(!i)return null;throw s}},"parse");we.exports=qt});var ve=P((us,Re)=>{"use strict";var Vt=ee(),Kt=r((t,e)=>{let i=Vt(t,e);return i?i.version:null},"valid");Re.exports=Kt});var Ge=P((ps,$e)=>{"use strict";var Zt=ee(),Jt=r((t,e)=>{let i=Zt(t.trim().replace(/^[=v]+/,""),e);return i?i.version:null},"clean");$e.exports=Jt});var te=P((ds,Qt)=>{Qt.exports=["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","Artistic-dist","Aspell-RU","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-2-Clause-pkgconf-disclaimer","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CryptoSwift","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-DTD","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRSD","FSFULLRWD","FSL-1.1-ALv2","FSL-1.1-MIT","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Game-Programming-Gems","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HDF5","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTIA-PD","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SOFA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SUL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","Unlicense-libtelnet","Unlicense-libwhirlpool","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","iMatix","jove","libpng-1.6.35","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","man2html","metamail","mpi-permissive","mpich2","mplus","ngrep","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]});var Te=P((ms,ei)=>{ei.exports=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Net-SNMP","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"]});var Fe=P((Es,ti)=>{ti.exports=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]});var Ue=P((Ss,xe)=>{"use strict";var ii=[].concat(te()).concat(Te()),si=Fe();xe.exports=function(t){var e=0;function i(){return e<t.length}r(i,"hasMore");function s(S){if(S instanceof RegExp){var h=t.slice(e),d=h.match(S);if(d)return e+=d[0].length,d[0]}else if(t.indexOf(S,e)===e)return e+=S.length,S}r(s,"read");function n(){s(/[ ]*/)}r(n,"skipWhitespace");function o(){for(var S,h=["WITH","AND","OR","(",")",":","+"],d=0;d<h.length&&(S=s(h[d]),!S);d++);if(S==="+"&&e>1&&t[e-2]===" ")throw new Error("Space before `+`");return S&&{type:"OPERATOR",string:S}}r(o,"operator");function l(){return s(/[A-Za-z0-9-.]+/)}r(l,"idstring");function u(){var S=l();if(!S)throw new Error("Expected idstring at offset "+e);return S}r(u,"expectIdstring");function f(){if(s("DocumentRef-")){var S=u();return{type:"DOCUMENTREF",string:S}}}r(f,"documentRef");function A(){if(s("LicenseRef-")){var S=u();return{type:"LICENSEREF",string:S}}}r(A,"licenseRef");function I(){var S=e,h=l();if(ii.indexOf(h)!==-1)return{type:"LICENSE",string:h};if(si.indexOf(h)!==-1)return{type:"EXCEPTION",string:h};e=S}r(I,"identifier");function m(){return o()||f()||A()||I()}r(m,"parseToken");for(var g=[];i()&&(n(),!!i());){var E=m();if(!E)throw new Error("Unexpected `"+t[e]+"` at offset "+e);g.push(E)}return g}});var Me=P((Cs,Be)=>{"use strict";Be.exports=function(t){var e=0;function i(){return e<t.length}r(i,"hasMore");function s(){return i()?t[e]:null}r(s,"token");function n(){if(!i())throw new Error;e++}r(n,"next");function o(h){var d=s();if(d&&d.type==="OPERATOR"&&h===d.string)return n(),d.string}r(o,"parseOperator");function l(){if(o("WITH")){var h=s();if(h&&h.type==="EXCEPTION")return n(),h.string;throw new Error("Expected exception after `WITH`")}}r(l,"parseWith");function u(){var h=e,d="",p=s();if(p.type==="DOCUMENTREF"&&(n(),d+="DocumentRef-"+p.string+":",!o(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(p=s(),p.type==="LICENSEREF")return n(),d+="LicenseRef-"+p.string,{license:d};e=h}r(u,"parseLicenseRef");function f(){var h=s();if(h&&h.type==="LICENSE"){n();var d={license:h.string};o("+")&&(d.plus=!0);var p=l();return p&&(d.exception=p),d}}r(f,"parseLicense");function A(){var h=o("(");if(h){var d=E();if(!o(")"))throw new Error("Expected `)`");return d}}r(A,"parseParenthesizedExpression");function I(){return A()||u()||f()}r(I,"parseAtom");function m(h,d){return r(function p(){var D=d();if(D){if(!o(h))return D;var O=p();if(!O)throw new Error("Expected expression");return{left:D,conjunction:h.toLowerCase(),right:O}}},"parseBinaryOp")}r(m,"makeBinaryOpParser");var g=m("AND",I),E=m("OR",g),S=E();if(!S||i())throw new Error("Syntax error");return S}});var ie=P((As,He)=>{"use strict";var ni=Ue(),ri=Me();He.exports=function(t){return ri(ni(t))}});var Ve=P((Ds,qe)=>{var oi=ie(),li=te();function j(t){try{return oi(t),!0}catch{return!1}}r(j,"valid");function Xe(t,e){var i=e[0].length-t[0].length;return i!==0?i:t[0].toUpperCase().localeCompare(e[0].toUpperCase())}r(Xe,"sortTranspositions");var _e=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU LGPL","LGPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL"],["GNU Lesser General Public License","LGPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["GNU Lesser General Public License","LGPL-2.1"],["LESSER GENERAL PUBLIC LICENSE","LGPL"],["Lesser General Public License","LGPL"],["LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["Lesser General Public License","LGPL-2.1"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["WTFGPL","WTFPL"],["-License",""]].sort(Xe),ai=0,ci=1,ke=[function(t){return t.toUpperCase()},function(t){return t.trim()},function(t){return t.replace(/\./g,"")},function(t){return t.replace(/\s+/g,"")},function(t){return t.replace(/\s+/g,"-")},function(t){return t.replace("v","-")},function(t){return t.replace(/,?\s*(\d)/,"-$1")},function(t){return t.replace(/,?\s*(\d)/,"-$1.0")},function(t){return t.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(t){return t.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(t){return t[0].toUpperCase()+t.slice(1)},function(t){return t.replace("/","-")},function(t){return t.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(t){return t.indexOf("3.0")!==-1?t+"-or-later":t+"-only"},function(t){return t+"only"},function(t){return t.replace(/(\d)$/,"-$1.0")},function(t){return t.replace(/(-| )?(\d)$/,"-$2-Clause")},function(t){return t.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(t){return t.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(t){return t.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(t){return t.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(t){return t.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(t){return t.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(t){return"CC-"+t},function(t){return"CC-"+t+"-4.0"},function(t){return t.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(t){return"CC-"+t.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],se=li.map(function(t){var e=/^(.*)-\d+\.\d+$/.exec(t);return e?[e[0],e[1]]:[t,null]}).reduce(function(t,e){var i=e[1];return t[i]=t[i]||[],t[i].push(e[0]),t},{}),hi=Object.keys(se).map(r(function(e){return[e,se[e]]},"makeEntries")).filter(r(function(e){return e[1].length===1&&e[0]!==null&&e[0]!=="APL"},"identifySoleVersions")).map(r(function(e){return[e[0],e[1][0]]},"createLastResorts"));se=void 0;var We=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(hi).sort(Xe),ui=0,fi=1,je=r(function(t){for(var e=0;e<ke.length;e++){var i=ke[e](t).trim();if(i!==t&&j(i))return i}return null},"validTransformation"),ze=r(function(t){for(var e=t.toUpperCase(),i=0;i<We.length;i++){var s=We[i];if(e.indexOf(s[ui])>-1)return s[fi]}return null},"validLastResort"),Ye=r(function(t,e){for(var i=0;i<_e.length;i++){var s=_e[i],n=s[ai];if(t.indexOf(n)>-1){var o=t.replace(n,s[ci]),l=e(o);if(l!==null)return l}}return null},"anyCorrection");qe.exports=function(t,e){e=e||{};var i=e.upgrade===void 0?!0:!!e.upgrade;function s(u){return i?pi(u):u}r(s,"postprocess");var n=typeof t=="string"&&t.trim().length!==0;if(!n)throw Error("Invalid argument. Expected non-empty string.");if(t=t.trim(),j(t))return s(t);var o=t.replace(/\+$/,"").trim();if(j(o))return s(o);var l=je(t);return l!==null||(l=Ye(t,function(u){return j(u)?u:je(u)}),l!==null)||(l=ze(t),l!==null)||(l=Ye(t,ze),l!==null)?s(l):null};function pi(t){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(t)!==-1?t+"-only":["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(t)!==-1?t.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(t)!==-1?t+"-or-later":t}r(pi,"upgradeGPLs")});var Qe=P((ys,Je)=>{var Li=ie(),di=Ve(),Ke='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',mi=/^SEE LICEN[CS]E IN (.+)$/;function Ze(t,e){return e.slice(0,t.length)===t}r(Ze,"startsWith");function ne(t){if(t.hasOwnProperty("license")){var e=t.license;return Ze("LicenseRef",e)||Ze("DocumentRef",e)}else return ne(t.left)||ne(t.right)}r(ne,"usesLicenseRef");Je.exports=function(t){var e;try{e=Li(t)}catch{var i;if(t==="UNLICENSED"||t==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(i=mi.exec(t))return{validForOldPackages:!0,validForNewPackages:!0,inFile:i[1]};var s={validForOldPackages:!1,validForNewPackages:!1,warnings:[Ke]};if(t.trim().length!==0){var n=di(t);n&&s.warnings.push('license is similar to the valid expression "'+n+'"')}return s}return ne(e)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[Ke]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}}});var nt=P(Y=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});Y.LRUCache=void 0;var Ei=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,tt=new Set,re=typeof process=="object"&&process?process:{},it=r((t,e,i,s)=>{typeof re.emitWarning=="function"&&re.emitWarning(t,e,i,s)},"emitWarning"),z=globalThis.AbortController,et=globalThis.AbortSignal;if(typeof z>"u"){et=class{static{r(this,"AbortSignal")}onabort;_onabort=[];reason;aborted=!1;addEventListener(s,n){this._onabort.push(n)}},z=class{static{r(this,"AbortController")}constructor(){e()}signal=new et;abort(s){if(!this.signal.aborted){this.signal.reason=s,this.signal.aborted=!0;for(let n of this.signal._onabort)n(s);this.signal.onabort?.(s)}}};let t=re.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=r(()=>{t&&(t=!1,it("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))},"warnACPolyfill")}var Si=r(t=>!tt.has(t),"shouldWarn"),ws=Symbol("type"),R=r(t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),"isPosInt"),st=r(t=>R(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?U:null:null,"getUintArray"),U=class extends Array{static{r(this,"ZeroArray")}constructor(e){super(e),this.fill(0)}},oe=class t{static{r(this,"Stack")}heap;length;static#n=!1;static create(e){let i=st(e);if(!i)return[];t.#n=!0;let s=new t(e,i);return t.#n=!1,s}constructor(e,i){if(!t.#n)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new i(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},le=class t{static{r(this,"LRUCache")}#n;#c;#t;#b;#m;#$;#G;#E;get perf(){return this.#E}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#S;#r;#s;#e;#u;#p;#h;#l;#g;#a;#C;#P;#L;#A;#O;#f;#T;static unsafeExposeInternals(e){return{starts:e.#P,ttls:e.#L,sizes:e.#C,keyMap:e.#r,keyList:e.#s,valList:e.#e,next:e.#u,prev:e.#p,get head(){return e.#h},get tail(){return e.#l},free:e.#g,isBackgroundFetch:r(i=>e.#i(i),"isBackgroundFetch"),backgroundFetch:r((i,s,n,o)=>e.#U(i,s,n,o),"backgroundFetch"),moveToTail:r(i=>e.#v(i),"moveToTail"),indexes:r(i=>e.#D(i),"indexes"),rindexes:r(i=>e.#N(i),"rindexes"),isStale:r(i=>e.#d(i),"isStale")}}get max(){return this.#n}get maxSize(){return this.#c}get calculatedSize(){return this.#S}get size(){return this.#o}get fetchMethod(){return this.#$}get memoMethod(){return this.#G}get dispose(){return this.#t}get onInsert(){return this.#b}get disposeAfter(){return this.#m}constructor(e){let{max:i=0,ttl:s,ttlResolution:n=1,ttlAutopurge:o,updateAgeOnGet:l,updateAgeOnHas:u,allowStale:f,dispose:A,onInsert:I,disposeAfter:m,noDisposeOnSet:g,noUpdateTTL:E,maxSize:S=0,maxEntrySize:h=0,sizeCalculation:d,fetchMethod:p,memoMethod:D,noDeleteOnFetchRejection:O,noDeleteOnStaleGet:N,allowStaleOnFetchRejection:b,allowStaleOnFetchAbort:B,ignoreFetchAbort:G,perf:M}=e;if(M!==void 0&&typeof M?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#E=M??Ei,i!==0&&!R(i))throw new TypeError("max option must be a nonnegative integer");let T=i?st(i):Array;if(!T)throw new Error("invalid max value: "+i);if(this.#n=i,this.#c=S,this.maxEntrySize=h||this.#c,this.sizeCalculation=d,this.sizeCalculation){if(!this.#c&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(D!==void 0&&typeof D!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#G=D,p!==void 0&&typeof p!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#$=p,this.#O=!!p,this.#r=new Map,this.#s=new Array(i).fill(void 0),this.#e=new Array(i).fill(void 0),this.#u=new T(i),this.#p=new T(i),this.#h=0,this.#l=0,this.#g=oe.create(i),this.#o=0,this.#S=0,typeof A=="function"&&(this.#t=A),typeof I=="function"&&(this.#b=I),typeof m=="function"?(this.#m=m,this.#a=[]):(this.#m=void 0,this.#a=void 0),this.#A=!!this.#t,this.#T=!!this.#b,this.#f=!!this.#m,this.noDisposeOnSet=!!g,this.noUpdateTTL=!!E,this.noDeleteOnFetchRejection=!!O,this.allowStaleOnFetchRejection=!!b,this.allowStaleOnFetchAbort=!!B,this.ignoreFetchAbort=!!G,this.maxEntrySize!==0){if(this.#c!==0&&!R(this.#c))throw new TypeError("maxSize must be a positive integer if specified");if(!R(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#j()}if(this.allowStale=!!f,this.noDeleteOnStaleGet=!!N,this.updateAgeOnGet=!!l,this.updateAgeOnHas=!!u,this.ttlResolution=R(n)||n===0?n:1,this.ttlAutopurge=!!o,this.ttl=s||0,this.ttl){if(!R(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#B()}if(this.#n===0&&this.ttl===0&&this.#c===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#n&&!this.#c){let F="LRU_CACHE_UNBOUNDED";Si(F)&&(tt.add(F),it("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",F,t))}}getRemainingTTL(e){return this.#r.has(e)?1/0:0}#B(){let e=new U(this.#n),i=new U(this.#n);this.#L=e,this.#P=i,this.#M=(o,l,u=this.#E.now())=>{if(i[o]=l!==0?u:0,e[o]=l,l!==0&&this.ttlAutopurge){let f=setTimeout(()=>{this.#d(o)&&this.#y(this.#s[o],"expire")},l+1);f.unref&&f.unref()}},this.#w=o=>{i[o]=e[o]!==0?this.#E.now():0},this.#I=(o,l)=>{if(e[l]){let u=e[l],f=i[l];if(!u||!f)return;o.ttl=u,o.start=f,o.now=s||n();let A=o.now-f;o.remainingTTL=u-A}};let s=0,n=r(()=>{let o=this.#E.now();if(this.ttlResolution>0){s=o;let l=setTimeout(()=>s=0,this.ttlResolution);l.unref&&l.unref()}return o},"getNow");this.getRemainingTTL=o=>{let l=this.#r.get(o);if(l===void 0)return 0;let u=e[l],f=i[l];if(!u||!f)return 1/0;let A=(s||n())-f;return u-A},this.#d=o=>{let l=i[o],u=e[o];return!!u&&!!l&&(s||n())-l>u}}#w=r(()=>{},"#updateItemAge");#I=r(()=>{},"#statusTTL");#M=r(()=>{},"#setItemTTL");#d=r(()=>!1,"#isStale");#j(){let e=new U(this.#n);this.#S=0,this.#C=e,this.#R=i=>{this.#S-=e[i],e[i]=0},this.#H=(i,s,n,o)=>{if(this.#i(s))return 0;if(!R(n))if(o){if(typeof o!="function")throw new TypeError("sizeCalculation must be a function");if(n=o(s,i),!R(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return n},this.#F=(i,s,n)=>{if(e[i]=s,this.#c){let o=this.#c-e[i];for(;this.#S>o;)this.#x(!0)}this.#S+=e[i],n&&(n.entrySize=s,n.totalCalculatedSize=this.#S)}}#R=r(e=>{},"#removeItemSize");#F=r((e,i,s)=>{},"#addItemSize");#H=r((e,i,s,n)=>{if(s||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0},"#requireSize");*#D({allowStale:e=this.allowStale}={}){if(this.#o)for(let i=this.#l;!(!this.#_(i)||((e||!this.#d(i))&&(yield i),i===this.#h));)i=this.#p[i]}*#N({allowStale:e=this.allowStale}={}){if(this.#o)for(let i=this.#h;!(!this.#_(i)||((e||!this.#d(i))&&(yield i),i===this.#l));)i=this.#u[i]}#_(e){return e!==void 0&&this.#r.get(this.#s[e])===e}*entries(){for(let e of this.#D())this.#e[e]!==void 0&&this.#s[e]!==void 0&&!this.#i(this.#e[e])&&(yield[this.#s[e],this.#e[e]])}*rentries(){for(let e of this.#N())this.#e[e]!==void 0&&this.#s[e]!==void 0&&!this.#i(this.#e[e])&&(yield[this.#s[e],this.#e[e]])}*keys(){for(let e of this.#D()){let i=this.#s[e];i!==void 0&&!this.#i(this.#e[e])&&(yield i)}}*rkeys(){for(let e of this.#N()){let i=this.#s[e];i!==void 0&&!this.#i(this.#e[e])&&(yield i)}}*values(){for(let e of this.#D())this.#e[e]!==void 0&&!this.#i(this.#e[e])&&(yield this.#e[e])}*rvalues(){for(let e of this.#N())this.#e[e]!==void 0&&!this.#i(this.#e[e])&&(yield this.#e[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,i={}){for(let s of this.#D()){let n=this.#e[s],o=this.#i(n)?n.__staleWhileFetching:n;if(o!==void 0&&e(o,this.#s[s],this))return this.get(this.#s[s],i)}}forEach(e,i=this){for(let s of this.#D()){let n=this.#e[s],o=this.#i(n)?n.__staleWhileFetching:n;o!==void 0&&e.call(i,o,this.#s[s],this)}}rforEach(e,i=this){for(let s of this.#N()){let n=this.#e[s],o=this.#i(n)?n.__staleWhileFetching:n;o!==void 0&&e.call(i,o,this.#s[s],this)}}purgeStale(){let e=!1;for(let i of this.#N({allowStale:!0}))this.#d(i)&&(this.#y(this.#s[i],"expire"),e=!0);return e}info(e){let i=this.#r.get(e);if(i===void 0)return;let s=this.#e[i],n=this.#i(s)?s.__staleWhileFetching:s;if(n===void 0)return;let o={value:n};if(this.#L&&this.#P){let l=this.#L[i],u=this.#P[i];if(l&&u){let f=l-(this.#E.now()-u);o.ttl=f,o.start=Date.now()}}return this.#C&&(o.size=this.#C[i]),o}dump(){let e=[];for(let i of this.#D({allowStale:!0})){let s=this.#s[i],n=this.#e[i],o=this.#i(n)?n.__staleWhileFetching:n;if(o===void 0||s===void 0)continue;let l={value:o};if(this.#L&&this.#P){l.ttl=this.#L[i];let u=this.#E.now()-this.#P[i];l.start=Math.floor(Date.now()-u)}this.#C&&(l.size=this.#C[i]),e.unshift([s,l])}return e}load(e){this.clear();for(let[i,s]of e){if(s.start){let n=Date.now()-s.start;s.start=this.#E.now()-n}this.set(i,s.value,s)}}set(e,i,s={}){if(i===void 0)return this.delete(e),this;let{ttl:n=this.ttl,start:o,noDisposeOnSet:l=this.noDisposeOnSet,sizeCalculation:u=this.sizeCalculation,status:f}=s,{noUpdateTTL:A=this.noUpdateTTL}=s,I=this.#H(e,i,s.size||0,u);if(this.maxEntrySize&&I>this.maxEntrySize)return f&&(f.set="miss",f.maxEntrySizeExceeded=!0),this.#y(e,"set"),this;let m=this.#o===0?void 0:this.#r.get(e);if(m===void 0)m=this.#o===0?this.#l:this.#g.length!==0?this.#g.pop():this.#o===this.#n?this.#x(!1):this.#o,this.#s[m]=e,this.#e[m]=i,this.#r.set(e,m),this.#u[this.#l]=m,this.#p[m]=this.#l,this.#l=m,this.#o++,this.#F(m,I,f),f&&(f.set="add"),A=!1,this.#T&&this.#b?.(i,e,"add");else{this.#v(m);let g=this.#e[m];if(i!==g){if(this.#O&&this.#i(g)){g.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:E}=g;E!==void 0&&!l&&(this.#A&&this.#t?.(E,e,"set"),this.#f&&this.#a?.push([E,e,"set"]))}else l||(this.#A&&this.#t?.(g,e,"set"),this.#f&&this.#a?.push([g,e,"set"]));if(this.#R(m),this.#F(m,I,f),this.#e[m]=i,f){f.set="replace";let E=g&&this.#i(g)?g.__staleWhileFetching:g;E!==void 0&&(f.oldValue=E)}}else f&&(f.set="update");this.#T&&this.onInsert?.(i,e,i===g?"update":"replace")}if(n!==0&&!this.#L&&this.#B(),this.#L&&(A||this.#M(m,n,o),f&&this.#I(f,m)),!l&&this.#f&&this.#a){let g=this.#a,E;for(;E=g?.shift();)this.#m?.(...E)}return this}pop(){try{for(;this.#o;){let e=this.#e[this.#h];if(this.#x(!0),this.#i(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#f&&this.#a){let e=this.#a,i;for(;i=e?.shift();)this.#m?.(...i)}}}#x(e){let i=this.#h,s=this.#s[i],n=this.#e[i];return this.#O&&this.#i(n)?n.__abortController.abort(new Error("evicted")):(this.#A||this.#f)&&(this.#A&&this.#t?.(n,s,"evict"),this.#f&&this.#a?.push([n,s,"evict"])),this.#R(i),e&&(this.#s[i]=void 0,this.#e[i]=void 0,this.#g.push(i)),this.#o===1?(this.#h=this.#l=0,this.#g.length=0):this.#h=this.#u[i],this.#r.delete(s),this.#o--,i}has(e,i={}){let{updateAgeOnHas:s=this.updateAgeOnHas,status:n}=i,o=this.#r.get(e);if(o!==void 0){let l=this.#e[o];if(this.#i(l)&&l.__staleWhileFetching===void 0)return!1;if(this.#d(o))n&&(n.has="stale",this.#I(n,o));else return s&&this.#w(o),n&&(n.has="hit",this.#I(n,o)),!0}else n&&(n.has="miss");return!1}peek(e,i={}){let{allowStale:s=this.allowStale}=i,n=this.#r.get(e);if(n===void 0||!s&&this.#d(n))return;let o=this.#e[n];return this.#i(o)?o.__staleWhileFetching:o}#U(e,i,s,n){let o=i===void 0?void 0:this.#e[i];if(this.#i(o))return o;let l=new z,{signal:u}=s;u?.addEventListener("abort",()=>l.abort(u.reason),{signal:l.signal});let f={signal:l.signal,options:s,context:n},A=r((h,d=!1)=>{let{aborted:p}=l.signal,D=s.ignoreFetchAbort&&h!==void 0;if(s.status&&(p&&!d?(s.status.fetchAborted=!0,s.status.fetchError=l.signal.reason,D&&(s.status.fetchAbortIgnored=!0)):s.status.fetchResolved=!0),p&&!D&&!d)return m(l.signal.reason);let O=E,N=this.#e[i];return(N===E||D&&d&&N===void 0)&&(h===void 0?O.__staleWhileFetching!==void 0?this.#e[i]=O.__staleWhileFetching:this.#y(e,"fetch"):(s.status&&(s.status.fetchUpdated=!0),this.set(e,h,f.options))),h},"cb"),I=r(h=>(s.status&&(s.status.fetchRejected=!0,s.status.fetchError=h),m(h)),"eb"),m=r(h=>{let{aborted:d}=l.signal,p=d&&s.allowStaleOnFetchAbort,D=p||s.allowStaleOnFetchRejection,O=D||s.noDeleteOnFetchRejection,N=E;if(this.#e[i]===E&&(!O||N.__staleWhileFetching===void 0?this.#y(e,"fetch"):p||(this.#e[i]=N.__staleWhileFetching)),D)return s.status&&N.__staleWhileFetching!==void 0&&(s.status.returnedStale=!0),N.__staleWhileFetching;if(N.__returned===N)throw h},"fetchFail"),g=r((h,d)=>{let p=this.#$?.(e,o,f);p&&p instanceof Promise&&p.then(D=>h(D===void 0?void 0:D),d),l.signal.addEventListener("abort",()=>{(!s.ignoreFetchAbort||s.allowStaleOnFetchAbort)&&(h(void 0),s.allowStaleOnFetchAbort&&(h=r(D=>A(D,!0),"res")))})},"pcall");s.status&&(s.status.fetchDispatched=!0);let E=new Promise(g).then(A,I),S=Object.assign(E,{__abortController:l,__staleWhileFetching:o,__returned:void 0});return i===void 0?(this.set(e,S,{...f.options,status:void 0}),i=this.#r.get(e)):this.#e[i]=S,S}#i(e){if(!this.#O)return!1;let i=e;return!!i&&i instanceof Promise&&i.hasOwnProperty("__staleWhileFetching")&&i.__abortController instanceof z}async fetch(e,i={}){let{allowStale:s=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,ttl:l=this.ttl,noDisposeOnSet:u=this.noDisposeOnSet,size:f=0,sizeCalculation:A=this.sizeCalculation,noUpdateTTL:I=this.noUpdateTTL,noDeleteOnFetchRejection:m=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:g=this.allowStaleOnFetchRejection,ignoreFetchAbort:E=this.ignoreFetchAbort,allowStaleOnFetchAbort:S=this.allowStaleOnFetchAbort,context:h,forceRefresh:d=!1,status:p,signal:D}=i;if(!this.#O)return p&&(p.fetch="get"),this.get(e,{allowStale:s,updateAgeOnGet:n,noDeleteOnStaleGet:o,status:p});let O={allowStale:s,updateAgeOnGet:n,noDeleteOnStaleGet:o,ttl:l,noDisposeOnSet:u,size:f,sizeCalculation:A,noUpdateTTL:I,noDeleteOnFetchRejection:m,allowStaleOnFetchRejection:g,allowStaleOnFetchAbort:S,ignoreFetchAbort:E,status:p,signal:D},N=this.#r.get(e);if(N===void 0){p&&(p.fetch="miss");let b=this.#U(e,N,O,h);return b.__returned=b}else{let b=this.#e[N];if(this.#i(b)){let F=s&&b.__staleWhileFetching!==void 0;return p&&(p.fetch="inflight",F&&(p.returnedStale=!0)),F?b.__staleWhileFetching:b.__returned=b}let B=this.#d(N);if(!d&&!B)return p&&(p.fetch="hit"),this.#v(N),n&&this.#w(N),p&&this.#I(p,N),b;let G=this.#U(e,N,O,h),T=G.__staleWhileFetching!==void 0&&s;return p&&(p.fetch=B?"stale":"refresh",T&&B&&(p.returnedStale=!0)),T?G.__staleWhileFetching:G.__returned=G}}async forceFetch(e,i={}){let s=await this.fetch(e,i);if(s===void 0)throw new Error("fetch() returned undefined");return s}memo(e,i={}){let s=this.#G;if(!s)throw new Error("no memoMethod provided to constructor");let{context:n,forceRefresh:o,...l}=i,u=this.get(e,l);if(!o&&u!==void 0)return u;let f=s(e,u,{options:l,context:n});return this.set(e,f,l),f}get(e,i={}){let{allowStale:s=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,status:l}=i,u=this.#r.get(e);if(u!==void 0){let f=this.#e[u],A=this.#i(f);return l&&this.#I(l,u),this.#d(u)?(l&&(l.get="stale"),A?(l&&s&&f.__staleWhileFetching!==void 0&&(l.returnedStale=!0),s?f.__staleWhileFetching:void 0):(o||this.#y(e,"expire"),l&&s&&(l.returnedStale=!0),s?f:void 0)):(l&&(l.get="hit"),A?f.__staleWhileFetching:(this.#v(u),n&&this.#w(u),f))}else l&&(l.get="miss")}#k(e,i){this.#p[i]=e,this.#u[e]=i}#v(e){e!==this.#l&&(e===this.#h?this.#h=this.#u[e]:this.#k(this.#p[e],this.#u[e]),this.#k(this.#l,e),this.#l=e)}delete(e){return this.#y(e,"delete")}#y(e,i){let s=!1;if(this.#o!==0){let n=this.#r.get(e);if(n!==void 0)if(s=!0,this.#o===1)this.#W(i);else{this.#R(n);let o=this.#e[n];if(this.#i(o)?o.__abortController.abort(new Error("deleted")):(this.#A||this.#f)&&(this.#A&&this.#t?.(o,e,i),this.#f&&this.#a?.push([o,e,i])),this.#r.delete(e),this.#s[n]=void 0,this.#e[n]=void 0,n===this.#l)this.#l=this.#p[n];else if(n===this.#h)this.#h=this.#u[n];else{let l=this.#p[n];this.#u[l]=this.#u[n];let u=this.#u[n];this.#p[u]=this.#p[n]}this.#o--,this.#g.push(n)}}if(this.#f&&this.#a?.length){let n=this.#a,o;for(;o=n?.shift();)this.#m?.(...o)}return s}clear(){return this.#W("delete")}#W(e){for(let i of this.#N({allowStale:!0})){let s=this.#e[i];if(this.#i(s))s.__abortController.abort(new Error("deleted"));else{let n=this.#s[i];this.#A&&this.#t?.(s,n,e),this.#f&&this.#a?.push([s,n,e])}}if(this.#r.clear(),this.#e.fill(void 0),this.#s.fill(void 0),this.#L&&this.#P&&(this.#L.fill(0),this.#P.fill(0)),this.#C&&this.#C.fill(0),this.#h=0,this.#l=0,this.#g.length=0,this.#S=0,this.#o=0,this.#f&&this.#a){let i=this.#a,s;for(;s=i?.shift();)this.#m?.(...s)}}};Y.LRUCache=le});var lt=P(($s,ot)=>{"use strict";var C=r((...t)=>t.every(e=>e)?t.join(""):"","maybeJoin"),y=r(t=>t?encodeURIComponent(t):"","maybeEncode"),rt=r(t=>t.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),"formatHashFragment"),gi={sshtemplate:r(({domain:t,user:e,project:i,committish:s})=>`git@${t}:${e}/${i}.git${C("#",s)}`,"sshtemplate"),sshurltemplate:r(({domain:t,user:e,project:i,committish:s})=>`git+ssh://git@${t}/${e}/${i}.git${C("#",s)}`,"sshurltemplate"),edittemplate:r(({domain:t,user:e,project:i,committish:s,editpath:n,path:o})=>`https://${t}/${e}/${i}${C("/",n,"/",y(s||"HEAD"),"/",o)}`,"edittemplate"),browsetemplate:r(({domain:t,user:e,project:i,committish:s,treepath:n})=>`https://${t}/${e}/${i}${C("/",n,"/",y(s))}`,"browsetemplate"),browsetreetemplate:r(({domain:t,user:e,project:i,committish:s,treepath:n,path:o,fragment:l,hashformat:u})=>`https://${t}/${e}/${i}/${n}/${y(s||"HEAD")}/${o}${C("#",u(l||""))}`,"browsetreetemplate"),browseblobtemplate:r(({domain:t,user:e,project:i,committish:s,blobpath:n,path:o,fragment:l,hashformat:u})=>`https://${t}/${e}/${i}/${n}/${y(s||"HEAD")}/${o}${C("#",u(l||""))}`,"browseblobtemplate"),docstemplate:r(({domain:t,user:e,project:i,treepath:s,committish:n})=>`https://${t}/${e}/${i}${C("/",s,"/",y(n))}#readme`,"docstemplate"),httpstemplate:r(({auth:t,domain:e,user:i,project:s,committish:n})=>`git+https://${C(t,"@")}${e}/${i}/${s}.git${C("#",n)}`,"httpstemplate"),filetemplate:r(({domain:t,user:e,project:i,committish:s,path:n})=>`https://${t}/${e}/${i}/raw/${y(s||"HEAD")}/${n}`,"filetemplate"),shortcuttemplate:r(({type:t,user:e,project:i,committish:s})=>`${t}:${e}/${i}${C("#",s)}`,"shortcuttemplate"),pathtemplate:r(({user:t,project:e,committish:i})=>`${t}/${e}${C("#",i)}`,"pathtemplate"),bugstemplate:r(({domain:t,user:e,project:i})=>`https://${t}/${e}/${i}/issues`,"bugstemplate"),hashformat:rt},v={};v.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:r(({auth:t,user:e,project:i,committish:s,path:n})=>`https://${C(t,"@")}raw.githubusercontent.com/${e}/${i}/${y(s||"HEAD")}/${n}`,"filetemplate"),gittemplate:r(({auth:t,domain:e,user:i,project:s,committish:n})=>`git://${C(t,"@")}${e}/${i}/${s}.git${C("#",n)}`,"gittemplate"),tarballtemplate:r(({domain:t,user:e,project:i,committish:s})=>`https://codeload.${t}/${e}/${i}/tar.gz/${y(s||"HEAD")}`,"tarballtemplate"),extract:r(t=>{let[,e,i,s,n]=t.pathname.split("/",5);if(!(s&&s!=="tree")&&(s||(n=t.hash.slice(1)),i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!e||!i)))return{user:e,project:i,committish:n}},"extract")};v.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:r(({domain:t,user:e,project:i,committish:s,treepath:n,path:o,editpath:l})=>`https://${t}/${e}/${i}${C("/",n,"/",y(s||"HEAD"),"/",o,l)}`,"edittemplate"),tarballtemplate:r(({domain:t,user:e,project:i,committish:s})=>`https://${t}/${e}/${i}/get/${y(s||"HEAD")}.tar.gz`,"tarballtemplate"),extract:r(t=>{let[,e,i,s]=t.pathname.split("/",4);if(!["get"].includes(s)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!e||!i)))return{user:e,project:i,committish:t.hash.slice(1)}},"extract")};v.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",tarballtemplate:r(({domain:t,user:e,project:i,committish:s})=>`https://${t}/${e}/${i}/repository/archive.tar.gz?ref=${y(s||"HEAD")}`,"tarballtemplate"),extract:r(t=>{let e=t.pathname.slice(1);if(e.includes("/-/")||e.includes("/archive.tar.gz"))return;let i=e.split("/"),s=i.pop();s.endsWith(".git")&&(s=s.slice(0,-4));let n=i.join("/");if(!(!n||!s))return{user:n,project:s,committish:t.hash.slice(1)}},"extract")};v.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:r(({domain:t,project:e,committish:i})=>`git@${t}:${e}.git${C("#",i)}`,"sshtemplate"),sshurltemplate:r(({domain:t,project:e,committish:i})=>`git+ssh://git@${t}/${e}.git${C("#",i)}`,"sshurltemplate"),edittemplate:r(({domain:t,user:e,project:i,committish:s,editpath:n})=>`https://${t}/${e}/${i}${C("/",y(s))}/${n}`,"edittemplate"),browsetemplate:r(({domain:t,project:e,committish:i})=>`https://${t}/${e}${C("/",y(i))}`,"browsetemplate"),browsetreetemplate:r(({domain:t,project:e,committish:i,path:s,hashformat:n})=>`https://${t}/${e}${C("/",y(i))}${C("#",n(s))}`,"browsetreetemplate"),browseblobtemplate:r(({domain:t,project:e,committish:i,path:s,hashformat:n})=>`https://${t}/${e}${C("/",y(i))}${C("#",n(s))}`,"browseblobtemplate"),docstemplate:r(({domain:t,project:e,committish:i})=>`https://${t}/${e}${C("/",y(i))}`,"docstemplate"),httpstemplate:r(({domain:t,project:e,committish:i})=>`git+https://${t}/${e}.git${C("#",i)}`,"httpstemplate"),filetemplate:r(({user:t,project:e,committish:i,path:s})=>`https://gist.githubusercontent.com/${t}/${e}/raw${C("/",y(i))}/${s}`,"filetemplate"),shortcuttemplate:r(({type:t,project:e,committish:i})=>`${t}:${e}${C("#",i)}`,"shortcuttemplate"),pathtemplate:r(({project:t,committish:e})=>`${t}${C("#",e)}`,"pathtemplate"),bugstemplate:r(({domain:t,project:e})=>`https://${t}/${e}`,"bugstemplate"),gittemplate:r(({domain:t,project:e,committish:i})=>`git://${t}/${e}.git${C("#",i)}`,"gittemplate"),tarballtemplate:r(({project:t,committish:e})=>`https://codeload.github.com/gist/${t}/tar.gz/${y(e||"HEAD")}`,"tarballtemplate"),extract:r(t=>{let[,e,i,s]=t.pathname.split("/",4);if(s!=="raw"){if(!i){if(!e)return;i=e,e=null}return i.endsWith(".git")&&(i=i.slice(0,-4)),{user:e,project:i,committish:t.hash.slice(1)}}},"extract"),hashformat:r(function(t){return t&&"file-"+rt(t)},"hashformat")};v.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:r(({domain:t,user:e,project:i,committish:s,path:n})=>`https://${t}/${e}/${i}/blob/${y(s)||"HEAD"}/${n}`,"filetemplate"),httpstemplate:r(({domain:t,user:e,project:i,committish:s})=>`https://${t}/${e}/${i}.git${C("#",s)}`,"httpstemplate"),tarballtemplate:r(({domain:t,user:e,project:i,committish:s})=>`https://${t}/${e}/${i}/archive/${y(s)||"HEAD"}.tar.gz`,"tarballtemplate"),bugstemplate:r(()=>null,"bugstemplate"),extract:r(t=>{let[,e,i,s]=t.pathname.split("/",4);if(!["archive"].includes(s)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!e||!i)))return{user:e,project:i,committish:t.hash.slice(1)}},"extract")};for(let[t,e]of Object.entries(v))v[t]=Object.assign({},gi,e);ot.exports=v});var ce=P((Ts,ct)=>{var Ci=require("url"),ae=r((t,e,i)=>{let s=t.indexOf(i);return t.lastIndexOf(e,s>-1?s:1/0)},"lastIndexOfBefore"),at=r(t=>{try{return new Ci.URL(t)}catch{}},"safeUrl"),Pi=r((t,e)=>{let i=t.indexOf(":"),s=t.slice(0,i+1);if(Object.prototype.hasOwnProperty.call(e,s)||t.substr(i,3)==="://")return t;let n=t.indexOf("@");return n>-1?n>i?`git+ssh://${t}`:t:`${t.slice(0,i+1)}//${t.slice(i+1)}`},"correctProtocol"),Ai=r(t=>{let e=ae(t,"@","#"),i=ae(t,":","#");return i>e&&(t=t.slice(0,i)+"/"+t.slice(i+1)),ae(t,":","#")===-1&&t.indexOf("//")===-1&&(t=`git+ssh://${t}`),t},"correctUrl");ct.exports=(t,e)=>{let i=e?Pi(t,e):t;return at(i)||at(Ai(i))}});var ut=P((xs,ht)=>{"use strict";var Di=ce(),Ni=r(t=>{let e=t.indexOf("#"),i=t.indexOf("/"),s=t.indexOf("/",i+1),n=t.indexOf(":"),o=/\s/.exec(t),l=t.indexOf("@"),u=!o||e>-1&&o.index>e,f=l===-1||e>-1&&l>e,A=n===-1||e>-1&&n>e,I=s===-1||e>-1&&s>e,m=i>0,g=e>-1?t[e-1]!=="/":!t.endsWith("/"),E=!t.startsWith(".");return u&&m&&g&&E&&f&&A&&I},"isGitHubShorthand");ht.exports=(t,e,{gitHosts:i,protocols:s})=>{if(!t)return;let n=Ni(t)?`github:${t}`:t,o=Di(n,s);if(!o)return;let l=i.byShortcut[o.protocol],u=i.byDomain[o.hostname.startsWith("www.")?o.hostname.slice(4):o.hostname],f=l||u;if(!f)return;let A=i[l||u],I=null;s[o.protocol]?.auth&&(o.username||o.password)&&(I=`${o.username}${o.password?":"+o.password:""}`);let m=null,g=null,E=null,S=null;try{if(l){let h=o.pathname.startsWith("/")?o.pathname.slice(1):o.pathname,d=h.indexOf("@");d>-1&&(h=h.slice(d+1));let p=h.lastIndexOf("/");p>-1?(g=decodeURIComponent(h.slice(0,p)),g||(g=null),E=decodeURIComponent(h.slice(p+1))):E=decodeURIComponent(h),E.endsWith(".git")&&(E=E.slice(0,-4)),o.hash&&(m=decodeURIComponent(o.hash.slice(1))),S="shortcut"}else{if(!A.protocols.includes(o.protocol))return;let h=A.extract(o);if(!h)return;g=h.user&&decodeURIComponent(h.user),E=decodeURIComponent(h.project),m=decodeURIComponent(h.committish),S=s[o.protocol]?.name||o.protocol.slice(0,-1)}}catch(h){if(h instanceof URIError)return;throw h}return[f,g,I,E,m,S,e]}});var pt=P((Bs,ft)=>{"use strict";var{LRUCache:yi}=nt(),Ii=lt(),Oi=ut(),bi=ce(),he=new yi({max:1e3});function wi(t){try{let{protocol:e,hostname:i,pathname:s}=new URL(t);if(!i)return null;let n=/(?:git\+)http:$/.test(e)?"http:":"https:",o=s.replace(/\.git$/,"");return`${n}//${i}${o}`}catch{return null}}r(wi,"unknownHostedUrl");var X=class t{static{r(this,"GitHost")}constructor(e,i,s,n,o,l,u={}){Object.assign(this,t.#n[e],{type:e,user:i,auth:s,project:n,committish:o,default:l,opts:u})}static#n={byShortcut:{},byDomain:{}};static#c={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(e,i){t.#n[e]=i,t.#n.byDomain[i.domain]=e,t.#n.byShortcut[`${e}:`]=e,t.#c[`${e}:`]={name:e}}static fromUrl(e,i){if(typeof e!="string")return;let s=e+JSON.stringify(i||{});if(!he.has(s)){let n=Oi(e,i,{gitHosts:t.#n,protocols:t.#c});he.set(s,n?new t(...n):void 0)}return he.get(s)}static fromManifest(e,i={}){if(!e||typeof e!="object")return;let s=e.repository,n=s&&(typeof s=="string"?s:typeof s=="object"&&typeof s.url=="string"?s.url:null);if(!n)throw new Error("no repository");let o=n&&t.fromUrl(n.replace(/^git\+/,""),i)||null;if(o)return o;let l=wi(n);return t.fromUrl(l,i)||l}static parseUrl(e){return bi(e)}#t(e,i){if(typeof e!="function")return null;let s={...this,...this.opts,...i};s.path||(s.path=""),s.path.startsWith("/")&&(s.path=s.path.slice(1)),s.noCommittish&&(s.committish=null);let n=e(s);return s.noGitPlus&&n.startsWith("git+")?n.slice(4):n}hash(){return this.committish?`#${this.committish}`:""}ssh(e){return this.#t(this.sshtemplate,e)}sshurl(e){return this.#t(this.sshurltemplate,e)}browse(e,...i){return typeof e!="string"?this.#t(this.browsetemplate,e):typeof i[0]!="string"?this.#t(this.browsetreetemplate,{...i[0],path:e}):this.#t(this.browsetreetemplate,{...i[1],fragment:i[0],path:e})}browseFile(e,...i){return typeof i[0]!="string"?this.#t(this.browseblobtemplate,{...i[0],path:e}):this.#t(this.browseblobtemplate,{...i[1],fragment:i[0],path:e})}docs(e){return this.#t(this.docstemplate,e)}bugs(e){return this.#t(this.bugstemplate,e)}https(e){return this.#t(this.httpstemplate,e)}git(e){return this.#t(this.gittemplate,e)}shortcut(e){return this.#t(this.shortcuttemplate,e)}path(e){return this.#t(this.pathtemplate,e)}tarball(e){return this.#t(this.tarballtemplate,{...e,noCommittish:!1})}file(e,i){return this.#t(this.filetemplate,{...i,path:e})}edit(e,i){return this.#t(this.edittemplate,{...i,path:e})}getDefaultRepresentation(){return this.default}toString(e){return this.default&&typeof this[this.default]=="function"?this[this.default](e):this.sshurl(e)}};for(let[t,e]of Object.entries(Ii))X.addHost(t,e);ft.exports=X});var dt=P((Hs,Lt)=>{Lt.exports=Ri;function Ri(t){if(!t||t==="ERROR: No README data found!")return;t=t.trim().split(`
6
- `);let e=0;for(;t[e]&&t[e].trim().match(/^(#|$)/);)e++;let i=t.length,s=e+1;for(;s<i&&t[s].trim();)s++;return t.slice(e,s).join(" ").trim()}r(Ri,"extractDescription")});var mt=P((ks,vi)=>{vi.exports={topLevel:{dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},bugs:{web:"url",name:"url"},script:{server:"start",tests:"test"}}});var Ct=P((Ws,gt)=>{var{URL:ue}=require("node:url"),$i=ve(),Gi=Ge(),Ti=Qe(),q=pt(),{isBuiltin:Fi}=require("node:module"),xi=["dependencies","devDependencies","optionalDependencies"],Ui=dt(),$=mt(),Et=r(t=>t.includes("@")&&t.indexOf("@")<t.lastIndexOf("."),"isEmail");gt.exports={warn:r(function(){},"warn"),fixRepositoryField:r(function(t){if(t.repositories&&(this.warn("repositories"),t.repository=t.repositories[0]),!t.repository)return this.warn("missingRepository");typeof t.repository=="string"&&(t.repository={type:"git",url:t.repository});var e=t.repository.url||"";if(e){var i=q.fromUrl(e);i&&(e=t.repository.url=i.getDefaultRepresentation()==="shortcut"?i.https():i.toString())}e.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",e)},"fixRepositoryField"),fixTypos:r(function(t){Object.keys($.topLevel).forEach(function(e){Object.prototype.hasOwnProperty.call(t,e)&&this.warn("typo",e,$.topLevel[e])},this)},"fixTypos"),fixScriptsField:r(function(t){if(t.scripts){if(typeof t.scripts!="object"){this.warn("nonObjectScripts"),delete t.scripts;return}Object.keys(t.scripts).forEach(function(e){typeof t.scripts[e]!="string"?(this.warn("nonStringScript"),delete t.scripts[e]):$.script[e]&&!t.scripts[$.script[e]]&&this.warn("typo",e,$.script[e],"scripts")},this)}},"fixScriptsField"),fixFilesField:r(function(t){var e=t.files;e&&!Array.isArray(e)?(this.warn("nonArrayFiles"),delete t.files):t.files&&(t.files=t.files.filter(function(i){return!i||typeof i!="string"?(this.warn("invalidFilename",i),!1):!0},this))},"fixFilesField"),fixBinField:r(function(t){if(t.bin&&typeof t.bin=="string"){var e={},i;(i=t.name.match(/^@[^/]+[/](.*)$/))?e[i[1]]=t.bin:e[t.name]=t.bin,t.bin=e}},"fixBinField"),fixManField:r(function(t){t.man&&typeof t.man=="string"&&(t.man=[t.man])},"fixManField"),fixBundleDependenciesField:r(function(t){var e="bundledDependencies",i="bundleDependencies";t[e]&&!t[i]&&(t[i]=t[e],delete t[e]),t[i]&&!Array.isArray(t[i])?(this.warn("nonArrayBundleDependencies"),delete t[i]):t[i]&&(t[i]=t[i].filter(function(s){return!s||typeof s!="string"?(this.warn("nonStringBundleDependency",s),!1):(t.dependencies||(t.dependencies={}),Object.prototype.hasOwnProperty.call(t.dependencies,s)||(this.warn("nonDependencyBundleDependency",s),t.dependencies[s]="*"),!0)},this))},"fixBundleDependenciesField"),fixDependencies:r(function(t){zi(t,this.warn),Wi(t,this.warn),this.fixBundleDependenciesField(t),["dependencies","devDependencies"].forEach(function(e){if(e in t){if(!t[e]||typeof t[e]!="object"){this.warn("nonObjectDependencies",e),delete t[e];return}Object.keys(t[e]).forEach(function(i){var s=t[e][i];typeof s!="string"&&(this.warn("nonStringDependency",i,JSON.stringify(s)),delete t[e][i]);var n=q.fromUrl(t[e][i]);n&&(t[e][i]=n.toString())},this)}},this)},"fixDependencies"),fixModulesField:r(function(t){t.modules&&(this.warn("deprecatedModules"),delete t.modules)},"fixModulesField"),fixKeywordsField:r(function(t){typeof t.keywords=="string"&&(t.keywords=t.keywords.split(/,\s+/)),t.keywords&&!Array.isArray(t.keywords)?(delete t.keywords,this.warn("nonArrayKeywords")):t.keywords&&(t.keywords=t.keywords.filter(function(e){return typeof e!="string"||!e?(this.warn("nonStringKeyword"),!1):!0},this))},"fixKeywordsField"),fixVersionField:r(function(t,e){var i=!e;if(!t.version)return t.version="",!0;if(!$i(t.version,i))throw new Error('Invalid version: "'+t.version+'"');return t.version=Gi(t.version,i),!0},"fixVersionField"),fixPeople:r(function(t){St(t,_i),St(t,ki)},"fixPeople"),fixNameField:r(function(t,e){typeof e=="boolean"?e={strict:e}:typeof e>"u"&&(e={});var i=e.strict;if(!t.name&&!i){t.name="";return}if(typeof t.name!="string")throw new Error("name field must be a string.");i||(t.name=t.name.trim()),Hi(t.name,i,e.allowLegacyCase),Fi(t.name)&&this.warn("conflictingName",t.name)},"fixNameField"),fixDescriptionField:r(function(t){t.description&&typeof t.description!="string"&&(this.warn("nonStringDescription"),delete t.description),t.readme&&!t.description&&(t.description=Ui(t.readme)),t.description===void 0&&delete t.description,t.description||this.warn("missingDescription")},"fixDescriptionField"),fixReadmeField:r(function(t){t.readme||(this.warn("missingReadme"),t.readme="ERROR: No README data found!")},"fixReadmeField"),fixBugsField:r(function(t){if(!t.bugs&&t.repository&&t.repository.url){var e=q.fromUrl(t.repository.url);e&&e.bugs()&&(t.bugs={url:e.bugs()})}else if(t.bugs){if(typeof t.bugs=="string")Et(t.bugs)?t.bugs={email:t.bugs}:ue.canParse(t.bugs)?t.bugs={url:t.bugs}:this.warn("nonEmailUrlBugsString");else{Yi(t.bugs,this.warn);var i=t.bugs;t.bugs={},i.url&&(ue.canParse(i.url)?t.bugs.url=i.url:this.warn("nonUrlBugsUrlField")),i.email&&(typeof i.email=="string"&&Et(i.email)?t.bugs.email=i.email:this.warn("nonEmailBugsEmailField"))}!t.bugs.email&&!t.bugs.url&&(delete t.bugs,this.warn("emptyNormalizedBugs"))}},"fixBugsField"),fixHomepageField:r(function(t){if(!t.homepage&&t.repository&&t.repository.url){var e=q.fromUrl(t.repository.url);e&&e.docs()&&(t.homepage=e.docs())}if(t.homepage){if(typeof t.homepage!="string")return this.warn("nonUrlHomepage"),delete t.homepage;ue.canParse(t.homepage)||(t.homepage="http://"+t.homepage)}},"fixHomepageField"),fixLicenseField:r(function(t){let e=t.license||t.licence;if(!e)return this.warn("missingLicense");if(typeof e!="string"||e.length<1||e.trim()==="")return this.warn("invalidLicense");if(!Ti(e).validForNewPackages)return this.warn("invalidLicense")},"fixLicenseField")};function Bi(t){if(t.charAt(0)!=="@")return!1;var e=t.slice(1).split("/");return e.length!==2?!1:e[0]&&e[1]&&e[0]===encodeURIComponent(e[0])&&e[1]===encodeURIComponent(e[1])}r(Bi,"isValidScopedPackageName");function Mi(t){return!t.match(/[/@\s+%:]/)&&t===encodeURIComponent(t)}r(Mi,"isCorrectlyEncodedName");function Hi(t,e,i){if(t.charAt(0)==="."||!(Bi(t)||Mi(t))||e&&!i&&t!==t.toLowerCase()||t.toLowerCase()==="node_modules"||t.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(t))}r(Hi,"ensureValidName");function St(t,e){return t.author&&(t.author=e(t.author)),["maintainers","contributors"].forEach(function(i){Array.isArray(t[i])&&(t[i]=t[i].map(e))}),t}r(St,"modifyPeople");function _i(t){if(typeof t=="string")return t;var e=t.name||"",i=t.url||t.web,s=i?" ("+i+")":"",n=t.email||t.mail,o=n?" <"+n+">":"";return e+o+s}r(_i,"unParsePerson");function ki(t){if(typeof t!="string")return t;var e=t.match(/^([^(<]+)/),i=t.match(/\(([^()]+)\)/),s=t.match(/<([^<>]+)>/),n={};return e&&e[0].trim()&&(n.name=e[0].trim()),s&&(n.email=s[1]),i&&(n.url=i[1]),n}r(ki,"parsePerson");function Wi(t){var e=t.optionalDependencies;if(e){var i=t.dependencies||{};Object.keys(e).forEach(function(s){i[s]=e[s]}),t.dependencies=i}}r(Wi,"addOptionalDepsToDeps");function ji(t,e,i){if(!t)return{};if(typeof t=="string"&&(t=t.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(t))return t;i("deprecatedArrayDependencies",e);var s={};return t.filter(function(n){return typeof n=="string"}).forEach(function(n){n=n.trim().split(/(:?[@\s><=])/);var o=n.shift(),l=n.join("");l=l.trim(),l=l.replace(/^@/,""),s[o]=l}),s}r(ji,"depObjectify");function zi(t,e){xi.forEach(function(i){t[i]&&(t[i]=ji(t[i],i,e))})}r(zi,"objectifyDeps");function Yi(t,e){t&&Object.keys(t).forEach(function(i){$.bugs[i]&&(e("typo",i,$.bugs[i],"bugs"),t[$.bugs[i]]=t[i],delete t[i])})}r(Yi,"bugsTypos")});var Pt=P((zs,Xi)=>{Xi.exports={repositories:"'repositories' (plural) Not supported. Please pick one as the 'repository' field",missingRepository:"No repository field.",brokenGitUrl:"Probably broken git url: %s",nonObjectScripts:"scripts must be an object",nonStringScript:"script values must be string commands",nonArrayFiles:"Invalid 'files' member",invalidFilename:"Invalid filename in 'files' list: %s",nonArrayBundleDependencies:"Invalid 'bundleDependencies' list. Must be array of package names",nonStringBundleDependency:"Invalid bundleDependencies member: %s",nonDependencyBundleDependency:"Non-dependency in bundleDependencies: %s",nonObjectDependencies:"%s field must be an object",nonStringDependency:"Invalid dependency: %s %s",deprecatedArrayDependencies:"specifying %s as array is deprecated",deprecatedModules:"modules field is deprecated",nonArrayKeywords:"keywords should be an array of strings",nonStringKeyword:"keywords should be an array of strings",conflictingName:"%s is also the name of a node core module.",nonStringDescription:"'description' field should be a string",missingDescription:"No description",missingReadme:"No README data",missingLicense:"No license field.",nonEmailUrlBugsString:"Bug string field must be url, email, or {email,url}",nonUrlBugsUrlField:"bugs.url field must be a string url. Deleted.",nonEmailBugsEmailField:"bugs.email field must be a string email. Deleted.",emptyNormalizedBugs:"Normalized value of bugs field is an empty object. Deleted.",nonUrlHomepage:"homepage field must be a string url. Deleted.",invalidLicense:"license should be a valid SPDX license expression",typo:"%s should probably be %s."}});var Nt=P((Ys,Dt)=>{var At=require("util"),fe=Pt();Dt.exports=function(){var t=Array.prototype.slice.call(arguments,0),e=t.shift();if(e==="typo")return qi.apply(null,t);var i=fe[e]?fe[e]:e+": '%s'";return t.unshift(i),At.format.apply(null,t)};function qi(t,e,i){return i&&(t=i+"['"+t+"']",e=i+"['"+e+"']"),At.format(fe.typo,t,e)}r(qi,"makeTypoWarning")});module.exports=yt;var pe=Ct();yt.fixer=pe;var Vi=Nt(),Ki=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],Zi=["dependencies","people","typos"],Le=Ki.map(function(t){return It(t)+"Field"});Le=Le.concat(Zi);function yt(t,e,i){e===!0&&(e=null,i=!0),i||(i=!1),(!e||t.private)&&(e=r(function(){},"warn")),t.scripts&&t.scripts.install==="node-gyp rebuild"&&!t.scripts.preinstall&&(t.gypfile=!0),pe.warn=function(){e(Vi.apply(null,arguments))},Le.forEach(function(s){pe["fix"+It(s)](t,i)}),t._id=t.name+"@"+t.version}r(yt,"normalize");function It(t){return t.charAt(0).toUpperCase()+t.slice(1)}r(It,"ucFirst");
6
+ "use strict";var wt=Object.defineProperty;var n=(t,e)=>wt(t,"name",{value:e,configurable:!0});var P=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var V=P((is,de)=>{"use strict";var Rt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>{}:()=>{};de.exports=Rt});var K=P((ss,me)=>{"use strict";var vt="2.0.0",$t=Number.MAX_SAFE_INTEGER||9007199254740991,Gt=16,Tt=250,Ft=["major","premajor","minor","preminor","patch","prepatch","prerelease"];me.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Gt,MAX_SAFE_BUILD_LENGTH:Tt,MAX_SAFE_INTEGER:$t,RELEASE_TYPES:Ft,SEMVER_SPEC_VERSION:vt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Se=P((w,Ee)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Z,MAX_SAFE_BUILD_LENGTH:xt,MAX_LENGTH:Ut}=K(),Bt=V();w=Ee.exports={};var Mt=w.re=[],Ht=w.safeRe=[],a=w.src=[],_t=w.safeSrc=[],c=w.t={},kt=0,J="[a-zA-Z0-9-]",Wt=[["\\s",1],["\\d",Ut],[J,xt]],jt=n(t=>{for(let[e,i]of Wt)t=t.split(`${e}*`).join(`${e}{0,${i}}`).split(`${e}+`).join(`${e}{1,${i}}`);return t},"makeSafeRegex"),L=n((t,e,i)=>{let s=jt(e),r=kt++;Bt(t,r,e),c[t]=r,a[r]=e,_t[r]=s,Mt[r]=new RegExp(e,i?"g":void 0),Ht[r]=new RegExp(s,i?"g":void 0)},"createToken");L("NUMERICIDENTIFIER","0|[1-9]\\d*");L("NUMERICIDENTIFIERLOOSE","\\d+");L("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${J}*`);L("MAINVERSION",`(${a[c.NUMERICIDENTIFIER]})\\.(${a[c.NUMERICIDENTIFIER]})\\.(${a[c.NUMERICIDENTIFIER]})`);L("MAINVERSIONLOOSE",`(${a[c.NUMERICIDENTIFIERLOOSE]})\\.(${a[c.NUMERICIDENTIFIERLOOSE]})\\.(${a[c.NUMERICIDENTIFIERLOOSE]})`);L("PRERELEASEIDENTIFIER",`(?:${a[c.NONNUMERICIDENTIFIER]}|${a[c.NUMERICIDENTIFIER]})`);L("PRERELEASEIDENTIFIERLOOSE",`(?:${a[c.NONNUMERICIDENTIFIER]}|${a[c.NUMERICIDENTIFIERLOOSE]})`);L("PRERELEASE",`(?:-(${a[c.PRERELEASEIDENTIFIER]}(?:\\.${a[c.PRERELEASEIDENTIFIER]})*))`);L("PRERELEASELOOSE",`(?:-?(${a[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[c.PRERELEASEIDENTIFIERLOOSE]})*))`);L("BUILDIDENTIFIER",`${J}+`);L("BUILD",`(?:\\+(${a[c.BUILDIDENTIFIER]}(?:\\.${a[c.BUILDIDENTIFIER]})*))`);L("FULLPLAIN",`v?${a[c.MAINVERSION]}${a[c.PRERELEASE]}?${a[c.BUILD]}?`);L("FULL",`^${a[c.FULLPLAIN]}$`);L("LOOSEPLAIN",`[v=\\s]*${a[c.MAINVERSIONLOOSE]}${a[c.PRERELEASELOOSE]}?${a[c.BUILD]}?`);L("LOOSE",`^${a[c.LOOSEPLAIN]}$`);L("GTLT","((?:<|>)?=?)");L("XRANGEIDENTIFIERLOOSE",`${a[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);L("XRANGEIDENTIFIER",`${a[c.NUMERICIDENTIFIER]}|x|X|\\*`);L("XRANGEPLAIN",`[v=\\s]*(${a[c.XRANGEIDENTIFIER]})(?:\\.(${a[c.XRANGEIDENTIFIER]})(?:\\.(${a[c.XRANGEIDENTIFIER]})(?:${a[c.PRERELEASE]})?${a[c.BUILD]}?)?)?`);L("XRANGEPLAINLOOSE",`[v=\\s]*(${a[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[c.XRANGEIDENTIFIERLOOSE]})(?:${a[c.PRERELEASELOOSE]})?${a[c.BUILD]}?)?)?`);L("XRANGE",`^${a[c.GTLT]}\\s*${a[c.XRANGEPLAIN]}$`);L("XRANGELOOSE",`^${a[c.GTLT]}\\s*${a[c.XRANGEPLAINLOOSE]}$`);L("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Z}})(?:\\.(\\d{1,${Z}}))?(?:\\.(\\d{1,${Z}}))?`);L("COERCE",`${a[c.COERCEPLAIN]}(?:$|[^\\d])`);L("COERCEFULL",a[c.COERCEPLAIN]+`(?:${a[c.PRERELEASE]})?(?:${a[c.BUILD]})?(?:$|[^\\d])`);L("COERCERTL",a[c.COERCE],!0);L("COERCERTLFULL",a[c.COERCEFULL],!0);L("LONETILDE","(?:~>?)");L("TILDETRIM",`(\\s*)${a[c.LONETILDE]}\\s+`,!0);w.tildeTrimReplace="$1~";L("TILDE",`^${a[c.LONETILDE]}${a[c.XRANGEPLAIN]}$`);L("TILDELOOSE",`^${a[c.LONETILDE]}${a[c.XRANGEPLAINLOOSE]}$`);L("LONECARET","(?:\\^)");L("CARETTRIM",`(\\s*)${a[c.LONECARET]}\\s+`,!0);w.caretTrimReplace="$1^";L("CARET",`^${a[c.LONECARET]}${a[c.XRANGEPLAIN]}$`);L("CARETLOOSE",`^${a[c.LONECARET]}${a[c.XRANGEPLAINLOOSE]}$`);L("COMPARATORLOOSE",`^${a[c.GTLT]}\\s*(${a[c.LOOSEPLAIN]})$|^$`);L("COMPARATOR",`^${a[c.GTLT]}\\s*(${a[c.FULLPLAIN]})$|^$`);L("COMPARATORTRIM",`(\\s*)${a[c.GTLT]}\\s*(${a[c.LOOSEPLAIN]}|${a[c.XRANGEPLAIN]})`,!0);w.comparatorTrimReplace="$1$2$3";L("HYPHENRANGE",`^\\s*(${a[c.XRANGEPLAIN]})\\s+-\\s+(${a[c.XRANGEPLAIN]})\\s*$`);L("HYPHENRANGELOOSE",`^\\s*(${a[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[c.XRANGEPLAINLOOSE]})\\s*$`);L("STAR","(<|>)?=?\\s*\\*");L("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");L("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Ce=P((ns,ge)=>{"use strict";var zt=Object.freeze({loose:!0}),Yt=Object.freeze({}),Xt=n(t=>t?typeof t!="object"?zt:t:Yt,"parseOptions");ge.exports=Xt});var Ne=P((ls,De)=>{"use strict";var Pe=/^[0-9]+$/,Ae=n((t,e)=>{let i=Pe.test(t),s=Pe.test(e);return i&&s&&(t=+t,e=+e),t===e?0:i&&!s?-1:s&&!i?1:t<e?-1:1},"compareIdentifiers"),qt=n((t,e)=>Ae(e,t),"rcompareIdentifiers");De.exports={compareIdentifiers:Ae,rcompareIdentifiers:qt}});var Oe=P((cs,Ie)=>{"use strict";var H=V(),{MAX_LENGTH:ye,MAX_SAFE_INTEGER:_}=K(),{safeRe:k,t:W}=Se(),Vt=Ce(),{compareIdentifiers:x}=Ne(),Q=class t{static{n(this,"SemVer")}constructor(e,i){if(i=Vt(i),e instanceof t){if(e.loose===!!i.loose&&e.includePrerelease===!!i.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>ye)throw new TypeError(`version is longer than ${ye} characters`);H("SemVer",e,i),this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease;let s=e.trim().match(i.loose?k[W.LOOSE]:k[W.FULL]);if(!s)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>_||this.major<0)throw new TypeError("Invalid major version");if(this.minor>_||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>_||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(r=>{if(/^[0-9]+$/.test(r)){let o=+r;if(o>=0&&o<_)return o}return r}):this.prerelease=[],this.build=s[5]?s[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(H("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),x(this.major,e.major)||x(this.minor,e.minor)||x(this.patch,e.patch)}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let i=0;do{let s=this.prerelease[i],r=e.prerelease[i];if(H("prerelease compare",i,s,r),s===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(s===void 0)return-1;if(s===r)continue;return x(s,r)}while(++i)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let i=0;do{let s=this.build[i],r=e.build[i];if(H("build compare",i,s,r),s===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(s===void 0)return-1;if(s===r)continue;return x(s,r)}while(++i)}inc(e,i,s){if(e.startsWith("pre")){if(!i&&s===!1)throw new Error("invalid increment argument: identifier is empty");if(i){let r=`-${i}`.match(this.options.loose?k[W.PRERELEASELOOSE]:k[W.PRERELEASE]);if(!r||r[1]!==i)throw new Error(`invalid identifier: ${i}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",i,s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",i,s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",i,s),this.inc("pre",i,s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",i,s),this.inc("pre",i,s);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let r=Number(s)?1:0;if(this.prerelease.length===0)this.prerelease=[r];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(i===this.prerelease.join(".")&&s===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(r)}}if(i){let o=[i,r];s===!1&&(o=[i]),x(this.prerelease[0],i)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Ie.exports=Q});var ee=P((us,we)=>{"use strict";var be=Oe(),Kt=n((t,e,i=!1)=>{if(t instanceof be)return t;try{return new be(t,e)}catch(s){if(!i)return null;throw s}},"parse");we.exports=Kt});var ve=P((ps,Re)=>{"use strict";var Zt=ee(),Jt=n((t,e)=>{let i=Zt(t,e);return i?i.version:null},"valid");Re.exports=Jt});var Ge=P((ds,$e)=>{"use strict";var Qt=ee(),ei=n((t,e)=>{let i=Qt(t.trim().replace(/^[=v]+/,""),e);return i?i.version:null},"clean");$e.exports=ei});var te=P((Es,ti)=>{ti.exports=["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","Artistic-dist","Aspell-RU","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-2-Clause-pkgconf-disclaimer","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CryptoSwift","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-DTD","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRSD","FSFULLRWD","FSL-1.1-ALv2","FSL-1.1-MIT","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Game-Programming-Gems","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HDF5","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTIA-PD","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SOFA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SUL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","Unlicense-libtelnet","Unlicense-libwhirlpool","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","iMatix","jove","libpng-1.6.35","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","man2html","metamail","mpi-permissive","mpich2","mplus","ngrep","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]});var Te=P((Ss,ii)=>{ii.exports=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Net-SNMP","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"]});var Fe=P((gs,si)=>{si.exports=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]});var Ue=P((Cs,xe)=>{"use strict";var ri=[].concat(te()).concat(Te()),ni=Fe();xe.exports=function(t){var e=0;function i(){return e<t.length}n(i,"hasMore");function s(S){if(S instanceof RegExp){var h=t.slice(e),d=h.match(S);if(d)return e+=d[0].length,d[0]}else if(t.indexOf(S,e)===e)return e+=S.length,S}n(s,"read");function r(){s(/[ ]*/)}n(r,"skipWhitespace");function o(){for(var S,h=["WITH","AND","OR","(",")",":","+"],d=0;d<h.length&&(S=s(h[d]),!S);d++);if(S==="+"&&e>1&&t[e-2]===" ")throw new Error("Space before `+`");return S&&{type:"OPERATOR",string:S}}n(o,"operator");function l(){return s(/[A-Za-z0-9-.]+/)}n(l,"idstring");function u(){var S=l();if(!S)throw new Error("Expected idstring at offset "+e);return S}n(u,"expectIdstring");function f(){if(s("DocumentRef-")){var S=u();return{type:"DOCUMENTREF",string:S}}}n(f,"documentRef");function A(){if(s("LicenseRef-")){var S=u();return{type:"LICENSEREF",string:S}}}n(A,"licenseRef");function I(){var S=e,h=l();if(ri.indexOf(h)!==-1)return{type:"LICENSE",string:h};if(ni.indexOf(h)!==-1)return{type:"EXCEPTION",string:h};e=S}n(I,"identifier");function m(){return o()||f()||A()||I()}n(m,"parseToken");for(var g=[];i()&&(r(),!!i());){var E=m();if(!E)throw new Error("Unexpected `"+t[e]+"` at offset "+e);g.push(E)}return g}});var Me=P((As,Be)=>{"use strict";Be.exports=function(t){var e=0;function i(){return e<t.length}n(i,"hasMore");function s(){return i()?t[e]:null}n(s,"token");function r(){if(!i())throw new Error;e++}n(r,"next");function o(h){var d=s();if(d&&d.type==="OPERATOR"&&h===d.string)return r(),d.string}n(o,"parseOperator");function l(){if(o("WITH")){var h=s();if(h&&h.type==="EXCEPTION")return r(),h.string;throw new Error("Expected exception after `WITH`")}}n(l,"parseWith");function u(){var h=e,d="",p=s();if(p.type==="DOCUMENTREF"&&(r(),d+="DocumentRef-"+p.string+":",!o(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(p=s(),p.type==="LICENSEREF")return r(),d+="LicenseRef-"+p.string,{license:d};e=h}n(u,"parseLicenseRef");function f(){var h=s();if(h&&h.type==="LICENSE"){r();var d={license:h.string};o("+")&&(d.plus=!0);var p=l();return p&&(d.exception=p),d}}n(f,"parseLicense");function A(){var h=o("(");if(h){var d=E();if(!o(")"))throw new Error("Expected `)`");return d}}n(A,"parseParenthesizedExpression");function I(){return A()||u()||f()}n(I,"parseAtom");function m(h,d){return n(function p(){var D=d();if(D){if(!o(h))return D;var O=p();if(!O)throw new Error("Expected expression");return{left:D,conjunction:h.toLowerCase(),right:O}}},"parseBinaryOp")}n(m,"makeBinaryOpParser");var g=m("AND",I),E=m("OR",g),S=E();if(!S||i())throw new Error("Syntax error");return S}});var ie=P((Ns,He)=>{"use strict";var oi=Ue(),li=Me();He.exports=function(t){return li(oi(t))}});var Ve=P((ys,qe)=>{var ai=ie(),ci=te();function j(t){try{return ai(t),!0}catch{return!1}}n(j,"valid");function Xe(t,e){var i=e[0].length-t[0].length;return i!==0?i:t[0].toUpperCase().localeCompare(e[0].toUpperCase())}n(Xe,"sortTranspositions");var _e=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU LGPL","LGPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL"],["GNU Lesser General Public License","LGPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["GNU Lesser General Public License","LGPL-2.1"],["LESSER GENERAL PUBLIC LICENSE","LGPL"],["Lesser General Public License","LGPL"],["LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["Lesser General Public License","LGPL-2.1"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["WTFGPL","WTFPL"],["-License",""]].sort(Xe),hi=0,ui=1,ke=[function(t){return t.toUpperCase()},function(t){return t.trim()},function(t){return t.replace(/\./g,"")},function(t){return t.replace(/\s+/g,"")},function(t){return t.replace(/\s+/g,"-")},function(t){return t.replace("v","-")},function(t){return t.replace(/,?\s*(\d)/,"-$1")},function(t){return t.replace(/,?\s*(\d)/,"-$1.0")},function(t){return t.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(t){return t.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(t){return t[0].toUpperCase()+t.slice(1)},function(t){return t.replace("/","-")},function(t){return t.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(t){return t.indexOf("3.0")!==-1?t+"-or-later":t+"-only"},function(t){return t+"only"},function(t){return t.replace(/(\d)$/,"-$1.0")},function(t){return t.replace(/(-| )?(\d)$/,"-$2-Clause")},function(t){return t.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(t){return t.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(t){return t.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(t){return t.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(t){return t.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(t){return t.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(t){return"CC-"+t},function(t){return"CC-"+t+"-4.0"},function(t){return t.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(t){return"CC-"+t.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],se=ci.map(function(t){var e=/^(.*)-\d+\.\d+$/.exec(t);return e?[e[0],e[1]]:[t,null]}).reduce(function(t,e){var i=e[1];return t[i]=t[i]||[],t[i].push(e[0]),t},{}),fi=Object.keys(se).map(n(function(e){return[e,se[e]]},"makeEntries")).filter(n(function(e){return e[1].length===1&&e[0]!==null&&e[0]!=="APL"},"identifySoleVersions")).map(n(function(e){return[e[0],e[1][0]]},"createLastResorts"));se=void 0;var We=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(fi).sort(Xe),pi=0,Li=1,je=n(function(t){for(var e=0;e<ke.length;e++){var i=ke[e](t).trim();if(i!==t&&j(i))return i}return null},"validTransformation"),ze=n(function(t){for(var e=t.toUpperCase(),i=0;i<We.length;i++){var s=We[i];if(e.indexOf(s[pi])>-1)return s[Li]}return null},"validLastResort"),Ye=n(function(t,e){for(var i=0;i<_e.length;i++){var s=_e[i],r=s[hi];if(t.indexOf(r)>-1){var o=t.replace(r,s[ui]),l=e(o);if(l!==null)return l}}return null},"anyCorrection");qe.exports=function(t,e){e=e||{};var i=e.upgrade===void 0?!0:!!e.upgrade;function s(u){return i?di(u):u}n(s,"postprocess");var r=typeof t=="string"&&t.trim().length!==0;if(!r)throw Error("Invalid argument. Expected non-empty string.");if(t=t.trim(),j(t))return s(t);var o=t.replace(/\+$/,"").trim();if(j(o))return s(o);var l=je(t);return l!==null||(l=Ye(t,function(u){return j(u)?u:je(u)}),l!==null)||(l=ze(t),l!==null)||(l=Ye(t,ze),l!==null)?s(l):null};function di(t){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(t)!==-1?t+"-only":["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(t)!==-1?t.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(t)!==-1?t+"-or-later":t}n(di,"upgradeGPLs")});var Qe=P((Os,Je)=>{var mi=ie(),Ei=Ve(),Ke='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',Si=/^SEE LICEN[CS]E IN (.+)$/;function Ze(t,e){return e.slice(0,t.length)===t}n(Ze,"startsWith");function re(t){if(t.hasOwnProperty("license")){var e=t.license;return Ze("LicenseRef",e)||Ze("DocumentRef",e)}else return re(t.left)||re(t.right)}n(re,"usesLicenseRef");Je.exports=function(t){var e;try{e=mi(t)}catch{var i;if(t==="UNLICENSED"||t==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(i=Si.exec(t))return{validForOldPackages:!0,validForNewPackages:!0,inFile:i[1]};var s={validForOldPackages:!1,validForNewPackages:!1,warnings:[Ke]};if(t.trim().length!==0){var r=Ei(t);r&&s.warnings.push('license is similar to the valid expression "'+r+'"')}return s}return re(e)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[Ke]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}}});var rt=P(Y=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});Y.LRUCache=void 0;var gi=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,tt=new Set,ne=typeof process=="object"&&process?process:{},it=n((t,e,i,s)=>{typeof ne.emitWarning=="function"&&ne.emitWarning(t,e,i,s)},"emitWarning"),z=globalThis.AbortController,et=globalThis.AbortSignal;if(typeof z>"u"){et=class{static{n(this,"AbortSignal")}onabort;_onabort=[];reason;aborted=!1;addEventListener(s,r){this._onabort.push(r)}},z=class{static{n(this,"AbortController")}constructor(){e()}signal=new et;abort(s){if(!this.signal.aborted){this.signal.reason=s,this.signal.aborted=!0;for(let r of this.signal._onabort)r(s);this.signal.onabort?.(s)}}};let t=ne.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=n(()=>{t&&(t=!1,it("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))},"warnACPolyfill")}var Ci=n(t=>!tt.has(t),"shouldWarn"),vs=Symbol("type"),R=n(t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),"isPosInt"),st=n(t=>R(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?U:null:null,"getUintArray"),U=class extends Array{static{n(this,"ZeroArray")}constructor(e){super(e),this.fill(0)}},oe=class t{static{n(this,"Stack")}heap;length;static#r=!1;static create(e){let i=st(e);if(!i)return[];t.#r=!0;let s=new t(e,i);return t.#r=!1,s}constructor(e,i){if(!t.#r)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new i(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},le=class t{static{n(this,"LRUCache")}#r;#c;#t;#b;#m;#$;#G;#E;get perf(){return this.#E}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#S;#n;#s;#e;#u;#p;#h;#l;#g;#a;#C;#P;#L;#A;#O;#f;#T;static unsafeExposeInternals(e){return{starts:e.#P,ttls:e.#L,sizes:e.#C,keyMap:e.#n,keyList:e.#s,valList:e.#e,next:e.#u,prev:e.#p,get head(){return e.#h},get tail(){return e.#l},free:e.#g,isBackgroundFetch:n(i=>e.#i(i),"isBackgroundFetch"),backgroundFetch:n((i,s,r,o)=>e.#U(i,s,r,o),"backgroundFetch"),moveToTail:n(i=>e.#v(i),"moveToTail"),indexes:n(i=>e.#D(i),"indexes"),rindexes:n(i=>e.#N(i),"rindexes"),isStale:n(i=>e.#d(i),"isStale")}}get max(){return this.#r}get maxSize(){return this.#c}get calculatedSize(){return this.#S}get size(){return this.#o}get fetchMethod(){return this.#$}get memoMethod(){return this.#G}get dispose(){return this.#t}get onInsert(){return this.#b}get disposeAfter(){return this.#m}constructor(e){let{max:i=0,ttl:s,ttlResolution:r=1,ttlAutopurge:o,updateAgeOnGet:l,updateAgeOnHas:u,allowStale:f,dispose:A,onInsert:I,disposeAfter:m,noDisposeOnSet:g,noUpdateTTL:E,maxSize:S=0,maxEntrySize:h=0,sizeCalculation:d,fetchMethod:p,memoMethod:D,noDeleteOnFetchRejection:O,noDeleteOnStaleGet:N,allowStaleOnFetchRejection:b,allowStaleOnFetchAbort:B,ignoreFetchAbort:G,perf:M}=e;if(M!==void 0&&typeof M?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#E=M??gi,i!==0&&!R(i))throw new TypeError("max option must be a nonnegative integer");let T=i?st(i):Array;if(!T)throw new Error("invalid max value: "+i);if(this.#r=i,this.#c=S,this.maxEntrySize=h||this.#c,this.sizeCalculation=d,this.sizeCalculation){if(!this.#c&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(D!==void 0&&typeof D!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#G=D,p!==void 0&&typeof p!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#$=p,this.#O=!!p,this.#n=new Map,this.#s=new Array(i).fill(void 0),this.#e=new Array(i).fill(void 0),this.#u=new T(i),this.#p=new T(i),this.#h=0,this.#l=0,this.#g=oe.create(i),this.#o=0,this.#S=0,typeof A=="function"&&(this.#t=A),typeof I=="function"&&(this.#b=I),typeof m=="function"?(this.#m=m,this.#a=[]):(this.#m=void 0,this.#a=void 0),this.#A=!!this.#t,this.#T=!!this.#b,this.#f=!!this.#m,this.noDisposeOnSet=!!g,this.noUpdateTTL=!!E,this.noDeleteOnFetchRejection=!!O,this.allowStaleOnFetchRejection=!!b,this.allowStaleOnFetchAbort=!!B,this.ignoreFetchAbort=!!G,this.maxEntrySize!==0){if(this.#c!==0&&!R(this.#c))throw new TypeError("maxSize must be a positive integer if specified");if(!R(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#j()}if(this.allowStale=!!f,this.noDeleteOnStaleGet=!!N,this.updateAgeOnGet=!!l,this.updateAgeOnHas=!!u,this.ttlResolution=R(r)||r===0?r:1,this.ttlAutopurge=!!o,this.ttl=s||0,this.ttl){if(!R(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#B()}if(this.#r===0&&this.ttl===0&&this.#c===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#r&&!this.#c){let F="LRU_CACHE_UNBOUNDED";Ci(F)&&(tt.add(F),it("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",F,t))}}getRemainingTTL(e){return this.#n.has(e)?1/0:0}#B(){let e=new U(this.#r),i=new U(this.#r);this.#L=e,this.#P=i,this.#M=(o,l,u=this.#E.now())=>{if(i[o]=l!==0?u:0,e[o]=l,l!==0&&this.ttlAutopurge){let f=setTimeout(()=>{this.#d(o)&&this.#y(this.#s[o],"expire")},l+1);f.unref&&f.unref()}},this.#w=o=>{i[o]=e[o]!==0?this.#E.now():0},this.#I=(o,l)=>{if(e[l]){let u=e[l],f=i[l];if(!u||!f)return;o.ttl=u,o.start=f,o.now=s||r();let A=o.now-f;o.remainingTTL=u-A}};let s=0,r=n(()=>{let o=this.#E.now();if(this.ttlResolution>0){s=o;let l=setTimeout(()=>s=0,this.ttlResolution);l.unref&&l.unref()}return o},"getNow");this.getRemainingTTL=o=>{let l=this.#n.get(o);if(l===void 0)return 0;let u=e[l],f=i[l];if(!u||!f)return 1/0;let A=(s||r())-f;return u-A},this.#d=o=>{let l=i[o],u=e[o];return!!u&&!!l&&(s||r())-l>u}}#w=n(()=>{},"#updateItemAge");#I=n(()=>{},"#statusTTL");#M=n(()=>{},"#setItemTTL");#d=n(()=>!1,"#isStale");#j(){let e=new U(this.#r);this.#S=0,this.#C=e,this.#R=i=>{this.#S-=e[i],e[i]=0},this.#H=(i,s,r,o)=>{if(this.#i(s))return 0;if(!R(r))if(o){if(typeof o!="function")throw new TypeError("sizeCalculation must be a function");if(r=o(s,i),!R(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return r},this.#F=(i,s,r)=>{if(e[i]=s,this.#c){let o=this.#c-e[i];for(;this.#S>o;)this.#x(!0)}this.#S+=e[i],r&&(r.entrySize=s,r.totalCalculatedSize=this.#S)}}#R=n(e=>{},"#removeItemSize");#F=n((e,i,s)=>{},"#addItemSize");#H=n((e,i,s,r)=>{if(s||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0},"#requireSize");*#D({allowStale:e=this.allowStale}={}){if(this.#o)for(let i=this.#l;!(!this.#_(i)||((e||!this.#d(i))&&(yield i),i===this.#h));)i=this.#p[i]}*#N({allowStale:e=this.allowStale}={}){if(this.#o)for(let i=this.#h;!(!this.#_(i)||((e||!this.#d(i))&&(yield i),i===this.#l));)i=this.#u[i]}#_(e){return e!==void 0&&this.#n.get(this.#s[e])===e}*entries(){for(let e of this.#D())this.#e[e]!==void 0&&this.#s[e]!==void 0&&!this.#i(this.#e[e])&&(yield[this.#s[e],this.#e[e]])}*rentries(){for(let e of this.#N())this.#e[e]!==void 0&&this.#s[e]!==void 0&&!this.#i(this.#e[e])&&(yield[this.#s[e],this.#e[e]])}*keys(){for(let e of this.#D()){let i=this.#s[e];i!==void 0&&!this.#i(this.#e[e])&&(yield i)}}*rkeys(){for(let e of this.#N()){let i=this.#s[e];i!==void 0&&!this.#i(this.#e[e])&&(yield i)}}*values(){for(let e of this.#D())this.#e[e]!==void 0&&!this.#i(this.#e[e])&&(yield this.#e[e])}*rvalues(){for(let e of this.#N())this.#e[e]!==void 0&&!this.#i(this.#e[e])&&(yield this.#e[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,i={}){for(let s of this.#D()){let r=this.#e[s],o=this.#i(r)?r.__staleWhileFetching:r;if(o!==void 0&&e(o,this.#s[s],this))return this.get(this.#s[s],i)}}forEach(e,i=this){for(let s of this.#D()){let r=this.#e[s],o=this.#i(r)?r.__staleWhileFetching:r;o!==void 0&&e.call(i,o,this.#s[s],this)}}rforEach(e,i=this){for(let s of this.#N()){let r=this.#e[s],o=this.#i(r)?r.__staleWhileFetching:r;o!==void 0&&e.call(i,o,this.#s[s],this)}}purgeStale(){let e=!1;for(let i of this.#N({allowStale:!0}))this.#d(i)&&(this.#y(this.#s[i],"expire"),e=!0);return e}info(e){let i=this.#n.get(e);if(i===void 0)return;let s=this.#e[i],r=this.#i(s)?s.__staleWhileFetching:s;if(r===void 0)return;let o={value:r};if(this.#L&&this.#P){let l=this.#L[i],u=this.#P[i];if(l&&u){let f=l-(this.#E.now()-u);o.ttl=f,o.start=Date.now()}}return this.#C&&(o.size=this.#C[i]),o}dump(){let e=[];for(let i of this.#D({allowStale:!0})){let s=this.#s[i],r=this.#e[i],o=this.#i(r)?r.__staleWhileFetching:r;if(o===void 0||s===void 0)continue;let l={value:o};if(this.#L&&this.#P){l.ttl=this.#L[i];let u=this.#E.now()-this.#P[i];l.start=Math.floor(Date.now()-u)}this.#C&&(l.size=this.#C[i]),e.unshift([s,l])}return e}load(e){this.clear();for(let[i,s]of e){if(s.start){let r=Date.now()-s.start;s.start=this.#E.now()-r}this.set(i,s.value,s)}}set(e,i,s={}){if(i===void 0)return this.delete(e),this;let{ttl:r=this.ttl,start:o,noDisposeOnSet:l=this.noDisposeOnSet,sizeCalculation:u=this.sizeCalculation,status:f}=s,{noUpdateTTL:A=this.noUpdateTTL}=s,I=this.#H(e,i,s.size||0,u);if(this.maxEntrySize&&I>this.maxEntrySize)return f&&(f.set="miss",f.maxEntrySizeExceeded=!0),this.#y(e,"set"),this;let m=this.#o===0?void 0:this.#n.get(e);if(m===void 0)m=this.#o===0?this.#l:this.#g.length!==0?this.#g.pop():this.#o===this.#r?this.#x(!1):this.#o,this.#s[m]=e,this.#e[m]=i,this.#n.set(e,m),this.#u[this.#l]=m,this.#p[m]=this.#l,this.#l=m,this.#o++,this.#F(m,I,f),f&&(f.set="add"),A=!1,this.#T&&this.#b?.(i,e,"add");else{this.#v(m);let g=this.#e[m];if(i!==g){if(this.#O&&this.#i(g)){g.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:E}=g;E!==void 0&&!l&&(this.#A&&this.#t?.(E,e,"set"),this.#f&&this.#a?.push([E,e,"set"]))}else l||(this.#A&&this.#t?.(g,e,"set"),this.#f&&this.#a?.push([g,e,"set"]));if(this.#R(m),this.#F(m,I,f),this.#e[m]=i,f){f.set="replace";let E=g&&this.#i(g)?g.__staleWhileFetching:g;E!==void 0&&(f.oldValue=E)}}else f&&(f.set="update");this.#T&&this.onInsert?.(i,e,i===g?"update":"replace")}if(r!==0&&!this.#L&&this.#B(),this.#L&&(A||this.#M(m,r,o),f&&this.#I(f,m)),!l&&this.#f&&this.#a){let g=this.#a,E;for(;E=g?.shift();)this.#m?.(...E)}return this}pop(){try{for(;this.#o;){let e=this.#e[this.#h];if(this.#x(!0),this.#i(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#f&&this.#a){let e=this.#a,i;for(;i=e?.shift();)this.#m?.(...i)}}}#x(e){let i=this.#h,s=this.#s[i],r=this.#e[i];return this.#O&&this.#i(r)?r.__abortController.abort(new Error("evicted")):(this.#A||this.#f)&&(this.#A&&this.#t?.(r,s,"evict"),this.#f&&this.#a?.push([r,s,"evict"])),this.#R(i),e&&(this.#s[i]=void 0,this.#e[i]=void 0,this.#g.push(i)),this.#o===1?(this.#h=this.#l=0,this.#g.length=0):this.#h=this.#u[i],this.#n.delete(s),this.#o--,i}has(e,i={}){let{updateAgeOnHas:s=this.updateAgeOnHas,status:r}=i,o=this.#n.get(e);if(o!==void 0){let l=this.#e[o];if(this.#i(l)&&l.__staleWhileFetching===void 0)return!1;if(this.#d(o))r&&(r.has="stale",this.#I(r,o));else return s&&this.#w(o),r&&(r.has="hit",this.#I(r,o)),!0}else r&&(r.has="miss");return!1}peek(e,i={}){let{allowStale:s=this.allowStale}=i,r=this.#n.get(e);if(r===void 0||!s&&this.#d(r))return;let o=this.#e[r];return this.#i(o)?o.__staleWhileFetching:o}#U(e,i,s,r){let o=i===void 0?void 0:this.#e[i];if(this.#i(o))return o;let l=new z,{signal:u}=s;u?.addEventListener("abort",()=>l.abort(u.reason),{signal:l.signal});let f={signal:l.signal,options:s,context:r},A=n((h,d=!1)=>{let{aborted:p}=l.signal,D=s.ignoreFetchAbort&&h!==void 0;if(s.status&&(p&&!d?(s.status.fetchAborted=!0,s.status.fetchError=l.signal.reason,D&&(s.status.fetchAbortIgnored=!0)):s.status.fetchResolved=!0),p&&!D&&!d)return m(l.signal.reason);let O=E,N=this.#e[i];return(N===E||D&&d&&N===void 0)&&(h===void 0?O.__staleWhileFetching!==void 0?this.#e[i]=O.__staleWhileFetching:this.#y(e,"fetch"):(s.status&&(s.status.fetchUpdated=!0),this.set(e,h,f.options))),h},"cb"),I=n(h=>(s.status&&(s.status.fetchRejected=!0,s.status.fetchError=h),m(h)),"eb"),m=n(h=>{let{aborted:d}=l.signal,p=d&&s.allowStaleOnFetchAbort,D=p||s.allowStaleOnFetchRejection,O=D||s.noDeleteOnFetchRejection,N=E;if(this.#e[i]===E&&(!O||N.__staleWhileFetching===void 0?this.#y(e,"fetch"):p||(this.#e[i]=N.__staleWhileFetching)),D)return s.status&&N.__staleWhileFetching!==void 0&&(s.status.returnedStale=!0),N.__staleWhileFetching;if(N.__returned===N)throw h},"fetchFail"),g=n((h,d)=>{let p=this.#$?.(e,o,f);p&&p instanceof Promise&&p.then(D=>h(D===void 0?void 0:D),d),l.signal.addEventListener("abort",()=>{(!s.ignoreFetchAbort||s.allowStaleOnFetchAbort)&&(h(void 0),s.allowStaleOnFetchAbort&&(h=n(D=>A(D,!0),"res")))})},"pcall");s.status&&(s.status.fetchDispatched=!0);let E=new Promise(g).then(A,I),S=Object.assign(E,{__abortController:l,__staleWhileFetching:o,__returned:void 0});return i===void 0?(this.set(e,S,{...f.options,status:void 0}),i=this.#n.get(e)):this.#e[i]=S,S}#i(e){if(!this.#O)return!1;let i=e;return!!i&&i instanceof Promise&&i.hasOwnProperty("__staleWhileFetching")&&i.__abortController instanceof z}async fetch(e,i={}){let{allowStale:s=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,ttl:l=this.ttl,noDisposeOnSet:u=this.noDisposeOnSet,size:f=0,sizeCalculation:A=this.sizeCalculation,noUpdateTTL:I=this.noUpdateTTL,noDeleteOnFetchRejection:m=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:g=this.allowStaleOnFetchRejection,ignoreFetchAbort:E=this.ignoreFetchAbort,allowStaleOnFetchAbort:S=this.allowStaleOnFetchAbort,context:h,forceRefresh:d=!1,status:p,signal:D}=i;if(!this.#O)return p&&(p.fetch="get"),this.get(e,{allowStale:s,updateAgeOnGet:r,noDeleteOnStaleGet:o,status:p});let O={allowStale:s,updateAgeOnGet:r,noDeleteOnStaleGet:o,ttl:l,noDisposeOnSet:u,size:f,sizeCalculation:A,noUpdateTTL:I,noDeleteOnFetchRejection:m,allowStaleOnFetchRejection:g,allowStaleOnFetchAbort:S,ignoreFetchAbort:E,status:p,signal:D},N=this.#n.get(e);if(N===void 0){p&&(p.fetch="miss");let b=this.#U(e,N,O,h);return b.__returned=b}else{let b=this.#e[N];if(this.#i(b)){let F=s&&b.__staleWhileFetching!==void 0;return p&&(p.fetch="inflight",F&&(p.returnedStale=!0)),F?b.__staleWhileFetching:b.__returned=b}let B=this.#d(N);if(!d&&!B)return p&&(p.fetch="hit"),this.#v(N),r&&this.#w(N),p&&this.#I(p,N),b;let G=this.#U(e,N,O,h),T=G.__staleWhileFetching!==void 0&&s;return p&&(p.fetch=B?"stale":"refresh",T&&B&&(p.returnedStale=!0)),T?G.__staleWhileFetching:G.__returned=G}}async forceFetch(e,i={}){let s=await this.fetch(e,i);if(s===void 0)throw new Error("fetch() returned undefined");return s}memo(e,i={}){let s=this.#G;if(!s)throw new Error("no memoMethod provided to constructor");let{context:r,forceRefresh:o,...l}=i,u=this.get(e,l);if(!o&&u!==void 0)return u;let f=s(e,u,{options:l,context:r});return this.set(e,f,l),f}get(e,i={}){let{allowStale:s=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,status:l}=i,u=this.#n.get(e);if(u!==void 0){let f=this.#e[u],A=this.#i(f);return l&&this.#I(l,u),this.#d(u)?(l&&(l.get="stale"),A?(l&&s&&f.__staleWhileFetching!==void 0&&(l.returnedStale=!0),s?f.__staleWhileFetching:void 0):(o||this.#y(e,"expire"),l&&s&&(l.returnedStale=!0),s?f:void 0)):(l&&(l.get="hit"),A?f.__staleWhileFetching:(this.#v(u),r&&this.#w(u),f))}else l&&(l.get="miss")}#k(e,i){this.#p[i]=e,this.#u[e]=i}#v(e){e!==this.#l&&(e===this.#h?this.#h=this.#u[e]:this.#k(this.#p[e],this.#u[e]),this.#k(this.#l,e),this.#l=e)}delete(e){return this.#y(e,"delete")}#y(e,i){let s=!1;if(this.#o!==0){let r=this.#n.get(e);if(r!==void 0)if(s=!0,this.#o===1)this.#W(i);else{this.#R(r);let o=this.#e[r];if(this.#i(o)?o.__abortController.abort(new Error("deleted")):(this.#A||this.#f)&&(this.#A&&this.#t?.(o,e,i),this.#f&&this.#a?.push([o,e,i])),this.#n.delete(e),this.#s[r]=void 0,this.#e[r]=void 0,r===this.#l)this.#l=this.#p[r];else if(r===this.#h)this.#h=this.#u[r];else{let l=this.#p[r];this.#u[l]=this.#u[r];let u=this.#u[r];this.#p[u]=this.#p[r]}this.#o--,this.#g.push(r)}}if(this.#f&&this.#a?.length){let r=this.#a,o;for(;o=r?.shift();)this.#m?.(...o)}return s}clear(){return this.#W("delete")}#W(e){for(let i of this.#N({allowStale:!0})){let s=this.#e[i];if(this.#i(s))s.__abortController.abort(new Error("deleted"));else{let r=this.#s[i];this.#A&&this.#t?.(s,r,e),this.#f&&this.#a?.push([s,r,e])}}if(this.#n.clear(),this.#e.fill(void 0),this.#s.fill(void 0),this.#L&&this.#P&&(this.#L.fill(0),this.#P.fill(0)),this.#C&&this.#C.fill(0),this.#h=0,this.#l=0,this.#g.length=0,this.#S=0,this.#o=0,this.#f&&this.#a){let i=this.#a,s;for(;s=i?.shift();)this.#m?.(...s)}}};Y.LRUCache=le});var lt=P((Ts,ot)=>{"use strict";var C=n((...t)=>t.every(e=>e)?t.join(""):"","maybeJoin"),y=n(t=>t?encodeURIComponent(t):"","maybeEncode"),nt=n(t=>t.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),"formatHashFragment"),Pi={sshtemplate:n(({domain:t,user:e,project:i,committish:s})=>`git@${t}:${e}/${i}.git${C("#",s)}`,"sshtemplate"),sshurltemplate:n(({domain:t,user:e,project:i,committish:s})=>`git+ssh://git@${t}/${e}/${i}.git${C("#",s)}`,"sshurltemplate"),edittemplate:n(({domain:t,user:e,project:i,committish:s,editpath:r,path:o})=>`https://${t}/${e}/${i}${C("/",r,"/",y(s||"HEAD"),"/",o)}`,"edittemplate"),browsetemplate:n(({domain:t,user:e,project:i,committish:s,treepath:r})=>`https://${t}/${e}/${i}${C("/",r,"/",y(s))}`,"browsetemplate"),browsetreetemplate:n(({domain:t,user:e,project:i,committish:s,treepath:r,path:o,fragment:l,hashformat:u})=>`https://${t}/${e}/${i}/${r}/${y(s||"HEAD")}/${o}${C("#",u(l||""))}`,"browsetreetemplate"),browseblobtemplate:n(({domain:t,user:e,project:i,committish:s,blobpath:r,path:o,fragment:l,hashformat:u})=>`https://${t}/${e}/${i}/${r}/${y(s||"HEAD")}/${o}${C("#",u(l||""))}`,"browseblobtemplate"),docstemplate:n(({domain:t,user:e,project:i,treepath:s,committish:r})=>`https://${t}/${e}/${i}${C("/",s,"/",y(r))}#readme`,"docstemplate"),httpstemplate:n(({auth:t,domain:e,user:i,project:s,committish:r})=>`git+https://${C(t,"@")}${e}/${i}/${s}.git${C("#",r)}`,"httpstemplate"),filetemplate:n(({domain:t,user:e,project:i,committish:s,path:r})=>`https://${t}/${e}/${i}/raw/${y(s||"HEAD")}/${r}`,"filetemplate"),shortcuttemplate:n(({type:t,user:e,project:i,committish:s})=>`${t}:${e}/${i}${C("#",s)}`,"shortcuttemplate"),pathtemplate:n(({user:t,project:e,committish:i})=>`${t}/${e}${C("#",i)}`,"pathtemplate"),bugstemplate:n(({domain:t,user:e,project:i})=>`https://${t}/${e}/${i}/issues`,"bugstemplate"),hashformat:nt},v={};v.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:n(({auth:t,user:e,project:i,committish:s,path:r})=>`https://${C(t,"@")}raw.githubusercontent.com/${e}/${i}/${y(s||"HEAD")}/${r}`,"filetemplate"),gittemplate:n(({auth:t,domain:e,user:i,project:s,committish:r})=>`git://${C(t,"@")}${e}/${i}/${s}.git${C("#",r)}`,"gittemplate"),tarballtemplate:n(({domain:t,user:e,project:i,committish:s})=>`https://codeload.${t}/${e}/${i}/tar.gz/${y(s||"HEAD")}`,"tarballtemplate"),extract:n(t=>{let[,e,i,s,r]=t.pathname.split("/",5);if(!(s&&s!=="tree")&&(s||(r=t.hash.slice(1)),i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!e||!i)))return{user:e,project:i,committish:r}},"extract")};v.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:n(({domain:t,user:e,project:i,committish:s,treepath:r,path:o,editpath:l})=>`https://${t}/${e}/${i}${C("/",r,"/",y(s||"HEAD"),"/",o,l)}`,"edittemplate"),tarballtemplate:n(({domain:t,user:e,project:i,committish:s})=>`https://${t}/${e}/${i}/get/${y(s||"HEAD")}.tar.gz`,"tarballtemplate"),extract:n(t=>{let[,e,i,s]=t.pathname.split("/",4);if(!["get"].includes(s)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!e||!i)))return{user:e,project:i,committish:t.hash.slice(1)}},"extract")};v.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",tarballtemplate:n(({domain:t,user:e,project:i,committish:s})=>`https://${t}/${e}/${i}/repository/archive.tar.gz?ref=${y(s||"HEAD")}`,"tarballtemplate"),extract:n(t=>{let e=t.pathname.slice(1);if(e.includes("/-/")||e.includes("/archive.tar.gz"))return;let i=e.split("/"),s=i.pop();s.endsWith(".git")&&(s=s.slice(0,-4));let r=i.join("/");if(!(!r||!s))return{user:r,project:s,committish:t.hash.slice(1)}},"extract")};v.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:n(({domain:t,project:e,committish:i})=>`git@${t}:${e}.git${C("#",i)}`,"sshtemplate"),sshurltemplate:n(({domain:t,project:e,committish:i})=>`git+ssh://git@${t}/${e}.git${C("#",i)}`,"sshurltemplate"),edittemplate:n(({domain:t,user:e,project:i,committish:s,editpath:r})=>`https://${t}/${e}/${i}${C("/",y(s))}/${r}`,"edittemplate"),browsetemplate:n(({domain:t,project:e,committish:i})=>`https://${t}/${e}${C("/",y(i))}`,"browsetemplate"),browsetreetemplate:n(({domain:t,project:e,committish:i,path:s,hashformat:r})=>`https://${t}/${e}${C("/",y(i))}${C("#",r(s))}`,"browsetreetemplate"),browseblobtemplate:n(({domain:t,project:e,committish:i,path:s,hashformat:r})=>`https://${t}/${e}${C("/",y(i))}${C("#",r(s))}`,"browseblobtemplate"),docstemplate:n(({domain:t,project:e,committish:i})=>`https://${t}/${e}${C("/",y(i))}`,"docstemplate"),httpstemplate:n(({domain:t,project:e,committish:i})=>`git+https://${t}/${e}.git${C("#",i)}`,"httpstemplate"),filetemplate:n(({user:t,project:e,committish:i,path:s})=>`https://gist.githubusercontent.com/${t}/${e}/raw${C("/",y(i))}/${s}`,"filetemplate"),shortcuttemplate:n(({type:t,project:e,committish:i})=>`${t}:${e}${C("#",i)}`,"shortcuttemplate"),pathtemplate:n(({project:t,committish:e})=>`${t}${C("#",e)}`,"pathtemplate"),bugstemplate:n(({domain:t,project:e})=>`https://${t}/${e}`,"bugstemplate"),gittemplate:n(({domain:t,project:e,committish:i})=>`git://${t}/${e}.git${C("#",i)}`,"gittemplate"),tarballtemplate:n(({project:t,committish:e})=>`https://codeload.github.com/gist/${t}/tar.gz/${y(e||"HEAD")}`,"tarballtemplate"),extract:n(t=>{let[,e,i,s]=t.pathname.split("/",4);if(s!=="raw"){if(!i){if(!e)return;i=e,e=null}return i.endsWith(".git")&&(i=i.slice(0,-4)),{user:e,project:i,committish:t.hash.slice(1)}}},"extract"),hashformat:n(function(t){return t&&"file-"+nt(t)},"hashformat")};v.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:n(({domain:t,user:e,project:i,committish:s,path:r})=>`https://${t}/${e}/${i}/blob/${y(s)||"HEAD"}/${r}`,"filetemplate"),httpstemplate:n(({domain:t,user:e,project:i,committish:s})=>`https://${t}/${e}/${i}.git${C("#",s)}`,"httpstemplate"),tarballtemplate:n(({domain:t,user:e,project:i,committish:s})=>`https://${t}/${e}/${i}/archive/${y(s)||"HEAD"}.tar.gz`,"tarballtemplate"),bugstemplate:n(()=>null,"bugstemplate"),extract:n(t=>{let[,e,i,s]=t.pathname.split("/",4);if(!["archive"].includes(s)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!e||!i)))return{user:e,project:i,committish:t.hash.slice(1)}},"extract")};for(let[t,e]of Object.entries(v))v[t]=Object.assign({},Pi,e);ot.exports=v});var ce=P((xs,ct)=>{var Ai=require("url"),ae=n((t,e,i)=>{let s=t.indexOf(i);return t.lastIndexOf(e,s>-1?s:1/0)},"lastIndexOfBefore"),at=n(t=>{try{return new Ai.URL(t)}catch{}},"safeUrl"),Di=n((t,e)=>{let i=t.indexOf(":"),s=t.slice(0,i+1);if(Object.prototype.hasOwnProperty.call(e,s)||t.substr(i,3)==="://")return t;let r=t.indexOf("@");return r>-1?r>i?`git+ssh://${t}`:t:`${t.slice(0,i+1)}//${t.slice(i+1)}`},"correctProtocol"),Ni=n(t=>{let e=ae(t,"@","#"),i=ae(t,":","#");return i>e&&(t=t.slice(0,i)+"/"+t.slice(i+1)),ae(t,":","#")===-1&&t.indexOf("//")===-1&&(t=`git+ssh://${t}`),t},"correctUrl");ct.exports=(t,e)=>{let i=e?Di(t,e):t;return at(i)||at(Ni(i))}});var ut=P((Bs,ht)=>{"use strict";var yi=ce(),Ii=n(t=>{let e=t.indexOf("#"),i=t.indexOf("/"),s=t.indexOf("/",i+1),r=t.indexOf(":"),o=/\s/.exec(t),l=t.indexOf("@"),u=!o||e>-1&&o.index>e,f=l===-1||e>-1&&l>e,A=r===-1||e>-1&&r>e,I=s===-1||e>-1&&s>e,m=i>0,g=e>-1?t[e-1]!=="/":!t.endsWith("/"),E=!t.startsWith(".");return u&&m&&g&&E&&f&&A&&I},"isGitHubShorthand");ht.exports=(t,e,{gitHosts:i,protocols:s})=>{if(!t)return;let r=Ii(t)?`github:${t}`:t,o=yi(r,s);if(!o)return;let l=i.byShortcut[o.protocol],u=i.byDomain[o.hostname.startsWith("www.")?o.hostname.slice(4):o.hostname],f=l||u;if(!f)return;let A=i[l||u],I=null;s[o.protocol]?.auth&&(o.username||o.password)&&(I=`${o.username}${o.password?":"+o.password:""}`);let m=null,g=null,E=null,S=null;try{if(l){let h=o.pathname.startsWith("/")?o.pathname.slice(1):o.pathname,d=h.indexOf("@");d>-1&&(h=h.slice(d+1));let p=h.lastIndexOf("/");p>-1?(g=decodeURIComponent(h.slice(0,p)),g||(g=null),E=decodeURIComponent(h.slice(p+1))):E=decodeURIComponent(h),E.endsWith(".git")&&(E=E.slice(0,-4)),o.hash&&(m=decodeURIComponent(o.hash.slice(1))),S="shortcut"}else{if(!A.protocols.includes(o.protocol))return;let h=A.extract(o);if(!h)return;g=h.user&&decodeURIComponent(h.user),E=decodeURIComponent(h.project),m=decodeURIComponent(h.committish),S=s[o.protocol]?.name||o.protocol.slice(0,-1)}}catch(h){if(h instanceof URIError)return;throw h}return[f,g,I,E,m,S,e]}});var pt=P((Hs,ft)=>{"use strict";var{LRUCache:Oi}=rt(),bi=lt(),wi=ut(),Ri=ce(),he=new Oi({max:1e3});function vi(t){try{let{protocol:e,hostname:i,pathname:s}=new URL(t);if(!i)return null;let r=/(?:git\+)http:$/.test(e)?"http:":"https:",o=s.replace(/\.git$/,"");return`${r}//${i}${o}`}catch{return null}}n(vi,"unknownHostedUrl");var X=class t{static{n(this,"GitHost")}constructor(e,i,s,r,o,l,u={}){Object.assign(this,t.#r[e],{type:e,user:i,auth:s,project:r,committish:o,default:l,opts:u})}static#r={byShortcut:{},byDomain:{}};static#c={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(e,i){t.#r[e]=i,t.#r.byDomain[i.domain]=e,t.#r.byShortcut[`${e}:`]=e,t.#c[`${e}:`]={name:e}}static fromUrl(e,i){if(typeof e!="string")return;let s=e+JSON.stringify(i||{});if(!he.has(s)){let r=wi(e,i,{gitHosts:t.#r,protocols:t.#c});he.set(s,r?new t(...r):void 0)}return he.get(s)}static fromManifest(e,i={}){if(!e||typeof e!="object")return;let s=e.repository,r=s&&(typeof s=="string"?s:typeof s=="object"&&typeof s.url=="string"?s.url:null);if(!r)throw new Error("no repository");let o=r&&t.fromUrl(r.replace(/^git\+/,""),i)||null;if(o)return o;let l=vi(r);return t.fromUrl(l,i)||l}static parseUrl(e){return Ri(e)}#t(e,i){if(typeof e!="function")return null;let s={...this,...this.opts,...i};s.path||(s.path=""),s.path.startsWith("/")&&(s.path=s.path.slice(1)),s.noCommittish&&(s.committish=null);let r=e(s);return s.noGitPlus&&r.startsWith("git+")?r.slice(4):r}hash(){return this.committish?`#${this.committish}`:""}ssh(e){return this.#t(this.sshtemplate,e)}sshurl(e){return this.#t(this.sshurltemplate,e)}browse(e,...i){return typeof e!="string"?this.#t(this.browsetemplate,e):typeof i[0]!="string"?this.#t(this.browsetreetemplate,{...i[0],path:e}):this.#t(this.browsetreetemplate,{...i[1],fragment:i[0],path:e})}browseFile(e,...i){return typeof i[0]!="string"?this.#t(this.browseblobtemplate,{...i[0],path:e}):this.#t(this.browseblobtemplate,{...i[1],fragment:i[0],path:e})}docs(e){return this.#t(this.docstemplate,e)}bugs(e){return this.#t(this.bugstemplate,e)}https(e){return this.#t(this.httpstemplate,e)}git(e){return this.#t(this.gittemplate,e)}shortcut(e){return this.#t(this.shortcuttemplate,e)}path(e){return this.#t(this.pathtemplate,e)}tarball(e){return this.#t(this.tarballtemplate,{...e,noCommittish:!1})}file(e,i){return this.#t(this.filetemplate,{...i,path:e})}edit(e,i){return this.#t(this.edittemplate,{...i,path:e})}getDefaultRepresentation(){return this.default}toString(e){return this.default&&typeof this[this.default]=="function"?this[this.default](e):this.sshurl(e)}};for(let[t,e]of Object.entries(bi))X.addHost(t,e);ft.exports=X});var dt=P((ks,Lt)=>{Lt.exports=$i;function $i(t){if(!t||t==="ERROR: No README data found!")return;t=t.trim().split(`
7
+ `);let e=0;for(;t[e]&&t[e].trim().match(/^(#|$)/);)e++;let i=t.length,s=e+1;for(;s<i&&t[s].trim();)s++;return t.slice(e,s).join(" ").trim()}n($i,"extractDescription")});var mt=P((js,Gi)=>{Gi.exports={topLevel:{dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},bugs:{web:"url",name:"url"},script:{server:"start",tests:"test"}}});var Ct=P((zs,gt)=>{var{URL:ue}=require("node:url"),Ti=ve(),Fi=Ge(),xi=Qe(),q=pt(),{isBuiltin:Ui}=require("node:module"),Bi=["dependencies","devDependencies","optionalDependencies"],Mi=dt(),$=mt(),Et=n(t=>t.includes("@")&&t.indexOf("@")<t.lastIndexOf("."),"isEmail");gt.exports={warn:n(function(){},"warn"),fixRepositoryField:n(function(t){if(t.repositories&&(this.warn("repositories"),t.repository=t.repositories[0]),!t.repository)return this.warn("missingRepository");typeof t.repository=="string"&&(t.repository={type:"git",url:t.repository});var e=t.repository.url||"";if(e){var i=q.fromUrl(e);i&&(e=t.repository.url=i.getDefaultRepresentation()==="shortcut"?i.https():i.toString())}e.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",e)},"fixRepositoryField"),fixTypos:n(function(t){Object.keys($.topLevel).forEach(function(e){Object.prototype.hasOwnProperty.call(t,e)&&this.warn("typo",e,$.topLevel[e])},this)},"fixTypos"),fixScriptsField:n(function(t){if(t.scripts){if(typeof t.scripts!="object"){this.warn("nonObjectScripts"),delete t.scripts;return}Object.keys(t.scripts).forEach(function(e){typeof t.scripts[e]!="string"?(this.warn("nonStringScript"),delete t.scripts[e]):$.script[e]&&!t.scripts[$.script[e]]&&this.warn("typo",e,$.script[e],"scripts")},this)}},"fixScriptsField"),fixFilesField:n(function(t){var e=t.files;e&&!Array.isArray(e)?(this.warn("nonArrayFiles"),delete t.files):t.files&&(t.files=t.files.filter(function(i){return!i||typeof i!="string"?(this.warn("invalidFilename",i),!1):!0},this))},"fixFilesField"),fixBinField:n(function(t){if(t.bin&&typeof t.bin=="string"){var e={},i;(i=t.name.match(/^@[^/]+[/](.*)$/))?e[i[1]]=t.bin:e[t.name]=t.bin,t.bin=e}},"fixBinField"),fixManField:n(function(t){t.man&&typeof t.man=="string"&&(t.man=[t.man])},"fixManField"),fixBundleDependenciesField:n(function(t){var e="bundledDependencies",i="bundleDependencies";t[e]&&!t[i]&&(t[i]=t[e],delete t[e]),t[i]&&!Array.isArray(t[i])?(this.warn("nonArrayBundleDependencies"),delete t[i]):t[i]&&(t[i]=t[i].filter(function(s){return!s||typeof s!="string"?(this.warn("nonStringBundleDependency",s),!1):(t.dependencies||(t.dependencies={}),Object.prototype.hasOwnProperty.call(t.dependencies,s)||(this.warn("nonDependencyBundleDependency",s),t.dependencies[s]="*"),!0)},this))},"fixBundleDependenciesField"),fixDependencies:n(function(t){Xi(t,this.warn),zi(t,this.warn),this.fixBundleDependenciesField(t),["dependencies","devDependencies"].forEach(function(e){if(e in t){if(!t[e]||typeof t[e]!="object"){this.warn("nonObjectDependencies",e),delete t[e];return}Object.keys(t[e]).forEach(function(i){var s=t[e][i];typeof s!="string"&&(this.warn("nonStringDependency",i,JSON.stringify(s)),delete t[e][i]);var r=q.fromUrl(t[e][i]);r&&(t[e][i]=r.toString())},this)}},this)},"fixDependencies"),fixModulesField:n(function(t){t.modules&&(this.warn("deprecatedModules"),delete t.modules)},"fixModulesField"),fixKeywordsField:n(function(t){typeof t.keywords=="string"&&(t.keywords=t.keywords.split(/,\s+/)),t.keywords&&!Array.isArray(t.keywords)?(delete t.keywords,this.warn("nonArrayKeywords")):t.keywords&&(t.keywords=t.keywords.filter(function(e){return typeof e!="string"||!e?(this.warn("nonStringKeyword"),!1):!0},this))},"fixKeywordsField"),fixVersionField:n(function(t,e){var i=!e;if(!t.version)return t.version="",!0;if(!Ti(t.version,i))throw new Error('Invalid version: "'+t.version+'"');return t.version=Fi(t.version,i),!0},"fixVersionField"),fixPeople:n(function(t){St(t,Wi),St(t,ji)},"fixPeople"),fixNameField:n(function(t,e){typeof e=="boolean"?e={strict:e}:typeof e>"u"&&(e={});var i=e.strict;if(!t.name&&!i){t.name="";return}if(typeof t.name!="string")throw new Error("name field must be a string.");i||(t.name=t.name.trim()),ki(t.name,i,e.allowLegacyCase),Ui(t.name)&&this.warn("conflictingName",t.name)},"fixNameField"),fixDescriptionField:n(function(t){t.description&&typeof t.description!="string"&&(this.warn("nonStringDescription"),delete t.description),t.readme&&!t.description&&(t.description=Mi(t.readme)),t.description===void 0&&delete t.description,t.description||this.warn("missingDescription")},"fixDescriptionField"),fixReadmeField:n(function(t){t.readme||(this.warn("missingReadme"),t.readme="ERROR: No README data found!")},"fixReadmeField"),fixBugsField:n(function(t){if(!t.bugs&&t.repository&&t.repository.url){var e=q.fromUrl(t.repository.url);e&&e.bugs()&&(t.bugs={url:e.bugs()})}else if(t.bugs){if(typeof t.bugs=="string")Et(t.bugs)?t.bugs={email:t.bugs}:ue.canParse(t.bugs)?t.bugs={url:t.bugs}:this.warn("nonEmailUrlBugsString");else{qi(t.bugs,this.warn);var i=t.bugs;t.bugs={},i.url&&(ue.canParse(i.url)?t.bugs.url=i.url:this.warn("nonUrlBugsUrlField")),i.email&&(typeof i.email=="string"&&Et(i.email)?t.bugs.email=i.email:this.warn("nonEmailBugsEmailField"))}!t.bugs.email&&!t.bugs.url&&(delete t.bugs,this.warn("emptyNormalizedBugs"))}},"fixBugsField"),fixHomepageField:n(function(t){if(!t.homepage&&t.repository&&t.repository.url){var e=q.fromUrl(t.repository.url);e&&e.docs()&&(t.homepage=e.docs())}if(t.homepage){if(typeof t.homepage!="string")return this.warn("nonUrlHomepage"),delete t.homepage;ue.canParse(t.homepage)||(t.homepage="http://"+t.homepage)}},"fixHomepageField"),fixLicenseField:n(function(t){let e=t.license||t.licence;if(!e)return this.warn("missingLicense");if(typeof e!="string"||e.length<1||e.trim()==="")return this.warn("invalidLicense");if(!xi(e).validForNewPackages)return this.warn("invalidLicense")},"fixLicenseField")};function Hi(t){if(t.charAt(0)!=="@")return!1;var e=t.slice(1).split("/");return e.length!==2?!1:e[0]&&e[1]&&e[0]===encodeURIComponent(e[0])&&e[1]===encodeURIComponent(e[1])}n(Hi,"isValidScopedPackageName");function _i(t){return!t.match(/[/@\s+%:]/)&&t===encodeURIComponent(t)}n(_i,"isCorrectlyEncodedName");function ki(t,e,i){if(t.charAt(0)==="."||!(Hi(t)||_i(t))||e&&!i&&t!==t.toLowerCase()||t.toLowerCase()==="node_modules"||t.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(t))}n(ki,"ensureValidName");function St(t,e){return t.author&&(t.author=e(t.author)),["maintainers","contributors"].forEach(function(i){Array.isArray(t[i])&&(t[i]=t[i].map(e))}),t}n(St,"modifyPeople");function Wi(t){if(typeof t=="string")return t;var e=t.name||"",i=t.url||t.web,s=i?" ("+i+")":"",r=t.email||t.mail,o=r?" <"+r+">":"";return e+o+s}n(Wi,"unParsePerson");function ji(t){if(typeof t!="string")return t;var e=t.match(/^([^(<]+)/),i=t.match(/\(([^()]+)\)/),s=t.match(/<([^<>]+)>/),r={};return e&&e[0].trim()&&(r.name=e[0].trim()),s&&(r.email=s[1]),i&&(r.url=i[1]),r}n(ji,"parsePerson");function zi(t){var e=t.optionalDependencies;if(e){var i=t.dependencies||{};Object.keys(e).forEach(function(s){i[s]=e[s]}),t.dependencies=i}}n(zi,"addOptionalDepsToDeps");function Yi(t,e,i){if(!t)return{};if(typeof t=="string"&&(t=t.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(t))return t;i("deprecatedArrayDependencies",e);var s={};return t.filter(function(r){return typeof r=="string"}).forEach(function(r){r=r.trim().split(/(:?[@\s><=])/);var o=r.shift(),l=r.join("");l=l.trim(),l=l.replace(/^@/,""),s[o]=l}),s}n(Yi,"depObjectify");function Xi(t,e){Bi.forEach(function(i){t[i]&&(t[i]=Yi(t[i],i,e))})}n(Xi,"objectifyDeps");function qi(t,e){t&&Object.keys(t).forEach(function(i){$.bugs[i]&&(e("typo",i,$.bugs[i],"bugs"),t[$.bugs[i]]=t[i],delete t[i])})}n(qi,"bugsTypos")});var Pt=P((Xs,Vi)=>{Vi.exports={repositories:"'repositories' (plural) Not supported. Please pick one as the 'repository' field",missingRepository:"No repository field.",brokenGitUrl:"Probably broken git url: %s",nonObjectScripts:"scripts must be an object",nonStringScript:"script values must be string commands",nonArrayFiles:"Invalid 'files' member",invalidFilename:"Invalid filename in 'files' list: %s",nonArrayBundleDependencies:"Invalid 'bundleDependencies' list. Must be array of package names",nonStringBundleDependency:"Invalid bundleDependencies member: %s",nonDependencyBundleDependency:"Non-dependency in bundleDependencies: %s",nonObjectDependencies:"%s field must be an object",nonStringDependency:"Invalid dependency: %s %s",deprecatedArrayDependencies:"specifying %s as array is deprecated",deprecatedModules:"modules field is deprecated",nonArrayKeywords:"keywords should be an array of strings",nonStringKeyword:"keywords should be an array of strings",conflictingName:"%s is also the name of a node core module.",nonStringDescription:"'description' field should be a string",missingDescription:"No description",missingReadme:"No README data",missingLicense:"No license field.",nonEmailUrlBugsString:"Bug string field must be url, email, or {email,url}",nonUrlBugsUrlField:"bugs.url field must be a string url. Deleted.",nonEmailBugsEmailField:"bugs.email field must be a string email. Deleted.",emptyNormalizedBugs:"Normalized value of bugs field is an empty object. Deleted.",nonUrlHomepage:"homepage field must be a string url. Deleted.",invalidLicense:"license should be a valid SPDX license expression",typo:"%s should probably be %s."}});var Nt=P((qs,Dt)=>{var At=require("util"),fe=Pt();Dt.exports=function(){var t=Array.prototype.slice.call(arguments,0),e=t.shift();if(e==="typo")return Ki.apply(null,t);var i=fe[e]?fe[e]:e+": '%s'";return t.unshift(i),At.format.apply(null,t)};function Ki(t,e,i){return i&&(t=i+"['"+t+"']",e=i+"['"+e+"']"),At.format(fe.typo,t,e)}n(Ki,"makeTypoWarning")});var bt=P((Ks,Ot)=>{Ot.exports=yt;var pe=Ct();yt.fixer=pe;var Zi=Nt(),Ji=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],Qi=["dependencies","people","typos"],Le=Ji.map(function(t){return It(t)+"Field"});Le=Le.concat(Qi);function yt(t,e,i){e===!0&&(e=null,i=!0),i||(i=!1),(!e||t.private)&&(e=n(function(){},"warn")),t.scripts&&t.scripts.install==="node-gyp rebuild"&&!t.scripts.preinstall&&(t.gypfile=!0),pe.warn=function(){e(Zi.apply(null,arguments))},Le.forEach(function(s){pe["fix"+It(s)](t,i)}),t._id=t.name+"@"+t.version}n(yt,"normalize");function It(t){return t.charAt(0).toUpperCase()+t.slice(1)}n(It,"ucFirst")});module.exports=bt();