noahluckyrobots commited on
Commit
d8ae8ed
·
verified ·
1 Parent(s): 74a4153

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. worker/node_modules/unenv/dist/index.mjs +338 -0
  2. worker/node_modules/unenv/dist/runtime/_internal/types.d.mts +5 -0
  3. worker/node_modules/unenv/dist/runtime/_internal/types.mjs +1 -0
  4. worker/node_modules/unenv/dist/runtime/_internal/utils.d.mts +14 -0
  5. worker/node_modules/unenv/dist/runtime/_internal/utils.mjs +43 -0
  6. worker/node_modules/unenv/dist/runtime/mock/empty.d.mts +2 -0
  7. worker/node_modules/unenv/dist/runtime/mock/empty.mjs +1 -0
  8. worker/node_modules/unenv/dist/runtime/mock/noop.d.mts +2 -0
  9. worker/node_modules/unenv/dist/runtime/mock/noop.mjs +1 -0
  10. worker/node_modules/unenv/dist/runtime/mock/proxy.d.mts +2 -0
  11. worker/node_modules/unenv/dist/runtime/mock/proxy.mjs +42 -0
  12. worker/node_modules/unenv/dist/runtime/node/assert.d.mts +133 -0
  13. worker/node_modules/unenv/dist/runtime/node/assert.mjs +680 -0
  14. worker/node_modules/unenv/dist/runtime/node/assert/strict.d.mts +4 -0
  15. worker/node_modules/unenv/dist/runtime/node/assert/strict.mjs +25 -0
  16. worker/node_modules/unenv/dist/runtime/node/async_hooks.d.mts +5 -0
  17. worker/node_modules/unenv/dist/runtime/node/async_hooks.mjs +15 -0
  18. worker/node_modules/unenv/dist/runtime/node/buffer.d.mts +17 -0
  19. worker/node_modules/unenv/dist/runtime/node/buffer.mjs +34 -0
  20. worker/node_modules/unenv/dist/runtime/node/child_process.d.mts +12 -0
  21. worker/node_modules/unenv/dist/runtime/node/child_process.mjs +21 -0
  22. worker/node_modules/unenv/dist/runtime/node/cluster.d.mts +32 -0
  23. worker/node_modules/unenv/dist/runtime/node/cluster.mjs +69 -0
  24. worker/node_modules/unenv/dist/runtime/node/console.d.mts +35 -0
  25. worker/node_modules/unenv/dist/runtime/node/console.mjs +70 -0
  26. worker/node_modules/unenv/dist/runtime/node/constants.d.mts +8 -0
  27. worker/node_modules/unenv/dist/runtime/node/constants.mjs +247 -0
  28. worker/node_modules/unenv/dist/runtime/node/crypto.d.mts +5 -0
  29. worker/node_modules/unenv/dist/runtime/node/crypto.mjs +136 -0
  30. worker/node_modules/unenv/dist/runtime/node/dgram.d.mts +6 -0
  31. worker/node_modules/unenv/dist/runtime/node/dgram.mjs +12 -0
  32. worker/node_modules/unenv/dist/runtime/node/diagnostics_channel.d.mts +9 -0
  33. worker/node_modules/unenv/dist/runtime/node/diagnostics_channel.mjs +32 -0
  34. worker/node_modules/unenv/dist/runtime/node/dns.d.mts +27 -0
  35. worker/node_modules/unenv/dist/runtime/node/dns.mjs +78 -0
  36. worker/node_modules/unenv/dist/runtime/node/dns/promises.d.mts +25 -0
  37. worker/node_modules/unenv/dist/runtime/node/dns/promises.mjs +72 -0
  38. worker/node_modules/unenv/dist/runtime/node/domain.d.mts +8 -0
  39. worker/node_modules/unenv/dist/runtime/node/domain.mjs +16 -0
  40. worker/node_modules/unenv/dist/runtime/node/events.d.mts +12 -0
  41. worker/node_modules/unenv/dist/runtime/node/events.mjs +12 -0
  42. worker/node_modules/unenv/dist/runtime/node/fs.d.mts +10 -0
  43. worker/node_modules/unenv/dist/runtime/node/fs.mjs +117 -0
  44. worker/node_modules/unenv/dist/runtime/node/fs/promises.d.mts +7 -0
  45. worker/node_modules/unenv/dist/runtime/node/fs/promises.mjs +38 -0
  46. worker/node_modules/unenv/dist/runtime/node/http.d.mts +22 -0
  47. worker/node_modules/unenv/dist/runtime/node/http.mjs +45 -0
  48. worker/node_modules/unenv/dist/runtime/node/http2.d.mts +14 -0
  49. worker/node_modules/unenv/dist/runtime/node/http2.mjs +282 -0
  50. worker/node_modules/unenv/dist/runtime/node/https.d.mts +9 -0
worker/node_modules/unenv/dist/index.mjs ADDED
@@ -0,0 +1,338 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { builtinModules } from "node:module";
2
+ import { createResolver } from "exsolve";
3
+
4
+ //#region node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
5
+ const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
6
+ function normalizeWindowsPath(input = "") {
7
+ if (!input) return input;
8
+ return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
9
+ }
10
+ const _UNC_REGEX = /^[/\\]{2}/;
11
+ const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
12
+ const _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
13
+ const normalize = function(path) {
14
+ if (path.length === 0) return ".";
15
+ path = normalizeWindowsPath(path);
16
+ const isUNCPath = path.match(_UNC_REGEX);
17
+ const isPathAbsolute = isAbsolute(path);
18
+ const trailingSeparator = path[path.length - 1] === "/";
19
+ path = normalizeString(path, !isPathAbsolute);
20
+ if (path.length === 0) {
21
+ if (isPathAbsolute) return "/";
22
+ return trailingSeparator ? "./" : ".";
23
+ }
24
+ if (trailingSeparator) path += "/";
25
+ if (_DRIVE_LETTER_RE.test(path)) path += "/";
26
+ if (isUNCPath) {
27
+ if (!isPathAbsolute) return `//./${path}`;
28
+ return `//${path}`;
29
+ }
30
+ return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
31
+ };
32
+ const join = function(...segments) {
33
+ let path = "";
34
+ for (const seg of segments) {
35
+ if (!seg) continue;
36
+ if (path.length > 0) {
37
+ const pathTrailing = path[path.length - 1] === "/";
38
+ const segLeading = seg[0] === "/";
39
+ const both = pathTrailing && segLeading;
40
+ if (both) path += seg.slice(1);
41
+ else path += pathTrailing || segLeading ? seg : `/${seg}`;
42
+ } else path += seg;
43
+ }
44
+ return normalize(path);
45
+ };
46
+ function normalizeString(path, allowAboveRoot) {
47
+ let res = "";
48
+ let lastSegmentLength = 0;
49
+ let lastSlash = -1;
50
+ let dots = 0;
51
+ let char = null;
52
+ for (let index = 0; index <= path.length; ++index) {
53
+ if (index < path.length) char = path[index];
54
+ else if (char === "/") break;
55
+ else char = "/";
56
+ if (char === "/") {
57
+ if (lastSlash === index - 1 || dots === 1);
58
+ else if (dots === 2) {
59
+ if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
60
+ if (res.length > 2) {
61
+ const lastSlashIndex = res.lastIndexOf("/");
62
+ if (lastSlashIndex === -1) {
63
+ res = "";
64
+ lastSegmentLength = 0;
65
+ } else {
66
+ res = res.slice(0, lastSlashIndex);
67
+ lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
68
+ }
69
+ lastSlash = index;
70
+ dots = 0;
71
+ continue;
72
+ } else if (res.length > 0) {
73
+ res = "";
74
+ lastSegmentLength = 0;
75
+ lastSlash = index;
76
+ dots = 0;
77
+ continue;
78
+ }
79
+ }
80
+ if (allowAboveRoot) {
81
+ res += res.length > 0 ? "/.." : "..";
82
+ lastSegmentLength = 2;
83
+ }
84
+ } else {
85
+ if (res.length > 0) res += `/${path.slice(lastSlash + 1, index)}`;
86
+ else res = path.slice(lastSlash + 1, index);
87
+ lastSegmentLength = index - lastSlash - 1;
88
+ }
89
+ lastSlash = index;
90
+ dots = 0;
91
+ } else if (char === "." && dots !== -1) ++dots;
92
+ else dots = -1;
93
+ }
94
+ return res;
95
+ }
96
+ const isAbsolute = function(p) {
97
+ return _IS_ABSOLUTE_RE.test(p);
98
+ };
99
+
100
+ //#endregion
101
+ //#region node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/utils.mjs
102
+ const pathSeparators = /* @__PURE__ */ new Set([
103
+ "/",
104
+ "\\",
105
+ void 0
106
+ ]);
107
+ const normalizedAliasSymbol = Symbol.for("pathe:normalizedAlias");
108
+ function normalizeAliases(_aliases) {
109
+ if (_aliases[normalizedAliasSymbol]) return _aliases;
110
+ const aliases = Object.fromEntries(Object.entries(_aliases).sort(([a], [b]) => _compareAliases(a, b)));
111
+ for (const key in aliases) for (const alias in aliases) {
112
+ if (alias === key || key.startsWith(alias)) continue;
113
+ if (aliases[key]?.startsWith(alias) && pathSeparators.has(aliases[key][alias.length])) aliases[key] = aliases[alias] + aliases[key].slice(alias.length);
114
+ }
115
+ Object.defineProperty(aliases, normalizedAliasSymbol, {
116
+ value: true,
117
+ enumerable: false
118
+ });
119
+ return aliases;
120
+ }
121
+ function resolveAlias(path, aliases) {
122
+ const _path = normalizeWindowsPath(path);
123
+ aliases = normalizeAliases(aliases);
124
+ for (const [alias, to] of Object.entries(aliases)) {
125
+ if (!_path.startsWith(alias)) continue;
126
+ const _alias = hasTrailingSlash(alias) ? alias.slice(0, -1) : alias;
127
+ if (hasTrailingSlash(_path[_alias.length])) return join(to, _path.slice(alias.length));
128
+ }
129
+ return _path;
130
+ }
131
+ function _compareAliases(a, b) {
132
+ return b.split("/").length - a.split("/").length;
133
+ }
134
+ function hasTrailingSlash(path = "/") {
135
+ const lastChar = path[path.length - 1];
136
+ return lastChar === "/" || lastChar === "\\";
137
+ }
138
+
139
+ //#endregion
140
+ //#region package.json
141
+ var version = "2.0.0-rc.14";
142
+
143
+ //#endregion
144
+ //#region src/preset.ts
145
+ const nodeCompatAliases = {
146
+ _http_agent: "unenv/mock/proxy-cjs",
147
+ _http_client: "unenv/mock/proxy-cjs",
148
+ _http_common: "unenv/mock/proxy-cjs",
149
+ _http_incoming: "unenv/mock/proxy-cjs",
150
+ _http_outgoing: "unenv/mock/proxy-cjs",
151
+ _http_server: "unenv/mock/proxy-cjs",
152
+ _stream_duplex: "unenv/mock/proxy-cjs",
153
+ _stream_passthrough: "unenv/mock/proxy-cjs",
154
+ _stream_readable: "unenv/mock/proxy-cjs",
155
+ _stream_transform: "unenv/mock/proxy-cjs",
156
+ _stream_wrap: "unenv/mock/proxy-cjs",
157
+ _stream_writable: "unenv/mock/proxy-cjs",
158
+ _tls_common: "unenv/mock/proxy-cjs",
159
+ _tls_wrap: "unenv/mock/proxy-cjs",
160
+ assert: "unenv/node/assert",
161
+ "assert/strict": "unenv/node/assert/strict",
162
+ async_hooks: "unenv/node/async_hooks",
163
+ buffer: "unenv/node/buffer",
164
+ child_process: "unenv/node/child_process",
165
+ cluster: "unenv/node/cluster",
166
+ console: "unenv/node/console",
167
+ constants: "unenv/node/constants",
168
+ crypto: "unenv/node/crypto",
169
+ dgram: "unenv/node/dgram",
170
+ diagnostics_channel: "unenv/node/diagnostics_channel",
171
+ dns: "unenv/node/dns",
172
+ "dns/promises": "unenv/node/dns/promises",
173
+ domain: "unenv/node/domain",
174
+ events: "unenv/node/events",
175
+ fs: "unenv/node/fs",
176
+ "fs/promises": "unenv/node/fs/promises",
177
+ http: "unenv/node/http",
178
+ http2: "unenv/node/http2",
179
+ https: "unenv/node/https",
180
+ inspector: "unenv/node/inspector",
181
+ "inspector/promises": "unenv/node/inspector/promises",
182
+ module: "unenv/node/module",
183
+ net: "unenv/node/net",
184
+ os: "unenv/node/os",
185
+ path: "unenv/node/path",
186
+ "path/posix": "unenv/node/path",
187
+ "path/win32": "unenv/node/path",
188
+ perf_hooks: "unenv/node/perf_hooks",
189
+ process: "unenv/node/process",
190
+ punycode: "unenv/node/punycode",
191
+ querystring: "unenv/node/querystring",
192
+ readline: "unenv/node/readline",
193
+ "readline/promises": "unenv/node/readline/promises",
194
+ repl: "unenv/node/repl",
195
+ stream: "unenv/node/stream",
196
+ "stream/consumers": "unenv/node/stream/consumers",
197
+ "stream/promises": "unenv/node/stream/promises",
198
+ "stream/web": "unenv/node/stream/web",
199
+ string_decoder: "unenv/node/string_decoder",
200
+ sys: "unenv/node/util",
201
+ timers: "unenv/node/timers",
202
+ "timers/promises": "unenv/node/timers/promises",
203
+ tls: "unenv/node/tls",
204
+ trace_events: "unenv/node/trace_events",
205
+ tty: "unenv/node/tty",
206
+ url: "unenv/node/url",
207
+ util: "unenv/node/util",
208
+ "util/types": "unenv/node/util/types",
209
+ v8: "unenv/node/v8",
210
+ vm: "unenv/node/vm",
211
+ wasi: "unenv/node/wasi",
212
+ worker_threads: "unenv/node/worker_threads",
213
+ zlib: "unenv/node/zlib"
214
+ };
215
+ const nodeCompatInjects = {
216
+ process: "unenv/node/process",
217
+ global: "unenv/polyfill/globalthis",
218
+ Buffer: ["node:buffer", "Buffer"],
219
+ clearImmediate: ["node:timers", "clearImmediate"],
220
+ setImmediate: ["node:timers", "setImmediate"]
221
+ };
222
+ const npmShims = {
223
+ "cross-fetch": "unenv/npm/cross-fetch",
224
+ debug: "unenv/npm/debug",
225
+ fsevents: "unenv/npm/fsevents",
226
+ inherits: "unenv/npm/inherits",
227
+ "node-fetch": "unenv/npm/node-fetch",
228
+ "node-fetch-native": "unenv/npm/node-fetch",
229
+ "whatwg-url": "unenv/npm/whatwg-url",
230
+ "cross-fetch/polyfill": "unenv/mock/empty",
231
+ "node-fetch-native/polyfill": "unenv/mock/empty",
232
+ "isomorphic-fetch": "unenv/mock/empty"
233
+ };
234
+
235
+ //#endregion
236
+ //#region src/env.ts
237
+ const defineEnv = (opts = {}) => {
238
+ const presets = [];
239
+ presets.push(unenvPreset(opts));
240
+ if (opts.presets) presets.push(...opts.presets);
241
+ if (opts.overrides) presets.push(opts.overrides);
242
+ if (opts.resolve) {
243
+ for (const preset of presets) if (preset.meta?.url) resolvePaths(preset, [preset.meta.url], opts);
244
+ }
245
+ const env = mergePresets(...presets);
246
+ if (opts.resolve) resolvePaths(env, presets.map((preset) => preset.meta?.url).filter((v) => v !== undefined), opts);
247
+ return {
248
+ env,
249
+ presets
250
+ };
251
+ };
252
+ function unenvPreset(opts) {
253
+ const preset = {
254
+ meta: {
255
+ name: "unenv",
256
+ version,
257
+ url: import.meta.url
258
+ },
259
+ alias: {},
260
+ inject: {},
261
+ external: [],
262
+ polyfill: []
263
+ };
264
+ if (opts.nodeCompat !== false) {
265
+ Object.assign(preset.inject, nodeCompatInjects);
266
+ Object.assign(preset.alias, { ...Object.fromEntries(Object.entries(nodeCompatAliases).flatMap(([from, to]) => {
267
+ const aliases = [[from, to], [`node:${from}`, to]];
268
+ return aliases;
269
+ })) });
270
+ }
271
+ if (opts.npmShims) Object.assign(preset.alias, npmShims);
272
+ return preset;
273
+ }
274
+ function resolvePaths(env, from, opts = {}) {
275
+ if (!opts.resolve) return;
276
+ const { resolveModulePath } = createResolver({ from: [
277
+ ...opts.resolve === true ? [] : opts.resolve.paths || [],
278
+ ...from,
279
+ import.meta.url,
280
+ process.cwd() + "/"
281
+ ] });
282
+ const _resolve = (id) => {
283
+ if (!id) return id;
284
+ if (env.alias) id = resolveAlias(id, env.alias);
285
+ if (id.startsWith("node:")) return id;
286
+ if (builtinModules.includes(id)) return `node:${id}`;
287
+ let resolved = resolveModulePath(id, { try: true });
288
+ if (!resolved && id.startsWith("unenv/")) resolved = resolveModulePath(id.replace("unenv/", "unenv-nightly/"), { try: true });
289
+ return resolved || id;
290
+ };
291
+ for (const alias in env.alias) env.alias[alias] = _resolve(env.alias[alias]);
292
+ if (env.polyfill) for (let i = 0; i < env.polyfill.length; i++) env.polyfill[i] = _resolve(env.polyfill[i]);
293
+ for (const global in env.inject) {
294
+ const inject = env.inject[global];
295
+ if (Array.isArray(inject)) {
296
+ const [id, ...path] = inject;
297
+ env.inject[global] = [_resolve(id), ...path];
298
+ } else env.inject[global] = _resolve(inject);
299
+ }
300
+ return env;
301
+ }
302
+ function mergePresets(...presets) {
303
+ const env = {
304
+ alias: {},
305
+ inject: {},
306
+ polyfill: [],
307
+ external: []
308
+ };
309
+ for (const preset of presets) {
310
+ if (preset.alias) {
311
+ const aliases = Object.keys(preset.alias).sort((a, b) => b.split("/").length - a.split("/").length || b.length - a.length);
312
+ for (const from of aliases) env.alias[from] = preset.alias[from];
313
+ }
314
+ if (preset.inject) for (const [global, globalValue] of Object.entries(preset.inject)) if (Array.isArray(globalValue)) env.inject[global] = globalValue;
315
+ else if (globalValue === false) delete env.inject[global];
316
+ else env.inject[global] = globalValue;
317
+ if (preset.polyfill) env.polyfill.push(...preset.polyfill.filter(Boolean));
318
+ if (preset.external) env.external.push(...preset.external);
319
+ }
320
+ env.polyfill = resolveArray(env.polyfill);
321
+ env.external = resolveArray(env.external);
322
+ return env;
323
+ }
324
+ /**
325
+ * - Deduplicates items
326
+ * - Removes nagate items with ! prefix
327
+ */
328
+ function resolveArray(arr) {
329
+ const set = new Set(arr);
330
+ for (const item of arr) if (item.startsWith("!")) {
331
+ set.delete(item);
332
+ set.delete(item.slice(1));
333
+ }
334
+ return [...set];
335
+ }
336
+
337
+ //#endregion
338
+ export { defineEnv };
worker/node_modules/unenv/dist/runtime/_internal/types.d.mts ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ export type Callback<E = Error | null | undefined> = (error?: E) => void;
2
+ export type HeadersObject = {
3
+ [key: string]: string | string[] | undefined
4
+ };
5
+ export type BufferEncoding = any;
worker/node_modules/unenv/dist/runtime/_internal/types.mjs ADDED
@@ -0,0 +1 @@
 
 
1
+ export {};
worker/node_modules/unenv/dist/runtime/_internal/utils.d.mts ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type { HeadersObject } from "./types.mjs";
2
+ /*@__NO_SIDE_EFFECTS__*/ export declare function rawHeaders(headers: HeadersObject);
3
+ type Fn = (...args: any[]) => any;
4
+ /*@__NO_SIDE_EFFECTS__*/ export declare function mergeFns(...functions: Fn[]): unknown;
5
+ /*@__NO_SIDE_EFFECTS__*/ export declare function createNotImplementedError(name: string);
6
+ /*@__NO_SIDE_EFFECTS__*/ export declare function notImplemented<Fn extends (...args: any) => any>(name: string): Fn;
7
+ export interface Promisifiable {
8
+ (): any;
9
+ native: Promisifiable;
10
+ __promisify__: () => Promise<any>;
11
+ }
12
+ /*@__NO_SIDE_EFFECTS__*/ export declare function notImplementedAsync(name: string): Promisifiable;
13
+ /*@__NO_SIDE_EFFECTS__*/ export declare function notImplementedClass<T = unknown>(name: string): T;
14
+ export {};
worker/node_modules/unenv/dist/runtime/_internal/utils.mjs ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*@__NO_SIDE_EFFECTS__*/ export function rawHeaders(headers) {
2
+ const rawHeaders = [];
3
+ for (const key in headers) {
4
+ if (Array.isArray(headers[key])) {
5
+ for (const h of headers[key]) {
6
+ rawHeaders.push(key, h);
7
+ }
8
+ } else {
9
+ rawHeaders.push(key, headers[key]);
10
+ }
11
+ }
12
+ return rawHeaders;
13
+ }
14
+ /*@__NO_SIDE_EFFECTS__*/ export function mergeFns(...functions) {
15
+ return function(...args) {
16
+ for (const fn of functions) {
17
+ fn(...args);
18
+ }
19
+ };
20
+ }
21
+ /*@__NO_SIDE_EFFECTS__*/ export function createNotImplementedError(name) {
22
+ return new Error(`[unenv] ${name} is not implemented yet!`);
23
+ }
24
+ /*@__NO_SIDE_EFFECTS__*/ export function notImplemented(name) {
25
+ const fn = () => {
26
+ throw createNotImplementedError(name);
27
+ };
28
+ return Object.assign(fn, { __unenv__: true });
29
+ }
30
+ /*@__NO_SIDE_EFFECTS__*/ export function notImplementedAsync(name) {
31
+ const fn = notImplemented(name);
32
+ fn.__promisify__ = () => notImplemented(name + ".__promisify__");
33
+ fn.native = fn;
34
+ return fn;
35
+ }
36
+ /*@__NO_SIDE_EFFECTS__*/ export function notImplementedClass(name) {
37
+ return class {
38
+ __unenv__ = true;
39
+ constructor() {
40
+ throw new Error(`[unenv] ${name} is not implemented yet!`);
41
+ }
42
+ };
43
+ }
worker/node_modules/unenv/dist/runtime/mock/empty.d.mts ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ declare const _default;
2
+ export default _default;
worker/node_modules/unenv/dist/runtime/mock/empty.mjs ADDED
@@ -0,0 +1 @@
 
 
1
+ export default Object.freeze(Object.create(null, { __unenv__: { get: () => true } }));
worker/node_modules/unenv/dist/runtime/mock/noop.d.mts ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ declare const _default;
2
+ export default _default;
worker/node_modules/unenv/dist/runtime/mock/noop.mjs ADDED
@@ -0,0 +1 @@
 
 
1
+ export default Object.assign(() => {}, { __unenv__: true });
worker/node_modules/unenv/dist/runtime/mock/proxy.d.mts ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ declare const _default;
2
+ export default _default;
worker/node_modules/unenv/dist/runtime/mock/proxy.mjs ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ function createMock(name, overrides = {}) {
2
+ const proxyFn = function() {};
3
+ proxyFn.prototype.name = name;
4
+ const props = {};
5
+ const proxy = new Proxy(proxyFn, {
6
+ get(_target, prop) {
7
+ if (prop === "caller") {
8
+ return null;
9
+ }
10
+ if (prop === "__createMock__") {
11
+ return createMock;
12
+ }
13
+ if (prop === "__unenv__") {
14
+ return true;
15
+ }
16
+ if (prop in overrides) {
17
+ return overrides[prop];
18
+ }
19
+ if (prop === "then") {
20
+ return (fn) => Promise.resolve(fn());
21
+ }
22
+ if (prop === "catch") {
23
+ return (fn) => Promise.resolve();
24
+ }
25
+ if (prop === "finally") {
26
+ return (fn) => Promise.resolve(fn());
27
+ }
28
+ return props[prop] = props[prop] || createMock(`${name}.${prop.toString()}`);
29
+ },
30
+ apply(_target, _this, _args) {
31
+ return createMock(`${name}()`);
32
+ },
33
+ construct(_target, _args, _newT) {
34
+ return createMock(`[${name}]`);
35
+ },
36
+ enumerate() {
37
+ return [];
38
+ }
39
+ });
40
+ return proxy;
41
+ }
42
+ export default createMock("mock");
worker/node_modules/unenv/dist/runtime/node/assert.d.mts ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type nodeAssert from "node:assert";
2
+ export declare class AssertionError extends Error implements nodeAssert.AssertionError {
3
+ actual: unknown;
4
+ expected: unknown;
5
+ operator: string;
6
+ generatedMessage: boolean;
7
+ code: "ERR_ASSERTION";
8
+ constructor(options: {
9
+ message?: string
10
+ actual?: unknown
11
+ expected?: unknown
12
+ operator?: string
13
+ stackStartFn?: Function
14
+ });
15
+ }
16
+ /**
17
+ * Pure assertion tests whether a value is truthy, as determined
18
+ * by !!value.
19
+ * @param {...any} args
20
+ * @returns {void}
21
+ */
22
+ export declare function ok(...args: unknown[]);
23
+ /**
24
+ * The equality assertion tests shallow, coercive equality with ==.
25
+ * @param {any} actual
26
+ * @param {any} expected
27
+ * @param {string | Error} [message]
28
+ * @returns {void}
29
+ */
30
+ export declare function equal(actual: unknown, expected: unknown, message?: string | Error): void;
31
+ /**
32
+ * The non-equality assertion tests for whether two objects are not
33
+ * equal with !=.
34
+ * @param {any} actual
35
+ * @param {any} expected
36
+ * @param {string | Error} [message]
37
+ * @returns {void}
38
+ */
39
+ export declare function notEqual(actual: unknown, expected: unknown, message?: string | Error);
40
+ /**
41
+ * The deep equivalence assertion tests a deep equality relation.
42
+ * @param {any} actual
43
+ * @param {any} expected
44
+ * @param {string | Error} [message]
45
+ * @returns {void}
46
+ */
47
+ export declare function deepEqual(actual: unknown, expected: unknown, message?: string | Error);
48
+ /**
49
+ * The deep non-equivalence assertion tests for any deep inequality.
50
+ * @param {any} actual
51
+ * @param {any} expected
52
+ * @param {string | Error} [message]
53
+ * @returns {void}
54
+ */
55
+ export declare function notDeepEqual(actual: unknown, expected: unknown, message?: string | Error);
56
+ /**
57
+ * The deep strict equivalence assertion tests a deep strict equality
58
+ * relation.
59
+ * @param {any} actual
60
+ * @param {any} expected
61
+ * @param {string | Error} [message]
62
+ * @returns {void}
63
+ */
64
+ export declare function deepStrictEqual(actual: unknown, expected: unknown, message?: string | Error);
65
+ /**
66
+ * The deep strict non-equivalence assertion tests for any deep strict
67
+ * inequality.
68
+ * @param {any} actual
69
+ * @param {any} expected
70
+ * @param {string | Error} [message]
71
+ * @returns {void}
72
+ */
73
+ export declare function notDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error);
74
+ /**
75
+ * The strict equivalence assertion tests a strict equality relation.
76
+ * @param {any} actual
77
+ * @param {any} expected
78
+ * @param {string | Error} [message]
79
+ * @returns {void}
80
+ */
81
+ export declare function strictEqual(actual: unknown, expected: unknown, message?: string | Error);
82
+ /**
83
+ * The strict non-equivalence assertion tests for any strict inequality.
84
+ * @param {any} actual
85
+ * @param {any} expected
86
+ * @param {string | Error} [message]
87
+ * @returns {void}
88
+ */
89
+ export declare function notStrictEqual(actual: unknown, expected: unknown, message?: string | Error);
90
+ /**
91
+ * Expects the function `promiseFn` to throw an error.
92
+ */
93
+ export declare function throws(promiseFn: () => any, ...args: unknown[]): void;
94
+ /**
95
+ * Expects `promiseFn` function or its value to reject.
96
+ */
97
+ export declare function rejects(promiseFn: (() => Promise<unknown>) | Promise<unknown>, ...args: unknown[]): Promise<void>;
98
+ /**
99
+ * Asserts that the function `fn` does not throw an error.
100
+ */
101
+ export declare function doesNotThrow(fn: () => any, ...args: unknown[]): void;
102
+ /**
103
+ * Expects `fn` or its value to not reject.
104
+ */
105
+ export declare function doesNotReject(fn: (() => Promise<unknown>) | Promise<unknown>, ...args: unknown[]): Promise<void>;
106
+ /**
107
+ * Throws `value` if the value is not `null` or `undefined`.
108
+ * @param {any} err
109
+ * @returns {void}
110
+ */
111
+ export declare function ifError(err: unknown);
112
+ /**
113
+ * Expects the `string` input to match the regular expression.
114
+ * @param {string} string
115
+ * @param {RegExp} regexp
116
+ * @param {string | Error} [message]
117
+ * @returns {void}
118
+ */
119
+ export declare function match(string: string, regexp: RegExp, message?: string | Error);
120
+ /**
121
+ * Expects the `string` input not to match the regular expression.
122
+ * @param {string} string
123
+ * @param {RegExp} regexp
124
+ * @param {string | Error} [message]
125
+ * @returns {void}
126
+ */
127
+ export declare function doesNotMatch(string: string, regexp: RegExp, message?: string | Error);
128
+ export declare function fail(actual: unknown, expected?: unknown, message?: string | Error, operator?: string, stackStartFn?: Function): never;
129
+ export declare const CallTracker: typeof nodeAssert.CallTracker;
130
+ export declare const partialDeepStrictEqual: unknown;
131
+ export declare const strict: unknown;
132
+ declare const _default;
133
+ export default _default;
worker/node_modules/unenv/dist/runtime/node/assert.mjs ADDED
@@ -0,0 +1,680 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { isEqual as _ohashIsEqual } from "ohash/utils";
2
+ import { notImplemented, notImplementedClass } from "../_internal/utils.mjs";
3
+ const ERR_AMBIGUOUS_ARGUMENT = Error;
4
+ const ERR_INVALID_ARG_TYPE = Error;
5
+ const ERR_INVALID_ARG_VALUE = Error;
6
+ const ERR_INVALID_RETURN_VALUE = Error;
7
+ const ERR_MISSING_ARGS = Error;
8
+ export class AssertionError extends Error {
9
+ actual;
10
+ expected;
11
+ operator;
12
+ generatedMessage;
13
+ code = "ERR_ASSERTION";
14
+ constructor(options) {
15
+ super();
16
+ this.actual = options.actual;
17
+ this.expected = options.expected;
18
+ this.operator = options.operator || "";
19
+ this.generatedMessage = options.message === undefined;
20
+ const stackStartFn = options.stackStartFn || fail;
21
+ Error.captureStackTrace?.(this, stackStartFn);
22
+ }
23
+ }
24
+ const inspect = (val, opts) => val;
25
+ const isDeepEqual = _ohashIsEqual;
26
+ const isDeepStrictEqual = _ohashIsEqual;
27
+ let warned = false;
28
+ const NO_EXCEPTION_SENTINEL = {};
29
+ /**
30
+ * Pure assertion tests whether a value is truthy, as determined
31
+ * by !!value.
32
+ * @param {...any} args
33
+ * @returns {void}
34
+ */
35
+ export function ok(...args) {
36
+ innerOk(ok, args.length, ...args);
37
+ }
38
+ /**
39
+ * The equality assertion tests shallow, coercive equality with ==.
40
+ * @param {any} actual
41
+ * @param {any} expected
42
+ * @param {string | Error} [message]
43
+ * @returns {void}
44
+ */
45
+ export function equal(actual, expected, message) {
46
+ if (arguments.length < 2) {
47
+ throw new ERR_MISSING_ARGS("actual", "expected");
48
+ }
49
+ if (actual != expected && (!Number.isNaN(actual) || !Number.isNaN(expected))) {
50
+ innerFail({
51
+ actual,
52
+ expected,
53
+ message,
54
+ operator: "==",
55
+ stackStartFn: equal
56
+ });
57
+ }
58
+ }
59
+ /**
60
+ * The non-equality assertion tests for whether two objects are not
61
+ * equal with !=.
62
+ * @param {any} actual
63
+ * @param {any} expected
64
+ * @param {string | Error} [message]
65
+ * @returns {void}
66
+ */
67
+ export function notEqual(actual, expected, message) {
68
+ if (arguments.length < 2) {
69
+ throw new ERR_MISSING_ARGS("actual", "expected");
70
+ }
71
+ if (actual == expected || Number.isNaN(actual) && Number.isNaN(expected)) {
72
+ innerFail({
73
+ actual,
74
+ expected,
75
+ message,
76
+ operator: "!=",
77
+ stackStartFn: notEqual
78
+ });
79
+ }
80
+ }
81
+ /**
82
+ * The deep equivalence assertion tests a deep equality relation.
83
+ * @param {any} actual
84
+ * @param {any} expected
85
+ * @param {string | Error} [message]
86
+ * @returns {void}
87
+ */
88
+ export function deepEqual(actual, expected, message) {
89
+ if (arguments.length < 2) {
90
+ throw new ERR_MISSING_ARGS("actual", "expected");
91
+ }
92
+ if (!isDeepEqual(actual, expected)) {
93
+ innerFail({
94
+ actual,
95
+ expected,
96
+ message,
97
+ operator: "deepEqual",
98
+ stackStartFn: deepEqual
99
+ });
100
+ }
101
+ }
102
+ /**
103
+ * The deep non-equivalence assertion tests for any deep inequality.
104
+ * @param {any} actual
105
+ * @param {any} expected
106
+ * @param {string | Error} [message]
107
+ * @returns {void}
108
+ */
109
+ export function notDeepEqual(actual, expected, message) {
110
+ if (arguments.length < 2) {
111
+ throw new ERR_MISSING_ARGS("actual", "expected");
112
+ }
113
+ if (isDeepEqual(actual, expected)) {
114
+ innerFail({
115
+ actual,
116
+ expected,
117
+ message,
118
+ operator: "notDeepEqual",
119
+ stackStartFn: notDeepEqual
120
+ });
121
+ }
122
+ }
123
+ /**
124
+ * The deep strict equivalence assertion tests a deep strict equality
125
+ * relation.
126
+ * @param {any} actual
127
+ * @param {any} expected
128
+ * @param {string | Error} [message]
129
+ * @returns {void}
130
+ */
131
+ export function deepStrictEqual(actual, expected, message) {
132
+ if (arguments.length < 2) {
133
+ throw new ERR_MISSING_ARGS("actual", "expected");
134
+ }
135
+ if (!isDeepStrictEqual(actual, expected)) {
136
+ innerFail({
137
+ actual,
138
+ expected,
139
+ message,
140
+ operator: "deepStrictEqual",
141
+ stackStartFn: deepStrictEqual
142
+ });
143
+ }
144
+ }
145
+ /**
146
+ * The deep strict non-equivalence assertion tests for any deep strict
147
+ * inequality.
148
+ * @param {any} actual
149
+ * @param {any} expected
150
+ * @param {string | Error} [message]
151
+ * @returns {void}
152
+ */
153
+ export function notDeepStrictEqual(actual, expected, message) {
154
+ if (arguments.length < 2) {
155
+ throw new ERR_MISSING_ARGS("actual", "expected");
156
+ }
157
+ if (isDeepStrictEqual(actual, expected)) {
158
+ innerFail({
159
+ actual,
160
+ expected,
161
+ message,
162
+ operator: "notDeepStrictEqual",
163
+ stackStartFn: notDeepStrictEqual
164
+ });
165
+ }
166
+ }
167
+ /**
168
+ * The strict equivalence assertion tests a strict equality relation.
169
+ * @param {any} actual
170
+ * @param {any} expected
171
+ * @param {string | Error} [message]
172
+ * @returns {void}
173
+ */
174
+ export function strictEqual(actual, expected, message) {
175
+ if (arguments.length < 2) {
176
+ throw new ERR_MISSING_ARGS("actual", "expected");
177
+ }
178
+ if (!Object.is(actual, expected)) {
179
+ innerFail({
180
+ actual,
181
+ expected,
182
+ message,
183
+ operator: "strictEqual",
184
+ stackStartFn: strictEqual
185
+ });
186
+ }
187
+ }
188
+ /**
189
+ * The strict non-equivalence assertion tests for any strict inequality.
190
+ * @param {any} actual
191
+ * @param {any} expected
192
+ * @param {string | Error} [message]
193
+ * @returns {void}
194
+ */
195
+ export function notStrictEqual(actual, expected, message) {
196
+ if (arguments.length < 2) {
197
+ throw new ERR_MISSING_ARGS("actual", "expected");
198
+ }
199
+ if (Object.is(actual, expected)) {
200
+ innerFail({
201
+ actual,
202
+ expected,
203
+ message,
204
+ operator: "notStrictEqual",
205
+ stackStartFn: notStrictEqual
206
+ });
207
+ }
208
+ }
209
+ /**
210
+ * Expects the function `promiseFn` to throw an error.
211
+ */
212
+ export function throws(promiseFn, ...args) {
213
+ expectsError(throws, getActual(promiseFn), ...args);
214
+ }
215
+ /**
216
+ * Expects `promiseFn` function or its value to reject.
217
+ */
218
+ export async function rejects(promiseFn, ...args) {
219
+ expectsError(rejects, await waitForActual(promiseFn), ...args);
220
+ }
221
+ /**
222
+ * Asserts that the function `fn` does not throw an error.
223
+ */
224
+ export function doesNotThrow(fn, ...args) {
225
+ expectsNoError(doesNotThrow, getActual(fn), ...args);
226
+ }
227
+ /**
228
+ * Expects `fn` or its value to not reject.
229
+ */
230
+ export async function doesNotReject(fn, ...args) {
231
+ expectsNoError(doesNotReject, await waitForActual(fn), ...args);
232
+ }
233
+ /**
234
+ * Throws `value` if the value is not `null` or `undefined`.
235
+ * @param {any} err
236
+ * @returns {void}
237
+ */
238
+ export function ifError(err) {
239
+ if (err !== null && err !== undefined) {
240
+ let message = "ifError got unwanted exception: ";
241
+ if (typeof err === "object" && typeof err.message === "string") {
242
+ if (err.message.length === 0 && err.constructor) {
243
+ message += err.constructor.name;
244
+ } else {
245
+ message += err.message;
246
+ }
247
+ } else {
248
+ message += inspect(err);
249
+ }
250
+ const newErr = new AssertionError({
251
+ actual: err,
252
+ expected: null,
253
+ operator: "ifError",
254
+ message,
255
+ stackStartFn: ifError
256
+ });
257
+ const origStack = err?.stack;
258
+ if (typeof origStack === "string") {
259
+ const origStackStart = origStack.indexOf("\n at");
260
+ if (origStackStart !== -1) {
261
+ const originalFrames = origStack.slice(origStackStart + 1).split("\n");
262
+ let newFrames = (newErr.stack || "").split("\n");
263
+ for (const errFrame of originalFrames) {
264
+ const pos = newFrames.indexOf(errFrame);
265
+ if (pos !== -1) {
266
+ newFrames = newFrames.slice(0, pos);
267
+ break;
268
+ }
269
+ }
270
+ const stackStart = newFrames.join("\n");
271
+ const stackEnd = originalFrames.join("\n");
272
+ newErr.stack = `${stackStart}\n${stackEnd}`;
273
+ }
274
+ }
275
+ throw newErr;
276
+ }
277
+ }
278
+ /**
279
+ * Expects the `string` input to match the regular expression.
280
+ * @param {string} string
281
+ * @param {RegExp} regexp
282
+ * @param {string | Error} [message]
283
+ * @returns {void}
284
+ */
285
+ export function match(string, regexp, message) {
286
+ internalMatch(string, regexp, message, match);
287
+ }
288
+ /**
289
+ * Expects the `string` input not to match the regular expression.
290
+ * @param {string} string
291
+ * @param {RegExp} regexp
292
+ * @param {string | Error} [message]
293
+ * @returns {void}
294
+ */
295
+ export function doesNotMatch(string, regexp, message) {
296
+ internalMatch(string, regexp, message, doesNotMatch);
297
+ }
298
+ export function fail(actual, expected, message, operator, stackStartFn) {
299
+ const argsLen = arguments.length;
300
+ let internalMessage = false;
301
+ if (actual == null && argsLen <= 1) {
302
+ internalMessage = true;
303
+ message = "Failed";
304
+ } else if (argsLen === 1) {
305
+ message = actual;
306
+ actual = undefined;
307
+ } else {
308
+ if (warned === false) {
309
+ warned = true;
310
+ process.emitWarning("assert.fail() with more than one argument is deprecated. " + "Please use assert.strictEqual() instead or only pass a message.", "DeprecationWarning", "DEP0094");
311
+ }
312
+ if (argsLen === 2) operator = "!=";
313
+ }
314
+ if (message instanceof Error) throw message;
315
+ const errArgs = {
316
+ actual,
317
+ expected,
318
+ operator: operator === undefined ? "fail" : operator,
319
+ stackStartFn: stackStartFn || fail,
320
+ message
321
+ };
322
+ const err = new AssertionError(errArgs);
323
+ if (internalMessage) {
324
+ err.generatedMessage = true;
325
+ }
326
+ throw err;
327
+ }
328
+ function innerFail(obj) {
329
+ if (obj.message instanceof Error) throw obj.message;
330
+ throw new AssertionError(obj);
331
+ }
332
+ function innerOk(fn, argLen, value, message) {
333
+ if (!value) {
334
+ let generatedMessage = false;
335
+ if (argLen === 0) {
336
+ generatedMessage = true;
337
+ message = "No value argument passed to `assert.ok()`";
338
+ } else if (message == null) {
339
+ generatedMessage = true;
340
+ message = "<null>";
341
+ } else if (message instanceof Error) {
342
+ throw message;
343
+ }
344
+ const err = new AssertionError({
345
+ actual: value,
346
+ expected: true,
347
+ message,
348
+ operator: "==",
349
+ stackStartFn: fn
350
+ });
351
+ err.generatedMessage = generatedMessage;
352
+ throw err;
353
+ }
354
+ }
355
+ class Comparison {
356
+ constructor(obj, keys, actual) {
357
+ for (const key of keys) {
358
+ if (key in obj) {
359
+ if (actual !== undefined && typeof actual[key] === "string" && obj[key] instanceof RegExp && obj[key].exec(actual[key]) !== null) {
360
+ this[key] = actual[key];
361
+ } else {
362
+ this[key] = obj[key];
363
+ }
364
+ }
365
+ }
366
+ }
367
+ }
368
+ function compareExceptionKey(actual, expected, key, message, keys, fn) {
369
+ if (!(key in actual) || !isDeepStrictEqual(actual[key], expected[key])) {
370
+ if (!message) {
371
+ const a = new Comparison(actual, keys);
372
+ const b = new Comparison(expected, keys, actual);
373
+ const err = new AssertionError({
374
+ actual: a,
375
+ expected: b,
376
+ operator: "deepStrictEqual",
377
+ stackStartFn: fn
378
+ });
379
+ err.actual = actual;
380
+ err.expected = expected;
381
+ err.operator = fn.name;
382
+ throw err;
383
+ }
384
+ innerFail({
385
+ actual,
386
+ expected,
387
+ message,
388
+ operator: fn.name,
389
+ stackStartFn: fn
390
+ });
391
+ }
392
+ }
393
+ function expectedException(actual, expected, message, fn) {
394
+ let generatedMessage = false;
395
+ let throwError = false;
396
+ if (typeof expected !== "function") {
397
+ if (expected instanceof RegExp) {
398
+ const str = String(actual);
399
+ if (RegExp.prototype.exec.call(expected, str) !== null) return;
400
+ if (!message) {
401
+ generatedMessage = true;
402
+ message = "The input did not match the regular expression " + `${inspect(expected)}. Input:\n\n${inspect(str)}\n`;
403
+ }
404
+ throwError = true;
405
+ } else if (typeof actual !== "object" || actual === null) {
406
+ const err = new AssertionError({
407
+ actual,
408
+ expected,
409
+ message,
410
+ operator: "deepStrictEqual",
411
+ stackStartFn: fn
412
+ });
413
+ err.operator = fn.name;
414
+ throw err;
415
+ } else {
416
+ const keys = Object.keys(expected);
417
+ if (expected instanceof Error) {
418
+ keys.push("name", "message");
419
+ } else if (keys.length === 0) {
420
+ throw new ERR_INVALID_ARG_VALUE(
421
+ "error",
422
+ expected,
423
+ // @ts-expect-error
424
+ "may not be an empty object"
425
+ );
426
+ }
427
+ for (const key of keys) {
428
+ if (typeof actual[key] === "string" && expected[key] instanceof RegExp && expected[key].exec(actual[key]) !== null) {
429
+ continue;
430
+ }
431
+ compareExceptionKey(actual, expected, key, message, keys, fn);
432
+ }
433
+ return;
434
+ }
435
+ } else if (expected.prototype !== undefined && actual instanceof expected) {
436
+ return;
437
+ } else if (expected instanceof Error) {
438
+ if (!message) {
439
+ generatedMessage = true;
440
+ message = "The error is expected to be an instance of " + `"${expected.name}". Received `;
441
+ if (actual instanceof Error) {
442
+ const name = actual.constructor && actual.constructor.name || actual.name;
443
+ if (expected.name === name) {
444
+ message += "an error with identical name but a different prototype.";
445
+ } else {
446
+ message += `"${name}"`;
447
+ }
448
+ if (actual.message) {
449
+ message += `\n\nError message:\n\n${actual.message}`;
450
+ }
451
+ } else {
452
+ message += `"${inspect(actual, { depth: -1 })}"`;
453
+ }
454
+ }
455
+ throwError = true;
456
+ } else {
457
+ const res = Reflect.apply(expected, {}, [actual]);
458
+ if (res !== true) {
459
+ if (!message) {
460
+ generatedMessage = true;
461
+ const name = expected.name ? `"${expected.name}" ` : "";
462
+ message = `The ${name}validation function is expected to return` + ` "true". Received ${inspect(res)}`;
463
+ if (actual instanceof Error) {
464
+ message += `\n\nCaught error:\n\n${actual}`;
465
+ }
466
+ }
467
+ throwError = true;
468
+ }
469
+ }
470
+ if (throwError) {
471
+ const err = new AssertionError({
472
+ actual,
473
+ expected,
474
+ message,
475
+ operator: fn.name,
476
+ stackStartFn: fn
477
+ });
478
+ err.generatedMessage = generatedMessage;
479
+ throw err;
480
+ }
481
+ }
482
+ function getActual(fn) {
483
+ try {
484
+ fn();
485
+ } catch (error_) {
486
+ return error_;
487
+ }
488
+ return NO_EXCEPTION_SENTINEL;
489
+ }
490
+ function checkIsPromise(obj) {
491
+ return obj instanceof Promise || obj !== null && typeof obj === "object" && typeof obj.then === "function" && typeof obj.catch === "function";
492
+ }
493
+ function internalMatch(string, regexp, message, fn) {
494
+ if (!(regexp instanceof RegExp)) {
495
+ throw new ERR_INVALID_ARG_TYPE("regexp", "RegExp", regexp);
496
+ }
497
+ const match = fn === assert.match;
498
+ if (typeof string !== "string" || regexp.exec(string) !== null !== match) {
499
+ if (message instanceof Error) {
500
+ throw message;
501
+ }
502
+ const generatedMessage = !message;
503
+ message = message || (typeof string === "string" ? (match ? "The input did not match the regular expression " : "The input was expected to not match the regular expression ") + `${inspect(regexp)}. Input:\n\n${inspect(string)}\n` : "The \"string\" argument must be of type string. Received type " + `${typeof string} (${inspect(string)})`);
504
+ const err = new AssertionError({
505
+ actual: string,
506
+ expected: regexp,
507
+ message,
508
+ operator: fn?.name,
509
+ stackStartFn: fn
510
+ });
511
+ err.generatedMessage = generatedMessage;
512
+ throw err;
513
+ }
514
+ }
515
+ async function waitForActual(promiseFn) {
516
+ let resultPromise;
517
+ if (typeof promiseFn === "function") {
518
+ resultPromise = promiseFn();
519
+ if (!checkIsPromise(resultPromise)) {
520
+ throw new ERR_INVALID_RETURN_VALUE(
521
+ "instance of Promise",
522
+ "promiseFn",
523
+ // @ts-expect-error
524
+ resultPromise
525
+ );
526
+ }
527
+ } else if (checkIsPromise(promiseFn)) {
528
+ resultPromise = promiseFn;
529
+ } else {
530
+ throw new ERR_INVALID_ARG_TYPE(
531
+ "promiseFn",
532
+ ["Function", "Promise"],
533
+ // @ts-expect-error
534
+ promiseFn
535
+ );
536
+ }
537
+ try {
538
+ await resultPromise;
539
+ } catch (error_) {
540
+ return error_;
541
+ }
542
+ return NO_EXCEPTION_SENTINEL;
543
+ }
544
+ function expectsError(stackStartFn, actual, error, message) {
545
+ if (typeof error === "string") {
546
+ if (arguments.length === 4) {
547
+ throw new ERR_INVALID_ARG_TYPE(
548
+ "error",
549
+ [
550
+ "Object",
551
+ "Error",
552
+ "Function",
553
+ "RegExp"
554
+ ],
555
+ // @ts-expect-error
556
+ error
557
+ );
558
+ }
559
+ if (typeof actual === "object" && actual !== null) {
560
+ if (actual?.message === error) {
561
+ throw new ERR_AMBIGUOUS_ARGUMENT(
562
+ "error/message",
563
+ // @ts-expect-error
564
+ `The error message "${actual.message}" is identical to the message.`
565
+ );
566
+ }
567
+ } else if (actual === error) {
568
+ throw new ERR_AMBIGUOUS_ARGUMENT(
569
+ "error/message",
570
+ // @ts-expect-error
571
+ `The error "${actual}" is identical to the message.`
572
+ );
573
+ }
574
+ message = error;
575
+ error = undefined;
576
+ } else if (error != null && typeof error !== "object" && typeof error !== "function") {
577
+ throw new ERR_INVALID_ARG_TYPE(
578
+ "error",
579
+ [
580
+ "Object",
581
+ "Error",
582
+ "Function",
583
+ "RegExp"
584
+ ],
585
+ // @ts-expect-error
586
+ error
587
+ );
588
+ }
589
+ if (actual === NO_EXCEPTION_SENTINEL) {
590
+ let details = "";
591
+ if (error && error.name) {
592
+ details += ` (${error.name})`;
593
+ }
594
+ details += message ? `: ${message}` : ".";
595
+ const fnType = stackStartFn === assert.rejects ? "rejection" : "exception";
596
+ innerFail({
597
+ actual: undefined,
598
+ expected: error,
599
+ operator: stackStartFn.name,
600
+ message: `Missing expected ${fnType}${details}`,
601
+ stackStartFn
602
+ });
603
+ }
604
+ if (!error) return;
605
+ expectedException(actual, error, message, stackStartFn);
606
+ }
607
+ function hasMatchingError(actual, expected) {
608
+ if (typeof expected !== "function") {
609
+ if (expected instanceof RegExp) {
610
+ const str = String(actual);
611
+ return RegExp.prototype.exec.call(expected, str) !== null;
612
+ }
613
+ throw new ERR_INVALID_ARG_TYPE(
614
+ "expected",
615
+ ["Function", "RegExp"],
616
+ // @ts-expect-error
617
+ expected
618
+ );
619
+ }
620
+ if (expected.prototype !== undefined && actual instanceof expected) {
621
+ return true;
622
+ }
623
+ if (expected instanceof Error) {
624
+ return false;
625
+ }
626
+ return Reflect.apply(expected, {}, [actual]) === true;
627
+ }
628
+ function expectsNoError(stackStartFn, actual, error, message) {
629
+ if (actual === NO_EXCEPTION_SENTINEL) return;
630
+ if (typeof error === "string") {
631
+ message = error;
632
+ error = undefined;
633
+ }
634
+ if (!error || hasMatchingError(actual, error)) {
635
+ const details = message ? `: ${message}` : ".";
636
+ const fnType = stackStartFn === assert.doesNotReject ? "rejection" : "exception";
637
+ innerFail({
638
+ actual,
639
+ expected: error,
640
+ operator: stackStartFn?.name,
641
+ message: `Got unwanted ${fnType}${details}\n` + `Actual message: "${actual && actual.message}"`,
642
+ stackStartFn
643
+ });
644
+ }
645
+ throw actual;
646
+ }
647
+ const assert = Object.assign(ok, {});
648
+ export const CallTracker = /*@__PURE__*/ notImplementedClass("asset.CallTracker");
649
+ export const partialDeepStrictEqual = /* @__PURE__ */ notImplemented("assert.partialDeepStrictEqual");
650
+ assert.fail = fail;
651
+ assert.ok = ok;
652
+ assert.equal = equal;
653
+ assert.notEqual = notEqual;
654
+ assert.deepEqual = deepEqual;
655
+ assert.notDeepEqual = notDeepEqual;
656
+ assert.deepStrictEqual = deepStrictEqual;
657
+ assert.notDeepStrictEqual = notDeepStrictEqual;
658
+ assert.strictEqual = strictEqual;
659
+ assert.notStrictEqual = notStrictEqual;
660
+ assert.throws = throws;
661
+ assert.rejects = rejects;
662
+ assert.doesNotThrow = doesNotThrow;
663
+ assert.doesNotReject = doesNotReject;
664
+ assert.ifError = ifError;
665
+ assert.match = match;
666
+ assert.doesNotMatch = doesNotMatch;
667
+ assert.partialDeepStrictEqual = partialDeepStrictEqual;
668
+ assert.AssertionError = AssertionError;
669
+ assert.CallTracker = CallTracker;
670
+ export const strict = Object.assign(function _strict(...args) {
671
+ innerOk(strict, args.length, ...args);
672
+ }, assert, {
673
+ equal: assert.strictEqual,
674
+ deepEqual: assert.deepStrictEqual,
675
+ notEqual: assert.notStrictEqual,
676
+ notDeepEqual: assert.notDeepStrictEqual
677
+ });
678
+ assert.strict = strict;
679
+ assert.strict.strict = assert.strict;
680
+ export default assert;
worker/node_modules/unenv/dist/runtime/node/assert/strict.d.mts ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ import type nodeAssert from "node:assert";
2
+ export { AssertionError, CallTracker, strict, fail, ok, throws, rejects, doesNotThrow, doesNotReject, ifError, match, doesNotMatch, notDeepStrictEqual, notDeepStrictEqual as notDeepEqual, strictEqual, strictEqual as equal, notStrictEqual, notStrictEqual as notEqual, deepStrictEqual, deepStrictEqual as deepEqual, partialDeepStrictEqual } from "../assert.mjs";
3
+ declare const _default: typeof nodeAssert.strict;
4
+ export default _default;
worker/node_modules/unenv/dist/runtime/node/assert/strict.mjs ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { AssertionError, CallTracker, strict, fail, ok, throws, rejects, doesNotThrow, doesNotReject, ifError, match, doesNotMatch, notDeepStrictEqual, notDeepStrictEqual as notDeepEqual, strictEqual, strictEqual as equal, notStrictEqual, notStrictEqual as notEqual, deepStrictEqual, deepStrictEqual as deepEqual, partialDeepStrictEqual } from "../assert.mjs";
2
+ export { AssertionError, CallTracker, strict, fail, ok, throws, rejects, doesNotThrow, doesNotReject, ifError, match, doesNotMatch, notDeepStrictEqual, notDeepStrictEqual as notDeepEqual, strictEqual, strictEqual as equal, notStrictEqual, notStrictEqual as notEqual, deepStrictEqual, deepStrictEqual as deepEqual, partialDeepStrictEqual } from "../assert.mjs";
3
+ export default Object.assign(ok, {
4
+ AssertionError,
5
+ CallTracker,
6
+ strict,
7
+ fail,
8
+ ok,
9
+ throws,
10
+ rejects,
11
+ doesNotThrow,
12
+ doesNotReject,
13
+ ifError,
14
+ match,
15
+ doesNotMatch,
16
+ notDeepStrictEqual,
17
+ notDeepEqual,
18
+ strictEqual,
19
+ equal,
20
+ notStrictEqual,
21
+ notEqual,
22
+ deepStrictEqual,
23
+ deepEqual,
24
+ partialDeepStrictEqual
25
+ });
worker/node_modules/unenv/dist/runtime/node/async_hooks.d.mts ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ export { AsyncLocalStorage } from "./internal/async_hooks/async-local-storage.mjs";
2
+ export { AsyncResource } from "./internal/async_hooks/async-resource.mjs";
3
+ export * from "./internal/async_hooks/async-hook.mjs";
4
+ declare const _default: {};
5
+ export default _default;
worker/node_modules/unenv/dist/runtime/node/async_hooks.mjs ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { AsyncLocalStorage } from "./internal/async_hooks/async-local-storage.mjs";
2
+ import { AsyncResource } from "./internal/async_hooks/async-resource.mjs";
3
+ import { asyncWrapProviders, createHook, executionAsyncId, executionAsyncResource, triggerAsyncId } from "./internal/async_hooks/async-hook.mjs";
4
+ export { AsyncLocalStorage } from "./internal/async_hooks/async-local-storage.mjs";
5
+ export { AsyncResource } from "./internal/async_hooks/async-resource.mjs";
6
+ export * from "./internal/async_hooks/async-hook.mjs";
7
+ export default {
8
+ asyncWrapProviders,
9
+ AsyncLocalStorage,
10
+ AsyncResource,
11
+ createHook,
12
+ executionAsyncId,
13
+ executionAsyncResource,
14
+ triggerAsyncId
15
+ };
worker/node_modules/unenv/dist/runtime/node/buffer.d.mts ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type nodeBuffer from "node:buffer";
2
+ export { kMaxLength, INSPECT_MAX_BYTES, SlowBuffer } from "./internal/buffer/buffer.mjs";
3
+ export declare const Buffer: unknown;
4
+ export { File } from "./internal/buffer/file.mjs";
5
+ export declare const Blob: typeof nodeBuffer.Blob;
6
+ export declare const resolveObjectURL: unknown;
7
+ export declare const transcode: unknown;
8
+ export declare const isUtf8: unknown;
9
+ export declare const isAscii: unknown;
10
+ export declare const btoa: unknown;
11
+ export declare const atob: unknown;
12
+ export declare const kStringMaxLength = 0;
13
+ export declare const constants: {};
14
+ declare const _default: {
15
+ SlowBuffer: typeof nodeBuffer.SlowBuffer
16
+ };
17
+ export default _default;
worker/node_modules/unenv/dist/runtime/node/buffer.mjs ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { notImplemented } from "../_internal/utils.mjs";
2
+ import { Buffer as _Buffer, kMaxLength, INSPECT_MAX_BYTES, SlowBuffer } from "./internal/buffer/buffer.mjs";
3
+ import { File } from "./internal/buffer/file.mjs";
4
+ export { kMaxLength, INSPECT_MAX_BYTES, SlowBuffer } from "./internal/buffer/buffer.mjs";
5
+ export const Buffer = globalThis.Buffer || _Buffer;
6
+ export { File } from "./internal/buffer/file.mjs";
7
+ export const Blob = globalThis.Blob;
8
+ export const resolveObjectURL = /*@__PURE__*/ notImplemented("buffer.resolveObjectURL");
9
+ export const transcode = /*@__PURE__*/ notImplemented("buffer.transcode");
10
+ export const isUtf8 = /*@__PURE__*/ notImplemented("buffer.isUtf8");
11
+ export const isAscii = /*@__PURE__*/ notImplemented("buffer.isAscii");
12
+ export const btoa = globalThis.btoa.bind(globalThis);
13
+ export const atob = globalThis.atob.bind(globalThis);
14
+ export const kStringMaxLength = 0;
15
+ export const constants = {
16
+ MAX_LENGTH: kMaxLength,
17
+ MAX_STRING_LENGTH: kStringMaxLength
18
+ };
19
+ export default {
20
+ Buffer,
21
+ SlowBuffer,
22
+ kMaxLength,
23
+ INSPECT_MAX_BYTES,
24
+ Blob,
25
+ resolveObjectURL,
26
+ transcode,
27
+ btoa,
28
+ atob,
29
+ kStringMaxLength,
30
+ constants,
31
+ isUtf8,
32
+ isAscii,
33
+ File
34
+ };
worker/node_modules/unenv/dist/runtime/node/child_process.d.mts ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type nodeChildProcess from "node:child_process";
2
+ export declare const ChildProcess: typeof nodeChildProcess.ChildProcess;
3
+ export declare const _forkChild: unknown;
4
+ export declare const exec: typeof nodeChildProcess.exec;
5
+ export declare const execFile: typeof nodeChildProcess.execFile;
6
+ export declare const execFileSync: typeof nodeChildProcess.execFileSync;
7
+ export declare const execSync: typeof nodeChildProcess.execSync;
8
+ export declare const fork: typeof nodeChildProcess.fork;
9
+ export declare const spawn: typeof nodeChildProcess.spawn;
10
+ export declare const spawnSync: typeof nodeChildProcess.spawnSync;
11
+ declare const _default: typeof nodeChildProcess;
12
+ export default _default;
worker/node_modules/unenv/dist/runtime/node/child_process.mjs ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { notImplemented, notImplementedClass } from "../_internal/utils.mjs";
2
+ export const ChildProcess = /*@__PURE__*/ notImplementedClass("child_process.ChildProcess");
3
+ export const _forkChild = /*@__PURE__*/ notImplemented("child_process.ChildProcess");
4
+ export const exec = /*@__PURE__*/ notImplemented("child_process.exec");
5
+ export const execFile = /*@__PURE__*/ notImplemented("child_process.execFile");
6
+ export const execFileSync = /*@__PURE__*/ notImplemented("child_process.execFileSync");
7
+ export const execSync = /*@__PURE__*/ notImplemented("child_process.execSyn");
8
+ export const fork = /*@__PURE__*/ notImplemented("child_process.fork");
9
+ export const spawn = /*@__PURE__*/ notImplemented("child_process.spawn");
10
+ export const spawnSync = /*@__PURE__*/ notImplemented("child_process.spawnSync");
11
+ export default {
12
+ ChildProcess,
13
+ _forkChild,
14
+ exec,
15
+ execFile,
16
+ execFileSync,
17
+ execSync,
18
+ fork,
19
+ spawn,
20
+ spawnSync
21
+ };
worker/node_modules/unenv/dist/runtime/node/cluster.d.mts ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type nodeCluster from "node:cluster";
2
+ import type { Worker as NodeClusterWorker } from "node:cluster";
3
+ import { EventEmitter } from "node:events";
4
+ export declare const SCHED_NONE: typeof nodeCluster.SCHED_NONE;
5
+ export declare const SCHED_RR: typeof nodeCluster.SCHED_RR;
6
+ export declare const isMaster: typeof nodeCluster.isMaster;
7
+ export declare const isPrimary: typeof nodeCluster.isPrimary;
8
+ export declare const isWorker: typeof nodeCluster.isWorker;
9
+ export declare const schedulingPolicy: typeof nodeCluster.schedulingPolicy;
10
+ export declare const settings: typeof nodeCluster.settings;
11
+ export declare const workers: typeof nodeCluster.workers;
12
+ export declare const fork: typeof nodeCluster.fork;
13
+ export declare const disconnect: typeof nodeCluster.disconnect;
14
+ export declare const setupPrimary: typeof nodeCluster.setupPrimary;
15
+ export declare const setupMaster: typeof nodeCluster.setupMaster;
16
+ export declare const _events: unknown;
17
+ export declare const _eventsCount = 0;
18
+ export declare const _maxListeners = 0;
19
+ export declare class Worker extends EventEmitter implements NodeClusterWorker {
20
+ _connected: boolean;
21
+ id: number;
22
+ get process(): any;
23
+ get exitedAfterDisconnect();
24
+ isConnected(): boolean;
25
+ isDead(): boolean;
26
+ send(message: any, sendHandle?: any, options?: any, callback?: any): boolean;
27
+ kill(signal?: string): void;
28
+ destroy(signal?: string): void;
29
+ disconnect(): void;
30
+ }
31
+ declare const _default;
32
+ export default _default;
worker/node_modules/unenv/dist/runtime/node/cluster.mjs ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { EventEmitter } from "node:events";
2
+ import { notImplemented } from "../_internal/utils.mjs";
3
+ export const SCHED_NONE = 1;
4
+ export const SCHED_RR = 2;
5
+ export const isMaster = true;
6
+ export const isPrimary = true;
7
+ export const isWorker = false;
8
+ export const schedulingPolicy = SCHED_RR;
9
+ export const settings = {};
10
+ export const workers = {};
11
+ export const fork = /*@__PURE__*/ notImplemented("cluster.fork");
12
+ export const disconnect = /*@__PURE__*/ notImplemented("cluster.disconnect");
13
+ export const setupPrimary = /*@__PURE__*/ notImplemented("cluster.setupPrimary");
14
+ export const setupMaster = /*@__PURE__*/ notImplemented("cluster.setupMaster");
15
+ export const _events = [];
16
+ export const _eventsCount = 0;
17
+ export const _maxListeners = 0;
18
+ export class Worker extends EventEmitter {
19
+ _connected = false;
20
+ id = 0;
21
+ get process() {
22
+ return globalThis.process;
23
+ }
24
+ get exitedAfterDisconnect() {
25
+ return this._connected;
26
+ }
27
+ isConnected() {
28
+ return this._connected;
29
+ }
30
+ isDead() {
31
+ return true;
32
+ }
33
+ send(message, sendHandle, options, callback) {
34
+ return false;
35
+ }
36
+ kill(signal) {
37
+ this._connected = false;
38
+ }
39
+ destroy(signal) {
40
+ this._connected = false;
41
+ }
42
+ disconnect() {
43
+ this._connected = false;
44
+ }
45
+ }
46
+ class _Cluster extends EventEmitter {
47
+ Worker = Worker;
48
+ isMaster = isMaster;
49
+ isPrimary = isPrimary;
50
+ isWorker = isWorker;
51
+ SCHED_NONE = SCHED_NONE;
52
+ SCHED_RR = SCHED_RR;
53
+ schedulingPolicy = SCHED_RR;
54
+ settings = settings;
55
+ workers = workers;
56
+ setupPrimary() {
57
+ return setupPrimary();
58
+ }
59
+ setupMaster() {
60
+ return setupPrimary();
61
+ }
62
+ disconnect() {
63
+ return disconnect();
64
+ }
65
+ fork() {
66
+ return fork();
67
+ }
68
+ }
69
+ export default new _Cluster();
worker/node_modules/unenv/dist/runtime/node/console.d.mts ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type nodeConsole from "node:console";
2
+ import { Writable } from "node:stream";
3
+ export declare const _ignoreErrors: boolean;
4
+ export declare const _stderr: Writable;
5
+ export declare const _stdout: Writable;
6
+ export declare const log: typeof nodeConsole.log;
7
+ export declare const info: typeof nodeConsole.info;
8
+ export declare const trace: typeof nodeConsole.trace;
9
+ export declare const debug: typeof nodeConsole.debug;
10
+ export declare const table: typeof nodeConsole.table;
11
+ export declare const error: typeof nodeConsole.error;
12
+ export declare const warn: typeof nodeConsole.warn;
13
+ export declare const createTask: unknown;
14
+ export declare const assert: typeof nodeConsole.assert;
15
+ export declare const clear: typeof nodeConsole.clear;
16
+ export declare const count: typeof nodeConsole.count;
17
+ export declare const countReset: typeof nodeConsole.countReset;
18
+ export declare const dir: typeof nodeConsole.dir;
19
+ export declare const dirxml: typeof nodeConsole.dirxml;
20
+ export declare const group: typeof nodeConsole.group;
21
+ export declare const groupEnd: typeof nodeConsole.groupEnd;
22
+ export declare const groupCollapsed: typeof nodeConsole.groupCollapsed;
23
+ export declare const profile: typeof nodeConsole.profile;
24
+ export declare const profileEnd: typeof nodeConsole.profileEnd;
25
+ export declare const time: typeof nodeConsole.time;
26
+ export declare const timeEnd: typeof nodeConsole.timeEnd;
27
+ export declare const timeLog: typeof nodeConsole.timeLog;
28
+ export declare const timeStamp: typeof nodeConsole.timeStamp;
29
+ export declare const Console: typeof nodeConsole.Console;
30
+ export declare const _times: unknown;
31
+ export declare function context();
32
+ export declare const _stdoutErrorHandler: unknown;
33
+ export declare const _stderrErrorHandler: unknown;
34
+ declare const _default: {};
35
+ export default _default;
worker/node_modules/unenv/dist/runtime/node/console.mjs ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { Writable } from "node:stream";
2
+ import noop from "../mock/noop.mjs";
3
+ import { notImplemented, notImplementedClass } from "../_internal/utils.mjs";
4
+ const _console = globalThis.console;
5
+ export const _ignoreErrors = true;
6
+ export const _stderr = new Writable();
7
+ export const _stdout = new Writable();
8
+ export const log = _console?.log ?? noop;
9
+ export const info = _console?.info ?? log;
10
+ export const trace = _console?.trace ?? info;
11
+ export const debug = _console?.debug ?? log;
12
+ export const table = _console?.table ?? log;
13
+ export const error = _console?.error ?? log;
14
+ export const warn = _console?.warn ?? error;
15
+ export const createTask = _console?.createTask ?? /*@__PURE__*/ notImplemented("console.createTask");
16
+ export const assert = /*@__PURE__*/ notImplemented("console.assert");
17
+ export const clear = _console?.clear ?? noop;
18
+ export const count = _console?.count ?? noop;
19
+ export const countReset = _console?.countReset ?? noop;
20
+ export const dir = _console?.dir ?? noop;
21
+ export const dirxml = _console?.dirxml ?? noop;
22
+ export const group = _console?.group ?? noop;
23
+ export const groupEnd = _console?.groupEnd ?? noop;
24
+ export const groupCollapsed = _console?.groupCollapsed ?? noop;
25
+ export const profile = _console?.profile ?? noop;
26
+ export const profileEnd = _console?.profileEnd ?? noop;
27
+ export const time = _console?.time ?? noop;
28
+ export const timeEnd = _console?.timeEnd ?? noop;
29
+ export const timeLog = _console?.timeLog ?? noop;
30
+ export const timeStamp = _console?.timeStamp ?? noop;
31
+ export const Console = _console?.Console ?? /*@__PURE__*/ notImplementedClass("console.Console");
32
+ export const _times = /*@__PURE__*/ new Map();
33
+ export function context() {
34
+ return _console;
35
+ }
36
+ export const _stdoutErrorHandler = noop;
37
+ export const _stderrErrorHandler = noop;
38
+ export default {
39
+ _times,
40
+ _ignoreErrors,
41
+ _stdoutErrorHandler,
42
+ _stderrErrorHandler,
43
+ _stdout,
44
+ _stderr,
45
+ assert,
46
+ clear,
47
+ Console,
48
+ count,
49
+ countReset,
50
+ debug,
51
+ dir,
52
+ dirxml,
53
+ error,
54
+ context,
55
+ createTask,
56
+ group,
57
+ groupEnd,
58
+ groupCollapsed,
59
+ info,
60
+ log,
61
+ profile,
62
+ profileEnd,
63
+ table,
64
+ time,
65
+ timeEnd,
66
+ timeLog,
67
+ timeStamp,
68
+ trace,
69
+ warn
70
+ };
worker/node_modules/unenv/dist/runtime/node/constants.d.mts ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ export * from "./internal/fs/constants.mjs";
2
+ export { OPENSSL_VERSION_NUMBER, SSL_OP_ALL, SSL_OP_ALLOW_NO_DHE_KEX, SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION, SSL_OP_CIPHER_SERVER_PREFERENCE, SSL_OP_CISCO_ANYCONNECT, SSL_OP_COOKIE_EXCHANGE, SSL_OP_CRYPTOPRO_TLSEXT_BUG, SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS, SSL_OP_LEGACY_SERVER_CONNECT, SSL_OP_NO_COMPRESSION, SSL_OP_NO_ENCRYPT_THEN_MAC, SSL_OP_NO_QUERY_MTU, SSL_OP_NO_RENEGOTIATION, SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION, SSL_OP_NO_SSLv2, SSL_OP_NO_SSLv3, SSL_OP_NO_TICKET, SSL_OP_NO_TLSv1, SSL_OP_NO_TLSv1_1, SSL_OP_NO_TLSv1_2, SSL_OP_NO_TLSv1_3, SSL_OP_PRIORITIZE_CHACHA, SSL_OP_TLS_ROLLBACK_BUG, ENGINE_METHOD_RSA, ENGINE_METHOD_DSA, ENGINE_METHOD_DH, ENGINE_METHOD_RAND, ENGINE_METHOD_EC, ENGINE_METHOD_CIPHERS, ENGINE_METHOD_DIGESTS, ENGINE_METHOD_PKEY_METHS, ENGINE_METHOD_PKEY_ASN1_METHS, ENGINE_METHOD_ALL, ENGINE_METHOD_NONE, DH_CHECK_P_NOT_SAFE_PRIME, DH_CHECK_P_NOT_PRIME, DH_UNABLE_TO_CHECK_GENERATOR, DH_NOT_SUITABLE_GENERATOR, RSA_PKCS1_PADDING, RSA_NO_PADDING, RSA_PKCS1_OAEP_PADDING, RSA_X931_PADDING, RSA_PKCS1_PSS_PADDING, RSA_PSS_SALTLEN_DIGEST, RSA_PSS_SALTLEN_MAX_SIGN, RSA_PSS_SALTLEN_AUTO, defaultCoreCipherList, TLS1_VERSION, TLS1_1_VERSION, TLS1_2_VERSION, TLS1_3_VERSION, POINT_CONVERSION_COMPRESSED, POINT_CONVERSION_UNCOMPRESSED, POINT_CONVERSION_HYBRID } from "./internal/crypto/constants.mjs";
3
+ export declare const;
4
+ export declare const;
5
+ export declare const;
6
+ export declare const;
7
+ declare const _default: {};
8
+ export default _default;
worker/node_modules/unenv/dist/runtime/node/constants.mjs ADDED
@@ -0,0 +1,247 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { errno, priority, signals, dlopen } from "./internal/os/constants.mjs";
2
+ import { UV_FS_SYMLINK_DIR, UV_FS_SYMLINK_JUNCTION, O_RDONLY, O_WRONLY, O_RDWR, UV_DIRENT_UNKNOWN, UV_DIRENT_FILE, UV_DIRENT_DIR, UV_DIRENT_LINK, UV_DIRENT_FIFO, UV_DIRENT_SOCKET, UV_DIRENT_CHAR, UV_DIRENT_BLOCK, EXTENSIONLESS_FORMAT_JAVASCRIPT, EXTENSIONLESS_FORMAT_WASM, S_IFMT, S_IFREG, S_IFDIR, S_IFCHR, S_IFBLK, S_IFIFO, S_IFLNK, S_IFSOCK, O_CREAT, O_EXCL, UV_FS_O_FILEMAP, O_NOCTTY, O_TRUNC, O_APPEND, O_DIRECTORY, O_NOATIME, O_NOFOLLOW, O_SYNC, O_DSYNC, O_DIRECT, O_NONBLOCK, S_IRWXU, S_IRUSR, S_IWUSR, S_IXUSR, S_IRWXG, S_IRGRP, S_IWGRP, S_IXGRP, S_IRWXO, S_IROTH, S_IWOTH, S_IXOTH, F_OK, R_OK, W_OK, X_OK, UV_FS_COPYFILE_EXCL, COPYFILE_EXCL, UV_FS_COPYFILE_FICLONE, COPYFILE_FICLONE, UV_FS_COPYFILE_FICLONE_FORCE, COPYFILE_FICLONE_FORCE } from "./internal/fs/constants.mjs";
3
+ import { OPENSSL_VERSION_NUMBER, SSL_OP_ALL, SSL_OP_ALLOW_NO_DHE_KEX, SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION, SSL_OP_CIPHER_SERVER_PREFERENCE, SSL_OP_CISCO_ANYCONNECT, SSL_OP_COOKIE_EXCHANGE, SSL_OP_CRYPTOPRO_TLSEXT_BUG, SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS, SSL_OP_LEGACY_SERVER_CONNECT, SSL_OP_NO_COMPRESSION, SSL_OP_NO_ENCRYPT_THEN_MAC, SSL_OP_NO_QUERY_MTU, SSL_OP_NO_RENEGOTIATION, SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION, SSL_OP_NO_SSLv2, SSL_OP_NO_SSLv3, SSL_OP_NO_TICKET, SSL_OP_NO_TLSv1, SSL_OP_NO_TLSv1_1, SSL_OP_NO_TLSv1_2, SSL_OP_NO_TLSv1_3, SSL_OP_PRIORITIZE_CHACHA, SSL_OP_TLS_ROLLBACK_BUG, ENGINE_METHOD_RSA, ENGINE_METHOD_DSA, ENGINE_METHOD_DH, ENGINE_METHOD_RAND, ENGINE_METHOD_EC, ENGINE_METHOD_CIPHERS, ENGINE_METHOD_DIGESTS, ENGINE_METHOD_PKEY_METHS, ENGINE_METHOD_PKEY_ASN1_METHS, ENGINE_METHOD_ALL, ENGINE_METHOD_NONE, DH_CHECK_P_NOT_SAFE_PRIME, DH_CHECK_P_NOT_PRIME, DH_UNABLE_TO_CHECK_GENERATOR, DH_NOT_SUITABLE_GENERATOR, RSA_PKCS1_PADDING, RSA_NO_PADDING, RSA_PKCS1_OAEP_PADDING, RSA_X931_PADDING, RSA_PKCS1_PSS_PADDING, RSA_PSS_SALTLEN_DIGEST, RSA_PSS_SALTLEN_MAX_SIGN, RSA_PSS_SALTLEN_AUTO, defaultCoreCipherList, TLS1_VERSION, TLS1_1_VERSION, TLS1_2_VERSION, TLS1_3_VERSION, POINT_CONVERSION_COMPRESSED, POINT_CONVERSION_UNCOMPRESSED, POINT_CONVERSION_HYBRID } from "./internal/crypto/constants.mjs";
4
+ export * from "./internal/fs/constants.mjs";
5
+ export { OPENSSL_VERSION_NUMBER, SSL_OP_ALL, SSL_OP_ALLOW_NO_DHE_KEX, SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION, SSL_OP_CIPHER_SERVER_PREFERENCE, SSL_OP_CISCO_ANYCONNECT, SSL_OP_COOKIE_EXCHANGE, SSL_OP_CRYPTOPRO_TLSEXT_BUG, SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS, SSL_OP_LEGACY_SERVER_CONNECT, SSL_OP_NO_COMPRESSION, SSL_OP_NO_ENCRYPT_THEN_MAC, SSL_OP_NO_QUERY_MTU, SSL_OP_NO_RENEGOTIATION, SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION, SSL_OP_NO_SSLv2, SSL_OP_NO_SSLv3, SSL_OP_NO_TICKET, SSL_OP_NO_TLSv1, SSL_OP_NO_TLSv1_1, SSL_OP_NO_TLSv1_2, SSL_OP_NO_TLSv1_3, SSL_OP_PRIORITIZE_CHACHA, SSL_OP_TLS_ROLLBACK_BUG, ENGINE_METHOD_RSA, ENGINE_METHOD_DSA, ENGINE_METHOD_DH, ENGINE_METHOD_RAND, ENGINE_METHOD_EC, ENGINE_METHOD_CIPHERS, ENGINE_METHOD_DIGESTS, ENGINE_METHOD_PKEY_METHS, ENGINE_METHOD_PKEY_ASN1_METHS, ENGINE_METHOD_ALL, ENGINE_METHOD_NONE, DH_CHECK_P_NOT_SAFE_PRIME, DH_CHECK_P_NOT_PRIME, DH_UNABLE_TO_CHECK_GENERATOR, DH_NOT_SUITABLE_GENERATOR, RSA_PKCS1_PADDING, RSA_NO_PADDING, RSA_PKCS1_OAEP_PADDING, RSA_X931_PADDING, RSA_PKCS1_PSS_PADDING, RSA_PSS_SALTLEN_DIGEST, RSA_PSS_SALTLEN_MAX_SIGN, RSA_PSS_SALTLEN_AUTO, defaultCoreCipherList, TLS1_VERSION, TLS1_1_VERSION, TLS1_2_VERSION, TLS1_3_VERSION, POINT_CONVERSION_COMPRESSED, POINT_CONVERSION_UNCOMPRESSED, POINT_CONVERSION_HYBRID } from "./internal/crypto/constants.mjs";
6
+ export const { RTLD_LAZY, RTLD_NOW, RTLD_GLOBAL, RTLD_LOCAL, RTLD_DEEPBIND } = dlopen;
7
+ export const { E2BIG, EACCES, EADDRINUSE, EADDRNOTAVAIL, EAFNOSUPPORT, EAGAIN, EALREADY, EBADF, EBADMSG, EBUSY, ECANCELED, ECHILD, ECONNABORTED, ECONNREFUSED, ECONNRESET, EDEADLK, EDESTADDRREQ, EDOM, EDQUOT, EEXIST, EFAULT, EFBIG, EHOSTUNREACH, EIDRM, EILSEQ, EINPROGRESS, EINTR, EINVAL, EIO, EISCONN, EISDIR, ELOOP, EMFILE, EMLINK, EMSGSIZE, EMULTIHOP, ENAMETOOLONG, ENETDOWN, ENETRESET, ENETUNREACH, ENFILE, ENOBUFS, ENODATA, ENODEV, ENOENT, ENOEXEC, ENOLCK, ENOLINK, ENOMEM, ENOMSG, ENOPROTOOPT, ENOSPC, ENOSR, ENOSTR, ENOSYS, ENOTCONN, ENOTDIR, ENOTEMPTY, ENOTSOCK, ENOTSUP, ENOTTY, ENXIO, EOPNOTSUPP, EOVERFLOW, EPERM, EPIPE, EPROTO, EPROTONOSUPPORT, EPROTOTYPE, ERANGE, EROFS, ESPIPE, ESRCH, ESTALE, ETIME, ETIMEDOUT, ETXTBSY, EWOULDBLOCK, EXDEV } = errno;
8
+ export const { PRIORITY_LOW, PRIORITY_BELOW_NORMAL, PRIORITY_NORMAL, PRIORITY_ABOVE_NORMAL, PRIORITY_HIGH, PRIORITY_HIGHEST } = priority;
9
+ export const { SIGHUP, SIGINT, SIGQUIT, SIGILL, SIGTRAP, SIGABRT, SIGIOT, SIGBUS, SIGFPE, SIGKILL, SIGUSR1, SIGSEGV, SIGUSR2, SIGPIPE, SIGALRM, SIGTERM, SIGCHLD, SIGSTKFLT, SIGCONT, SIGSTOP, SIGTSTP, SIGTTIN, SIGTTOU, SIGURG, SIGXCPU, SIGXFSZ, SIGVTALRM, SIGPROF, SIGWINCH, SIGIO, SIGPOLL, SIGPWR, SIGSYS } = signals;
10
+ export default {
11
+ OPENSSL_VERSION_NUMBER,
12
+ SSL_OP_ALL,
13
+ SSL_OP_ALLOW_NO_DHE_KEX,
14
+ SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION,
15
+ SSL_OP_CIPHER_SERVER_PREFERENCE,
16
+ SSL_OP_CISCO_ANYCONNECT,
17
+ SSL_OP_COOKIE_EXCHANGE,
18
+ SSL_OP_CRYPTOPRO_TLSEXT_BUG,
19
+ SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS,
20
+ SSL_OP_LEGACY_SERVER_CONNECT,
21
+ SSL_OP_NO_COMPRESSION,
22
+ SSL_OP_NO_ENCRYPT_THEN_MAC,
23
+ SSL_OP_NO_QUERY_MTU,
24
+ SSL_OP_NO_RENEGOTIATION,
25
+ SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION,
26
+ SSL_OP_NO_SSLv2,
27
+ SSL_OP_NO_SSLv3,
28
+ SSL_OP_NO_TICKET,
29
+ SSL_OP_NO_TLSv1,
30
+ SSL_OP_NO_TLSv1_1,
31
+ SSL_OP_NO_TLSv1_2,
32
+ SSL_OP_NO_TLSv1_3,
33
+ SSL_OP_PRIORITIZE_CHACHA,
34
+ SSL_OP_TLS_ROLLBACK_BUG,
35
+ ENGINE_METHOD_RSA,
36
+ ENGINE_METHOD_DSA,
37
+ ENGINE_METHOD_DH,
38
+ ENGINE_METHOD_RAND,
39
+ ENGINE_METHOD_EC,
40
+ ENGINE_METHOD_CIPHERS,
41
+ ENGINE_METHOD_DIGESTS,
42
+ ENGINE_METHOD_PKEY_METHS,
43
+ ENGINE_METHOD_PKEY_ASN1_METHS,
44
+ ENGINE_METHOD_ALL,
45
+ ENGINE_METHOD_NONE,
46
+ DH_CHECK_P_NOT_SAFE_PRIME,
47
+ DH_CHECK_P_NOT_PRIME,
48
+ DH_UNABLE_TO_CHECK_GENERATOR,
49
+ DH_NOT_SUITABLE_GENERATOR,
50
+ RSA_PKCS1_PADDING,
51
+ RSA_NO_PADDING,
52
+ RSA_PKCS1_OAEP_PADDING,
53
+ RSA_X931_PADDING,
54
+ RSA_PKCS1_PSS_PADDING,
55
+ RSA_PSS_SALTLEN_DIGEST,
56
+ RSA_PSS_SALTLEN_MAX_SIGN,
57
+ RSA_PSS_SALTLEN_AUTO,
58
+ defaultCoreCipherList,
59
+ TLS1_VERSION,
60
+ TLS1_1_VERSION,
61
+ TLS1_2_VERSION,
62
+ TLS1_3_VERSION,
63
+ POINT_CONVERSION_COMPRESSED,
64
+ POINT_CONVERSION_UNCOMPRESSED,
65
+ POINT_CONVERSION_HYBRID,
66
+ UV_FS_SYMLINK_DIR,
67
+ UV_FS_SYMLINK_JUNCTION,
68
+ O_RDONLY,
69
+ O_WRONLY,
70
+ O_RDWR,
71
+ UV_DIRENT_UNKNOWN,
72
+ UV_DIRENT_FILE,
73
+ UV_DIRENT_DIR,
74
+ UV_DIRENT_LINK,
75
+ UV_DIRENT_FIFO,
76
+ UV_DIRENT_SOCKET,
77
+ UV_DIRENT_CHAR,
78
+ UV_DIRENT_BLOCK,
79
+ EXTENSIONLESS_FORMAT_JAVASCRIPT,
80
+ EXTENSIONLESS_FORMAT_WASM,
81
+ S_IFMT,
82
+ S_IFREG,
83
+ S_IFDIR,
84
+ S_IFCHR,
85
+ S_IFBLK,
86
+ S_IFIFO,
87
+ S_IFLNK,
88
+ S_IFSOCK,
89
+ O_CREAT,
90
+ O_EXCL,
91
+ UV_FS_O_FILEMAP,
92
+ O_NOCTTY,
93
+ O_TRUNC,
94
+ O_APPEND,
95
+ O_DIRECTORY,
96
+ O_NOATIME,
97
+ O_NOFOLLOW,
98
+ O_SYNC,
99
+ O_DSYNC,
100
+ O_DIRECT,
101
+ O_NONBLOCK,
102
+ S_IRWXU,
103
+ S_IRUSR,
104
+ S_IWUSR,
105
+ S_IXUSR,
106
+ S_IRWXG,
107
+ S_IRGRP,
108
+ S_IWGRP,
109
+ S_IXGRP,
110
+ S_IRWXO,
111
+ S_IROTH,
112
+ S_IWOTH,
113
+ S_IXOTH,
114
+ F_OK,
115
+ R_OK,
116
+ W_OK,
117
+ X_OK,
118
+ UV_FS_COPYFILE_EXCL,
119
+ COPYFILE_EXCL,
120
+ UV_FS_COPYFILE_FICLONE,
121
+ COPYFILE_FICLONE,
122
+ UV_FS_COPYFILE_FICLONE_FORCE,
123
+ COPYFILE_FICLONE_FORCE,
124
+ E2BIG,
125
+ EACCES,
126
+ EADDRINUSE,
127
+ EADDRNOTAVAIL,
128
+ EAFNOSUPPORT,
129
+ EAGAIN,
130
+ EALREADY,
131
+ EBADF,
132
+ EBADMSG,
133
+ EBUSY,
134
+ ECANCELED,
135
+ ECHILD,
136
+ ECONNABORTED,
137
+ ECONNREFUSED,
138
+ ECONNRESET,
139
+ EDEADLK,
140
+ EDESTADDRREQ,
141
+ EDOM,
142
+ EDQUOT,
143
+ EEXIST,
144
+ EFAULT,
145
+ EFBIG,
146
+ EHOSTUNREACH,
147
+ EIDRM,
148
+ EILSEQ,
149
+ EINPROGRESS,
150
+ EINTR,
151
+ EINVAL,
152
+ EIO,
153
+ EISCONN,
154
+ EISDIR,
155
+ ELOOP,
156
+ EMFILE,
157
+ EMLINK,
158
+ EMSGSIZE,
159
+ EMULTIHOP,
160
+ ENAMETOOLONG,
161
+ ENETDOWN,
162
+ ENETRESET,
163
+ ENETUNREACH,
164
+ ENFILE,
165
+ ENOBUFS,
166
+ ENODATA,
167
+ ENODEV,
168
+ ENOENT,
169
+ ENOEXEC,
170
+ ENOLCK,
171
+ ENOLINK,
172
+ ENOMEM,
173
+ ENOMSG,
174
+ ENOPROTOOPT,
175
+ ENOSPC,
176
+ ENOSR,
177
+ ENOSTR,
178
+ ENOSYS,
179
+ ENOTCONN,
180
+ ENOTDIR,
181
+ ENOTEMPTY,
182
+ ENOTSOCK,
183
+ ENOTSUP,
184
+ ENOTTY,
185
+ ENXIO,
186
+ EOPNOTSUPP,
187
+ EOVERFLOW,
188
+ EPERM,
189
+ EPIPE,
190
+ EPROTO,
191
+ EPROTONOSUPPORT,
192
+ EPROTOTYPE,
193
+ ERANGE,
194
+ EROFS,
195
+ ESPIPE,
196
+ ESRCH,
197
+ ESTALE,
198
+ ETIME,
199
+ ETIMEDOUT,
200
+ ETXTBSY,
201
+ EWOULDBLOCK,
202
+ EXDEV,
203
+ RTLD_LAZY,
204
+ RTLD_NOW,
205
+ RTLD_GLOBAL,
206
+ RTLD_LOCAL,
207
+ RTLD_DEEPBIND,
208
+ PRIORITY_LOW,
209
+ PRIORITY_BELOW_NORMAL,
210
+ PRIORITY_NORMAL,
211
+ PRIORITY_ABOVE_NORMAL,
212
+ PRIORITY_HIGH,
213
+ PRIORITY_HIGHEST,
214
+ SIGHUP,
215
+ SIGINT,
216
+ SIGQUIT,
217
+ SIGILL,
218
+ SIGTRAP,
219
+ SIGABRT,
220
+ SIGIOT,
221
+ SIGBUS,
222
+ SIGFPE,
223
+ SIGKILL,
224
+ SIGUSR1,
225
+ SIGSEGV,
226
+ SIGUSR2,
227
+ SIGPIPE,
228
+ SIGALRM,
229
+ SIGTERM,
230
+ SIGCHLD,
231
+ SIGSTKFLT,
232
+ SIGCONT,
233
+ SIGSTOP,
234
+ SIGTSTP,
235
+ SIGTTIN,
236
+ SIGTTOU,
237
+ SIGURG,
238
+ SIGXCPU,
239
+ SIGXFSZ,
240
+ SIGVTALRM,
241
+ SIGPROF,
242
+ SIGWINCH,
243
+ SIGIO,
244
+ SIGPOLL,
245
+ SIGPWR,
246
+ SIGSYS
247
+ };
worker/node_modules/unenv/dist/runtime/node/crypto.d.mts ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ export * from "./internal/crypto/web.mjs";
2
+ export * from "./internal/crypto/node.mjs";
3
+ export declare const constants: {};
4
+ declare const _default: {};
5
+ export default _default;
worker/node_modules/unenv/dist/runtime/node/crypto.mjs ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { getRandomValues, randomUUID, subtle } from "./internal/crypto/web.mjs";
2
+ import { Certificate, Cipher, Cipheriv, Decipher, Decipheriv, DiffieHellman, DiffieHellmanGroup, ECDH, Hash, Hmac, KeyObject, Sign, Verify, X509Certificate, checkPrime, checkPrimeSync, createCipheriv, createDecipheriv, createDiffieHellman, createDiffieHellmanGroup, createECDH, createHash, createHmac, createPrivateKey, createPublicKey, createSecretKey, createSign, createVerify, diffieHellman, fips, generateKey, generateKeyPair, generateKeyPairSync, generateKeySync, generatePrime, generatePrimeSync, getCipherInfo, getCiphers, getCurves, getDiffieHellman, getFips, getHashes, hash, hkdf, hkdfSync, pbkdf2, pbkdf2Sync, privateDecrypt, privateEncrypt, pseudoRandomBytes, publicDecrypt, prng, publicEncrypt, randomBytes, randomFill, randomFillSync, randomInt, rng, scrypt, scryptSync, secureHeapUsed, setEngine, setFips, sign, timingSafeEqual, verify, webcrypto } from "./internal/crypto/node.mjs";
3
+ import { OPENSSL_VERSION_NUMBER, SSL_OP_ALL, SSL_OP_ALLOW_NO_DHE_KEX, SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION, SSL_OP_CIPHER_SERVER_PREFERENCE, SSL_OP_CISCO_ANYCONNECT, SSL_OP_COOKIE_EXCHANGE, SSL_OP_CRYPTOPRO_TLSEXT_BUG, SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS, SSL_OP_LEGACY_SERVER_CONNECT, SSL_OP_NO_COMPRESSION, SSL_OP_NO_ENCRYPT_THEN_MAC, SSL_OP_NO_QUERY_MTU, SSL_OP_NO_RENEGOTIATION, SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION, SSL_OP_NO_SSLv2, SSL_OP_NO_SSLv3, SSL_OP_NO_TICKET, SSL_OP_NO_TLSv1, SSL_OP_NO_TLSv1_1, SSL_OP_NO_TLSv1_2, SSL_OP_NO_TLSv1_3, SSL_OP_PRIORITIZE_CHACHA, SSL_OP_TLS_ROLLBACK_BUG, ENGINE_METHOD_RSA, ENGINE_METHOD_DSA, ENGINE_METHOD_DH, ENGINE_METHOD_RAND, ENGINE_METHOD_EC, ENGINE_METHOD_CIPHERS, ENGINE_METHOD_DIGESTS, ENGINE_METHOD_PKEY_METHS, ENGINE_METHOD_PKEY_ASN1_METHS, ENGINE_METHOD_ALL, ENGINE_METHOD_NONE, DH_CHECK_P_NOT_SAFE_PRIME, DH_CHECK_P_NOT_PRIME, DH_UNABLE_TO_CHECK_GENERATOR, DH_NOT_SUITABLE_GENERATOR, RSA_PKCS1_PADDING, RSA_NO_PADDING, RSA_PKCS1_OAEP_PADDING, RSA_X931_PADDING, RSA_PKCS1_PSS_PADDING, RSA_PSS_SALTLEN_DIGEST, RSA_PSS_SALTLEN_MAX_SIGN, RSA_PSS_SALTLEN_AUTO, defaultCoreCipherList, TLS1_VERSION, TLS1_1_VERSION, TLS1_2_VERSION, TLS1_3_VERSION, POINT_CONVERSION_COMPRESSED, POINT_CONVERSION_UNCOMPRESSED, POINT_CONVERSION_HYBRID, defaultCipherList } from "./internal/crypto/constants.mjs";
4
+ export * from "./internal/crypto/web.mjs";
5
+ export * from "./internal/crypto/node.mjs";
6
+ export const constants = {
7
+ OPENSSL_VERSION_NUMBER,
8
+ SSL_OP_ALL,
9
+ SSL_OP_ALLOW_NO_DHE_KEX,
10
+ SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION,
11
+ SSL_OP_CIPHER_SERVER_PREFERENCE,
12
+ SSL_OP_CISCO_ANYCONNECT,
13
+ SSL_OP_COOKIE_EXCHANGE,
14
+ SSL_OP_CRYPTOPRO_TLSEXT_BUG,
15
+ SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS,
16
+ SSL_OP_LEGACY_SERVER_CONNECT,
17
+ SSL_OP_NO_COMPRESSION,
18
+ SSL_OP_NO_ENCRYPT_THEN_MAC,
19
+ SSL_OP_NO_QUERY_MTU,
20
+ SSL_OP_NO_RENEGOTIATION,
21
+ SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION,
22
+ SSL_OP_NO_SSLv2,
23
+ SSL_OP_NO_SSLv3,
24
+ SSL_OP_NO_TICKET,
25
+ SSL_OP_NO_TLSv1,
26
+ SSL_OP_NO_TLSv1_1,
27
+ SSL_OP_NO_TLSv1_2,
28
+ SSL_OP_NO_TLSv1_3,
29
+ SSL_OP_PRIORITIZE_CHACHA,
30
+ SSL_OP_TLS_ROLLBACK_BUG,
31
+ ENGINE_METHOD_RSA,
32
+ ENGINE_METHOD_DSA,
33
+ ENGINE_METHOD_DH,
34
+ ENGINE_METHOD_RAND,
35
+ ENGINE_METHOD_EC,
36
+ ENGINE_METHOD_CIPHERS,
37
+ ENGINE_METHOD_DIGESTS,
38
+ ENGINE_METHOD_PKEY_METHS,
39
+ ENGINE_METHOD_PKEY_ASN1_METHS,
40
+ ENGINE_METHOD_ALL,
41
+ ENGINE_METHOD_NONE,
42
+ DH_CHECK_P_NOT_SAFE_PRIME,
43
+ DH_CHECK_P_NOT_PRIME,
44
+ DH_UNABLE_TO_CHECK_GENERATOR,
45
+ DH_NOT_SUITABLE_GENERATOR,
46
+ RSA_PKCS1_PADDING,
47
+ RSA_NO_PADDING,
48
+ RSA_PKCS1_OAEP_PADDING,
49
+ RSA_X931_PADDING,
50
+ RSA_PKCS1_PSS_PADDING,
51
+ RSA_PSS_SALTLEN_DIGEST,
52
+ RSA_PSS_SALTLEN_MAX_SIGN,
53
+ RSA_PSS_SALTLEN_AUTO,
54
+ defaultCoreCipherList,
55
+ TLS1_VERSION,
56
+ TLS1_1_VERSION,
57
+ TLS1_2_VERSION,
58
+ TLS1_3_VERSION,
59
+ POINT_CONVERSION_COMPRESSED,
60
+ POINT_CONVERSION_UNCOMPRESSED,
61
+ POINT_CONVERSION_HYBRID,
62
+ defaultCipherList
63
+ };
64
+ export default {
65
+ constants,
66
+ getRandomValues,
67
+ randomUUID,
68
+ subtle,
69
+ Certificate,
70
+ Cipher,
71
+ Cipheriv,
72
+ Decipher,
73
+ Decipheriv,
74
+ DiffieHellman,
75
+ DiffieHellmanGroup,
76
+ ECDH,
77
+ Hash,
78
+ Hmac,
79
+ KeyObject,
80
+ Sign,
81
+ Verify,
82
+ X509Certificate,
83
+ checkPrime,
84
+ checkPrimeSync,
85
+ createCipheriv,
86
+ createDecipheriv,
87
+ createDiffieHellman,
88
+ createDiffieHellmanGroup,
89
+ createECDH,
90
+ createHash,
91
+ createHmac,
92
+ createPrivateKey,
93
+ createPublicKey,
94
+ createSecretKey,
95
+ createSign,
96
+ createVerify,
97
+ diffieHellman,
98
+ fips,
99
+ generateKey,
100
+ generateKeyPair,
101
+ generateKeyPairSync,
102
+ generateKeySync,
103
+ generatePrime,
104
+ generatePrimeSync,
105
+ getCipherInfo,
106
+ getCiphers,
107
+ getCurves,
108
+ getDiffieHellman,
109
+ getFips,
110
+ getHashes,
111
+ hash,
112
+ hkdf,
113
+ hkdfSync,
114
+ pbkdf2,
115
+ pbkdf2Sync,
116
+ privateDecrypt,
117
+ privateEncrypt,
118
+ pseudoRandomBytes,
119
+ publicDecrypt,
120
+ prng,
121
+ publicEncrypt,
122
+ randomBytes,
123
+ randomFill,
124
+ randomFillSync,
125
+ randomInt,
126
+ rng,
127
+ scrypt,
128
+ scryptSync,
129
+ secureHeapUsed,
130
+ setEngine,
131
+ setFips,
132
+ sign,
133
+ timingSafeEqual,
134
+ verify,
135
+ webcrypto
136
+ };
worker/node_modules/unenv/dist/runtime/node/dgram.d.mts ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ import type nodeDgram from "node:dgram";
2
+ export { Socket } from "./internal/dgram/socket.mjs";
3
+ export declare const _createSocketHandle: unknown;
4
+ export declare const createSocket: typeof nodeDgram.createSocket;
5
+ declare const _default: typeof nodeDgram;
6
+ export default _default;
worker/node_modules/unenv/dist/runtime/node/dgram.mjs ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import noop from "../mock/noop.mjs";
2
+ import { Socket } from "./internal/dgram/socket.mjs";
3
+ export { Socket } from "./internal/dgram/socket.mjs";
4
+ export const _createSocketHandle = noop;
5
+ export const createSocket = function() {
6
+ return new Socket();
7
+ };
8
+ export default {
9
+ Socket,
10
+ _createSocketHandle,
11
+ createSocket
12
+ };
worker/node_modules/unenv/dist/runtime/node/diagnostics_channel.d.mts ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import type nodeDiagnosticsChannel from "node:diagnostics_channel";
2
+ export { Channel } from "./internal/diagnostics_channel/channel.mjs";
3
+ export declare const channel: typeof nodeDiagnosticsChannel.channel;
4
+ export declare const hasSubscribers: typeof nodeDiagnosticsChannel.hasSubscribers;
5
+ export declare const subscribe: typeof nodeDiagnosticsChannel.subscribe;
6
+ export declare const unsubscribe: typeof nodeDiagnosticsChannel.unsubscribe;
7
+ export declare const tracingChannel: typeof nodeDiagnosticsChannel.tracingChannel;
8
+ declare const _default: {};
9
+ export default _default;
worker/node_modules/unenv/dist/runtime/node/diagnostics_channel.mjs ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { Channel, getChannels } from "./internal/diagnostics_channel/channel.mjs";
2
+ import { TracingChannel } from "./internal/diagnostics_channel/tracing-channel.mjs";
3
+ export { Channel } from "./internal/diagnostics_channel/channel.mjs";
4
+ export const channel = function(name) {
5
+ const channels = getChannels();
6
+ if (name in channels) {
7
+ return channels[name];
8
+ }
9
+ return new Channel(name);
10
+ };
11
+ export const hasSubscribers = function(name) {
12
+ const channels = getChannels();
13
+ const channel = channels[name];
14
+ return channel && channel.hasSubscribers;
15
+ };
16
+ export const subscribe = function(name, onMessage) {
17
+ channel(name).subscribe(onMessage);
18
+ };
19
+ export const unsubscribe = function(name, onMessage) {
20
+ return channel(name).unsubscribe(onMessage);
21
+ };
22
+ export const tracingChannel = function(name) {
23
+ return new TracingChannel(name);
24
+ };
25
+ export default {
26
+ Channel,
27
+ channel,
28
+ hasSubscribers,
29
+ subscribe,
30
+ tracingChannel,
31
+ unsubscribe
32
+ };
worker/node_modules/unenv/dist/runtime/node/dns.d.mts ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type nodeDns from "node:dns";
2
+ import promises from "node:dns/promises";
3
+ export { promises };
4
+ export declare const Resolver: typeof nodeDns.Resolver;
5
+ export declare const getDefaultResultOrder: typeof nodeDns.getDefaultResultOrder;
6
+ export declare const getServers: typeof nodeDns.getServers;
7
+ export declare const lookup: typeof nodeDns.lookup;
8
+ export declare const lookupService: typeof nodeDns.lookupService;
9
+ export declare const resolve: typeof nodeDns.resolve;
10
+ export declare const resolve4: typeof nodeDns.resolve4;
11
+ export declare const resolve6: typeof nodeDns.resolve6;
12
+ export declare const resolveAny: typeof nodeDns.resolveAny;
13
+ export declare const resolveCaa: typeof nodeDns.resolveCaa;
14
+ export declare const resolveCname: typeof nodeDns.resolveCname;
15
+ export declare const resolveMx: typeof nodeDns.resolveMx;
16
+ export declare const resolveNaptr: typeof nodeDns.resolveNaptr;
17
+ export declare const resolveNs: typeof nodeDns.resolveNs;
18
+ export declare const resolvePtr: typeof nodeDns.resolvePtr;
19
+ export declare const resolveSoa: typeof nodeDns.resolveSoa;
20
+ export declare const resolveSrv: typeof nodeDns.resolveSrv;
21
+ export declare const resolveTxt: typeof nodeDns.resolveTxt;
22
+ export declare const reverse: typeof nodeDns.reverse;
23
+ export declare const setDefaultResultOrder: typeof nodeDns.setDefaultResultOrder;
24
+ export declare const setServers: typeof nodeDns.setServers;
25
+ export { NODATA, FORMERR, SERVFAIL, NOTFOUND, NOTIMP, REFUSED, BADQUERY, BADNAME, BADFAMILY, BADRESP, CONNREFUSED, TIMEOUT, EOF, FILE, NOMEM, DESTRUCTION, BADSTR, BADFLAGS, NONAME, BADHINTS, NOTINITIALIZED, LOADIPHLPAPI, ADDRGETNETWORKPARAMS, CANCELLED, ADDRCONFIG, ALL, V4MAPPED } from "./internal/dns/constants.mjs";
26
+ declare const _default: {};
27
+ export default _default;
worker/node_modules/unenv/dist/runtime/node/dns.mjs ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import noop from "../mock/noop.mjs";
2
+ import { notImplemented, notImplementedAsync, notImplementedClass } from "../_internal/utils.mjs";
3
+ import promises from "node:dns/promises";
4
+ export { promises };
5
+ export const Resolver = /*@__PURE__*/ notImplementedClass("dns.Resolver");
6
+ export const getDefaultResultOrder = () => "verbatim";
7
+ export const getServers = () => [];
8
+ export const lookup = /*@__PURE__*/ notImplementedAsync("dns.lookup");
9
+ export const lookupService = /*@__PURE__*/ notImplementedAsync("dns.lookupService");
10
+ export const resolve = /*@__PURE__*/ notImplementedAsync("dns.resolve");
11
+ export const resolve4 = /*@__PURE__*/ notImplementedAsync("dns.resolve4");
12
+ export const resolve6 = /*@__PURE__*/ notImplementedAsync("dns.resolve6");
13
+ export const resolveAny = /*@__PURE__*/ notImplementedAsync("dns.resolveAny");
14
+ export const resolveCaa = /*@__PURE__*/ notImplementedAsync("dns.resolveCaa");
15
+ export const resolveCname = /*@__PURE__*/ notImplementedAsync("dns.resolveCname");
16
+ export const resolveMx = /*@__PURE__*/ notImplementedAsync("dns.resolveMx");
17
+ export const resolveNaptr = /*@__PURE__*/ notImplementedAsync("dns.resolveNaptr");
18
+ export const resolveNs = /*@__PURE__*/ notImplementedAsync("dns.resolveNs");
19
+ export const resolvePtr = /*@__PURE__*/ notImplementedAsync("dns.resolvePtr");
20
+ export const resolveSoa = /*@__PURE__*/ notImplementedAsync("dns.resolveSoa");
21
+ export const resolveSrv = /*@__PURE__*/ notImplementedAsync("dns.resolveSrv");
22
+ export const resolveTxt = /*@__PURE__*/ notImplementedAsync("dns.resolveTxt");
23
+ export const reverse = /*@__PURE__*/ notImplemented("dns.reverse");
24
+ export const setDefaultResultOrder = noop;
25
+ export const setServers = noop;
26
+ import { NODATA, FORMERR, SERVFAIL, NOTFOUND, NOTIMP, REFUSED, BADQUERY, BADNAME, BADFAMILY, BADRESP, CONNREFUSED, TIMEOUT, EOF, FILE, NOMEM, DESTRUCTION, BADSTR, BADFLAGS, NONAME, BADHINTS, NOTINITIALIZED, LOADIPHLPAPI, ADDRGETNETWORKPARAMS, CANCELLED, ADDRCONFIG, ALL, V4MAPPED } from "./internal/dns/constants.mjs";
27
+ export { NODATA, FORMERR, SERVFAIL, NOTFOUND, NOTIMP, REFUSED, BADQUERY, BADNAME, BADFAMILY, BADRESP, CONNREFUSED, TIMEOUT, EOF, FILE, NOMEM, DESTRUCTION, BADSTR, BADFLAGS, NONAME, BADHINTS, NOTINITIALIZED, LOADIPHLPAPI, ADDRGETNETWORKPARAMS, CANCELLED, ADDRCONFIG, ALL, V4MAPPED } from "./internal/dns/constants.mjs";
28
+ export default {
29
+ NODATA,
30
+ FORMERR,
31
+ SERVFAIL,
32
+ NOTFOUND,
33
+ NOTIMP,
34
+ REFUSED,
35
+ BADQUERY,
36
+ BADNAME,
37
+ BADFAMILY,
38
+ BADRESP,
39
+ CONNREFUSED,
40
+ TIMEOUT,
41
+ EOF,
42
+ FILE,
43
+ NOMEM,
44
+ DESTRUCTION,
45
+ BADSTR,
46
+ BADFLAGS,
47
+ NONAME,
48
+ BADHINTS,
49
+ NOTINITIALIZED,
50
+ LOADIPHLPAPI,
51
+ ADDRGETNETWORKPARAMS,
52
+ CANCELLED,
53
+ ADDRCONFIG,
54
+ ALL,
55
+ V4MAPPED,
56
+ Resolver,
57
+ getDefaultResultOrder,
58
+ getServers,
59
+ lookup,
60
+ lookupService,
61
+ promises,
62
+ resolve,
63
+ resolve4,
64
+ resolve6,
65
+ resolveAny,
66
+ resolveCaa,
67
+ resolveCname,
68
+ resolveMx,
69
+ resolveNaptr,
70
+ resolveNs,
71
+ resolvePtr,
72
+ resolveSoa,
73
+ resolveSrv,
74
+ resolveTxt,
75
+ reverse,
76
+ setDefaultResultOrder,
77
+ setServers
78
+ };
worker/node_modules/unenv/dist/runtime/node/dns/promises.d.mts ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type nodeDnsPromises from "node:dns/promises";
2
+ export { NODATA, FORMERR, SERVFAIL, NOTFOUND, NOTIMP, REFUSED, BADQUERY, BADNAME, BADFAMILY, BADRESP, CONNREFUSED, TIMEOUT, EOF, FILE, NOMEM, DESTRUCTION, BADSTR, BADFLAGS, NONAME, BADHINTS, NOTINITIALIZED, LOADIPHLPAPI, ADDRGETNETWORKPARAMS, CANCELLED } from "../internal/dns/constants.mjs";
3
+ export declare const Resolver: typeof nodeDnsPromises.Resolver;
4
+ export declare const getDefaultResultOrder: typeof nodeDnsPromises.getDefaultResultOrder;
5
+ export declare const getServers: typeof nodeDnsPromises.getServers;
6
+ export declare const lookup: typeof nodeDnsPromises.lookup;
7
+ export declare const lookupService: typeof nodeDnsPromises.lookupService;
8
+ export declare const resolve: typeof nodeDnsPromises.resolve;
9
+ export declare const resolve4: typeof nodeDnsPromises.resolve4;
10
+ export declare const resolve6: typeof nodeDnsPromises.resolve6;
11
+ export declare const resolveAny: typeof nodeDnsPromises.resolveAny;
12
+ export declare const resolveCaa: typeof nodeDnsPromises.resolveCaa;
13
+ export declare const resolveCname: typeof nodeDnsPromises.resolveCname;
14
+ export declare const resolveMx: typeof nodeDnsPromises.resolveMx;
15
+ export declare const resolveNaptr: typeof nodeDnsPromises.resolveNaptr;
16
+ export declare const resolveNs: typeof nodeDnsPromises.resolveNs;
17
+ export declare const resolvePtr: typeof nodeDnsPromises.resolvePtr;
18
+ export declare const resolveSoa: typeof nodeDnsPromises.resolveSoa;
19
+ export declare const resolveSrv: typeof nodeDnsPromises.resolveSrv;
20
+ export declare const resolveTxt: typeof nodeDnsPromises.resolveTxt;
21
+ export declare const reverse: typeof nodeDnsPromises.reverse;
22
+ export declare const setDefaultResultOrder: typeof nodeDnsPromises.setDefaultResultOrder;
23
+ export declare const setServers: typeof nodeDnsPromises.setServers;
24
+ declare const _default: {};
25
+ export default _default;
worker/node_modules/unenv/dist/runtime/node/dns/promises.mjs ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import noop from "../../mock/noop.mjs";
2
+ import { notImplemented, notImplementedAsync, notImplementedClass } from "../../_internal/utils.mjs";
3
+ import { NODATA, FORMERR, SERVFAIL, NOTFOUND, NOTIMP, REFUSED, BADQUERY, BADNAME, BADFAMILY, BADRESP, CONNREFUSED, TIMEOUT, EOF, FILE, NOMEM, DESTRUCTION, BADSTR, BADFLAGS, NONAME, BADHINTS, NOTINITIALIZED, LOADIPHLPAPI, ADDRGETNETWORKPARAMS, CANCELLED } from "../internal/dns/constants.mjs";
4
+ export { NODATA, FORMERR, SERVFAIL, NOTFOUND, NOTIMP, REFUSED, BADQUERY, BADNAME, BADFAMILY, BADRESP, CONNREFUSED, TIMEOUT, EOF, FILE, NOMEM, DESTRUCTION, BADSTR, BADFLAGS, NONAME, BADHINTS, NOTINITIALIZED, LOADIPHLPAPI, ADDRGETNETWORKPARAMS, CANCELLED } from "../internal/dns/constants.mjs";
5
+ export const Resolver = /*@__PURE__*/ notImplementedClass("dns.Resolver");
6
+ export const getDefaultResultOrder = () => "verbatim";
7
+ export const getServers = () => [];
8
+ export const lookup = /*@__PURE__*/ notImplementedAsync("dns.lookup");
9
+ export const lookupService = /*@__PURE__*/ notImplementedAsync("dns.lookupService");
10
+ export const resolve = /*@__PURE__*/ notImplementedAsync("dns.resolve");
11
+ export const resolve4 = /*@__PURE__*/ notImplementedAsync("dns.resolve4");
12
+ export const resolve6 = /*@__PURE__*/ notImplementedAsync("dns.resolve6");
13
+ export const resolveAny = /*@__PURE__*/ notImplementedAsync("dns.resolveAny");
14
+ export const resolveCaa = /*@__PURE__*/ notImplementedAsync("dns.resolveCaa");
15
+ export const resolveCname = /*@__PURE__*/ notImplementedAsync("dns.resolveCname");
16
+ export const resolveMx = /*@__PURE__*/ notImplementedAsync("dns.resolveMx");
17
+ export const resolveNaptr = /*@__PURE__*/ notImplementedAsync("dns.resolveNaptr");
18
+ export const resolveNs = /*@__PURE__*/ notImplementedAsync("dns.resolveNs");
19
+ export const resolvePtr = /*@__PURE__*/ notImplementedAsync("dns.resolvePtr");
20
+ export const resolveSoa = /*@__PURE__*/ notImplementedAsync("dns.resolveSoa");
21
+ export const resolveSrv = /*@__PURE__*/ notImplementedAsync("dns.resolveSrv");
22
+ export const resolveTxt = /*@__PURE__*/ notImplementedAsync("dns.resolveTxt");
23
+ export const reverse = /*@__PURE__*/ notImplemented("dns.reverse");
24
+ export const setDefaultResultOrder = noop;
25
+ export const setServers = noop;
26
+ export default {
27
+ NODATA,
28
+ FORMERR,
29
+ SERVFAIL,
30
+ NOTFOUND,
31
+ NOTIMP,
32
+ REFUSED,
33
+ BADQUERY,
34
+ BADNAME,
35
+ BADFAMILY,
36
+ BADRESP,
37
+ CONNREFUSED,
38
+ TIMEOUT,
39
+ EOF,
40
+ FILE,
41
+ NOMEM,
42
+ DESTRUCTION,
43
+ BADSTR,
44
+ BADFLAGS,
45
+ NONAME,
46
+ BADHINTS,
47
+ NOTINITIALIZED,
48
+ LOADIPHLPAPI,
49
+ ADDRGETNETWORKPARAMS,
50
+ CANCELLED,
51
+ Resolver,
52
+ getDefaultResultOrder,
53
+ getServers,
54
+ lookup,
55
+ lookupService,
56
+ resolve,
57
+ resolve4,
58
+ resolve6,
59
+ resolveAny,
60
+ resolveCaa,
61
+ resolveCname,
62
+ resolveMx,
63
+ resolveNaptr,
64
+ resolveNs,
65
+ resolvePtr,
66
+ resolveSoa,
67
+ resolveSrv,
68
+ resolveTxt,
69
+ reverse,
70
+ setDefaultResultOrder,
71
+ setServers
72
+ };
worker/node_modules/unenv/dist/runtime/node/domain.d.mts ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import type nodeDomain from "node:domain";
2
+ export { Domain } from "./internal/domain/domain.mjs";
3
+ export declare const create: typeof nodeDomain.create;
4
+ export declare const createDomain: typeof nodeDomain.create;
5
+ export declare const active: unknown;
6
+ export declare const _stack: unknown;
7
+ declare const _default: typeof nodeDomain;
8
+ export default _default;
worker/node_modules/unenv/dist/runtime/node/domain.mjs ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { Domain } from "./internal/domain/domain.mjs";
2
+ export { Domain } from "./internal/domain/domain.mjs";
3
+ export const create = function() {
4
+ return new Domain();
5
+ };
6
+ export const createDomain = create;
7
+ const _domain = create();
8
+ export const active = () => _domain;
9
+ export const _stack = [];
10
+ export default {
11
+ Domain,
12
+ _stack,
13
+ active,
14
+ create,
15
+ createDomain
16
+ };
worker/node_modules/unenv/dist/runtime/node/events.d.mts ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type nodeEvents from "node:events";
2
+ export { _EventEmitter as EventEmitter, EventEmitterAsyncResource, addAbortListener, getEventListeners, getMaxListeners, on, once } from "./internal/events/events.mjs";
3
+ export declare const usingDomains: boolean;
4
+ export declare const captureRejectionSymbol: unknown;
5
+ export declare const captureRejections: boolean;
6
+ export declare const errorMonitor: unknown;
7
+ export declare const defaultMaxListeners = 10;
8
+ export declare const setMaxListeners: unknown;
9
+ export declare const listenerCount: unknown;
10
+ export declare const init: unknown;
11
+ declare const _default: typeof nodeEvents;
12
+ export default _default;
worker/node_modules/unenv/dist/runtime/node/events.mjs ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { _EventEmitter } from "./internal/events/events.mjs";
2
+ import { notImplemented } from "../_internal/utils.mjs";
3
+ export { _EventEmitter as EventEmitter, EventEmitterAsyncResource, addAbortListener, getEventListeners, getMaxListeners, on, once } from "./internal/events/events.mjs";
4
+ export const usingDomains = false;
5
+ export const captureRejectionSymbol = /*@__PURE__*/ Symbol.for("nodejs.rejection");
6
+ export const captureRejections = false;
7
+ export const errorMonitor = /*@__PURE__*/ Symbol.for("events.errorMonitor");
8
+ export const defaultMaxListeners = 10;
9
+ export const setMaxListeners = /*@__PURE__*/ notImplemented("node:events.setMaxListeners");
10
+ export const listenerCount = /*@__PURE__*/ notImplemented("node:events.listenerCount");
11
+ export const init = /*@__PURE__*/ notImplemented("node:events.init");
12
+ export default _EventEmitter;
worker/node_modules/unenv/dist/runtime/node/fs.d.mts ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import promises from "node:fs/promises";
2
+ import * as constants from "./internal/fs/constants.mjs";
3
+ export { F_OK, R_OK, W_OK, X_OK } from "./internal/fs/constants.mjs";
4
+ export { promises, constants };
5
+ export * from "./internal/fs/fs.mjs";
6
+ export * from "./internal/fs/classes.mjs";
7
+ declare const _default: {
8
+ constants: any
9
+ };
10
+ export default _default;
worker/node_modules/unenv/dist/runtime/node/fs.mjs ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import promises from "node:fs/promises";
2
+ import { Dir, Dirent, FileReadStream, FileWriteStream, ReadStream, Stats, WriteStream } from "./internal/fs/classes.mjs";
3
+ import { _toUnixTimestamp, access, accessSync, appendFile, appendFileSync, chmod, chmodSync, chown, chownSync, close, closeSync, copyFile, copyFileSync, cp, cpSync, createReadStream, createWriteStream, exists, existsSync, fchmod, fchmodSync, fchown, fchownSync, fdatasync, fdatasyncSync, fstat, fstatSync, fsync, fsyncSync, ftruncate, ftruncateSync, futimes, futimesSync, glob, lchmod, globSync, lchmodSync, lchown, lchownSync, link, linkSync, lstat, lstatSync, lutimes, lutimesSync, mkdir, mkdirSync, mkdtemp, mkdtempSync, open, openAsBlob, openSync, opendir, opendirSync, read, readFile, readFileSync, readSync, readdir, readdirSync, readlink, readlinkSync, readv, readvSync, realpath, realpathSync, rename, renameSync, rm, rmSync, rmdir, rmdirSync, stat, statSync, statfs, statfsSync, symlink, symlinkSync, truncate, truncateSync, unlink, unlinkSync, unwatchFile, utimes, utimesSync, watch, watchFile, write, writeFile, writeFileSync, writeSync, writev, writevSync } from "./internal/fs/fs.mjs";
4
+ import * as constants from "./internal/fs/constants.mjs";
5
+ import { F_OK, R_OK, W_OK, X_OK } from "./internal/fs/constants.mjs";
6
+ export { F_OK, R_OK, W_OK, X_OK } from "./internal/fs/constants.mjs";
7
+ export { promises, constants };
8
+ export * from "./internal/fs/fs.mjs";
9
+ export * from "./internal/fs/classes.mjs";
10
+ export default {
11
+ F_OK,
12
+ R_OK,
13
+ W_OK,
14
+ X_OK,
15
+ constants,
16
+ promises,
17
+ Dir,
18
+ Dirent,
19
+ FileReadStream,
20
+ FileWriteStream,
21
+ ReadStream,
22
+ Stats,
23
+ WriteStream,
24
+ _toUnixTimestamp,
25
+ access,
26
+ accessSync,
27
+ appendFile,
28
+ appendFileSync,
29
+ chmod,
30
+ chmodSync,
31
+ chown,
32
+ chownSync,
33
+ close,
34
+ closeSync,
35
+ copyFile,
36
+ copyFileSync,
37
+ cp,
38
+ cpSync,
39
+ createReadStream,
40
+ createWriteStream,
41
+ exists,
42
+ existsSync,
43
+ fchmod,
44
+ fchmodSync,
45
+ fchown,
46
+ fchownSync,
47
+ fdatasync,
48
+ fdatasyncSync,
49
+ fstat,
50
+ fstatSync,
51
+ fsync,
52
+ fsyncSync,
53
+ ftruncate,
54
+ ftruncateSync,
55
+ futimes,
56
+ futimesSync,
57
+ glob,
58
+ lchmod,
59
+ globSync,
60
+ lchmodSync,
61
+ lchown,
62
+ lchownSync,
63
+ link,
64
+ linkSync,
65
+ lstat,
66
+ lstatSync,
67
+ lutimes,
68
+ lutimesSync,
69
+ mkdir,
70
+ mkdirSync,
71
+ mkdtemp,
72
+ mkdtempSync,
73
+ open,
74
+ openAsBlob,
75
+ openSync,
76
+ opendir,
77
+ opendirSync,
78
+ read,
79
+ readFile,
80
+ readFileSync,
81
+ readSync,
82
+ readdir,
83
+ readdirSync,
84
+ readlink,
85
+ readlinkSync,
86
+ readv,
87
+ readvSync,
88
+ realpath,
89
+ realpathSync,
90
+ rename,
91
+ renameSync,
92
+ rm,
93
+ rmSync,
94
+ rmdir,
95
+ rmdirSync,
96
+ stat,
97
+ statSync,
98
+ statfs,
99
+ statfsSync,
100
+ symlink,
101
+ symlinkSync,
102
+ truncate,
103
+ truncateSync,
104
+ unlink,
105
+ unlinkSync,
106
+ unwatchFile,
107
+ utimes,
108
+ utimesSync,
109
+ watch,
110
+ watchFile,
111
+ write,
112
+ writeFile,
113
+ writeFileSync,
114
+ writeSync,
115
+ writev,
116
+ writevSync
117
+ };
worker/node_modules/unenv/dist/runtime/node/fs/promises.d.mts ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ import * as constants from "../internal/fs/constants.mjs";
2
+ export { constants };
3
+ export * from "../internal/fs/promises.mjs";
4
+ declare const _default: {
5
+ constants: any
6
+ };
7
+ export default _default;
worker/node_modules/unenv/dist/runtime/node/fs/promises.mjs ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { access, appendFile, chmod, chown, copyFile, cp, glob, lchmod, lchown, link, lstat, lutimes, mkdir, mkdtemp, open, opendir, readFile, readdir, readlink, realpath, rename, rm, rmdir, stat, statfs, symlink, truncate, unlink, utimes, watch, writeFile } from "../internal/fs/promises.mjs";
2
+ import * as constants from "../internal/fs/constants.mjs";
3
+ export { constants };
4
+ export * from "../internal/fs/promises.mjs";
5
+ export default {
6
+ constants,
7
+ access,
8
+ appendFile,
9
+ chmod,
10
+ chown,
11
+ copyFile,
12
+ cp,
13
+ glob,
14
+ lchmod,
15
+ lchown,
16
+ link,
17
+ lstat,
18
+ lutimes,
19
+ mkdir,
20
+ mkdtemp,
21
+ open,
22
+ opendir,
23
+ readFile,
24
+ readdir,
25
+ readlink,
26
+ realpath,
27
+ rename,
28
+ rm,
29
+ rmdir,
30
+ stat,
31
+ statfs,
32
+ symlink,
33
+ truncate,
34
+ unlink,
35
+ utimes,
36
+ watch,
37
+ writeFile
38
+ };
worker/node_modules/unenv/dist/runtime/node/http.d.mts ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type nodeHttp from "node:http";
2
+ import { METHODS, STATUS_CODES, maxHeaderSize } from "./internal/http/constants.mjs";
3
+ export { METHODS, STATUS_CODES, maxHeaderSize };
4
+ export * from "./internal/http/request.mjs";
5
+ export * from "./internal/http/response.mjs";
6
+ export { Agent } from "./internal/http/agent.mjs";
7
+ export declare const createServer: unknown;
8
+ export declare const request: unknown;
9
+ export declare const get: unknown;
10
+ export declare const Server: typeof nodeHttp.Server;
11
+ export declare const OutgoingMessage: typeof nodeHttp.OutgoingMessage;
12
+ export declare const ClientRequest: typeof nodeHttp.ClientRequest;
13
+ export declare const globalAgent: typeof nodeHttp.globalAgent;
14
+ export declare const validateHeaderName: unknown;
15
+ export declare const validateHeaderValue: unknown;
16
+ export declare const setMaxIdleHTTPParsers: unknown;
17
+ export declare const _connectionListener: unknown;
18
+ export declare const WebSocket: unknown;
19
+ export declare const CloseEvent: unknown;
20
+ export declare const MessageEvent: unknown;
21
+ declare const _default: typeof nodeHttp;
22
+ export default _default;
worker/node_modules/unenv/dist/runtime/node/http.mjs ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { notImplemented, notImplementedClass } from "../_internal/utils.mjs";
2
+ import { IncomingMessage } from "./internal/http/request.mjs";
3
+ import { ServerResponse } from "./internal/http/response.mjs";
4
+ import { Agent } from "./internal/http/agent.mjs";
5
+ import { METHODS, STATUS_CODES, maxHeaderSize } from "./internal/http/constants.mjs";
6
+ export { METHODS, STATUS_CODES, maxHeaderSize };
7
+ export * from "./internal/http/request.mjs";
8
+ export * from "./internal/http/response.mjs";
9
+ export { Agent } from "./internal/http/agent.mjs";
10
+ export const createServer = /*@__PURE__*/ notImplemented("http.createServer");
11
+ export const request = /*@__PURE__*/ notImplemented("http.request");
12
+ export const get = /*@__PURE__*/ notImplemented("http.get");
13
+ export const Server = /*@__PURE__*/ notImplementedClass("http.Server");
14
+ export const OutgoingMessage = /*@__PURE__*/ notImplementedClass("http.OutgoingMessage");
15
+ export const ClientRequest = /*@__PURE__*/ notImplementedClass("http.ClientRequest");
16
+ export const globalAgent = new Agent();
17
+ export const validateHeaderName = /*@__PURE__*/ notImplemented("http.validateHeaderName");
18
+ export const validateHeaderValue = /*@__PURE__*/ notImplemented("http.validateHeaderValue");
19
+ export const setMaxIdleHTTPParsers = /*@__PURE__*/ notImplemented("http.setMaxIdleHTTPParsers");
20
+ export const _connectionListener = /*@__PURE__*/ notImplemented("http._connectionListener");
21
+ export const WebSocket = globalThis.WebSocket || /*@__PURE__*/ notImplementedClass("WebSocket");
22
+ export const CloseEvent = globalThis.CloseEvent || /*@__PURE__*/ notImplementedClass("CloseEvent");
23
+ export const MessageEvent = globalThis.MessageEvent || /*@__PURE__*/ notImplementedClass("MessageEvent");
24
+ export default {
25
+ METHODS,
26
+ STATUS_CODES,
27
+ maxHeaderSize,
28
+ IncomingMessage,
29
+ ServerResponse,
30
+ WebSocket,
31
+ CloseEvent,
32
+ MessageEvent,
33
+ createServer,
34
+ request,
35
+ get,
36
+ Server,
37
+ OutgoingMessage,
38
+ ClientRequest,
39
+ Agent,
40
+ globalAgent,
41
+ validateHeaderName,
42
+ validateHeaderValue,
43
+ setMaxIdleHTTPParsers,
44
+ _connectionListener
45
+ };
worker/node_modules/unenv/dist/runtime/node/http2.d.mts ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import type nodeHttp2 from "node:http2";
2
+ export declare const constants: typeof nodeHttp2.constants;
3
+ export declare const createSecureServer: unknown;
4
+ export declare const createServer: unknown;
5
+ export declare const connect: typeof nodeHttp2.connect;
6
+ export declare const performServerHandshake: typeof nodeHttp2.performServerHandshake;
7
+ export declare const Http2ServerRequest: typeof nodeHttp2.Http2ServerRequest;
8
+ export declare const Http2ServerResponse: typeof nodeHttp2.Http2ServerResponse;
9
+ export declare const getDefaultSettings: typeof nodeHttp2.getDefaultSettings;
10
+ export declare const getPackedSettings: typeof nodeHttp2.getPackedSettings;
11
+ export declare const getUnpackedSettings: typeof nodeHttp2.getUnpackedSettings;
12
+ export declare const sensitiveHeaders: typeof nodeHttp2.sensitiveHeaders;
13
+ declare const _default: {};
14
+ export default _default;
worker/node_modules/unenv/dist/runtime/node/http2.mjs ADDED
@@ -0,0 +1,282 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { notImplemented, notImplementedClass } from "../_internal/utils.mjs";
2
+ import { NGHTTP2_ERR_FRAME_SIZE_ERROR, NGHTTP2_SESSION_SERVER, NGHTTP2_SESSION_CLIENT, NGHTTP2_STREAM_STATE_IDLE, NGHTTP2_STREAM_STATE_OPEN, NGHTTP2_STREAM_STATE_RESERVED_LOCAL, NGHTTP2_STREAM_STATE_RESERVED_REMOTE, NGHTTP2_STREAM_STATE_HALF_CLOSED_LOCAL, NGHTTP2_STREAM_STATE_HALF_CLOSED_REMOTE, NGHTTP2_STREAM_STATE_CLOSED, NGHTTP2_FLAG_NONE, NGHTTP2_FLAG_END_STREAM, NGHTTP2_FLAG_END_HEADERS, NGHTTP2_FLAG_ACK, NGHTTP2_FLAG_PADDED, NGHTTP2_FLAG_PRIORITY, DEFAULT_SETTINGS_HEADER_TABLE_SIZE, DEFAULT_SETTINGS_ENABLE_PUSH, DEFAULT_SETTINGS_MAX_CONCURRENT_STREAMS, DEFAULT_SETTINGS_INITIAL_WINDOW_SIZE, DEFAULT_SETTINGS_MAX_FRAME_SIZE, DEFAULT_SETTINGS_MAX_HEADER_LIST_SIZE, DEFAULT_SETTINGS_ENABLE_CONNECT_PROTOCOL, MAX_MAX_FRAME_SIZE, MIN_MAX_FRAME_SIZE, MAX_INITIAL_WINDOW_SIZE, NGHTTP2_SETTINGS_HEADER_TABLE_SIZE, NGHTTP2_SETTINGS_ENABLE_PUSH, NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS, NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE, NGHTTP2_SETTINGS_MAX_FRAME_SIZE, NGHTTP2_SETTINGS_MAX_HEADER_LIST_SIZE, NGHTTP2_SETTINGS_ENABLE_CONNECT_PROTOCOL, PADDING_STRATEGY_NONE, PADDING_STRATEGY_ALIGNED, PADDING_STRATEGY_MAX, PADDING_STRATEGY_CALLBACK, NGHTTP2_NO_ERROR, NGHTTP2_PROTOCOL_ERROR, NGHTTP2_INTERNAL_ERROR, NGHTTP2_FLOW_CONTROL_ERROR, NGHTTP2_SETTINGS_TIMEOUT, NGHTTP2_STREAM_CLOSED, NGHTTP2_FRAME_SIZE_ERROR, NGHTTP2_REFUSED_STREAM, NGHTTP2_CANCEL, NGHTTP2_COMPRESSION_ERROR, NGHTTP2_CONNECT_ERROR, NGHTTP2_ENHANCE_YOUR_CALM, NGHTTP2_INADEQUATE_SECURITY, NGHTTP2_HTTP_1_1_REQUIRED, NGHTTP2_DEFAULT_WEIGHT, HTTP2_HEADER_STATUS, HTTP2_HEADER_METHOD, HTTP2_HEADER_AUTHORITY, HTTP2_HEADER_SCHEME, HTTP2_HEADER_PATH, HTTP2_HEADER_PROTOCOL, HTTP2_HEADER_ACCEPT_ENCODING, HTTP2_HEADER_ACCEPT_LANGUAGE, HTTP2_HEADER_ACCEPT_RANGES, HTTP2_HEADER_ACCEPT, HTTP2_HEADER_ACCESS_CONTROL_ALLOW_CREDENTIALS, HTTP2_HEADER_ACCESS_CONTROL_ALLOW_HEADERS, HTTP2_HEADER_ACCESS_CONTROL_ALLOW_METHODS, HTTP2_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN, HTTP2_HEADER_ACCESS_CONTROL_EXPOSE_HEADERS, HTTP2_HEADER_ACCESS_CONTROL_REQUEST_HEADERS, HTTP2_HEADER_ACCESS_CONTROL_REQUEST_METHOD, HTTP2_HEADER_AGE, HTTP2_HEADER_AUTHORIZATION, HTTP2_HEADER_CACHE_CONTROL, HTTP2_HEADER_CONNECTION, HTTP2_HEADER_CONTENT_DISPOSITION, HTTP2_HEADER_CONTENT_ENCODING, HTTP2_HEADER_CONTENT_LENGTH, HTTP2_HEADER_CONTENT_TYPE, HTTP2_HEADER_COOKIE, HTTP2_HEADER_DATE, HTTP2_HEADER_ETAG, HTTP2_HEADER_FORWARDED, HTTP2_HEADER_HOST, HTTP2_HEADER_IF_MODIFIED_SINCE, HTTP2_HEADER_IF_NONE_MATCH, HTTP2_HEADER_IF_RANGE, HTTP2_HEADER_LAST_MODIFIED, HTTP2_HEADER_LINK, HTTP2_HEADER_LOCATION, HTTP2_HEADER_RANGE, HTTP2_HEADER_REFERER, HTTP2_HEADER_SERVER, HTTP2_HEADER_SET_COOKIE, HTTP2_HEADER_STRICT_TRANSPORT_SECURITY, HTTP2_HEADER_TRANSFER_ENCODING, HTTP2_HEADER_TE, HTTP2_HEADER_UPGRADE_INSECURE_REQUESTS, HTTP2_HEADER_UPGRADE, HTTP2_HEADER_USER_AGENT, HTTP2_HEADER_VARY, HTTP2_HEADER_X_CONTENT_TYPE_OPTIONS, HTTP2_HEADER_X_FRAME_OPTIONS, HTTP2_HEADER_KEEP_ALIVE, HTTP2_HEADER_PROXY_CONNECTION, HTTP2_HEADER_X_XSS_PROTECTION, HTTP2_HEADER_ALT_SVC, HTTP2_HEADER_CONTENT_SECURITY_POLICY, HTTP2_HEADER_EARLY_DATA, HTTP2_HEADER_EXPECT_CT, HTTP2_HEADER_ORIGIN, HTTP2_HEADER_PURPOSE, HTTP2_HEADER_TIMING_ALLOW_ORIGIN, HTTP2_HEADER_X_FORWARDED_FOR, HTTP2_HEADER_PRIORITY, HTTP2_HEADER_ACCEPT_CHARSET, HTTP2_HEADER_ACCESS_CONTROL_MAX_AGE, HTTP2_HEADER_ALLOW, HTTP2_HEADER_CONTENT_LANGUAGE, HTTP2_HEADER_CONTENT_LOCATION, HTTP2_HEADER_CONTENT_MD5, HTTP2_HEADER_CONTENT_RANGE, HTTP2_HEADER_DNT, HTTP2_HEADER_EXPECT, HTTP2_HEADER_EXPIRES, HTTP2_HEADER_FROM, HTTP2_HEADER_IF_MATCH, HTTP2_HEADER_IF_UNMODIFIED_SINCE, HTTP2_HEADER_MAX_FORWARDS, HTTP2_HEADER_PREFER, HTTP2_HEADER_PROXY_AUTHENTICATE, HTTP2_HEADER_PROXY_AUTHORIZATION, HTTP2_HEADER_REFRESH, HTTP2_HEADER_RETRY_AFTER, HTTP2_HEADER_TRAILER, HTTP2_HEADER_TK, HTTP2_HEADER_VIA, HTTP2_HEADER_WARNING, HTTP2_HEADER_WWW_AUTHENTICATE, HTTP2_HEADER_HTTP2_SETTINGS, HTTP2_METHOD_ACL, HTTP2_METHOD_BASELINE_CONTROL, HTTP2_METHOD_BIND, HTTP2_METHOD_CHECKIN, HTTP2_METHOD_CHECKOUT, HTTP2_METHOD_CONNECT, HTTP2_METHOD_COPY, HTTP2_METHOD_DELETE, HTTP2_METHOD_GET, HTTP2_METHOD_HEAD, HTTP2_METHOD_LABEL, HTTP2_METHOD_LINK, HTTP2_METHOD_LOCK, HTTP2_METHOD_MERGE, HTTP2_METHOD_MKACTIVITY, HTTP2_METHOD_MKCALENDAR, HTTP2_METHOD_MKCOL, HTTP2_METHOD_MKREDIRECTREF, HTTP2_METHOD_MKWORKSPACE, HTTP2_METHOD_MOVE, HTTP2_METHOD_OPTIONS, HTTP2_METHOD_ORDERPATCH, HTTP2_METHOD_PATCH, HTTP2_METHOD_POST, HTTP2_METHOD_PRI, HTTP2_METHOD_PROPFIND, HTTP2_METHOD_PROPPATCH, HTTP2_METHOD_PUT, HTTP2_METHOD_REBIND, HTTP2_METHOD_REPORT, HTTP2_METHOD_SEARCH, HTTP2_METHOD_TRACE, HTTP2_METHOD_UNBIND, HTTP2_METHOD_UNCHECKOUT, HTTP2_METHOD_UNLINK, HTTP2_METHOD_UNLOCK, HTTP2_METHOD_UPDATE, HTTP2_METHOD_UPDATEREDIRECTREF, HTTP2_METHOD_VERSION_CONTROL, HTTP_STATUS_CONTINUE, HTTP_STATUS_SWITCHING_PROTOCOLS, HTTP_STATUS_PROCESSING, HTTP_STATUS_EARLY_HINTS, HTTP_STATUS_OK, HTTP_STATUS_CREATED, HTTP_STATUS_ACCEPTED, HTTP_STATUS_NON_AUTHORITATIVE_INFORMATION, HTTP_STATUS_NO_CONTENT, HTTP_STATUS_RESET_CONTENT, HTTP_STATUS_PARTIAL_CONTENT, HTTP_STATUS_MULTI_STATUS, HTTP_STATUS_ALREADY_REPORTED, HTTP_STATUS_IM_USED, HTTP_STATUS_MULTIPLE_CHOICES, HTTP_STATUS_MOVED_PERMANENTLY, HTTP_STATUS_FOUND, HTTP_STATUS_SEE_OTHER, HTTP_STATUS_NOT_MODIFIED, HTTP_STATUS_USE_PROXY, HTTP_STATUS_TEMPORARY_REDIRECT, HTTP_STATUS_PERMANENT_REDIRECT, HTTP_STATUS_BAD_REQUEST, HTTP_STATUS_UNAUTHORIZED, HTTP_STATUS_PAYMENT_REQUIRED, HTTP_STATUS_FORBIDDEN, HTTP_STATUS_NOT_FOUND, HTTP_STATUS_METHOD_NOT_ALLOWED, HTTP_STATUS_NOT_ACCEPTABLE, HTTP_STATUS_PROXY_AUTHENTICATION_REQUIRED, HTTP_STATUS_REQUEST_TIMEOUT, HTTP_STATUS_CONFLICT, HTTP_STATUS_GONE, HTTP_STATUS_LENGTH_REQUIRED, HTTP_STATUS_PRECONDITION_FAILED, HTTP_STATUS_PAYLOAD_TOO_LARGE, HTTP_STATUS_URI_TOO_LONG, HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE, HTTP_STATUS_RANGE_NOT_SATISFIABLE, HTTP_STATUS_EXPECTATION_FAILED, HTTP_STATUS_TEAPOT, HTTP_STATUS_MISDIRECTED_REQUEST, HTTP_STATUS_UNPROCESSABLE_ENTITY, HTTP_STATUS_LOCKED, HTTP_STATUS_FAILED_DEPENDENCY, HTTP_STATUS_TOO_EARLY, HTTP_STATUS_UPGRADE_REQUIRED, HTTP_STATUS_PRECONDITION_REQUIRED, HTTP_STATUS_TOO_MANY_REQUESTS, HTTP_STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE, HTTP_STATUS_UNAVAILABLE_FOR_LEGAL_REASONS, HTTP_STATUS_INTERNAL_SERVER_ERROR, HTTP_STATUS_NOT_IMPLEMENTED, HTTP_STATUS_BAD_GATEWAY, HTTP_STATUS_SERVICE_UNAVAILABLE, HTTP_STATUS_GATEWAY_TIMEOUT, HTTP_STATUS_HTTP_VERSION_NOT_SUPPORTED, HTTP_STATUS_VARIANT_ALSO_NEGOTIATES, HTTP_STATUS_INSUFFICIENT_STORAGE, HTTP_STATUS_LOOP_DETECTED, HTTP_STATUS_BANDWIDTH_LIMIT_EXCEEDED, HTTP_STATUS_NOT_EXTENDED, HTTP_STATUS_NETWORK_AUTHENTICATION_REQUIRED } from "./internal/http2/constants.mjs";
3
+ export const constants = {
4
+ NGHTTP2_ERR_FRAME_SIZE_ERROR,
5
+ NGHTTP2_SESSION_SERVER,
6
+ NGHTTP2_SESSION_CLIENT,
7
+ NGHTTP2_STREAM_STATE_IDLE,
8
+ NGHTTP2_STREAM_STATE_OPEN,
9
+ NGHTTP2_STREAM_STATE_RESERVED_LOCAL,
10
+ NGHTTP2_STREAM_STATE_RESERVED_REMOTE,
11
+ NGHTTP2_STREAM_STATE_HALF_CLOSED_LOCAL,
12
+ NGHTTP2_STREAM_STATE_HALF_CLOSED_REMOTE,
13
+ NGHTTP2_STREAM_STATE_CLOSED,
14
+ NGHTTP2_FLAG_NONE,
15
+ NGHTTP2_FLAG_END_STREAM,
16
+ NGHTTP2_FLAG_END_HEADERS,
17
+ NGHTTP2_FLAG_ACK,
18
+ NGHTTP2_FLAG_PADDED,
19
+ NGHTTP2_FLAG_PRIORITY,
20
+ DEFAULT_SETTINGS_HEADER_TABLE_SIZE,
21
+ DEFAULT_SETTINGS_ENABLE_PUSH,
22
+ DEFAULT_SETTINGS_MAX_CONCURRENT_STREAMS,
23
+ DEFAULT_SETTINGS_INITIAL_WINDOW_SIZE,
24
+ DEFAULT_SETTINGS_MAX_FRAME_SIZE,
25
+ DEFAULT_SETTINGS_MAX_HEADER_LIST_SIZE,
26
+ DEFAULT_SETTINGS_ENABLE_CONNECT_PROTOCOL,
27
+ MAX_MAX_FRAME_SIZE,
28
+ MIN_MAX_FRAME_SIZE,
29
+ MAX_INITIAL_WINDOW_SIZE,
30
+ NGHTTP2_SETTINGS_HEADER_TABLE_SIZE,
31
+ NGHTTP2_SETTINGS_ENABLE_PUSH,
32
+ NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS,
33
+ NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE,
34
+ NGHTTP2_SETTINGS_MAX_FRAME_SIZE,
35
+ NGHTTP2_SETTINGS_MAX_HEADER_LIST_SIZE,
36
+ NGHTTP2_SETTINGS_ENABLE_CONNECT_PROTOCOL,
37
+ PADDING_STRATEGY_NONE,
38
+ PADDING_STRATEGY_ALIGNED,
39
+ PADDING_STRATEGY_MAX,
40
+ PADDING_STRATEGY_CALLBACK,
41
+ NGHTTP2_NO_ERROR,
42
+ NGHTTP2_PROTOCOL_ERROR,
43
+ NGHTTP2_INTERNAL_ERROR,
44
+ NGHTTP2_FLOW_CONTROL_ERROR,
45
+ NGHTTP2_SETTINGS_TIMEOUT,
46
+ NGHTTP2_STREAM_CLOSED,
47
+ NGHTTP2_FRAME_SIZE_ERROR,
48
+ NGHTTP2_REFUSED_STREAM,
49
+ NGHTTP2_CANCEL,
50
+ NGHTTP2_COMPRESSION_ERROR,
51
+ NGHTTP2_CONNECT_ERROR,
52
+ NGHTTP2_ENHANCE_YOUR_CALM,
53
+ NGHTTP2_INADEQUATE_SECURITY,
54
+ NGHTTP2_HTTP_1_1_REQUIRED,
55
+ NGHTTP2_DEFAULT_WEIGHT,
56
+ HTTP2_HEADER_STATUS,
57
+ HTTP2_HEADER_METHOD,
58
+ HTTP2_HEADER_AUTHORITY,
59
+ HTTP2_HEADER_SCHEME,
60
+ HTTP2_HEADER_PATH,
61
+ HTTP2_HEADER_PROTOCOL,
62
+ HTTP2_HEADER_ACCEPT_ENCODING,
63
+ HTTP2_HEADER_ACCEPT_LANGUAGE,
64
+ HTTP2_HEADER_ACCEPT_RANGES,
65
+ HTTP2_HEADER_ACCEPT,
66
+ HTTP2_HEADER_ACCESS_CONTROL_ALLOW_CREDENTIALS,
67
+ HTTP2_HEADER_ACCESS_CONTROL_ALLOW_HEADERS,
68
+ HTTP2_HEADER_ACCESS_CONTROL_ALLOW_METHODS,
69
+ HTTP2_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN,
70
+ HTTP2_HEADER_ACCESS_CONTROL_EXPOSE_HEADERS,
71
+ HTTP2_HEADER_ACCESS_CONTROL_REQUEST_HEADERS,
72
+ HTTP2_HEADER_ACCESS_CONTROL_REQUEST_METHOD,
73
+ HTTP2_HEADER_AGE,
74
+ HTTP2_HEADER_AUTHORIZATION,
75
+ HTTP2_HEADER_CACHE_CONTROL,
76
+ HTTP2_HEADER_CONNECTION,
77
+ HTTP2_HEADER_CONTENT_DISPOSITION,
78
+ HTTP2_HEADER_CONTENT_ENCODING,
79
+ HTTP2_HEADER_CONTENT_LENGTH,
80
+ HTTP2_HEADER_CONTENT_TYPE,
81
+ HTTP2_HEADER_COOKIE,
82
+ HTTP2_HEADER_DATE,
83
+ HTTP2_HEADER_ETAG,
84
+ HTTP2_HEADER_FORWARDED,
85
+ HTTP2_HEADER_HOST,
86
+ HTTP2_HEADER_IF_MODIFIED_SINCE,
87
+ HTTP2_HEADER_IF_NONE_MATCH,
88
+ HTTP2_HEADER_IF_RANGE,
89
+ HTTP2_HEADER_LAST_MODIFIED,
90
+ HTTP2_HEADER_LINK,
91
+ HTTP2_HEADER_LOCATION,
92
+ HTTP2_HEADER_RANGE,
93
+ HTTP2_HEADER_REFERER,
94
+ HTTP2_HEADER_SERVER,
95
+ HTTP2_HEADER_SET_COOKIE,
96
+ HTTP2_HEADER_STRICT_TRANSPORT_SECURITY,
97
+ HTTP2_HEADER_TRANSFER_ENCODING,
98
+ HTTP2_HEADER_TE,
99
+ HTTP2_HEADER_UPGRADE_INSECURE_REQUESTS,
100
+ HTTP2_HEADER_UPGRADE,
101
+ HTTP2_HEADER_USER_AGENT,
102
+ HTTP2_HEADER_VARY,
103
+ HTTP2_HEADER_X_CONTENT_TYPE_OPTIONS,
104
+ HTTP2_HEADER_X_FRAME_OPTIONS,
105
+ HTTP2_HEADER_KEEP_ALIVE,
106
+ HTTP2_HEADER_PROXY_CONNECTION,
107
+ HTTP2_HEADER_X_XSS_PROTECTION,
108
+ HTTP2_HEADER_ALT_SVC,
109
+ HTTP2_HEADER_CONTENT_SECURITY_POLICY,
110
+ HTTP2_HEADER_EARLY_DATA,
111
+ HTTP2_HEADER_EXPECT_CT,
112
+ HTTP2_HEADER_ORIGIN,
113
+ HTTP2_HEADER_PURPOSE,
114
+ HTTP2_HEADER_TIMING_ALLOW_ORIGIN,
115
+ HTTP2_HEADER_X_FORWARDED_FOR,
116
+ HTTP2_HEADER_PRIORITY,
117
+ HTTP2_HEADER_ACCEPT_CHARSET,
118
+ HTTP2_HEADER_ACCESS_CONTROL_MAX_AGE,
119
+ HTTP2_HEADER_ALLOW,
120
+ HTTP2_HEADER_CONTENT_LANGUAGE,
121
+ HTTP2_HEADER_CONTENT_LOCATION,
122
+ HTTP2_HEADER_CONTENT_MD5,
123
+ HTTP2_HEADER_CONTENT_RANGE,
124
+ HTTP2_HEADER_DNT,
125
+ HTTP2_HEADER_EXPECT,
126
+ HTTP2_HEADER_EXPIRES,
127
+ HTTP2_HEADER_FROM,
128
+ HTTP2_HEADER_IF_MATCH,
129
+ HTTP2_HEADER_IF_UNMODIFIED_SINCE,
130
+ HTTP2_HEADER_MAX_FORWARDS,
131
+ HTTP2_HEADER_PREFER,
132
+ HTTP2_HEADER_PROXY_AUTHENTICATE,
133
+ HTTP2_HEADER_PROXY_AUTHORIZATION,
134
+ HTTP2_HEADER_REFRESH,
135
+ HTTP2_HEADER_RETRY_AFTER,
136
+ HTTP2_HEADER_TRAILER,
137
+ HTTP2_HEADER_TK,
138
+ HTTP2_HEADER_VIA,
139
+ HTTP2_HEADER_WARNING,
140
+ HTTP2_HEADER_WWW_AUTHENTICATE,
141
+ HTTP2_HEADER_HTTP2_SETTINGS,
142
+ HTTP2_METHOD_ACL,
143
+ HTTP2_METHOD_BASELINE_CONTROL,
144
+ HTTP2_METHOD_BIND,
145
+ HTTP2_METHOD_CHECKIN,
146
+ HTTP2_METHOD_CHECKOUT,
147
+ HTTP2_METHOD_CONNECT,
148
+ HTTP2_METHOD_COPY,
149
+ HTTP2_METHOD_DELETE,
150
+ HTTP2_METHOD_GET,
151
+ HTTP2_METHOD_HEAD,
152
+ HTTP2_METHOD_LABEL,
153
+ HTTP2_METHOD_LINK,
154
+ HTTP2_METHOD_LOCK,
155
+ HTTP2_METHOD_MERGE,
156
+ HTTP2_METHOD_MKACTIVITY,
157
+ HTTP2_METHOD_MKCALENDAR,
158
+ HTTP2_METHOD_MKCOL,
159
+ HTTP2_METHOD_MKREDIRECTREF,
160
+ HTTP2_METHOD_MKWORKSPACE,
161
+ HTTP2_METHOD_MOVE,
162
+ HTTP2_METHOD_OPTIONS,
163
+ HTTP2_METHOD_ORDERPATCH,
164
+ HTTP2_METHOD_PATCH,
165
+ HTTP2_METHOD_POST,
166
+ HTTP2_METHOD_PRI,
167
+ HTTP2_METHOD_PROPFIND,
168
+ HTTP2_METHOD_PROPPATCH,
169
+ HTTP2_METHOD_PUT,
170
+ HTTP2_METHOD_REBIND,
171
+ HTTP2_METHOD_REPORT,
172
+ HTTP2_METHOD_SEARCH,
173
+ HTTP2_METHOD_TRACE,
174
+ HTTP2_METHOD_UNBIND,
175
+ HTTP2_METHOD_UNCHECKOUT,
176
+ HTTP2_METHOD_UNLINK,
177
+ HTTP2_METHOD_UNLOCK,
178
+ HTTP2_METHOD_UPDATE,
179
+ HTTP2_METHOD_UPDATEREDIRECTREF,
180
+ HTTP2_METHOD_VERSION_CONTROL,
181
+ HTTP_STATUS_CONTINUE,
182
+ HTTP_STATUS_SWITCHING_PROTOCOLS,
183
+ HTTP_STATUS_PROCESSING,
184
+ HTTP_STATUS_EARLY_HINTS,
185
+ HTTP_STATUS_OK,
186
+ HTTP_STATUS_CREATED,
187
+ HTTP_STATUS_ACCEPTED,
188
+ HTTP_STATUS_NON_AUTHORITATIVE_INFORMATION,
189
+ HTTP_STATUS_NO_CONTENT,
190
+ HTTP_STATUS_RESET_CONTENT,
191
+ HTTP_STATUS_PARTIAL_CONTENT,
192
+ HTTP_STATUS_MULTI_STATUS,
193
+ HTTP_STATUS_ALREADY_REPORTED,
194
+ HTTP_STATUS_IM_USED,
195
+ HTTP_STATUS_MULTIPLE_CHOICES,
196
+ HTTP_STATUS_MOVED_PERMANENTLY,
197
+ HTTP_STATUS_FOUND,
198
+ HTTP_STATUS_SEE_OTHER,
199
+ HTTP_STATUS_NOT_MODIFIED,
200
+ HTTP_STATUS_USE_PROXY,
201
+ HTTP_STATUS_TEMPORARY_REDIRECT,
202
+ HTTP_STATUS_PERMANENT_REDIRECT,
203
+ HTTP_STATUS_BAD_REQUEST,
204
+ HTTP_STATUS_UNAUTHORIZED,
205
+ HTTP_STATUS_PAYMENT_REQUIRED,
206
+ HTTP_STATUS_FORBIDDEN,
207
+ HTTP_STATUS_NOT_FOUND,
208
+ HTTP_STATUS_METHOD_NOT_ALLOWED,
209
+ HTTP_STATUS_NOT_ACCEPTABLE,
210
+ HTTP_STATUS_PROXY_AUTHENTICATION_REQUIRED,
211
+ HTTP_STATUS_REQUEST_TIMEOUT,
212
+ HTTP_STATUS_CONFLICT,
213
+ HTTP_STATUS_GONE,
214
+ HTTP_STATUS_LENGTH_REQUIRED,
215
+ HTTP_STATUS_PRECONDITION_FAILED,
216
+ HTTP_STATUS_PAYLOAD_TOO_LARGE,
217
+ HTTP_STATUS_URI_TOO_LONG,
218
+ HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE,
219
+ HTTP_STATUS_RANGE_NOT_SATISFIABLE,
220
+ HTTP_STATUS_EXPECTATION_FAILED,
221
+ HTTP_STATUS_TEAPOT,
222
+ HTTP_STATUS_MISDIRECTED_REQUEST,
223
+ HTTP_STATUS_UNPROCESSABLE_ENTITY,
224
+ HTTP_STATUS_LOCKED,
225
+ HTTP_STATUS_FAILED_DEPENDENCY,
226
+ HTTP_STATUS_TOO_EARLY,
227
+ HTTP_STATUS_UPGRADE_REQUIRED,
228
+ HTTP_STATUS_PRECONDITION_REQUIRED,
229
+ HTTP_STATUS_TOO_MANY_REQUESTS,
230
+ HTTP_STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE,
231
+ HTTP_STATUS_UNAVAILABLE_FOR_LEGAL_REASONS,
232
+ HTTP_STATUS_INTERNAL_SERVER_ERROR,
233
+ HTTP_STATUS_NOT_IMPLEMENTED,
234
+ HTTP_STATUS_BAD_GATEWAY,
235
+ HTTP_STATUS_SERVICE_UNAVAILABLE,
236
+ HTTP_STATUS_GATEWAY_TIMEOUT,
237
+ HTTP_STATUS_HTTP_VERSION_NOT_SUPPORTED,
238
+ HTTP_STATUS_VARIANT_ALSO_NEGOTIATES,
239
+ HTTP_STATUS_INSUFFICIENT_STORAGE,
240
+ HTTP_STATUS_LOOP_DETECTED,
241
+ HTTP_STATUS_BANDWIDTH_LIMIT_EXCEEDED,
242
+ HTTP_STATUS_NOT_EXTENDED,
243
+ HTTP_STATUS_NETWORK_AUTHENTICATION_REQUIRED
244
+ };
245
+ export const createSecureServer = /*@__PURE__*/ notImplemented("http2.createSecureServer");
246
+ export const createServer = /*@__PURE__*/ notImplemented("http2.createServer");
247
+ export const connect = /*@__PURE__*/ notImplemented("http2.connect");
248
+ export const performServerHandshake = /*@__PURE__*/ notImplemented("http2.performServerHandshake ");
249
+ export const Http2ServerRequest = /*@__PURE__*/ notImplementedClass("http2.Http2ServerRequest");
250
+ export const Http2ServerResponse = /*@__PURE__*/ notImplementedClass("http2.Http2ServerResponse");
251
+ export const getDefaultSettings = function() {
252
+ return Object.create({
253
+ headerTableSize: 4096,
254
+ enablePush: true,
255
+ initialWindowSize: 65535,
256
+ maxFrameSize: 16384,
257
+ maxConcurrentStreams: 4294967295,
258
+ maxHeaderSize: 65535,
259
+ maxHeaderListSize: 65535,
260
+ enableConnectProtocol: false
261
+ });
262
+ };
263
+ export const getPackedSettings = function() {
264
+ return Buffer.from("");
265
+ };
266
+ export const getUnpackedSettings = function() {
267
+ return Object.create({});
268
+ };
269
+ export const sensitiveHeaders = /*@__PURE__*/ Symbol("nodejs.http2.sensitiveHeaders");
270
+ export default {
271
+ constants,
272
+ createSecureServer,
273
+ createServer,
274
+ Http2ServerRequest,
275
+ Http2ServerResponse,
276
+ connect,
277
+ getDefaultSettings,
278
+ getPackedSettings,
279
+ getUnpackedSettings,
280
+ performServerHandshake,
281
+ sensitiveHeaders
282
+ };
worker/node_modules/unenv/dist/runtime/node/https.d.mts ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import type nodeHttps from "node:https";
2
+ export declare const Server: typeof nodeHttps.Server;
3
+ export declare const Agent: typeof nodeHttps.Agent;
4
+ export declare const globalAgent: typeof nodeHttps.globalAgent;
5
+ export declare const get: unknown;
6
+ export declare const createServer: unknown;
7
+ export declare const request: unknown;
8
+ declare const _default: {};
9
+ export default _default;