nitro-nightly 4.0.0-20251030-091344-d4418b98 → 4.0.0-20251030-122334-09c1a7a8

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 (334) hide show
  1. package/dist/_build/common.mjs +763 -0
  2. package/dist/_build/rolldown.mjs +216 -0
  3. package/dist/_build/rollup.mjs +359 -0
  4. package/dist/_build/vite.build.mjs +67 -0
  5. package/dist/_build/vite.plugin.mjs +762 -0
  6. package/dist/_chunks/B-7HiF0V.mjs +1303 -0
  7. package/dist/_chunks/B3asVbT4.mjs +151 -0
  8. package/dist/_chunks/B5ooyfLk.mjs +372 -0
  9. package/dist/_chunks/DXMHy5ca.mjs +43 -0
  10. package/dist/_dev.d.mts +12 -0
  11. package/dist/_dev.mjs +675 -0
  12. package/dist/_libs/acorn.mjs +5034 -0
  13. package/dist/_libs/c12.mjs +2798 -0
  14. package/dist/_libs/chokidar.mjs +1560 -0
  15. package/dist/_libs/citty.mjs +333 -0
  16. package/dist/_libs/commondir.mjs +22 -0
  17. package/dist/_libs/compatx.mjs +46 -0
  18. package/dist/_libs/confbox.mjs +2920 -0
  19. package/dist/_libs/debug.mjs +848 -0
  20. package/dist/_libs/deepmerge.mjs +86 -0
  21. package/dist/_libs/depd.mjs +314 -0
  22. package/dist/_libs/dot-prop.mjs +138 -0
  23. package/dist/_libs/duplexer.mjs +71 -0
  24. package/dist/_libs/ee-first.mjs +68 -0
  25. package/dist/_libs/encodeurl.mjs +49 -0
  26. package/dist/_libs/escape-html.mjs +58 -0
  27. package/dist/_libs/escape-string-regexp.mjs +8 -0
  28. package/dist/_libs/estree-walker.mjs +330 -0
  29. package/dist/_libs/etag.mjs +75 -0
  30. package/dist/{_chunks/_deps → _libs}/fdir.mjs +49 -104
  31. package/dist/_libs/fresh.mjs +85 -0
  32. package/dist/_libs/function-bind.mjs +63 -0
  33. package/dist/_libs/gen-mapping.mjs +612 -0
  34. package/dist/_libs/giget.mjs +19076 -0
  35. package/dist/_libs/gzip-size.mjs +21 -0
  36. package/dist/_libs/hasown.mjs +14 -0
  37. package/dist/_libs/http-errors.mjs +436 -0
  38. package/dist/_libs/httpxy.mjs +410 -0
  39. package/dist/_libs/is-core-module.mjs +220 -0
  40. package/dist/_libs/is-module.mjs +13 -0
  41. package/dist/_libs/is-reference.mjs +32 -0
  42. package/dist/{_chunks/_deps → _libs}/js-tokens.mjs +83 -112
  43. package/dist/_libs/klona.mjs +90 -0
  44. package/dist/_libs/knitwork.mjs +124 -0
  45. package/dist/_libs/local-pkg.mjs +1686 -0
  46. package/dist/{_chunks/_deps → _libs}/magic-string.mjs +272 -629
  47. package/dist/_libs/mime-db.mjs +7642 -0
  48. package/dist/_libs/mime-types.mjs +162 -0
  49. package/dist/_libs/mime.mjs +1391 -0
  50. package/dist/_libs/node-fetch-native.mjs +173 -0
  51. package/dist/_libs/on-finished.mjs +170 -0
  52. package/dist/_libs/parseurl.mjs +103 -0
  53. package/dist/_libs/path-parse.mjs +47 -0
  54. package/dist/_libs/pathe.mjs +41 -0
  55. package/dist/_libs/picomatch.mjs +1673 -0
  56. package/dist/_libs/plugin-alias.mjs +64 -0
  57. package/dist/_libs/plugin-commonjs.mjs +1489 -0
  58. package/dist/_libs/plugin-inject.mjs +135 -0
  59. package/dist/_libs/plugin-json.mjs +36 -0
  60. package/dist/_libs/plugin-node-resolve.mjs +1553 -0
  61. package/dist/_libs/plugin-replace.mjs +104 -0
  62. package/dist/_libs/pretty-bytes.mjs +116 -0
  63. package/dist/_libs/range-parser.mjs +102 -0
  64. package/dist/_libs/remapping.mjs +117 -0
  65. package/dist/{_chunks/_deps → _libs}/rou3.mjs +7 -22
  66. package/dist/_libs/send.mjs +857 -0
  67. package/dist/_libs/serve-static.mjs +124 -0
  68. package/dist/_libs/std-env.mjs +158 -0
  69. package/dist/_libs/strip-literal.mjs +51 -0
  70. package/dist/{_chunks/_deps → _libs}/tinyglobby.mjs +32 -33
  71. package/dist/_libs/ultrahtml.mjs +138 -0
  72. package/dist/_libs/unimport.mjs +3520 -0
  73. package/dist/_libs/untyped.mjs +271 -0
  74. package/dist/_libs/unwasm.mjs +5825 -0
  75. package/dist/{_chunks/_deps/@pi0 → _libs}/vite-plugin-fullstack.mjs +28 -42
  76. package/dist/_presets.mjs +1723 -0
  77. package/dist/builder.d.mts +37 -35
  78. package/dist/builder.mjs +45 -117
  79. package/dist/cli/_chunks/build.mjs +43 -0
  80. package/dist/cli/_chunks/common.mjs +15 -0
  81. package/dist/cli/_chunks/detect-acorn.mjs +12 -0
  82. package/dist/cli/_chunks/dev.mjs +79 -0
  83. package/dist/cli/_chunks/dist.mjs +3 -0
  84. package/dist/cli/_chunks/dist2.mjs +4 -0
  85. package/dist/cli/_chunks/esm.mjs +3 -0
  86. package/dist/cli/_chunks/json5.mjs +4 -0
  87. package/dist/cli/_chunks/jsonc.mjs +4 -0
  88. package/dist/cli/_chunks/list.mjs +27 -0
  89. package/dist/cli/_chunks/multipart-parser.mjs +6 -0
  90. package/dist/cli/_chunks/prepare.mjs +19 -0
  91. package/dist/cli/_chunks/run.mjs +55 -0
  92. package/dist/cli/_chunks/task.mjs +16 -0
  93. package/dist/cli/_chunks/toml.mjs +4 -0
  94. package/dist/cli/_chunks/yaml.mjs +4 -0
  95. package/dist/cli/index.d.mts +1 -1
  96. package/dist/cli/index.mjs +19 -18
  97. package/dist/presets/_nitro/runtime/nitro-dev.d.mts +1 -0
  98. package/dist/presets/_nitro/runtime/nitro-dev.mjs +42 -33
  99. package/dist/presets/_nitro/runtime/nitro-prerenderer.d.mts +2 -2
  100. package/dist/presets/_nitro/runtime/nitro-prerenderer.mjs +4 -8
  101. package/dist/presets/_nitro/runtime/service-worker.d.mts +1 -0
  102. package/dist/presets/_nitro/runtime/service-worker.mjs +14 -11
  103. package/dist/presets/aws-amplify/runtime/aws-amplify.d.mts +1 -0
  104. package/dist/presets/aws-amplify/runtime/aws-amplify.mjs +6 -5
  105. package/dist/presets/aws-lambda/runtime/_utils.d.mts +8 -13
  106. package/dist/presets/aws-lambda/runtime/_utils.mjs +95 -81
  107. package/dist/presets/aws-lambda/runtime/aws-lambda-streaming.d.mts +1 -2
  108. package/dist/presets/aws-lambda/runtime/aws-lambda-streaming.mjs +25 -27
  109. package/dist/presets/aws-lambda/runtime/aws-lambda.mjs +7 -7
  110. package/dist/presets/azure/runtime/_utils.mjs +43 -43
  111. package/dist/presets/azure/runtime/azure-swa.d.mts +2 -2
  112. package/dist/presets/azure/runtime/azure-swa.mjs +22 -21
  113. package/dist/presets/bun/runtime/bun.d.mts +1 -0
  114. package/dist/presets/bun/runtime/bun.mjs +18 -17
  115. package/dist/presets/cloudflare/runtime/_module-handler.d.mts +10 -7
  116. package/dist/presets/cloudflare/runtime/_module-handler.mjs +78 -87
  117. package/dist/presets/cloudflare/runtime/cloudflare-durable.d.mts +6 -14
  118. package/dist/presets/cloudflare/runtime/cloudflare-durable.mjs +53 -58
  119. package/dist/presets/cloudflare/runtime/cloudflare-module.d.mts +1 -7
  120. package/dist/presets/cloudflare/runtime/cloudflare-module.mjs +12 -14
  121. package/dist/presets/cloudflare/runtime/cloudflare-pages.d.mts +12 -12
  122. package/dist/presets/cloudflare/runtime/cloudflare-pages.mjs +35 -39
  123. package/dist/presets/cloudflare/runtime/plugin.dev.d.mts +2 -2
  124. package/dist/presets/cloudflare/runtime/plugin.dev.mjs +86 -76
  125. package/dist/presets/deno/runtime/deno-deploy.d.mts +1 -0
  126. package/dist/presets/deno/runtime/deno-deploy.mjs +12 -11
  127. package/dist/presets/deno/runtime/deno-server.d.mts +2 -1
  128. package/dist/presets/deno/runtime/deno-server.mjs +31 -39
  129. package/dist/presets/netlify/runtime/netlify-edge.d.mts +2 -1
  130. package/dist/presets/netlify/runtime/netlify-edge.mjs +14 -11
  131. package/dist/presets/netlify/runtime/netlify.mjs +11 -17
  132. package/dist/presets/node/runtime/node-cluster.mjs +49 -48
  133. package/dist/presets/node/runtime/node-middleware.d.mts +3 -2
  134. package/dist/presets/node/runtime/node-middleware.mjs +7 -6
  135. package/dist/presets/node/runtime/node-server.mjs +33 -23
  136. package/dist/presets/standard/runtime/server.d.mts +1 -3
  137. package/dist/presets/standard/runtime/server.mjs +1 -3
  138. package/dist/presets/stormkit/runtime/stormkit.d.mts +13 -13
  139. package/dist/presets/stormkit/runtime/stormkit.mjs +20 -20
  140. package/dist/presets/vercel/runtime/vercel.d.mts +3 -3
  141. package/dist/presets/vercel/runtime/vercel.mjs +15 -14
  142. package/dist/presets/winterjs/runtime/winterjs.d.mts +2 -0
  143. package/dist/presets/winterjs/runtime/winterjs.mjs +72 -68
  144. package/dist/presets/zeabur/runtime/zeabur.d.mts +1 -1
  145. package/dist/runtime/index.d.mts +12 -1
  146. package/dist/runtime/index.mjs +12 -7
  147. package/dist/runtime/internal/app.mjs +175 -162
  148. package/dist/runtime/internal/cache.d.mts +10 -4
  149. package/dist/runtime/internal/cache.mjs +247 -216
  150. package/dist/runtime/internal/context.d.mts +9 -9
  151. package/dist/runtime/internal/context.mjs +17 -10
  152. package/dist/runtime/internal/database.mjs +8 -10
  153. package/dist/runtime/internal/error/dev.d.mts +5 -4
  154. package/dist/runtime/internal/error/dev.mjs +106 -105
  155. package/dist/runtime/internal/error/prod.d.mts +2 -2
  156. package/dist/runtime/internal/error/prod.mjs +48 -52
  157. package/dist/runtime/internal/error/utils.d.mts +4 -4
  158. package/dist/runtime/internal/error/utils.mjs +1 -1
  159. package/dist/runtime/internal/index.d.mts +2 -0
  160. package/dist/runtime/internal/index.mjs +2 -0
  161. package/dist/runtime/internal/lib/http-graceful-shutdown.d.mts +14 -14
  162. package/dist/runtime/internal/lib/http-graceful-shutdown.mjs +248 -209
  163. package/dist/runtime/internal/meta.d.mts +1 -1
  164. package/dist/runtime/internal/meta.mjs +1 -1
  165. package/dist/runtime/internal/plugin.d.mts +2 -2
  166. package/dist/runtime/internal/plugin.mjs +1 -1
  167. package/dist/runtime/internal/renderer.mjs +39 -31
  168. package/dist/runtime/internal/route-rules.d.mts +8 -8
  169. package/dist/runtime/internal/route-rules.mjs +53 -51
  170. package/dist/runtime/internal/routes/dev-tasks.d.mts +1 -30
  171. package/dist/runtime/internal/routes/dev-tasks.mjs +15 -17
  172. package/dist/runtime/internal/routes/openapi.d.mts +1 -0
  173. package/dist/runtime/internal/routes/openapi.mjs +81 -87
  174. package/dist/runtime/internal/routes/renderer-template.d.mts +1 -1
  175. package/dist/runtime/internal/routes/renderer-template.dev.d.mts +1 -2
  176. package/dist/runtime/internal/routes/renderer-template.dev.mjs +10 -17
  177. package/dist/runtime/internal/routes/renderer-template.mjs +1 -1
  178. package/dist/runtime/internal/routes/scalar.d.mts +1 -0
  179. package/dist/runtime/internal/routes/scalar.mjs +22 -23
  180. package/dist/runtime/internal/routes/swagger.d.mts +1 -0
  181. package/dist/runtime/internal/routes/swagger.mjs +9 -11
  182. package/dist/runtime/internal/runtime-config.d.mts +4 -4
  183. package/dist/runtime/internal/runtime-config.mjs +40 -35
  184. package/dist/runtime/internal/shutdown.d.mts +2 -7
  185. package/dist/runtime/internal/shutdown.mjs +30 -29
  186. package/dist/runtime/internal/static.mjs +63 -74
  187. package/dist/runtime/internal/storage.mjs +2 -2
  188. package/dist/runtime/internal/task.d.mts +6 -6
  189. package/dist/runtime/internal/task.mjs +56 -59
  190. package/dist/runtime/internal/utils.d.mts +1 -1
  191. package/dist/runtime/internal/utils.mjs +4 -10
  192. package/dist/types/index.d.mts +2566 -3851
  193. package/dist/types/index.mjs +1 -1
  194. package/dist/vite.d.mts +61 -51
  195. package/dist/vite.mjs +55 -132
  196. package/package.json +10 -10
  197. package/dist/_build/build.mjs +0 -368
  198. package/dist/_build/build2.mjs +0 -556
  199. package/dist/_build/info.mjs +0 -1002
  200. package/dist/_build/prepare.mjs +0 -1511
  201. package/dist/_build/snapshot.mjs +0 -185
  202. package/dist/_build/vite.mjs +0 -959
  203. package/dist/_build/vite2.mjs +0 -149
  204. package/dist/_chunks/_deps/@jridgewell/gen-mapping.mjs +0 -189
  205. package/dist/_chunks/_deps/@jridgewell/remapping.mjs +0 -137
  206. package/dist/_chunks/_deps/@jridgewell/resolve-uri.mjs +0 -231
  207. package/dist/_chunks/_deps/@jridgewell/sourcemap-codec.mjs +0 -173
  208. package/dist/_chunks/_deps/@jridgewell/trace-mapping.mjs +0 -170
  209. package/dist/_chunks/_deps/@rollup/plugin-alias.mjs +0 -89
  210. package/dist/_chunks/_deps/@rollup/plugin-commonjs.mjs +0 -2376
  211. package/dist/_chunks/_deps/@rollup/plugin-inject.mjs +0 -212
  212. package/dist/_chunks/_deps/@rollup/plugin-json.mjs +0 -37
  213. package/dist/_chunks/_deps/@rollup/plugin-node-resolve.mjs +0 -1386
  214. package/dist/_chunks/_deps/@rollup/plugin-replace.mjs +0 -133
  215. package/dist/_chunks/_deps/@rollup/pluginutils.mjs +0 -346
  216. package/dist/_chunks/_deps/acorn.mjs +0 -6225
  217. package/dist/_chunks/_deps/c12.mjs +0 -510
  218. package/dist/_chunks/_deps/chokidar.mjs +0 -1428
  219. package/dist/_chunks/_deps/citty.mjs +0 -460
  220. package/dist/_chunks/_deps/commondir.mjs +0 -77
  221. package/dist/_chunks/_deps/compatx.mjs +0 -76
  222. package/dist/_chunks/_deps/confbox.mjs +0 -300
  223. package/dist/_chunks/_deps/debug.mjs +0 -885
  224. package/dist/_chunks/_deps/deepmerge.mjs +0 -147
  225. package/dist/_chunks/_deps/depd.mjs +0 -550
  226. package/dist/_chunks/_deps/dot-prop.mjs +0 -282
  227. package/dist/_chunks/_deps/dotenv.mjs +0 -555
  228. package/dist/_chunks/_deps/duplexer.mjs +0 -1
  229. package/dist/_chunks/_deps/ee-first.mjs +0 -104
  230. package/dist/_chunks/_deps/encodeurl.mjs +0 -69
  231. package/dist/_chunks/_deps/escape-html.mjs +0 -87
  232. package/dist/_chunks/_deps/escape-string-regexp.mjs +0 -13
  233. package/dist/_chunks/_deps/estree-walker.mjs +0 -433
  234. package/dist/_chunks/_deps/etag.mjs +0 -147
  235. package/dist/_chunks/_deps/exsolve.mjs +0 -1416
  236. package/dist/_chunks/_deps/fresh.mjs +0 -145
  237. package/dist/_chunks/_deps/function-bind.mjs +0 -106
  238. package/dist/_chunks/_deps/giget.mjs +0 -451
  239. package/dist/_chunks/_deps/gzip-size.mjs +0 -19
  240. package/dist/_chunks/_deps/hasown.mjs +0 -19
  241. package/dist/_chunks/_deps/http-errors.mjs +0 -307
  242. package/dist/_chunks/_deps/httpxy.mjs +0 -580
  243. package/dist/_chunks/_deps/inherits.mjs +0 -57
  244. package/dist/_chunks/_deps/is-core-module.mjs +0 -596
  245. package/dist/_chunks/_deps/is-module.mjs +0 -25
  246. package/dist/_chunks/_deps/is-reference.mjs +0 -31
  247. package/dist/_chunks/_deps/klona.mjs +0 -137
  248. package/dist/_chunks/_deps/knitwork.mjs +0 -172
  249. package/dist/_chunks/_deps/local-pkg.mjs +0 -163
  250. package/dist/_chunks/_deps/mime-db.mjs +0 -11685
  251. package/dist/_chunks/_deps/mime-types.mjs +0 -287
  252. package/dist/_chunks/_deps/mime.mjs +0 -1172
  253. package/dist/_chunks/_deps/mlly.mjs +0 -2413
  254. package/dist/_chunks/_deps/ms.mjs +0 -172
  255. package/dist/_chunks/_deps/node-fetch-native.mjs +0 -3
  256. package/dist/_chunks/_deps/nypm.mjs +0 -219
  257. package/dist/_chunks/_deps/on-finished.mjs +0 -246
  258. package/dist/_chunks/_deps/parseurl.mjs +0 -168
  259. package/dist/_chunks/_deps/path-parse.mjs +0 -85
  260. package/dist/_chunks/_deps/pathe.mjs +0 -251
  261. package/dist/_chunks/_deps/perfect-debounce.mjs +0 -88
  262. package/dist/_chunks/_deps/picomatch.mjs +0 -2144
  263. package/dist/_chunks/_deps/pkg-types.mjs +0 -247
  264. package/dist/_chunks/_deps/pretty-bytes.mjs +0 -180
  265. package/dist/_chunks/_deps/quansync.mjs +0 -99
  266. package/dist/_chunks/_deps/range-parser.mjs +0 -171
  267. package/dist/_chunks/_deps/rc9.mjs +0 -219
  268. package/dist/_chunks/_deps/readdirp.mjs +0 -245
  269. package/dist/_chunks/_deps/resolve.mjs +0 -1260
  270. package/dist/_chunks/_deps/send.mjs +0 -1022
  271. package/dist/_chunks/_deps/serve-static.mjs +0 -228
  272. package/dist/_chunks/_deps/setprototypeof.mjs +0 -26
  273. package/dist/_chunks/_deps/statuses.mjs +0 -457
  274. package/dist/_chunks/_deps/std-env.mjs +0 -3
  275. package/dist/_chunks/_deps/strip-literal.mjs +0 -67
  276. package/dist/_chunks/_deps/supports-color.mjs +0 -44
  277. package/dist/_chunks/_deps/tinyexec.mjs +0 -552
  278. package/dist/_chunks/_deps/toidentifier.mjs +0 -41
  279. package/dist/_chunks/_deps/ultrahtml.mjs +0 -3
  280. package/dist/_chunks/_deps/unimport.mjs +0 -2267
  281. package/dist/_chunks/_deps/unplugin-utils.mjs +0 -65
  282. package/dist/_chunks/_deps/unplugin.mjs +0 -1294
  283. package/dist/_chunks/_deps/untyped.mjs +0 -375
  284. package/dist/_chunks/_deps/unwasm.mjs +0 -6959
  285. package/dist/_chunks/_deps/webpack-virtual-modules.mjs +0 -360
  286. package/dist/_chunks/_presets/_all.mjs +0 -59
  287. package/dist/_chunks/_presets/_nitro.mjs +0 -74
  288. package/dist/_chunks/_presets/_resolve.mjs +0 -64
  289. package/dist/_chunks/_presets/_static.mjs +0 -69
  290. package/dist/_chunks/_presets/_types.mjs +0 -3
  291. package/dist/_chunks/_presets/_utils.mjs +0 -31
  292. package/dist/_chunks/_presets/alwaysdata.mjs +0 -17
  293. package/dist/_chunks/_presets/aws-amplify.mjs +0 -111
  294. package/dist/_chunks/_presets/aws-lambda.mjs +0 -23
  295. package/dist/_chunks/_presets/azure.mjs +0 -162
  296. package/dist/_chunks/_presets/bun.mjs +0 -19
  297. package/dist/_chunks/_presets/cleavr.mjs +0 -15
  298. package/dist/_chunks/_presets/cloudflare.mjs +0 -608
  299. package/dist/_chunks/_presets/deno.mjs +0 -196
  300. package/dist/_chunks/_presets/digitalocean.mjs +0 -14
  301. package/dist/_chunks/_presets/firebase.mjs +0 -47
  302. package/dist/_chunks/_presets/flightcontrol.mjs +0 -14
  303. package/dist/_chunks/_presets/genezio.mjs +0 -13
  304. package/dist/_chunks/_presets/heroku.mjs +0 -14
  305. package/dist/_chunks/_presets/iis.mjs +0 -194
  306. package/dist/_chunks/_presets/index.mjs +0 -62
  307. package/dist/_chunks/_presets/koyeb.mjs +0 -14
  308. package/dist/_chunks/_presets/netlify.mjs +0 -241
  309. package/dist/_chunks/_presets/node.mjs +0 -54
  310. package/dist/_chunks/_presets/platform.mjs +0 -14
  311. package/dist/_chunks/_presets/render.mjs +0 -14
  312. package/dist/_chunks/_presets/standard.mjs +0 -23
  313. package/dist/_chunks/_presets/stormkit.mjs +0 -18
  314. package/dist/_chunks/_presets/vercel.mjs +0 -375
  315. package/dist/_chunks/_presets/winterjs.mjs +0 -22
  316. package/dist/_chunks/_presets/zeabur.mjs +0 -69
  317. package/dist/_chunks/_presets/zerops.mjs +0 -27
  318. package/dist/_chunks/app.mjs +0 -600
  319. package/dist/_chunks/builder.mjs +0 -648
  320. package/dist/_chunks/server.mjs +0 -256
  321. package/dist/_cli/build.mjs +0 -49
  322. package/dist/_cli/common.mjs +0 -13
  323. package/dist/_cli/dev.mjs +0 -121
  324. package/dist/_cli/index.mjs +0 -16
  325. package/dist/_cli/list.mjs +0 -33
  326. package/dist/_cli/prepare.mjs +0 -23
  327. package/dist/_cli/run.mjs +0 -59
  328. package/dist/presets/cloudflare/runtime/shims/workers.dev.d.mts +0 -21
  329. package/dist/runtime/internal/empty.d.mts +0 -0
  330. package/dist/runtime/internal/vite/dev-entry.d.mts +0 -1
  331. package/dist/runtime/internal/vite/dev-worker.d.mts +0 -1
  332. package/dist/runtime/internal/vite/prod-setup.d.mts +0 -4
  333. package/dist/runtime/internal/vite/ssr-renderer.d.mts +0 -4
  334. /package/lib/{indexd.mts → index.d.mts} +0 -0
@@ -0,0 +1,848 @@
1
+ import { a as __toCommonJS, i as __require, n as __esm, r as __export, t as __commonJS } from "../_chunks/DXMHy5ca.mjs";
2
+ import process$1 from "node:process";
3
+ import os from "node:os";
4
+ import tty from "node:tty";
5
+
6
+ //#region node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js
7
+ var require_ms = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js": ((exports, module) => {
8
+ /**
9
+ * Helpers.
10
+ */
11
+ var s = 1e3;
12
+ var m = s * 60;
13
+ var h = m * 60;
14
+ var d = h * 24;
15
+ var w = d * 7;
16
+ var y = d * 365.25;
17
+ /**
18
+ * Parse or format the given `val`.
19
+ *
20
+ * Options:
21
+ *
22
+ * - `long` verbose formatting [false]
23
+ *
24
+ * @param {String|Number} val
25
+ * @param {Object} [options]
26
+ * @throws {Error} throw an error if val is not a non-empty string or a number
27
+ * @return {String|Number}
28
+ * @api public
29
+ */
30
+ module.exports = function(val, options) {
31
+ options = options || {};
32
+ var type = typeof val;
33
+ if (type === "string" && val.length > 0) return parse(val);
34
+ else if (type === "number" && isFinite(val)) return options.long ? fmtLong(val) : fmtShort(val);
35
+ throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val));
36
+ };
37
+ /**
38
+ * Parse the given `str` and return milliseconds.
39
+ *
40
+ * @param {String} str
41
+ * @return {Number}
42
+ * @api private
43
+ */
44
+ function parse(str) {
45
+ str = String(str);
46
+ if (str.length > 100) return;
47
+ var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(str);
48
+ if (!match) return;
49
+ var n = parseFloat(match[1]);
50
+ switch ((match[2] || "ms").toLowerCase()) {
51
+ case "years":
52
+ case "year":
53
+ case "yrs":
54
+ case "yr":
55
+ case "y": return n * y;
56
+ case "weeks":
57
+ case "week":
58
+ case "w": return n * w;
59
+ case "days":
60
+ case "day":
61
+ case "d": return n * d;
62
+ case "hours":
63
+ case "hour":
64
+ case "hrs":
65
+ case "hr":
66
+ case "h": return n * h;
67
+ case "minutes":
68
+ case "minute":
69
+ case "mins":
70
+ case "min":
71
+ case "m": return n * m;
72
+ case "seconds":
73
+ case "second":
74
+ case "secs":
75
+ case "sec":
76
+ case "s": return n * s;
77
+ case "milliseconds":
78
+ case "millisecond":
79
+ case "msecs":
80
+ case "msec":
81
+ case "ms": return n;
82
+ default: return;
83
+ }
84
+ }
85
+ /**
86
+ * Short format for `ms`.
87
+ *
88
+ * @param {Number} ms
89
+ * @return {String}
90
+ * @api private
91
+ */
92
+ function fmtShort(ms) {
93
+ var msAbs = Math.abs(ms);
94
+ if (msAbs >= d) return Math.round(ms / d) + "d";
95
+ if (msAbs >= h) return Math.round(ms / h) + "h";
96
+ if (msAbs >= m) return Math.round(ms / m) + "m";
97
+ if (msAbs >= s) return Math.round(ms / s) + "s";
98
+ return ms + "ms";
99
+ }
100
+ /**
101
+ * Long format for `ms`.
102
+ *
103
+ * @param {Number} ms
104
+ * @return {String}
105
+ * @api private
106
+ */
107
+ function fmtLong(ms) {
108
+ var msAbs = Math.abs(ms);
109
+ if (msAbs >= d) return plural(ms, msAbs, d, "day");
110
+ if (msAbs >= h) return plural(ms, msAbs, h, "hour");
111
+ if (msAbs >= m) return plural(ms, msAbs, m, "minute");
112
+ if (msAbs >= s) return plural(ms, msAbs, s, "second");
113
+ return ms + " ms";
114
+ }
115
+ /**
116
+ * Pluralization helper.
117
+ */
118
+ function plural(ms, msAbs, n, name) {
119
+ var isPlural = msAbs >= n * 1.5;
120
+ return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
121
+ }
122
+ }) });
123
+
124
+ //#endregion
125
+ //#region node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js
126
+ var require_common = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.js": ((exports, module) => {
127
+ /**
128
+ * This is the common logic for both the Node.js and web browser
129
+ * implementations of `debug()`.
130
+ */
131
+ function setup(env$1) {
132
+ createDebug.debug = createDebug;
133
+ createDebug.default = createDebug;
134
+ createDebug.coerce = coerce;
135
+ createDebug.disable = disable;
136
+ createDebug.enable = enable;
137
+ createDebug.enabled = enabled;
138
+ createDebug.humanize = require_ms();
139
+ createDebug.destroy = destroy;
140
+ Object.keys(env$1).forEach((key) => {
141
+ createDebug[key] = env$1[key];
142
+ });
143
+ /**
144
+ * The currently active debug mode names, and names to skip.
145
+ */
146
+ createDebug.names = [];
147
+ createDebug.skips = [];
148
+ /**
149
+ * Map of special "%n" handling functions, for the debug "format" argument.
150
+ *
151
+ * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
152
+ */
153
+ createDebug.formatters = {};
154
+ /**
155
+ * Selects a color for a debug namespace
156
+ * @param {String} namespace The namespace string for the debug instance to be colored
157
+ * @return {Number|String} An ANSI color code for the given namespace
158
+ * @api private
159
+ */
160
+ function selectColor(namespace) {
161
+ let hash = 0;
162
+ for (let i = 0; i < namespace.length; i++) {
163
+ hash = (hash << 5) - hash + namespace.charCodeAt(i);
164
+ hash |= 0;
165
+ }
166
+ return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
167
+ }
168
+ createDebug.selectColor = selectColor;
169
+ /**
170
+ * Create a debugger with the given `namespace`.
171
+ *
172
+ * @param {String} namespace
173
+ * @return {Function}
174
+ * @api public
175
+ */
176
+ function createDebug(namespace) {
177
+ let prevTime;
178
+ let enableOverride = null;
179
+ let namespacesCache;
180
+ let enabledCache;
181
+ function debug(...args) {
182
+ if (!debug.enabled) return;
183
+ const self = debug;
184
+ const curr = Number(/* @__PURE__ */ new Date());
185
+ self.diff = curr - (prevTime || curr);
186
+ self.prev = prevTime;
187
+ self.curr = curr;
188
+ prevTime = curr;
189
+ args[0] = createDebug.coerce(args[0]);
190
+ if (typeof args[0] !== "string") args.unshift("%O");
191
+ let index = 0;
192
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
193
+ if (match === "%%") return "%";
194
+ index++;
195
+ const formatter = createDebug.formatters[format];
196
+ if (typeof formatter === "function") {
197
+ const val = args[index];
198
+ match = formatter.call(self, val);
199
+ args.splice(index, 1);
200
+ index--;
201
+ }
202
+ return match;
203
+ });
204
+ createDebug.formatArgs.call(self, args);
205
+ (self.log || createDebug.log).apply(self, args);
206
+ }
207
+ debug.namespace = namespace;
208
+ debug.useColors = createDebug.useColors();
209
+ debug.color = createDebug.selectColor(namespace);
210
+ debug.extend = extend;
211
+ debug.destroy = createDebug.destroy;
212
+ Object.defineProperty(debug, "enabled", {
213
+ enumerable: true,
214
+ configurable: false,
215
+ get: () => {
216
+ if (enableOverride !== null) return enableOverride;
217
+ if (namespacesCache !== createDebug.namespaces) {
218
+ namespacesCache = createDebug.namespaces;
219
+ enabledCache = createDebug.enabled(namespace);
220
+ }
221
+ return enabledCache;
222
+ },
223
+ set: (v) => {
224
+ enableOverride = v;
225
+ }
226
+ });
227
+ if (typeof createDebug.init === "function") createDebug.init(debug);
228
+ return debug;
229
+ }
230
+ function extend(namespace, delimiter) {
231
+ const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
232
+ newDebug.log = this.log;
233
+ return newDebug;
234
+ }
235
+ /**
236
+ * Enables a debug mode by namespaces. This can include modes
237
+ * separated by a colon and wildcards.
238
+ *
239
+ * @param {String} namespaces
240
+ * @api public
241
+ */
242
+ function enable(namespaces) {
243
+ createDebug.save(namespaces);
244
+ createDebug.namespaces = namespaces;
245
+ createDebug.names = [];
246
+ createDebug.skips = [];
247
+ const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
248
+ for (const ns of split) if (ns[0] === "-") createDebug.skips.push(ns.slice(1));
249
+ else createDebug.names.push(ns);
250
+ }
251
+ /**
252
+ * Checks if the given string matches a namespace template, honoring
253
+ * asterisks as wildcards.
254
+ *
255
+ * @param {String} search
256
+ * @param {String} template
257
+ * @return {Boolean}
258
+ */
259
+ function matchesTemplate(search, template) {
260
+ let searchIndex = 0;
261
+ let templateIndex = 0;
262
+ let starIndex = -1;
263
+ let matchIndex = 0;
264
+ while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) if (template[templateIndex] === "*") {
265
+ starIndex = templateIndex;
266
+ matchIndex = searchIndex;
267
+ templateIndex++;
268
+ } else {
269
+ searchIndex++;
270
+ templateIndex++;
271
+ }
272
+ else if (starIndex !== -1) {
273
+ templateIndex = starIndex + 1;
274
+ matchIndex++;
275
+ searchIndex = matchIndex;
276
+ } else return false;
277
+ while (templateIndex < template.length && template[templateIndex] === "*") templateIndex++;
278
+ return templateIndex === template.length;
279
+ }
280
+ /**
281
+ * Disable debug output.
282
+ *
283
+ * @return {String} namespaces
284
+ * @api public
285
+ */
286
+ function disable() {
287
+ const namespaces = [...createDebug.names, ...createDebug.skips.map((namespace) => "-" + namespace)].join(",");
288
+ createDebug.enable("");
289
+ return namespaces;
290
+ }
291
+ /**
292
+ * Returns true if the given mode name is enabled, false otherwise.
293
+ *
294
+ * @param {String} name
295
+ * @return {Boolean}
296
+ * @api public
297
+ */
298
+ function enabled(name) {
299
+ for (const skip of createDebug.skips) if (matchesTemplate(name, skip)) return false;
300
+ for (const ns of createDebug.names) if (matchesTemplate(name, ns)) return true;
301
+ return false;
302
+ }
303
+ /**
304
+ * Coerce `val`.
305
+ *
306
+ * @param {Mixed} val
307
+ * @return {Mixed}
308
+ * @api private
309
+ */
310
+ function coerce(val) {
311
+ if (val instanceof Error) return val.stack || val.message;
312
+ return val;
313
+ }
314
+ /**
315
+ * XXX DO NOT USE. This is a temporary stub function.
316
+ * XXX It WILL be removed in the next major release.
317
+ */
318
+ function destroy() {
319
+ console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
320
+ }
321
+ createDebug.enable(createDebug.load());
322
+ return createDebug;
323
+ }
324
+ module.exports = setup;
325
+ }) });
326
+
327
+ //#endregion
328
+ //#region node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js
329
+ var require_browser = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.js": ((exports, module) => {
330
+ /**
331
+ * This is the web browser implementation of `debug()`.
332
+ */
333
+ exports.formatArgs = formatArgs$1;
334
+ exports.save = save$1;
335
+ exports.load = load$1;
336
+ exports.useColors = useColors$1;
337
+ exports.storage = localstorage();
338
+ exports.destroy = (() => {
339
+ let warned = false;
340
+ return () => {
341
+ if (!warned) {
342
+ warned = true;
343
+ console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
344
+ }
345
+ };
346
+ })();
347
+ /**
348
+ * Colors.
349
+ */
350
+ exports.colors = [
351
+ "#0000CC",
352
+ "#0000FF",
353
+ "#0033CC",
354
+ "#0033FF",
355
+ "#0066CC",
356
+ "#0066FF",
357
+ "#0099CC",
358
+ "#0099FF",
359
+ "#00CC00",
360
+ "#00CC33",
361
+ "#00CC66",
362
+ "#00CC99",
363
+ "#00CCCC",
364
+ "#00CCFF",
365
+ "#3300CC",
366
+ "#3300FF",
367
+ "#3333CC",
368
+ "#3333FF",
369
+ "#3366CC",
370
+ "#3366FF",
371
+ "#3399CC",
372
+ "#3399FF",
373
+ "#33CC00",
374
+ "#33CC33",
375
+ "#33CC66",
376
+ "#33CC99",
377
+ "#33CCCC",
378
+ "#33CCFF",
379
+ "#6600CC",
380
+ "#6600FF",
381
+ "#6633CC",
382
+ "#6633FF",
383
+ "#66CC00",
384
+ "#66CC33",
385
+ "#9900CC",
386
+ "#9900FF",
387
+ "#9933CC",
388
+ "#9933FF",
389
+ "#99CC00",
390
+ "#99CC33",
391
+ "#CC0000",
392
+ "#CC0033",
393
+ "#CC0066",
394
+ "#CC0099",
395
+ "#CC00CC",
396
+ "#CC00FF",
397
+ "#CC3300",
398
+ "#CC3333",
399
+ "#CC3366",
400
+ "#CC3399",
401
+ "#CC33CC",
402
+ "#CC33FF",
403
+ "#CC6600",
404
+ "#CC6633",
405
+ "#CC9900",
406
+ "#CC9933",
407
+ "#CCCC00",
408
+ "#CCCC33",
409
+ "#FF0000",
410
+ "#FF0033",
411
+ "#FF0066",
412
+ "#FF0099",
413
+ "#FF00CC",
414
+ "#FF00FF",
415
+ "#FF3300",
416
+ "#FF3333",
417
+ "#FF3366",
418
+ "#FF3399",
419
+ "#FF33CC",
420
+ "#FF33FF",
421
+ "#FF6600",
422
+ "#FF6633",
423
+ "#FF9900",
424
+ "#FF9933",
425
+ "#FFCC00",
426
+ "#FFCC33"
427
+ ];
428
+ /**
429
+ * Currently only WebKit-based Web Inspectors, Firefox >= v31,
430
+ * and the Firebug extension (any Firefox version) are known
431
+ * to support "%c" CSS customizations.
432
+ *
433
+ * TODO: add a `localStorage` variable to explicitly enable/disable colors
434
+ */
435
+ function useColors$1() {
436
+ if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) return true;
437
+ if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) return false;
438
+ let m$1;
439
+ return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== "undefined" && navigator.userAgent && (m$1 = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m$1[1], 10) >= 31 || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
440
+ }
441
+ /**
442
+ * Colorize log arguments if enabled.
443
+ *
444
+ * @api public
445
+ */
446
+ function formatArgs$1(args) {
447
+ args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
448
+ if (!this.useColors) return;
449
+ const c = "color: " + this.color;
450
+ args.splice(1, 0, c, "color: inherit");
451
+ let index = 0;
452
+ let lastC = 0;
453
+ args[0].replace(/%[a-zA-Z%]/g, (match) => {
454
+ if (match === "%%") return;
455
+ index++;
456
+ if (match === "%c") lastC = index;
457
+ });
458
+ args.splice(lastC, 0, c);
459
+ }
460
+ /**
461
+ * Invokes `console.debug()` when available.
462
+ * No-op when `console.debug` is not a "function".
463
+ * If `console.debug` is not available, falls back
464
+ * to `console.log`.
465
+ *
466
+ * @api public
467
+ */
468
+ exports.log = console.debug || console.log || (() => {});
469
+ /**
470
+ * Save `namespaces`.
471
+ *
472
+ * @param {String} namespaces
473
+ * @api private
474
+ */
475
+ function save$1(namespaces) {
476
+ try {
477
+ if (namespaces) exports.storage.setItem("debug", namespaces);
478
+ else exports.storage.removeItem("debug");
479
+ } catch (error) {}
480
+ }
481
+ /**
482
+ * Load `namespaces`.
483
+ *
484
+ * @return {String} returns the previously persisted debug modes
485
+ * @api private
486
+ */
487
+ function load$1() {
488
+ let r;
489
+ try {
490
+ r = exports.storage.getItem("debug") || exports.storage.getItem("DEBUG");
491
+ } catch (error) {}
492
+ if (!r && typeof process !== "undefined" && "env" in process) r = process.env.DEBUG;
493
+ return r;
494
+ }
495
+ /**
496
+ * Localstorage attempts to return the localstorage.
497
+ *
498
+ * This is necessary because safari throws
499
+ * when a user disables cookies/localstorage
500
+ * and you attempt to access it.
501
+ *
502
+ * @return {LocalStorage}
503
+ * @api private
504
+ */
505
+ function localstorage() {
506
+ try {
507
+ return localStorage;
508
+ } catch (error) {}
509
+ }
510
+ module.exports = require_common()(exports);
511
+ const { formatters: formatters$1 } = module.exports;
512
+ /**
513
+ * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
514
+ */
515
+ formatters$1.j = function(v) {
516
+ try {
517
+ return JSON.stringify(v);
518
+ } catch (error) {
519
+ return "[UnexpectedJSONParseError]: " + error.message;
520
+ }
521
+ };
522
+ }) });
523
+
524
+ //#endregion
525
+ //#region node_modules/.pnpm/supports-color@10.2.2/node_modules/supports-color/index.js
526
+ var supports_color_exports = /* @__PURE__ */ __export({
527
+ createSupportsColor: () => createSupportsColor,
528
+ default: () => supports_color_default
529
+ });
530
+ function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process$1.argv) {
531
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
532
+ const position = argv.indexOf(prefix + flag);
533
+ const terminatorPosition = argv.indexOf("--");
534
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
535
+ }
536
+ function envForceColor() {
537
+ if (!("FORCE_COLOR" in env)) return;
538
+ if (env.FORCE_COLOR === "true") return 1;
539
+ if (env.FORCE_COLOR === "false") return 0;
540
+ if (env.FORCE_COLOR.length === 0) return 1;
541
+ const level = Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
542
+ if (![
543
+ 0,
544
+ 1,
545
+ 2,
546
+ 3
547
+ ].includes(level)) return;
548
+ return level;
549
+ }
550
+ function translateLevel(level) {
551
+ if (level === 0) return false;
552
+ return {
553
+ level,
554
+ hasBasic: true,
555
+ has256: level >= 2,
556
+ has16m: level >= 3
557
+ };
558
+ }
559
+ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
560
+ const noFlagForceColor = envForceColor();
561
+ if (noFlagForceColor !== void 0) flagForceColor = noFlagForceColor;
562
+ const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
563
+ if (forceColor === 0) return 0;
564
+ if (sniffFlags) {
565
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
566
+ if (hasFlag("color=256")) return 2;
567
+ }
568
+ if ("TF_BUILD" in env && "AGENT_NAME" in env) return 1;
569
+ if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
570
+ const min = forceColor || 0;
571
+ if (env.TERM === "dumb") return min;
572
+ if (process$1.platform === "win32") {
573
+ const osRelease = os.release().split(".");
574
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
575
+ return 1;
576
+ }
577
+ if ("CI" in env) {
578
+ if ([
579
+ "GITHUB_ACTIONS",
580
+ "GITEA_ACTIONS",
581
+ "CIRCLECI"
582
+ ].some((key) => key in env)) return 3;
583
+ if ([
584
+ "TRAVIS",
585
+ "APPVEYOR",
586
+ "GITLAB_CI",
587
+ "BUILDKITE",
588
+ "DRONE"
589
+ ].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
590
+ return min;
591
+ }
592
+ if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
593
+ if (env.COLORTERM === "truecolor") return 3;
594
+ if (env.TERM === "xterm-kitty") return 3;
595
+ if (env.TERM === "xterm-ghostty") return 3;
596
+ if (env.TERM === "wezterm") return 3;
597
+ if ("TERM_PROGRAM" in env) {
598
+ const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
599
+ switch (env.TERM_PROGRAM) {
600
+ case "iTerm.app": return version >= 3 ? 3 : 2;
601
+ case "Apple_Terminal": return 2;
602
+ }
603
+ }
604
+ if (/-256(color)?$/i.test(env.TERM)) return 2;
605
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
606
+ if ("COLORTERM" in env) return 1;
607
+ return min;
608
+ }
609
+ function createSupportsColor(stream, options = {}) {
610
+ return translateLevel(_supportsColor(stream, {
611
+ streamIsTTY: stream && stream.isTTY,
612
+ ...options
613
+ }));
614
+ }
615
+ var env, flagForceColor, supportsColor, supports_color_default;
616
+ var init_supports_color = __esm({ "node_modules/.pnpm/supports-color@10.2.2/node_modules/supports-color/index.js": (() => {
617
+ ({env} = process$1);
618
+ ;
619
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
620
+ else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
621
+ supportsColor = {
622
+ stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
623
+ stderr: createSupportsColor({ isTTY: tty.isatty(2) })
624
+ };
625
+ supports_color_default = supportsColor;
626
+ }) });
627
+
628
+ //#endregion
629
+ //#region node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js
630
+ var require_node = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.js": ((exports, module) => {
631
+ /**
632
+ * Module dependencies.
633
+ */
634
+ const tty$1 = __require("tty");
635
+ const util = __require("util");
636
+ /**
637
+ * This is the Node.js implementation of `debug()`.
638
+ */
639
+ exports.init = init;
640
+ exports.log = log;
641
+ exports.formatArgs = formatArgs;
642
+ exports.save = save;
643
+ exports.load = load;
644
+ exports.useColors = useColors;
645
+ exports.destroy = util.deprecate(() => {}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
646
+ /**
647
+ * Colors.
648
+ */
649
+ exports.colors = [
650
+ 6,
651
+ 2,
652
+ 3,
653
+ 4,
654
+ 5,
655
+ 1
656
+ ];
657
+ try {
658
+ const supportsColor$1 = (init_supports_color(), __toCommonJS(supports_color_exports));
659
+ if (supportsColor$1 && (supportsColor$1.stderr || supportsColor$1).level >= 2) exports.colors = [
660
+ 20,
661
+ 21,
662
+ 26,
663
+ 27,
664
+ 32,
665
+ 33,
666
+ 38,
667
+ 39,
668
+ 40,
669
+ 41,
670
+ 42,
671
+ 43,
672
+ 44,
673
+ 45,
674
+ 56,
675
+ 57,
676
+ 62,
677
+ 63,
678
+ 68,
679
+ 69,
680
+ 74,
681
+ 75,
682
+ 76,
683
+ 77,
684
+ 78,
685
+ 79,
686
+ 80,
687
+ 81,
688
+ 92,
689
+ 93,
690
+ 98,
691
+ 99,
692
+ 112,
693
+ 113,
694
+ 128,
695
+ 129,
696
+ 134,
697
+ 135,
698
+ 148,
699
+ 149,
700
+ 160,
701
+ 161,
702
+ 162,
703
+ 163,
704
+ 164,
705
+ 165,
706
+ 166,
707
+ 167,
708
+ 168,
709
+ 169,
710
+ 170,
711
+ 171,
712
+ 172,
713
+ 173,
714
+ 178,
715
+ 179,
716
+ 184,
717
+ 185,
718
+ 196,
719
+ 197,
720
+ 198,
721
+ 199,
722
+ 200,
723
+ 201,
724
+ 202,
725
+ 203,
726
+ 204,
727
+ 205,
728
+ 206,
729
+ 207,
730
+ 208,
731
+ 209,
732
+ 214,
733
+ 215,
734
+ 220,
735
+ 221
736
+ ];
737
+ } catch (error) {}
738
+ /**
739
+ * Build up the default `inspectOpts` object from the environment variables.
740
+ *
741
+ * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
742
+ */
743
+ exports.inspectOpts = Object.keys(process.env).filter((key) => {
744
+ return /^debug_/i.test(key);
745
+ }).reduce((obj, key) => {
746
+ const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
747
+ return k.toUpperCase();
748
+ });
749
+ let val = process.env[key];
750
+ if (/^(yes|on|true|enabled)$/i.test(val)) val = true;
751
+ else if (/^(no|off|false|disabled)$/i.test(val)) val = false;
752
+ else if (val === "null") val = null;
753
+ else val = Number(val);
754
+ obj[prop] = val;
755
+ return obj;
756
+ }, {});
757
+ /**
758
+ * Is stdout a TTY? Colored output is enabled when `true`.
759
+ */
760
+ function useColors() {
761
+ return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty$1.isatty(process.stderr.fd);
762
+ }
763
+ /**
764
+ * Adds ANSI color escape codes if enabled.
765
+ *
766
+ * @api public
767
+ */
768
+ function formatArgs(args) {
769
+ const { namespace: name, useColors: useColors$2 } = this;
770
+ if (useColors$2) {
771
+ const c = this.color;
772
+ const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
773
+ const prefix = ` ${colorCode};1m${name} \u001B[0m`;
774
+ args[0] = prefix + args[0].split("\n").join("\n" + prefix);
775
+ args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
776
+ } else args[0] = getDate() + name + " " + args[0];
777
+ }
778
+ function getDate() {
779
+ if (exports.inspectOpts.hideDate) return "";
780
+ return (/* @__PURE__ */ new Date()).toISOString() + " ";
781
+ }
782
+ /**
783
+ * Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr.
784
+ */
785
+ function log(...args) {
786
+ return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + "\n");
787
+ }
788
+ /**
789
+ * Save `namespaces`.
790
+ *
791
+ * @param {String} namespaces
792
+ * @api private
793
+ */
794
+ function save(namespaces) {
795
+ if (namespaces) process.env.DEBUG = namespaces;
796
+ else delete process.env.DEBUG;
797
+ }
798
+ /**
799
+ * Load `namespaces`.
800
+ *
801
+ * @return {String} returns the previously persisted debug modes
802
+ * @api private
803
+ */
804
+ function load() {
805
+ return process.env.DEBUG;
806
+ }
807
+ /**
808
+ * Init logic for `debug` instances.
809
+ *
810
+ * Create a new `inspectOpts` object in case `useColors` is set
811
+ * differently for a particular `debug` instance.
812
+ */
813
+ function init(debug) {
814
+ debug.inspectOpts = {};
815
+ const keys = Object.keys(exports.inspectOpts);
816
+ for (let i = 0; i < keys.length; i++) debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
817
+ }
818
+ module.exports = require_common()(exports);
819
+ const { formatters } = module.exports;
820
+ /**
821
+ * Map %o to `util.inspect()`, all on a single line.
822
+ */
823
+ formatters.o = function(v) {
824
+ this.inspectOpts.colors = this.useColors;
825
+ return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
826
+ };
827
+ /**
828
+ * Map %O to `util.inspect()`, allowing multiple lines if needed.
829
+ */
830
+ formatters.O = function(v) {
831
+ this.inspectOpts.colors = this.useColors;
832
+ return util.inspect(v, this.inspectOpts);
833
+ };
834
+ }) });
835
+
836
+ //#endregion
837
+ //#region node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js
838
+ var require_src = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.js": ((exports, module) => {
839
+ /**
840
+ * Detect Electron renderer / nwjs process, which is node, but we should
841
+ * treat as a browser.
842
+ */
843
+ if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) module.exports = require_browser();
844
+ else module.exports = require_node();
845
+ }) });
846
+
847
+ //#endregion
848
+ export { require_ms as n, require_src as t };