@powerlines/plugin-automd 0.1.253 → 0.1.255
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-BrXtsOCC.cjs → _virtual/rolldown_runtime.cjs} +2 -12
- package/dist/{chunk-CS8OKu3y.mjs → _virtual/rolldown_runtime.mjs} +1 -1
- package/dist/index.cjs +7 -9656
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +2 -9646
- package/dist/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.cjs +78 -0
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +78 -0
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +1 -0
- package/dist/node_modules/.pnpm/acorn@8.15.0/node_modules/acorn/dist/acorn.cjs +5032 -0
- package/dist/node_modules/.pnpm/acorn@8.15.0/node_modules/acorn/dist/acorn.mjs +5032 -0
- package/dist/node_modules/.pnpm/acorn@8.15.0/node_modules/acorn/dist/acorn.mjs.map +1 -0
- package/dist/node_modules/.pnpm/automd@0.4.3_patch_hash_0fe864a2d6fa1461e144747e5f0fbc0a5fb51435ec6b3217ffb18ff2d7058778_magicast@0.5.1/node_modules/automd/dist/index.cjs +650 -0
- package/dist/node_modules/.pnpm/automd@0.4.3_patch_hash_0fe864a2d6fa1461e144747e5f0fbc0a5fb51435ec6b3217ffb18ff2d7058778_magicast@0.5.1/node_modules/automd/dist/index.mjs +648 -0
- package/dist/node_modules/.pnpm/automd@0.4.3_patch_hash_0fe864a2d6fa1461e144747e5f0fbc0a5fb51435ec6b3217ffb18ff2d7058778_magicast@0.5.1/node_modules/automd/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.cjs +23 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs +23 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs.map +1 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.cjs +405 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs +405 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs.map +1 -0
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +46 -0
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs +46 -0
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/didyoumean2@7.0.4/node_modules/didyoumean2/dist/index.cjs +204 -0
- package/dist/node_modules/.pnpm/didyoumean2@7.0.4/node_modules/didyoumean2/dist/index.mjs +203 -0
- package/dist/node_modules/.pnpm/didyoumean2@7.0.4/node_modules/didyoumean2/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.cjs +1013 -0
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs +1008 -0
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/fastest-levenshtein@1.0.16/node_modules/fastest-levenshtein/mod.cjs +128 -0
- package/dist/node_modules/.pnpm/fastest-levenshtein@1.0.16/node_modules/fastest-levenshtein/mod.mjs +124 -0
- package/dist/node_modules/.pnpm/fastest-levenshtein@1.0.16/node_modules/fastest-levenshtein/mod.mjs.map +1 -0
- package/dist/{loader-DNEbMIIe.cjs → node_modules/.pnpm/jiti@2.4.2/node_modules/jiti/dist/babel.cjs} +41337 -58245
- package/dist/{loader-BRhKFmUn.mjs → node_modules/.pnpm/jiti@2.4.2/node_modules/jiti/dist/babel.mjs} +41334 -58245
- package/dist/node_modules/.pnpm/jiti@2.4.2/node_modules/jiti/dist/babel.mjs.map +1 -0
- package/dist/node_modules/.pnpm/jiti@2.4.2/node_modules/jiti/dist/jiti.cjs +4387 -0
- package/dist/node_modules/.pnpm/jiti@2.4.2/node_modules/jiti/dist/jiti.mjs +4385 -0
- package/dist/node_modules/.pnpm/jiti@2.4.2/node_modules/jiti/dist/jiti.mjs.map +1 -0
- package/dist/node_modules/.pnpm/jiti@2.4.2/node_modules/jiti/lib/jiti.cjs +26 -0
- package/dist/node_modules/.pnpm/jiti@2.4.2/node_modules/jiti/lib/jiti.mjs +27 -0
- package/dist/node_modules/.pnpm/jiti@2.4.2/node_modules/jiti/lib/jiti.mjs.map +1 -0
- package/dist/node_modules/.pnpm/lodash.deburr@4.1.0/node_modules/lodash.deburr/index.cjs +370 -0
- package/dist/node_modules/.pnpm/lodash.deburr@4.1.0/node_modules/lodash.deburr/index.mjs +368 -0
- package/dist/node_modules/.pnpm/lodash.deburr@4.1.0/node_modules/lodash.deburr/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.cjs +939 -0
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs +940 -0
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mdbox@0.1.1/node_modules/mdbox/dist/index.cjs +67 -0
- package/dist/node_modules/.pnpm/mdbox@0.1.1/node_modules/mdbox/dist/index.mjs +65 -0
- package/dist/node_modules/.pnpm/mdbox@0.1.1/node_modules/mdbox/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist/index.cjs +1292 -0
- package/dist/node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist/index.mjs +1285 -0
- package/dist/node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist/index.mjs.map +1 -0
- package/dist/{multipart-parser-C_EjwsED.cjs → node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs} +2 -1
- package/dist/{multipart-parser-Dtmz_axo.mjs → node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs} +3 -2
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs.map +1 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.cjs +20 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs +17 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs.map +1 -0
- package/dist/{node-DapIDpAC.cjs → node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.cjs} +808 -857
- package/dist/{node-FGT1CWpL.mjs → node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs} +794 -806
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs.map +1 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DfbY2q-x.cjs +16 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DfbY2q-x.mjs +15 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DfbY2q-x.mjs.map +1 -0
- package/dist/node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/node.cjs +36 -0
- package/dist/node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/node.mjs +34 -0
- package/dist/node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/node.mjs.map +1 -0
- package/dist/{node-CsMhpAoX.cjs → node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/shared/ofetch.CWycOUEr.cjs} +24 -66
- package/dist/{node-D8lz5B3d.mjs → node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/shared/ofetch.CWycOUEr.mjs} +20 -59
- package/dist/node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/shared/ofetch.CWycOUEr.mjs.map +1 -0
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.cjs +139 -0
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs +134 -0
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs.map +1 -0
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.cjs +77 -0
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs +77 -0
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs.map +1 -0
- package/dist/{dist-PRh64A_O.mjs → node_modules/.pnpm/scule@1.3.0/node_modules/scule/dist/index.cjs} +4 -2
- package/dist/{dist-DVv98dZY.cjs → node_modules/.pnpm/scule@1.3.0/node_modules/scule/dist/index.mjs} +2 -19
- package/dist/node_modules/.pnpm/scule@1.3.0/node_modules/scule/dist/index.mjs.map +1 -0
- package/dist/{dist-Jfd0GR_C.mjs → node_modules/.pnpm/ufo@1.6.3/node_modules/ufo/dist/index.cjs} +4 -46
- package/dist/{dist-8g8frrZv.cjs → node_modules/.pnpm/ufo@1.6.3/node_modules/ufo/dist/index.mjs} +2 -69
- package/dist/node_modules/.pnpm/ufo@1.6.3/node_modules/ufo/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/untyped@2.0.0/node_modules/untyped/dist/loader/babel.cjs +12337 -0
- package/dist/node_modules/.pnpm/untyped@2.0.0/node_modules/untyped/dist/loader/babel.mjs +12338 -0
- package/dist/node_modules/.pnpm/untyped@2.0.0/node_modules/untyped/dist/loader/babel.mjs.map +1 -0
- package/dist/node_modules/.pnpm/untyped@2.0.0/node_modules/untyped/dist/loader/loader.cjs +19 -0
- package/dist/node_modules/.pnpm/untyped@2.0.0/node_modules/untyped/dist/loader/loader.mjs +19 -0
- package/dist/node_modules/.pnpm/untyped@2.0.0/node_modules/untyped/dist/loader/loader.mjs.map +1 -0
- package/dist/node_modules/.pnpm/untyped@2.0.0/node_modules/untyped/dist/shared/untyped.BTwOq8Jl.cjs +71 -0
- package/dist/node_modules/.pnpm/untyped@2.0.0/node_modules/untyped/dist/shared/untyped.BTwOq8Jl.mjs +72 -0
- package/dist/node_modules/.pnpm/untyped@2.0.0/node_modules/untyped/dist/shared/untyped.BTwOq8Jl.mjs.map +1 -0
- package/dist/node_modules/.pnpm/untyped@2.0.0/node_modules/untyped/dist/shared/untyped.Br_uXjZG.cjs +110 -0
- package/dist/node_modules/.pnpm/untyped@2.0.0/node_modules/untyped/dist/shared/untyped.Br_uXjZG.mjs +101 -0
- package/dist/node_modules/.pnpm/untyped@2.0.0/node_modules/untyped/dist/shared/untyped.Br_uXjZG.mjs.map +1 -0
- package/dist/types/index.cjs +0 -3
- package/dist/types/index.d.cts +2 -3
- package/dist/types/index.d.mts +2 -3
- package/dist/types/index.mjs +0 -4
- package/dist/types/plugin.cjs +0 -1
- package/dist/types/plugin.d.cts +52 -3
- package/dist/types/plugin.d.cts.map +1 -0
- package/dist/types/plugin.d.mts +52 -3
- package/dist/types/plugin.d.mts.map +1 -0
- package/dist/types/plugin.mjs +0 -2
- package/dist/types/toc.cjs +0 -1
- package/dist/types/toc.d.cts +35 -2
- package/dist/types/toc.d.cts.map +1 -0
- package/dist/types/toc.d.mts +35 -2
- package/dist/types/toc.d.mts.map +1 -0
- package/dist/types/toc.mjs +0 -2
- package/package.json +4 -4
- package/dist/dist-BavrV299.cjs +0 -682
- package/dist/dist-Jfd0GR_C.mjs.map +0 -1
- package/dist/dist-PRh64A_O.mjs.map +0 -1
- package/dist/dist-PXnBmevt.mjs +0 -681
- package/dist/dist-PXnBmevt.mjs.map +0 -1
- package/dist/index-B8OHl-c_.d.mts +0 -1
- package/dist/index-CmCelmEL.d.cts +0 -1
- package/dist/loader-BRhKFmUn.mjs.map +0 -1
- package/dist/multipart-parser-Dtmz_axo.mjs.map +0 -1
- package/dist/node-D8lz5B3d.mjs.map +0 -1
- package/dist/node-FGT1CWpL.mjs.map +0 -1
- package/dist/plugin-BVD0UMjp.d.cts +0 -52
- package/dist/plugin-BVD0UMjp.d.cts.map +0 -1
- package/dist/plugin-C6jB5e_j.d.mts +0 -52
- package/dist/plugin-C6jB5e_j.d.mts.map +0 -1
- package/dist/plugin-Ckx8qAq8.cjs +0 -0
- package/dist/plugin-jZ9N9Mz-.mjs +0 -1
- package/dist/toc-BN2Ji9Yo.d.mts +0 -35
- package/dist/toc-BN2Ji9Yo.d.mts.map +0 -1
- package/dist/toc-BQgoCyR1.cjs +0 -0
- package/dist/toc-BrayIFG6.d.cts +0 -35
- package/dist/toc-BrayIFG6.d.cts.map +0 -1
- package/dist/toc-CBjybXug.mjs +0 -1
- package/dist/types--fVOUYBq.mjs +0 -1
- package/dist/types-D208vOSb.cjs +0 -0
|
@@ -1,56 +1,44 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_node_fetch_native_DfbY2q_x = require('./shared/node-fetch-native.DfbY2q-x.cjs');
|
|
2
3
|
let node_fs = require("node:fs");
|
|
3
4
|
let node_url = require("node:url");
|
|
4
5
|
let node_path = require("node:path");
|
|
5
6
|
let node_util = require("node:util");
|
|
6
7
|
let node_http = require("node:http");
|
|
7
|
-
node_http =
|
|
8
|
+
node_http = require_rolldown_runtime.__toESM(node_http);
|
|
8
9
|
let node_https = require("node:https");
|
|
9
|
-
node_https =
|
|
10
|
+
node_https = require_rolldown_runtime.__toESM(node_https);
|
|
10
11
|
let node_zlib = require("node:zlib");
|
|
11
|
-
node_zlib =
|
|
12
|
+
node_zlib = require_rolldown_runtime.__toESM(node_zlib);
|
|
12
13
|
let node_stream = require("node:stream");
|
|
13
|
-
node_stream =
|
|
14
|
+
node_stream = require_rolldown_runtime.__toESM(node_stream);
|
|
14
15
|
let node_buffer = require("node:buffer");
|
|
15
16
|
let node_net = require("node:net");
|
|
16
17
|
|
|
17
|
-
//#region ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DfbY2q-x.mjs
|
|
18
|
-
var t = Object.defineProperty;
|
|
19
|
-
var o = (e, l) => t(e, "name", {
|
|
20
|
-
value: l,
|
|
21
|
-
configurable: !0
|
|
22
|
-
});
|
|
23
|
-
var n = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
24
|
-
function f(e) {
|
|
25
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
26
|
-
}
|
|
27
|
-
o(f, "getDefaultExportFromCjs");
|
|
28
|
-
|
|
29
|
-
//#endregion
|
|
30
18
|
//#region ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs
|
|
31
19
|
var Os = Object.defineProperty;
|
|
32
20
|
var fi = (i) => {
|
|
33
21
|
throw TypeError(i);
|
|
34
22
|
};
|
|
35
|
-
var n$1 = (i, o
|
|
36
|
-
value: o
|
|
23
|
+
var n$1 = (i, o) => Os(i, "name", {
|
|
24
|
+
value: o,
|
|
37
25
|
configurable: !0
|
|
38
26
|
});
|
|
39
|
-
var ci = (i, o
|
|
40
|
-
var O = (i, o
|
|
27
|
+
var ci = (i, o, a) => o.has(i) || fi("Cannot " + a);
|
|
28
|
+
var O = (i, o, a) => (ci(i, o, "read from private field"), a ? a.call(i) : o.get(i)), be = (i, o, a) => o.has(i) ? fi("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(i) : o.set(i, a), X = (i, o, a, f$1) => (ci(i, o, "write to private field"), f$1 ? f$1.call(i, a) : o.set(i, a), a);
|
|
41
29
|
var ve, zt, bt, Cr, ze, It, Ft, mt, ee, yt, He, Ve, gt;
|
|
42
30
|
function Us(i) {
|
|
43
31
|
if (!/^data:/i.test(i)) throw new TypeError("`uri` does not appear to be a Data URI (must begin with \"data:\")");
|
|
44
32
|
i = i.replace(/\r?\n/g, "");
|
|
45
|
-
const o
|
|
46
|
-
if (o
|
|
47
|
-
const a = i.substring(5, o
|
|
33
|
+
const o = i.indexOf(",");
|
|
34
|
+
if (o === -1 || o <= 4) throw new TypeError("malformed data: URI");
|
|
35
|
+
const a = i.substring(5, o).split(";");
|
|
48
36
|
let f$1 = "", l = !1;
|
|
49
37
|
const p = a[0] || "text/plain";
|
|
50
38
|
let h = p;
|
|
51
39
|
for (let A = 1; A < a.length; A++) a[A] === "base64" ? l = !0 : a[A] && (h += `;${a[A]}`, a[A].indexOf("charset=") === 0 && (f$1 = a[A].substring(8)));
|
|
52
40
|
!a[0] && !f$1.length && (h += ";charset=US-ASCII", f$1 = "US-ASCII");
|
|
53
|
-
const S = l ? "base64" : "ascii", v = unescape(i.substring(o
|
|
41
|
+
const S = l ? "base64" : "ascii", v = unescape(i.substring(o + 1)), w = Buffer.from(v, S);
|
|
54
42
|
return w.type = p, w.typeFull = h, w.charset = f$1, w;
|
|
55
43
|
}
|
|
56
44
|
n$1(Us, "dataUriToBuffer");
|
|
@@ -63,9 +51,9 @@ var pi = {}, kt = { exports: {} };
|
|
|
63
51
|
* SPDX-License-Identifier: MIT
|
|
64
52
|
*/ var xs = kt.exports, bi;
|
|
65
53
|
function Ns() {
|
|
66
|
-
return bi || (bi = 1, function(i, o
|
|
54
|
+
return bi || (bi = 1, function(i, o) {
|
|
67
55
|
(function(a, f$1) {
|
|
68
|
-
f$1(o
|
|
56
|
+
f$1(o);
|
|
69
57
|
})(xs, function(a) {
|
|
70
58
|
function f$1() {}
|
|
71
59
|
n$1(f$1, "noop");
|
|
@@ -74,10 +62,10 @@ function Ns() {
|
|
|
74
62
|
}
|
|
75
63
|
n$1(l, "typeIsObject");
|
|
76
64
|
const p = f$1;
|
|
77
|
-
function h(e, t
|
|
65
|
+
function h(e, t) {
|
|
78
66
|
try {
|
|
79
67
|
Object.defineProperty(e, "name", {
|
|
80
|
-
value: t
|
|
68
|
+
value: t,
|
|
81
69
|
configurable: !0
|
|
82
70
|
});
|
|
83
71
|
} catch {}
|
|
@@ -89,31 +77,31 @@ function Ns() {
|
|
|
89
77
|
}
|
|
90
78
|
n$1(A, "newPromise");
|
|
91
79
|
function T(e) {
|
|
92
|
-
return A((t
|
|
80
|
+
return A((t) => t(e));
|
|
93
81
|
}
|
|
94
82
|
n$1(T, "promiseResolvedWith");
|
|
95
83
|
function b(e) {
|
|
96
84
|
return w(e);
|
|
97
85
|
}
|
|
98
86
|
n$1(b, "promiseRejectedWith");
|
|
99
|
-
function q(e, t
|
|
100
|
-
return v.call(e, t
|
|
87
|
+
function q(e, t, r) {
|
|
88
|
+
return v.call(e, t, r);
|
|
101
89
|
}
|
|
102
90
|
n$1(q, "PerformPromiseThen");
|
|
103
|
-
function g(e, t
|
|
104
|
-
q(q(e, t
|
|
91
|
+
function g(e, t, r) {
|
|
92
|
+
q(q(e, t, r), void 0, p);
|
|
105
93
|
}
|
|
106
94
|
n$1(g, "uponPromise");
|
|
107
|
-
function V(e, t
|
|
108
|
-
g(e, t
|
|
95
|
+
function V(e, t) {
|
|
96
|
+
g(e, t);
|
|
109
97
|
}
|
|
110
98
|
n$1(V, "uponFulfillment");
|
|
111
|
-
function I(e, t
|
|
112
|
-
g(e, void 0, t
|
|
99
|
+
function I(e, t) {
|
|
100
|
+
g(e, void 0, t);
|
|
113
101
|
}
|
|
114
102
|
n$1(I, "uponRejection");
|
|
115
|
-
function F(e, t
|
|
116
|
-
return q(e, t
|
|
103
|
+
function F(e, t, r) {
|
|
104
|
+
return q(e, t, r);
|
|
117
105
|
}
|
|
118
106
|
n$1(F, "transformPromiseWith");
|
|
119
107
|
function Q(e) {
|
|
@@ -123,19 +111,19 @@ function Ns() {
|
|
|
123
111
|
let ge = n$1((e) => {
|
|
124
112
|
if (typeof queueMicrotask == "function") ge = queueMicrotask;
|
|
125
113
|
else {
|
|
126
|
-
const t
|
|
127
|
-
ge = n$1((r) => q(t
|
|
114
|
+
const t = T(void 0);
|
|
115
|
+
ge = n$1((r) => q(t, r), "_queueMicrotask");
|
|
128
116
|
}
|
|
129
117
|
return ge(e);
|
|
130
118
|
}, "_queueMicrotask");
|
|
131
|
-
function z(e, t
|
|
119
|
+
function z(e, t, r) {
|
|
132
120
|
if (typeof e != "function") throw new TypeError("Argument is not a function");
|
|
133
|
-
return Function.prototype.apply.call(e, t
|
|
121
|
+
return Function.prototype.apply.call(e, t, r);
|
|
134
122
|
}
|
|
135
123
|
n$1(z, "reflectCall");
|
|
136
|
-
function j(e, t
|
|
124
|
+
function j(e, t, r) {
|
|
137
125
|
try {
|
|
138
|
-
return T(z(e, t
|
|
126
|
+
return T(z(e, t, r));
|
|
139
127
|
} catch (s) {
|
|
140
128
|
return b(s);
|
|
141
129
|
}
|
|
@@ -151,46 +139,46 @@ function Ns() {
|
|
|
151
139
|
get length() {
|
|
152
140
|
return this._size;
|
|
153
141
|
}
|
|
154
|
-
push(t
|
|
142
|
+
push(t) {
|
|
155
143
|
const r = this._back;
|
|
156
144
|
let s = r;
|
|
157
145
|
r._elements.length === U - 1 && (s = {
|
|
158
146
|
_elements: [],
|
|
159
147
|
_next: void 0
|
|
160
|
-
}), r._elements.push(t
|
|
148
|
+
}), r._elements.push(t), s !== r && (this._back = s, r._next = s), ++this._size;
|
|
161
149
|
}
|
|
162
150
|
shift() {
|
|
163
|
-
const t
|
|
164
|
-
let r = t
|
|
151
|
+
const t = this._front;
|
|
152
|
+
let r = t;
|
|
165
153
|
const s = this._cursor;
|
|
166
154
|
let u = s + 1;
|
|
167
|
-
const c = t
|
|
168
|
-
return u === U && (r = t
|
|
155
|
+
const c = t._elements, d = c[s];
|
|
156
|
+
return u === U && (r = t._next, u = 0), --this._size, this._cursor = u, t !== r && (this._front = r), c[s] = void 0, d;
|
|
169
157
|
}
|
|
170
|
-
forEach(t
|
|
158
|
+
forEach(t) {
|
|
171
159
|
let r = this._cursor, s = this._front, u = s._elements;
|
|
172
|
-
for (; (r !== u.length || s._next !== void 0) && !(r === u.length && (s = s._next, u = s._elements, r = 0, u.length === 0));) t
|
|
160
|
+
for (; (r !== u.length || s._next !== void 0) && !(r === u.length && (s = s._next, u = s._elements, r = 0, u.length === 0));) t(u[r]), ++r;
|
|
173
161
|
}
|
|
174
162
|
peek() {
|
|
175
|
-
const t
|
|
176
|
-
return t
|
|
163
|
+
const t = this._front, r = this._cursor;
|
|
164
|
+
return t._elements[r];
|
|
177
165
|
}
|
|
178
166
|
};
|
|
179
167
|
n$1(bn, "SimpleQueue");
|
|
180
168
|
let D = bn;
|
|
181
169
|
const jt = Symbol("[[AbortSteps]]"), Qn = Symbol("[[ErrorSteps]]"), Ar = Symbol("[[CancelSteps]]"), Br = Symbol("[[PullSteps]]"), kr = Symbol("[[ReleaseSteps]]");
|
|
182
|
-
function Yn(e, t
|
|
183
|
-
e._ownerReadableStream = t
|
|
170
|
+
function Yn(e, t) {
|
|
171
|
+
e._ownerReadableStream = t, t._reader = e, t._state === "readable" ? qr(e) : t._state === "closed" ? xi(e) : Gn(e, t._storedError);
|
|
184
172
|
}
|
|
185
173
|
n$1(Yn, "ReadableStreamReaderGenericInitialize");
|
|
186
|
-
function Wr(e, t
|
|
174
|
+
function Wr(e, t) {
|
|
187
175
|
const r = e._ownerReadableStream;
|
|
188
|
-
return ie(r, t
|
|
176
|
+
return ie(r, t);
|
|
189
177
|
}
|
|
190
178
|
n$1(Wr, "ReadableStreamReaderGenericCancel");
|
|
191
179
|
function _e(e) {
|
|
192
|
-
const t
|
|
193
|
-
t
|
|
180
|
+
const t = e._ownerReadableStream;
|
|
181
|
+
t._state === "readable" ? Or(e, /* @__PURE__ */ new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")) : Ni(e, /* @__PURE__ */ new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")), t._readableStreamController[kr](), t._reader = void 0, e._ownerReadableStream = void 0;
|
|
194
182
|
}
|
|
195
183
|
n$1(_e, "ReadableStreamReaderGenericRelease");
|
|
196
184
|
function Lt(e) {
|
|
@@ -198,25 +186,25 @@ function Ns() {
|
|
|
198
186
|
}
|
|
199
187
|
n$1(Lt, "readerLockException");
|
|
200
188
|
function qr(e) {
|
|
201
|
-
e._closedPromise = A((t
|
|
202
|
-
e._closedPromise_resolve = t
|
|
189
|
+
e._closedPromise = A((t, r) => {
|
|
190
|
+
e._closedPromise_resolve = t, e._closedPromise_reject = r;
|
|
203
191
|
});
|
|
204
192
|
}
|
|
205
193
|
n$1(qr, "defaultReaderClosedPromiseInitialize");
|
|
206
|
-
function Gn(e, t
|
|
207
|
-
qr(e), Or(e, t
|
|
194
|
+
function Gn(e, t) {
|
|
195
|
+
qr(e), Or(e, t);
|
|
208
196
|
}
|
|
209
197
|
n$1(Gn, "defaultReaderClosedPromiseInitializeAsRejected");
|
|
210
198
|
function xi(e) {
|
|
211
199
|
qr(e), Zn(e);
|
|
212
200
|
}
|
|
213
201
|
n$1(xi, "defaultReaderClosedPromiseInitializeAsResolved");
|
|
214
|
-
function Or(e, t
|
|
215
|
-
e._closedPromise_reject !== void 0 && (Q(e._closedPromise), e._closedPromise_reject(t
|
|
202
|
+
function Or(e, t) {
|
|
203
|
+
e._closedPromise_reject !== void 0 && (Q(e._closedPromise), e._closedPromise_reject(t), e._closedPromise_resolve = void 0, e._closedPromise_reject = void 0);
|
|
216
204
|
}
|
|
217
205
|
n$1(Or, "defaultReaderClosedPromiseReject");
|
|
218
|
-
function Ni(e, t
|
|
219
|
-
Gn(e, t
|
|
206
|
+
function Ni(e, t) {
|
|
207
|
+
Gn(e, t);
|
|
220
208
|
}
|
|
221
209
|
n$1(Ni, "defaultReaderClosedPromiseResetToRejected");
|
|
222
210
|
function Zn(e) {
|
|
@@ -232,28 +220,28 @@ function Ns() {
|
|
|
232
220
|
return typeof e == "object" || typeof e == "function";
|
|
233
221
|
}
|
|
234
222
|
n$1(Vi, "isDictionary");
|
|
235
|
-
function ue(e, t
|
|
236
|
-
if (e !== void 0 && !Vi(e)) throw new TypeError(`${t
|
|
223
|
+
function ue(e, t) {
|
|
224
|
+
if (e !== void 0 && !Vi(e)) throw new TypeError(`${t} is not an object.`);
|
|
237
225
|
}
|
|
238
226
|
n$1(ue, "assertDictionary");
|
|
239
|
-
function Z(e, t
|
|
240
|
-
if (typeof e != "function") throw new TypeError(`${t
|
|
227
|
+
function Z(e, t) {
|
|
228
|
+
if (typeof e != "function") throw new TypeError(`${t} is not a function.`);
|
|
241
229
|
}
|
|
242
230
|
n$1(Z, "assertFunction");
|
|
243
231
|
function Qi(e) {
|
|
244
232
|
return typeof e == "object" && e !== null || typeof e == "function";
|
|
245
233
|
}
|
|
246
234
|
n$1(Qi, "isObject");
|
|
247
|
-
function Jn(e, t
|
|
248
|
-
if (!Qi(e)) throw new TypeError(`${t
|
|
235
|
+
function Jn(e, t) {
|
|
236
|
+
if (!Qi(e)) throw new TypeError(`${t} is not an object.`);
|
|
249
237
|
}
|
|
250
238
|
n$1(Jn, "assertObject");
|
|
251
|
-
function Se(e, t
|
|
252
|
-
if (e === void 0) throw new TypeError(`Parameter ${t
|
|
239
|
+
function Se(e, t, r) {
|
|
240
|
+
if (e === void 0) throw new TypeError(`Parameter ${t} is required in '${r}'.`);
|
|
253
241
|
}
|
|
254
242
|
n$1(Se, "assertRequiredArgument");
|
|
255
|
-
function zr(e, t
|
|
256
|
-
if (e === void 0) throw new TypeError(`${t
|
|
243
|
+
function zr(e, t, r) {
|
|
244
|
+
if (e === void 0) throw new TypeError(`${t} is required in '${r}'.`);
|
|
257
245
|
}
|
|
258
246
|
n$1(zr, "assertRequiredField");
|
|
259
247
|
function Ir(e) {
|
|
@@ -268,29 +256,29 @@ function Ns() {
|
|
|
268
256
|
return Xn(Hi(e));
|
|
269
257
|
}
|
|
270
258
|
n$1(Yi, "integerPart");
|
|
271
|
-
function Fr(e, t
|
|
259
|
+
function Fr(e, t) {
|
|
272
260
|
const s = Number.MAX_SAFE_INTEGER;
|
|
273
261
|
let u = Number(e);
|
|
274
|
-
if (u = Xn(u), !Kn(u)) throw new TypeError(`${t
|
|
275
|
-
if (u = Yi(u), u < 0 || u > s) throw new TypeError(`${t
|
|
262
|
+
if (u = Xn(u), !Kn(u)) throw new TypeError(`${t} is not a finite number`);
|
|
263
|
+
if (u = Yi(u), u < 0 || u > s) throw new TypeError(`${t} is outside the accepted range of 0 to ${s}, inclusive`);
|
|
276
264
|
return !Kn(u) || u === 0 ? 0 : u;
|
|
277
265
|
}
|
|
278
266
|
n$1(Fr, "convertUnsignedLongLongWithEnforceRange");
|
|
279
|
-
function jr(e, t
|
|
280
|
-
if (!We(e)) throw new TypeError(`${t
|
|
267
|
+
function jr(e, t) {
|
|
268
|
+
if (!We(e)) throw new TypeError(`${t} is not a ReadableStream.`);
|
|
281
269
|
}
|
|
282
270
|
n$1(jr, "assertReadableStream");
|
|
283
271
|
function Qe(e) {
|
|
284
272
|
return new fe(e);
|
|
285
273
|
}
|
|
286
274
|
n$1(Qe, "AcquireReadableStreamDefaultReader");
|
|
287
|
-
function eo(e, t
|
|
288
|
-
e._reader._readRequests.push(t
|
|
275
|
+
function eo(e, t) {
|
|
276
|
+
e._reader._readRequests.push(t);
|
|
289
277
|
}
|
|
290
278
|
n$1(eo, "ReadableStreamAddReadRequest");
|
|
291
|
-
function Lr(e, t
|
|
279
|
+
function Lr(e, t, r) {
|
|
292
280
|
const u = e._reader._readRequests.shift();
|
|
293
|
-
r ? u._closeSteps() : u._chunkSteps(t
|
|
281
|
+
r ? u._closeSteps() : u._chunkSteps(t);
|
|
294
282
|
}
|
|
295
283
|
n$1(Lr, "ReadableStreamFulfillReadRequest");
|
|
296
284
|
function $t(e) {
|
|
@@ -298,34 +286,34 @@ function Ns() {
|
|
|
298
286
|
}
|
|
299
287
|
n$1($t, "ReadableStreamGetNumReadRequests");
|
|
300
288
|
function to(e) {
|
|
301
|
-
const t
|
|
302
|
-
return !(t
|
|
289
|
+
const t = e._reader;
|
|
290
|
+
return !(t === void 0 || !Ee(t));
|
|
303
291
|
}
|
|
304
292
|
n$1(to, "ReadableStreamHasDefaultReader");
|
|
305
293
|
const mn = class mn$1 {
|
|
306
|
-
constructor(t
|
|
307
|
-
if (Se(t
|
|
308
|
-
Yn(this, t
|
|
294
|
+
constructor(t) {
|
|
295
|
+
if (Se(t, 1, "ReadableStreamDefaultReader"), jr(t, "First parameter"), qe(t)) throw new TypeError("This stream has already been locked for exclusive reading by another reader");
|
|
296
|
+
Yn(this, t), this._readRequests = new D();
|
|
309
297
|
}
|
|
310
298
|
get closed() {
|
|
311
299
|
return Ee(this) ? this._closedPromise : b(Dt("closed"));
|
|
312
300
|
}
|
|
313
|
-
cancel(t
|
|
314
|
-
return Ee(this) ? this._ownerReadableStream === void 0 ? b(Lt("cancel")) : Wr(this, t
|
|
301
|
+
cancel(t = void 0) {
|
|
302
|
+
return Ee(this) ? this._ownerReadableStream === void 0 ? b(Lt("cancel")) : Wr(this, t) : b(Dt("cancel"));
|
|
315
303
|
}
|
|
316
304
|
read() {
|
|
317
305
|
if (!Ee(this)) return b(Dt("read"));
|
|
318
306
|
if (this._ownerReadableStream === void 0) return b(Lt("read from"));
|
|
319
|
-
let t
|
|
307
|
+
let t, r;
|
|
320
308
|
const s = A((c, d) => {
|
|
321
|
-
t
|
|
309
|
+
t = c, r = d;
|
|
322
310
|
});
|
|
323
311
|
return _t(this, {
|
|
324
|
-
_chunkSteps: n$1((c) => t
|
|
312
|
+
_chunkSteps: n$1((c) => t({
|
|
325
313
|
value: c,
|
|
326
314
|
done: !1
|
|
327
315
|
}), "_chunkSteps"),
|
|
328
|
-
_closeSteps: n$1(() => t
|
|
316
|
+
_closeSteps: n$1(() => t({
|
|
329
317
|
value: void 0,
|
|
330
318
|
done: !0
|
|
331
319
|
}), "_closeSteps"),
|
|
@@ -352,9 +340,9 @@ function Ns() {
|
|
|
352
340
|
return !l(e) || !Object.prototype.hasOwnProperty.call(e, "_readRequests") ? !1 : e instanceof fe;
|
|
353
341
|
}
|
|
354
342
|
n$1(Ee, "IsReadableStreamDefaultReader");
|
|
355
|
-
function _t(e, t
|
|
343
|
+
function _t(e, t) {
|
|
356
344
|
const r = e._ownerReadableStream;
|
|
357
|
-
r._disturbed = !0, r._state === "closed" ? t
|
|
345
|
+
r._disturbed = !0, r._state === "closed" ? t._closeSteps() : r._state === "errored" ? t._errorSteps(r._storedError) : r._readableStreamController[Br](t);
|
|
358
346
|
}
|
|
359
347
|
n$1(_t, "ReadableStreamDefaultReaderRead");
|
|
360
348
|
function Gi(e) {
|
|
@@ -362,10 +350,10 @@ function Ns() {
|
|
|
362
350
|
ro(e, /* @__PURE__ */ new TypeError("Reader was released"));
|
|
363
351
|
}
|
|
364
352
|
n$1(Gi, "ReadableStreamDefaultReaderRelease");
|
|
365
|
-
function ro(e, t
|
|
353
|
+
function ro(e, t) {
|
|
366
354
|
const r = e._readRequests;
|
|
367
355
|
e._readRequests = new D(), r.forEach((s) => {
|
|
368
|
-
s._errorSteps(t
|
|
356
|
+
s._errorSteps(t);
|
|
369
357
|
});
|
|
370
358
|
}
|
|
371
359
|
n$1(ro, "ReadableStreamDefaultReaderErrorReadRequests");
|
|
@@ -374,15 +362,15 @@ function Ns() {
|
|
|
374
362
|
}
|
|
375
363
|
n$1(Dt, "defaultReaderBrandCheckException");
|
|
376
364
|
const Zi = Object.getPrototypeOf(Object.getPrototypeOf(async function* () {}).prototype), yn = class yn$1 {
|
|
377
|
-
constructor(t
|
|
378
|
-
this._ongoingPromise = void 0, this._isFinished = !1, this._reader = t
|
|
365
|
+
constructor(t, r) {
|
|
366
|
+
this._ongoingPromise = void 0, this._isFinished = !1, this._reader = t, this._preventCancel = r;
|
|
379
367
|
}
|
|
380
368
|
next() {
|
|
381
|
-
const t
|
|
382
|
-
return this._ongoingPromise = this._ongoingPromise ? F(this._ongoingPromise, t
|
|
369
|
+
const t = n$1(() => this._nextSteps(), "nextSteps");
|
|
370
|
+
return this._ongoingPromise = this._ongoingPromise ? F(this._ongoingPromise, t, t) : t(), this._ongoingPromise;
|
|
383
371
|
}
|
|
384
|
-
return(t
|
|
385
|
-
const r = n$1(() => this._returnSteps(t
|
|
372
|
+
return(t) {
|
|
373
|
+
const r = n$1(() => this._returnSteps(t), "returnSteps");
|
|
386
374
|
return this._ongoingPromise ? F(this._ongoingPromise, r, r) : r();
|
|
387
375
|
}
|
|
388
376
|
_nextSteps() {
|
|
@@ -390,12 +378,12 @@ function Ns() {
|
|
|
390
378
|
value: void 0,
|
|
391
379
|
done: !0
|
|
392
380
|
});
|
|
393
|
-
const t
|
|
381
|
+
const t = this._reader;
|
|
394
382
|
let r, s;
|
|
395
383
|
const u = A((d, m) => {
|
|
396
384
|
r = d, s = m;
|
|
397
385
|
});
|
|
398
|
-
return _t(t
|
|
386
|
+
return _t(t, {
|
|
399
387
|
_chunkSteps: n$1((d) => {
|
|
400
388
|
this._ongoingPromise = void 0, ge(() => r({
|
|
401
389
|
value: d,
|
|
@@ -403,32 +391,32 @@ function Ns() {
|
|
|
403
391
|
}));
|
|
404
392
|
}, "_chunkSteps"),
|
|
405
393
|
_closeSteps: n$1(() => {
|
|
406
|
-
this._ongoingPromise = void 0, this._isFinished = !0, _e(t
|
|
394
|
+
this._ongoingPromise = void 0, this._isFinished = !0, _e(t), r({
|
|
407
395
|
value: void 0,
|
|
408
396
|
done: !0
|
|
409
397
|
});
|
|
410
398
|
}, "_closeSteps"),
|
|
411
399
|
_errorSteps: n$1((d) => {
|
|
412
|
-
this._ongoingPromise = void 0, this._isFinished = !0, _e(t
|
|
400
|
+
this._ongoingPromise = void 0, this._isFinished = !0, _e(t), s(d);
|
|
413
401
|
}, "_errorSteps")
|
|
414
402
|
}), u;
|
|
415
403
|
}
|
|
416
|
-
_returnSteps(t
|
|
404
|
+
_returnSteps(t) {
|
|
417
405
|
if (this._isFinished) return Promise.resolve({
|
|
418
|
-
value: t
|
|
406
|
+
value: t,
|
|
419
407
|
done: !0
|
|
420
408
|
});
|
|
421
409
|
this._isFinished = !0;
|
|
422
410
|
const r = this._reader;
|
|
423
411
|
if (!this._preventCancel) {
|
|
424
|
-
const s = Wr(r, t
|
|
412
|
+
const s = Wr(r, t);
|
|
425
413
|
return _e(r), F(s, () => ({
|
|
426
|
-
value: t
|
|
414
|
+
value: t,
|
|
427
415
|
done: !0
|
|
428
416
|
}));
|
|
429
417
|
}
|
|
430
418
|
return _e(r), T({
|
|
431
|
-
value: t
|
|
419
|
+
value: t,
|
|
432
420
|
done: !0
|
|
433
421
|
});
|
|
434
422
|
}
|
|
@@ -444,8 +432,8 @@ function Ns() {
|
|
|
444
432
|
}
|
|
445
433
|
};
|
|
446
434
|
Object.setPrototypeOf(no, Zi);
|
|
447
|
-
function Ki(e, t
|
|
448
|
-
const s = new Mt(Qe(e), t
|
|
435
|
+
function Ki(e, t) {
|
|
436
|
+
const s = new Mt(Qe(e), t), u = Object.create(no);
|
|
449
437
|
return u._asyncIteratorImpl = s, u;
|
|
450
438
|
}
|
|
451
439
|
n$1(Ki, "AcquireReadableStreamAsyncIterator");
|
|
@@ -470,28 +458,28 @@ function Ns() {
|
|
|
470
458
|
return e.slice();
|
|
471
459
|
}
|
|
472
460
|
n$1(St, "CreateArrayFromList");
|
|
473
|
-
function so(e, t
|
|
474
|
-
new Uint8Array(e).set(new Uint8Array(r, s, u), t
|
|
461
|
+
function so(e, t, r, s, u) {
|
|
462
|
+
new Uint8Array(e).set(new Uint8Array(r, s, u), t);
|
|
475
463
|
}
|
|
476
464
|
n$1(so, "CopyDataBlockBytes");
|
|
477
|
-
let we = n$1((e) => (typeof e.transfer == "function" ? we = n$1((t
|
|
478
|
-
function lo(e, t
|
|
479
|
-
if (e.slice) return e.slice(t
|
|
480
|
-
const s = r - t
|
|
481
|
-
return so(u, 0, e, t
|
|
465
|
+
let we = n$1((e) => (typeof e.transfer == "function" ? we = n$1((t) => t.transfer(), "TransferArrayBuffer") : typeof structuredClone == "function" ? we = n$1((t) => structuredClone(t, { transfer: [t] }), "TransferArrayBuffer") : we = n$1((t) => t, "TransferArrayBuffer"), we(e)), "TransferArrayBuffer"), Ae = n$1((e) => (typeof e.detached == "boolean" ? Ae = n$1((t) => t.detached, "IsDetachedBuffer") : Ae = n$1((t) => t.byteLength === 0, "IsDetachedBuffer"), Ae(e)), "IsDetachedBuffer");
|
|
466
|
+
function lo(e, t, r) {
|
|
467
|
+
if (e.slice) return e.slice(t, r);
|
|
468
|
+
const s = r - t, u = new ArrayBuffer(s);
|
|
469
|
+
return so(u, 0, e, t, s), u;
|
|
482
470
|
}
|
|
483
471
|
n$1(lo, "ArrayBufferSlice");
|
|
484
|
-
function Ut(e, t
|
|
485
|
-
const r = e[t
|
|
472
|
+
function Ut(e, t) {
|
|
473
|
+
const r = e[t];
|
|
486
474
|
if (r != null) {
|
|
487
|
-
if (typeof r != "function") throw new TypeError(`${String(t
|
|
475
|
+
if (typeof r != "function") throw new TypeError(`${String(t)} is not a function`);
|
|
488
476
|
return r;
|
|
489
477
|
}
|
|
490
478
|
}
|
|
491
479
|
n$1(Ut, "GetMethod");
|
|
492
480
|
function Ji(e) {
|
|
493
|
-
const t
|
|
494
|
-
return yield* t
|
|
481
|
+
const t = { [Symbol.iterator]: () => e.iterator }, r = async function* () {
|
|
482
|
+
return yield* t;
|
|
495
483
|
}();
|
|
496
484
|
return {
|
|
497
485
|
iterator: r,
|
|
@@ -501,8 +489,8 @@ function Ns() {
|
|
|
501
489
|
}
|
|
502
490
|
n$1(Ji, "CreateAsyncFromSyncIterator");
|
|
503
491
|
const Ur = (Mr = ($r = Symbol.asyncIterator) !== null && $r !== void 0 ? $r : (Dr = Symbol.for) === null || Dr === void 0 ? void 0 : Dr.call(Symbol, "Symbol.asyncIterator")) !== null && Mr !== void 0 ? Mr : "@@asyncIterator";
|
|
504
|
-
function uo(e, t
|
|
505
|
-
if (r === void 0) if (t
|
|
492
|
+
function uo(e, t = "sync", r) {
|
|
493
|
+
if (r === void 0) if (t === "async") {
|
|
506
494
|
if (r = Ut(e, Ur), r === void 0) return Ji(uo(e, "sync", Ut(e, Symbol.iterator)));
|
|
507
495
|
} else r = Ut(e, Symbol.iterator);
|
|
508
496
|
if (r === void 0) throw new TypeError("The object is not iterable");
|
|
@@ -516,9 +504,9 @@ function Ns() {
|
|
|
516
504
|
}
|
|
517
505
|
n$1(uo, "GetIterator");
|
|
518
506
|
function Xi(e) {
|
|
519
|
-
const t
|
|
520
|
-
if (!l(t
|
|
521
|
-
return t
|
|
507
|
+
const t = z(e.nextMethod, e.iterator, []);
|
|
508
|
+
if (!l(t)) throw new TypeError("The iterator.next() method must return an object");
|
|
509
|
+
return t;
|
|
522
510
|
}
|
|
523
511
|
n$1(Xi, "IteratorNext");
|
|
524
512
|
function ea(e) {
|
|
@@ -534,19 +522,19 @@ function Ns() {
|
|
|
534
522
|
}
|
|
535
523
|
n$1(ra, "IsNonNegativeNumber");
|
|
536
524
|
function fo(e) {
|
|
537
|
-
const t
|
|
538
|
-
return new Uint8Array(t
|
|
525
|
+
const t = lo(e.buffer, e.byteOffset, e.byteOffset + e.byteLength);
|
|
526
|
+
return new Uint8Array(t);
|
|
539
527
|
}
|
|
540
528
|
n$1(fo, "CloneAsUint8Array");
|
|
541
529
|
function xr(e) {
|
|
542
|
-
const t
|
|
543
|
-
return e._queueTotalSize -= t
|
|
530
|
+
const t = e._queue.shift();
|
|
531
|
+
return e._queueTotalSize -= t.size, e._queueTotalSize < 0 && (e._queueTotalSize = 0), t.value;
|
|
544
532
|
}
|
|
545
533
|
n$1(xr, "DequeueValue");
|
|
546
|
-
function Nr(e, t
|
|
534
|
+
function Nr(e, t, r) {
|
|
547
535
|
if (!ra(r) || r === Infinity) throw new RangeError("Size must be a finite, non-NaN, non-negative number.");
|
|
548
536
|
e._queue.push({
|
|
549
|
-
value: t
|
|
537
|
+
value: t,
|
|
550
538
|
size: r
|
|
551
539
|
}), e._queueTotalSize += r;
|
|
552
540
|
}
|
|
@@ -579,18 +567,18 @@ function Ns() {
|
|
|
579
567
|
if (!Hr(this)) throw Zr("view");
|
|
580
568
|
return this._view;
|
|
581
569
|
}
|
|
582
|
-
respond(t
|
|
570
|
+
respond(t) {
|
|
583
571
|
if (!Hr(this)) throw Zr("respond");
|
|
584
|
-
if (Se(t
|
|
572
|
+
if (Se(t, 1, "respond"), t = Fr(t, "First parameter"), this._associatedReadableByteStreamController === void 0) throw new TypeError("This BYOB request has been invalidated");
|
|
585
573
|
if (Ae(this._view.buffer)) throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");
|
|
586
|
-
Vt(this._associatedReadableByteStreamController, t
|
|
574
|
+
Vt(this._associatedReadableByteStreamController, t);
|
|
587
575
|
}
|
|
588
|
-
respondWithNewView(t
|
|
576
|
+
respondWithNewView(t) {
|
|
589
577
|
if (!Hr(this)) throw Zr("respondWithNewView");
|
|
590
|
-
if (Se(t
|
|
578
|
+
if (Se(t, 1, "respondWithNewView"), !ArrayBuffer.isView(t)) throw new TypeError("You can only respond with array buffer views");
|
|
591
579
|
if (this._associatedReadableByteStreamController === void 0) throw new TypeError("This BYOB request has been invalidated");
|
|
592
|
-
if (Ae(t
|
|
593
|
-
Qt(this._associatedReadableByteStreamController, t
|
|
580
|
+
if (Ae(t.buffer)) throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");
|
|
581
|
+
Qt(this._associatedReadableByteStreamController, t);
|
|
594
582
|
}
|
|
595
583
|
};
|
|
596
584
|
n$1(gn, "ReadableStreamBYOBRequest");
|
|
@@ -618,33 +606,33 @@ function Ns() {
|
|
|
618
606
|
close() {
|
|
619
607
|
if (!Ie(this)) throw Rt("close");
|
|
620
608
|
if (this._closeRequested) throw new TypeError("The stream has already been closed; do not close it again!");
|
|
621
|
-
const t
|
|
622
|
-
if (t
|
|
609
|
+
const t = this._controlledReadableByteStream._state;
|
|
610
|
+
if (t !== "readable") throw new TypeError(`The stream (in ${t} state) is not in the readable state and cannot be closed`);
|
|
623
611
|
wt(this);
|
|
624
612
|
}
|
|
625
|
-
enqueue(t
|
|
613
|
+
enqueue(t) {
|
|
626
614
|
if (!Ie(this)) throw Rt("enqueue");
|
|
627
|
-
if (Se(t
|
|
628
|
-
if (t
|
|
629
|
-
if (t
|
|
615
|
+
if (Se(t, 1, "enqueue"), !ArrayBuffer.isView(t)) throw new TypeError("chunk must be an array buffer view");
|
|
616
|
+
if (t.byteLength === 0) throw new TypeError("chunk must have non-zero byteLength");
|
|
617
|
+
if (t.buffer.byteLength === 0) throw new TypeError("chunk's buffer must have non-zero byteLength");
|
|
630
618
|
if (this._closeRequested) throw new TypeError("stream is closed or draining");
|
|
631
619
|
const r = this._controlledReadableByteStream._state;
|
|
632
620
|
if (r !== "readable") throw new TypeError(`The stream (in ${r} state) is not in the readable state and cannot be enqueued to`);
|
|
633
|
-
Ht(this, t
|
|
621
|
+
Ht(this, t);
|
|
634
622
|
}
|
|
635
|
-
error(t
|
|
623
|
+
error(t = void 0) {
|
|
636
624
|
if (!Ie(this)) throw Rt("error");
|
|
637
|
-
K(this, t
|
|
625
|
+
K(this, t);
|
|
638
626
|
}
|
|
639
|
-
[Ar](t
|
|
627
|
+
[Ar](t) {
|
|
640
628
|
ho(this), Be(this);
|
|
641
|
-
const r = this._cancelAlgorithm(t
|
|
629
|
+
const r = this._cancelAlgorithm(t);
|
|
642
630
|
return Nt(this), r;
|
|
643
631
|
}
|
|
644
|
-
[Br](t
|
|
632
|
+
[Br](t) {
|
|
645
633
|
const r = this._controlledReadableByteStream;
|
|
646
634
|
if (this._queueTotalSize > 0) {
|
|
647
|
-
wo(this, t
|
|
635
|
+
wo(this, t);
|
|
648
636
|
return;
|
|
649
637
|
}
|
|
650
638
|
const s = this._autoAllocateChunkSize;
|
|
@@ -653,7 +641,7 @@ function Ns() {
|
|
|
653
641
|
try {
|
|
654
642
|
u = new ArrayBuffer(s);
|
|
655
643
|
} catch (d) {
|
|
656
|
-
t
|
|
644
|
+
t._errorSteps(d);
|
|
657
645
|
return;
|
|
658
646
|
}
|
|
659
647
|
const c = {
|
|
@@ -669,12 +657,12 @@ function Ns() {
|
|
|
669
657
|
};
|
|
670
658
|
this._pendingPullIntos.push(c);
|
|
671
659
|
}
|
|
672
|
-
eo(r, t
|
|
660
|
+
eo(r, t), Fe(this);
|
|
673
661
|
}
|
|
674
662
|
[kr]() {
|
|
675
663
|
if (this._pendingPullIntos.length > 0) {
|
|
676
|
-
const t
|
|
677
|
-
t
|
|
664
|
+
const t = this._pendingPullIntos.peek();
|
|
665
|
+
t.readerType = "none", this._pendingPullIntos = new D(), this._pendingPullIntos.push(t);
|
|
678
666
|
}
|
|
679
667
|
}
|
|
680
668
|
};
|
|
@@ -712,55 +700,55 @@ function Ns() {
|
|
|
712
700
|
Qr(e), e._pendingPullIntos = new D();
|
|
713
701
|
}
|
|
714
702
|
n$1(ho, "ReadableByteStreamControllerClearPendingPullIntos");
|
|
715
|
-
function Vr(e, t
|
|
703
|
+
function Vr(e, t) {
|
|
716
704
|
let r = !1;
|
|
717
705
|
e._state === "closed" && (r = !0);
|
|
718
|
-
const s = po(t
|
|
719
|
-
t
|
|
706
|
+
const s = po(t);
|
|
707
|
+
t.readerType === "default" ? Lr(e, s, r) : ma(e, s, r);
|
|
720
708
|
}
|
|
721
709
|
n$1(Vr, "ReadableByteStreamControllerCommitPullIntoDescriptor");
|
|
722
710
|
function po(e) {
|
|
723
|
-
const t
|
|
724
|
-
return new e.viewConstructor(e.buffer, e.byteOffset, t
|
|
711
|
+
const t = e.bytesFilled, r = e.elementSize;
|
|
712
|
+
return new e.viewConstructor(e.buffer, e.byteOffset, t / r);
|
|
725
713
|
}
|
|
726
714
|
n$1(po, "ReadableByteStreamControllerConvertPullIntoDescriptor");
|
|
727
|
-
function xt(e, t
|
|
715
|
+
function xt(e, t, r, s) {
|
|
728
716
|
e._queue.push({
|
|
729
|
-
buffer: t
|
|
717
|
+
buffer: t,
|
|
730
718
|
byteOffset: r,
|
|
731
719
|
byteLength: s
|
|
732
720
|
}), e._queueTotalSize += s;
|
|
733
721
|
}
|
|
734
722
|
n$1(xt, "ReadableByteStreamControllerEnqueueChunkToQueue");
|
|
735
|
-
function bo(e, t
|
|
723
|
+
function bo(e, t, r, s) {
|
|
736
724
|
let u;
|
|
737
725
|
try {
|
|
738
|
-
u = lo(t
|
|
726
|
+
u = lo(t, r, r + s);
|
|
739
727
|
} catch (c) {
|
|
740
728
|
throw K(e, c), c;
|
|
741
729
|
}
|
|
742
730
|
xt(e, u, 0, s);
|
|
743
731
|
}
|
|
744
732
|
n$1(bo, "ReadableByteStreamControllerEnqueueClonedChunkToQueue");
|
|
745
|
-
function mo(e, t
|
|
746
|
-
t
|
|
733
|
+
function mo(e, t) {
|
|
734
|
+
t.bytesFilled > 0 && bo(e, t.buffer, t.byteOffset, t.bytesFilled), Ye(e);
|
|
747
735
|
}
|
|
748
736
|
n$1(mo, "ReadableByteStreamControllerEnqueueDetachedPullIntoToQueue");
|
|
749
|
-
function yo(e, t
|
|
750
|
-
const r = Math.min(e._queueTotalSize, t
|
|
737
|
+
function yo(e, t) {
|
|
738
|
+
const r = Math.min(e._queueTotalSize, t.byteLength - t.bytesFilled), s = t.bytesFilled + r;
|
|
751
739
|
let u = r, c = !1;
|
|
752
|
-
const m = s - s % t
|
|
753
|
-
m >= t
|
|
740
|
+
const m = s - s % t.elementSize;
|
|
741
|
+
m >= t.minimumFill && (u = m - t.bytesFilled, c = !0);
|
|
754
742
|
const R = e._queue;
|
|
755
743
|
for (; u > 0;) {
|
|
756
|
-
const y = R.peek(), C = Math.min(u, y.byteLength), P = t
|
|
757
|
-
so(t
|
|
744
|
+
const y = R.peek(), C = Math.min(u, y.byteLength), P = t.byteOffset + t.bytesFilled;
|
|
745
|
+
so(t.buffer, P, y.buffer, y.byteOffset, C), y.byteLength === C ? R.shift() : (y.byteOffset += C, y.byteLength -= C), e._queueTotalSize -= C, go(e, C, t), u -= C;
|
|
758
746
|
}
|
|
759
747
|
return c;
|
|
760
748
|
}
|
|
761
749
|
n$1(yo, "ReadableByteStreamControllerFillPullIntoDescriptorFromQueue");
|
|
762
|
-
function go(e, t
|
|
763
|
-
r.bytesFilled += t
|
|
750
|
+
function go(e, t, r) {
|
|
751
|
+
r.bytesFilled += t;
|
|
764
752
|
}
|
|
765
753
|
n$1(go, "ReadableByteStreamControllerFillHeadPullIntoDescriptor");
|
|
766
754
|
function _o(e) {
|
|
@@ -774,24 +762,24 @@ function Ns() {
|
|
|
774
762
|
function Yr(e) {
|
|
775
763
|
for (; e._pendingPullIntos.length > 0;) {
|
|
776
764
|
if (e._queueTotalSize === 0) return;
|
|
777
|
-
const t
|
|
778
|
-
yo(e, t
|
|
765
|
+
const t = e._pendingPullIntos.peek();
|
|
766
|
+
yo(e, t) && (Ye(e), Vr(e._controlledReadableByteStream, t));
|
|
779
767
|
}
|
|
780
768
|
}
|
|
781
769
|
n$1(Yr, "ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue");
|
|
782
770
|
function aa(e) {
|
|
783
|
-
const t
|
|
784
|
-
for (; t
|
|
771
|
+
const t = e._controlledReadableByteStream._reader;
|
|
772
|
+
for (; t._readRequests.length > 0;) {
|
|
785
773
|
if (e._queueTotalSize === 0) return;
|
|
786
|
-
wo(e, t
|
|
774
|
+
wo(e, t._readRequests.shift());
|
|
787
775
|
}
|
|
788
776
|
}
|
|
789
777
|
n$1(aa, "ReadableByteStreamControllerProcessReadRequestsUsingQueue");
|
|
790
|
-
function sa(e, t
|
|
791
|
-
const u = e._controlledReadableByteStream, c = t
|
|
778
|
+
function sa(e, t, r, s) {
|
|
779
|
+
const u = e._controlledReadableByteStream, c = t.constructor, d = ia(c), { byteOffset: m, byteLength: R } = t, y = r * d;
|
|
792
780
|
let C;
|
|
793
781
|
try {
|
|
794
|
-
C = we(t
|
|
782
|
+
C = we(t.buffer);
|
|
795
783
|
} catch (B) {
|
|
796
784
|
s._errorSteps(B);
|
|
797
785
|
return;
|
|
@@ -831,14 +819,14 @@ function Ns() {
|
|
|
831
819
|
e._pendingPullIntos.push(P), Po(u, s), Fe(e);
|
|
832
820
|
}
|
|
833
821
|
n$1(sa, "ReadableByteStreamControllerPullInto");
|
|
834
|
-
function la(e, t
|
|
835
|
-
t
|
|
822
|
+
function la(e, t) {
|
|
823
|
+
t.readerType === "none" && Ye(e);
|
|
836
824
|
const r = e._controlledReadableByteStream;
|
|
837
825
|
if (Kr(r)) for (; vo(r) > 0;) Vr(r, Ye(e));
|
|
838
826
|
}
|
|
839
827
|
n$1(la, "ReadableByteStreamControllerRespondInClosedState");
|
|
840
|
-
function ua(e, t
|
|
841
|
-
if (go(e, t
|
|
828
|
+
function ua(e, t, r) {
|
|
829
|
+
if (go(e, t, r), r.readerType === "none") {
|
|
842
830
|
mo(e, r), Yr(e);
|
|
843
831
|
return;
|
|
844
832
|
}
|
|
@@ -852,9 +840,9 @@ function Ns() {
|
|
|
852
840
|
r.bytesFilled -= s, Vr(e._controlledReadableByteStream, r), Yr(e);
|
|
853
841
|
}
|
|
854
842
|
n$1(ua, "ReadableByteStreamControllerRespondInReadableState");
|
|
855
|
-
function So(e, t
|
|
843
|
+
function So(e, t) {
|
|
856
844
|
const r = e._pendingPullIntos.peek();
|
|
857
|
-
Qr(e), e._controlledReadableByteStream._state === "closed" ? la(e, r) : ua(e, t
|
|
845
|
+
Qr(e), e._controlledReadableByteStream._state === "closed" ? la(e, r) : ua(e, t, r), Fe(e);
|
|
858
846
|
}
|
|
859
847
|
n$1(So, "ReadableByteStreamControllerRespondInternal");
|
|
860
848
|
function Ye(e) {
|
|
@@ -862,8 +850,8 @@ function Ns() {
|
|
|
862
850
|
}
|
|
863
851
|
n$1(Ye, "ReadableByteStreamControllerShiftPendingPullInto");
|
|
864
852
|
function fa(e) {
|
|
865
|
-
const t
|
|
866
|
-
return t
|
|
853
|
+
const t = e._controlledReadableByteStream;
|
|
854
|
+
return t._state !== "readable" || e._closeRequested || !e._started ? !1 : !!(to(t) && $t(t) > 0 || Kr(t) && vo(t) > 0 || Ro(e) > 0);
|
|
867
855
|
}
|
|
868
856
|
n$1(fa, "ReadableByteStreamControllerShouldCallPull");
|
|
869
857
|
function Nt(e) {
|
|
@@ -871,8 +859,8 @@ function Ns() {
|
|
|
871
859
|
}
|
|
872
860
|
n$1(Nt, "ReadableByteStreamControllerClearAlgorithms");
|
|
873
861
|
function wt(e) {
|
|
874
|
-
const t
|
|
875
|
-
if (!(e._closeRequested || t
|
|
862
|
+
const t = e._controlledReadableByteStream;
|
|
863
|
+
if (!(e._closeRequested || t._state !== "readable")) {
|
|
876
864
|
if (e._queueTotalSize > 0) {
|
|
877
865
|
e._closeRequested = !0;
|
|
878
866
|
return;
|
|
@@ -884,14 +872,14 @@ function Ns() {
|
|
|
884
872
|
throw K(e, s), s;
|
|
885
873
|
}
|
|
886
874
|
}
|
|
887
|
-
Nt(e), At(t
|
|
875
|
+
Nt(e), At(t);
|
|
888
876
|
}
|
|
889
877
|
}
|
|
890
878
|
n$1(wt, "ReadableByteStreamControllerClose");
|
|
891
|
-
function Ht(e, t
|
|
879
|
+
function Ht(e, t) {
|
|
892
880
|
const r = e._controlledReadableByteStream;
|
|
893
881
|
if (e._closeRequested || r._state !== "readable") return;
|
|
894
|
-
const { buffer: s, byteOffset: u, byteLength: c } = t
|
|
882
|
+
const { buffer: s, byteOffset: u, byteLength: c } = t;
|
|
895
883
|
if (Ae(s)) throw new TypeError("chunk's buffer is detached and so cannot be enqueued");
|
|
896
884
|
const d = we(s);
|
|
897
885
|
if (e._pendingPullIntos.length > 0) {
|
|
@@ -908,70 +896,70 @@ function Ns() {
|
|
|
908
896
|
Fe(e);
|
|
909
897
|
}
|
|
910
898
|
n$1(Ht, "ReadableByteStreamControllerEnqueue");
|
|
911
|
-
function K(e, t
|
|
899
|
+
function K(e, t) {
|
|
912
900
|
const r = e._controlledReadableByteStream;
|
|
913
|
-
r._state === "readable" && (ho(e), Be(e), Nt(e), Zo(r, t
|
|
901
|
+
r._state === "readable" && (ho(e), Be(e), Nt(e), Zo(r, t));
|
|
914
902
|
}
|
|
915
903
|
n$1(K, "ReadableByteStreamControllerError");
|
|
916
|
-
function wo(e, t
|
|
904
|
+
function wo(e, t) {
|
|
917
905
|
const r = e._queue.shift();
|
|
918
906
|
e._queueTotalSize -= r.byteLength, _o(e);
|
|
919
907
|
const s = new Uint8Array(r.buffer, r.byteOffset, r.byteLength);
|
|
920
|
-
t
|
|
908
|
+
t._chunkSteps(s);
|
|
921
909
|
}
|
|
922
910
|
n$1(wo, "ReadableByteStreamControllerFillReadRequestFromQueue");
|
|
923
911
|
function Gr(e) {
|
|
924
912
|
if (e._byobRequest === null && e._pendingPullIntos.length > 0) {
|
|
925
|
-
const t
|
|
913
|
+
const t = e._pendingPullIntos.peek(), r = new Uint8Array(t.buffer, t.byteOffset + t.bytesFilled, t.byteLength - t.bytesFilled), s = Object.create(Re.prototype);
|
|
926
914
|
da(s, e, r), e._byobRequest = s;
|
|
927
915
|
}
|
|
928
916
|
return e._byobRequest;
|
|
929
917
|
}
|
|
930
918
|
n$1(Gr, "ReadableByteStreamControllerGetBYOBRequest");
|
|
931
919
|
function Ro(e) {
|
|
932
|
-
const t
|
|
933
|
-
return t
|
|
920
|
+
const t = e._controlledReadableByteStream._state;
|
|
921
|
+
return t === "errored" ? null : t === "closed" ? 0 : e._strategyHWM - e._queueTotalSize;
|
|
934
922
|
}
|
|
935
923
|
n$1(Ro, "ReadableByteStreamControllerGetDesiredSize");
|
|
936
|
-
function Vt(e, t
|
|
924
|
+
function Vt(e, t) {
|
|
937
925
|
const r = e._pendingPullIntos.peek();
|
|
938
926
|
if (e._controlledReadableByteStream._state === "closed") {
|
|
939
|
-
if (t
|
|
927
|
+
if (t !== 0) throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");
|
|
940
928
|
} else {
|
|
941
|
-
if (t
|
|
942
|
-
if (r.bytesFilled + t
|
|
929
|
+
if (t === 0) throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");
|
|
930
|
+
if (r.bytesFilled + t > r.byteLength) throw new RangeError("bytesWritten out of range");
|
|
943
931
|
}
|
|
944
|
-
r.buffer = we(r.buffer), So(e, t
|
|
932
|
+
r.buffer = we(r.buffer), So(e, t);
|
|
945
933
|
}
|
|
946
934
|
n$1(Vt, "ReadableByteStreamControllerRespond");
|
|
947
|
-
function Qt(e, t
|
|
935
|
+
function Qt(e, t) {
|
|
948
936
|
const r = e._pendingPullIntos.peek();
|
|
949
937
|
if (e._controlledReadableByteStream._state === "closed") {
|
|
950
|
-
if (t
|
|
951
|
-
} else if (t
|
|
952
|
-
if (r.byteOffset + r.bytesFilled !== t
|
|
953
|
-
if (r.bufferByteLength !== t
|
|
954
|
-
if (r.bytesFilled + t
|
|
955
|
-
const u = t
|
|
956
|
-
r.buffer = we(t
|
|
938
|
+
if (t.byteLength !== 0) throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream");
|
|
939
|
+
} else if (t.byteLength === 0) throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");
|
|
940
|
+
if (r.byteOffset + r.bytesFilled !== t.byteOffset) throw new RangeError("The region specified by view does not match byobRequest");
|
|
941
|
+
if (r.bufferByteLength !== t.buffer.byteLength) throw new RangeError("The buffer of view has different capacity than byobRequest");
|
|
942
|
+
if (r.bytesFilled + t.byteLength > r.byteLength) throw new RangeError("The region specified by view is larger than byobRequest");
|
|
943
|
+
const u = t.byteLength;
|
|
944
|
+
r.buffer = we(t.buffer), So(e, u);
|
|
957
945
|
}
|
|
958
946
|
n$1(Qt, "ReadableByteStreamControllerRespondWithNewView");
|
|
959
|
-
function To(e, t
|
|
960
|
-
t
|
|
961
|
-
g(T(r()), () => (t
|
|
947
|
+
function To(e, t, r, s, u, c, d) {
|
|
948
|
+
t._controlledReadableByteStream = e, t._pullAgain = !1, t._pulling = !1, t._byobRequest = null, t._queue = t._queueTotalSize = void 0, Be(t), t._closeRequested = !1, t._started = !1, t._strategyHWM = c, t._pullAlgorithm = s, t._cancelAlgorithm = u, t._autoAllocateChunkSize = d, t._pendingPullIntos = new D(), e._readableStreamController = t;
|
|
949
|
+
g(T(r()), () => (t._started = !0, Fe(t), null), (R) => (K(t, R), null));
|
|
962
950
|
}
|
|
963
951
|
n$1(To, "SetUpReadableByteStreamController");
|
|
964
|
-
function ca(e, t
|
|
952
|
+
function ca(e, t, r) {
|
|
965
953
|
const s = Object.create(te.prototype);
|
|
966
954
|
let u, c, d;
|
|
967
|
-
t
|
|
968
|
-
const m = t
|
|
955
|
+
t.start !== void 0 ? u = n$1(() => t.start(s), "startAlgorithm") : u = n$1(() => {}, "startAlgorithm"), t.pull !== void 0 ? c = n$1(() => t.pull(s), "pullAlgorithm") : c = n$1(() => T(void 0), "pullAlgorithm"), t.cancel !== void 0 ? d = n$1((R) => t.cancel(R), "cancelAlgorithm") : d = n$1(() => T(void 0), "cancelAlgorithm");
|
|
956
|
+
const m = t.autoAllocateChunkSize;
|
|
969
957
|
if (m === 0) throw new TypeError("autoAllocateChunkSize must be greater than 0");
|
|
970
958
|
To(e, s, u, c, d, r, m);
|
|
971
959
|
}
|
|
972
960
|
n$1(ca, "SetUpReadableByteStreamControllerFromUnderlyingSource");
|
|
973
|
-
function da(e, t
|
|
974
|
-
e._associatedReadableByteStreamController = t
|
|
961
|
+
function da(e, t, r) {
|
|
962
|
+
e._associatedReadableByteStreamController = t, e._view = r;
|
|
975
963
|
}
|
|
976
964
|
n$1(da, "SetUpReadableStreamBYOBRequest");
|
|
977
965
|
function Zr(e) {
|
|
@@ -982,34 +970,34 @@ function Ns() {
|
|
|
982
970
|
return /* @__PURE__ */ new TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`);
|
|
983
971
|
}
|
|
984
972
|
n$1(Rt, "byteStreamControllerBrandCheckException");
|
|
985
|
-
function ha(e, t
|
|
986
|
-
ue(e, t
|
|
973
|
+
function ha(e, t) {
|
|
974
|
+
ue(e, t);
|
|
987
975
|
const r = e?.mode;
|
|
988
|
-
return { mode: r === void 0 ? void 0 : pa(r, `${t
|
|
976
|
+
return { mode: r === void 0 ? void 0 : pa(r, `${t} has member 'mode' that`) };
|
|
989
977
|
}
|
|
990
978
|
n$1(ha, "convertReaderOptions");
|
|
991
|
-
function pa(e, t
|
|
992
|
-
if (e = `${e}`, e !== "byob") throw new TypeError(`${t
|
|
979
|
+
function pa(e, t) {
|
|
980
|
+
if (e = `${e}`, e !== "byob") throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamReaderMode`);
|
|
993
981
|
return e;
|
|
994
982
|
}
|
|
995
983
|
n$1(pa, "convertReadableStreamReaderMode");
|
|
996
|
-
function ba(e, t
|
|
984
|
+
function ba(e, t) {
|
|
997
985
|
var r;
|
|
998
|
-
ue(e, t
|
|
999
|
-
return { min: Fr((r = e?.min) !== null && r !== void 0 ? r : 1, `${t
|
|
986
|
+
ue(e, t);
|
|
987
|
+
return { min: Fr((r = e?.min) !== null && r !== void 0 ? r : 1, `${t} has member 'min' that`) };
|
|
1000
988
|
}
|
|
1001
989
|
n$1(ba, "convertByobReadOptions");
|
|
1002
990
|
function Co(e) {
|
|
1003
991
|
return new ce(e);
|
|
1004
992
|
}
|
|
1005
993
|
n$1(Co, "AcquireReadableStreamBYOBReader");
|
|
1006
|
-
function Po(e, t
|
|
1007
|
-
e._reader._readIntoRequests.push(t
|
|
994
|
+
function Po(e, t) {
|
|
995
|
+
e._reader._readIntoRequests.push(t);
|
|
1008
996
|
}
|
|
1009
997
|
n$1(Po, "ReadableStreamAddReadIntoRequest");
|
|
1010
|
-
function ma(e, t
|
|
998
|
+
function ma(e, t, r) {
|
|
1011
999
|
const u = e._reader._readIntoRequests.shift();
|
|
1012
|
-
r ? u._closeSteps(t
|
|
1000
|
+
r ? u._closeSteps(t) : u._chunkSteps(t);
|
|
1013
1001
|
}
|
|
1014
1002
|
n$1(ma, "ReadableStreamFulfillReadIntoRequest");
|
|
1015
1003
|
function vo(e) {
|
|
@@ -1017,28 +1005,28 @@ function Ns() {
|
|
|
1017
1005
|
}
|
|
1018
1006
|
n$1(vo, "ReadableStreamGetNumReadIntoRequests");
|
|
1019
1007
|
function Kr(e) {
|
|
1020
|
-
const t
|
|
1021
|
-
return !(t
|
|
1008
|
+
const t = e._reader;
|
|
1009
|
+
return !(t === void 0 || !je(t));
|
|
1022
1010
|
}
|
|
1023
1011
|
n$1(Kr, "ReadableStreamHasBYOBReader");
|
|
1024
1012
|
const Sn = class Sn$1 {
|
|
1025
|
-
constructor(t
|
|
1026
|
-
if (Se(t
|
|
1027
|
-
if (!Ie(t
|
|
1028
|
-
Yn(this, t
|
|
1013
|
+
constructor(t) {
|
|
1014
|
+
if (Se(t, 1, "ReadableStreamBYOBReader"), jr(t, "First parameter"), qe(t)) throw new TypeError("This stream has already been locked for exclusive reading by another reader");
|
|
1015
|
+
if (!Ie(t._readableStreamController)) throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");
|
|
1016
|
+
Yn(this, t), this._readIntoRequests = new D();
|
|
1029
1017
|
}
|
|
1030
1018
|
get closed() {
|
|
1031
1019
|
return je(this) ? this._closedPromise : b(Yt("closed"));
|
|
1032
1020
|
}
|
|
1033
|
-
cancel(t
|
|
1034
|
-
return je(this) ? this._ownerReadableStream === void 0 ? b(Lt("cancel")) : Wr(this, t
|
|
1021
|
+
cancel(t = void 0) {
|
|
1022
|
+
return je(this) ? this._ownerReadableStream === void 0 ? b(Lt("cancel")) : Wr(this, t) : b(Yt("cancel"));
|
|
1035
1023
|
}
|
|
1036
|
-
read(t
|
|
1024
|
+
read(t, r = {}) {
|
|
1037
1025
|
if (!je(this)) return b(Yt("read"));
|
|
1038
|
-
if (!ArrayBuffer.isView(t
|
|
1039
|
-
if (t
|
|
1040
|
-
if (t
|
|
1041
|
-
if (Ae(t
|
|
1026
|
+
if (!ArrayBuffer.isView(t)) return b(/* @__PURE__ */ new TypeError("view must be an array buffer view"));
|
|
1027
|
+
if (t.byteLength === 0) return b(/* @__PURE__ */ new TypeError("view must have non-zero byteLength"));
|
|
1028
|
+
if (t.buffer.byteLength === 0) return b(/* @__PURE__ */ new TypeError("view's buffer must have non-zero byteLength"));
|
|
1029
|
+
if (Ae(t.buffer)) return b(/* @__PURE__ */ new TypeError("view's buffer has been detached"));
|
|
1042
1030
|
let s;
|
|
1043
1031
|
try {
|
|
1044
1032
|
s = ba(r, "options");
|
|
@@ -1047,15 +1035,15 @@ function Ns() {
|
|
|
1047
1035
|
}
|
|
1048
1036
|
const u = s.min;
|
|
1049
1037
|
if (u === 0) return b(/* @__PURE__ */ new TypeError("options.min must be greater than 0"));
|
|
1050
|
-
if (oa(t
|
|
1051
|
-
if (u > t
|
|
1052
|
-
} else if (u > t
|
|
1038
|
+
if (oa(t)) {
|
|
1039
|
+
if (u > t.byteLength) return b(/* @__PURE__ */ new RangeError("options.min must be less than or equal to view's byteLength"));
|
|
1040
|
+
} else if (u > t.length) return b(/* @__PURE__ */ new RangeError("options.min must be less than or equal to view's length"));
|
|
1053
1041
|
if (this._ownerReadableStream === void 0) return b(Lt("read from"));
|
|
1054
1042
|
let c, d;
|
|
1055
1043
|
const m = A((y, C) => {
|
|
1056
1044
|
c = y, d = C;
|
|
1057
1045
|
});
|
|
1058
|
-
return Eo(this, t
|
|
1046
|
+
return Eo(this, t, u, {
|
|
1059
1047
|
_chunkSteps: n$1((y) => c({
|
|
1060
1048
|
value: y,
|
|
1061
1049
|
done: !1
|
|
@@ -1087,9 +1075,9 @@ function Ns() {
|
|
|
1087
1075
|
return !l(e) || !Object.prototype.hasOwnProperty.call(e, "_readIntoRequests") ? !1 : e instanceof ce;
|
|
1088
1076
|
}
|
|
1089
1077
|
n$1(je, "IsReadableStreamBYOBReader");
|
|
1090
|
-
function Eo(e, t
|
|
1078
|
+
function Eo(e, t, r, s) {
|
|
1091
1079
|
const u = e._ownerReadableStream;
|
|
1092
|
-
u._disturbed = !0, u._state === "errored" ? s._errorSteps(u._storedError) : sa(u._readableStreamController, t
|
|
1080
|
+
u._disturbed = !0, u._state === "errored" ? s._errorSteps(u._storedError) : sa(u._readableStreamController, t, r, s);
|
|
1093
1081
|
}
|
|
1094
1082
|
n$1(Eo, "ReadableStreamBYOBReaderRead");
|
|
1095
1083
|
function ya(e) {
|
|
@@ -1097,10 +1085,10 @@ function Ns() {
|
|
|
1097
1085
|
Ao(e, /* @__PURE__ */ new TypeError("Reader was released"));
|
|
1098
1086
|
}
|
|
1099
1087
|
n$1(ya, "ReadableStreamBYOBReaderRelease");
|
|
1100
|
-
function Ao(e, t
|
|
1088
|
+
function Ao(e, t) {
|
|
1101
1089
|
const r = e._readIntoRequests;
|
|
1102
1090
|
e._readIntoRequests = new D(), r.forEach((s) => {
|
|
1103
|
-
s._errorSteps(t
|
|
1091
|
+
s._errorSteps(t);
|
|
1104
1092
|
});
|
|
1105
1093
|
}
|
|
1106
1094
|
n$1(Ao, "ReadableStreamBYOBReaderErrorReadIntoRequests");
|
|
@@ -1108,61 +1096,61 @@ function Ns() {
|
|
|
1108
1096
|
return /* @__PURE__ */ new TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`);
|
|
1109
1097
|
}
|
|
1110
1098
|
n$1(Yt, "byobReaderBrandCheckException");
|
|
1111
|
-
function Tt(e, t
|
|
1099
|
+
function Tt(e, t) {
|
|
1112
1100
|
const { highWaterMark: r } = e;
|
|
1113
|
-
if (r === void 0) return t
|
|
1101
|
+
if (r === void 0) return t;
|
|
1114
1102
|
if (ao(r) || r < 0) throw new RangeError("Invalid highWaterMark");
|
|
1115
1103
|
return r;
|
|
1116
1104
|
}
|
|
1117
1105
|
n$1(Tt, "ExtractHighWaterMark");
|
|
1118
1106
|
function Gt(e) {
|
|
1119
|
-
const { size: t
|
|
1120
|
-
return t
|
|
1107
|
+
const { size: t } = e;
|
|
1108
|
+
return t || (() => 1);
|
|
1121
1109
|
}
|
|
1122
1110
|
n$1(Gt, "ExtractSizeAlgorithm");
|
|
1123
|
-
function Zt(e, t
|
|
1124
|
-
ue(e, t
|
|
1111
|
+
function Zt(e, t) {
|
|
1112
|
+
ue(e, t);
|
|
1125
1113
|
const r = e?.highWaterMark, s = e?.size;
|
|
1126
1114
|
return {
|
|
1127
1115
|
highWaterMark: r === void 0 ? void 0 : Ir(r),
|
|
1128
|
-
size: s === void 0 ? void 0 : ga(s, `${t
|
|
1116
|
+
size: s === void 0 ? void 0 : ga(s, `${t} has member 'size' that`)
|
|
1129
1117
|
};
|
|
1130
1118
|
}
|
|
1131
1119
|
n$1(Zt, "convertQueuingStrategy");
|
|
1132
|
-
function ga(e, t
|
|
1133
|
-
return Z(e, t
|
|
1120
|
+
function ga(e, t) {
|
|
1121
|
+
return Z(e, t), (r) => Ir(e(r));
|
|
1134
1122
|
}
|
|
1135
1123
|
n$1(ga, "convertQueuingStrategySize");
|
|
1136
|
-
function _a(e, t
|
|
1137
|
-
ue(e, t
|
|
1124
|
+
function _a(e, t) {
|
|
1125
|
+
ue(e, t);
|
|
1138
1126
|
const r = e?.abort, s = e?.close, u = e?.start, c = e?.type, d = e?.write;
|
|
1139
1127
|
return {
|
|
1140
|
-
abort: r === void 0 ? void 0 : Sa(r, e, `${t
|
|
1141
|
-
close: s === void 0 ? void 0 : wa(s, e, `${t
|
|
1142
|
-
start: u === void 0 ? void 0 : Ra(u, e, `${t
|
|
1143
|
-
write: d === void 0 ? void 0 : Ta(d, e, `${t
|
|
1128
|
+
abort: r === void 0 ? void 0 : Sa(r, e, `${t} has member 'abort' that`),
|
|
1129
|
+
close: s === void 0 ? void 0 : wa(s, e, `${t} has member 'close' that`),
|
|
1130
|
+
start: u === void 0 ? void 0 : Ra(u, e, `${t} has member 'start' that`),
|
|
1131
|
+
write: d === void 0 ? void 0 : Ta(d, e, `${t} has member 'write' that`),
|
|
1144
1132
|
type: c
|
|
1145
1133
|
};
|
|
1146
1134
|
}
|
|
1147
1135
|
n$1(_a, "convertUnderlyingSink");
|
|
1148
|
-
function Sa(e, t
|
|
1149
|
-
return Z(e, r), (s) => j(e, t
|
|
1136
|
+
function Sa(e, t, r) {
|
|
1137
|
+
return Z(e, r), (s) => j(e, t, [s]);
|
|
1150
1138
|
}
|
|
1151
1139
|
n$1(Sa, "convertUnderlyingSinkAbortCallback");
|
|
1152
|
-
function wa(e, t
|
|
1153
|
-
return Z(e, r), () => j(e, t
|
|
1140
|
+
function wa(e, t, r) {
|
|
1141
|
+
return Z(e, r), () => j(e, t, []);
|
|
1154
1142
|
}
|
|
1155
1143
|
n$1(wa, "convertUnderlyingSinkCloseCallback");
|
|
1156
|
-
function Ra(e, t
|
|
1157
|
-
return Z(e, r), (s) => z(e, t
|
|
1144
|
+
function Ra(e, t, r) {
|
|
1145
|
+
return Z(e, r), (s) => z(e, t, [s]);
|
|
1158
1146
|
}
|
|
1159
1147
|
n$1(Ra, "convertUnderlyingSinkStartCallback");
|
|
1160
|
-
function Ta(e, t
|
|
1161
|
-
return Z(e, r), (s, u) => j(e, t
|
|
1148
|
+
function Ta(e, t, r) {
|
|
1149
|
+
return Z(e, r), (s, u) => j(e, t, [s, u]);
|
|
1162
1150
|
}
|
|
1163
1151
|
n$1(Ta, "convertUnderlyingSinkWriteCallback");
|
|
1164
|
-
function Bo(e, t
|
|
1165
|
-
if (!Ge(e)) throw new TypeError(`${t
|
|
1152
|
+
function Bo(e, t) {
|
|
1153
|
+
if (!Ge(e)) throw new TypeError(`${t} is not a WritableStream.`);
|
|
1166
1154
|
}
|
|
1167
1155
|
n$1(Bo, "assertWritableStream");
|
|
1168
1156
|
function Ca(e) {
|
|
@@ -1180,9 +1168,9 @@ function Ns() {
|
|
|
1180
1168
|
}
|
|
1181
1169
|
n$1(va, "createAbortController");
|
|
1182
1170
|
const wn = class wn$1 {
|
|
1183
|
-
constructor(t
|
|
1184
|
-
t
|
|
1185
|
-
const s = Zt(r, "Second parameter"), u = _a(t
|
|
1171
|
+
constructor(t = {}, r = {}) {
|
|
1172
|
+
t === void 0 ? t = null : Jn(t, "First parameter");
|
|
1173
|
+
const s = Zt(r, "Second parameter"), u = _a(t, "First parameter");
|
|
1186
1174
|
if (Wo(this), u.type !== void 0) throw new RangeError("Invalid type is specified");
|
|
1187
1175
|
const d = Gt(s), m = Tt(s, 1);
|
|
1188
1176
|
Da(this, u, m, d);
|
|
@@ -1191,8 +1179,8 @@ function Ns() {
|
|
|
1191
1179
|
if (!Ge(this)) throw tr("locked");
|
|
1192
1180
|
return Ze(this);
|
|
1193
1181
|
}
|
|
1194
|
-
abort(t
|
|
1195
|
-
return Ge(this) ? Ze(this) ? b(/* @__PURE__ */ new TypeError("Cannot abort a stream that already has a writer")) : Kt(this, t
|
|
1182
|
+
abort(t = void 0) {
|
|
1183
|
+
return Ge(this) ? Ze(this) ? b(/* @__PURE__ */ new TypeError("Cannot abort a stream that already has a writer")) : Kt(this, t) : b(tr("abort"));
|
|
1196
1184
|
}
|
|
1197
1185
|
close() {
|
|
1198
1186
|
return Ge(this) ? Ze(this) ? b(/* @__PURE__ */ new TypeError("Cannot close a stream that already has a writer")) : he(this) ? b(/* @__PURE__ */ new TypeError("Cannot close an already-closing stream")) : qo(this) : b(tr("close"));
|
|
@@ -1217,10 +1205,10 @@ function Ns() {
|
|
|
1217
1205
|
return new re(e);
|
|
1218
1206
|
}
|
|
1219
1207
|
n$1(ko, "AcquireWritableStreamDefaultWriter");
|
|
1220
|
-
function Ea(e, t
|
|
1208
|
+
function Ea(e, t, r, s, u = 1, c = () => 1) {
|
|
1221
1209
|
const d = Object.create(de.prototype);
|
|
1222
1210
|
Wo(d);
|
|
1223
|
-
return Lo(d, Object.create(ke.prototype), e, t
|
|
1211
|
+
return Lo(d, Object.create(ke.prototype), e, t, r, s, u, c), d;
|
|
1224
1212
|
}
|
|
1225
1213
|
n$1(Ea, "CreateWritableStream");
|
|
1226
1214
|
function Wo(e) {
|
|
@@ -1235,37 +1223,37 @@ function Ns() {
|
|
|
1235
1223
|
return e._writer !== void 0;
|
|
1236
1224
|
}
|
|
1237
1225
|
n$1(Ze, "IsWritableStreamLocked");
|
|
1238
|
-
function Kt(e, t
|
|
1226
|
+
function Kt(e, t) {
|
|
1239
1227
|
var r;
|
|
1240
1228
|
if (e._state === "closed" || e._state === "errored") return T(void 0);
|
|
1241
|
-
e._writableStreamController._abortReason = t
|
|
1229
|
+
e._writableStreamController._abortReason = t, (r = e._writableStreamController._abortController) === null || r === void 0 || r.abort(t);
|
|
1242
1230
|
const s = e._state;
|
|
1243
1231
|
if (s === "closed" || s === "errored") return T(void 0);
|
|
1244
1232
|
if (e._pendingAbortRequest !== void 0) return e._pendingAbortRequest._promise;
|
|
1245
1233
|
let u = !1;
|
|
1246
|
-
s === "erroring" && (u = !0, t
|
|
1234
|
+
s === "erroring" && (u = !0, t = void 0);
|
|
1247
1235
|
const c = A((d, m) => {
|
|
1248
1236
|
e._pendingAbortRequest = {
|
|
1249
1237
|
_promise: void 0,
|
|
1250
1238
|
_resolve: d,
|
|
1251
1239
|
_reject: m,
|
|
1252
|
-
_reason: t
|
|
1240
|
+
_reason: t,
|
|
1253
1241
|
_wasAlreadyErroring: u
|
|
1254
1242
|
};
|
|
1255
1243
|
});
|
|
1256
|
-
return e._pendingAbortRequest._promise = c, u || Xr(e, t
|
|
1244
|
+
return e._pendingAbortRequest._promise = c, u || Xr(e, t), c;
|
|
1257
1245
|
}
|
|
1258
1246
|
n$1(Kt, "WritableStreamAbort");
|
|
1259
1247
|
function qo(e) {
|
|
1260
|
-
const t
|
|
1261
|
-
if (t
|
|
1248
|
+
const t = e._state;
|
|
1249
|
+
if (t === "closed" || t === "errored") return b(/* @__PURE__ */ new TypeError(`The stream (in ${t} state) is not in the writable state and cannot be closed`));
|
|
1262
1250
|
const r = A((u, c) => {
|
|
1263
1251
|
e._closeRequest = {
|
|
1264
1252
|
_resolve: u,
|
|
1265
1253
|
_reject: c
|
|
1266
1254
|
};
|
|
1267
1255
|
}), s = e._writer;
|
|
1268
|
-
return s !== void 0 && e._backpressure && t
|
|
1256
|
+
return s !== void 0 && e._backpressure && t === "writable" && ln(s), Ma(e._writableStreamController), r;
|
|
1269
1257
|
}
|
|
1270
1258
|
n$1(qo, "WritableStreamClose");
|
|
1271
1259
|
function Aa(e) {
|
|
@@ -1278,33 +1266,33 @@ function Ns() {
|
|
|
1278
1266
|
});
|
|
1279
1267
|
}
|
|
1280
1268
|
n$1(Aa, "WritableStreamAddWriteRequest");
|
|
1281
|
-
function Jr(e, t
|
|
1269
|
+
function Jr(e, t) {
|
|
1282
1270
|
if (e._state === "writable") {
|
|
1283
|
-
Xr(e, t
|
|
1271
|
+
Xr(e, t);
|
|
1284
1272
|
return;
|
|
1285
1273
|
}
|
|
1286
1274
|
en(e);
|
|
1287
1275
|
}
|
|
1288
1276
|
n$1(Jr, "WritableStreamDealWithRejection");
|
|
1289
|
-
function Xr(e, t
|
|
1277
|
+
function Xr(e, t) {
|
|
1290
1278
|
const r = e._writableStreamController;
|
|
1291
|
-
e._state = "erroring", e._storedError = t
|
|
1279
|
+
e._state = "erroring", e._storedError = t;
|
|
1292
1280
|
const s = e._writer;
|
|
1293
|
-
s !== void 0 && zo(s, t
|
|
1281
|
+
s !== void 0 && zo(s, t), !Oa(e) && r._started && en(e);
|
|
1294
1282
|
}
|
|
1295
1283
|
n$1(Xr, "WritableStreamStartErroring");
|
|
1296
1284
|
function en(e) {
|
|
1297
1285
|
e._state = "errored", e._writableStreamController[Qn]();
|
|
1298
|
-
const t
|
|
1286
|
+
const t = e._storedError;
|
|
1299
1287
|
if (e._writeRequests.forEach((u) => {
|
|
1300
|
-
u._reject(t
|
|
1288
|
+
u._reject(t);
|
|
1301
1289
|
}), e._writeRequests = new D(), e._pendingAbortRequest === void 0) {
|
|
1302
1290
|
Jt(e);
|
|
1303
1291
|
return;
|
|
1304
1292
|
}
|
|
1305
1293
|
const r = e._pendingAbortRequest;
|
|
1306
1294
|
if (e._pendingAbortRequest = void 0, r._wasAlreadyErroring) {
|
|
1307
|
-
r._reject(t
|
|
1295
|
+
r._reject(t), Jt(e);
|
|
1308
1296
|
return;
|
|
1309
1297
|
}
|
|
1310
1298
|
g(e._writableStreamController[jt](r._reason), () => (r._resolve(), Jt(e), null), (u) => (r._reject(u), Jt(e), null));
|
|
@@ -1314,8 +1302,8 @@ function Ns() {
|
|
|
1314
1302
|
e._inFlightWriteRequest._resolve(void 0), e._inFlightWriteRequest = void 0;
|
|
1315
1303
|
}
|
|
1316
1304
|
n$1(Ba, "WritableStreamFinishInFlightWrite");
|
|
1317
|
-
function ka(e, t
|
|
1318
|
-
e._inFlightWriteRequest._reject(t
|
|
1305
|
+
function ka(e, t) {
|
|
1306
|
+
e._inFlightWriteRequest._reject(t), e._inFlightWriteRequest = void 0, Jr(e, t);
|
|
1319
1307
|
}
|
|
1320
1308
|
n$1(ka, "WritableStreamFinishInFlightWriteWithError");
|
|
1321
1309
|
function Wa(e) {
|
|
@@ -1324,8 +1312,8 @@ function Ns() {
|
|
|
1324
1312
|
r !== void 0 && Uo(r);
|
|
1325
1313
|
}
|
|
1326
1314
|
n$1(Wa, "WritableStreamFinishInFlightClose");
|
|
1327
|
-
function qa(e, t
|
|
1328
|
-
e._inFlightCloseRequest._reject(t
|
|
1315
|
+
function qa(e, t) {
|
|
1316
|
+
e._inFlightCloseRequest._reject(t), e._inFlightCloseRequest = void 0, e._pendingAbortRequest !== void 0 && (e._pendingAbortRequest._reject(t), e._pendingAbortRequest = void 0), Jr(e, t);
|
|
1329
1317
|
}
|
|
1330
1318
|
n$1(qa, "WritableStreamFinishInFlightCloseWithError");
|
|
1331
1319
|
function he(e) {
|
|
@@ -1346,25 +1334,25 @@ function Ns() {
|
|
|
1346
1334
|
n$1(Ia, "WritableStreamMarkFirstWriteRequestInFlight");
|
|
1347
1335
|
function Jt(e) {
|
|
1348
1336
|
e._closeRequest !== void 0 && (e._closeRequest._reject(e._storedError), e._closeRequest = void 0);
|
|
1349
|
-
const t
|
|
1350
|
-
t
|
|
1337
|
+
const t = e._writer;
|
|
1338
|
+
t !== void 0 && an(t, e._storedError);
|
|
1351
1339
|
}
|
|
1352
1340
|
n$1(Jt, "WritableStreamRejectCloseAndClosedPromiseIfNeeded");
|
|
1353
|
-
function tn(e, t
|
|
1341
|
+
function tn(e, t) {
|
|
1354
1342
|
const r = e._writer;
|
|
1355
|
-
r !== void 0 && t
|
|
1343
|
+
r !== void 0 && t !== e._backpressure && (t ? Ya(r) : ln(r)), e._backpressure = t;
|
|
1356
1344
|
}
|
|
1357
1345
|
n$1(tn, "WritableStreamUpdateBackpressure");
|
|
1358
1346
|
const Rn = class Rn$1 {
|
|
1359
|
-
constructor(t
|
|
1360
|
-
if (Se(t
|
|
1361
|
-
this._ownerWritableStream = t
|
|
1362
|
-
const r = t
|
|
1363
|
-
if (r === "writable") !he(t
|
|
1364
|
-
else if (r === "erroring") sn(this, t
|
|
1347
|
+
constructor(t) {
|
|
1348
|
+
if (Se(t, 1, "WritableStreamDefaultWriter"), Bo(t, "First parameter"), Ze(t)) throw new TypeError("This stream has already been locked for exclusive writing by another writer");
|
|
1349
|
+
this._ownerWritableStream = t, t._writer = this;
|
|
1350
|
+
const r = t._state;
|
|
1351
|
+
if (r === "writable") !he(t) && t._backpressure ? nr(this) : xo(this), rr(this);
|
|
1352
|
+
else if (r === "erroring") sn(this, t._storedError), rr(this);
|
|
1365
1353
|
else if (r === "closed") xo(this), Va(this);
|
|
1366
1354
|
else {
|
|
1367
|
-
const s = t
|
|
1355
|
+
const s = t._storedError;
|
|
1368
1356
|
sn(this, s), Mo(this, s);
|
|
1369
1357
|
}
|
|
1370
1358
|
}
|
|
@@ -1379,20 +1367,20 @@ function Ns() {
|
|
|
1379
1367
|
get ready() {
|
|
1380
1368
|
return Le(this) ? this._readyPromise : b($e("ready"));
|
|
1381
1369
|
}
|
|
1382
|
-
abort(t
|
|
1383
|
-
return Le(this) ? this._ownerWritableStream === void 0 ? b(Pt("abort")) : Fa(this, t
|
|
1370
|
+
abort(t = void 0) {
|
|
1371
|
+
return Le(this) ? this._ownerWritableStream === void 0 ? b(Pt("abort")) : Fa(this, t) : b($e("abort"));
|
|
1384
1372
|
}
|
|
1385
1373
|
close() {
|
|
1386
1374
|
if (!Le(this)) return b($e("close"));
|
|
1387
|
-
const t
|
|
1388
|
-
return t
|
|
1375
|
+
const t = this._ownerWritableStream;
|
|
1376
|
+
return t === void 0 ? b(Pt("close")) : he(t) ? b(/* @__PURE__ */ new TypeError("Cannot close an already-closing stream")) : Oo(this);
|
|
1389
1377
|
}
|
|
1390
1378
|
releaseLock() {
|
|
1391
1379
|
if (!Le(this)) throw $e("releaseLock");
|
|
1392
1380
|
this._ownerWritableStream !== void 0 && Io(this);
|
|
1393
1381
|
}
|
|
1394
|
-
write(t
|
|
1395
|
-
return Le(this) ? this._ownerWritableStream === void 0 ? b(Pt("write to")) : Fo(this, t
|
|
1382
|
+
write(t = void 0) {
|
|
1383
|
+
return Le(this) ? this._ownerWritableStream === void 0 ? b(Pt("write to")) : Fo(this, t) : b($e("write"));
|
|
1396
1384
|
}
|
|
1397
1385
|
};
|
|
1398
1386
|
n$1(Rn, "WritableStreamDefaultWriter");
|
|
@@ -1413,48 +1401,48 @@ function Ns() {
|
|
|
1413
1401
|
return !l(e) || !Object.prototype.hasOwnProperty.call(e, "_ownerWritableStream") ? !1 : e instanceof re;
|
|
1414
1402
|
}
|
|
1415
1403
|
n$1(Le, "IsWritableStreamDefaultWriter");
|
|
1416
|
-
function Fa(e, t
|
|
1404
|
+
function Fa(e, t) {
|
|
1417
1405
|
const r = e._ownerWritableStream;
|
|
1418
|
-
return Kt(r, t
|
|
1406
|
+
return Kt(r, t);
|
|
1419
1407
|
}
|
|
1420
1408
|
n$1(Fa, "WritableStreamDefaultWriterAbort");
|
|
1421
1409
|
function Oo(e) {
|
|
1422
|
-
const t
|
|
1423
|
-
return qo(t
|
|
1410
|
+
const t = e._ownerWritableStream;
|
|
1411
|
+
return qo(t);
|
|
1424
1412
|
}
|
|
1425
1413
|
n$1(Oo, "WritableStreamDefaultWriterClose");
|
|
1426
1414
|
function ja(e) {
|
|
1427
|
-
const t
|
|
1428
|
-
return he(t
|
|
1415
|
+
const t = e._ownerWritableStream, r = t._state;
|
|
1416
|
+
return he(t) || r === "closed" ? T(void 0) : r === "errored" ? b(t._storedError) : Oo(e);
|
|
1429
1417
|
}
|
|
1430
1418
|
n$1(ja, "WritableStreamDefaultWriterCloseWithErrorPropagation");
|
|
1431
|
-
function La(e, t
|
|
1432
|
-
e._closedPromiseState === "pending" ? an(e, t
|
|
1419
|
+
function La(e, t) {
|
|
1420
|
+
e._closedPromiseState === "pending" ? an(e, t) : Qa(e, t);
|
|
1433
1421
|
}
|
|
1434
1422
|
n$1(La, "WritableStreamDefaultWriterEnsureClosedPromiseRejected");
|
|
1435
|
-
function zo(e, t
|
|
1436
|
-
e._readyPromiseState === "pending" ? No(e, t
|
|
1423
|
+
function zo(e, t) {
|
|
1424
|
+
e._readyPromiseState === "pending" ? No(e, t) : Ga(e, t);
|
|
1437
1425
|
}
|
|
1438
1426
|
n$1(zo, "WritableStreamDefaultWriterEnsureReadyPromiseRejected");
|
|
1439
1427
|
function $a(e) {
|
|
1440
|
-
const t
|
|
1441
|
-
return r === "errored" || r === "erroring" ? null : r === "closed" ? 0 : $o(t
|
|
1428
|
+
const t = e._ownerWritableStream, r = t._state;
|
|
1429
|
+
return r === "errored" || r === "erroring" ? null : r === "closed" ? 0 : $o(t._writableStreamController);
|
|
1442
1430
|
}
|
|
1443
1431
|
n$1($a, "WritableStreamDefaultWriterGetDesiredSize");
|
|
1444
1432
|
function Io(e) {
|
|
1445
|
-
const t
|
|
1446
|
-
zo(e, r), La(e, r), t
|
|
1433
|
+
const t = e._ownerWritableStream, r = /* @__PURE__ */ new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");
|
|
1434
|
+
zo(e, r), La(e, r), t._writer = void 0, e._ownerWritableStream = void 0;
|
|
1447
1435
|
}
|
|
1448
1436
|
n$1(Io, "WritableStreamDefaultWriterRelease");
|
|
1449
|
-
function Fo(e, t
|
|
1450
|
-
const r = e._ownerWritableStream, s = r._writableStreamController, u = Ua(s, t
|
|
1437
|
+
function Fo(e, t) {
|
|
1438
|
+
const r = e._ownerWritableStream, s = r._writableStreamController, u = Ua(s, t);
|
|
1451
1439
|
if (r !== e._ownerWritableStream) return b(Pt("write to"));
|
|
1452
1440
|
const c = r._state;
|
|
1453
1441
|
if (c === "errored") return b(r._storedError);
|
|
1454
1442
|
if (he(r) || c === "closed") return b(/* @__PURE__ */ new TypeError("The stream is closing or closed and cannot be written to"));
|
|
1455
1443
|
if (c === "erroring") return b(r._storedError);
|
|
1456
1444
|
const d = Aa(r);
|
|
1457
|
-
return xa(s, t
|
|
1445
|
+
return xa(s, t, u), d;
|
|
1458
1446
|
}
|
|
1459
1447
|
n$1(Fo, "WritableStreamDefaultWriterWrite");
|
|
1460
1448
|
const jo = {}, Tn = class Tn$1 {
|
|
@@ -1470,12 +1458,12 @@ function Ns() {
|
|
|
1470
1458
|
if (this._abortController === void 0) throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");
|
|
1471
1459
|
return this._abortController.signal;
|
|
1472
1460
|
}
|
|
1473
|
-
error(t
|
|
1461
|
+
error(t = void 0) {
|
|
1474
1462
|
if (!rn(this)) throw on("error");
|
|
1475
|
-
this._controlledWritableStream._state === "writable" && Do(this, t
|
|
1463
|
+
this._controlledWritableStream._state === "writable" && Do(this, t);
|
|
1476
1464
|
}
|
|
1477
|
-
[jt](t
|
|
1478
|
-
const r = this._abortAlgorithm(t
|
|
1465
|
+
[jt](t) {
|
|
1466
|
+
const r = this._abortAlgorithm(t);
|
|
1479
1467
|
return Xt(this), r;
|
|
1480
1468
|
}
|
|
1481
1469
|
[Qn]() {
|
|
@@ -1496,16 +1484,16 @@ function Ns() {
|
|
|
1496
1484
|
return !l(e) || !Object.prototype.hasOwnProperty.call(e, "_controlledWritableStream") ? !1 : e instanceof ke;
|
|
1497
1485
|
}
|
|
1498
1486
|
n$1(rn, "IsWritableStreamDefaultController");
|
|
1499
|
-
function Lo(e, t
|
|
1500
|
-
t
|
|
1501
|
-
tn(e, nn(t
|
|
1502
|
-
g(T(r()), () => (t
|
|
1487
|
+
function Lo(e, t, r, s, u, c, d, m) {
|
|
1488
|
+
t._controlledWritableStream = e, e._writableStreamController = t, t._queue = void 0, t._queueTotalSize = void 0, Be(t), t._abortReason = void 0, t._abortController = va(), t._started = !1, t._strategySizeAlgorithm = m, t._strategyHWM = d, t._writeAlgorithm = s, t._closeAlgorithm = u, t._abortAlgorithm = c;
|
|
1489
|
+
tn(e, nn(t));
|
|
1490
|
+
g(T(r()), () => (t._started = !0, er(t), null), (P) => (t._started = !0, Jr(e, P), null));
|
|
1503
1491
|
}
|
|
1504
1492
|
n$1(Lo, "SetUpWritableStreamDefaultController");
|
|
1505
|
-
function Da(e, t
|
|
1493
|
+
function Da(e, t, r, s) {
|
|
1506
1494
|
const u = Object.create(ke.prototype);
|
|
1507
1495
|
let c, d, m, R;
|
|
1508
|
-
t
|
|
1496
|
+
t.start !== void 0 ? c = n$1(() => t.start(u), "startAlgorithm") : c = n$1(() => {}, "startAlgorithm"), t.write !== void 0 ? d = n$1((y) => t.write(y, u), "writeAlgorithm") : d = n$1(() => T(void 0), "writeAlgorithm"), t.close !== void 0 ? m = n$1(() => t.close(), "closeAlgorithm") : m = n$1(() => T(void 0), "closeAlgorithm"), t.abort !== void 0 ? R = n$1((y) => t.abort(y), "abortAlgorithm") : R = n$1(() => T(void 0), "abortAlgorithm"), Lo(e, u, c, d, m, R, r, s);
|
|
1509
1497
|
}
|
|
1510
1498
|
n$1(Da, "SetUpWritableStreamDefaultControllerFromUnderlyingSink");
|
|
1511
1499
|
function Xt(e) {
|
|
@@ -1516,9 +1504,9 @@ function Ns() {
|
|
|
1516
1504
|
Nr(e, jo, 0), er(e);
|
|
1517
1505
|
}
|
|
1518
1506
|
n$1(Ma, "WritableStreamDefaultControllerClose");
|
|
1519
|
-
function Ua(e, t
|
|
1507
|
+
function Ua(e, t) {
|
|
1520
1508
|
try {
|
|
1521
|
-
return e._strategySizeAlgorithm(t
|
|
1509
|
+
return e._strategySizeAlgorithm(t);
|
|
1522
1510
|
} catch (r) {
|
|
1523
1511
|
return Ct(e, r), 1;
|
|
1524
1512
|
}
|
|
@@ -1528,9 +1516,9 @@ function Ns() {
|
|
|
1528
1516
|
return e._strategyHWM - e._queueTotalSize;
|
|
1529
1517
|
}
|
|
1530
1518
|
n$1($o, "WritableStreamDefaultControllerGetDesiredSize");
|
|
1531
|
-
function xa(e, t
|
|
1519
|
+
function xa(e, t, r) {
|
|
1532
1520
|
try {
|
|
1533
|
-
Nr(e, t
|
|
1521
|
+
Nr(e, t, r);
|
|
1534
1522
|
} catch (u) {
|
|
1535
1523
|
Ct(e, u);
|
|
1536
1524
|
return;
|
|
@@ -1541,10 +1529,10 @@ function Ns() {
|
|
|
1541
1529
|
}
|
|
1542
1530
|
n$1(xa, "WritableStreamDefaultControllerWrite");
|
|
1543
1531
|
function er(e) {
|
|
1544
|
-
const t
|
|
1545
|
-
if (!e._started || t
|
|
1546
|
-
if (t
|
|
1547
|
-
en(t
|
|
1532
|
+
const t = e._controlledWritableStream;
|
|
1533
|
+
if (!e._started || t._inFlightWriteRequest !== void 0) return;
|
|
1534
|
+
if (t._state === "erroring") {
|
|
1535
|
+
en(t);
|
|
1548
1536
|
return;
|
|
1549
1537
|
}
|
|
1550
1538
|
if (e._queue.length === 0) return;
|
|
@@ -1552,21 +1540,21 @@ function Ns() {
|
|
|
1552
1540
|
s === jo ? Na(e) : Ha(e, s);
|
|
1553
1541
|
}
|
|
1554
1542
|
n$1(er, "WritableStreamDefaultControllerAdvanceQueueIfNeeded");
|
|
1555
|
-
function Ct(e, t
|
|
1556
|
-
e._controlledWritableStream._state === "writable" && Do(e, t
|
|
1543
|
+
function Ct(e, t) {
|
|
1544
|
+
e._controlledWritableStream._state === "writable" && Do(e, t);
|
|
1557
1545
|
}
|
|
1558
1546
|
n$1(Ct, "WritableStreamDefaultControllerErrorIfNeeded");
|
|
1559
1547
|
function Na(e) {
|
|
1560
|
-
const t
|
|
1561
|
-
za(t
|
|
1548
|
+
const t = e._controlledWritableStream;
|
|
1549
|
+
za(t), xr(e);
|
|
1562
1550
|
const r = e._closeAlgorithm();
|
|
1563
|
-
Xt(e), g(r, () => (Wa(t
|
|
1551
|
+
Xt(e), g(r, () => (Wa(t), null), (s) => (qa(t, s), null));
|
|
1564
1552
|
}
|
|
1565
1553
|
n$1(Na, "WritableStreamDefaultControllerProcessClose");
|
|
1566
|
-
function Ha(e, t
|
|
1554
|
+
function Ha(e, t) {
|
|
1567
1555
|
const r = e._controlledWritableStream;
|
|
1568
1556
|
Ia(r);
|
|
1569
|
-
g(e._writeAlgorithm(t
|
|
1557
|
+
g(e._writeAlgorithm(t), () => {
|
|
1570
1558
|
Ba(r);
|
|
1571
1559
|
const u = r._state;
|
|
1572
1560
|
if (xr(e), !he(r) && u === "writable") tn(r, nn(e));
|
|
@@ -1578,9 +1566,9 @@ function Ns() {
|
|
|
1578
1566
|
return $o(e) <= 0;
|
|
1579
1567
|
}
|
|
1580
1568
|
n$1(nn, "WritableStreamDefaultControllerGetBackpressure");
|
|
1581
|
-
function Do(e, t
|
|
1569
|
+
function Do(e, t) {
|
|
1582
1570
|
const r = e._controlledWritableStream;
|
|
1583
|
-
Xt(e), Xr(r, t
|
|
1571
|
+
Xt(e), Xr(r, t);
|
|
1584
1572
|
}
|
|
1585
1573
|
n$1(Do, "WritableStreamDefaultControllerError");
|
|
1586
1574
|
function tr(e) {
|
|
@@ -1600,25 +1588,25 @@ function Ns() {
|
|
|
1600
1588
|
}
|
|
1601
1589
|
n$1(Pt, "defaultWriterLockException");
|
|
1602
1590
|
function rr(e) {
|
|
1603
|
-
e._closedPromise = A((t
|
|
1604
|
-
e._closedPromise_resolve = t
|
|
1591
|
+
e._closedPromise = A((t, r) => {
|
|
1592
|
+
e._closedPromise_resolve = t, e._closedPromise_reject = r, e._closedPromiseState = "pending";
|
|
1605
1593
|
});
|
|
1606
1594
|
}
|
|
1607
1595
|
n$1(rr, "defaultWriterClosedPromiseInitialize");
|
|
1608
|
-
function Mo(e, t
|
|
1609
|
-
rr(e), an(e, t
|
|
1596
|
+
function Mo(e, t) {
|
|
1597
|
+
rr(e), an(e, t);
|
|
1610
1598
|
}
|
|
1611
1599
|
n$1(Mo, "defaultWriterClosedPromiseInitializeAsRejected");
|
|
1612
1600
|
function Va(e) {
|
|
1613
1601
|
rr(e), Uo(e);
|
|
1614
1602
|
}
|
|
1615
1603
|
n$1(Va, "defaultWriterClosedPromiseInitializeAsResolved");
|
|
1616
|
-
function an(e, t
|
|
1617
|
-
e._closedPromise_reject !== void 0 && (Q(e._closedPromise), e._closedPromise_reject(t
|
|
1604
|
+
function an(e, t) {
|
|
1605
|
+
e._closedPromise_reject !== void 0 && (Q(e._closedPromise), e._closedPromise_reject(t), e._closedPromise_resolve = void 0, e._closedPromise_reject = void 0, e._closedPromiseState = "rejected");
|
|
1618
1606
|
}
|
|
1619
1607
|
n$1(an, "defaultWriterClosedPromiseReject");
|
|
1620
|
-
function Qa(e, t
|
|
1621
|
-
Mo(e, t
|
|
1608
|
+
function Qa(e, t) {
|
|
1609
|
+
Mo(e, t);
|
|
1622
1610
|
}
|
|
1623
1611
|
n$1(Qa, "defaultWriterClosedPromiseResetToRejected");
|
|
1624
1612
|
function Uo(e) {
|
|
@@ -1626,29 +1614,29 @@ function Ns() {
|
|
|
1626
1614
|
}
|
|
1627
1615
|
n$1(Uo, "defaultWriterClosedPromiseResolve");
|
|
1628
1616
|
function nr(e) {
|
|
1629
|
-
e._readyPromise = A((t
|
|
1630
|
-
e._readyPromise_resolve = t
|
|
1617
|
+
e._readyPromise = A((t, r) => {
|
|
1618
|
+
e._readyPromise_resolve = t, e._readyPromise_reject = r;
|
|
1631
1619
|
}), e._readyPromiseState = "pending";
|
|
1632
1620
|
}
|
|
1633
1621
|
n$1(nr, "defaultWriterReadyPromiseInitialize");
|
|
1634
|
-
function sn(e, t
|
|
1635
|
-
nr(e), No(e, t
|
|
1622
|
+
function sn(e, t) {
|
|
1623
|
+
nr(e), No(e, t);
|
|
1636
1624
|
}
|
|
1637
1625
|
n$1(sn, "defaultWriterReadyPromiseInitializeAsRejected");
|
|
1638
1626
|
function xo(e) {
|
|
1639
1627
|
nr(e), ln(e);
|
|
1640
1628
|
}
|
|
1641
1629
|
n$1(xo, "defaultWriterReadyPromiseInitializeAsResolved");
|
|
1642
|
-
function No(e, t
|
|
1643
|
-
e._readyPromise_reject !== void 0 && (Q(e._readyPromise), e._readyPromise_reject(t
|
|
1630
|
+
function No(e, t) {
|
|
1631
|
+
e._readyPromise_reject !== void 0 && (Q(e._readyPromise), e._readyPromise_reject(t), e._readyPromise_resolve = void 0, e._readyPromise_reject = void 0, e._readyPromiseState = "rejected");
|
|
1644
1632
|
}
|
|
1645
1633
|
n$1(No, "defaultWriterReadyPromiseReject");
|
|
1646
1634
|
function Ya(e) {
|
|
1647
1635
|
nr(e);
|
|
1648
1636
|
}
|
|
1649
1637
|
n$1(Ya, "defaultWriterReadyPromiseReset");
|
|
1650
|
-
function Ga(e, t
|
|
1651
|
-
sn(e, t
|
|
1638
|
+
function Ga(e, t) {
|
|
1639
|
+
sn(e, t);
|
|
1652
1640
|
}
|
|
1653
1641
|
n$1(Ga, "defaultWriterReadyPromiseResetToRejected");
|
|
1654
1642
|
function ln(e) {
|
|
@@ -1658,7 +1646,7 @@ function Ns() {
|
|
|
1658
1646
|
function Za() {
|
|
1659
1647
|
if (typeof globalThis < "u") return globalThis;
|
|
1660
1648
|
if (typeof self < "u") return self;
|
|
1661
|
-
if (typeof n < "u") return n;
|
|
1649
|
+
if (typeof require_node_fetch_native_DfbY2q_x.n < "u") return require_node_fetch_native_DfbY2q_x.n;
|
|
1662
1650
|
}
|
|
1663
1651
|
n$1(Za, "getGlobals");
|
|
1664
1652
|
const un = Za();
|
|
@@ -1688,8 +1676,8 @@ function Ns() {
|
|
|
1688
1676
|
}
|
|
1689
1677
|
n$1(Xa, "createPolyfill");
|
|
1690
1678
|
const es = Ja() || Xa();
|
|
1691
|
-
function Ho(e, t
|
|
1692
|
-
const d = Qe(e), m = ko(t
|
|
1679
|
+
function Ho(e, t, r, s, u, c) {
|
|
1680
|
+
const d = Qe(e), m = ko(t);
|
|
1693
1681
|
e._disturbed = !0;
|
|
1694
1682
|
let R = !1, y = T(void 0);
|
|
1695
1683
|
return A((C, P) => {
|
|
@@ -1697,7 +1685,7 @@ function Ns() {
|
|
|
1697
1685
|
if (c !== void 0) {
|
|
1698
1686
|
if (B = n$1(() => {
|
|
1699
1687
|
const _ = c.reason !== void 0 ? c.reason : new es("Aborted", "AbortError"), E = [];
|
|
1700
|
-
s || E.push(() => t
|
|
1688
|
+
s || E.push(() => t._state === "writable" ? Kt(t, _) : T(void 0)), u || E.push(() => e._state === "readable" ? ie(e, _) : T(void 0)), N(() => Promise.all(E.map((k) => k())), !0, _);
|
|
1701
1689
|
}, "abortAlgorithm"), c.aborted) {
|
|
1702
1690
|
B();
|
|
1703
1691
|
return;
|
|
@@ -1724,7 +1712,7 @@ function Ns() {
|
|
|
1724
1712
|
});
|
|
1725
1713
|
}));
|
|
1726
1714
|
}
|
|
1727
|
-
if (n$1(nt, "pipeStep"), Te(e, d._closedPromise, (_) => (s ? J(!0, _) : N(() => Kt(t
|
|
1715
|
+
if (n$1(nt, "pipeStep"), Te(e, d._closedPromise, (_) => (s ? J(!0, _) : N(() => Kt(t, _), !0, _), null)), Te(t, m._closedPromise, (_) => (u ? J(!0, _) : N(() => ie(e, _), !0, _), null)), x(e, d._closedPromise, () => (r ? J() : N(() => ja(m)), null)), he(t) || t._state === "closed") {
|
|
1728
1716
|
const _ = /* @__PURE__ */ new TypeError("the destination writable stream closed before all data could be piped to it");
|
|
1729
1717
|
u ? J(!0, _) : N(() => ie(e, _), !0, _);
|
|
1730
1718
|
}
|
|
@@ -1744,7 +1732,7 @@ function Ns() {
|
|
|
1744
1732
|
n$1(x, "isOrBecomesClosed");
|
|
1745
1733
|
function N(_, E, k) {
|
|
1746
1734
|
if (R) return;
|
|
1747
|
-
R = !0, t
|
|
1735
|
+
R = !0, t._state === "writable" && !he(t) ? V(Oe(), Y) : Y();
|
|
1748
1736
|
function Y() {
|
|
1749
1737
|
return g(_(), () => Ce(E, k), (ot) => Ce(!0, ot)), null;
|
|
1750
1738
|
}
|
|
@@ -1752,7 +1740,7 @@ function Ns() {
|
|
|
1752
1740
|
}
|
|
1753
1741
|
n$1(N, "shutdownWithAction");
|
|
1754
1742
|
function J(_, E) {
|
|
1755
|
-
R || (R = !0, t
|
|
1743
|
+
R || (R = !0, t._state === "writable" && !he(t) ? V(Oe(), () => Ce(_, E)) : Ce(_, E));
|
|
1756
1744
|
}
|
|
1757
1745
|
n$1(J, "shutdown");
|
|
1758
1746
|
function Ce(_, E) {
|
|
@@ -1775,26 +1763,26 @@ function Ns() {
|
|
|
1775
1763
|
if (!Je(this)) throw new TypeError("The stream is not in a state that permits close");
|
|
1776
1764
|
De(this);
|
|
1777
1765
|
}
|
|
1778
|
-
enqueue(t
|
|
1766
|
+
enqueue(t = void 0) {
|
|
1779
1767
|
if (!or(this)) throw ar("enqueue");
|
|
1780
1768
|
if (!Je(this)) throw new TypeError("The stream is not in a state that permits enqueue");
|
|
1781
|
-
return Ke(this, t
|
|
1769
|
+
return Ke(this, t);
|
|
1782
1770
|
}
|
|
1783
|
-
error(t
|
|
1771
|
+
error(t = void 0) {
|
|
1784
1772
|
if (!or(this)) throw ar("error");
|
|
1785
|
-
oe(this, t
|
|
1773
|
+
oe(this, t);
|
|
1786
1774
|
}
|
|
1787
|
-
[Ar](t
|
|
1775
|
+
[Ar](t) {
|
|
1788
1776
|
Be(this);
|
|
1789
|
-
const r = this._cancelAlgorithm(t
|
|
1777
|
+
const r = this._cancelAlgorithm(t);
|
|
1790
1778
|
return ir(this), r;
|
|
1791
1779
|
}
|
|
1792
|
-
[Br](t
|
|
1780
|
+
[Br](t) {
|
|
1793
1781
|
const r = this._controlledReadableStream;
|
|
1794
1782
|
if (this._queue.length > 0) {
|
|
1795
1783
|
const s = xr(this);
|
|
1796
|
-
this._closeRequested && this._queue.length === 0 ? (ir(this), At(r)) : vt(this), t
|
|
1797
|
-
} else eo(r, t
|
|
1784
|
+
this._closeRequested && this._queue.length === 0 ? (ir(this), At(r)) : vt(this), t._chunkSteps(s);
|
|
1785
|
+
} else eo(r, t), vt(this);
|
|
1798
1786
|
}
|
|
1799
1787
|
[kr]() {}
|
|
1800
1788
|
};
|
|
@@ -1824,8 +1812,8 @@ function Ns() {
|
|
|
1824
1812
|
}
|
|
1825
1813
|
n$1(vt, "ReadableStreamDefaultControllerCallPullIfNeeded");
|
|
1826
1814
|
function Vo(e) {
|
|
1827
|
-
const t
|
|
1828
|
-
return !Je(e) || !e._started ? !1 : !!(qe(t
|
|
1815
|
+
const t = e._controlledReadableStream;
|
|
1816
|
+
return !Je(e) || !e._started ? !1 : !!(qe(t) && $t(t) > 0 || fn(e) > 0);
|
|
1829
1817
|
}
|
|
1830
1818
|
n$1(Vo, "ReadableStreamDefaultControllerShouldCallPull");
|
|
1831
1819
|
function ir(e) {
|
|
@@ -1834,23 +1822,23 @@ function Ns() {
|
|
|
1834
1822
|
n$1(ir, "ReadableStreamDefaultControllerClearAlgorithms");
|
|
1835
1823
|
function De(e) {
|
|
1836
1824
|
if (!Je(e)) return;
|
|
1837
|
-
const t
|
|
1838
|
-
e._closeRequested = !0, e._queue.length === 0 && (ir(e), At(t
|
|
1825
|
+
const t = e._controlledReadableStream;
|
|
1826
|
+
e._closeRequested = !0, e._queue.length === 0 && (ir(e), At(t));
|
|
1839
1827
|
}
|
|
1840
1828
|
n$1(De, "ReadableStreamDefaultControllerClose");
|
|
1841
|
-
function Ke(e, t
|
|
1829
|
+
function Ke(e, t) {
|
|
1842
1830
|
if (!Je(e)) return;
|
|
1843
1831
|
const r = e._controlledReadableStream;
|
|
1844
|
-
if (qe(r) && $t(r) > 0) Lr(r, t
|
|
1832
|
+
if (qe(r) && $t(r) > 0) Lr(r, t, !1);
|
|
1845
1833
|
else {
|
|
1846
1834
|
let s;
|
|
1847
1835
|
try {
|
|
1848
|
-
s = e._strategySizeAlgorithm(t
|
|
1836
|
+
s = e._strategySizeAlgorithm(t);
|
|
1849
1837
|
} catch (u) {
|
|
1850
1838
|
throw oe(e, u), u;
|
|
1851
1839
|
}
|
|
1852
1840
|
try {
|
|
1853
|
-
Nr(e, t
|
|
1841
|
+
Nr(e, t, s);
|
|
1854
1842
|
} catch (u) {
|
|
1855
1843
|
throw oe(e, u), u;
|
|
1856
1844
|
}
|
|
@@ -1858,14 +1846,14 @@ function Ns() {
|
|
|
1858
1846
|
vt(e);
|
|
1859
1847
|
}
|
|
1860
1848
|
n$1(Ke, "ReadableStreamDefaultControllerEnqueue");
|
|
1861
|
-
function oe(e, t
|
|
1849
|
+
function oe(e, t) {
|
|
1862
1850
|
const r = e._controlledReadableStream;
|
|
1863
|
-
r._state === "readable" && (Be(e), ir(e), Zo(r, t
|
|
1851
|
+
r._state === "readable" && (Be(e), ir(e), Zo(r, t));
|
|
1864
1852
|
}
|
|
1865
1853
|
n$1(oe, "ReadableStreamDefaultControllerError");
|
|
1866
1854
|
function fn(e) {
|
|
1867
|
-
const t
|
|
1868
|
-
return t
|
|
1855
|
+
const t = e._controlledReadableStream._state;
|
|
1856
|
+
return t === "errored" ? null : t === "closed" ? 0 : e._strategyHWM - e._queueTotalSize;
|
|
1869
1857
|
}
|
|
1870
1858
|
n$1(fn, "ReadableStreamDefaultControllerGetDesiredSize");
|
|
1871
1859
|
function ts(e) {
|
|
@@ -1873,30 +1861,30 @@ function Ns() {
|
|
|
1873
1861
|
}
|
|
1874
1862
|
n$1(ts, "ReadableStreamDefaultControllerHasBackpressure");
|
|
1875
1863
|
function Je(e) {
|
|
1876
|
-
const t
|
|
1877
|
-
return !e._closeRequested && t
|
|
1864
|
+
const t = e._controlledReadableStream._state;
|
|
1865
|
+
return !e._closeRequested && t === "readable";
|
|
1878
1866
|
}
|
|
1879
1867
|
n$1(Je, "ReadableStreamDefaultControllerCanCloseOrEnqueue");
|
|
1880
|
-
function Qo(e, t
|
|
1881
|
-
t
|
|
1882
|
-
g(T(r()), () => (t
|
|
1868
|
+
function Qo(e, t, r, s, u, c, d) {
|
|
1869
|
+
t._controlledReadableStream = e, t._queue = void 0, t._queueTotalSize = void 0, Be(t), t._started = !1, t._closeRequested = !1, t._pullAgain = !1, t._pulling = !1, t._strategySizeAlgorithm = d, t._strategyHWM = c, t._pullAlgorithm = s, t._cancelAlgorithm = u, e._readableStreamController = t;
|
|
1870
|
+
g(T(r()), () => (t._started = !0, vt(t), null), (R) => (oe(t, R), null));
|
|
1883
1871
|
}
|
|
1884
1872
|
n$1(Qo, "SetUpReadableStreamDefaultController");
|
|
1885
|
-
function rs(e, t
|
|
1873
|
+
function rs(e, t, r, s) {
|
|
1886
1874
|
const u = Object.create(ne.prototype);
|
|
1887
1875
|
let c, d, m;
|
|
1888
|
-
t
|
|
1876
|
+
t.start !== void 0 ? c = n$1(() => t.start(u), "startAlgorithm") : c = n$1(() => {}, "startAlgorithm"), t.pull !== void 0 ? d = n$1(() => t.pull(u), "pullAlgorithm") : d = n$1(() => T(void 0), "pullAlgorithm"), t.cancel !== void 0 ? m = n$1((R) => t.cancel(R), "cancelAlgorithm") : m = n$1(() => T(void 0), "cancelAlgorithm"), Qo(e, u, c, d, m, r, s);
|
|
1889
1877
|
}
|
|
1890
1878
|
n$1(rs, "SetUpReadableStreamDefaultControllerFromUnderlyingSource");
|
|
1891
1879
|
function ar(e) {
|
|
1892
1880
|
return /* @__PURE__ */ new TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`);
|
|
1893
1881
|
}
|
|
1894
1882
|
n$1(ar, "defaultControllerBrandCheckException$1");
|
|
1895
|
-
function ns(e, t
|
|
1883
|
+
function ns(e, t) {
|
|
1896
1884
|
return Ie(e._readableStreamController) ? is(e) : os(e);
|
|
1897
1885
|
}
|
|
1898
1886
|
n$1(ns, "ReadableStreamTee");
|
|
1899
|
-
function os(e, t
|
|
1887
|
+
function os(e, t) {
|
|
1900
1888
|
const r = Qe(e);
|
|
1901
1889
|
let s = !1, u = !1, c = !1, d = !1, m, R, y, C, P;
|
|
1902
1890
|
const B = A((x) => {
|
|
@@ -1941,16 +1929,16 @@ function Ns() {
|
|
|
1941
1929
|
}
|
|
1942
1930
|
n$1(os, "ReadableStreamDefaultTee");
|
|
1943
1931
|
function is(e) {
|
|
1944
|
-
let t
|
|
1932
|
+
let t = Qe(e), r = !1, s = !1, u = !1, c = !1, d = !1, m, R, y, C, P;
|
|
1945
1933
|
const B = A((_) => {
|
|
1946
1934
|
P = _;
|
|
1947
1935
|
});
|
|
1948
1936
|
function ae(_) {
|
|
1949
|
-
I(_._closedPromise, (E) => (_ !== t
|
|
1937
|
+
I(_._closedPromise, (E) => (_ !== t || (K(y._readableStreamController, E), K(C._readableStreamController, E), (!c || !d) && P(void 0)), null));
|
|
1950
1938
|
}
|
|
1951
1939
|
n$1(ae, "forwardReaderError");
|
|
1952
1940
|
function nt() {
|
|
1953
|
-
je(t
|
|
1941
|
+
je(t) && (_e(t), t = Qe(e), ae(t)), _t(t, {
|
|
1954
1942
|
_chunkSteps: n$1((E) => {
|
|
1955
1943
|
ge(() => {
|
|
1956
1944
|
s = !1, u = !1;
|
|
@@ -1975,9 +1963,9 @@ function Ns() {
|
|
|
1975
1963
|
}
|
|
1976
1964
|
n$1(nt, "pullWithDefaultReader");
|
|
1977
1965
|
function Oe(_, E) {
|
|
1978
|
-
Ee(t
|
|
1966
|
+
Ee(t) && (_e(t), t = Co(e), ae(t));
|
|
1979
1967
|
const k = E ? C : y, Y = E ? y : C;
|
|
1980
|
-
Eo(t
|
|
1968
|
+
Eo(t, _, 1, {
|
|
1981
1969
|
_chunkSteps: n$1((it) => {
|
|
1982
1970
|
ge(() => {
|
|
1983
1971
|
s = !1, u = !1;
|
|
@@ -2038,7 +2026,7 @@ function Ns() {
|
|
|
2038
2026
|
}
|
|
2039
2027
|
n$1(J, "cancel2Algorithm");
|
|
2040
2028
|
function Ce() {}
|
|
2041
|
-
return n$1(Ce, "startAlgorithm"), y = Go(Ce, Te, N), C = Go(Ce, x, J), ae(t
|
|
2029
|
+
return n$1(Ce, "startAlgorithm"), y = Go(Ce, Te, N), C = Go(Ce, x, J), ae(t), [y, C];
|
|
2042
2030
|
}
|
|
2043
2031
|
n$1(is, "ReadableByteStreamTee");
|
|
2044
2032
|
function as(e) {
|
|
@@ -2050,7 +2038,7 @@ function Ns() {
|
|
|
2050
2038
|
}
|
|
2051
2039
|
n$1(ss, "ReadableStreamFrom");
|
|
2052
2040
|
function ls(e) {
|
|
2053
|
-
let t
|
|
2041
|
+
let t;
|
|
2054
2042
|
const r = uo(e, "async"), s = f$1;
|
|
2055
2043
|
function u() {
|
|
2056
2044
|
let d;
|
|
@@ -2061,10 +2049,10 @@ function Ns() {
|
|
|
2061
2049
|
}
|
|
2062
2050
|
return F(T(d), (R) => {
|
|
2063
2051
|
if (!l(R)) throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object");
|
|
2064
|
-
if (ea(R)) De(t
|
|
2052
|
+
if (ea(R)) De(t._readableStreamController);
|
|
2065
2053
|
else {
|
|
2066
2054
|
const C = ta(R);
|
|
2067
|
-
Ke(t
|
|
2055
|
+
Ke(t._readableStreamController, C);
|
|
2068
2056
|
}
|
|
2069
2057
|
});
|
|
2070
2058
|
}
|
|
@@ -2088,11 +2076,11 @@ function Ns() {
|
|
|
2088
2076
|
if (!l(P)) throw new TypeError("The promise returned by the iterator.return() method must fulfill with an object");
|
|
2089
2077
|
});
|
|
2090
2078
|
}
|
|
2091
|
-
return n$1(c, "cancelAlgorithm"), t
|
|
2079
|
+
return n$1(c, "cancelAlgorithm"), t = Et(s, u, c, 0), t;
|
|
2092
2080
|
}
|
|
2093
2081
|
n$1(ls, "ReadableStreamFromIterable");
|
|
2094
2082
|
function us(e) {
|
|
2095
|
-
let t
|
|
2083
|
+
let t;
|
|
2096
2084
|
const r = f$1;
|
|
2097
2085
|
function s() {
|
|
2098
2086
|
let c;
|
|
@@ -2103,10 +2091,10 @@ function Ns() {
|
|
|
2103
2091
|
}
|
|
2104
2092
|
return F(c, (d) => {
|
|
2105
2093
|
if (!l(d)) throw new TypeError("The promise returned by the reader.read() method must fulfill with an object");
|
|
2106
|
-
if (d.done) De(t
|
|
2094
|
+
if (d.done) De(t._readableStreamController);
|
|
2107
2095
|
else {
|
|
2108
2096
|
const m = d.value;
|
|
2109
|
-
Ke(t
|
|
2097
|
+
Ke(t._readableStreamController, m);
|
|
2110
2098
|
}
|
|
2111
2099
|
});
|
|
2112
2100
|
}
|
|
@@ -2118,46 +2106,46 @@ function Ns() {
|
|
|
2118
2106
|
return b(d);
|
|
2119
2107
|
}
|
|
2120
2108
|
}
|
|
2121
|
-
return n$1(u, "cancelAlgorithm"), t
|
|
2109
|
+
return n$1(u, "cancelAlgorithm"), t = Et(r, s, u, 0), t;
|
|
2122
2110
|
}
|
|
2123
2111
|
n$1(us, "ReadableStreamFromDefaultReader");
|
|
2124
|
-
function fs(e, t
|
|
2125
|
-
ue(e, t
|
|
2112
|
+
function fs(e, t) {
|
|
2113
|
+
ue(e, t);
|
|
2126
2114
|
const r = e, s = r?.autoAllocateChunkSize, u = r?.cancel, c = r?.pull, d = r?.start, m = r?.type;
|
|
2127
2115
|
return {
|
|
2128
|
-
autoAllocateChunkSize: s === void 0 ? void 0 : Fr(s, `${t
|
|
2129
|
-
cancel: u === void 0 ? void 0 : cs(u, r, `${t
|
|
2130
|
-
pull: c === void 0 ? void 0 : ds(c, r, `${t
|
|
2131
|
-
start: d === void 0 ? void 0 : hs(d, r, `${t
|
|
2132
|
-
type: m === void 0 ? void 0 : ps(m, `${t
|
|
2116
|
+
autoAllocateChunkSize: s === void 0 ? void 0 : Fr(s, `${t} has member 'autoAllocateChunkSize' that`),
|
|
2117
|
+
cancel: u === void 0 ? void 0 : cs(u, r, `${t} has member 'cancel' that`),
|
|
2118
|
+
pull: c === void 0 ? void 0 : ds(c, r, `${t} has member 'pull' that`),
|
|
2119
|
+
start: d === void 0 ? void 0 : hs(d, r, `${t} has member 'start' that`),
|
|
2120
|
+
type: m === void 0 ? void 0 : ps(m, `${t} has member 'type' that`)
|
|
2133
2121
|
};
|
|
2134
2122
|
}
|
|
2135
2123
|
n$1(fs, "convertUnderlyingDefaultOrByteSource");
|
|
2136
|
-
function cs(e, t
|
|
2137
|
-
return Z(e, r), (s) => j(e, t
|
|
2124
|
+
function cs(e, t, r) {
|
|
2125
|
+
return Z(e, r), (s) => j(e, t, [s]);
|
|
2138
2126
|
}
|
|
2139
2127
|
n$1(cs, "convertUnderlyingSourceCancelCallback");
|
|
2140
|
-
function ds(e, t
|
|
2141
|
-
return Z(e, r), (s) => j(e, t
|
|
2128
|
+
function ds(e, t, r) {
|
|
2129
|
+
return Z(e, r), (s) => j(e, t, [s]);
|
|
2142
2130
|
}
|
|
2143
2131
|
n$1(ds, "convertUnderlyingSourcePullCallback");
|
|
2144
|
-
function hs(e, t
|
|
2145
|
-
return Z(e, r), (s) => z(e, t
|
|
2132
|
+
function hs(e, t, r) {
|
|
2133
|
+
return Z(e, r), (s) => z(e, t, [s]);
|
|
2146
2134
|
}
|
|
2147
2135
|
n$1(hs, "convertUnderlyingSourceStartCallback");
|
|
2148
|
-
function ps(e, t
|
|
2149
|
-
if (e = `${e}`, e !== "bytes") throw new TypeError(`${t
|
|
2136
|
+
function ps(e, t) {
|
|
2137
|
+
if (e = `${e}`, e !== "bytes") throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamType`);
|
|
2150
2138
|
return e;
|
|
2151
2139
|
}
|
|
2152
2140
|
n$1(ps, "convertReadableStreamType");
|
|
2153
|
-
function bs(e, t
|
|
2154
|
-
return ue(e, t
|
|
2141
|
+
function bs(e, t) {
|
|
2142
|
+
return ue(e, t), { preventCancel: !!e?.preventCancel };
|
|
2155
2143
|
}
|
|
2156
2144
|
n$1(bs, "convertIteratorOptions");
|
|
2157
|
-
function Yo(e, t
|
|
2158
|
-
ue(e, t
|
|
2145
|
+
function Yo(e, t) {
|
|
2146
|
+
ue(e, t);
|
|
2159
2147
|
const r = e?.preventAbort, s = e?.preventCancel, u = e?.preventClose, c = e?.signal;
|
|
2160
|
-
return c !== void 0 && ms(c, `${t
|
|
2148
|
+
return c !== void 0 && ms(c, `${t} has member 'signal' that`), {
|
|
2161
2149
|
preventAbort: !!r,
|
|
2162
2150
|
preventCancel: !!s,
|
|
2163
2151
|
preventClose: !!u,
|
|
@@ -2165,25 +2153,25 @@ function Ns() {
|
|
|
2165
2153
|
};
|
|
2166
2154
|
}
|
|
2167
2155
|
n$1(Yo, "convertPipeOptions");
|
|
2168
|
-
function ms(e, t
|
|
2169
|
-
if (!Ca(e)) throw new TypeError(`${t
|
|
2156
|
+
function ms(e, t) {
|
|
2157
|
+
if (!Ca(e)) throw new TypeError(`${t} is not an AbortSignal.`);
|
|
2170
2158
|
}
|
|
2171
2159
|
n$1(ms, "assertAbortSignal");
|
|
2172
|
-
function ys(e, t
|
|
2173
|
-
ue(e, t
|
|
2160
|
+
function ys(e, t) {
|
|
2161
|
+
ue(e, t);
|
|
2174
2162
|
const r = e?.readable;
|
|
2175
|
-
zr(r, "readable", "ReadableWritablePair"), jr(r, `${t
|
|
2163
|
+
zr(r, "readable", "ReadableWritablePair"), jr(r, `${t} has member 'readable' that`);
|
|
2176
2164
|
const s = e?.writable;
|
|
2177
|
-
return zr(s, "writable", "ReadableWritablePair"), Bo(s, `${t
|
|
2165
|
+
return zr(s, "writable", "ReadableWritablePair"), Bo(s, `${t} has member 'writable' that`), {
|
|
2178
2166
|
readable: r,
|
|
2179
2167
|
writable: s
|
|
2180
2168
|
};
|
|
2181
2169
|
}
|
|
2182
2170
|
n$1(ys, "convertReadableWritablePair");
|
|
2183
2171
|
const Pn = class Pn$1 {
|
|
2184
|
-
constructor(t
|
|
2185
|
-
t
|
|
2186
|
-
const s = Zt(r, "Second parameter"), u = fs(t
|
|
2172
|
+
constructor(t = {}, r = {}) {
|
|
2173
|
+
t === void 0 ? t = null : Jn(t, "First parameter");
|
|
2174
|
+
const s = Zt(r, "Second parameter"), u = fs(t, "First parameter");
|
|
2187
2175
|
if (cn(this), u.type === "bytes") {
|
|
2188
2176
|
if (s.size !== void 0) throw new RangeError("The strategy for a byte stream cannot have a size function");
|
|
2189
2177
|
const c = Tt(s, 0);
|
|
@@ -2197,47 +2185,47 @@ function Ns() {
|
|
|
2197
2185
|
if (!We(this)) throw Me("locked");
|
|
2198
2186
|
return qe(this);
|
|
2199
2187
|
}
|
|
2200
|
-
cancel(t
|
|
2201
|
-
return We(this) ? qe(this) ? b(/* @__PURE__ */ new TypeError("Cannot cancel a stream that already has a reader")) : ie(this, t
|
|
2188
|
+
cancel(t = void 0) {
|
|
2189
|
+
return We(this) ? qe(this) ? b(/* @__PURE__ */ new TypeError("Cannot cancel a stream that already has a reader")) : ie(this, t) : b(Me("cancel"));
|
|
2202
2190
|
}
|
|
2203
|
-
getReader(t
|
|
2191
|
+
getReader(t = void 0) {
|
|
2204
2192
|
if (!We(this)) throw Me("getReader");
|
|
2205
|
-
return ha(t
|
|
2193
|
+
return ha(t, "First parameter").mode === void 0 ? Qe(this) : Co(this);
|
|
2206
2194
|
}
|
|
2207
|
-
pipeThrough(t
|
|
2195
|
+
pipeThrough(t, r = {}) {
|
|
2208
2196
|
if (!We(this)) throw Me("pipeThrough");
|
|
2209
|
-
Se(t
|
|
2210
|
-
const s = ys(t
|
|
2197
|
+
Se(t, 1, "pipeThrough");
|
|
2198
|
+
const s = ys(t, "First parameter"), u = Yo(r, "Second parameter");
|
|
2211
2199
|
if (qe(this)) throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");
|
|
2212
2200
|
if (Ze(s.writable)) throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");
|
|
2213
2201
|
return Q(Ho(this, s.writable, u.preventClose, u.preventAbort, u.preventCancel, u.signal)), s.readable;
|
|
2214
2202
|
}
|
|
2215
|
-
pipeTo(t
|
|
2203
|
+
pipeTo(t, r = {}) {
|
|
2216
2204
|
if (!We(this)) return b(Me("pipeTo"));
|
|
2217
|
-
if (t
|
|
2218
|
-
if (!Ge(t
|
|
2205
|
+
if (t === void 0) return b("Parameter 1 is required in 'pipeTo'.");
|
|
2206
|
+
if (!Ge(t)) return b(/* @__PURE__ */ new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));
|
|
2219
2207
|
let s;
|
|
2220
2208
|
try {
|
|
2221
2209
|
s = Yo(r, "Second parameter");
|
|
2222
2210
|
} catch (u) {
|
|
2223
2211
|
return b(u);
|
|
2224
2212
|
}
|
|
2225
|
-
return qe(this) ? b(/* @__PURE__ */ new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")) : Ze(t
|
|
2213
|
+
return qe(this) ? b(/* @__PURE__ */ new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")) : Ze(t) ? b(/* @__PURE__ */ new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")) : Ho(this, t, s.preventClose, s.preventAbort, s.preventCancel, s.signal);
|
|
2226
2214
|
}
|
|
2227
2215
|
tee() {
|
|
2228
2216
|
if (!We(this)) throw Me("tee");
|
|
2229
2217
|
return St(ns(this));
|
|
2230
2218
|
}
|
|
2231
|
-
values(t
|
|
2219
|
+
values(t = void 0) {
|
|
2232
2220
|
if (!We(this)) throw Me("values");
|
|
2233
|
-
const r = bs(t
|
|
2221
|
+
const r = bs(t, "First parameter");
|
|
2234
2222
|
return Ki(this, r.preventCancel);
|
|
2235
2223
|
}
|
|
2236
|
-
[Ur](t
|
|
2237
|
-
return this.values(t
|
|
2224
|
+
[Ur](t) {
|
|
2225
|
+
return this.values(t);
|
|
2238
2226
|
}
|
|
2239
|
-
static from(t
|
|
2240
|
-
return ss(t
|
|
2227
|
+
static from(t) {
|
|
2228
|
+
return ss(t);
|
|
2241
2229
|
}
|
|
2242
2230
|
};
|
|
2243
2231
|
n$1(Pn, "ReadableStream");
|
|
@@ -2258,16 +2246,16 @@ function Ns() {
|
|
|
2258
2246
|
writable: !0,
|
|
2259
2247
|
configurable: !0
|
|
2260
2248
|
});
|
|
2261
|
-
function Et(e, t
|
|
2249
|
+
function Et(e, t, r, s = 1, u = () => 1) {
|
|
2262
2250
|
const c = Object.create(L.prototype);
|
|
2263
2251
|
cn(c);
|
|
2264
|
-
return Qo(c, Object.create(ne.prototype), e, t
|
|
2252
|
+
return Qo(c, Object.create(ne.prototype), e, t, r, s, u), c;
|
|
2265
2253
|
}
|
|
2266
2254
|
n$1(Et, "CreateReadableStream");
|
|
2267
|
-
function Go(e, t
|
|
2255
|
+
function Go(e, t, r) {
|
|
2268
2256
|
const s = Object.create(L.prototype);
|
|
2269
2257
|
cn(s);
|
|
2270
|
-
return To(s, Object.create(te.prototype), e, t
|
|
2258
|
+
return To(s, Object.create(te.prototype), e, t, r, 0, void 0), s;
|
|
2271
2259
|
}
|
|
2272
2260
|
n$1(Go, "CreateReadableByteStream");
|
|
2273
2261
|
function cn(e) {
|
|
@@ -2282,7 +2270,7 @@ function Ns() {
|
|
|
2282
2270
|
return e._reader !== void 0;
|
|
2283
2271
|
}
|
|
2284
2272
|
n$1(qe, "IsReadableStreamLocked");
|
|
2285
|
-
function ie(e, t
|
|
2273
|
+
function ie(e, t) {
|
|
2286
2274
|
if (e._disturbed = !0, e._state === "closed") return T(void 0);
|
|
2287
2275
|
if (e._state === "errored") return b(e._storedError);
|
|
2288
2276
|
At(e);
|
|
@@ -2293,32 +2281,32 @@ function Ns() {
|
|
|
2293
2281
|
c._closeSteps(void 0);
|
|
2294
2282
|
});
|
|
2295
2283
|
}
|
|
2296
|
-
return F(e._readableStreamController[Ar](t
|
|
2284
|
+
return F(e._readableStreamController[Ar](t), f$1);
|
|
2297
2285
|
}
|
|
2298
2286
|
n$1(ie, "ReadableStreamCancel");
|
|
2299
2287
|
function At(e) {
|
|
2300
2288
|
e._state = "closed";
|
|
2301
|
-
const t
|
|
2302
|
-
if (t
|
|
2303
|
-
const r = t
|
|
2304
|
-
t
|
|
2289
|
+
const t = e._reader;
|
|
2290
|
+
if (t !== void 0 && (Zn(t), Ee(t))) {
|
|
2291
|
+
const r = t._readRequests;
|
|
2292
|
+
t._readRequests = new D(), r.forEach((s) => {
|
|
2305
2293
|
s._closeSteps();
|
|
2306
2294
|
});
|
|
2307
2295
|
}
|
|
2308
2296
|
}
|
|
2309
2297
|
n$1(At, "ReadableStreamClose");
|
|
2310
|
-
function Zo(e, t
|
|
2311
|
-
e._state = "errored", e._storedError = t
|
|
2298
|
+
function Zo(e, t) {
|
|
2299
|
+
e._state = "errored", e._storedError = t;
|
|
2312
2300
|
const r = e._reader;
|
|
2313
|
-
r !== void 0 && (Or(r, t
|
|
2301
|
+
r !== void 0 && (Or(r, t), Ee(r) ? ro(r, t) : Ao(r, t));
|
|
2314
2302
|
}
|
|
2315
2303
|
n$1(Zo, "ReadableStreamError");
|
|
2316
2304
|
function Me(e) {
|
|
2317
2305
|
return /* @__PURE__ */ new TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`);
|
|
2318
2306
|
}
|
|
2319
2307
|
n$1(Me, "streamBrandCheckException$1");
|
|
2320
|
-
function Ko(e, t
|
|
2321
|
-
ue(e, t
|
|
2308
|
+
function Ko(e, t) {
|
|
2309
|
+
ue(e, t);
|
|
2322
2310
|
const r = e?.highWaterMark;
|
|
2323
2311
|
return zr(r, "highWaterMark", "QueuingStrategyInit"), { highWaterMark: Ir(r) };
|
|
2324
2312
|
}
|
|
@@ -2326,8 +2314,8 @@ function Ns() {
|
|
|
2326
2314
|
const Jo = n$1((e) => e.byteLength, "byteLengthSizeFunction");
|
|
2327
2315
|
h(Jo, "size");
|
|
2328
2316
|
const vn = class vn$1 {
|
|
2329
|
-
constructor(t
|
|
2330
|
-
Se(t
|
|
2317
|
+
constructor(t) {
|
|
2318
|
+
Se(t, 1, "ByteLengthQueuingStrategy"), t = Ko(t, "First parameter"), this._byteLengthQueuingStrategyHighWaterMark = t.highWaterMark;
|
|
2331
2319
|
}
|
|
2332
2320
|
get highWaterMark() {
|
|
2333
2321
|
if (!ei(this)) throw Xo("highWaterMark");
|
|
@@ -2358,8 +2346,8 @@ function Ns() {
|
|
|
2358
2346
|
const ti = n$1(() => 1, "countSizeFunction");
|
|
2359
2347
|
h(ti, "size");
|
|
2360
2348
|
const En = class En$1 {
|
|
2361
|
-
constructor(t
|
|
2362
|
-
Se(t
|
|
2349
|
+
constructor(t) {
|
|
2350
|
+
Se(t, 1, "CountQueuingStrategy"), t = Ko(t, "First parameter"), this._countQueuingStrategyHighWaterMark = t.highWaterMark;
|
|
2363
2351
|
}
|
|
2364
2352
|
get highWaterMark() {
|
|
2365
2353
|
if (!ni(this)) throw ri("highWaterMark");
|
|
@@ -2387,39 +2375,39 @@ function Ns() {
|
|
|
2387
2375
|
return !l(e) || !Object.prototype.hasOwnProperty.call(e, "_countQueuingStrategyHighWaterMark") ? !1 : e instanceof et;
|
|
2388
2376
|
}
|
|
2389
2377
|
n$1(ni, "IsCountQueuingStrategy");
|
|
2390
|
-
function gs(e, t
|
|
2391
|
-
ue(e, t
|
|
2378
|
+
function gs(e, t) {
|
|
2379
|
+
ue(e, t);
|
|
2392
2380
|
const r = e?.cancel, s = e?.flush, u = e?.readableType, c = e?.start, d = e?.transform, m = e?.writableType;
|
|
2393
2381
|
return {
|
|
2394
|
-
cancel: r === void 0 ? void 0 : Rs(r, e, `${t
|
|
2395
|
-
flush: s === void 0 ? void 0 : _s(s, e, `${t
|
|
2382
|
+
cancel: r === void 0 ? void 0 : Rs(r, e, `${t} has member 'cancel' that`),
|
|
2383
|
+
flush: s === void 0 ? void 0 : _s(s, e, `${t} has member 'flush' that`),
|
|
2396
2384
|
readableType: u,
|
|
2397
|
-
start: c === void 0 ? void 0 : Ss(c, e, `${t
|
|
2398
|
-
transform: d === void 0 ? void 0 : ws(d, e, `${t
|
|
2385
|
+
start: c === void 0 ? void 0 : Ss(c, e, `${t} has member 'start' that`),
|
|
2386
|
+
transform: d === void 0 ? void 0 : ws(d, e, `${t} has member 'transform' that`),
|
|
2399
2387
|
writableType: m
|
|
2400
2388
|
};
|
|
2401
2389
|
}
|
|
2402
2390
|
n$1(gs, "convertTransformer");
|
|
2403
|
-
function _s(e, t
|
|
2404
|
-
return Z(e, r), (s) => j(e, t
|
|
2391
|
+
function _s(e, t, r) {
|
|
2392
|
+
return Z(e, r), (s) => j(e, t, [s]);
|
|
2405
2393
|
}
|
|
2406
2394
|
n$1(_s, "convertTransformerFlushCallback");
|
|
2407
|
-
function Ss(e, t
|
|
2408
|
-
return Z(e, r), (s) => z(e, t
|
|
2395
|
+
function Ss(e, t, r) {
|
|
2396
|
+
return Z(e, r), (s) => z(e, t, [s]);
|
|
2409
2397
|
}
|
|
2410
2398
|
n$1(Ss, "convertTransformerStartCallback");
|
|
2411
|
-
function ws(e, t
|
|
2412
|
-
return Z(e, r), (s, u) => j(e, t
|
|
2399
|
+
function ws(e, t, r) {
|
|
2400
|
+
return Z(e, r), (s, u) => j(e, t, [s, u]);
|
|
2413
2401
|
}
|
|
2414
2402
|
n$1(ws, "convertTransformerTransformCallback");
|
|
2415
|
-
function Rs(e, t
|
|
2416
|
-
return Z(e, r), (s) => j(e, t
|
|
2403
|
+
function Rs(e, t, r) {
|
|
2404
|
+
return Z(e, r), (s) => j(e, t, [s]);
|
|
2417
2405
|
}
|
|
2418
2406
|
n$1(Rs, "convertTransformerCancelCallback");
|
|
2419
2407
|
const An = class An$1 {
|
|
2420
|
-
constructor(t
|
|
2421
|
-
t
|
|
2422
|
-
const u = Zt(r, "Second parameter"), c = Zt(s, "Third parameter"), d = gs(t
|
|
2408
|
+
constructor(t = {}, r = {}, s = {}) {
|
|
2409
|
+
t === void 0 && (t = null);
|
|
2410
|
+
const u = Zt(r, "Second parameter"), c = Zt(s, "Third parameter"), d = gs(t, "First parameter");
|
|
2423
2411
|
if (d.readableType !== void 0) throw new RangeError("Invalid readableType specified");
|
|
2424
2412
|
if (d.writableType !== void 0) throw new RangeError("Invalid writableType specified");
|
|
2425
2413
|
const m = Tt(c, 0), R = Gt(c), y = Tt(u, 1), C = Gt(u);
|
|
@@ -2447,9 +2435,9 @@ function Ns() {
|
|
|
2447
2435
|
value: "TransformStream",
|
|
2448
2436
|
configurable: !0
|
|
2449
2437
|
});
|
|
2450
|
-
function Ts(e, t
|
|
2438
|
+
function Ts(e, t, r, s, u, c) {
|
|
2451
2439
|
function d() {
|
|
2452
|
-
return t
|
|
2440
|
+
return t;
|
|
2453
2441
|
}
|
|
2454
2442
|
n$1(d, "startAlgorithm");
|
|
2455
2443
|
function m(B) {
|
|
@@ -2478,22 +2466,22 @@ function Ns() {
|
|
|
2478
2466
|
return !l(e) || !Object.prototype.hasOwnProperty.call(e, "_transformStreamController") ? !1 : e instanceof tt;
|
|
2479
2467
|
}
|
|
2480
2468
|
n$1(oi, "IsTransformStream");
|
|
2481
|
-
function ii(e, t
|
|
2482
|
-
oe(e._readable._readableStreamController, t
|
|
2469
|
+
function ii(e, t) {
|
|
2470
|
+
oe(e._readable._readableStreamController, t), dn(e, t);
|
|
2483
2471
|
}
|
|
2484
2472
|
n$1(ii, "TransformStreamError");
|
|
2485
|
-
function dn(e, t
|
|
2486
|
-
ur(e._transformStreamController), Ct(e._writable._writableStreamController, t
|
|
2473
|
+
function dn(e, t) {
|
|
2474
|
+
ur(e._transformStreamController), Ct(e._writable._writableStreamController, t), hn(e);
|
|
2487
2475
|
}
|
|
2488
2476
|
n$1(dn, "TransformStreamErrorWritableAndUnblockWrite");
|
|
2489
2477
|
function hn(e) {
|
|
2490
2478
|
e._backpressure && sr(e, !1);
|
|
2491
2479
|
}
|
|
2492
2480
|
n$1(hn, "TransformStreamUnblockWrite");
|
|
2493
|
-
function sr(e, t
|
|
2481
|
+
function sr(e, t) {
|
|
2494
2482
|
e._backpressureChangePromise !== void 0 && e._backpressureChangePromise_resolve(), e._backpressureChangePromise = A((r) => {
|
|
2495
2483
|
e._backpressureChangePromise_resolve = r;
|
|
2496
|
-
}), e._backpressure = t
|
|
2484
|
+
}), e._backpressure = t;
|
|
2497
2485
|
}
|
|
2498
2486
|
n$1(sr, "TransformStreamSetBackpressure");
|
|
2499
2487
|
const Bn = class Bn$1 {
|
|
@@ -2502,16 +2490,16 @@ function Ns() {
|
|
|
2502
2490
|
}
|
|
2503
2491
|
get desiredSize() {
|
|
2504
2492
|
if (!lr(this)) throw fr("desiredSize");
|
|
2505
|
-
const t
|
|
2506
|
-
return fn(t
|
|
2493
|
+
const t = this._controlledTransformStream._readable._readableStreamController;
|
|
2494
|
+
return fn(t);
|
|
2507
2495
|
}
|
|
2508
|
-
enqueue(t
|
|
2496
|
+
enqueue(t = void 0) {
|
|
2509
2497
|
if (!lr(this)) throw fr("enqueue");
|
|
2510
|
-
ai(this, t
|
|
2498
|
+
ai(this, t);
|
|
2511
2499
|
}
|
|
2512
|
-
error(t
|
|
2500
|
+
error(t = void 0) {
|
|
2513
2501
|
if (!lr(this)) throw fr("error");
|
|
2514
|
-
vs(this, t
|
|
2502
|
+
vs(this, t);
|
|
2515
2503
|
}
|
|
2516
2504
|
terminate() {
|
|
2517
2505
|
if (!lr(this)) throw fr("terminate");
|
|
@@ -2533,101 +2521,101 @@ function Ns() {
|
|
|
2533
2521
|
return !l(e) || !Object.prototype.hasOwnProperty.call(e, "_controlledTransformStream") ? !1 : e instanceof pe;
|
|
2534
2522
|
}
|
|
2535
2523
|
n$1(lr, "IsTransformStreamDefaultController");
|
|
2536
|
-
function Cs(e, t
|
|
2537
|
-
t
|
|
2524
|
+
function Cs(e, t, r, s, u) {
|
|
2525
|
+
t._controlledTransformStream = e, e._transformStreamController = t, t._transformAlgorithm = r, t._flushAlgorithm = s, t._cancelAlgorithm = u, t._finishPromise = void 0, t._finishPromise_resolve = void 0, t._finishPromise_reject = void 0;
|
|
2538
2526
|
}
|
|
2539
2527
|
n$1(Cs, "SetUpTransformStreamDefaultController");
|
|
2540
|
-
function Ps(e, t
|
|
2528
|
+
function Ps(e, t) {
|
|
2541
2529
|
const r = Object.create(pe.prototype);
|
|
2542
2530
|
let s, u, c;
|
|
2543
|
-
t
|
|
2531
|
+
t.transform !== void 0 ? s = n$1((d) => t.transform(d, r), "transformAlgorithm") : s = n$1((d) => {
|
|
2544
2532
|
try {
|
|
2545
2533
|
return ai(r, d), T(void 0);
|
|
2546
2534
|
} catch (m) {
|
|
2547
2535
|
return b(m);
|
|
2548
2536
|
}
|
|
2549
|
-
}, "transformAlgorithm"), t
|
|
2537
|
+
}, "transformAlgorithm"), t.flush !== void 0 ? u = n$1(() => t.flush(r), "flushAlgorithm") : u = n$1(() => T(void 0), "flushAlgorithm"), t.cancel !== void 0 ? c = n$1((d) => t.cancel(d), "cancelAlgorithm") : c = n$1(() => T(void 0), "cancelAlgorithm"), Cs(e, r, s, u, c);
|
|
2550
2538
|
}
|
|
2551
2539
|
n$1(Ps, "SetUpTransformStreamDefaultControllerFromTransformer");
|
|
2552
2540
|
function ur(e) {
|
|
2553
2541
|
e._transformAlgorithm = void 0, e._flushAlgorithm = void 0, e._cancelAlgorithm = void 0;
|
|
2554
2542
|
}
|
|
2555
2543
|
n$1(ur, "TransformStreamDefaultControllerClearAlgorithms");
|
|
2556
|
-
function ai(e, t
|
|
2544
|
+
function ai(e, t) {
|
|
2557
2545
|
const r = e._controlledTransformStream, s = r._readable._readableStreamController;
|
|
2558
2546
|
if (!Je(s)) throw new TypeError("Readable side is not in a state that permits enqueue");
|
|
2559
2547
|
try {
|
|
2560
|
-
Ke(s, t
|
|
2548
|
+
Ke(s, t);
|
|
2561
2549
|
} catch (c) {
|
|
2562
2550
|
throw dn(r, c), r._readable._storedError;
|
|
2563
2551
|
}
|
|
2564
2552
|
ts(s) !== r._backpressure && sr(r, !0);
|
|
2565
2553
|
}
|
|
2566
2554
|
n$1(ai, "TransformStreamDefaultControllerEnqueue");
|
|
2567
|
-
function vs(e, t
|
|
2568
|
-
ii(e._controlledTransformStream, t
|
|
2555
|
+
function vs(e, t) {
|
|
2556
|
+
ii(e._controlledTransformStream, t);
|
|
2569
2557
|
}
|
|
2570
2558
|
n$1(vs, "TransformStreamDefaultControllerError");
|
|
2571
|
-
function si(e, t
|
|
2572
|
-
return F(e._transformAlgorithm(t
|
|
2559
|
+
function si(e, t) {
|
|
2560
|
+
return F(e._transformAlgorithm(t), void 0, (s) => {
|
|
2573
2561
|
throw ii(e._controlledTransformStream, s), s;
|
|
2574
2562
|
});
|
|
2575
2563
|
}
|
|
2576
2564
|
n$1(si, "TransformStreamDefaultControllerPerformTransform");
|
|
2577
2565
|
function Es(e) {
|
|
2578
|
-
const t
|
|
2566
|
+
const t = e._controlledTransformStream, r = t._readable._readableStreamController;
|
|
2579
2567
|
De(r);
|
|
2580
|
-
dn(t
|
|
2568
|
+
dn(t, /* @__PURE__ */ new TypeError("TransformStream terminated"));
|
|
2581
2569
|
}
|
|
2582
2570
|
n$1(Es, "TransformStreamDefaultControllerTerminate");
|
|
2583
|
-
function As(e, t
|
|
2571
|
+
function As(e, t) {
|
|
2584
2572
|
const r = e._transformStreamController;
|
|
2585
2573
|
if (e._backpressure) {
|
|
2586
2574
|
const s = e._backpressureChangePromise;
|
|
2587
2575
|
return F(s, () => {
|
|
2588
2576
|
const u = e._writable;
|
|
2589
2577
|
if (u._state === "erroring") throw u._storedError;
|
|
2590
|
-
return si(r, t
|
|
2578
|
+
return si(r, t);
|
|
2591
2579
|
});
|
|
2592
2580
|
}
|
|
2593
|
-
return si(r, t
|
|
2581
|
+
return si(r, t);
|
|
2594
2582
|
}
|
|
2595
2583
|
n$1(As, "TransformStreamDefaultSinkWriteAlgorithm");
|
|
2596
|
-
function Bs(e, t
|
|
2584
|
+
function Bs(e, t) {
|
|
2597
2585
|
const r = e._transformStreamController;
|
|
2598
2586
|
if (r._finishPromise !== void 0) return r._finishPromise;
|
|
2599
2587
|
const s = e._readable;
|
|
2600
2588
|
r._finishPromise = A((c, d) => {
|
|
2601
2589
|
r._finishPromise_resolve = c, r._finishPromise_reject = d;
|
|
2602
2590
|
});
|
|
2603
|
-
const u = r._cancelAlgorithm(t
|
|
2604
|
-
return ur(r), g(u, () => (s._state === "errored" ? rt(r, s._storedError) : (oe(s._readableStreamController, t
|
|
2591
|
+
const u = r._cancelAlgorithm(t);
|
|
2592
|
+
return ur(r), g(u, () => (s._state === "errored" ? rt(r, s._storedError) : (oe(s._readableStreamController, t), pn(r)), null), (c) => (oe(s._readableStreamController, c), rt(r, c), null)), r._finishPromise;
|
|
2605
2593
|
}
|
|
2606
2594
|
n$1(Bs, "TransformStreamDefaultSinkAbortAlgorithm");
|
|
2607
2595
|
function ks(e) {
|
|
2608
|
-
const t
|
|
2609
|
-
if (t
|
|
2596
|
+
const t = e._transformStreamController;
|
|
2597
|
+
if (t._finishPromise !== void 0) return t._finishPromise;
|
|
2610
2598
|
const r = e._readable;
|
|
2611
|
-
t
|
|
2612
|
-
t
|
|
2599
|
+
t._finishPromise = A((u, c) => {
|
|
2600
|
+
t._finishPromise_resolve = u, t._finishPromise_reject = c;
|
|
2613
2601
|
});
|
|
2614
|
-
const s = t
|
|
2615
|
-
return ur(t
|
|
2602
|
+
const s = t._flushAlgorithm();
|
|
2603
|
+
return ur(t), g(s, () => (r._state === "errored" ? rt(t, r._storedError) : (De(r._readableStreamController), pn(t)), null), (u) => (oe(r._readableStreamController, u), rt(t, u), null)), t._finishPromise;
|
|
2616
2604
|
}
|
|
2617
2605
|
n$1(ks, "TransformStreamDefaultSinkCloseAlgorithm");
|
|
2618
2606
|
function Ws(e) {
|
|
2619
2607
|
return sr(e, !1), e._backpressureChangePromise;
|
|
2620
2608
|
}
|
|
2621
2609
|
n$1(Ws, "TransformStreamDefaultSourcePullAlgorithm");
|
|
2622
|
-
function qs(e, t
|
|
2610
|
+
function qs(e, t) {
|
|
2623
2611
|
const r = e._transformStreamController;
|
|
2624
2612
|
if (r._finishPromise !== void 0) return r._finishPromise;
|
|
2625
2613
|
const s = e._writable;
|
|
2626
2614
|
r._finishPromise = A((c, d) => {
|
|
2627
2615
|
r._finishPromise_resolve = c, r._finishPromise_reject = d;
|
|
2628
2616
|
});
|
|
2629
|
-
const u = r._cancelAlgorithm(t
|
|
2630
|
-
return ur(r), g(u, () => (s._state === "errored" ? rt(r, s._storedError) : (Ct(s._writableStreamController, t
|
|
2617
|
+
const u = r._cancelAlgorithm(t);
|
|
2618
|
+
return ur(r), g(u, () => (s._state === "errored" ? rt(r, s._storedError) : (Ct(s._writableStreamController, t), hn(e), pn(r)), null), (c) => (Ct(s._writableStreamController, c), hn(e), rt(r, c), null)), r._finishPromise;
|
|
2631
2619
|
}
|
|
2632
2620
|
n$1(qs, "TransformStreamDefaultSourceCancelAlgorithm");
|
|
2633
2621
|
function fr(e) {
|
|
@@ -2638,8 +2626,8 @@ function Ns() {
|
|
|
2638
2626
|
e._finishPromise_resolve !== void 0 && (e._finishPromise_resolve(), e._finishPromise_resolve = void 0, e._finishPromise_reject = void 0);
|
|
2639
2627
|
}
|
|
2640
2628
|
n$1(pn, "defaultControllerFinishPromiseResolve");
|
|
2641
|
-
function rt(e, t
|
|
2642
|
-
e._finishPromise_reject !== void 0 && (Q(e._finishPromise), e._finishPromise_reject(t
|
|
2629
|
+
function rt(e, t) {
|
|
2630
|
+
e._finishPromise_reject !== void 0 && (Q(e._finishPromise), e._finishPromise_reject(t), e._finishPromise_resolve = void 0, e._finishPromise_reject = void 0);
|
|
2643
2631
|
}
|
|
2644
2632
|
n$1(rt, "defaultControllerFinishPromiseReject");
|
|
2645
2633
|
function li(e) {
|
|
@@ -2656,18 +2644,18 @@ function Hs() {
|
|
|
2656
2644
|
mi = 1;
|
|
2657
2645
|
const i = 65536;
|
|
2658
2646
|
if (!globalThis.ReadableStream) try {
|
|
2659
|
-
const o
|
|
2647
|
+
const o = require("node:process"), { emitWarning: a } = o;
|
|
2660
2648
|
try {
|
|
2661
|
-
o
|
|
2649
|
+
o.emitWarning = () => {}, Object.assign(globalThis, require("node:stream/web")), o.emitWarning = a;
|
|
2662
2650
|
} catch (f$1) {
|
|
2663
|
-
throw o
|
|
2651
|
+
throw o.emitWarning = a, f$1;
|
|
2664
2652
|
}
|
|
2665
2653
|
} catch {
|
|
2666
2654
|
Object.assign(globalThis, Ns());
|
|
2667
2655
|
}
|
|
2668
2656
|
try {
|
|
2669
|
-
const { Blob: o
|
|
2670
|
-
o
|
|
2657
|
+
const { Blob: o } = require("node:buffer");
|
|
2658
|
+
o && !o.prototype.stream && (o.prototype.stream = n$1(function(f$1) {
|
|
2671
2659
|
let l = 0;
|
|
2672
2660
|
const p = this;
|
|
2673
2661
|
return new ReadableStream({
|
|
@@ -2683,9 +2671,9 @@ function Hs() {
|
|
|
2683
2671
|
}
|
|
2684
2672
|
n$1(Hs, "requireStreams"), Hs();
|
|
2685
2673
|
/*! fetch-blob. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */ const yi = 65536;
|
|
2686
|
-
async function* Wn(i, o
|
|
2674
|
+
async function* Wn(i, o = !0) {
|
|
2687
2675
|
for (const a of i) if ("stream" in a) yield* a.stream();
|
|
2688
|
-
else if (ArrayBuffer.isView(a)) if (o
|
|
2676
|
+
else if (ArrayBuffer.isView(a)) if (o) {
|
|
2689
2677
|
let f$1 = a.byteOffset;
|
|
2690
2678
|
const l = a.byteOffset + a.byteLength;
|
|
2691
2679
|
for (; f$1 !== l;) {
|
|
@@ -2703,17 +2691,17 @@ async function* Wn(i, o$1 = !0) {
|
|
|
2703
2691
|
}
|
|
2704
2692
|
n$1(Wn, "toIterator");
|
|
2705
2693
|
const gi = (ze = class {
|
|
2706
|
-
constructor(o
|
|
2694
|
+
constructor(o = [], a = {}) {
|
|
2707
2695
|
be(this, ve, []);
|
|
2708
2696
|
be(this, zt, "");
|
|
2709
2697
|
be(this, bt, 0);
|
|
2710
2698
|
be(this, Cr, "transparent");
|
|
2711
|
-
if (typeof o
|
|
2712
|
-
if (typeof o
|
|
2699
|
+
if (typeof o != "object" || o === null) throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");
|
|
2700
|
+
if (typeof o[Symbol.iterator] != "function") throw new TypeError("Failed to construct 'Blob': The object must have a callable @@iterator property.");
|
|
2713
2701
|
if (typeof a != "object" && typeof a != "function") throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary.");
|
|
2714
2702
|
a === null && (a = {});
|
|
2715
2703
|
const f$1 = new TextEncoder();
|
|
2716
|
-
for (const p of o
|
|
2704
|
+
for (const p of o) {
|
|
2717
2705
|
let h;
|
|
2718
2706
|
ArrayBuffer.isView(p) ? h = new Uint8Array(p.buffer.slice(p.byteOffset, p.byteOffset + p.byteLength)) : p instanceof ArrayBuffer ? h = new Uint8Array(p.slice(0)) : p instanceof ze ? h = p : h = f$1.encode(`${p}`), X(this, bt, O(this, bt) + (ArrayBuffer.isView(h) ? h.byteLength : h.size)), O(this, ve).push(h);
|
|
2719
2707
|
}
|
|
@@ -2728,33 +2716,33 @@ const gi = (ze = class {
|
|
|
2728
2716
|
return O(this, zt);
|
|
2729
2717
|
}
|
|
2730
2718
|
async text() {
|
|
2731
|
-
const o
|
|
2719
|
+
const o = new TextDecoder();
|
|
2732
2720
|
let a = "";
|
|
2733
|
-
for await (const f$1 of Wn(O(this, ve), !1)) a += o
|
|
2734
|
-
return a += o
|
|
2721
|
+
for await (const f$1 of Wn(O(this, ve), !1)) a += o.decode(f$1, { stream: !0 });
|
|
2722
|
+
return a += o.decode(), a;
|
|
2735
2723
|
}
|
|
2736
2724
|
async arrayBuffer() {
|
|
2737
|
-
const o
|
|
2725
|
+
const o = new Uint8Array(this.size);
|
|
2738
2726
|
let a = 0;
|
|
2739
|
-
for await (const f$1 of Wn(O(this, ve), !1)) o
|
|
2740
|
-
return o
|
|
2727
|
+
for await (const f$1 of Wn(O(this, ve), !1)) o.set(f$1, a), a += f$1.length;
|
|
2728
|
+
return o.buffer;
|
|
2741
2729
|
}
|
|
2742
2730
|
stream() {
|
|
2743
|
-
const o
|
|
2731
|
+
const o = Wn(O(this, ve), !0);
|
|
2744
2732
|
return new globalThis.ReadableStream({
|
|
2745
2733
|
type: "bytes",
|
|
2746
2734
|
async pull(a) {
|
|
2747
|
-
const f$1 = await o
|
|
2735
|
+
const f$1 = await o.next();
|
|
2748
2736
|
f$1.done ? a.close() : a.enqueue(f$1.value);
|
|
2749
2737
|
},
|
|
2750
2738
|
async cancel() {
|
|
2751
|
-
await o
|
|
2739
|
+
await o.return();
|
|
2752
2740
|
}
|
|
2753
2741
|
});
|
|
2754
2742
|
}
|
|
2755
|
-
slice(o
|
|
2743
|
+
slice(o = 0, a = this.size, f$1 = "") {
|
|
2756
2744
|
const { size: l } = this;
|
|
2757
|
-
let p = o
|
|
2745
|
+
let p = o < 0 ? Math.max(l + o, 0) : Math.min(o, l), h = a < 0 ? Math.max(l + a, 0) : Math.min(a, l);
|
|
2758
2746
|
const S = Math.max(h - p, 0), v = O(this, ve), w = [];
|
|
2759
2747
|
let A = 0;
|
|
2760
2748
|
for (const b of v) {
|
|
@@ -2772,8 +2760,8 @@ const gi = (ze = class {
|
|
|
2772
2760
|
get [Symbol.toStringTag]() {
|
|
2773
2761
|
return "Blob";
|
|
2774
2762
|
}
|
|
2775
|
-
static [Symbol.hasInstance](o
|
|
2776
|
-
return o
|
|
2763
|
+
static [Symbol.hasInstance](o) {
|
|
2764
|
+
return o && typeof o == "object" && typeof o.constructor == "function" && (typeof o.stream == "function" || typeof o.arrayBuffer == "function") && /^(Blob|File)$/.test(o[Symbol.toStringTag]);
|
|
2777
2765
|
}
|
|
2778
2766
|
}, ve = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), Cr = /* @__PURE__ */ new WeakMap(), n$1(ze, "Blob"), ze);
|
|
2779
2767
|
Object.defineProperties(gi.prototype, {
|
|
@@ -2804,14 +2792,14 @@ const ut = gi, qn = (mt = class extends ut {
|
|
|
2804
2792
|
return !!a && a instanceof ut && /^(File)$/.test(a[Symbol.toStringTag]);
|
|
2805
2793
|
}
|
|
2806
2794
|
}, It = /* @__PURE__ */ new WeakMap(), Ft = /* @__PURE__ */ new WeakMap(), n$1(mt, "File"), mt);
|
|
2807
|
-
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */ var { toStringTag: Wt, iterator: Qs, hasInstance: Ys } = Symbol, _i = Math.random, Gs = "append,set,get,getAll,delete,keys,values,entries,forEach,constructor".split(","), Si = n$1((i, o
|
|
2808
|
-
`)).replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), "e$1"), Ue = n$1((i, o
|
|
2809
|
-
if (o
|
|
2795
|
+
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */ var { toStringTag: Wt, iterator: Qs, hasInstance: Ys } = Symbol, _i = Math.random, Gs = "append,set,get,getAll,delete,keys,values,entries,forEach,constructor".split(","), Si = n$1((i, o, a) => (i += "", /^(Blob|File)$/.test(o && o[Wt]) ? [(a = a !== void 0 ? a + "" : o[Wt] == "File" ? o.name : "blob", i), o.name !== a || o[Wt] == "blob" ? new qn([o], a, o) : o] : [i, o + ""]), "f"), On = n$1((i, o) => (o ? i : i.replace(/\r?\n|\r/g, `\r
|
|
2796
|
+
`)).replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), "e$1"), Ue = n$1((i, o, a) => {
|
|
2797
|
+
if (o.length < a) throw new TypeError(`Failed to execute '${i}' on 'FormData': ${a} arguments required, but only ${o.length} present.`);
|
|
2810
2798
|
}, "x");
|
|
2811
2799
|
const br = (yt = class {
|
|
2812
|
-
constructor(...o
|
|
2800
|
+
constructor(...o) {
|
|
2813
2801
|
be(this, ee, []);
|
|
2814
|
-
if (o
|
|
2802
|
+
if (o.length) throw new TypeError("Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.");
|
|
2815
2803
|
}
|
|
2816
2804
|
get [Wt]() {
|
|
2817
2805
|
return "FormData";
|
|
@@ -2819,48 +2807,48 @@ const br = (yt = class {
|
|
|
2819
2807
|
[Qs]() {
|
|
2820
2808
|
return this.entries();
|
|
2821
2809
|
}
|
|
2822
|
-
static [Ys](o
|
|
2823
|
-
return o
|
|
2810
|
+
static [Ys](o) {
|
|
2811
|
+
return o && typeof o == "object" && o[Wt] === "FormData" && !Gs.some((a) => typeof o[a] != "function");
|
|
2824
2812
|
}
|
|
2825
|
-
append(...o
|
|
2826
|
-
Ue("append", arguments, 2), O(this, ee).push(Si(...o
|
|
2813
|
+
append(...o) {
|
|
2814
|
+
Ue("append", arguments, 2), O(this, ee).push(Si(...o));
|
|
2827
2815
|
}
|
|
2828
|
-
delete(o
|
|
2829
|
-
Ue("delete", arguments, 1), o
|
|
2816
|
+
delete(o) {
|
|
2817
|
+
Ue("delete", arguments, 1), o += "", X(this, ee, O(this, ee).filter(([a]) => a !== o));
|
|
2830
2818
|
}
|
|
2831
|
-
get(o
|
|
2832
|
-
Ue("get", arguments, 1), o
|
|
2833
|
-
for (var a = O(this, ee), f$1 = a.length, l = 0; l < f$1; l++) if (a[l][0] === o
|
|
2819
|
+
get(o) {
|
|
2820
|
+
Ue("get", arguments, 1), o += "";
|
|
2821
|
+
for (var a = O(this, ee), f$1 = a.length, l = 0; l < f$1; l++) if (a[l][0] === o) return a[l][1];
|
|
2834
2822
|
return null;
|
|
2835
2823
|
}
|
|
2836
|
-
getAll(o
|
|
2837
|
-
return Ue("getAll", arguments, 1), a = [], o
|
|
2824
|
+
getAll(o, a) {
|
|
2825
|
+
return Ue("getAll", arguments, 1), a = [], o += "", O(this, ee).forEach((f$1) => f$1[0] === o && a.push(f$1[1])), a;
|
|
2838
2826
|
}
|
|
2839
|
-
has(o
|
|
2840
|
-
return Ue("has", arguments, 1), o
|
|
2827
|
+
has(o) {
|
|
2828
|
+
return Ue("has", arguments, 1), o += "", O(this, ee).some((a) => a[0] === o);
|
|
2841
2829
|
}
|
|
2842
|
-
forEach(o
|
|
2830
|
+
forEach(o, a) {
|
|
2843
2831
|
Ue("forEach", arguments, 1);
|
|
2844
|
-
for (var [f$1, l] of this) o
|
|
2832
|
+
for (var [f$1, l] of this) o.call(a, l, f$1, this);
|
|
2845
2833
|
}
|
|
2846
|
-
set(...o
|
|
2834
|
+
set(...o) {
|
|
2847
2835
|
Ue("set", arguments, 2);
|
|
2848
2836
|
var a = [], f$1 = !0;
|
|
2849
|
-
o
|
|
2850
|
-
l[0] === o
|
|
2851
|
-
}), f$1 && a.push(o
|
|
2837
|
+
o = Si(...o), O(this, ee).forEach((l) => {
|
|
2838
|
+
l[0] === o[0] ? f$1 && (f$1 = !a.push(o)) : a.push(l);
|
|
2839
|
+
}), f$1 && a.push(o), X(this, ee, a);
|
|
2852
2840
|
}
|
|
2853
2841
|
*entries() {
|
|
2854
2842
|
yield* O(this, ee);
|
|
2855
2843
|
}
|
|
2856
2844
|
*keys() {
|
|
2857
|
-
for (var [o
|
|
2845
|
+
for (var [o] of this) yield o;
|
|
2858
2846
|
}
|
|
2859
2847
|
*values() {
|
|
2860
|
-
for (var [, o
|
|
2848
|
+
for (var [, o] of this) yield o;
|
|
2861
2849
|
}
|
|
2862
2850
|
}, ee = /* @__PURE__ */ new WeakMap(), n$1(yt, "FormData"), yt);
|
|
2863
|
-
function Zs(i, o
|
|
2851
|
+
function Zs(i, o = ut) {
|
|
2864
2852
|
var a = `${_i()}${_i()}`.replace(/\./g, "").slice(-28).padStart(32, "-"), f$1 = [], l = `--${a}\r
|
|
2865
2853
|
Content-Disposition: form-data; name="`;
|
|
2866
2854
|
return i.forEach((p, h) => typeof p == "string" ? f$1.push(l + On(h) + `"\r
|
|
@@ -2871,12 +2859,12 @@ ${p.replace(/\r(?!\n)|(?<!\r)\n/g, `\r
|
|
|
2871
2859
|
Content-Type: ${p.type || "application/octet-stream"}\r
|
|
2872
2860
|
\r
|
|
2873
2861
|
`, p, `\r
|
|
2874
|
-
`)), f$1.push(`--${a}--`), new o
|
|
2862
|
+
`)), f$1.push(`--${a}--`), new o(f$1, { type: "multipart/form-data; boundary=" + a });
|
|
2875
2863
|
}
|
|
2876
2864
|
n$1(Zs, "formDataToBlob");
|
|
2877
2865
|
const Un = class Un$1 extends Error {
|
|
2878
|
-
constructor(o
|
|
2879
|
-
super(o
|
|
2866
|
+
constructor(o, a) {
|
|
2867
|
+
super(o), Error.captureStackTrace(this, this.constructor), this.type = a;
|
|
2880
2868
|
}
|
|
2881
2869
|
get name() {
|
|
2882
2870
|
return this.constructor.name;
|
|
@@ -2888,29 +2876,29 @@ const Un = class Un$1 extends Error {
|
|
|
2888
2876
|
n$1(Un, "FetchBaseError");
|
|
2889
2877
|
let ft = Un;
|
|
2890
2878
|
const xn = class xn$1 extends ft {
|
|
2891
|
-
constructor(o
|
|
2892
|
-
super(o
|
|
2879
|
+
constructor(o, a, f$1) {
|
|
2880
|
+
super(o, a), f$1 && (this.code = this.errno = f$1.code, this.erroredSysCall = f$1.syscall);
|
|
2893
2881
|
}
|
|
2894
2882
|
};
|
|
2895
2883
|
n$1(xn, "FetchError");
|
|
2896
2884
|
let G = xn;
|
|
2897
|
-
const mr = Symbol.toStringTag, wi = n$1((i) => typeof i == "object" && typeof i.append == "function" && typeof i.delete == "function" && typeof i.get == "function" && typeof i.getAll == "function" && typeof i.has == "function" && typeof i.set == "function" && typeof i.sort == "function" && i[mr] === "URLSearchParams", "isURLSearchParameters"), yr = n$1((i) => i && typeof i == "object" && typeof i.arrayBuffer == "function" && typeof i.type == "string" && typeof i.stream == "function" && typeof i.constructor == "function" && /^(Blob|File)$/.test(i[mr]), "isBlob"), Ks = n$1((i) => typeof i == "object" && (i[mr] === "AbortSignal" || i[mr] === "EventTarget"), "isAbortSignal"), Js = n$1((i, o
|
|
2898
|
-
const a = new URL(o
|
|
2885
|
+
const mr = Symbol.toStringTag, wi = n$1((i) => typeof i == "object" && typeof i.append == "function" && typeof i.delete == "function" && typeof i.get == "function" && typeof i.getAll == "function" && typeof i.has == "function" && typeof i.set == "function" && typeof i.sort == "function" && i[mr] === "URLSearchParams", "isURLSearchParameters"), yr = n$1((i) => i && typeof i == "object" && typeof i.arrayBuffer == "function" && typeof i.type == "string" && typeof i.stream == "function" && typeof i.constructor == "function" && /^(Blob|File)$/.test(i[mr]), "isBlob"), Ks = n$1((i) => typeof i == "object" && (i[mr] === "AbortSignal" || i[mr] === "EventTarget"), "isAbortSignal"), Js = n$1((i, o) => {
|
|
2886
|
+
const a = new URL(o).hostname, f$1 = new URL(i).hostname;
|
|
2899
2887
|
return a === f$1 || a.endsWith(`.${f$1}`);
|
|
2900
|
-
}, "isDomainOrSubdomain"), Xs = n$1((i, o
|
|
2901
|
-
return new URL(o
|
|
2888
|
+
}, "isDomainOrSubdomain"), Xs = n$1((i, o) => {
|
|
2889
|
+
return new URL(o).protocol === new URL(i).protocol;
|
|
2902
2890
|
}, "isSameProtocol"), el = (0, node_util.promisify)(node_stream.default.pipeline), H = Symbol("Body internals"), Nn = class Nn$1 {
|
|
2903
|
-
constructor(o
|
|
2891
|
+
constructor(o, { size: a = 0 } = {}) {
|
|
2904
2892
|
let f$1 = null;
|
|
2905
|
-
o
|
|
2906
|
-
let l = o
|
|
2907
|
-
node_buffer.Buffer.isBuffer(o
|
|
2908
|
-
body: o
|
|
2893
|
+
o === null ? o = null : wi(o) ? o = node_buffer.Buffer.from(o.toString()) : yr(o) || node_buffer.Buffer.isBuffer(o) || (node_util.types.isAnyArrayBuffer(o) ? o = node_buffer.Buffer.from(o) : ArrayBuffer.isView(o) ? o = node_buffer.Buffer.from(o.buffer, o.byteOffset, o.byteLength) : o instanceof node_stream.default || (o instanceof br ? (o = Zs(o), f$1 = o.type.split("=")[1]) : o = node_buffer.Buffer.from(String(o))));
|
|
2894
|
+
let l = o;
|
|
2895
|
+
node_buffer.Buffer.isBuffer(o) ? l = node_stream.default.Readable.from(o) : yr(o) && (l = node_stream.default.Readable.from(o.stream())), this[H] = {
|
|
2896
|
+
body: o,
|
|
2909
2897
|
stream: l,
|
|
2910
2898
|
boundary: f$1,
|
|
2911
2899
|
disturbed: !1,
|
|
2912
2900
|
error: null
|
|
2913
|
-
}, this.size = a, o
|
|
2901
|
+
}, this.size = a, o instanceof node_stream.default && o.on("error", (p) => {
|
|
2914
2902
|
const h = p instanceof ft ? p : new G(`Invalid response body while trying to fetch ${this.url}: ${p.message}`, "system", p);
|
|
2915
2903
|
this[H].error = h;
|
|
2916
2904
|
});
|
|
@@ -2922,30 +2910,30 @@ const mr = Symbol.toStringTag, wi = n$1((i) => typeof i == "object" && typeof i.
|
|
|
2922
2910
|
return this[H].disturbed;
|
|
2923
2911
|
}
|
|
2924
2912
|
async arrayBuffer() {
|
|
2925
|
-
const { buffer: o
|
|
2926
|
-
return o
|
|
2913
|
+
const { buffer: o, byteOffset: a, byteLength: f$1 } = await zn(this);
|
|
2914
|
+
return o.slice(a, a + f$1);
|
|
2927
2915
|
}
|
|
2928
2916
|
async formData() {
|
|
2929
|
-
const o
|
|
2930
|
-
if (o
|
|
2917
|
+
const o = this.headers.get("content-type");
|
|
2918
|
+
if (o.startsWith("application/x-www-form-urlencoded")) {
|
|
2931
2919
|
const f$1 = new br(), l = new URLSearchParams(await this.text());
|
|
2932
2920
|
for (const [p, h] of l) f$1.append(p, h);
|
|
2933
2921
|
return f$1;
|
|
2934
2922
|
}
|
|
2935
|
-
const { toFormData: a } = await Promise.resolve().then(() => require("./multipart-parser
|
|
2936
|
-
return a(this.body, o
|
|
2923
|
+
const { toFormData: a } = await Promise.resolve().then(() => require("./chunks/multipart-parser.cjs"));
|
|
2924
|
+
return a(this.body, o);
|
|
2937
2925
|
}
|
|
2938
2926
|
async blob() {
|
|
2939
|
-
const o
|
|
2940
|
-
return new ut([await this.arrayBuffer()], { type: o
|
|
2927
|
+
const o = this.headers && this.headers.get("content-type") || this[H].body && this[H].body.type || "";
|
|
2928
|
+
return new ut([await this.arrayBuffer()], { type: o });
|
|
2941
2929
|
}
|
|
2942
2930
|
async json() {
|
|
2943
|
-
const o
|
|
2944
|
-
return JSON.parse(o
|
|
2931
|
+
const o = await this.text();
|
|
2932
|
+
return JSON.parse(o);
|
|
2945
2933
|
}
|
|
2946
2934
|
async text() {
|
|
2947
|
-
const o
|
|
2948
|
-
return new TextDecoder().decode(o
|
|
2935
|
+
const o = await zn(this);
|
|
2936
|
+
return new TextDecoder().decode(o);
|
|
2949
2937
|
}
|
|
2950
2938
|
buffer() {
|
|
2951
2939
|
return zn(this);
|
|
@@ -2965,23 +2953,23 @@ xe.prototype.buffer = (0, node_util.deprecate)(xe.prototype.buffer, "Please use
|
|
|
2965
2953
|
async function zn(i) {
|
|
2966
2954
|
if (i[H].disturbed) throw new TypeError(`body used already for: ${i.url}`);
|
|
2967
2955
|
if (i[H].disturbed = !0, i[H].error) throw i[H].error;
|
|
2968
|
-
const { body: o
|
|
2969
|
-
if (o
|
|
2970
|
-
if (!(o
|
|
2956
|
+
const { body: o } = i;
|
|
2957
|
+
if (o === null) return node_buffer.Buffer.alloc(0);
|
|
2958
|
+
if (!(o instanceof node_stream.default)) return node_buffer.Buffer.alloc(0);
|
|
2971
2959
|
const a = [];
|
|
2972
2960
|
let f$1 = 0;
|
|
2973
2961
|
try {
|
|
2974
|
-
for await (const l of o
|
|
2962
|
+
for await (const l of o) {
|
|
2975
2963
|
if (i.size > 0 && f$1 + l.length > i.size) {
|
|
2976
2964
|
const p = new G(`content size at ${i.url} over limit: ${i.size}`, "max-size");
|
|
2977
|
-
throw o
|
|
2965
|
+
throw o.destroy(p), p;
|
|
2978
2966
|
}
|
|
2979
2967
|
f$1 += l.length, a.push(l);
|
|
2980
2968
|
}
|
|
2981
2969
|
} catch (l) {
|
|
2982
2970
|
throw l instanceof ft ? l : new G(`Invalid response body while trying to fetch ${i.url}: ${l.message}`, "system", l);
|
|
2983
2971
|
}
|
|
2984
|
-
if (o
|
|
2972
|
+
if (o.readableEnded === !0 || o._readableState.ended === !0) try {
|
|
2985
2973
|
return a.every((l) => typeof l == "string") ? node_buffer.Buffer.from(a.join("")) : node_buffer.Buffer.concat(a, f$1);
|
|
2986
2974
|
} catch (l) {
|
|
2987
2975
|
throw new G(`Could not create Buffer from response body for ${i.url}: ${l.message}`, "system", l);
|
|
@@ -2989,37 +2977,37 @@ async function zn(i) {
|
|
|
2989
2977
|
else throw new G(`Premature close of server response while trying to fetch ${i.url}`);
|
|
2990
2978
|
}
|
|
2991
2979
|
n$1(zn, "consumeBody");
|
|
2992
|
-
const In = n$1((i, o
|
|
2980
|
+
const In = n$1((i, o) => {
|
|
2993
2981
|
let a, f$1, { body: l } = i[H];
|
|
2994
2982
|
if (i.bodyUsed) throw new Error("cannot clone body after it is used");
|
|
2995
|
-
return l instanceof node_stream.default && typeof l.getBoundary != "function" && (a = new node_stream.PassThrough({ highWaterMark: o
|
|
2996
|
-
}, "clone"), tl = (0, node_util.deprecate)((i) => i.getBoundary(), "form-data doesn't follow the spec and requires special treatment. Use alternative package", "https://github.com/node-fetch/node-fetch/issues/1167"), Ri = n$1((i, o
|
|
2997
|
-
const { body: o
|
|
2998
|
-
return o
|
|
2999
|
-
}, "getTotalBytes"), nl = n$1(async (i, { body: o
|
|
3000
|
-
o
|
|
2983
|
+
return l instanceof node_stream.default && typeof l.getBoundary != "function" && (a = new node_stream.PassThrough({ highWaterMark: o }), f$1 = new node_stream.PassThrough({ highWaterMark: o }), l.pipe(a), l.pipe(f$1), i[H].stream = a, l = f$1), l;
|
|
2984
|
+
}, "clone"), tl = (0, node_util.deprecate)((i) => i.getBoundary(), "form-data doesn't follow the spec and requires special treatment. Use alternative package", "https://github.com/node-fetch/node-fetch/issues/1167"), Ri = n$1((i, o) => i === null ? null : typeof i == "string" ? "text/plain;charset=UTF-8" : wi(i) ? "application/x-www-form-urlencoded;charset=UTF-8" : yr(i) ? i.type || null : node_buffer.Buffer.isBuffer(i) || node_util.types.isAnyArrayBuffer(i) || ArrayBuffer.isView(i) ? null : i instanceof br ? `multipart/form-data; boundary=${o[H].boundary}` : i && typeof i.getBoundary == "function" ? `multipart/form-data;boundary=${tl(i)}` : i instanceof node_stream.default ? null : "text/plain;charset=UTF-8", "extractContentType"), rl = n$1((i) => {
|
|
2985
|
+
const { body: o } = i[H];
|
|
2986
|
+
return o === null ? 0 : yr(o) ? o.size : node_buffer.Buffer.isBuffer(o) ? o.length : o && typeof o.getLengthSync == "function" && o.hasKnownLength && o.hasKnownLength() ? o.getLengthSync() : null;
|
|
2987
|
+
}, "getTotalBytes"), nl = n$1(async (i, { body: o }) => {
|
|
2988
|
+
o === null ? i.end() : await el(o, i);
|
|
3001
2989
|
}, "writeToStream"), gr = typeof node_http.default.validateHeaderName == "function" ? node_http.default.validateHeaderName : (i) => {
|
|
3002
2990
|
if (!/^[\^`\-\w!#$%&'*+.|~]+$/.test(i)) {
|
|
3003
|
-
const o
|
|
3004
|
-
throw Object.defineProperty(o
|
|
2991
|
+
const o = /* @__PURE__ */ new TypeError(`Header name must be a valid HTTP token [${i}]`);
|
|
2992
|
+
throw Object.defineProperty(o, "code", { value: "ERR_INVALID_HTTP_TOKEN" }), o;
|
|
3005
2993
|
}
|
|
3006
|
-
}, Fn = typeof node_http.default.validateHeaderValue == "function" ? node_http.default.validateHeaderValue : (i, o
|
|
3007
|
-
if (/[^\t\u0020-\u007E\u0080-\u00FF]/.test(o
|
|
2994
|
+
}, Fn = typeof node_http.default.validateHeaderValue == "function" ? node_http.default.validateHeaderValue : (i, o) => {
|
|
2995
|
+
if (/[^\t\u0020-\u007E\u0080-\u00FF]/.test(o)) {
|
|
3008
2996
|
const a = /* @__PURE__ */ new TypeError(`Invalid character in header content ["${i}"]`);
|
|
3009
2997
|
throw Object.defineProperty(a, "code", { value: "ERR_INVALID_CHAR" }), a;
|
|
3010
2998
|
}
|
|
3011
2999
|
}, Pr = class Pr$1 extends URLSearchParams {
|
|
3012
|
-
constructor(o
|
|
3000
|
+
constructor(o) {
|
|
3013
3001
|
let a = [];
|
|
3014
|
-
if (o
|
|
3015
|
-
const f$1 = o
|
|
3002
|
+
if (o instanceof Pr$1) {
|
|
3003
|
+
const f$1 = o.raw();
|
|
3016
3004
|
for (const [l, p] of Object.entries(f$1)) a.push(...p.map((h) => [l, h]));
|
|
3017
|
-
} else if (o
|
|
3018
|
-
const f$1 = o
|
|
3019
|
-
if (f$1 == null) a.push(...Object.entries(o
|
|
3005
|
+
} else if (o != null) if (typeof o == "object" && !node_util.types.isBoxedPrimitive(o)) {
|
|
3006
|
+
const f$1 = o[Symbol.iterator];
|
|
3007
|
+
if (f$1 == null) a.push(...Object.entries(o));
|
|
3020
3008
|
else {
|
|
3021
3009
|
if (typeof f$1 != "function") throw new TypeError("Header pairs must be iterable");
|
|
3022
|
-
a = [...o
|
|
3010
|
+
a = [...o].map((l) => {
|
|
3023
3011
|
if (typeof l != "object" || node_util.types.isBoxedPrimitive(l)) throw new TypeError("Each header pair must be an iterable object");
|
|
3024
3012
|
return [...l];
|
|
3025
3013
|
}).map((l) => {
|
|
@@ -3046,35 +3034,35 @@ const In = n$1((i, o$1) => {
|
|
|
3046
3034
|
toString() {
|
|
3047
3035
|
return Object.prototype.toString.call(this);
|
|
3048
3036
|
}
|
|
3049
|
-
get(o
|
|
3050
|
-
const a = this.getAll(o
|
|
3037
|
+
get(o) {
|
|
3038
|
+
const a = this.getAll(o);
|
|
3051
3039
|
if (a.length === 0) return null;
|
|
3052
3040
|
let f$1 = a.join(", ");
|
|
3053
|
-
return /^content-encoding$/i.test(o
|
|
3041
|
+
return /^content-encoding$/i.test(o) && (f$1 = f$1.toLowerCase()), f$1;
|
|
3054
3042
|
}
|
|
3055
|
-
forEach(o
|
|
3056
|
-
for (const f$1 of this.keys()) Reflect.apply(o
|
|
3043
|
+
forEach(o, a = void 0) {
|
|
3044
|
+
for (const f$1 of this.keys()) Reflect.apply(o, a, [
|
|
3057
3045
|
this.get(f$1),
|
|
3058
3046
|
f$1,
|
|
3059
3047
|
this
|
|
3060
3048
|
]);
|
|
3061
3049
|
}
|
|
3062
3050
|
*values() {
|
|
3063
|
-
for (const o
|
|
3051
|
+
for (const o of this.keys()) yield this.get(o);
|
|
3064
3052
|
}
|
|
3065
3053
|
*entries() {
|
|
3066
|
-
for (const o
|
|
3054
|
+
for (const o of this.keys()) yield [o, this.get(o)];
|
|
3067
3055
|
}
|
|
3068
3056
|
[Symbol.iterator]() {
|
|
3069
3057
|
return this.entries();
|
|
3070
3058
|
}
|
|
3071
3059
|
raw() {
|
|
3072
|
-
return [...this.keys()].reduce((o
|
|
3060
|
+
return [...this.keys()].reduce((o, a) => (o[a] = this.getAll(a), o), {});
|
|
3073
3061
|
}
|
|
3074
3062
|
[Symbol.for("nodejs.util.inspect.custom")]() {
|
|
3075
|
-
return [...this.keys()].reduce((o
|
|
3063
|
+
return [...this.keys()].reduce((o, a) => {
|
|
3076
3064
|
const f$1 = this.getAll(a);
|
|
3077
|
-
return a === "host" ? o
|
|
3065
|
+
return a === "host" ? o[a] = f$1[0] : o[a] = f$1.length > 1 ? f$1 : f$1[0], o;
|
|
3078
3066
|
}, {});
|
|
3079
3067
|
}
|
|
3080
3068
|
};
|
|
@@ -3085,11 +3073,11 @@ Object.defineProperties(ye.prototype, [
|
|
|
3085
3073
|
"entries",
|
|
3086
3074
|
"forEach",
|
|
3087
3075
|
"values"
|
|
3088
|
-
].reduce((i, o
|
|
3076
|
+
].reduce((i, o) => (i[o] = { enumerable: !0 }, i), {}));
|
|
3089
3077
|
function ol(i = []) {
|
|
3090
|
-
return new ye(i.reduce((o
|
|
3078
|
+
return new ye(i.reduce((o, a, f$1, l) => (f$1 % 2 === 0 && o.push(l.slice(f$1, f$1 + 2)), o), []).filter(([o, a]) => {
|
|
3091
3079
|
try {
|
|
3092
|
-
return gr(o
|
|
3080
|
+
return gr(o), Fn(o, String(a)), !0;
|
|
3093
3081
|
} catch {
|
|
3094
3082
|
return !1;
|
|
3095
3083
|
}
|
|
@@ -3103,11 +3091,11 @@ const il = new Set([
|
|
|
3103
3091
|
307,
|
|
3104
3092
|
308
|
|
3105
3093
|
]), jn = n$1((i) => il.has(i), "isRedirect"), se = Symbol("Response internals"), Ne = class Ne$1 extends xe {
|
|
3106
|
-
constructor(o
|
|
3107
|
-
super(o
|
|
3094
|
+
constructor(o = null, a = {}) {
|
|
3095
|
+
super(o, a);
|
|
3108
3096
|
const f$1 = a.status != null ? a.status : 200, l = new ye(a.headers);
|
|
3109
|
-
if (o
|
|
3110
|
-
const p = Ri(o
|
|
3097
|
+
if (o !== null && !l.has("Content-Type")) {
|
|
3098
|
+
const p = Ri(o, this);
|
|
3111
3099
|
p && l.append("Content-Type", p);
|
|
3112
3100
|
}
|
|
3113
3101
|
this[se] = {
|
|
@@ -3157,22 +3145,22 @@ const il = new Set([
|
|
|
3157
3145
|
highWaterMark: this.highWaterMark
|
|
3158
3146
|
});
|
|
3159
3147
|
}
|
|
3160
|
-
static redirect(o
|
|
3148
|
+
static redirect(o, a = 302) {
|
|
3161
3149
|
if (!jn(a)) throw new RangeError("Failed to execute \"redirect\" on \"response\": Invalid status code");
|
|
3162
3150
|
return new Ne$1(null, {
|
|
3163
|
-
headers: { location: new URL(o
|
|
3151
|
+
headers: { location: new URL(o).toString() },
|
|
3164
3152
|
status: a
|
|
3165
3153
|
});
|
|
3166
3154
|
}
|
|
3167
3155
|
static error() {
|
|
3168
|
-
const o
|
|
3156
|
+
const o = new Ne$1(null, {
|
|
3169
3157
|
status: 0,
|
|
3170
3158
|
statusText: ""
|
|
3171
3159
|
});
|
|
3172
|
-
return o
|
|
3160
|
+
return o[se].type = "error", o;
|
|
3173
3161
|
}
|
|
3174
|
-
static json(o
|
|
3175
|
-
const f$1 = JSON.stringify(o
|
|
3162
|
+
static json(o = void 0, a = {}) {
|
|
3163
|
+
const f$1 = JSON.stringify(o);
|
|
3176
3164
|
if (f$1 === void 0) throw new TypeError("data is not JSON serializable");
|
|
3177
3165
|
const l = new ye(a && a.headers);
|
|
3178
3166
|
return l.has("content-type") || l.set("content-type", "application/json"), new Ne$1(f$1, {
|
|
@@ -3198,11 +3186,11 @@ Object.defineProperties(le.prototype, {
|
|
|
3198
3186
|
});
|
|
3199
3187
|
const al = n$1((i) => {
|
|
3200
3188
|
if (i.search) return i.search;
|
|
3201
|
-
const o
|
|
3202
|
-
return i.href[o
|
|
3189
|
+
const o = i.href.length - 1, a = i.hash || (i.href[o] === "#" ? "#" : "");
|
|
3190
|
+
return i.href[o - a.length] === "?" ? "?" : "";
|
|
3203
3191
|
}, "getSearch");
|
|
3204
|
-
function Ti(i, o
|
|
3205
|
-
return i == null || (i = new URL(i), /^(about|blob|data):$/.test(i.protocol)) ? "no-referrer" : (i.username = "", i.password = "", i.hash = "", o
|
|
3192
|
+
function Ti(i, o = !1) {
|
|
3193
|
+
return i == null || (i = new URL(i), /^(about|blob|data):$/.test(i.protocol)) ? "no-referrer" : (i.username = "", i.password = "", i.hash = "", o && (i.pathname = "", i.search = ""), i);
|
|
3206
3194
|
}
|
|
3207
3195
|
n$1(Ti, "stripURLForUseAsAReferrer");
|
|
3208
3196
|
const Ci = new Set([
|
|
@@ -3223,21 +3211,21 @@ function ll(i) {
|
|
|
3223
3211
|
n$1(ll, "validateReferrerPolicy");
|
|
3224
3212
|
function ul(i) {
|
|
3225
3213
|
if (/^(http|ws)s:$/.test(i.protocol)) return !0;
|
|
3226
|
-
const o
|
|
3227
|
-
return a === 4 && /^127\./.test(o
|
|
3214
|
+
const o = i.host.replace(/(^\[)|(]$)/g, ""), a = (0, node_net.isIP)(o);
|
|
3215
|
+
return a === 4 && /^127\./.test(o) || a === 6 && /^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(o) ? !0 : i.host === "localhost" || i.host.endsWith(".localhost") ? !1 : i.protocol === "file:";
|
|
3228
3216
|
}
|
|
3229
3217
|
n$1(ul, "isOriginPotentiallyTrustworthy");
|
|
3230
3218
|
function ct(i) {
|
|
3231
3219
|
return /^about:(blank|srcdoc)$/.test(i) || i.protocol === "data:" || /^(blob|filesystem):$/.test(i.protocol) ? !0 : ul(i);
|
|
3232
3220
|
}
|
|
3233
3221
|
n$1(ct, "isUrlPotentiallyTrustworthy");
|
|
3234
|
-
function fl(i, { referrerURLCallback: o
|
|
3222
|
+
function fl(i, { referrerURLCallback: o, referrerOriginCallback: a } = {}) {
|
|
3235
3223
|
if (i.referrer === "no-referrer" || i.referrerPolicy === "") return null;
|
|
3236
3224
|
const f$1 = i.referrerPolicy;
|
|
3237
3225
|
if (i.referrer === "about:client") return "no-referrer";
|
|
3238
3226
|
const l = i.referrer;
|
|
3239
3227
|
let p = Ti(l), h = Ti(l, !0);
|
|
3240
|
-
p.toString().length > 4096 && (p = h), o
|
|
3228
|
+
p.toString().length > 4096 && (p = h), o && (p = o(p)), a && (h = a(h));
|
|
3241
3229
|
const S = new URL(i.url);
|
|
3242
3230
|
switch (f$1) {
|
|
3243
3231
|
case "no-referrer": return "no-referrer";
|
|
@@ -3253,28 +3241,28 @@ function fl(i, { referrerURLCallback: o$1, referrerOriginCallback: a } = {}) {
|
|
|
3253
3241
|
}
|
|
3254
3242
|
n$1(fl, "determineRequestsReferrer");
|
|
3255
3243
|
function cl(i) {
|
|
3256
|
-
const o
|
|
3244
|
+
const o = (i.get("referrer-policy") || "").split(/[,\s]+/);
|
|
3257
3245
|
let a = "";
|
|
3258
|
-
for (const f$1 of o
|
|
3246
|
+
for (const f$1 of o) f$1 && Ci.has(f$1) && (a = f$1);
|
|
3259
3247
|
return a;
|
|
3260
3248
|
}
|
|
3261
3249
|
n$1(cl, "parseReferrerPolicyFromHeader");
|
|
3262
3250
|
const $ = Symbol("Request internals"), qt = n$1((i) => typeof i == "object" && typeof i[$] == "object", "isRequest"), dl = (0, node_util.deprecate)(() => {}, ".data is not a valid RequestInit property, use .body instead", "https://github.com/node-fetch/node-fetch/issues/1000 (request)"), vr = class vr$1 extends xe {
|
|
3263
|
-
constructor(o
|
|
3251
|
+
constructor(o, a = {}) {
|
|
3264
3252
|
let f$1;
|
|
3265
|
-
if (qt(o
|
|
3266
|
-
let l = a.method || o
|
|
3267
|
-
if (/^(delete|get|head|options|post|put)$/i.test(l) && (l = l.toUpperCase()), !qt(a) && "data" in a && dl(), (a.body != null || qt(o
|
|
3268
|
-
const p = a.body ? a.body : qt(o
|
|
3269
|
-
super(p, { size: a.size || o
|
|
3270
|
-
const h = new ye(a.headers || o
|
|
3253
|
+
if (qt(o) ? f$1 = new URL(o.url) : (f$1 = new URL(o), o = {}), f$1.username !== "" || f$1.password !== "") throw new TypeError(`${f$1} is an url with embedded credentials.`);
|
|
3254
|
+
let l = a.method || o.method || "GET";
|
|
3255
|
+
if (/^(delete|get|head|options|post|put)$/i.test(l) && (l = l.toUpperCase()), !qt(a) && "data" in a && dl(), (a.body != null || qt(o) && o.body !== null) && (l === "GET" || l === "HEAD")) throw new TypeError("Request with GET/HEAD method cannot have body");
|
|
3256
|
+
const p = a.body ? a.body : qt(o) && o.body !== null ? In(o) : null;
|
|
3257
|
+
super(p, { size: a.size || o.size || 0 });
|
|
3258
|
+
const h = new ye(a.headers || o.headers || {});
|
|
3271
3259
|
if (p !== null && !h.has("Content-Type")) {
|
|
3272
3260
|
const w = Ri(p, this);
|
|
3273
3261
|
w && h.set("Content-Type", w);
|
|
3274
3262
|
}
|
|
3275
|
-
let S = qt(o
|
|
3263
|
+
let S = qt(o) ? o.signal : null;
|
|
3276
3264
|
if ("signal" in a && (S = a.signal), S != null && !Ks(S)) throw new TypeError("Expected signal to be an instanceof AbortSignal or EventTarget");
|
|
3277
|
-
let v = a.referrer == null ? o
|
|
3265
|
+
let v = a.referrer == null ? o.referrer : a.referrer;
|
|
3278
3266
|
if (v === "") v = "no-referrer";
|
|
3279
3267
|
else if (v) {
|
|
3280
3268
|
const w = new URL(v);
|
|
@@ -3282,12 +3270,12 @@ const $ = Symbol("Request internals"), qt = n$1((i) => typeof i == "object" && t
|
|
|
3282
3270
|
} else v = void 0;
|
|
3283
3271
|
this[$] = {
|
|
3284
3272
|
method: l,
|
|
3285
|
-
redirect: a.redirect || o
|
|
3273
|
+
redirect: a.redirect || o.redirect || "follow",
|
|
3286
3274
|
headers: h,
|
|
3287
3275
|
parsedURL: f$1,
|
|
3288
3276
|
signal: S,
|
|
3289
3277
|
referrer: v
|
|
3290
|
-
}, this.follow = a.follow === void 0 ? o
|
|
3278
|
+
}, this.follow = a.follow === void 0 ? o.follow === void 0 ? 20 : o.follow : a.follow, this.compress = a.compress === void 0 ? o.compress === void 0 ? !0 : o.compress : a.compress, this.counter = a.counter || o.counter || 0, this.agent = a.agent || o.agent, this.highWaterMark = a.highWaterMark || o.highWaterMark || 16384, this.insecureHTTPParser = a.insecureHTTPParser || o.insecureHTTPParser || !1, this.referrerPolicy = a.referrerPolicy || o.referrerPolicy || "";
|
|
3291
3279
|
}
|
|
3292
3280
|
get method() {
|
|
3293
3281
|
return this[$].method;
|
|
@@ -3312,8 +3300,8 @@ const $ = Symbol("Request internals"), qt = n$1((i) => typeof i == "object" && t
|
|
|
3312
3300
|
get referrerPolicy() {
|
|
3313
3301
|
return this[$].referrerPolicy;
|
|
3314
3302
|
}
|
|
3315
|
-
set referrerPolicy(o
|
|
3316
|
-
this[$].referrerPolicy = ll(o
|
|
3303
|
+
set referrerPolicy(o) {
|
|
3304
|
+
this[$].referrerPolicy = ll(o);
|
|
3317
3305
|
}
|
|
3318
3306
|
clone() {
|
|
3319
3307
|
return new vr$1(this);
|
|
@@ -3335,7 +3323,7 @@ Object.defineProperties(dt.prototype, {
|
|
|
3335
3323
|
referrerPolicy: { enumerable: !0 }
|
|
3336
3324
|
});
|
|
3337
3325
|
const hl = n$1((i) => {
|
|
3338
|
-
const { parsedURL: o
|
|
3326
|
+
const { parsedURL: o } = i[$], a = new ye(i[$].headers);
|
|
3339
3327
|
a.has("Accept") || a.set("Accept", "*/*");
|
|
3340
3328
|
let f$1 = null;
|
|
3341
3329
|
if (i.body === null && /^(post|put)$/i.test(i.method) && (f$1 = "0"), i.body !== null) {
|
|
@@ -3344,12 +3332,12 @@ const hl = n$1((i) => {
|
|
|
3344
3332
|
}
|
|
3345
3333
|
f$1 && a.set("Content-Length", f$1), i.referrerPolicy === "" && (i.referrerPolicy = sl), i.referrer && i.referrer !== "no-referrer" ? i[$].referrer = fl(i) : i[$].referrer = "no-referrer", i[$].referrer instanceof URL && a.set("Referer", i.referrer), a.has("User-Agent") || a.set("User-Agent", "node-fetch"), i.compress && !a.has("Accept-Encoding") && a.set("Accept-Encoding", "gzip, deflate, br");
|
|
3346
3334
|
let { agent: l } = i;
|
|
3347
|
-
typeof l == "function" && (l = l(o
|
|
3348
|
-
const p = al(o
|
|
3335
|
+
typeof l == "function" && (l = l(o));
|
|
3336
|
+
const p = al(o);
|
|
3349
3337
|
return {
|
|
3350
|
-
parsedURL: o
|
|
3338
|
+
parsedURL: o,
|
|
3351
3339
|
options: {
|
|
3352
|
-
path: o
|
|
3340
|
+
path: o.pathname + p,
|
|
3353
3341
|
method: i.method,
|
|
3354
3342
|
headers: a[Symbol.for("nodejs.util.inspect.custom")](),
|
|
3355
3343
|
insecureHTTPParser: i.insecureHTTPParser,
|
|
@@ -3357,8 +3345,8 @@ const hl = n$1((i) => {
|
|
|
3357
3345
|
}
|
|
3358
3346
|
};
|
|
3359
3347
|
}, "getNodeRequestOptions"), Hn = class Hn$1 extends ft {
|
|
3360
|
-
constructor(o
|
|
3361
|
-
super(o
|
|
3348
|
+
constructor(o, a = "aborted") {
|
|
3349
|
+
super(o, a);
|
|
3362
3350
|
}
|
|
3363
3351
|
};
|
|
3364
3352
|
n$1(Hn, "AbortError");
|
|
@@ -3367,44 +3355,44 @@ let _r = Hn;
|
|
|
3367
3355
|
function pl() {
|
|
3368
3356
|
if (Pi) return Ln;
|
|
3369
3357
|
if (Pi = 1, !globalThis.DOMException) try {
|
|
3370
|
-
const { MessageChannel: i } = require("node:worker_threads"), o
|
|
3371
|
-
o
|
|
3358
|
+
const { MessageChannel: i } = require("node:worker_threads"), o = new i().port1, a = /* @__PURE__ */ new ArrayBuffer();
|
|
3359
|
+
o.postMessage(a, [a, a]);
|
|
3372
3360
|
} catch (i) {
|
|
3373
3361
|
i.constructor.name === "DOMException" && (globalThis.DOMException = i.constructor);
|
|
3374
3362
|
}
|
|
3375
3363
|
return Ln = globalThis.DOMException, Ln;
|
|
3376
3364
|
}
|
|
3377
3365
|
n$1(pl, "requireNodeDomexception");
|
|
3378
|
-
const ml = f(pl()), { stat: $n } = node_fs.promises, yl = n$1((i, o
|
|
3379
|
-
path: o
|
|
3366
|
+
const ml = require_node_fetch_native_DfbY2q_x.f(pl()), { stat: $n } = node_fs.promises, yl = n$1((i, o) => vi((0, node_fs.statSync)(i), i, o), "blobFromSync"), gl = n$1((i, o) => $n(i).then((a) => vi(a, i, o)), "blobFrom"), _l = n$1((i, o) => $n(i).then((a) => Ei(a, i, o)), "fileFrom"), Sl = n$1((i, o) => Ei((0, node_fs.statSync)(i), i, o), "fileFromSync"), vi = n$1((i, o, a = "") => new ut([new Sr({
|
|
3367
|
+
path: o,
|
|
3380
3368
|
size: i.size,
|
|
3381
3369
|
lastModified: i.mtimeMs,
|
|
3382
3370
|
start: 0
|
|
3383
|
-
})], { type: a }), "fromBlob"), Ei = n$1((i, o
|
|
3384
|
-
path: o
|
|
3371
|
+
})], { type: a }), "fromBlob"), Ei = n$1((i, o, a = "") => new qn([new Sr({
|
|
3372
|
+
path: o,
|
|
3385
3373
|
size: i.size,
|
|
3386
3374
|
lastModified: i.mtimeMs,
|
|
3387
3375
|
start: 0
|
|
3388
|
-
})], (0, node_path.basename)(o
|
|
3376
|
+
})], (0, node_path.basename)(o), {
|
|
3389
3377
|
type: a,
|
|
3390
3378
|
lastModified: i.mtimeMs
|
|
3391
3379
|
}), "fromFile"), Er = class Er$1 {
|
|
3392
|
-
constructor(o
|
|
3380
|
+
constructor(o) {
|
|
3393
3381
|
be(this, He);
|
|
3394
3382
|
be(this, Ve);
|
|
3395
|
-
X(this, He, o
|
|
3383
|
+
X(this, He, o.path), X(this, Ve, o.start), this.size = o.size, this.lastModified = o.lastModified;
|
|
3396
3384
|
}
|
|
3397
|
-
slice(o
|
|
3385
|
+
slice(o, a) {
|
|
3398
3386
|
return new Er$1({
|
|
3399
3387
|
path: O(this, He),
|
|
3400
3388
|
lastModified: this.lastModified,
|
|
3401
|
-
size: a - o
|
|
3402
|
-
start: O(this, Ve) + o
|
|
3389
|
+
size: a - o,
|
|
3390
|
+
start: O(this, Ve) + o
|
|
3403
3391
|
});
|
|
3404
3392
|
}
|
|
3405
3393
|
async *stream() {
|
|
3406
|
-
const { mtimeMs: o
|
|
3407
|
-
if (o
|
|
3394
|
+
const { mtimeMs: o } = await $n(O(this, He));
|
|
3395
|
+
if (o > this.lastModified) throw new ml("The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.", "NotReadableError");
|
|
3408
3396
|
yield* (0, node_fs.createReadStream)(O(this, He), {
|
|
3409
3397
|
start: O(this, Ve),
|
|
3410
3398
|
end: O(this, Ve) + this.size - 1
|
|
@@ -3421,9 +3409,9 @@ const wl = new Set([
|
|
|
3421
3409
|
"http:",
|
|
3422
3410
|
"https:"
|
|
3423
3411
|
]);
|
|
3424
|
-
async function Ai(i, o
|
|
3412
|
+
async function Ai(i, o) {
|
|
3425
3413
|
return new Promise((a, f$1) => {
|
|
3426
|
-
const l = new dt(i, o
|
|
3414
|
+
const l = new dt(i, o), { parsedURL: p, options: h } = hl(l);
|
|
3427
3415
|
if (!wl.has(p.protocol)) throw new TypeError(`node-fetch cannot load ${i}. URL scheme "${p.protocol.replace(/:$/, "")}" is not supported.`);
|
|
3428
3416
|
if (p.protocol === "data:") {
|
|
3429
3417
|
const g = Us(l.url);
|
|
@@ -3505,7 +3493,7 @@ async function Ai(i, o$1) {
|
|
|
3505
3493
|
"cookie",
|
|
3506
3494
|
"cookie2"
|
|
3507
3495
|
]) U.headers.delete(jt);
|
|
3508
|
-
if (g.statusCode !== 303 && l.body && o
|
|
3496
|
+
if (g.statusCode !== 303 && l.body && o.body instanceof node_stream.default.Readable) {
|
|
3509
3497
|
f$1(new G("Cannot follow redirect with body being a readable stream", "unsupported-redirect")), q();
|
|
3510
3498
|
return;
|
|
3511
3499
|
}
|
|
@@ -3573,7 +3561,7 @@ async function Ai(i, o$1) {
|
|
|
3573
3561
|
});
|
|
3574
3562
|
}
|
|
3575
3563
|
n$1(Ai, "fetch$1");
|
|
3576
|
-
function Rl(i, o
|
|
3564
|
+
function Rl(i, o) {
|
|
3577
3565
|
const a = node_buffer.Buffer.from(`0\r
|
|
3578
3566
|
\r
|
|
3579
3567
|
`);
|
|
@@ -3585,7 +3573,7 @@ function Rl(i, o$1) {
|
|
|
3585
3573
|
const S = n$1(() => {
|
|
3586
3574
|
if (f$1 && !l) {
|
|
3587
3575
|
const w = /* @__PURE__ */ new Error("Premature close");
|
|
3588
|
-
w.code = "ERR_STREAM_PREMATURE_CLOSE", o
|
|
3576
|
+
w.code = "ERR_STREAM_PREMATURE_CLOSE", o(w);
|
|
3589
3577
|
}
|
|
3590
3578
|
}, "onSocketClose"), v = n$1((w) => {
|
|
3591
3579
|
l = node_buffer.Buffer.compare(w.slice(-5), a) === 0, !l && p && (l = node_buffer.Buffer.compare(p.slice(-3), a.slice(0, 3)) === 0 && node_buffer.Buffer.compare(w.slice(-2), a.slice(3)) === 0), p = w;
|
|
@@ -3598,8 +3586,8 @@ function Rl(i, o$1) {
|
|
|
3598
3586
|
n$1(Rl, "fixResponseChunkedTransferBadEnding");
|
|
3599
3587
|
const Bi = /* @__PURE__ */ new WeakMap(), Dn = /* @__PURE__ */ new WeakMap();
|
|
3600
3588
|
function W(i) {
|
|
3601
|
-
const o
|
|
3602
|
-
return console.assert(o
|
|
3589
|
+
const o = Bi.get(i);
|
|
3590
|
+
return console.assert(o != null, "'this' is expected an Event object, but got", i), o;
|
|
3603
3591
|
}
|
|
3604
3592
|
n$1(W, "pd");
|
|
3605
3593
|
function ki(i) {
|
|
@@ -3610,22 +3598,22 @@ function ki(i) {
|
|
|
3610
3598
|
i.event.cancelable && (i.canceled = !0, typeof i.event.preventDefault == "function" && i.event.preventDefault());
|
|
3611
3599
|
}
|
|
3612
3600
|
n$1(ki, "setCancelFlag");
|
|
3613
|
-
function ht(i, o
|
|
3601
|
+
function ht(i, o) {
|
|
3614
3602
|
Bi.set(this, {
|
|
3615
3603
|
eventTarget: i,
|
|
3616
|
-
event: o
|
|
3604
|
+
event: o,
|
|
3617
3605
|
eventPhase: 2,
|
|
3618
3606
|
currentTarget: i,
|
|
3619
3607
|
canceled: !1,
|
|
3620
3608
|
stopped: !1,
|
|
3621
3609
|
immediateStopped: !1,
|
|
3622
3610
|
passiveListener: null,
|
|
3623
|
-
timeStamp: o
|
|
3611
|
+
timeStamp: o.timeStamp || Date.now()
|
|
3624
3612
|
}), Object.defineProperty(this, "isTrusted", {
|
|
3625
3613
|
value: !1,
|
|
3626
3614
|
enumerable: !0
|
|
3627
3615
|
});
|
|
3628
|
-
const a = Object.keys(o
|
|
3616
|
+
const a = Object.keys(o);
|
|
3629
3617
|
for (let f$1 = 0; f$1 < a.length; ++f$1) {
|
|
3630
3618
|
const l = a[f$1];
|
|
3631
3619
|
l in this || Object.defineProperty(this, l, Wi(l));
|
|
@@ -3694,8 +3682,8 @@ n$1(ht, "Event"), ht.prototype = {
|
|
|
3694
3682
|
},
|
|
3695
3683
|
set cancelBubble(i) {
|
|
3696
3684
|
if (!i) return;
|
|
3697
|
-
const o
|
|
3698
|
-
o
|
|
3685
|
+
const o = W(this);
|
|
3686
|
+
o.stopped = !0, typeof o.event.cancelBubble == "boolean" && (o.event.cancelBubble = !0);
|
|
3699
3687
|
},
|
|
3700
3688
|
get returnValue() {
|
|
3701
3689
|
return !W(this).canceled;
|
|
@@ -3714,8 +3702,8 @@ function Wi(i) {
|
|
|
3714
3702
|
get() {
|
|
3715
3703
|
return W(this).event[i];
|
|
3716
3704
|
},
|
|
3717
|
-
set(o
|
|
3718
|
-
W(this).event[i] = o
|
|
3705
|
+
set(o) {
|
|
3706
|
+
W(this).event[i] = o;
|
|
3719
3707
|
},
|
|
3720
3708
|
configurable: !0,
|
|
3721
3709
|
enumerable: !0
|
|
@@ -3725,16 +3713,16 @@ n$1(Wi, "defineRedirectDescriptor");
|
|
|
3725
3713
|
function Tl(i) {
|
|
3726
3714
|
return {
|
|
3727
3715
|
value() {
|
|
3728
|
-
const o
|
|
3729
|
-
return o
|
|
3716
|
+
const o = W(this).event;
|
|
3717
|
+
return o[i].apply(o, arguments);
|
|
3730
3718
|
},
|
|
3731
3719
|
configurable: !0,
|
|
3732
3720
|
enumerable: !0
|
|
3733
3721
|
};
|
|
3734
3722
|
}
|
|
3735
3723
|
n$1(Tl, "defineCallDescriptor");
|
|
3736
|
-
function Cl(i, o
|
|
3737
|
-
const a = Object.keys(o
|
|
3724
|
+
function Cl(i, o) {
|
|
3725
|
+
const a = Object.keys(o);
|
|
3738
3726
|
if (a.length === 0) return i;
|
|
3739
3727
|
function f$1(l, p) {
|
|
3740
3728
|
i.call(this, l, p);
|
|
@@ -3747,7 +3735,7 @@ function Cl(i, o$1) {
|
|
|
3747
3735
|
for (let l = 0; l < a.length; ++l) {
|
|
3748
3736
|
const p = a[l];
|
|
3749
3737
|
if (!(p in i.prototype)) {
|
|
3750
|
-
const S = typeof Object.getOwnPropertyDescriptor(o
|
|
3738
|
+
const S = typeof Object.getOwnPropertyDescriptor(o, p).value == "function";
|
|
3751
3739
|
Object.defineProperty(f$1.prototype, p, S ? Tl(p) : Wi(p));
|
|
3752
3740
|
}
|
|
3753
3741
|
}
|
|
@@ -3756,28 +3744,28 @@ function Cl(i, o$1) {
|
|
|
3756
3744
|
n$1(Cl, "defineWrapper");
|
|
3757
3745
|
function qi(i) {
|
|
3758
3746
|
if (i == null || i === Object.prototype) return ht;
|
|
3759
|
-
let o
|
|
3760
|
-
return o
|
|
3747
|
+
let o = Dn.get(i);
|
|
3748
|
+
return o ?? (o = Cl(qi(Object.getPrototypeOf(i)), i), Dn.set(i, o)), o;
|
|
3761
3749
|
}
|
|
3762
3750
|
n$1(qi, "getWrapper");
|
|
3763
|
-
function Pl(i, o
|
|
3764
|
-
return new (qi(Object.getPrototypeOf(o
|
|
3751
|
+
function Pl(i, o) {
|
|
3752
|
+
return new (qi(Object.getPrototypeOf(o)))(i, o);
|
|
3765
3753
|
}
|
|
3766
3754
|
n$1(Pl, "wrapEvent");
|
|
3767
3755
|
function vl(i) {
|
|
3768
3756
|
return W(i).immediateStopped;
|
|
3769
3757
|
}
|
|
3770
3758
|
n$1(vl, "isStopped");
|
|
3771
|
-
function El(i, o
|
|
3772
|
-
W(i).eventPhase = o
|
|
3759
|
+
function El(i, o) {
|
|
3760
|
+
W(i).eventPhase = o;
|
|
3773
3761
|
}
|
|
3774
3762
|
n$1(El, "setEventPhase");
|
|
3775
|
-
function Al(i, o
|
|
3776
|
-
W(i).currentTarget = o
|
|
3763
|
+
function Al(i, o) {
|
|
3764
|
+
W(i).currentTarget = o;
|
|
3777
3765
|
}
|
|
3778
3766
|
n$1(Al, "setCurrentTarget");
|
|
3779
|
-
function Oi(i, o
|
|
3780
|
-
W(i).passiveListener = o
|
|
3767
|
+
function Oi(i, o) {
|
|
3768
|
+
W(i).passiveListener = o;
|
|
3781
3769
|
}
|
|
3782
3770
|
n$1(Oi, "setPassiveListener");
|
|
3783
3771
|
const zi = /* @__PURE__ */ new WeakMap(), Ii = 1, Fi = 2, wr = 3;
|
|
@@ -3786,9 +3774,9 @@ function Rr(i) {
|
|
|
3786
3774
|
}
|
|
3787
3775
|
n$1(Rr, "isObject");
|
|
3788
3776
|
function Ot(i) {
|
|
3789
|
-
const o
|
|
3790
|
-
if (o
|
|
3791
|
-
return o
|
|
3777
|
+
const o = zi.get(i);
|
|
3778
|
+
if (o == null) throw new TypeError("'this' is expected an EventTarget object, but got another value.");
|
|
3779
|
+
return o;
|
|
3792
3780
|
}
|
|
3793
3781
|
n$1(Ot, "getListeners");
|
|
3794
3782
|
function Bl(i) {
|
|
@@ -3801,14 +3789,14 @@ function Bl(i) {
|
|
|
3801
3789
|
}
|
|
3802
3790
|
return null;
|
|
3803
3791
|
},
|
|
3804
|
-
set(o
|
|
3805
|
-
typeof o
|
|
3792
|
+
set(o) {
|
|
3793
|
+
typeof o != "function" && !Rr(o) && (o = null);
|
|
3806
3794
|
const a = Ot(this);
|
|
3807
3795
|
let f$1 = null, l = a.get(i);
|
|
3808
3796
|
for (; l != null;) l.listenerType === wr ? f$1 !== null ? f$1.next = l.next : l.next !== null ? a.set(i, l.next) : a.delete(i) : f$1 = l, l = l.next;
|
|
3809
|
-
if (o
|
|
3797
|
+
if (o !== null) {
|
|
3810
3798
|
const p = {
|
|
3811
|
-
listener: o
|
|
3799
|
+
listener: o,
|
|
3812
3800
|
listenerType: wr,
|
|
3813
3801
|
passive: !1,
|
|
3814
3802
|
once: !1,
|
|
@@ -3822,21 +3810,21 @@ function Bl(i) {
|
|
|
3822
3810
|
};
|
|
3823
3811
|
}
|
|
3824
3812
|
n$1(Bl, "defineEventAttributeDescriptor");
|
|
3825
|
-
function ji(i, o
|
|
3826
|
-
Object.defineProperty(i, `on${o
|
|
3813
|
+
function ji(i, o) {
|
|
3814
|
+
Object.defineProperty(i, `on${o}`, Bl(o));
|
|
3827
3815
|
}
|
|
3828
3816
|
n$1(ji, "defineEventAttribute");
|
|
3829
3817
|
function Li(i) {
|
|
3830
|
-
function o
|
|
3818
|
+
function o() {
|
|
3831
3819
|
Pe.call(this);
|
|
3832
3820
|
}
|
|
3833
|
-
n$1(o
|
|
3834
|
-
value: o
|
|
3821
|
+
n$1(o, "CustomEventTarget"), o.prototype = Object.create(Pe.prototype, { constructor: {
|
|
3822
|
+
value: o,
|
|
3835
3823
|
configurable: !0,
|
|
3836
3824
|
writable: !0
|
|
3837
3825
|
} });
|
|
3838
|
-
for (let a = 0; a < i.length; ++a) ji(o
|
|
3839
|
-
return o
|
|
3826
|
+
for (let a = 0; a < i.length; ++a) ji(o.prototype, i[a]);
|
|
3827
|
+
return o;
|
|
3840
3828
|
}
|
|
3841
3829
|
n$1(Li, "defineCustomEventTarget");
|
|
3842
3830
|
function Pe() {
|
|
@@ -3847,17 +3835,17 @@ function Pe() {
|
|
|
3847
3835
|
if (arguments.length === 1 && Array.isArray(arguments[0])) return Li(arguments[0]);
|
|
3848
3836
|
if (arguments.length > 0) {
|
|
3849
3837
|
const i = new Array(arguments.length);
|
|
3850
|
-
for (let o
|
|
3838
|
+
for (let o = 0; o < arguments.length; ++o) i[o] = arguments[o];
|
|
3851
3839
|
return Li(i);
|
|
3852
3840
|
}
|
|
3853
3841
|
throw new TypeError("Cannot call a class as a function");
|
|
3854
3842
|
}
|
|
3855
3843
|
n$1(Pe, "EventTarget"), Pe.prototype = {
|
|
3856
|
-
addEventListener(i, o
|
|
3857
|
-
if (o
|
|
3858
|
-
if (typeof o
|
|
3844
|
+
addEventListener(i, o, a) {
|
|
3845
|
+
if (o == null) return;
|
|
3846
|
+
if (typeof o != "function" && !Rr(o)) throw new TypeError("'listener' should be a function or an object.");
|
|
3859
3847
|
const f$1 = Ot(this), l = Rr(a), h = (l ? !!a.capture : !!a) ? Ii : Fi, S = {
|
|
3860
|
-
listener: o
|
|
3848
|
+
listener: o,
|
|
3861
3849
|
listenerType: h,
|
|
3862
3850
|
passive: l && !!a.passive,
|
|
3863
3851
|
once: l && !!a.once,
|
|
@@ -3870,17 +3858,17 @@ n$1(Pe, "EventTarget"), Pe.prototype = {
|
|
|
3870
3858
|
}
|
|
3871
3859
|
let w = null;
|
|
3872
3860
|
for (; v != null;) {
|
|
3873
|
-
if (v.listener === o
|
|
3861
|
+
if (v.listener === o && v.listenerType === h) return;
|
|
3874
3862
|
w = v, v = v.next;
|
|
3875
3863
|
}
|
|
3876
3864
|
w.next = S;
|
|
3877
3865
|
},
|
|
3878
|
-
removeEventListener(i, o
|
|
3879
|
-
if (o
|
|
3866
|
+
removeEventListener(i, o, a) {
|
|
3867
|
+
if (o == null) return;
|
|
3880
3868
|
const f$1 = Ot(this), p = (Rr(a) ? !!a.capture : !!a) ? Ii : Fi;
|
|
3881
3869
|
let h = null, S = f$1.get(i);
|
|
3882
3870
|
for (; S != null;) {
|
|
3883
|
-
if (S.listener === o
|
|
3871
|
+
if (S.listener === o && S.listenerType === p) {
|
|
3884
3872
|
h !== null ? h.next = S.next : S.next !== null ? f$1.set(i, S.next) : f$1.delete(i);
|
|
3885
3873
|
return;
|
|
3886
3874
|
}
|
|
@@ -3889,13 +3877,13 @@ n$1(Pe, "EventTarget"), Pe.prototype = {
|
|
|
3889
3877
|
},
|
|
3890
3878
|
dispatchEvent(i) {
|
|
3891
3879
|
if (i == null || typeof i.type != "string") throw new TypeError("\"event.type\" should be a string.");
|
|
3892
|
-
const o
|
|
3893
|
-
let f$1 = o
|
|
3880
|
+
const o = Ot(this), a = i.type;
|
|
3881
|
+
let f$1 = o.get(a);
|
|
3894
3882
|
if (f$1 == null) return !0;
|
|
3895
3883
|
const l = Pl(this, i);
|
|
3896
3884
|
let p = null;
|
|
3897
3885
|
for (; f$1 != null;) {
|
|
3898
|
-
if (f$1.once ? p !== null ? p.next = f$1.next : f$1.next !== null ? o
|
|
3886
|
+
if (f$1.once ? p !== null ? p.next = f$1.next : f$1.next !== null ? o.set(a, f$1.next) : o.delete(a) : p = f$1, Oi(l, f$1.passive ? f$1.listener : null), typeof f$1.listener == "function") try {
|
|
3899
3887
|
f$1.listener.call(this, l);
|
|
3900
3888
|
} catch (h) {
|
|
3901
3889
|
typeof console < "u" && typeof console.error == "function" && console.error(h);
|
|
@@ -3916,9 +3904,9 @@ const Vn = class Vn$1 extends Pe {
|
|
|
3916
3904
|
throw super(), /* @__PURE__ */ new TypeError("AbortSignal cannot be constructed directly");
|
|
3917
3905
|
}
|
|
3918
3906
|
get aborted() {
|
|
3919
|
-
const o
|
|
3920
|
-
if (typeof o
|
|
3921
|
-
return o
|
|
3907
|
+
const o = Tr.get(this);
|
|
3908
|
+
if (typeof o != "boolean") throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this === null ? "null" : typeof this}`);
|
|
3909
|
+
return o;
|
|
3922
3910
|
}
|
|
3923
3911
|
};
|
|
3924
3912
|
n$1(Vn, "AbortSignal");
|
|
@@ -3951,9 +3939,9 @@ let Mn = (gt = class {
|
|
|
3951
3939
|
}, n$1(gt, "AbortController"), gt);
|
|
3952
3940
|
const $i = /* @__PURE__ */ new WeakMap();
|
|
3953
3941
|
function Di(i) {
|
|
3954
|
-
const o
|
|
3955
|
-
if (o
|
|
3956
|
-
return o
|
|
3942
|
+
const o = $i.get(i);
|
|
3943
|
+
if (o == null) throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${i === null ? "null" : typeof i}`);
|
|
3944
|
+
return o;
|
|
3957
3945
|
}
|
|
3958
3946
|
n$1(Di, "getSignal"), Object.defineProperties(Mn.prototype, {
|
|
3959
3947
|
signal: { enumerable: !0 },
|
|
@@ -3962,8 +3950,8 @@ n$1(Di, "getSignal"), Object.defineProperties(Mn.prototype, {
|
|
|
3962
3950
|
configurable: !0,
|
|
3963
3951
|
value: "AbortController"
|
|
3964
3952
|
});
|
|
3965
|
-
var ql = Object.defineProperty, Ol = n$1((i, o
|
|
3966
|
-
value: o
|
|
3953
|
+
var ql = Object.defineProperty, Ol = n$1((i, o) => ql(i, "name", {
|
|
3954
|
+
value: o,
|
|
3967
3955
|
configurable: !0
|
|
3968
3956
|
}), "e");
|
|
3969
3957
|
const Mi = Ai;
|
|
@@ -3974,51 +3962,14 @@ function Ui() {
|
|
|
3974
3962
|
n$1(Ui, "s"), Ol(Ui, "checkNodeEnvironment");
|
|
3975
3963
|
|
|
3976
3964
|
//#endregion
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
});
|
|
3989
|
-
Object.defineProperty(exports, 'br', {
|
|
3990
|
-
enumerable: true,
|
|
3991
|
-
get: function () {
|
|
3992
|
-
return br;
|
|
3993
|
-
}
|
|
3994
|
-
});
|
|
3995
|
-
Object.defineProperty(exports, 'dt', {
|
|
3996
|
-
enumerable: true,
|
|
3997
|
-
get: function () {
|
|
3998
|
-
return dt;
|
|
3999
|
-
}
|
|
4000
|
-
});
|
|
4001
|
-
Object.defineProperty(exports, 'le', {
|
|
4002
|
-
enumerable: true,
|
|
4003
|
-
get: function () {
|
|
4004
|
-
return le;
|
|
4005
|
-
}
|
|
4006
|
-
});
|
|
4007
|
-
Object.defineProperty(exports, 'qn', {
|
|
4008
|
-
enumerable: true,
|
|
4009
|
-
get: function () {
|
|
4010
|
-
return qn;
|
|
4011
|
-
}
|
|
4012
|
-
});
|
|
4013
|
-
Object.defineProperty(exports, 'ut', {
|
|
4014
|
-
enumerable: true,
|
|
4015
|
-
get: function () {
|
|
4016
|
-
return ut;
|
|
4017
|
-
}
|
|
4018
|
-
});
|
|
4019
|
-
Object.defineProperty(exports, 'ye', {
|
|
4020
|
-
enumerable: true,
|
|
4021
|
-
get: function () {
|
|
4022
|
-
return ye;
|
|
4023
|
-
}
|
|
4024
|
-
});
|
|
3965
|
+
exports.G = G;
|
|
3966
|
+
exports.Mi = Mi;
|
|
3967
|
+
exports.Mn = Mn;
|
|
3968
|
+
exports._r = _r;
|
|
3969
|
+
exports.br = br;
|
|
3970
|
+
exports.dt = dt;
|
|
3971
|
+
exports.jn = jn;
|
|
3972
|
+
exports.le = le;
|
|
3973
|
+
exports.qn = qn;
|
|
3974
|
+
exports.ut = ut;
|
|
3975
|
+
exports.ye = ye;
|