@unocss/language-server 66.6.6 → 66.6.8

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.
@@ -1,4 +1,4 @@
1
- import { n as __require } from "./chunk-C9ebiww4.mjs";
1
+ import { n as __require } from "./chunk-CBBoxR_p.mjs";
2
2
  import { createReadStream, promises, statSync } from "node:fs";
3
3
  import { basename } from "node:path";
4
4
  import { deprecate, promisify, types } from "node:util";
@@ -9,7 +9,6 @@ import https from "node:https";
9
9
  import st from "node:zlib";
10
10
  import { Buffer as Buffer$1 } from "node:buffer";
11
11
  import { isIP } from "node:net";
12
-
13
12
  //#region ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DfbY2q-x.mjs
14
13
  var t = Object.defineProperty;
15
14
  var o = (e, l) => t(e, "name", {
@@ -21,33 +20,32 @@ function f(e) {
21
20
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
22
21
  }
23
22
  o(f, "getDefaultExportFromCjs");
24
-
25
23
  //#endregion
26
24
  //#region ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs
27
25
  var Os = Object.defineProperty;
28
26
  var fi = (i) => {
29
27
  throw TypeError(i);
30
28
  };
31
- var n = (i, o$1) => Os(i, "name", {
32
- value: o$1,
29
+ var n = (i, o) => Os(i, "name", {
30
+ value: o,
33
31
  configurable: !0
34
32
  });
35
- var ci = (i, o$1, a) => o$1.has(i) || fi("Cannot " + a);
36
- var O = (i, o$1, a) => (ci(i, o$1, "read from private field"), a ? a.call(i) : o$1.get(i)), be = (i, o$1, a) => o$1.has(i) ? fi("Cannot add the same private member more than once") : o$1 instanceof WeakSet ? o$1.add(i) : o$1.set(i, a), X = (i, o$1, a, f$1) => (ci(i, o$1, "write to private field"), f$1 ? f$1.call(i, a) : o$1.set(i, a), a);
33
+ var ci = (i, o, a) => o.has(i) || fi("Cannot " + a);
34
+ 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) => (ci(i, o, "write to private field"), f ? f.call(i, a) : o.set(i, a), a);
37
35
  var ve, zt, bt, Cr, ze, It, Ft, mt, ee, yt, He, Ve, gt;
38
36
  function Us(i) {
39
37
  if (!/^data:/i.test(i)) throw new TypeError("`uri` does not appear to be a Data URI (must begin with \"data:\")");
40
38
  i = i.replace(/\r?\n/g, "");
41
- const o$1 = i.indexOf(",");
42
- if (o$1 === -1 || o$1 <= 4) throw new TypeError("malformed data: URI");
43
- const a = i.substring(5, o$1).split(";");
44
- let f$1 = "", l = !1;
39
+ const o = i.indexOf(",");
40
+ if (o === -1 || o <= 4) throw new TypeError("malformed data: URI");
41
+ const a = i.substring(5, o).split(";");
42
+ let f = "", l = !1;
45
43
  const p = a[0] || "text/plain";
46
44
  let h = p;
47
- 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)));
48
- !a[0] && !f$1.length && (h += ";charset=US-ASCII", f$1 = "US-ASCII");
49
- const S = l ? "base64" : "ascii", v = unescape(i.substring(o$1 + 1)), w = Buffer.from(v, S);
50
- return w.type = p, w.typeFull = h, w.charset = f$1, w;
45
+ for (let A = 1; A < a.length; A++) a[A] === "base64" ? l = !0 : a[A] && (h += `;${a[A]}`, a[A].indexOf("charset=") === 0 && (f = a[A].substring(8)));
46
+ !a[0] && !f.length && (h += ";charset=US-ASCII", f = "US-ASCII");
47
+ const S = l ? "base64" : "ascii", v = unescape(i.substring(o + 1)), w = Buffer.from(v, S);
48
+ return w.type = p, w.typeFull = h, w.charset = f, w;
51
49
  }
52
50
  n(Us, "dataUriToBuffer");
53
51
  var pi = {}, kt = { exports: {} };
@@ -59,21 +57,21 @@ var pi = {}, kt = { exports: {} };
59
57
  * SPDX-License-Identifier: MIT
60
58
  */ var xs = kt.exports, bi;
61
59
  function Ns() {
62
- return bi || (bi = 1, function(i, o$1) {
63
- (function(a, f$1) {
64
- f$1(o$1);
60
+ return bi || (bi = 1, function(i, o) {
61
+ (function(a, f) {
62
+ f(o);
65
63
  })(xs, function(a) {
66
- function f$1() {}
67
- n(f$1, "noop");
64
+ function f() {}
65
+ n(f, "noop");
68
66
  function l(e) {
69
67
  return typeof e == "object" && e !== null || typeof e == "function";
70
68
  }
71
69
  n(l, "typeIsObject");
72
- const p = f$1;
73
- function h(e, t$1) {
70
+ const p = f;
71
+ function h(e, t) {
74
72
  try {
75
73
  Object.defineProperty(e, "name", {
76
- value: t$1,
74
+ value: t,
77
75
  configurable: !0
78
76
  });
79
77
  } catch {}
@@ -85,31 +83,31 @@ function Ns() {
85
83
  }
86
84
  n(A, "newPromise");
87
85
  function T(e) {
88
- return A((t$1) => t$1(e));
86
+ return A((t) => t(e));
89
87
  }
90
88
  n(T, "promiseResolvedWith");
91
89
  function b(e) {
92
90
  return w(e);
93
91
  }
94
92
  n(b, "promiseRejectedWith");
95
- function q(e, t$1, r) {
96
- return v.call(e, t$1, r);
93
+ function q(e, t, r) {
94
+ return v.call(e, t, r);
97
95
  }
98
96
  n(q, "PerformPromiseThen");
99
- function g(e, t$1, r) {
100
- q(q(e, t$1, r), void 0, p);
97
+ function g(e, t, r) {
98
+ q(q(e, t, r), void 0, p);
101
99
  }
102
100
  n(g, "uponPromise");
103
- function V(e, t$1) {
104
- g(e, t$1);
101
+ function V(e, t) {
102
+ g(e, t);
105
103
  }
106
104
  n(V, "uponFulfillment");
107
- function I(e, t$1) {
108
- g(e, void 0, t$1);
105
+ function I(e, t) {
106
+ g(e, void 0, t);
109
107
  }
110
108
  n(I, "uponRejection");
111
- function F(e, t$1, r) {
112
- return q(e, t$1, r);
109
+ function F(e, t, r) {
110
+ return q(e, t, r);
113
111
  }
114
112
  n(F, "transformPromiseWith");
115
113
  function Q(e) {
@@ -119,25 +117,25 @@ function Ns() {
119
117
  let ge = n((e) => {
120
118
  if (typeof queueMicrotask == "function") ge = queueMicrotask;
121
119
  else {
122
- const t$1 = T(void 0);
123
- ge = n((r) => q(t$1, r), "_queueMicrotask");
120
+ const t = T(void 0);
121
+ ge = n((r) => q(t, r), "_queueMicrotask");
124
122
  }
125
123
  return ge(e);
126
124
  }, "_queueMicrotask");
127
- function z(e, t$1, r) {
125
+ function z(e, t, r) {
128
126
  if (typeof e != "function") throw new TypeError("Argument is not a function");
129
- return Function.prototype.apply.call(e, t$1, r);
127
+ return Function.prototype.apply.call(e, t, r);
130
128
  }
131
129
  n(z, "reflectCall");
132
- function j(e, t$1, r) {
130
+ function j(e, t, r) {
133
131
  try {
134
- return T(z(e, t$1, r));
132
+ return T(z(e, t, r));
135
133
  } catch (s) {
136
134
  return b(s);
137
135
  }
138
136
  }
139
137
  n(j, "promiseCall");
140
- const U = 16384, bn = class bn$1 {
138
+ const U = 16384, bn = class bn {
141
139
  constructor() {
142
140
  this._cursor = 0, this._size = 0, this._front = {
143
141
  _elements: [],
@@ -147,46 +145,46 @@ function Ns() {
147
145
  get length() {
148
146
  return this._size;
149
147
  }
150
- push(t$1) {
148
+ push(t) {
151
149
  const r = this._back;
152
150
  let s = r;
153
151
  r._elements.length === U - 1 && (s = {
154
152
  _elements: [],
155
153
  _next: void 0
156
- }), r._elements.push(t$1), s !== r && (this._back = s, r._next = s), ++this._size;
154
+ }), r._elements.push(t), s !== r && (this._back = s, r._next = s), ++this._size;
157
155
  }
158
156
  shift() {
159
- const t$1 = this._front;
160
- let r = t$1;
157
+ const t = this._front;
158
+ let r = t;
161
159
  const s = this._cursor;
162
160
  let u = s + 1;
163
- const c = t$1._elements, d = c[s];
164
- return u === U && (r = t$1._next, u = 0), --this._size, this._cursor = u, t$1 !== r && (this._front = r), c[s] = void 0, d;
161
+ const c = t._elements, d = c[s];
162
+ return u === U && (r = t._next, u = 0), --this._size, this._cursor = u, t !== r && (this._front = r), c[s] = void 0, d;
165
163
  }
166
- forEach(t$1) {
164
+ forEach(t) {
167
165
  let r = this._cursor, s = this._front, u = s._elements;
168
- for (; (r !== u.length || s._next !== void 0) && !(r === u.length && (s = s._next, u = s._elements, r = 0, u.length === 0));) t$1(u[r]), ++r;
166
+ 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;
169
167
  }
170
168
  peek() {
171
- const t$1 = this._front, r = this._cursor;
172
- return t$1._elements[r];
169
+ const t = this._front, r = this._cursor;
170
+ return t._elements[r];
173
171
  }
174
172
  };
175
173
  n(bn, "SimpleQueue");
176
174
  let D = bn;
177
175
  const jt = Symbol("[[AbortSteps]]"), Qn = Symbol("[[ErrorSteps]]"), Ar = Symbol("[[CancelSteps]]"), Br = Symbol("[[PullSteps]]"), kr = Symbol("[[ReleaseSteps]]");
178
- function Yn(e, t$1) {
179
- e._ownerReadableStream = t$1, t$1._reader = e, t$1._state === "readable" ? qr(e) : t$1._state === "closed" ? xi(e) : Gn(e, t$1._storedError);
176
+ function Yn(e, t) {
177
+ e._ownerReadableStream = t, t._reader = e, t._state === "readable" ? qr(e) : t._state === "closed" ? xi(e) : Gn(e, t._storedError);
180
178
  }
181
179
  n(Yn, "ReadableStreamReaderGenericInitialize");
182
- function Wr(e, t$1) {
180
+ function Wr(e, t) {
183
181
  const r = e._ownerReadableStream;
184
- return ie(r, t$1);
182
+ return ie(r, t);
185
183
  }
186
184
  n(Wr, "ReadableStreamReaderGenericCancel");
187
185
  function _e(e) {
188
- const t$1 = e._ownerReadableStream;
189
- t$1._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$1._readableStreamController[kr](), t$1._reader = void 0, e._ownerReadableStream = void 0;
186
+ const t = e._ownerReadableStream;
187
+ 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;
190
188
  }
191
189
  n(_e, "ReadableStreamReaderGenericRelease");
192
190
  function Lt(e) {
@@ -194,25 +192,25 @@ function Ns() {
194
192
  }
195
193
  n(Lt, "readerLockException");
196
194
  function qr(e) {
197
- e._closedPromise = A((t$1, r) => {
198
- e._closedPromise_resolve = t$1, e._closedPromise_reject = r;
195
+ e._closedPromise = A((t, r) => {
196
+ e._closedPromise_resolve = t, e._closedPromise_reject = r;
199
197
  });
200
198
  }
201
199
  n(qr, "defaultReaderClosedPromiseInitialize");
202
- function Gn(e, t$1) {
203
- qr(e), Or(e, t$1);
200
+ function Gn(e, t) {
201
+ qr(e), Or(e, t);
204
202
  }
205
203
  n(Gn, "defaultReaderClosedPromiseInitializeAsRejected");
206
204
  function xi(e) {
207
205
  qr(e), Zn(e);
208
206
  }
209
207
  n(xi, "defaultReaderClosedPromiseInitializeAsResolved");
210
- function Or(e, t$1) {
211
- e._closedPromise_reject !== void 0 && (Q(e._closedPromise), e._closedPromise_reject(t$1), e._closedPromise_resolve = void 0, e._closedPromise_reject = void 0);
208
+ function Or(e, t) {
209
+ e._closedPromise_reject !== void 0 && (Q(e._closedPromise), e._closedPromise_reject(t), e._closedPromise_resolve = void 0, e._closedPromise_reject = void 0);
212
210
  }
213
211
  n(Or, "defaultReaderClosedPromiseReject");
214
- function Ni(e, t$1) {
215
- Gn(e, t$1);
212
+ function Ni(e, t) {
213
+ Gn(e, t);
216
214
  }
217
215
  n(Ni, "defaultReaderClosedPromiseResetToRejected");
218
216
  function Zn(e) {
@@ -228,28 +226,28 @@ function Ns() {
228
226
  return typeof e == "object" || typeof e == "function";
229
227
  }
230
228
  n(Vi, "isDictionary");
231
- function ue(e, t$1) {
232
- if (e !== void 0 && !Vi(e)) throw new TypeError(`${t$1} is not an object.`);
229
+ function ue(e, t) {
230
+ if (e !== void 0 && !Vi(e)) throw new TypeError(`${t} is not an object.`);
233
231
  }
234
232
  n(ue, "assertDictionary");
235
- function Z(e, t$1) {
236
- if (typeof e != "function") throw new TypeError(`${t$1} is not a function.`);
233
+ function Z(e, t) {
234
+ if (typeof e != "function") throw new TypeError(`${t} is not a function.`);
237
235
  }
238
236
  n(Z, "assertFunction");
239
237
  function Qi(e) {
240
238
  return typeof e == "object" && e !== null || typeof e == "function";
241
239
  }
242
240
  n(Qi, "isObject");
243
- function Jn(e, t$1) {
244
- if (!Qi(e)) throw new TypeError(`${t$1} is not an object.`);
241
+ function Jn(e, t) {
242
+ if (!Qi(e)) throw new TypeError(`${t} is not an object.`);
245
243
  }
246
244
  n(Jn, "assertObject");
247
- function Se(e, t$1, r) {
248
- if (e === void 0) throw new TypeError(`Parameter ${t$1} is required in '${r}'.`);
245
+ function Se(e, t, r) {
246
+ if (e === void 0) throw new TypeError(`Parameter ${t} is required in '${r}'.`);
249
247
  }
250
248
  n(Se, "assertRequiredArgument");
251
- function zr(e, t$1, r) {
252
- if (e === void 0) throw new TypeError(`${t$1} is required in '${r}'.`);
249
+ function zr(e, t, r) {
250
+ if (e === void 0) throw new TypeError(`${t} is required in '${r}'.`);
253
251
  }
254
252
  n(zr, "assertRequiredField");
255
253
  function Ir(e) {
@@ -264,29 +262,29 @@ function Ns() {
264
262
  return Xn(Hi(e));
265
263
  }
266
264
  n(Yi, "integerPart");
267
- function Fr(e, t$1) {
265
+ function Fr(e, t) {
268
266
  const s = Number.MAX_SAFE_INTEGER;
269
267
  let u = Number(e);
270
- if (u = Xn(u), !Kn(u)) throw new TypeError(`${t$1} is not a finite number`);
271
- if (u = Yi(u), u < 0 || u > s) throw new TypeError(`${t$1} is outside the accepted range of 0 to ${s}, inclusive`);
268
+ if (u = Xn(u), !Kn(u)) throw new TypeError(`${t} is not a finite number`);
269
+ if (u = Yi(u), u < 0 || u > s) throw new TypeError(`${t} is outside the accepted range of 0 to ${s}, inclusive`);
272
270
  return !Kn(u) || u === 0 ? 0 : u;
273
271
  }
274
272
  n(Fr, "convertUnsignedLongLongWithEnforceRange");
275
- function jr(e, t$1) {
276
- if (!We(e)) throw new TypeError(`${t$1} is not a ReadableStream.`);
273
+ function jr(e, t) {
274
+ if (!We(e)) throw new TypeError(`${t} is not a ReadableStream.`);
277
275
  }
278
276
  n(jr, "assertReadableStream");
279
277
  function Qe(e) {
280
278
  return new fe(e);
281
279
  }
282
280
  n(Qe, "AcquireReadableStreamDefaultReader");
283
- function eo(e, t$1) {
284
- e._reader._readRequests.push(t$1);
281
+ function eo(e, t) {
282
+ e._reader._readRequests.push(t);
285
283
  }
286
284
  n(eo, "ReadableStreamAddReadRequest");
287
- function Lr(e, t$1, r) {
285
+ function Lr(e, t, r) {
288
286
  const u = e._reader._readRequests.shift();
289
- r ? u._closeSteps() : u._chunkSteps(t$1);
287
+ r ? u._closeSteps() : u._chunkSteps(t);
290
288
  }
291
289
  n(Lr, "ReadableStreamFulfillReadRequest");
292
290
  function $t(e) {
@@ -294,34 +292,34 @@ function Ns() {
294
292
  }
295
293
  n($t, "ReadableStreamGetNumReadRequests");
296
294
  function to(e) {
297
- const t$1 = e._reader;
298
- return !(t$1 === void 0 || !Ee(t$1));
295
+ const t = e._reader;
296
+ return !(t === void 0 || !Ee(t));
299
297
  }
300
298
  n(to, "ReadableStreamHasDefaultReader");
301
- const mn = class mn$1 {
302
- constructor(t$1) {
303
- if (Se(t$1, 1, "ReadableStreamDefaultReader"), jr(t$1, "First parameter"), qe(t$1)) throw new TypeError("This stream has already been locked for exclusive reading by another reader");
304
- Yn(this, t$1), this._readRequests = new D();
299
+ const mn = class mn {
300
+ constructor(t) {
301
+ 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");
302
+ Yn(this, t), this._readRequests = new D();
305
303
  }
306
304
  get closed() {
307
305
  return Ee(this) ? this._closedPromise : b(Dt("closed"));
308
306
  }
309
- cancel(t$1 = void 0) {
310
- return Ee(this) ? this._ownerReadableStream === void 0 ? b(Lt("cancel")) : Wr(this, t$1) : b(Dt("cancel"));
307
+ cancel(t = void 0) {
308
+ return Ee(this) ? this._ownerReadableStream === void 0 ? b(Lt("cancel")) : Wr(this, t) : b(Dt("cancel"));
311
309
  }
312
310
  read() {
313
311
  if (!Ee(this)) return b(Dt("read"));
314
312
  if (this._ownerReadableStream === void 0) return b(Lt("read from"));
315
- let t$1, r;
313
+ let t, r;
316
314
  const s = A((c, d) => {
317
- t$1 = c, r = d;
315
+ t = c, r = d;
318
316
  });
319
317
  return _t(this, {
320
- _chunkSteps: n((c) => t$1({
318
+ _chunkSteps: n((c) => t({
321
319
  value: c,
322
320
  done: !1
323
321
  }), "_chunkSteps"),
324
- _closeSteps: n(() => t$1({
322
+ _closeSteps: n(() => t({
325
323
  value: void 0,
326
324
  done: !0
327
325
  }), "_closeSteps"),
@@ -348,9 +346,9 @@ function Ns() {
348
346
  return !l(e) || !Object.prototype.hasOwnProperty.call(e, "_readRequests") ? !1 : e instanceof fe;
349
347
  }
350
348
  n(Ee, "IsReadableStreamDefaultReader");
351
- function _t(e, t$1) {
349
+ function _t(e, t) {
352
350
  const r = e._ownerReadableStream;
353
- r._disturbed = !0, r._state === "closed" ? t$1._closeSteps() : r._state === "errored" ? t$1._errorSteps(r._storedError) : r._readableStreamController[Br](t$1);
351
+ r._disturbed = !0, r._state === "closed" ? t._closeSteps() : r._state === "errored" ? t._errorSteps(r._storedError) : r._readableStreamController[Br](t);
354
352
  }
355
353
  n(_t, "ReadableStreamDefaultReaderRead");
356
354
  function Gi(e) {
@@ -358,10 +356,10 @@ function Ns() {
358
356
  ro(e, /* @__PURE__ */ new TypeError("Reader was released"));
359
357
  }
360
358
  n(Gi, "ReadableStreamDefaultReaderRelease");
361
- function ro(e, t$1) {
359
+ function ro(e, t) {
362
360
  const r = e._readRequests;
363
361
  e._readRequests = new D(), r.forEach((s) => {
364
- s._errorSteps(t$1);
362
+ s._errorSteps(t);
365
363
  });
366
364
  }
367
365
  n(ro, "ReadableStreamDefaultReaderErrorReadRequests");
@@ -369,16 +367,16 @@ function Ns() {
369
367
  return /* @__PURE__ */ new TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`);
370
368
  }
371
369
  n(Dt, "defaultReaderBrandCheckException");
372
- const Zi = Object.getPrototypeOf(Object.getPrototypeOf(async function* () {}).prototype), yn = class yn$1 {
373
- constructor(t$1, r) {
374
- this._ongoingPromise = void 0, this._isFinished = !1, this._reader = t$1, this._preventCancel = r;
370
+ const Zi = Object.getPrototypeOf(Object.getPrototypeOf(async function* () {}).prototype), yn = class yn {
371
+ constructor(t, r) {
372
+ this._ongoingPromise = void 0, this._isFinished = !1, this._reader = t, this._preventCancel = r;
375
373
  }
376
374
  next() {
377
- const t$1 = n(() => this._nextSteps(), "nextSteps");
378
- return this._ongoingPromise = this._ongoingPromise ? F(this._ongoingPromise, t$1, t$1) : t$1(), this._ongoingPromise;
375
+ const t = n(() => this._nextSteps(), "nextSteps");
376
+ return this._ongoingPromise = this._ongoingPromise ? F(this._ongoingPromise, t, t) : t(), this._ongoingPromise;
379
377
  }
380
- return(t$1) {
381
- const r = n(() => this._returnSteps(t$1), "returnSteps");
378
+ return(t) {
379
+ const r = n(() => this._returnSteps(t), "returnSteps");
382
380
  return this._ongoingPromise ? F(this._ongoingPromise, r, r) : r();
383
381
  }
384
382
  _nextSteps() {
@@ -386,12 +384,12 @@ function Ns() {
386
384
  value: void 0,
387
385
  done: !0
388
386
  });
389
- const t$1 = this._reader;
387
+ const t = this._reader;
390
388
  let r, s;
391
389
  const u = A((d, m) => {
392
390
  r = d, s = m;
393
391
  });
394
- return _t(t$1, {
392
+ return _t(t, {
395
393
  _chunkSteps: n((d) => {
396
394
  this._ongoingPromise = void 0, ge(() => r({
397
395
  value: d,
@@ -399,32 +397,32 @@ function Ns() {
399
397
  }));
400
398
  }, "_chunkSteps"),
401
399
  _closeSteps: n(() => {
402
- this._ongoingPromise = void 0, this._isFinished = !0, _e(t$1), r({
400
+ this._ongoingPromise = void 0, this._isFinished = !0, _e(t), r({
403
401
  value: void 0,
404
402
  done: !0
405
403
  });
406
404
  }, "_closeSteps"),
407
405
  _errorSteps: n((d) => {
408
- this._ongoingPromise = void 0, this._isFinished = !0, _e(t$1), s(d);
406
+ this._ongoingPromise = void 0, this._isFinished = !0, _e(t), s(d);
409
407
  }, "_errorSteps")
410
408
  }), u;
411
409
  }
412
- _returnSteps(t$1) {
410
+ _returnSteps(t) {
413
411
  if (this._isFinished) return Promise.resolve({
414
- value: t$1,
412
+ value: t,
415
413
  done: !0
416
414
  });
417
415
  this._isFinished = !0;
418
416
  const r = this._reader;
419
417
  if (!this._preventCancel) {
420
- const s = Wr(r, t$1);
418
+ const s = Wr(r, t);
421
419
  return _e(r), F(s, () => ({
422
- value: t$1,
420
+ value: t,
423
421
  done: !0
424
422
  }));
425
423
  }
426
424
  return _e(r), T({
427
- value: t$1,
425
+ value: t,
428
426
  done: !0
429
427
  });
430
428
  }
@@ -440,8 +438,8 @@ function Ns() {
440
438
  }
441
439
  };
442
440
  Object.setPrototypeOf(no, Zi);
443
- function Ki(e, t$1) {
444
- const s = new Mt(Qe(e), t$1), u = Object.create(no);
441
+ function Ki(e, t) {
442
+ const s = new Mt(Qe(e), t), u = Object.create(no);
445
443
  return u._asyncIteratorImpl = s, u;
446
444
  }
447
445
  n(Ki, "AcquireReadableStreamAsyncIterator");
@@ -466,28 +464,28 @@ function Ns() {
466
464
  return e.slice();
467
465
  }
468
466
  n(St, "CreateArrayFromList");
469
- function so(e, t$1, r, s, u) {
470
- new Uint8Array(e).set(new Uint8Array(r, s, u), t$1);
467
+ function so(e, t, r, s, u) {
468
+ new Uint8Array(e).set(new Uint8Array(r, s, u), t);
471
469
  }
472
470
  n(so, "CopyDataBlockBytes");
473
- let we = n((e) => (typeof e.transfer == "function" ? we = n((t$1) => t$1.transfer(), "TransferArrayBuffer") : typeof structuredClone == "function" ? we = n((t$1) => structuredClone(t$1, { transfer: [t$1] }), "TransferArrayBuffer") : we = n((t$1) => t$1, "TransferArrayBuffer"), we(e)), "TransferArrayBuffer"), Ae = n((e) => (typeof e.detached == "boolean" ? Ae = n((t$1) => t$1.detached, "IsDetachedBuffer") : Ae = n((t$1) => t$1.byteLength === 0, "IsDetachedBuffer"), Ae(e)), "IsDetachedBuffer");
474
- function lo(e, t$1, r) {
475
- if (e.slice) return e.slice(t$1, r);
476
- const s = r - t$1, u = new ArrayBuffer(s);
477
- return so(u, 0, e, t$1, s), u;
471
+ let we = n((e) => (typeof e.transfer == "function" ? we = n((t) => t.transfer(), "TransferArrayBuffer") : typeof structuredClone == "function" ? we = n((t) => structuredClone(t, { transfer: [t] }), "TransferArrayBuffer") : we = n((t) => t, "TransferArrayBuffer"), we(e)), "TransferArrayBuffer"), Ae = n((e) => (typeof e.detached == "boolean" ? Ae = n((t) => t.detached, "IsDetachedBuffer") : Ae = n((t) => t.byteLength === 0, "IsDetachedBuffer"), Ae(e)), "IsDetachedBuffer");
472
+ function lo(e, t, r) {
473
+ if (e.slice) return e.slice(t, r);
474
+ const s = r - t, u = new ArrayBuffer(s);
475
+ return so(u, 0, e, t, s), u;
478
476
  }
479
477
  n(lo, "ArrayBufferSlice");
480
- function Ut(e, t$1) {
481
- const r = e[t$1];
478
+ function Ut(e, t) {
479
+ const r = e[t];
482
480
  if (r != null) {
483
- if (typeof r != "function") throw new TypeError(`${String(t$1)} is not a function`);
481
+ if (typeof r != "function") throw new TypeError(`${String(t)} is not a function`);
484
482
  return r;
485
483
  }
486
484
  }
487
485
  n(Ut, "GetMethod");
488
486
  function Ji(e) {
489
- const t$1 = { [Symbol.iterator]: () => e.iterator }, r = async function* () {
490
- return yield* t$1;
487
+ const t = { [Symbol.iterator]: () => e.iterator }, r = async function* () {
488
+ return yield* t;
491
489
  }();
492
490
  return {
493
491
  iterator: r,
@@ -497,8 +495,8 @@ function Ns() {
497
495
  }
498
496
  n(Ji, "CreateAsyncFromSyncIterator");
499
497
  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";
500
- function uo(e, t$1 = "sync", r) {
501
- if (r === void 0) if (t$1 === "async") {
498
+ function uo(e, t = "sync", r) {
499
+ if (r === void 0) if (t === "async") {
502
500
  if (r = Ut(e, Ur), r === void 0) return Ji(uo(e, "sync", Ut(e, Symbol.iterator)));
503
501
  } else r = Ut(e, Symbol.iterator);
504
502
  if (r === void 0) throw new TypeError("The object is not iterable");
@@ -512,9 +510,9 @@ function Ns() {
512
510
  }
513
511
  n(uo, "GetIterator");
514
512
  function Xi(e) {
515
- const t$1 = z(e.nextMethod, e.iterator, []);
516
- if (!l(t$1)) throw new TypeError("The iterator.next() method must return an object");
517
- return t$1;
513
+ const t = z(e.nextMethod, e.iterator, []);
514
+ if (!l(t)) throw new TypeError("The iterator.next() method must return an object");
515
+ return t;
518
516
  }
519
517
  n(Xi, "IteratorNext");
520
518
  function ea(e) {
@@ -530,19 +528,19 @@ function Ns() {
530
528
  }
531
529
  n(ra, "IsNonNegativeNumber");
532
530
  function fo(e) {
533
- const t$1 = lo(e.buffer, e.byteOffset, e.byteOffset + e.byteLength);
534
- return new Uint8Array(t$1);
531
+ const t = lo(e.buffer, e.byteOffset, e.byteOffset + e.byteLength);
532
+ return new Uint8Array(t);
535
533
  }
536
534
  n(fo, "CloneAsUint8Array");
537
535
  function xr(e) {
538
- const t$1 = e._queue.shift();
539
- return e._queueTotalSize -= t$1.size, e._queueTotalSize < 0 && (e._queueTotalSize = 0), t$1.value;
536
+ const t = e._queue.shift();
537
+ return e._queueTotalSize -= t.size, e._queueTotalSize < 0 && (e._queueTotalSize = 0), t.value;
540
538
  }
541
539
  n(xr, "DequeueValue");
542
- function Nr(e, t$1, r) {
540
+ function Nr(e, t, r) {
543
541
  if (!ra(r) || r === Infinity) throw new RangeError("Size must be a finite, non-NaN, non-negative number.");
544
542
  e._queue.push({
545
- value: t$1,
543
+ value: t,
546
544
  size: r
547
545
  }), e._queueTotalSize += r;
548
546
  }
@@ -567,7 +565,7 @@ function Ns() {
567
565
  return co(e) ? 1 : e.BYTES_PER_ELEMENT;
568
566
  }
569
567
  n(ia, "arrayBufferViewElementSize");
570
- const gn = class gn$1 {
568
+ const gn = class gn {
571
569
  constructor() {
572
570
  throw new TypeError("Illegal constructor");
573
571
  }
@@ -575,18 +573,18 @@ function Ns() {
575
573
  if (!Hr(this)) throw Zr("view");
576
574
  return this._view;
577
575
  }
578
- respond(t$1) {
576
+ respond(t) {
579
577
  if (!Hr(this)) throw Zr("respond");
580
- if (Se(t$1, 1, "respond"), t$1 = Fr(t$1, "First parameter"), this._associatedReadableByteStreamController === void 0) throw new TypeError("This BYOB request has been invalidated");
578
+ if (Se(t, 1, "respond"), t = Fr(t, "First parameter"), this._associatedReadableByteStreamController === void 0) throw new TypeError("This BYOB request has been invalidated");
581
579
  if (Ae(this._view.buffer)) throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");
582
- Vt(this._associatedReadableByteStreamController, t$1);
580
+ Vt(this._associatedReadableByteStreamController, t);
583
581
  }
584
- respondWithNewView(t$1) {
582
+ respondWithNewView(t) {
585
583
  if (!Hr(this)) throw Zr("respondWithNewView");
586
- if (Se(t$1, 1, "respondWithNewView"), !ArrayBuffer.isView(t$1)) throw new TypeError("You can only respond with array buffer views");
584
+ if (Se(t, 1, "respondWithNewView"), !ArrayBuffer.isView(t)) throw new TypeError("You can only respond with array buffer views");
587
585
  if (this._associatedReadableByteStreamController === void 0) throw new TypeError("This BYOB request has been invalidated");
588
- if (Ae(t$1.buffer)) throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");
589
- Qt(this._associatedReadableByteStreamController, t$1);
586
+ if (Ae(t.buffer)) throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");
587
+ Qt(this._associatedReadableByteStreamController, t);
590
588
  }
591
589
  };
592
590
  n(gn, "ReadableStreamBYOBRequest");
@@ -599,7 +597,7 @@ function Ns() {
599
597
  value: "ReadableStreamBYOBRequest",
600
598
  configurable: !0
601
599
  });
602
- const _n = class _n$1 {
600
+ const _n = class _n {
603
601
  constructor() {
604
602
  throw new TypeError("Illegal constructor");
605
603
  }
@@ -614,33 +612,33 @@ function Ns() {
614
612
  close() {
615
613
  if (!Ie(this)) throw Rt("close");
616
614
  if (this._closeRequested) throw new TypeError("The stream has already been closed; do not close it again!");
617
- const t$1 = this._controlledReadableByteStream._state;
618
- if (t$1 !== "readable") throw new TypeError(`The stream (in ${t$1} state) is not in the readable state and cannot be closed`);
615
+ const t = this._controlledReadableByteStream._state;
616
+ if (t !== "readable") throw new TypeError(`The stream (in ${t} state) is not in the readable state and cannot be closed`);
619
617
  wt(this);
620
618
  }
621
- enqueue(t$1) {
619
+ enqueue(t) {
622
620
  if (!Ie(this)) throw Rt("enqueue");
623
- if (Se(t$1, 1, "enqueue"), !ArrayBuffer.isView(t$1)) throw new TypeError("chunk must be an array buffer view");
624
- if (t$1.byteLength === 0) throw new TypeError("chunk must have non-zero byteLength");
625
- if (t$1.buffer.byteLength === 0) throw new TypeError("chunk's buffer must have non-zero byteLength");
621
+ if (Se(t, 1, "enqueue"), !ArrayBuffer.isView(t)) throw new TypeError("chunk must be an array buffer view");
622
+ if (t.byteLength === 0) throw new TypeError("chunk must have non-zero byteLength");
623
+ if (t.buffer.byteLength === 0) throw new TypeError("chunk's buffer must have non-zero byteLength");
626
624
  if (this._closeRequested) throw new TypeError("stream is closed or draining");
627
625
  const r = this._controlledReadableByteStream._state;
628
626
  if (r !== "readable") throw new TypeError(`The stream (in ${r} state) is not in the readable state and cannot be enqueued to`);
629
- Ht(this, t$1);
627
+ Ht(this, t);
630
628
  }
631
- error(t$1 = void 0) {
629
+ error(t = void 0) {
632
630
  if (!Ie(this)) throw Rt("error");
633
- K(this, t$1);
631
+ K(this, t);
634
632
  }
635
- [Ar](t$1) {
633
+ [Ar](t) {
636
634
  ho(this), Be(this);
637
- const r = this._cancelAlgorithm(t$1);
635
+ const r = this._cancelAlgorithm(t);
638
636
  return Nt(this), r;
639
637
  }
640
- [Br](t$1) {
638
+ [Br](t) {
641
639
  const r = this._controlledReadableByteStream;
642
640
  if (this._queueTotalSize > 0) {
643
- wo(this, t$1);
641
+ wo(this, t);
644
642
  return;
645
643
  }
646
644
  const s = this._autoAllocateChunkSize;
@@ -649,7 +647,7 @@ function Ns() {
649
647
  try {
650
648
  u = new ArrayBuffer(s);
651
649
  } catch (d) {
652
- t$1._errorSteps(d);
650
+ t._errorSteps(d);
653
651
  return;
654
652
  }
655
653
  const c = {
@@ -665,12 +663,12 @@ function Ns() {
665
663
  };
666
664
  this._pendingPullIntos.push(c);
667
665
  }
668
- eo(r, t$1), Fe(this);
666
+ eo(r, t), Fe(this);
669
667
  }
670
668
  [kr]() {
671
669
  if (this._pendingPullIntos.length > 0) {
672
- const t$1 = this._pendingPullIntos.peek();
673
- t$1.readerType = "none", this._pendingPullIntos = new D(), this._pendingPullIntos.push(t$1);
670
+ const t = this._pendingPullIntos.peek();
671
+ t.readerType = "none", this._pendingPullIntos = new D(), this._pendingPullIntos.push(t);
674
672
  }
675
673
  }
676
674
  };
@@ -708,55 +706,55 @@ function Ns() {
708
706
  Qr(e), e._pendingPullIntos = new D();
709
707
  }
710
708
  n(ho, "ReadableByteStreamControllerClearPendingPullIntos");
711
- function Vr(e, t$1) {
709
+ function Vr(e, t) {
712
710
  let r = !1;
713
711
  e._state === "closed" && (r = !0);
714
- const s = po(t$1);
715
- t$1.readerType === "default" ? Lr(e, s, r) : ma(e, s, r);
712
+ const s = po(t);
713
+ t.readerType === "default" ? Lr(e, s, r) : ma(e, s, r);
716
714
  }
717
715
  n(Vr, "ReadableByteStreamControllerCommitPullIntoDescriptor");
718
716
  function po(e) {
719
- const t$1 = e.bytesFilled, r = e.elementSize;
720
- return new e.viewConstructor(e.buffer, e.byteOffset, t$1 / r);
717
+ const t = e.bytesFilled, r = e.elementSize;
718
+ return new e.viewConstructor(e.buffer, e.byteOffset, t / r);
721
719
  }
722
720
  n(po, "ReadableByteStreamControllerConvertPullIntoDescriptor");
723
- function xt(e, t$1, r, s) {
721
+ function xt(e, t, r, s) {
724
722
  e._queue.push({
725
- buffer: t$1,
723
+ buffer: t,
726
724
  byteOffset: r,
727
725
  byteLength: s
728
726
  }), e._queueTotalSize += s;
729
727
  }
730
728
  n(xt, "ReadableByteStreamControllerEnqueueChunkToQueue");
731
- function bo(e, t$1, r, s) {
729
+ function bo(e, t, r, s) {
732
730
  let u;
733
731
  try {
734
- u = lo(t$1, r, r + s);
732
+ u = lo(t, r, r + s);
735
733
  } catch (c) {
736
734
  throw K(e, c), c;
737
735
  }
738
736
  xt(e, u, 0, s);
739
737
  }
740
738
  n(bo, "ReadableByteStreamControllerEnqueueClonedChunkToQueue");
741
- function mo(e, t$1) {
742
- t$1.bytesFilled > 0 && bo(e, t$1.buffer, t$1.byteOffset, t$1.bytesFilled), Ye(e);
739
+ function mo(e, t) {
740
+ t.bytesFilled > 0 && bo(e, t.buffer, t.byteOffset, t.bytesFilled), Ye(e);
743
741
  }
744
742
  n(mo, "ReadableByteStreamControllerEnqueueDetachedPullIntoToQueue");
745
- function yo(e, t$1) {
746
- const r = Math.min(e._queueTotalSize, t$1.byteLength - t$1.bytesFilled), s = t$1.bytesFilled + r;
743
+ function yo(e, t) {
744
+ const r = Math.min(e._queueTotalSize, t.byteLength - t.bytesFilled), s = t.bytesFilled + r;
747
745
  let u = r, c = !1;
748
- const m = s - s % t$1.elementSize;
749
- m >= t$1.minimumFill && (u = m - t$1.bytesFilled, c = !0);
746
+ const m = s - s % t.elementSize;
747
+ m >= t.minimumFill && (u = m - t.bytesFilled, c = !0);
750
748
  const R = e._queue;
751
749
  for (; u > 0;) {
752
- const y = R.peek(), C = Math.min(u, y.byteLength), P = t$1.byteOffset + t$1.bytesFilled;
753
- so(t$1.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$1), u -= C;
750
+ const y = R.peek(), C = Math.min(u, y.byteLength), P = t.byteOffset + t.bytesFilled;
751
+ 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;
754
752
  }
755
753
  return c;
756
754
  }
757
755
  n(yo, "ReadableByteStreamControllerFillPullIntoDescriptorFromQueue");
758
- function go(e, t$1, r) {
759
- r.bytesFilled += t$1;
756
+ function go(e, t, r) {
757
+ r.bytesFilled += t;
760
758
  }
761
759
  n(go, "ReadableByteStreamControllerFillHeadPullIntoDescriptor");
762
760
  function _o(e) {
@@ -770,24 +768,24 @@ function Ns() {
770
768
  function Yr(e) {
771
769
  for (; e._pendingPullIntos.length > 0;) {
772
770
  if (e._queueTotalSize === 0) return;
773
- const t$1 = e._pendingPullIntos.peek();
774
- yo(e, t$1) && (Ye(e), Vr(e._controlledReadableByteStream, t$1));
771
+ const t = e._pendingPullIntos.peek();
772
+ yo(e, t) && (Ye(e), Vr(e._controlledReadableByteStream, t));
775
773
  }
776
774
  }
777
775
  n(Yr, "ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue");
778
776
  function aa(e) {
779
- const t$1 = e._controlledReadableByteStream._reader;
780
- for (; t$1._readRequests.length > 0;) {
777
+ const t = e._controlledReadableByteStream._reader;
778
+ for (; t._readRequests.length > 0;) {
781
779
  if (e._queueTotalSize === 0) return;
782
- wo(e, t$1._readRequests.shift());
780
+ wo(e, t._readRequests.shift());
783
781
  }
784
782
  }
785
783
  n(aa, "ReadableByteStreamControllerProcessReadRequestsUsingQueue");
786
- function sa(e, t$1, r, s) {
787
- const u = e._controlledReadableByteStream, c = t$1.constructor, d = ia(c), { byteOffset: m, byteLength: R } = t$1, y = r * d;
784
+ function sa(e, t, r, s) {
785
+ const u = e._controlledReadableByteStream, c = t.constructor, d = ia(c), { byteOffset: m, byteLength: R } = t, y = r * d;
788
786
  let C;
789
787
  try {
790
- C = we(t$1.buffer);
788
+ C = we(t.buffer);
791
789
  } catch (B) {
792
790
  s._errorSteps(B);
793
791
  return;
@@ -827,14 +825,14 @@ function Ns() {
827
825
  e._pendingPullIntos.push(P), Po(u, s), Fe(e);
828
826
  }
829
827
  n(sa, "ReadableByteStreamControllerPullInto");
830
- function la(e, t$1) {
831
- t$1.readerType === "none" && Ye(e);
828
+ function la(e, t) {
829
+ t.readerType === "none" && Ye(e);
832
830
  const r = e._controlledReadableByteStream;
833
831
  if (Kr(r)) for (; vo(r) > 0;) Vr(r, Ye(e));
834
832
  }
835
833
  n(la, "ReadableByteStreamControllerRespondInClosedState");
836
- function ua(e, t$1, r) {
837
- if (go(e, t$1, r), r.readerType === "none") {
834
+ function ua(e, t, r) {
835
+ if (go(e, t, r), r.readerType === "none") {
838
836
  mo(e, r), Yr(e);
839
837
  return;
840
838
  }
@@ -848,9 +846,9 @@ function Ns() {
848
846
  r.bytesFilled -= s, Vr(e._controlledReadableByteStream, r), Yr(e);
849
847
  }
850
848
  n(ua, "ReadableByteStreamControllerRespondInReadableState");
851
- function So(e, t$1) {
849
+ function So(e, t) {
852
850
  const r = e._pendingPullIntos.peek();
853
- Qr(e), e._controlledReadableByteStream._state === "closed" ? la(e, r) : ua(e, t$1, r), Fe(e);
851
+ Qr(e), e._controlledReadableByteStream._state === "closed" ? la(e, r) : ua(e, t, r), Fe(e);
854
852
  }
855
853
  n(So, "ReadableByteStreamControllerRespondInternal");
856
854
  function Ye(e) {
@@ -858,8 +856,8 @@ function Ns() {
858
856
  }
859
857
  n(Ye, "ReadableByteStreamControllerShiftPendingPullInto");
860
858
  function fa(e) {
861
- const t$1 = e._controlledReadableByteStream;
862
- return t$1._state !== "readable" || e._closeRequested || !e._started ? !1 : !!(to(t$1) && $t(t$1) > 0 || Kr(t$1) && vo(t$1) > 0 || Ro(e) > 0);
859
+ const t = e._controlledReadableByteStream;
860
+ return t._state !== "readable" || e._closeRequested || !e._started ? !1 : !!(to(t) && $t(t) > 0 || Kr(t) && vo(t) > 0 || Ro(e) > 0);
863
861
  }
864
862
  n(fa, "ReadableByteStreamControllerShouldCallPull");
865
863
  function Nt(e) {
@@ -867,8 +865,8 @@ function Ns() {
867
865
  }
868
866
  n(Nt, "ReadableByteStreamControllerClearAlgorithms");
869
867
  function wt(e) {
870
- const t$1 = e._controlledReadableByteStream;
871
- if (!(e._closeRequested || t$1._state !== "readable")) {
868
+ const t = e._controlledReadableByteStream;
869
+ if (!(e._closeRequested || t._state !== "readable")) {
872
870
  if (e._queueTotalSize > 0) {
873
871
  e._closeRequested = !0;
874
872
  return;
@@ -880,14 +878,14 @@ function Ns() {
880
878
  throw K(e, s), s;
881
879
  }
882
880
  }
883
- Nt(e), At(t$1);
881
+ Nt(e), At(t);
884
882
  }
885
883
  }
886
884
  n(wt, "ReadableByteStreamControllerClose");
887
- function Ht(e, t$1) {
885
+ function Ht(e, t) {
888
886
  const r = e._controlledReadableByteStream;
889
887
  if (e._closeRequested || r._state !== "readable") return;
890
- const { buffer: s, byteOffset: u, byteLength: c } = t$1;
888
+ const { buffer: s, byteOffset: u, byteLength: c } = t;
891
889
  if (Ae(s)) throw new TypeError("chunk's buffer is detached and so cannot be enqueued");
892
890
  const d = we(s);
893
891
  if (e._pendingPullIntos.length > 0) {
@@ -904,70 +902,70 @@ function Ns() {
904
902
  Fe(e);
905
903
  }
906
904
  n(Ht, "ReadableByteStreamControllerEnqueue");
907
- function K(e, t$1) {
905
+ function K(e, t) {
908
906
  const r = e._controlledReadableByteStream;
909
- r._state === "readable" && (ho(e), Be(e), Nt(e), Zo(r, t$1));
907
+ r._state === "readable" && (ho(e), Be(e), Nt(e), Zo(r, t));
910
908
  }
911
909
  n(K, "ReadableByteStreamControllerError");
912
- function wo(e, t$1) {
910
+ function wo(e, t) {
913
911
  const r = e._queue.shift();
914
912
  e._queueTotalSize -= r.byteLength, _o(e);
915
913
  const s = new Uint8Array(r.buffer, r.byteOffset, r.byteLength);
916
- t$1._chunkSteps(s);
914
+ t._chunkSteps(s);
917
915
  }
918
916
  n(wo, "ReadableByteStreamControllerFillReadRequestFromQueue");
919
917
  function Gr(e) {
920
918
  if (e._byobRequest === null && e._pendingPullIntos.length > 0) {
921
- const t$1 = e._pendingPullIntos.peek(), r = new Uint8Array(t$1.buffer, t$1.byteOffset + t$1.bytesFilled, t$1.byteLength - t$1.bytesFilled), s = Object.create(Re.prototype);
919
+ const t = e._pendingPullIntos.peek(), r = new Uint8Array(t.buffer, t.byteOffset + t.bytesFilled, t.byteLength - t.bytesFilled), s = Object.create(Re.prototype);
922
920
  da(s, e, r), e._byobRequest = s;
923
921
  }
924
922
  return e._byobRequest;
925
923
  }
926
924
  n(Gr, "ReadableByteStreamControllerGetBYOBRequest");
927
925
  function Ro(e) {
928
- const t$1 = e._controlledReadableByteStream._state;
929
- return t$1 === "errored" ? null : t$1 === "closed" ? 0 : e._strategyHWM - e._queueTotalSize;
926
+ const t = e._controlledReadableByteStream._state;
927
+ return t === "errored" ? null : t === "closed" ? 0 : e._strategyHWM - e._queueTotalSize;
930
928
  }
931
929
  n(Ro, "ReadableByteStreamControllerGetDesiredSize");
932
- function Vt(e, t$1) {
930
+ function Vt(e, t) {
933
931
  const r = e._pendingPullIntos.peek();
934
932
  if (e._controlledReadableByteStream._state === "closed") {
935
- if (t$1 !== 0) throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");
933
+ if (t !== 0) throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");
936
934
  } else {
937
- if (t$1 === 0) throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");
938
- if (r.bytesFilled + t$1 > r.byteLength) throw new RangeError("bytesWritten out of range");
935
+ if (t === 0) throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");
936
+ if (r.bytesFilled + t > r.byteLength) throw new RangeError("bytesWritten out of range");
939
937
  }
940
- r.buffer = we(r.buffer), So(e, t$1);
938
+ r.buffer = we(r.buffer), So(e, t);
941
939
  }
942
940
  n(Vt, "ReadableByteStreamControllerRespond");
943
- function Qt(e, t$1) {
941
+ function Qt(e, t) {
944
942
  const r = e._pendingPullIntos.peek();
945
943
  if (e._controlledReadableByteStream._state === "closed") {
946
- if (t$1.byteLength !== 0) throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream");
947
- } else if (t$1.byteLength === 0) throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");
948
- if (r.byteOffset + r.bytesFilled !== t$1.byteOffset) throw new RangeError("The region specified by view does not match byobRequest");
949
- if (r.bufferByteLength !== t$1.buffer.byteLength) throw new RangeError("The buffer of view has different capacity than byobRequest");
950
- if (r.bytesFilled + t$1.byteLength > r.byteLength) throw new RangeError("The region specified by view is larger than byobRequest");
951
- const u = t$1.byteLength;
952
- r.buffer = we(t$1.buffer), So(e, u);
944
+ if (t.byteLength !== 0) throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream");
945
+ } else if (t.byteLength === 0) throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");
946
+ if (r.byteOffset + r.bytesFilled !== t.byteOffset) throw new RangeError("The region specified by view does not match byobRequest");
947
+ if (r.bufferByteLength !== t.buffer.byteLength) throw new RangeError("The buffer of view has different capacity than byobRequest");
948
+ if (r.bytesFilled + t.byteLength > r.byteLength) throw new RangeError("The region specified by view is larger than byobRequest");
949
+ const u = t.byteLength;
950
+ r.buffer = we(t.buffer), So(e, u);
953
951
  }
954
952
  n(Qt, "ReadableByteStreamControllerRespondWithNewView");
955
- function To(e, t$1, r, s, u, c, d) {
956
- t$1._controlledReadableByteStream = e, t$1._pullAgain = !1, t$1._pulling = !1, t$1._byobRequest = null, t$1._queue = t$1._queueTotalSize = void 0, Be(t$1), t$1._closeRequested = !1, t$1._started = !1, t$1._strategyHWM = c, t$1._pullAlgorithm = s, t$1._cancelAlgorithm = u, t$1._autoAllocateChunkSize = d, t$1._pendingPullIntos = new D(), e._readableStreamController = t$1;
957
- g(T(r()), () => (t$1._started = !0, Fe(t$1), null), (R) => (K(t$1, R), null));
953
+ function To(e, t, r, s, u, c, d) {
954
+ 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;
955
+ g(T(r()), () => (t._started = !0, Fe(t), null), (R) => (K(t, R), null));
958
956
  }
959
957
  n(To, "SetUpReadableByteStreamController");
960
- function ca(e, t$1, r) {
958
+ function ca(e, t, r) {
961
959
  const s = Object.create(te.prototype);
962
960
  let u, c, d;
963
- t$1.start !== void 0 ? u = n(() => t$1.start(s), "startAlgorithm") : u = n(() => {}, "startAlgorithm"), t$1.pull !== void 0 ? c = n(() => t$1.pull(s), "pullAlgorithm") : c = n(() => T(void 0), "pullAlgorithm"), t$1.cancel !== void 0 ? d = n((R) => t$1.cancel(R), "cancelAlgorithm") : d = n(() => T(void 0), "cancelAlgorithm");
964
- const m = t$1.autoAllocateChunkSize;
961
+ t.start !== void 0 ? u = n(() => t.start(s), "startAlgorithm") : u = n(() => {}, "startAlgorithm"), t.pull !== void 0 ? c = n(() => t.pull(s), "pullAlgorithm") : c = n(() => T(void 0), "pullAlgorithm"), t.cancel !== void 0 ? d = n((R) => t.cancel(R), "cancelAlgorithm") : d = n(() => T(void 0), "cancelAlgorithm");
962
+ const m = t.autoAllocateChunkSize;
965
963
  if (m === 0) throw new TypeError("autoAllocateChunkSize must be greater than 0");
966
964
  To(e, s, u, c, d, r, m);
967
965
  }
968
966
  n(ca, "SetUpReadableByteStreamControllerFromUnderlyingSource");
969
- function da(e, t$1, r) {
970
- e._associatedReadableByteStreamController = t$1, e._view = r;
967
+ function da(e, t, r) {
968
+ e._associatedReadableByteStreamController = t, e._view = r;
971
969
  }
972
970
  n(da, "SetUpReadableStreamBYOBRequest");
973
971
  function Zr(e) {
@@ -978,34 +976,34 @@ function Ns() {
978
976
  return /* @__PURE__ */ new TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`);
979
977
  }
980
978
  n(Rt, "byteStreamControllerBrandCheckException");
981
- function ha(e, t$1) {
982
- ue(e, t$1);
979
+ function ha(e, t) {
980
+ ue(e, t);
983
981
  const r = e?.mode;
984
- return { mode: r === void 0 ? void 0 : pa(r, `${t$1} has member 'mode' that`) };
982
+ return { mode: r === void 0 ? void 0 : pa(r, `${t} has member 'mode' that`) };
985
983
  }
986
984
  n(ha, "convertReaderOptions");
987
- function pa(e, t$1) {
988
- if (e = `${e}`, e !== "byob") throw new TypeError(`${t$1} '${e}' is not a valid enumeration value for ReadableStreamReaderMode`);
985
+ function pa(e, t) {
986
+ if (e = `${e}`, e !== "byob") throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamReaderMode`);
989
987
  return e;
990
988
  }
991
989
  n(pa, "convertReadableStreamReaderMode");
992
- function ba(e, t$1) {
990
+ function ba(e, t) {
993
991
  var r;
994
- ue(e, t$1);
995
- return { min: Fr((r = e?.min) !== null && r !== void 0 ? r : 1, `${t$1} has member 'min' that`) };
992
+ ue(e, t);
993
+ return { min: Fr((r = e?.min) !== null && r !== void 0 ? r : 1, `${t} has member 'min' that`) };
996
994
  }
997
995
  n(ba, "convertByobReadOptions");
998
996
  function Co(e) {
999
997
  return new ce(e);
1000
998
  }
1001
999
  n(Co, "AcquireReadableStreamBYOBReader");
1002
- function Po(e, t$1) {
1003
- e._reader._readIntoRequests.push(t$1);
1000
+ function Po(e, t) {
1001
+ e._reader._readIntoRequests.push(t);
1004
1002
  }
1005
1003
  n(Po, "ReadableStreamAddReadIntoRequest");
1006
- function ma(e, t$1, r) {
1004
+ function ma(e, t, r) {
1007
1005
  const u = e._reader._readIntoRequests.shift();
1008
- r ? u._closeSteps(t$1) : u._chunkSteps(t$1);
1006
+ r ? u._closeSteps(t) : u._chunkSteps(t);
1009
1007
  }
1010
1008
  n(ma, "ReadableStreamFulfillReadIntoRequest");
1011
1009
  function vo(e) {
@@ -1013,28 +1011,28 @@ function Ns() {
1013
1011
  }
1014
1012
  n(vo, "ReadableStreamGetNumReadIntoRequests");
1015
1013
  function Kr(e) {
1016
- const t$1 = e._reader;
1017
- return !(t$1 === void 0 || !je(t$1));
1014
+ const t = e._reader;
1015
+ return !(t === void 0 || !je(t));
1018
1016
  }
1019
1017
  n(Kr, "ReadableStreamHasBYOBReader");
1020
- const Sn = class Sn$1 {
1021
- constructor(t$1) {
1022
- if (Se(t$1, 1, "ReadableStreamBYOBReader"), jr(t$1, "First parameter"), qe(t$1)) throw new TypeError("This stream has already been locked for exclusive reading by another reader");
1023
- if (!Ie(t$1._readableStreamController)) throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");
1024
- Yn(this, t$1), this._readIntoRequests = new D();
1018
+ const Sn = class Sn {
1019
+ constructor(t) {
1020
+ 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");
1021
+ if (!Ie(t._readableStreamController)) throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");
1022
+ Yn(this, t), this._readIntoRequests = new D();
1025
1023
  }
1026
1024
  get closed() {
1027
1025
  return je(this) ? this._closedPromise : b(Yt("closed"));
1028
1026
  }
1029
- cancel(t$1 = void 0) {
1030
- return je(this) ? this._ownerReadableStream === void 0 ? b(Lt("cancel")) : Wr(this, t$1) : b(Yt("cancel"));
1027
+ cancel(t = void 0) {
1028
+ return je(this) ? this._ownerReadableStream === void 0 ? b(Lt("cancel")) : Wr(this, t) : b(Yt("cancel"));
1031
1029
  }
1032
- read(t$1, r = {}) {
1030
+ read(t, r = {}) {
1033
1031
  if (!je(this)) return b(Yt("read"));
1034
- if (!ArrayBuffer.isView(t$1)) return b(/* @__PURE__ */ new TypeError("view must be an array buffer view"));
1035
- if (t$1.byteLength === 0) return b(/* @__PURE__ */ new TypeError("view must have non-zero byteLength"));
1036
- if (t$1.buffer.byteLength === 0) return b(/* @__PURE__ */ new TypeError("view's buffer must have non-zero byteLength"));
1037
- if (Ae(t$1.buffer)) return b(/* @__PURE__ */ new TypeError("view's buffer has been detached"));
1032
+ if (!ArrayBuffer.isView(t)) return b(/* @__PURE__ */ new TypeError("view must be an array buffer view"));
1033
+ if (t.byteLength === 0) return b(/* @__PURE__ */ new TypeError("view must have non-zero byteLength"));
1034
+ if (t.buffer.byteLength === 0) return b(/* @__PURE__ */ new TypeError("view's buffer must have non-zero byteLength"));
1035
+ if (Ae(t.buffer)) return b(/* @__PURE__ */ new TypeError("view's buffer has been detached"));
1038
1036
  let s;
1039
1037
  try {
1040
1038
  s = ba(r, "options");
@@ -1043,15 +1041,15 @@ function Ns() {
1043
1041
  }
1044
1042
  const u = s.min;
1045
1043
  if (u === 0) return b(/* @__PURE__ */ new TypeError("options.min must be greater than 0"));
1046
- if (oa(t$1)) {
1047
- if (u > t$1.byteLength) return b(/* @__PURE__ */ new RangeError("options.min must be less than or equal to view's byteLength"));
1048
- } else if (u > t$1.length) return b(/* @__PURE__ */ new RangeError("options.min must be less than or equal to view's length"));
1044
+ if (oa(t)) {
1045
+ if (u > t.byteLength) return b(/* @__PURE__ */ new RangeError("options.min must be less than or equal to view's byteLength"));
1046
+ } else if (u > t.length) return b(/* @__PURE__ */ new RangeError("options.min must be less than or equal to view's length"));
1049
1047
  if (this._ownerReadableStream === void 0) return b(Lt("read from"));
1050
1048
  let c, d;
1051
1049
  const m = A((y, C) => {
1052
1050
  c = y, d = C;
1053
1051
  });
1054
- return Eo(this, t$1, u, {
1052
+ return Eo(this, t, u, {
1055
1053
  _chunkSteps: n((y) => c({
1056
1054
  value: y,
1057
1055
  done: !1
@@ -1083,9 +1081,9 @@ function Ns() {
1083
1081
  return !l(e) || !Object.prototype.hasOwnProperty.call(e, "_readIntoRequests") ? !1 : e instanceof ce;
1084
1082
  }
1085
1083
  n(je, "IsReadableStreamBYOBReader");
1086
- function Eo(e, t$1, r, s) {
1084
+ function Eo(e, t, r, s) {
1087
1085
  const u = e._ownerReadableStream;
1088
- u._disturbed = !0, u._state === "errored" ? s._errorSteps(u._storedError) : sa(u._readableStreamController, t$1, r, s);
1086
+ u._disturbed = !0, u._state === "errored" ? s._errorSteps(u._storedError) : sa(u._readableStreamController, t, r, s);
1089
1087
  }
1090
1088
  n(Eo, "ReadableStreamBYOBReaderRead");
1091
1089
  function ya(e) {
@@ -1093,10 +1091,10 @@ function Ns() {
1093
1091
  Ao(e, /* @__PURE__ */ new TypeError("Reader was released"));
1094
1092
  }
1095
1093
  n(ya, "ReadableStreamBYOBReaderRelease");
1096
- function Ao(e, t$1) {
1094
+ function Ao(e, t) {
1097
1095
  const r = e._readIntoRequests;
1098
1096
  e._readIntoRequests = new D(), r.forEach((s) => {
1099
- s._errorSteps(t$1);
1097
+ s._errorSteps(t);
1100
1098
  });
1101
1099
  }
1102
1100
  n(Ao, "ReadableStreamBYOBReaderErrorReadIntoRequests");
@@ -1104,61 +1102,61 @@ function Ns() {
1104
1102
  return /* @__PURE__ */ new TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`);
1105
1103
  }
1106
1104
  n(Yt, "byobReaderBrandCheckException");
1107
- function Tt(e, t$1) {
1105
+ function Tt(e, t) {
1108
1106
  const { highWaterMark: r } = e;
1109
- if (r === void 0) return t$1;
1107
+ if (r === void 0) return t;
1110
1108
  if (ao(r) || r < 0) throw new RangeError("Invalid highWaterMark");
1111
1109
  return r;
1112
1110
  }
1113
1111
  n(Tt, "ExtractHighWaterMark");
1114
1112
  function Gt(e) {
1115
- const { size: t$1 } = e;
1116
- return t$1 || (() => 1);
1113
+ const { size: t } = e;
1114
+ return t || (() => 1);
1117
1115
  }
1118
1116
  n(Gt, "ExtractSizeAlgorithm");
1119
- function Zt(e, t$1) {
1120
- ue(e, t$1);
1117
+ function Zt(e, t) {
1118
+ ue(e, t);
1121
1119
  const r = e?.highWaterMark, s = e?.size;
1122
1120
  return {
1123
1121
  highWaterMark: r === void 0 ? void 0 : Ir(r),
1124
- size: s === void 0 ? void 0 : ga(s, `${t$1} has member 'size' that`)
1122
+ size: s === void 0 ? void 0 : ga(s, `${t} has member 'size' that`)
1125
1123
  };
1126
1124
  }
1127
1125
  n(Zt, "convertQueuingStrategy");
1128
- function ga(e, t$1) {
1129
- return Z(e, t$1), (r) => Ir(e(r));
1126
+ function ga(e, t) {
1127
+ return Z(e, t), (r) => Ir(e(r));
1130
1128
  }
1131
1129
  n(ga, "convertQueuingStrategySize");
1132
- function _a(e, t$1) {
1133
- ue(e, t$1);
1130
+ function _a(e, t) {
1131
+ ue(e, t);
1134
1132
  const r = e?.abort, s = e?.close, u = e?.start, c = e?.type, d = e?.write;
1135
1133
  return {
1136
- abort: r === void 0 ? void 0 : Sa(r, e, `${t$1} has member 'abort' that`),
1137
- close: s === void 0 ? void 0 : wa(s, e, `${t$1} has member 'close' that`),
1138
- start: u === void 0 ? void 0 : Ra(u, e, `${t$1} has member 'start' that`),
1139
- write: d === void 0 ? void 0 : Ta(d, e, `${t$1} has member 'write' that`),
1134
+ abort: r === void 0 ? void 0 : Sa(r, e, `${t} has member 'abort' that`),
1135
+ close: s === void 0 ? void 0 : wa(s, e, `${t} has member 'close' that`),
1136
+ start: u === void 0 ? void 0 : Ra(u, e, `${t} has member 'start' that`),
1137
+ write: d === void 0 ? void 0 : Ta(d, e, `${t} has member 'write' that`),
1140
1138
  type: c
1141
1139
  };
1142
1140
  }
1143
1141
  n(_a, "convertUnderlyingSink");
1144
- function Sa(e, t$1, r) {
1145
- return Z(e, r), (s) => j(e, t$1, [s]);
1142
+ function Sa(e, t, r) {
1143
+ return Z(e, r), (s) => j(e, t, [s]);
1146
1144
  }
1147
1145
  n(Sa, "convertUnderlyingSinkAbortCallback");
1148
- function wa(e, t$1, r) {
1149
- return Z(e, r), () => j(e, t$1, []);
1146
+ function wa(e, t, r) {
1147
+ return Z(e, r), () => j(e, t, []);
1150
1148
  }
1151
1149
  n(wa, "convertUnderlyingSinkCloseCallback");
1152
- function Ra(e, t$1, r) {
1153
- return Z(e, r), (s) => z(e, t$1, [s]);
1150
+ function Ra(e, t, r) {
1151
+ return Z(e, r), (s) => z(e, t, [s]);
1154
1152
  }
1155
1153
  n(Ra, "convertUnderlyingSinkStartCallback");
1156
- function Ta(e, t$1, r) {
1157
- return Z(e, r), (s, u) => j(e, t$1, [s, u]);
1154
+ function Ta(e, t, r) {
1155
+ return Z(e, r), (s, u) => j(e, t, [s, u]);
1158
1156
  }
1159
1157
  n(Ta, "convertUnderlyingSinkWriteCallback");
1160
- function Bo(e, t$1) {
1161
- if (!Ge(e)) throw new TypeError(`${t$1} is not a WritableStream.`);
1158
+ function Bo(e, t) {
1159
+ if (!Ge(e)) throw new TypeError(`${t} is not a WritableStream.`);
1162
1160
  }
1163
1161
  n(Bo, "assertWritableStream");
1164
1162
  function Ca(e) {
@@ -1175,10 +1173,10 @@ function Ns() {
1175
1173
  if (Pa) return new AbortController();
1176
1174
  }
1177
1175
  n(va, "createAbortController");
1178
- const wn = class wn$1 {
1179
- constructor(t$1 = {}, r = {}) {
1180
- t$1 === void 0 ? t$1 = null : Jn(t$1, "First parameter");
1181
- const s = Zt(r, "Second parameter"), u = _a(t$1, "First parameter");
1176
+ const wn = class wn {
1177
+ constructor(t = {}, r = {}) {
1178
+ t === void 0 ? t = null : Jn(t, "First parameter");
1179
+ const s = Zt(r, "Second parameter"), u = _a(t, "First parameter");
1182
1180
  if (Wo(this), u.type !== void 0) throw new RangeError("Invalid type is specified");
1183
1181
  const d = Gt(s), m = Tt(s, 1);
1184
1182
  Da(this, u, m, d);
@@ -1187,8 +1185,8 @@ function Ns() {
1187
1185
  if (!Ge(this)) throw tr("locked");
1188
1186
  return Ze(this);
1189
1187
  }
1190
- abort(t$1 = void 0) {
1191
- return Ge(this) ? Ze(this) ? b(/* @__PURE__ */ new TypeError("Cannot abort a stream that already has a writer")) : Kt(this, t$1) : b(tr("abort"));
1188
+ abort(t = void 0) {
1189
+ return Ge(this) ? Ze(this) ? b(/* @__PURE__ */ new TypeError("Cannot abort a stream that already has a writer")) : Kt(this, t) : b(tr("abort"));
1192
1190
  }
1193
1191
  close() {
1194
1192
  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"));
@@ -1213,10 +1211,10 @@ function Ns() {
1213
1211
  return new re(e);
1214
1212
  }
1215
1213
  n(ko, "AcquireWritableStreamDefaultWriter");
1216
- function Ea(e, t$1, r, s, u = 1, c = () => 1) {
1214
+ function Ea(e, t, r, s, u = 1, c = () => 1) {
1217
1215
  const d = Object.create(de.prototype);
1218
1216
  Wo(d);
1219
- return Lo(d, Object.create(ke.prototype), e, t$1, r, s, u, c), d;
1217
+ return Lo(d, Object.create(ke.prototype), e, t, r, s, u, c), d;
1220
1218
  }
1221
1219
  n(Ea, "CreateWritableStream");
1222
1220
  function Wo(e) {
@@ -1231,37 +1229,37 @@ function Ns() {
1231
1229
  return e._writer !== void 0;
1232
1230
  }
1233
1231
  n(Ze, "IsWritableStreamLocked");
1234
- function Kt(e, t$1) {
1232
+ function Kt(e, t) {
1235
1233
  var r;
1236
1234
  if (e._state === "closed" || e._state === "errored") return T(void 0);
1237
- e._writableStreamController._abortReason = t$1, (r = e._writableStreamController._abortController) === null || r === void 0 || r.abort(t$1);
1235
+ e._writableStreamController._abortReason = t, (r = e._writableStreamController._abortController) === null || r === void 0 || r.abort(t);
1238
1236
  const s = e._state;
1239
1237
  if (s === "closed" || s === "errored") return T(void 0);
1240
1238
  if (e._pendingAbortRequest !== void 0) return e._pendingAbortRequest._promise;
1241
1239
  let u = !1;
1242
- s === "erroring" && (u = !0, t$1 = void 0);
1240
+ s === "erroring" && (u = !0, t = void 0);
1243
1241
  const c = A((d, m) => {
1244
1242
  e._pendingAbortRequest = {
1245
1243
  _promise: void 0,
1246
1244
  _resolve: d,
1247
1245
  _reject: m,
1248
- _reason: t$1,
1246
+ _reason: t,
1249
1247
  _wasAlreadyErroring: u
1250
1248
  };
1251
1249
  });
1252
- return e._pendingAbortRequest._promise = c, u || Xr(e, t$1), c;
1250
+ return e._pendingAbortRequest._promise = c, u || Xr(e, t), c;
1253
1251
  }
1254
1252
  n(Kt, "WritableStreamAbort");
1255
1253
  function qo(e) {
1256
- const t$1 = e._state;
1257
- if (t$1 === "closed" || t$1 === "errored") return b(/* @__PURE__ */ new TypeError(`The stream (in ${t$1} state) is not in the writable state and cannot be closed`));
1254
+ const t = e._state;
1255
+ 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`));
1258
1256
  const r = A((u, c) => {
1259
1257
  e._closeRequest = {
1260
1258
  _resolve: u,
1261
1259
  _reject: c
1262
1260
  };
1263
1261
  }), s = e._writer;
1264
- return s !== void 0 && e._backpressure && t$1 === "writable" && ln(s), Ma(e._writableStreamController), r;
1262
+ return s !== void 0 && e._backpressure && t === "writable" && ln(s), Ma(e._writableStreamController), r;
1265
1263
  }
1266
1264
  n(qo, "WritableStreamClose");
1267
1265
  function Aa(e) {
@@ -1274,33 +1272,33 @@ function Ns() {
1274
1272
  });
1275
1273
  }
1276
1274
  n(Aa, "WritableStreamAddWriteRequest");
1277
- function Jr(e, t$1) {
1275
+ function Jr(e, t) {
1278
1276
  if (e._state === "writable") {
1279
- Xr(e, t$1);
1277
+ Xr(e, t);
1280
1278
  return;
1281
1279
  }
1282
1280
  en(e);
1283
1281
  }
1284
1282
  n(Jr, "WritableStreamDealWithRejection");
1285
- function Xr(e, t$1) {
1283
+ function Xr(e, t) {
1286
1284
  const r = e._writableStreamController;
1287
- e._state = "erroring", e._storedError = t$1;
1285
+ e._state = "erroring", e._storedError = t;
1288
1286
  const s = e._writer;
1289
- s !== void 0 && zo(s, t$1), !Oa(e) && r._started && en(e);
1287
+ s !== void 0 && zo(s, t), !Oa(e) && r._started && en(e);
1290
1288
  }
1291
1289
  n(Xr, "WritableStreamStartErroring");
1292
1290
  function en(e) {
1293
1291
  e._state = "errored", e._writableStreamController[Qn]();
1294
- const t$1 = e._storedError;
1292
+ const t = e._storedError;
1295
1293
  if (e._writeRequests.forEach((u) => {
1296
- u._reject(t$1);
1294
+ u._reject(t);
1297
1295
  }), e._writeRequests = new D(), e._pendingAbortRequest === void 0) {
1298
1296
  Jt(e);
1299
1297
  return;
1300
1298
  }
1301
1299
  const r = e._pendingAbortRequest;
1302
1300
  if (e._pendingAbortRequest = void 0, r._wasAlreadyErroring) {
1303
- r._reject(t$1), Jt(e);
1301
+ r._reject(t), Jt(e);
1304
1302
  return;
1305
1303
  }
1306
1304
  g(e._writableStreamController[jt](r._reason), () => (r._resolve(), Jt(e), null), (u) => (r._reject(u), Jt(e), null));
@@ -1310,8 +1308,8 @@ function Ns() {
1310
1308
  e._inFlightWriteRequest._resolve(void 0), e._inFlightWriteRequest = void 0;
1311
1309
  }
1312
1310
  n(Ba, "WritableStreamFinishInFlightWrite");
1313
- function ka(e, t$1) {
1314
- e._inFlightWriteRequest._reject(t$1), e._inFlightWriteRequest = void 0, Jr(e, t$1);
1311
+ function ka(e, t) {
1312
+ e._inFlightWriteRequest._reject(t), e._inFlightWriteRequest = void 0, Jr(e, t);
1315
1313
  }
1316
1314
  n(ka, "WritableStreamFinishInFlightWriteWithError");
1317
1315
  function Wa(e) {
@@ -1320,8 +1318,8 @@ function Ns() {
1320
1318
  r !== void 0 && Uo(r);
1321
1319
  }
1322
1320
  n(Wa, "WritableStreamFinishInFlightClose");
1323
- function qa(e, t$1) {
1324
- e._inFlightCloseRequest._reject(t$1), e._inFlightCloseRequest = void 0, e._pendingAbortRequest !== void 0 && (e._pendingAbortRequest._reject(t$1), e._pendingAbortRequest = void 0), Jr(e, t$1);
1321
+ function qa(e, t) {
1322
+ e._inFlightCloseRequest._reject(t), e._inFlightCloseRequest = void 0, e._pendingAbortRequest !== void 0 && (e._pendingAbortRequest._reject(t), e._pendingAbortRequest = void 0), Jr(e, t);
1325
1323
  }
1326
1324
  n(qa, "WritableStreamFinishInFlightCloseWithError");
1327
1325
  function he(e) {
@@ -1342,25 +1340,25 @@ function Ns() {
1342
1340
  n(Ia, "WritableStreamMarkFirstWriteRequestInFlight");
1343
1341
  function Jt(e) {
1344
1342
  e._closeRequest !== void 0 && (e._closeRequest._reject(e._storedError), e._closeRequest = void 0);
1345
- const t$1 = e._writer;
1346
- t$1 !== void 0 && an(t$1, e._storedError);
1343
+ const t = e._writer;
1344
+ t !== void 0 && an(t, e._storedError);
1347
1345
  }
1348
1346
  n(Jt, "WritableStreamRejectCloseAndClosedPromiseIfNeeded");
1349
- function tn(e, t$1) {
1347
+ function tn(e, t) {
1350
1348
  const r = e._writer;
1351
- r !== void 0 && t$1 !== e._backpressure && (t$1 ? Ya(r) : ln(r)), e._backpressure = t$1;
1349
+ r !== void 0 && t !== e._backpressure && (t ? Ya(r) : ln(r)), e._backpressure = t;
1352
1350
  }
1353
1351
  n(tn, "WritableStreamUpdateBackpressure");
1354
- const Rn = class Rn$1 {
1355
- constructor(t$1) {
1356
- if (Se(t$1, 1, "WritableStreamDefaultWriter"), Bo(t$1, "First parameter"), Ze(t$1)) throw new TypeError("This stream has already been locked for exclusive writing by another writer");
1357
- this._ownerWritableStream = t$1, t$1._writer = this;
1358
- const r = t$1._state;
1359
- if (r === "writable") !he(t$1) && t$1._backpressure ? nr(this) : xo(this), rr(this);
1360
- else if (r === "erroring") sn(this, t$1._storedError), rr(this);
1352
+ const Rn = class Rn {
1353
+ constructor(t) {
1354
+ 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");
1355
+ this._ownerWritableStream = t, t._writer = this;
1356
+ const r = t._state;
1357
+ if (r === "writable") !he(t) && t._backpressure ? nr(this) : xo(this), rr(this);
1358
+ else if (r === "erroring") sn(this, t._storedError), rr(this);
1361
1359
  else if (r === "closed") xo(this), Va(this);
1362
1360
  else {
1363
- const s = t$1._storedError;
1361
+ const s = t._storedError;
1364
1362
  sn(this, s), Mo(this, s);
1365
1363
  }
1366
1364
  }
@@ -1375,20 +1373,20 @@ function Ns() {
1375
1373
  get ready() {
1376
1374
  return Le(this) ? this._readyPromise : b($e("ready"));
1377
1375
  }
1378
- abort(t$1 = void 0) {
1379
- return Le(this) ? this._ownerWritableStream === void 0 ? b(Pt("abort")) : Fa(this, t$1) : b($e("abort"));
1376
+ abort(t = void 0) {
1377
+ return Le(this) ? this._ownerWritableStream === void 0 ? b(Pt("abort")) : Fa(this, t) : b($e("abort"));
1380
1378
  }
1381
1379
  close() {
1382
1380
  if (!Le(this)) return b($e("close"));
1383
- const t$1 = this._ownerWritableStream;
1384
- return t$1 === void 0 ? b(Pt("close")) : he(t$1) ? b(/* @__PURE__ */ new TypeError("Cannot close an already-closing stream")) : Oo(this);
1381
+ const t = this._ownerWritableStream;
1382
+ return t === void 0 ? b(Pt("close")) : he(t) ? b(/* @__PURE__ */ new TypeError("Cannot close an already-closing stream")) : Oo(this);
1385
1383
  }
1386
1384
  releaseLock() {
1387
1385
  if (!Le(this)) throw $e("releaseLock");
1388
1386
  this._ownerWritableStream !== void 0 && Io(this);
1389
1387
  }
1390
- write(t$1 = void 0) {
1391
- return Le(this) ? this._ownerWritableStream === void 0 ? b(Pt("write to")) : Fo(this, t$1) : b($e("write"));
1388
+ write(t = void 0) {
1389
+ return Le(this) ? this._ownerWritableStream === void 0 ? b(Pt("write to")) : Fo(this, t) : b($e("write"));
1392
1390
  }
1393
1391
  };
1394
1392
  n(Rn, "WritableStreamDefaultWriter");
@@ -1409,51 +1407,51 @@ function Ns() {
1409
1407
  return !l(e) || !Object.prototype.hasOwnProperty.call(e, "_ownerWritableStream") ? !1 : e instanceof re;
1410
1408
  }
1411
1409
  n(Le, "IsWritableStreamDefaultWriter");
1412
- function Fa(e, t$1) {
1410
+ function Fa(e, t) {
1413
1411
  const r = e._ownerWritableStream;
1414
- return Kt(r, t$1);
1412
+ return Kt(r, t);
1415
1413
  }
1416
1414
  n(Fa, "WritableStreamDefaultWriterAbort");
1417
1415
  function Oo(e) {
1418
- const t$1 = e._ownerWritableStream;
1419
- return qo(t$1);
1416
+ const t = e._ownerWritableStream;
1417
+ return qo(t);
1420
1418
  }
1421
1419
  n(Oo, "WritableStreamDefaultWriterClose");
1422
1420
  function ja(e) {
1423
- const t$1 = e._ownerWritableStream, r = t$1._state;
1424
- return he(t$1) || r === "closed" ? T(void 0) : r === "errored" ? b(t$1._storedError) : Oo(e);
1421
+ const t = e._ownerWritableStream, r = t._state;
1422
+ return he(t) || r === "closed" ? T(void 0) : r === "errored" ? b(t._storedError) : Oo(e);
1425
1423
  }
1426
1424
  n(ja, "WritableStreamDefaultWriterCloseWithErrorPropagation");
1427
- function La(e, t$1) {
1428
- e._closedPromiseState === "pending" ? an(e, t$1) : Qa(e, t$1);
1425
+ function La(e, t) {
1426
+ e._closedPromiseState === "pending" ? an(e, t) : Qa(e, t);
1429
1427
  }
1430
1428
  n(La, "WritableStreamDefaultWriterEnsureClosedPromiseRejected");
1431
- function zo(e, t$1) {
1432
- e._readyPromiseState === "pending" ? No(e, t$1) : Ga(e, t$1);
1429
+ function zo(e, t) {
1430
+ e._readyPromiseState === "pending" ? No(e, t) : Ga(e, t);
1433
1431
  }
1434
1432
  n(zo, "WritableStreamDefaultWriterEnsureReadyPromiseRejected");
1435
1433
  function $a(e) {
1436
- const t$1 = e._ownerWritableStream, r = t$1._state;
1437
- return r === "errored" || r === "erroring" ? null : r === "closed" ? 0 : $o(t$1._writableStreamController);
1434
+ const t = e._ownerWritableStream, r = t._state;
1435
+ return r === "errored" || r === "erroring" ? null : r === "closed" ? 0 : $o(t._writableStreamController);
1438
1436
  }
1439
1437
  n($a, "WritableStreamDefaultWriterGetDesiredSize");
1440
1438
  function Io(e) {
1441
- const t$1 = e._ownerWritableStream, r = /* @__PURE__ */ new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");
1442
- zo(e, r), La(e, r), t$1._writer = void 0, e._ownerWritableStream = void 0;
1439
+ const t = e._ownerWritableStream, r = /* @__PURE__ */ new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");
1440
+ zo(e, r), La(e, r), t._writer = void 0, e._ownerWritableStream = void 0;
1443
1441
  }
1444
1442
  n(Io, "WritableStreamDefaultWriterRelease");
1445
- function Fo(e, t$1) {
1446
- const r = e._ownerWritableStream, s = r._writableStreamController, u = Ua(s, t$1);
1443
+ function Fo(e, t) {
1444
+ const r = e._ownerWritableStream, s = r._writableStreamController, u = Ua(s, t);
1447
1445
  if (r !== e._ownerWritableStream) return b(Pt("write to"));
1448
1446
  const c = r._state;
1449
1447
  if (c === "errored") return b(r._storedError);
1450
1448
  if (he(r) || c === "closed") return b(/* @__PURE__ */ new TypeError("The stream is closing or closed and cannot be written to"));
1451
1449
  if (c === "erroring") return b(r._storedError);
1452
1450
  const d = Aa(r);
1453
- return xa(s, t$1, u), d;
1451
+ return xa(s, t, u), d;
1454
1452
  }
1455
1453
  n(Fo, "WritableStreamDefaultWriterWrite");
1456
- const jo = {}, Tn = class Tn$1 {
1454
+ const jo = {}, Tn = class Tn {
1457
1455
  constructor() {
1458
1456
  throw new TypeError("Illegal constructor");
1459
1457
  }
@@ -1466,12 +1464,12 @@ function Ns() {
1466
1464
  if (this._abortController === void 0) throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");
1467
1465
  return this._abortController.signal;
1468
1466
  }
1469
- error(t$1 = void 0) {
1467
+ error(t = void 0) {
1470
1468
  if (!rn(this)) throw on("error");
1471
- this._controlledWritableStream._state === "writable" && Do(this, t$1);
1469
+ this._controlledWritableStream._state === "writable" && Do(this, t);
1472
1470
  }
1473
- [jt](t$1) {
1474
- const r = this._abortAlgorithm(t$1);
1471
+ [jt](t) {
1472
+ const r = this._abortAlgorithm(t);
1475
1473
  return Xt(this), r;
1476
1474
  }
1477
1475
  [Qn]() {
@@ -1492,16 +1490,16 @@ function Ns() {
1492
1490
  return !l(e) || !Object.prototype.hasOwnProperty.call(e, "_controlledWritableStream") ? !1 : e instanceof ke;
1493
1491
  }
1494
1492
  n(rn, "IsWritableStreamDefaultController");
1495
- function Lo(e, t$1, r, s, u, c, d, m) {
1496
- t$1._controlledWritableStream = e, e._writableStreamController = t$1, t$1._queue = void 0, t$1._queueTotalSize = void 0, Be(t$1), t$1._abortReason = void 0, t$1._abortController = va(), t$1._started = !1, t$1._strategySizeAlgorithm = m, t$1._strategyHWM = d, t$1._writeAlgorithm = s, t$1._closeAlgorithm = u, t$1._abortAlgorithm = c;
1497
- tn(e, nn(t$1));
1498
- g(T(r()), () => (t$1._started = !0, er(t$1), null), (P) => (t$1._started = !0, Jr(e, P), null));
1493
+ function Lo(e, t, r, s, u, c, d, m) {
1494
+ 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;
1495
+ tn(e, nn(t));
1496
+ g(T(r()), () => (t._started = !0, er(t), null), (P) => (t._started = !0, Jr(e, P), null));
1499
1497
  }
1500
1498
  n(Lo, "SetUpWritableStreamDefaultController");
1501
- function Da(e, t$1, r, s) {
1499
+ function Da(e, t, r, s) {
1502
1500
  const u = Object.create(ke.prototype);
1503
1501
  let c, d, m, R;
1504
- t$1.start !== void 0 ? c = n(() => t$1.start(u), "startAlgorithm") : c = n(() => {}, "startAlgorithm"), t$1.write !== void 0 ? d = n((y) => t$1.write(y, u), "writeAlgorithm") : d = n(() => T(void 0), "writeAlgorithm"), t$1.close !== void 0 ? m = n(() => t$1.close(), "closeAlgorithm") : m = n(() => T(void 0), "closeAlgorithm"), t$1.abort !== void 0 ? R = n((y) => t$1.abort(y), "abortAlgorithm") : R = n(() => T(void 0), "abortAlgorithm"), Lo(e, u, c, d, m, R, r, s);
1502
+ t.start !== void 0 ? c = n(() => t.start(u), "startAlgorithm") : c = n(() => {}, "startAlgorithm"), t.write !== void 0 ? d = n((y) => t.write(y, u), "writeAlgorithm") : d = n(() => T(void 0), "writeAlgorithm"), t.close !== void 0 ? m = n(() => t.close(), "closeAlgorithm") : m = n(() => T(void 0), "closeAlgorithm"), t.abort !== void 0 ? R = n((y) => t.abort(y), "abortAlgorithm") : R = n(() => T(void 0), "abortAlgorithm"), Lo(e, u, c, d, m, R, r, s);
1505
1503
  }
1506
1504
  n(Da, "SetUpWritableStreamDefaultControllerFromUnderlyingSink");
1507
1505
  function Xt(e) {
@@ -1512,9 +1510,9 @@ function Ns() {
1512
1510
  Nr(e, jo, 0), er(e);
1513
1511
  }
1514
1512
  n(Ma, "WritableStreamDefaultControllerClose");
1515
- function Ua(e, t$1) {
1513
+ function Ua(e, t) {
1516
1514
  try {
1517
- return e._strategySizeAlgorithm(t$1);
1515
+ return e._strategySizeAlgorithm(t);
1518
1516
  } catch (r) {
1519
1517
  return Ct(e, r), 1;
1520
1518
  }
@@ -1524,9 +1522,9 @@ function Ns() {
1524
1522
  return e._strategyHWM - e._queueTotalSize;
1525
1523
  }
1526
1524
  n($o, "WritableStreamDefaultControllerGetDesiredSize");
1527
- function xa(e, t$1, r) {
1525
+ function xa(e, t, r) {
1528
1526
  try {
1529
- Nr(e, t$1, r);
1527
+ Nr(e, t, r);
1530
1528
  } catch (u) {
1531
1529
  Ct(e, u);
1532
1530
  return;
@@ -1537,10 +1535,10 @@ function Ns() {
1537
1535
  }
1538
1536
  n(xa, "WritableStreamDefaultControllerWrite");
1539
1537
  function er(e) {
1540
- const t$1 = e._controlledWritableStream;
1541
- if (!e._started || t$1._inFlightWriteRequest !== void 0) return;
1542
- if (t$1._state === "erroring") {
1543
- en(t$1);
1538
+ const t = e._controlledWritableStream;
1539
+ if (!e._started || t._inFlightWriteRequest !== void 0) return;
1540
+ if (t._state === "erroring") {
1541
+ en(t);
1544
1542
  return;
1545
1543
  }
1546
1544
  if (e._queue.length === 0) return;
@@ -1548,21 +1546,21 @@ function Ns() {
1548
1546
  s === jo ? Na(e) : Ha(e, s);
1549
1547
  }
1550
1548
  n(er, "WritableStreamDefaultControllerAdvanceQueueIfNeeded");
1551
- function Ct(e, t$1) {
1552
- e._controlledWritableStream._state === "writable" && Do(e, t$1);
1549
+ function Ct(e, t) {
1550
+ e._controlledWritableStream._state === "writable" && Do(e, t);
1553
1551
  }
1554
1552
  n(Ct, "WritableStreamDefaultControllerErrorIfNeeded");
1555
1553
  function Na(e) {
1556
- const t$1 = e._controlledWritableStream;
1557
- za(t$1), xr(e);
1554
+ const t = e._controlledWritableStream;
1555
+ za(t), xr(e);
1558
1556
  const r = e._closeAlgorithm();
1559
- Xt(e), g(r, () => (Wa(t$1), null), (s) => (qa(t$1, s), null));
1557
+ Xt(e), g(r, () => (Wa(t), null), (s) => (qa(t, s), null));
1560
1558
  }
1561
1559
  n(Na, "WritableStreamDefaultControllerProcessClose");
1562
- function Ha(e, t$1) {
1560
+ function Ha(e, t) {
1563
1561
  const r = e._controlledWritableStream;
1564
1562
  Ia(r);
1565
- g(e._writeAlgorithm(t$1), () => {
1563
+ g(e._writeAlgorithm(t), () => {
1566
1564
  Ba(r);
1567
1565
  const u = r._state;
1568
1566
  if (xr(e), !he(r) && u === "writable") tn(r, nn(e));
@@ -1574,9 +1572,9 @@ function Ns() {
1574
1572
  return $o(e) <= 0;
1575
1573
  }
1576
1574
  n(nn, "WritableStreamDefaultControllerGetBackpressure");
1577
- function Do(e, t$1) {
1575
+ function Do(e, t) {
1578
1576
  const r = e._controlledWritableStream;
1579
- Xt(e), Xr(r, t$1);
1577
+ Xt(e), Xr(r, t);
1580
1578
  }
1581
1579
  n(Do, "WritableStreamDefaultControllerError");
1582
1580
  function tr(e) {
@@ -1596,25 +1594,25 @@ function Ns() {
1596
1594
  }
1597
1595
  n(Pt, "defaultWriterLockException");
1598
1596
  function rr(e) {
1599
- e._closedPromise = A((t$1, r) => {
1600
- e._closedPromise_resolve = t$1, e._closedPromise_reject = r, e._closedPromiseState = "pending";
1597
+ e._closedPromise = A((t, r) => {
1598
+ e._closedPromise_resolve = t, e._closedPromise_reject = r, e._closedPromiseState = "pending";
1601
1599
  });
1602
1600
  }
1603
1601
  n(rr, "defaultWriterClosedPromiseInitialize");
1604
- function Mo(e, t$1) {
1605
- rr(e), an(e, t$1);
1602
+ function Mo(e, t) {
1603
+ rr(e), an(e, t);
1606
1604
  }
1607
1605
  n(Mo, "defaultWriterClosedPromiseInitializeAsRejected");
1608
1606
  function Va(e) {
1609
1607
  rr(e), Uo(e);
1610
1608
  }
1611
1609
  n(Va, "defaultWriterClosedPromiseInitializeAsResolved");
1612
- function an(e, t$1) {
1613
- e._closedPromise_reject !== void 0 && (Q(e._closedPromise), e._closedPromise_reject(t$1), e._closedPromise_resolve = void 0, e._closedPromise_reject = void 0, e._closedPromiseState = "rejected");
1610
+ function an(e, t) {
1611
+ 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");
1614
1612
  }
1615
1613
  n(an, "defaultWriterClosedPromiseReject");
1616
- function Qa(e, t$1) {
1617
- Mo(e, t$1);
1614
+ function Qa(e, t) {
1615
+ Mo(e, t);
1618
1616
  }
1619
1617
  n(Qa, "defaultWriterClosedPromiseResetToRejected");
1620
1618
  function Uo(e) {
@@ -1622,29 +1620,29 @@ function Ns() {
1622
1620
  }
1623
1621
  n(Uo, "defaultWriterClosedPromiseResolve");
1624
1622
  function nr(e) {
1625
- e._readyPromise = A((t$1, r) => {
1626
- e._readyPromise_resolve = t$1, e._readyPromise_reject = r;
1623
+ e._readyPromise = A((t, r) => {
1624
+ e._readyPromise_resolve = t, e._readyPromise_reject = r;
1627
1625
  }), e._readyPromiseState = "pending";
1628
1626
  }
1629
1627
  n(nr, "defaultWriterReadyPromiseInitialize");
1630
- function sn(e, t$1) {
1631
- nr(e), No(e, t$1);
1628
+ function sn(e, t) {
1629
+ nr(e), No(e, t);
1632
1630
  }
1633
1631
  n(sn, "defaultWriterReadyPromiseInitializeAsRejected");
1634
1632
  function xo(e) {
1635
1633
  nr(e), ln(e);
1636
1634
  }
1637
1635
  n(xo, "defaultWriterReadyPromiseInitializeAsResolved");
1638
- function No(e, t$1) {
1639
- e._readyPromise_reject !== void 0 && (Q(e._readyPromise), e._readyPromise_reject(t$1), e._readyPromise_resolve = void 0, e._readyPromise_reject = void 0, e._readyPromiseState = "rejected");
1636
+ function No(e, t) {
1637
+ 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");
1640
1638
  }
1641
1639
  n(No, "defaultWriterReadyPromiseReject");
1642
1640
  function Ya(e) {
1643
1641
  nr(e);
1644
1642
  }
1645
1643
  n(Ya, "defaultWriterReadyPromiseReset");
1646
- function Ga(e, t$1) {
1647
- sn(e, t$1);
1644
+ function Ga(e, t) {
1645
+ sn(e, t);
1648
1646
  }
1649
1647
  n(Ga, "defaultWriterReadyPromiseResetToRejected");
1650
1648
  function ln(e) {
@@ -1684,8 +1682,8 @@ function Ns() {
1684
1682
  }
1685
1683
  n(Xa, "createPolyfill");
1686
1684
  const es = Ja() || Xa();
1687
- function Ho(e, t$1, r, s, u, c) {
1688
- const d = Qe(e), m = ko(t$1);
1685
+ function Ho(e, t, r, s, u, c) {
1686
+ const d = Qe(e), m = ko(t);
1689
1687
  e._disturbed = !0;
1690
1688
  let R = !1, y = T(void 0);
1691
1689
  return A((C, P) => {
@@ -1693,7 +1691,7 @@ function Ns() {
1693
1691
  if (c !== void 0) {
1694
1692
  if (B = n(() => {
1695
1693
  const _ = c.reason !== void 0 ? c.reason : new es("Aborted", "AbortError"), E = [];
1696
- s || E.push(() => t$1._state === "writable" ? Kt(t$1, _) : T(void 0)), u || E.push(() => e._state === "readable" ? ie(e, _) : T(void 0)), N(() => Promise.all(E.map((k) => k())), !0, _);
1694
+ 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, _);
1697
1695
  }, "abortAlgorithm"), c.aborted) {
1698
1696
  B();
1699
1697
  return;
@@ -1713,14 +1711,14 @@ function Ns() {
1713
1711
  return R ? T(!0) : q(m._readyPromise, () => A((_, E) => {
1714
1712
  _t(d, {
1715
1713
  _chunkSteps: n((k) => {
1716
- y = q(Fo(m, k), void 0, f$1), _(!1);
1714
+ y = q(Fo(m, k), void 0, f), _(!1);
1717
1715
  }, "_chunkSteps"),
1718
1716
  _closeSteps: n(() => _(!0), "_closeSteps"),
1719
1717
  _errorSteps: E
1720
1718
  });
1721
1719
  }));
1722
1720
  }
1723
- if (n(nt, "pipeStep"), Te(e, d._closedPromise, (_) => (s ? J(!0, _) : N(() => Kt(t$1, _), !0, _), null)), Te(t$1, m._closedPromise, (_) => (u ? J(!0, _) : N(() => ie(e, _), !0, _), null)), x(e, d._closedPromise, () => (r ? J() : N(() => ja(m)), null)), he(t$1) || t$1._state === "closed") {
1721
+ if (n(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") {
1724
1722
  const _ = /* @__PURE__ */ new TypeError("the destination writable stream closed before all data could be piped to it");
1725
1723
  u ? J(!0, _) : N(() => ie(e, _), !0, _);
1726
1724
  }
@@ -1740,7 +1738,7 @@ function Ns() {
1740
1738
  n(x, "isOrBecomesClosed");
1741
1739
  function N(_, E, k) {
1742
1740
  if (R) return;
1743
- R = !0, t$1._state === "writable" && !he(t$1) ? V(Oe(), Y) : Y();
1741
+ R = !0, t._state === "writable" && !he(t) ? V(Oe(), Y) : Y();
1744
1742
  function Y() {
1745
1743
  return g(_(), () => Ce(E, k), (ot) => Ce(!0, ot)), null;
1746
1744
  }
@@ -1748,7 +1746,7 @@ function Ns() {
1748
1746
  }
1749
1747
  n(N, "shutdownWithAction");
1750
1748
  function J(_, E) {
1751
- R || (R = !0, t$1._state === "writable" && !he(t$1) ? V(Oe(), () => Ce(_, E)) : Ce(_, E));
1749
+ R || (R = !0, t._state === "writable" && !he(t) ? V(Oe(), () => Ce(_, E)) : Ce(_, E));
1752
1750
  }
1753
1751
  n(J, "shutdown");
1754
1752
  function Ce(_, E) {
@@ -1758,7 +1756,7 @@ function Ns() {
1758
1756
  });
1759
1757
  }
1760
1758
  n(Ho, "ReadableStreamPipeTo");
1761
- const Cn = class Cn$1 {
1759
+ const Cn = class Cn {
1762
1760
  constructor() {
1763
1761
  throw new TypeError("Illegal constructor");
1764
1762
  }
@@ -1771,26 +1769,26 @@ function Ns() {
1771
1769
  if (!Je(this)) throw new TypeError("The stream is not in a state that permits close");
1772
1770
  De(this);
1773
1771
  }
1774
- enqueue(t$1 = void 0) {
1772
+ enqueue(t = void 0) {
1775
1773
  if (!or(this)) throw ar("enqueue");
1776
1774
  if (!Je(this)) throw new TypeError("The stream is not in a state that permits enqueue");
1777
- return Ke(this, t$1);
1775
+ return Ke(this, t);
1778
1776
  }
1779
- error(t$1 = void 0) {
1777
+ error(t = void 0) {
1780
1778
  if (!or(this)) throw ar("error");
1781
- oe(this, t$1);
1779
+ oe(this, t);
1782
1780
  }
1783
- [Ar](t$1) {
1781
+ [Ar](t) {
1784
1782
  Be(this);
1785
- const r = this._cancelAlgorithm(t$1);
1783
+ const r = this._cancelAlgorithm(t);
1786
1784
  return ir(this), r;
1787
1785
  }
1788
- [Br](t$1) {
1786
+ [Br](t) {
1789
1787
  const r = this._controlledReadableStream;
1790
1788
  if (this._queue.length > 0) {
1791
1789
  const s = xr(this);
1792
- this._closeRequested && this._queue.length === 0 ? (ir(this), At(r)) : vt(this), t$1._chunkSteps(s);
1793
- } else eo(r, t$1), vt(this);
1790
+ this._closeRequested && this._queue.length === 0 ? (ir(this), At(r)) : vt(this), t._chunkSteps(s);
1791
+ } else eo(r, t), vt(this);
1794
1792
  }
1795
1793
  [kr]() {}
1796
1794
  };
@@ -1820,8 +1818,8 @@ function Ns() {
1820
1818
  }
1821
1819
  n(vt, "ReadableStreamDefaultControllerCallPullIfNeeded");
1822
1820
  function Vo(e) {
1823
- const t$1 = e._controlledReadableStream;
1824
- return !Je(e) || !e._started ? !1 : !!(qe(t$1) && $t(t$1) > 0 || fn(e) > 0);
1821
+ const t = e._controlledReadableStream;
1822
+ return !Je(e) || !e._started ? !1 : !!(qe(t) && $t(t) > 0 || fn(e) > 0);
1825
1823
  }
1826
1824
  n(Vo, "ReadableStreamDefaultControllerShouldCallPull");
1827
1825
  function ir(e) {
@@ -1830,23 +1828,23 @@ function Ns() {
1830
1828
  n(ir, "ReadableStreamDefaultControllerClearAlgorithms");
1831
1829
  function De(e) {
1832
1830
  if (!Je(e)) return;
1833
- const t$1 = e._controlledReadableStream;
1834
- e._closeRequested = !0, e._queue.length === 0 && (ir(e), At(t$1));
1831
+ const t = e._controlledReadableStream;
1832
+ e._closeRequested = !0, e._queue.length === 0 && (ir(e), At(t));
1835
1833
  }
1836
1834
  n(De, "ReadableStreamDefaultControllerClose");
1837
- function Ke(e, t$1) {
1835
+ function Ke(e, t) {
1838
1836
  if (!Je(e)) return;
1839
1837
  const r = e._controlledReadableStream;
1840
- if (qe(r) && $t(r) > 0) Lr(r, t$1, !1);
1838
+ if (qe(r) && $t(r) > 0) Lr(r, t, !1);
1841
1839
  else {
1842
1840
  let s;
1843
1841
  try {
1844
- s = e._strategySizeAlgorithm(t$1);
1842
+ s = e._strategySizeAlgorithm(t);
1845
1843
  } catch (u) {
1846
1844
  throw oe(e, u), u;
1847
1845
  }
1848
1846
  try {
1849
- Nr(e, t$1, s);
1847
+ Nr(e, t, s);
1850
1848
  } catch (u) {
1851
1849
  throw oe(e, u), u;
1852
1850
  }
@@ -1854,14 +1852,14 @@ function Ns() {
1854
1852
  vt(e);
1855
1853
  }
1856
1854
  n(Ke, "ReadableStreamDefaultControllerEnqueue");
1857
- function oe(e, t$1) {
1855
+ function oe(e, t) {
1858
1856
  const r = e._controlledReadableStream;
1859
- r._state === "readable" && (Be(e), ir(e), Zo(r, t$1));
1857
+ r._state === "readable" && (Be(e), ir(e), Zo(r, t));
1860
1858
  }
1861
1859
  n(oe, "ReadableStreamDefaultControllerError");
1862
1860
  function fn(e) {
1863
- const t$1 = e._controlledReadableStream._state;
1864
- return t$1 === "errored" ? null : t$1 === "closed" ? 0 : e._strategyHWM - e._queueTotalSize;
1861
+ const t = e._controlledReadableStream._state;
1862
+ return t === "errored" ? null : t === "closed" ? 0 : e._strategyHWM - e._queueTotalSize;
1865
1863
  }
1866
1864
  n(fn, "ReadableStreamDefaultControllerGetDesiredSize");
1867
1865
  function ts(e) {
@@ -1869,30 +1867,30 @@ function Ns() {
1869
1867
  }
1870
1868
  n(ts, "ReadableStreamDefaultControllerHasBackpressure");
1871
1869
  function Je(e) {
1872
- const t$1 = e._controlledReadableStream._state;
1873
- return !e._closeRequested && t$1 === "readable";
1870
+ const t = e._controlledReadableStream._state;
1871
+ return !e._closeRequested && t === "readable";
1874
1872
  }
1875
1873
  n(Je, "ReadableStreamDefaultControllerCanCloseOrEnqueue");
1876
- function Qo(e, t$1, r, s, u, c, d) {
1877
- t$1._controlledReadableStream = e, t$1._queue = void 0, t$1._queueTotalSize = void 0, Be(t$1), t$1._started = !1, t$1._closeRequested = !1, t$1._pullAgain = !1, t$1._pulling = !1, t$1._strategySizeAlgorithm = d, t$1._strategyHWM = c, t$1._pullAlgorithm = s, t$1._cancelAlgorithm = u, e._readableStreamController = t$1;
1878
- g(T(r()), () => (t$1._started = !0, vt(t$1), null), (R) => (oe(t$1, R), null));
1874
+ function Qo(e, t, r, s, u, c, d) {
1875
+ 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;
1876
+ g(T(r()), () => (t._started = !0, vt(t), null), (R) => (oe(t, R), null));
1879
1877
  }
1880
1878
  n(Qo, "SetUpReadableStreamDefaultController");
1881
- function rs(e, t$1, r, s) {
1879
+ function rs(e, t, r, s) {
1882
1880
  const u = Object.create(ne.prototype);
1883
1881
  let c, d, m;
1884
- t$1.start !== void 0 ? c = n(() => t$1.start(u), "startAlgorithm") : c = n(() => {}, "startAlgorithm"), t$1.pull !== void 0 ? d = n(() => t$1.pull(u), "pullAlgorithm") : d = n(() => T(void 0), "pullAlgorithm"), t$1.cancel !== void 0 ? m = n((R) => t$1.cancel(R), "cancelAlgorithm") : m = n(() => T(void 0), "cancelAlgorithm"), Qo(e, u, c, d, m, r, s);
1882
+ t.start !== void 0 ? c = n(() => t.start(u), "startAlgorithm") : c = n(() => {}, "startAlgorithm"), t.pull !== void 0 ? d = n(() => t.pull(u), "pullAlgorithm") : d = n(() => T(void 0), "pullAlgorithm"), t.cancel !== void 0 ? m = n((R) => t.cancel(R), "cancelAlgorithm") : m = n(() => T(void 0), "cancelAlgorithm"), Qo(e, u, c, d, m, r, s);
1885
1883
  }
1886
1884
  n(rs, "SetUpReadableStreamDefaultControllerFromUnderlyingSource");
1887
1885
  function ar(e) {
1888
1886
  return /* @__PURE__ */ new TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`);
1889
1887
  }
1890
1888
  n(ar, "defaultControllerBrandCheckException$1");
1891
- function ns(e, t$1) {
1889
+ function ns(e, t) {
1892
1890
  return Ie(e._readableStreamController) ? is(e) : os(e);
1893
1891
  }
1894
1892
  n(ns, "ReadableStreamTee");
1895
- function os(e, t$1) {
1893
+ function os(e, t) {
1896
1894
  const r = Qe(e);
1897
1895
  let s = !1, u = !1, c = !1, d = !1, m, R, y, C, P;
1898
1896
  const B = A((x) => {
@@ -1937,16 +1935,16 @@ function Ns() {
1937
1935
  }
1938
1936
  n(os, "ReadableStreamDefaultTee");
1939
1937
  function is(e) {
1940
- let t$1 = Qe(e), r = !1, s = !1, u = !1, c = !1, d = !1, m, R, y, C, P;
1938
+ let t = Qe(e), r = !1, s = !1, u = !1, c = !1, d = !1, m, R, y, C, P;
1941
1939
  const B = A((_) => {
1942
1940
  P = _;
1943
1941
  });
1944
1942
  function ae(_) {
1945
- I(_._closedPromise, (E) => (_ !== t$1 || (K(y._readableStreamController, E), K(C._readableStreamController, E), (!c || !d) && P(void 0)), null));
1943
+ I(_._closedPromise, (E) => (_ !== t || (K(y._readableStreamController, E), K(C._readableStreamController, E), (!c || !d) && P(void 0)), null));
1946
1944
  }
1947
1945
  n(ae, "forwardReaderError");
1948
1946
  function nt() {
1949
- je(t$1) && (_e(t$1), t$1 = Qe(e), ae(t$1)), _t(t$1, {
1947
+ je(t) && (_e(t), t = Qe(e), ae(t)), _t(t, {
1950
1948
  _chunkSteps: n((E) => {
1951
1949
  ge(() => {
1952
1950
  s = !1, u = !1;
@@ -1971,9 +1969,9 @@ function Ns() {
1971
1969
  }
1972
1970
  n(nt, "pullWithDefaultReader");
1973
1971
  function Oe(_, E) {
1974
- Ee(t$1) && (_e(t$1), t$1 = Co(e), ae(t$1));
1972
+ Ee(t) && (_e(t), t = Co(e), ae(t));
1975
1973
  const k = E ? C : y, Y = E ? y : C;
1976
- Eo(t$1, _, 1, {
1974
+ Eo(t, _, 1, {
1977
1975
  _chunkSteps: n((it) => {
1978
1976
  ge(() => {
1979
1977
  s = !1, u = !1;
@@ -2034,7 +2032,7 @@ function Ns() {
2034
2032
  }
2035
2033
  n(J, "cancel2Algorithm");
2036
2034
  function Ce() {}
2037
- return n(Ce, "startAlgorithm"), y = Go(Ce, Te, N), C = Go(Ce, x, J), ae(t$1), [y, C];
2035
+ return n(Ce, "startAlgorithm"), y = Go(Ce, Te, N), C = Go(Ce, x, J), ae(t), [y, C];
2038
2036
  }
2039
2037
  n(is, "ReadableByteStreamTee");
2040
2038
  function as(e) {
@@ -2046,8 +2044,8 @@ function Ns() {
2046
2044
  }
2047
2045
  n(ss, "ReadableStreamFrom");
2048
2046
  function ls(e) {
2049
- let t$1;
2050
- const r = uo(e, "async"), s = f$1;
2047
+ let t;
2048
+ const r = uo(e, "async"), s = f;
2051
2049
  function u() {
2052
2050
  let d;
2053
2051
  try {
@@ -2057,10 +2055,10 @@ function Ns() {
2057
2055
  }
2058
2056
  return F(T(d), (R) => {
2059
2057
  if (!l(R)) throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object");
2060
- if (ea(R)) De(t$1._readableStreamController);
2058
+ if (ea(R)) De(t._readableStreamController);
2061
2059
  else {
2062
2060
  const C = ta(R);
2063
- Ke(t$1._readableStreamController, C);
2061
+ Ke(t._readableStreamController, C);
2064
2062
  }
2065
2063
  });
2066
2064
  }
@@ -2084,12 +2082,12 @@ function Ns() {
2084
2082
  if (!l(P)) throw new TypeError("The promise returned by the iterator.return() method must fulfill with an object");
2085
2083
  });
2086
2084
  }
2087
- return n(c, "cancelAlgorithm"), t$1 = Et(s, u, c, 0), t$1;
2085
+ return n(c, "cancelAlgorithm"), t = Et(s, u, c, 0), t;
2088
2086
  }
2089
2087
  n(ls, "ReadableStreamFromIterable");
2090
2088
  function us(e) {
2091
- let t$1;
2092
- const r = f$1;
2089
+ let t;
2090
+ const r = f;
2093
2091
  function s() {
2094
2092
  let c;
2095
2093
  try {
@@ -2099,10 +2097,10 @@ function Ns() {
2099
2097
  }
2100
2098
  return F(c, (d) => {
2101
2099
  if (!l(d)) throw new TypeError("The promise returned by the reader.read() method must fulfill with an object");
2102
- if (d.done) De(t$1._readableStreamController);
2100
+ if (d.done) De(t._readableStreamController);
2103
2101
  else {
2104
2102
  const m = d.value;
2105
- Ke(t$1._readableStreamController, m);
2103
+ Ke(t._readableStreamController, m);
2106
2104
  }
2107
2105
  });
2108
2106
  }
@@ -2114,46 +2112,46 @@ function Ns() {
2114
2112
  return b(d);
2115
2113
  }
2116
2114
  }
2117
- return n(u, "cancelAlgorithm"), t$1 = Et(r, s, u, 0), t$1;
2115
+ return n(u, "cancelAlgorithm"), t = Et(r, s, u, 0), t;
2118
2116
  }
2119
2117
  n(us, "ReadableStreamFromDefaultReader");
2120
- function fs$1(e, t$1) {
2121
- ue(e, t$1);
2118
+ function fs(e, t) {
2119
+ ue(e, t);
2122
2120
  const r = e, s = r?.autoAllocateChunkSize, u = r?.cancel, c = r?.pull, d = r?.start, m = r?.type;
2123
2121
  return {
2124
- autoAllocateChunkSize: s === void 0 ? void 0 : Fr(s, `${t$1} has member 'autoAllocateChunkSize' that`),
2125
- cancel: u === void 0 ? void 0 : cs(u, r, `${t$1} has member 'cancel' that`),
2126
- pull: c === void 0 ? void 0 : ds(c, r, `${t$1} has member 'pull' that`),
2127
- start: d === void 0 ? void 0 : hs(d, r, `${t$1} has member 'start' that`),
2128
- type: m === void 0 ? void 0 : ps(m, `${t$1} has member 'type' that`)
2122
+ autoAllocateChunkSize: s === void 0 ? void 0 : Fr(s, `${t} has member 'autoAllocateChunkSize' that`),
2123
+ cancel: u === void 0 ? void 0 : cs(u, r, `${t} has member 'cancel' that`),
2124
+ pull: c === void 0 ? void 0 : ds(c, r, `${t} has member 'pull' that`),
2125
+ start: d === void 0 ? void 0 : hs(d, r, `${t} has member 'start' that`),
2126
+ type: m === void 0 ? void 0 : ps(m, `${t} has member 'type' that`)
2129
2127
  };
2130
2128
  }
2131
- n(fs$1, "convertUnderlyingDefaultOrByteSource");
2132
- function cs(e, t$1, r) {
2133
- return Z(e, r), (s) => j(e, t$1, [s]);
2129
+ n(fs, "convertUnderlyingDefaultOrByteSource");
2130
+ function cs(e, t, r) {
2131
+ return Z(e, r), (s) => j(e, t, [s]);
2134
2132
  }
2135
2133
  n(cs, "convertUnderlyingSourceCancelCallback");
2136
- function ds(e, t$1, r) {
2137
- return Z(e, r), (s) => j(e, t$1, [s]);
2134
+ function ds(e, t, r) {
2135
+ return Z(e, r), (s) => j(e, t, [s]);
2138
2136
  }
2139
2137
  n(ds, "convertUnderlyingSourcePullCallback");
2140
- function hs(e, t$1, r) {
2141
- return Z(e, r), (s) => z(e, t$1, [s]);
2138
+ function hs(e, t, r) {
2139
+ return Z(e, r), (s) => z(e, t, [s]);
2142
2140
  }
2143
2141
  n(hs, "convertUnderlyingSourceStartCallback");
2144
- function ps(e, t$1) {
2145
- if (e = `${e}`, e !== "bytes") throw new TypeError(`${t$1} '${e}' is not a valid enumeration value for ReadableStreamType`);
2142
+ function ps(e, t) {
2143
+ if (e = `${e}`, e !== "bytes") throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamType`);
2146
2144
  return e;
2147
2145
  }
2148
2146
  n(ps, "convertReadableStreamType");
2149
- function bs(e, t$1) {
2150
- return ue(e, t$1), { preventCancel: !!e?.preventCancel };
2147
+ function bs(e, t) {
2148
+ return ue(e, t), { preventCancel: !!e?.preventCancel };
2151
2149
  }
2152
2150
  n(bs, "convertIteratorOptions");
2153
- function Yo(e, t$1) {
2154
- ue(e, t$1);
2151
+ function Yo(e, t) {
2152
+ ue(e, t);
2155
2153
  const r = e?.preventAbort, s = e?.preventCancel, u = e?.preventClose, c = e?.signal;
2156
- return c !== void 0 && ms(c, `${t$1} has member 'signal' that`), {
2154
+ return c !== void 0 && ms(c, `${t} has member 'signal' that`), {
2157
2155
  preventAbort: !!r,
2158
2156
  preventCancel: !!s,
2159
2157
  preventClose: !!u,
@@ -2161,25 +2159,25 @@ function Ns() {
2161
2159
  };
2162
2160
  }
2163
2161
  n(Yo, "convertPipeOptions");
2164
- function ms(e, t$1) {
2165
- if (!Ca(e)) throw new TypeError(`${t$1} is not an AbortSignal.`);
2162
+ function ms(e, t) {
2163
+ if (!Ca(e)) throw new TypeError(`${t} is not an AbortSignal.`);
2166
2164
  }
2167
2165
  n(ms, "assertAbortSignal");
2168
- function ys(e, t$1) {
2169
- ue(e, t$1);
2166
+ function ys(e, t) {
2167
+ ue(e, t);
2170
2168
  const r = e?.readable;
2171
- zr(r, "readable", "ReadableWritablePair"), jr(r, `${t$1} has member 'readable' that`);
2169
+ zr(r, "readable", "ReadableWritablePair"), jr(r, `${t} has member 'readable' that`);
2172
2170
  const s = e?.writable;
2173
- return zr(s, "writable", "ReadableWritablePair"), Bo(s, `${t$1} has member 'writable' that`), {
2171
+ return zr(s, "writable", "ReadableWritablePair"), Bo(s, `${t} has member 'writable' that`), {
2174
2172
  readable: r,
2175
2173
  writable: s
2176
2174
  };
2177
2175
  }
2178
2176
  n(ys, "convertReadableWritablePair");
2179
- const Pn = class Pn$1 {
2180
- constructor(t$1 = {}, r = {}) {
2181
- t$1 === void 0 ? t$1 = null : Jn(t$1, "First parameter");
2182
- const s = Zt(r, "Second parameter"), u = fs$1(t$1, "First parameter");
2177
+ const Pn = class Pn {
2178
+ constructor(t = {}, r = {}) {
2179
+ t === void 0 ? t = null : Jn(t, "First parameter");
2180
+ const s = Zt(r, "Second parameter"), u = fs(t, "First parameter");
2183
2181
  if (cn(this), u.type === "bytes") {
2184
2182
  if (s.size !== void 0) throw new RangeError("The strategy for a byte stream cannot have a size function");
2185
2183
  const c = Tt(s, 0);
@@ -2193,47 +2191,47 @@ function Ns() {
2193
2191
  if (!We(this)) throw Me("locked");
2194
2192
  return qe(this);
2195
2193
  }
2196
- cancel(t$1 = void 0) {
2197
- return We(this) ? qe(this) ? b(/* @__PURE__ */ new TypeError("Cannot cancel a stream that already has a reader")) : ie(this, t$1) : b(Me("cancel"));
2194
+ cancel(t = void 0) {
2195
+ return We(this) ? qe(this) ? b(/* @__PURE__ */ new TypeError("Cannot cancel a stream that already has a reader")) : ie(this, t) : b(Me("cancel"));
2198
2196
  }
2199
- getReader(t$1 = void 0) {
2197
+ getReader(t = void 0) {
2200
2198
  if (!We(this)) throw Me("getReader");
2201
- return ha(t$1, "First parameter").mode === void 0 ? Qe(this) : Co(this);
2199
+ return ha(t, "First parameter").mode === void 0 ? Qe(this) : Co(this);
2202
2200
  }
2203
- pipeThrough(t$1, r = {}) {
2201
+ pipeThrough(t, r = {}) {
2204
2202
  if (!We(this)) throw Me("pipeThrough");
2205
- Se(t$1, 1, "pipeThrough");
2206
- const s = ys(t$1, "First parameter"), u = Yo(r, "Second parameter");
2203
+ Se(t, 1, "pipeThrough");
2204
+ const s = ys(t, "First parameter"), u = Yo(r, "Second parameter");
2207
2205
  if (qe(this)) throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");
2208
2206
  if (Ze(s.writable)) throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");
2209
2207
  return Q(Ho(this, s.writable, u.preventClose, u.preventAbort, u.preventCancel, u.signal)), s.readable;
2210
2208
  }
2211
- pipeTo(t$1, r = {}) {
2209
+ pipeTo(t, r = {}) {
2212
2210
  if (!We(this)) return b(Me("pipeTo"));
2213
- if (t$1 === void 0) return b("Parameter 1 is required in 'pipeTo'.");
2214
- if (!Ge(t$1)) return b(/* @__PURE__ */ new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));
2211
+ if (t === void 0) return b("Parameter 1 is required in 'pipeTo'.");
2212
+ if (!Ge(t)) return b(/* @__PURE__ */ new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));
2215
2213
  let s;
2216
2214
  try {
2217
2215
  s = Yo(r, "Second parameter");
2218
2216
  } catch (u) {
2219
2217
  return b(u);
2220
2218
  }
2221
- return qe(this) ? b(/* @__PURE__ */ new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")) : Ze(t$1) ? b(/* @__PURE__ */ new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")) : Ho(this, t$1, s.preventClose, s.preventAbort, s.preventCancel, s.signal);
2219
+ 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);
2222
2220
  }
2223
2221
  tee() {
2224
2222
  if (!We(this)) throw Me("tee");
2225
2223
  return St(ns(this));
2226
2224
  }
2227
- values(t$1 = void 0) {
2225
+ values(t = void 0) {
2228
2226
  if (!We(this)) throw Me("values");
2229
- const r = bs(t$1, "First parameter");
2227
+ const r = bs(t, "First parameter");
2230
2228
  return Ki(this, r.preventCancel);
2231
2229
  }
2232
- [Ur](t$1) {
2233
- return this.values(t$1);
2230
+ [Ur](t) {
2231
+ return this.values(t);
2234
2232
  }
2235
- static from(t$1) {
2236
- return ss(t$1);
2233
+ static from(t) {
2234
+ return ss(t);
2237
2235
  }
2238
2236
  };
2239
2237
  n(Pn, "ReadableStream");
@@ -2254,16 +2252,16 @@ function Ns() {
2254
2252
  writable: !0,
2255
2253
  configurable: !0
2256
2254
  });
2257
- function Et(e, t$1, r, s = 1, u = () => 1) {
2255
+ function Et(e, t, r, s = 1, u = () => 1) {
2258
2256
  const c = Object.create(L.prototype);
2259
2257
  cn(c);
2260
- return Qo(c, Object.create(ne.prototype), e, t$1, r, s, u), c;
2258
+ return Qo(c, Object.create(ne.prototype), e, t, r, s, u), c;
2261
2259
  }
2262
2260
  n(Et, "CreateReadableStream");
2263
- function Go(e, t$1, r) {
2261
+ function Go(e, t, r) {
2264
2262
  const s = Object.create(L.prototype);
2265
2263
  cn(s);
2266
- return To(s, Object.create(te.prototype), e, t$1, r, 0, void 0), s;
2264
+ return To(s, Object.create(te.prototype), e, t, r, 0, void 0), s;
2267
2265
  }
2268
2266
  n(Go, "CreateReadableByteStream");
2269
2267
  function cn(e) {
@@ -2278,7 +2276,7 @@ function Ns() {
2278
2276
  return e._reader !== void 0;
2279
2277
  }
2280
2278
  n(qe, "IsReadableStreamLocked");
2281
- function ie(e, t$1) {
2279
+ function ie(e, t) {
2282
2280
  if (e._disturbed = !0, e._state === "closed") return T(void 0);
2283
2281
  if (e._state === "errored") return b(e._storedError);
2284
2282
  At(e);
@@ -2289,41 +2287,41 @@ function Ns() {
2289
2287
  c._closeSteps(void 0);
2290
2288
  });
2291
2289
  }
2292
- return F(e._readableStreamController[Ar](t$1), f$1);
2290
+ return F(e._readableStreamController[Ar](t), f);
2293
2291
  }
2294
2292
  n(ie, "ReadableStreamCancel");
2295
2293
  function At(e) {
2296
2294
  e._state = "closed";
2297
- const t$1 = e._reader;
2298
- if (t$1 !== void 0 && (Zn(t$1), Ee(t$1))) {
2299
- const r = t$1._readRequests;
2300
- t$1._readRequests = new D(), r.forEach((s) => {
2295
+ const t = e._reader;
2296
+ if (t !== void 0 && (Zn(t), Ee(t))) {
2297
+ const r = t._readRequests;
2298
+ t._readRequests = new D(), r.forEach((s) => {
2301
2299
  s._closeSteps();
2302
2300
  });
2303
2301
  }
2304
2302
  }
2305
2303
  n(At, "ReadableStreamClose");
2306
- function Zo(e, t$1) {
2307
- e._state = "errored", e._storedError = t$1;
2304
+ function Zo(e, t) {
2305
+ e._state = "errored", e._storedError = t;
2308
2306
  const r = e._reader;
2309
- r !== void 0 && (Or(r, t$1), Ee(r) ? ro(r, t$1) : Ao(r, t$1));
2307
+ r !== void 0 && (Or(r, t), Ee(r) ? ro(r, t) : Ao(r, t));
2310
2308
  }
2311
2309
  n(Zo, "ReadableStreamError");
2312
2310
  function Me(e) {
2313
2311
  return /* @__PURE__ */ new TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`);
2314
2312
  }
2315
2313
  n(Me, "streamBrandCheckException$1");
2316
- function Ko(e, t$1) {
2317
- ue(e, t$1);
2314
+ function Ko(e, t) {
2315
+ ue(e, t);
2318
2316
  const r = e?.highWaterMark;
2319
2317
  return zr(r, "highWaterMark", "QueuingStrategyInit"), { highWaterMark: Ir(r) };
2320
2318
  }
2321
2319
  n(Ko, "convertQueuingStrategyInit");
2322
2320
  const Jo = n((e) => e.byteLength, "byteLengthSizeFunction");
2323
2321
  h(Jo, "size");
2324
- const vn = class vn$1 {
2325
- constructor(t$1) {
2326
- Se(t$1, 1, "ByteLengthQueuingStrategy"), t$1 = Ko(t$1, "First parameter"), this._byteLengthQueuingStrategyHighWaterMark = t$1.highWaterMark;
2322
+ const vn = class vn {
2323
+ constructor(t) {
2324
+ Se(t, 1, "ByteLengthQueuingStrategy"), t = Ko(t, "First parameter"), this._byteLengthQueuingStrategyHighWaterMark = t.highWaterMark;
2327
2325
  }
2328
2326
  get highWaterMark() {
2329
2327
  if (!ei(this)) throw Xo("highWaterMark");
@@ -2353,9 +2351,9 @@ function Ns() {
2353
2351
  n(ei, "IsByteLengthQueuingStrategy");
2354
2352
  const ti = n(() => 1, "countSizeFunction");
2355
2353
  h(ti, "size");
2356
- const En = class En$1 {
2357
- constructor(t$1) {
2358
- Se(t$1, 1, "CountQueuingStrategy"), t$1 = Ko(t$1, "First parameter"), this._countQueuingStrategyHighWaterMark = t$1.highWaterMark;
2354
+ const En = class En {
2355
+ constructor(t) {
2356
+ Se(t, 1, "CountQueuingStrategy"), t = Ko(t, "First parameter"), this._countQueuingStrategyHighWaterMark = t.highWaterMark;
2359
2357
  }
2360
2358
  get highWaterMark() {
2361
2359
  if (!ni(this)) throw ri("highWaterMark");
@@ -2383,39 +2381,39 @@ function Ns() {
2383
2381
  return !l(e) || !Object.prototype.hasOwnProperty.call(e, "_countQueuingStrategyHighWaterMark") ? !1 : e instanceof et;
2384
2382
  }
2385
2383
  n(ni, "IsCountQueuingStrategy");
2386
- function gs(e, t$1) {
2387
- ue(e, t$1);
2384
+ function gs(e, t) {
2385
+ ue(e, t);
2388
2386
  const r = e?.cancel, s = e?.flush, u = e?.readableType, c = e?.start, d = e?.transform, m = e?.writableType;
2389
2387
  return {
2390
- cancel: r === void 0 ? void 0 : Rs(r, e, `${t$1} has member 'cancel' that`),
2391
- flush: s === void 0 ? void 0 : _s(s, e, `${t$1} has member 'flush' that`),
2388
+ cancel: r === void 0 ? void 0 : Rs(r, e, `${t} has member 'cancel' that`),
2389
+ flush: s === void 0 ? void 0 : _s(s, e, `${t} has member 'flush' that`),
2392
2390
  readableType: u,
2393
- start: c === void 0 ? void 0 : Ss(c, e, `${t$1} has member 'start' that`),
2394
- transform: d === void 0 ? void 0 : ws(d, e, `${t$1} has member 'transform' that`),
2391
+ start: c === void 0 ? void 0 : Ss(c, e, `${t} has member 'start' that`),
2392
+ transform: d === void 0 ? void 0 : ws(d, e, `${t} has member 'transform' that`),
2395
2393
  writableType: m
2396
2394
  };
2397
2395
  }
2398
2396
  n(gs, "convertTransformer");
2399
- function _s(e, t$1, r) {
2400
- return Z(e, r), (s) => j(e, t$1, [s]);
2397
+ function _s(e, t, r) {
2398
+ return Z(e, r), (s) => j(e, t, [s]);
2401
2399
  }
2402
2400
  n(_s, "convertTransformerFlushCallback");
2403
- function Ss(e, t$1, r) {
2404
- return Z(e, r), (s) => z(e, t$1, [s]);
2401
+ function Ss(e, t, r) {
2402
+ return Z(e, r), (s) => z(e, t, [s]);
2405
2403
  }
2406
2404
  n(Ss, "convertTransformerStartCallback");
2407
- function ws(e, t$1, r) {
2408
- return Z(e, r), (s, u) => j(e, t$1, [s, u]);
2405
+ function ws(e, t, r) {
2406
+ return Z(e, r), (s, u) => j(e, t, [s, u]);
2409
2407
  }
2410
2408
  n(ws, "convertTransformerTransformCallback");
2411
- function Rs(e, t$1, r) {
2412
- return Z(e, r), (s) => j(e, t$1, [s]);
2409
+ function Rs(e, t, r) {
2410
+ return Z(e, r), (s) => j(e, t, [s]);
2413
2411
  }
2414
2412
  n(Rs, "convertTransformerCancelCallback");
2415
- const An = class An$1 {
2416
- constructor(t$1 = {}, r = {}, s = {}) {
2417
- t$1 === void 0 && (t$1 = null);
2418
- const u = Zt(r, "Second parameter"), c = Zt(s, "Third parameter"), d = gs(t$1, "First parameter");
2413
+ const An = class An {
2414
+ constructor(t = {}, r = {}, s = {}) {
2415
+ t === void 0 && (t = null);
2416
+ const u = Zt(r, "Second parameter"), c = Zt(s, "Third parameter"), d = gs(t, "First parameter");
2419
2417
  if (d.readableType !== void 0) throw new RangeError("Invalid readableType specified");
2420
2418
  if (d.writableType !== void 0) throw new RangeError("Invalid writableType specified");
2421
2419
  const m = Tt(c, 0), R = Gt(c), y = Tt(u, 1), C = Gt(u);
@@ -2443,9 +2441,9 @@ function Ns() {
2443
2441
  value: "TransformStream",
2444
2442
  configurable: !0
2445
2443
  });
2446
- function Ts(e, t$1, r, s, u, c) {
2444
+ function Ts(e, t, r, s, u, c) {
2447
2445
  function d() {
2448
- return t$1;
2446
+ return t;
2449
2447
  }
2450
2448
  n(d, "startAlgorithm");
2451
2449
  function m(B) {
@@ -2474,40 +2472,40 @@ function Ns() {
2474
2472
  return !l(e) || !Object.prototype.hasOwnProperty.call(e, "_transformStreamController") ? !1 : e instanceof tt;
2475
2473
  }
2476
2474
  n(oi, "IsTransformStream");
2477
- function ii(e, t$1) {
2478
- oe(e._readable._readableStreamController, t$1), dn(e, t$1);
2475
+ function ii(e, t) {
2476
+ oe(e._readable._readableStreamController, t), dn(e, t);
2479
2477
  }
2480
2478
  n(ii, "TransformStreamError");
2481
- function dn(e, t$1) {
2482
- ur(e._transformStreamController), Ct(e._writable._writableStreamController, t$1), hn(e);
2479
+ function dn(e, t) {
2480
+ ur(e._transformStreamController), Ct(e._writable._writableStreamController, t), hn(e);
2483
2481
  }
2484
2482
  n(dn, "TransformStreamErrorWritableAndUnblockWrite");
2485
2483
  function hn(e) {
2486
2484
  e._backpressure && sr(e, !1);
2487
2485
  }
2488
2486
  n(hn, "TransformStreamUnblockWrite");
2489
- function sr(e, t$1) {
2487
+ function sr(e, t) {
2490
2488
  e._backpressureChangePromise !== void 0 && e._backpressureChangePromise_resolve(), e._backpressureChangePromise = A((r) => {
2491
2489
  e._backpressureChangePromise_resolve = r;
2492
- }), e._backpressure = t$1;
2490
+ }), e._backpressure = t;
2493
2491
  }
2494
2492
  n(sr, "TransformStreamSetBackpressure");
2495
- const Bn = class Bn$1 {
2493
+ const Bn = class Bn {
2496
2494
  constructor() {
2497
2495
  throw new TypeError("Illegal constructor");
2498
2496
  }
2499
2497
  get desiredSize() {
2500
2498
  if (!lr(this)) throw fr("desiredSize");
2501
- const t$1 = this._controlledTransformStream._readable._readableStreamController;
2502
- return fn(t$1);
2499
+ const t = this._controlledTransformStream._readable._readableStreamController;
2500
+ return fn(t);
2503
2501
  }
2504
- enqueue(t$1 = void 0) {
2502
+ enqueue(t = void 0) {
2505
2503
  if (!lr(this)) throw fr("enqueue");
2506
- ai(this, t$1);
2504
+ ai(this, t);
2507
2505
  }
2508
- error(t$1 = void 0) {
2506
+ error(t = void 0) {
2509
2507
  if (!lr(this)) throw fr("error");
2510
- vs(this, t$1);
2508
+ vs(this, t);
2511
2509
  }
2512
2510
  terminate() {
2513
2511
  if (!lr(this)) throw fr("terminate");
@@ -2529,101 +2527,101 @@ function Ns() {
2529
2527
  return !l(e) || !Object.prototype.hasOwnProperty.call(e, "_controlledTransformStream") ? !1 : e instanceof pe;
2530
2528
  }
2531
2529
  n(lr, "IsTransformStreamDefaultController");
2532
- function Cs(e, t$1, r, s, u) {
2533
- t$1._controlledTransformStream = e, e._transformStreamController = t$1, t$1._transformAlgorithm = r, t$1._flushAlgorithm = s, t$1._cancelAlgorithm = u, t$1._finishPromise = void 0, t$1._finishPromise_resolve = void 0, t$1._finishPromise_reject = void 0;
2530
+ function Cs(e, t, r, s, u) {
2531
+ 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;
2534
2532
  }
2535
2533
  n(Cs, "SetUpTransformStreamDefaultController");
2536
- function Ps(e, t$1) {
2534
+ function Ps(e, t) {
2537
2535
  const r = Object.create(pe.prototype);
2538
2536
  let s, u, c;
2539
- t$1.transform !== void 0 ? s = n((d) => t$1.transform(d, r), "transformAlgorithm") : s = n((d) => {
2537
+ t.transform !== void 0 ? s = n((d) => t.transform(d, r), "transformAlgorithm") : s = n((d) => {
2540
2538
  try {
2541
2539
  return ai(r, d), T(void 0);
2542
2540
  } catch (m) {
2543
2541
  return b(m);
2544
2542
  }
2545
- }, "transformAlgorithm"), t$1.flush !== void 0 ? u = n(() => t$1.flush(r), "flushAlgorithm") : u = n(() => T(void 0), "flushAlgorithm"), t$1.cancel !== void 0 ? c = n((d) => t$1.cancel(d), "cancelAlgorithm") : c = n(() => T(void 0), "cancelAlgorithm"), Cs(e, r, s, u, c);
2543
+ }, "transformAlgorithm"), t.flush !== void 0 ? u = n(() => t.flush(r), "flushAlgorithm") : u = n(() => T(void 0), "flushAlgorithm"), t.cancel !== void 0 ? c = n((d) => t.cancel(d), "cancelAlgorithm") : c = n(() => T(void 0), "cancelAlgorithm"), Cs(e, r, s, u, c);
2546
2544
  }
2547
2545
  n(Ps, "SetUpTransformStreamDefaultControllerFromTransformer");
2548
2546
  function ur(e) {
2549
2547
  e._transformAlgorithm = void 0, e._flushAlgorithm = void 0, e._cancelAlgorithm = void 0;
2550
2548
  }
2551
2549
  n(ur, "TransformStreamDefaultControllerClearAlgorithms");
2552
- function ai(e, t$1) {
2550
+ function ai(e, t) {
2553
2551
  const r = e._controlledTransformStream, s = r._readable._readableStreamController;
2554
2552
  if (!Je(s)) throw new TypeError("Readable side is not in a state that permits enqueue");
2555
2553
  try {
2556
- Ke(s, t$1);
2554
+ Ke(s, t);
2557
2555
  } catch (c) {
2558
2556
  throw dn(r, c), r._readable._storedError;
2559
2557
  }
2560
2558
  ts(s) !== r._backpressure && sr(r, !0);
2561
2559
  }
2562
2560
  n(ai, "TransformStreamDefaultControllerEnqueue");
2563
- function vs(e, t$1) {
2564
- ii(e._controlledTransformStream, t$1);
2561
+ function vs(e, t) {
2562
+ ii(e._controlledTransformStream, t);
2565
2563
  }
2566
2564
  n(vs, "TransformStreamDefaultControllerError");
2567
- function si(e, t$1) {
2568
- return F(e._transformAlgorithm(t$1), void 0, (s) => {
2565
+ function si(e, t) {
2566
+ return F(e._transformAlgorithm(t), void 0, (s) => {
2569
2567
  throw ii(e._controlledTransformStream, s), s;
2570
2568
  });
2571
2569
  }
2572
2570
  n(si, "TransformStreamDefaultControllerPerformTransform");
2573
2571
  function Es(e) {
2574
- const t$1 = e._controlledTransformStream, r = t$1._readable._readableStreamController;
2572
+ const t = e._controlledTransformStream, r = t._readable._readableStreamController;
2575
2573
  De(r);
2576
- dn(t$1, /* @__PURE__ */ new TypeError("TransformStream terminated"));
2574
+ dn(t, /* @__PURE__ */ new TypeError("TransformStream terminated"));
2577
2575
  }
2578
2576
  n(Es, "TransformStreamDefaultControllerTerminate");
2579
- function As(e, t$1) {
2577
+ function As(e, t) {
2580
2578
  const r = e._transformStreamController;
2581
2579
  if (e._backpressure) {
2582
2580
  const s = e._backpressureChangePromise;
2583
2581
  return F(s, () => {
2584
2582
  const u = e._writable;
2585
2583
  if (u._state === "erroring") throw u._storedError;
2586
- return si(r, t$1);
2584
+ return si(r, t);
2587
2585
  });
2588
2586
  }
2589
- return si(r, t$1);
2587
+ return si(r, t);
2590
2588
  }
2591
2589
  n(As, "TransformStreamDefaultSinkWriteAlgorithm");
2592
- function Bs(e, t$1) {
2590
+ function Bs(e, t) {
2593
2591
  const r = e._transformStreamController;
2594
2592
  if (r._finishPromise !== void 0) return r._finishPromise;
2595
2593
  const s = e._readable;
2596
2594
  r._finishPromise = A((c, d) => {
2597
2595
  r._finishPromise_resolve = c, r._finishPromise_reject = d;
2598
2596
  });
2599
- const u = r._cancelAlgorithm(t$1);
2600
- return ur(r), g(u, () => (s._state === "errored" ? rt(r, s._storedError) : (oe(s._readableStreamController, t$1), pn(r)), null), (c) => (oe(s._readableStreamController, c), rt(r, c), null)), r._finishPromise;
2597
+ const u = r._cancelAlgorithm(t);
2598
+ 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;
2601
2599
  }
2602
2600
  n(Bs, "TransformStreamDefaultSinkAbortAlgorithm");
2603
2601
  function ks(e) {
2604
- const t$1 = e._transformStreamController;
2605
- if (t$1._finishPromise !== void 0) return t$1._finishPromise;
2602
+ const t = e._transformStreamController;
2603
+ if (t._finishPromise !== void 0) return t._finishPromise;
2606
2604
  const r = e._readable;
2607
- t$1._finishPromise = A((u, c) => {
2608
- t$1._finishPromise_resolve = u, t$1._finishPromise_reject = c;
2605
+ t._finishPromise = A((u, c) => {
2606
+ t._finishPromise_resolve = u, t._finishPromise_reject = c;
2609
2607
  });
2610
- const s = t$1._flushAlgorithm();
2611
- return ur(t$1), g(s, () => (r._state === "errored" ? rt(t$1, r._storedError) : (De(r._readableStreamController), pn(t$1)), null), (u) => (oe(r._readableStreamController, u), rt(t$1, u), null)), t$1._finishPromise;
2608
+ const s = t._flushAlgorithm();
2609
+ 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;
2612
2610
  }
2613
2611
  n(ks, "TransformStreamDefaultSinkCloseAlgorithm");
2614
2612
  function Ws(e) {
2615
2613
  return sr(e, !1), e._backpressureChangePromise;
2616
2614
  }
2617
2615
  n(Ws, "TransformStreamDefaultSourcePullAlgorithm");
2618
- function qs(e, t$1) {
2616
+ function qs(e, t) {
2619
2617
  const r = e._transformStreamController;
2620
2618
  if (r._finishPromise !== void 0) return r._finishPromise;
2621
2619
  const s = e._writable;
2622
2620
  r._finishPromise = A((c, d) => {
2623
2621
  r._finishPromise_resolve = c, r._finishPromise_reject = d;
2624
2622
  });
2625
- const u = r._cancelAlgorithm(t$1);
2626
- return ur(r), g(u, () => (s._state === "errored" ? rt(r, s._storedError) : (Ct(s._writableStreamController, t$1), hn(e), pn(r)), null), (c) => (Ct(s._writableStreamController, c), hn(e), rt(r, c), null)), r._finishPromise;
2623
+ const u = r._cancelAlgorithm(t);
2624
+ 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;
2627
2625
  }
2628
2626
  n(qs, "TransformStreamDefaultSourceCancelAlgorithm");
2629
2627
  function fr(e) {
@@ -2634,8 +2632,8 @@ function Ns() {
2634
2632
  e._finishPromise_resolve !== void 0 && (e._finishPromise_resolve(), e._finishPromise_resolve = void 0, e._finishPromise_reject = void 0);
2635
2633
  }
2636
2634
  n(pn, "defaultControllerFinishPromiseResolve");
2637
- function rt(e, t$1) {
2638
- e._finishPromise_reject !== void 0 && (Q(e._finishPromise), e._finishPromise_reject(t$1), e._finishPromise_resolve = void 0, e._finishPromise_reject = void 0);
2635
+ function rt(e, t) {
2636
+ e._finishPromise_reject !== void 0 && (Q(e._finishPromise), e._finishPromise_reject(t), e._finishPromise_resolve = void 0, e._finishPromise_reject = void 0);
2639
2637
  }
2640
2638
  n(rt, "defaultControllerFinishPromiseReject");
2641
2639
  function li(e) {
@@ -2652,18 +2650,18 @@ function Hs() {
2652
2650
  mi = 1;
2653
2651
  const i = 65536;
2654
2652
  if (!globalThis.ReadableStream) try {
2655
- const o$1 = __require("node:process"), { emitWarning: a } = o$1;
2653
+ const o = __require("node:process"), { emitWarning: a } = o;
2656
2654
  try {
2657
- o$1.emitWarning = () => {}, Object.assign(globalThis, __require("node:stream/web")), o$1.emitWarning = a;
2658
- } catch (f$1) {
2659
- throw o$1.emitWarning = a, f$1;
2655
+ o.emitWarning = () => {}, Object.assign(globalThis, __require("node:stream/web")), o.emitWarning = a;
2656
+ } catch (f) {
2657
+ throw o.emitWarning = a, f;
2660
2658
  }
2661
2659
  } catch {
2662
2660
  Object.assign(globalThis, Ns());
2663
2661
  }
2664
2662
  try {
2665
- const { Blob: o$1 } = __require("buffer");
2666
- o$1 && !o$1.prototype.stream && (o$1.prototype.stream = n(function(f$1) {
2663
+ const { Blob: o } = __require("buffer");
2664
+ o && !o.prototype.stream && (o.prototype.stream = n(function(f) {
2667
2665
  let l = 0;
2668
2666
  const p = this;
2669
2667
  return new ReadableStream({
@@ -2679,39 +2677,39 @@ function Hs() {
2679
2677
  }
2680
2678
  n(Hs, "requireStreams"), Hs();
2681
2679
  /*! fetch-blob. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */ const yi = 65536;
2682
- async function* Wn(i, o$1 = !0) {
2680
+ async function* Wn(i, o = !0) {
2683
2681
  for (const a of i) if ("stream" in a) yield* a.stream();
2684
- else if (ArrayBuffer.isView(a)) if (o$1) {
2685
- let f$1 = a.byteOffset;
2682
+ else if (ArrayBuffer.isView(a)) if (o) {
2683
+ let f = a.byteOffset;
2686
2684
  const l = a.byteOffset + a.byteLength;
2687
- for (; f$1 !== l;) {
2688
- const p = Math.min(l - f$1, yi), h = a.buffer.slice(f$1, f$1 + p);
2689
- f$1 += h.byteLength, yield new Uint8Array(h);
2685
+ for (; f !== l;) {
2686
+ const p = Math.min(l - f, yi), h = a.buffer.slice(f, f + p);
2687
+ f += h.byteLength, yield new Uint8Array(h);
2690
2688
  }
2691
2689
  } else yield a;
2692
2690
  else {
2693
- let f$1 = 0, l = a;
2694
- for (; f$1 !== l.size;) {
2695
- const h = await l.slice(f$1, Math.min(l.size, f$1 + yi)).arrayBuffer();
2696
- f$1 += h.byteLength, yield new Uint8Array(h);
2691
+ let f = 0, l = a;
2692
+ for (; f !== l.size;) {
2693
+ const h = await l.slice(f, Math.min(l.size, f + yi)).arrayBuffer();
2694
+ f += h.byteLength, yield new Uint8Array(h);
2697
2695
  }
2698
2696
  }
2699
2697
  }
2700
2698
  n(Wn, "toIterator");
2701
2699
  const gi = (ze = class {
2702
- constructor(o$1 = [], a = {}) {
2700
+ constructor(o = [], a = {}) {
2703
2701
  be(this, ve, []);
2704
2702
  be(this, zt, "");
2705
2703
  be(this, bt, 0);
2706
2704
  be(this, Cr, "transparent");
2707
- if (typeof o$1 != "object" || o$1 === null) throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");
2708
- if (typeof o$1[Symbol.iterator] != "function") throw new TypeError("Failed to construct 'Blob': The object must have a callable @@iterator property.");
2705
+ if (typeof o != "object" || o === null) throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");
2706
+ if (typeof o[Symbol.iterator] != "function") throw new TypeError("Failed to construct 'Blob': The object must have a callable @@iterator property.");
2709
2707
  if (typeof a != "object" && typeof a != "function") throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary.");
2710
2708
  a === null && (a = {});
2711
- const f$1 = new TextEncoder();
2712
- for (const p of o$1) {
2709
+ const f = new TextEncoder();
2710
+ for (const p of o) {
2713
2711
  let h;
2714
- 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);
2712
+ 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.encode(`${p}`), X(this, bt, O(this, bt) + (ArrayBuffer.isView(h) ? h.byteLength : h.size)), O(this, ve).push(h);
2715
2713
  }
2716
2714
  X(this, Cr, `${a.endings === void 0 ? "transparent" : a.endings}`);
2717
2715
  const l = a.type === void 0 ? "" : String(a.type);
@@ -2724,33 +2722,33 @@ const gi = (ze = class {
2724
2722
  return O(this, zt);
2725
2723
  }
2726
2724
  async text() {
2727
- const o$1 = new TextDecoder();
2725
+ const o = new TextDecoder();
2728
2726
  let a = "";
2729
- for await (const f$1 of Wn(O(this, ve), !1)) a += o$1.decode(f$1, { stream: !0 });
2730
- return a += o$1.decode(), a;
2727
+ for await (const f of Wn(O(this, ve), !1)) a += o.decode(f, { stream: !0 });
2728
+ return a += o.decode(), a;
2731
2729
  }
2732
2730
  async arrayBuffer() {
2733
- const o$1 = new Uint8Array(this.size);
2731
+ const o = new Uint8Array(this.size);
2734
2732
  let a = 0;
2735
- for await (const f$1 of Wn(O(this, ve), !1)) o$1.set(f$1, a), a += f$1.length;
2736
- return o$1.buffer;
2733
+ for await (const f of Wn(O(this, ve), !1)) o.set(f, a), a += f.length;
2734
+ return o.buffer;
2737
2735
  }
2738
2736
  stream() {
2739
- const o$1 = Wn(O(this, ve), !0);
2737
+ const o = Wn(O(this, ve), !0);
2740
2738
  return new globalThis.ReadableStream({
2741
2739
  type: "bytes",
2742
2740
  async pull(a) {
2743
- const f$1 = await o$1.next();
2744
- f$1.done ? a.close() : a.enqueue(f$1.value);
2741
+ const f = await o.next();
2742
+ f.done ? a.close() : a.enqueue(f.value);
2745
2743
  },
2746
2744
  async cancel() {
2747
- await o$1.return();
2745
+ await o.return();
2748
2746
  }
2749
2747
  });
2750
2748
  }
2751
- slice(o$1 = 0, a = this.size, f$1 = "") {
2749
+ slice(o = 0, a = this.size, f = "") {
2752
2750
  const { size: l } = this;
2753
- let p = o$1 < 0 ? Math.max(l + o$1, 0) : Math.min(o$1, l), h = a < 0 ? Math.max(l + a, 0) : Math.min(a, l);
2751
+ 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);
2754
2752
  const S = Math.max(h - p, 0), v = O(this, ve), w = [];
2755
2753
  let A = 0;
2756
2754
  for (const b of v) {
@@ -2762,14 +2760,14 @@ const gi = (ze = class {
2762
2760
  ArrayBuffer.isView(b) ? (g = b.subarray(p, Math.min(q, h)), A += g.byteLength) : (g = b.slice(p, Math.min(q, h)), A += g.size), h -= q, w.push(g), p = 0;
2763
2761
  }
2764
2762
  }
2765
- const T = new ze([], { type: String(f$1).toLowerCase() });
2763
+ const T = new ze([], { type: String(f).toLowerCase() });
2766
2764
  return X(T, bt, S), X(T, ve, w), T;
2767
2765
  }
2768
2766
  get [Symbol.toStringTag]() {
2769
2767
  return "Blob";
2770
2768
  }
2771
- static [Symbol.hasInstance](o$1) {
2772
- return o$1 && typeof o$1 == "object" && typeof o$1.constructor == "function" && (typeof o$1.stream == "function" || typeof o$1.arrayBuffer == "function") && /^(Blob|File)$/.test(o$1[Symbol.toStringTag]);
2769
+ static [Symbol.hasInstance](o) {
2770
+ return o && typeof o == "object" && typeof o.constructor == "function" && (typeof o.stream == "function" || typeof o.arrayBuffer == "function") && /^(Blob|File)$/.test(o[Symbol.toStringTag]);
2773
2771
  }
2774
2772
  }, ve = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), Cr = /* @__PURE__ */ new WeakMap(), n(ze, "Blob"), ze);
2775
2773
  Object.defineProperties(gi.prototype, {
@@ -2778,14 +2776,14 @@ Object.defineProperties(gi.prototype, {
2778
2776
  slice: { enumerable: !0 }
2779
2777
  });
2780
2778
  const ut = gi, qn = (mt = class extends ut {
2781
- constructor(a, f$1, l = {}) {
2779
+ constructor(a, f, l = {}) {
2782
2780
  if (arguments.length < 2) throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);
2783
2781
  super(a, l);
2784
2782
  be(this, It, 0);
2785
2783
  be(this, Ft, "");
2786
2784
  l === null && (l = {});
2787
2785
  const p = l.lastModified === void 0 ? Date.now() : Number(l.lastModified);
2788
- Number.isNaN(p) || X(this, It, p), X(this, Ft, String(f$1));
2786
+ Number.isNaN(p) || X(this, It, p), X(this, Ft, String(f));
2789
2787
  }
2790
2788
  get name() {
2791
2789
  return O(this, Ft);
@@ -2800,14 +2798,14 @@ const ut = gi, qn = (mt = class extends ut {
2800
2798
  return !!a && a instanceof ut && /^(File)$/.test(a[Symbol.toStringTag]);
2801
2799
  }
2802
2800
  }, It = /* @__PURE__ */ new WeakMap(), Ft = /* @__PURE__ */ new WeakMap(), n(mt, "File"), mt);
2803
- /*! 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((i, o$1, a) => (i += "", /^(Blob|File)$/.test(o$1 && o$1[Wt]) ? [(a = a !== void 0 ? a + "" : o$1[Wt] == "File" ? o$1.name : "blob", i), o$1.name !== a || o$1[Wt] == "blob" ? new qn([o$1], a, o$1) : o$1] : [i, o$1 + ""]), "f"), On = n((i, o$1) => (o$1 ? i : i.replace(/\r?\n|\r/g, `\r
2804
- `)).replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), "e$1"), Ue = n((i, o$1, a) => {
2805
- if (o$1.length < a) throw new TypeError(`Failed to execute '${i}' on 'FormData': ${a} arguments required, but only ${o$1.length} present.`);
2801
+ /*! 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((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((i, o) => (o ? i : i.replace(/\r?\n|\r/g, `\r
2802
+ `)).replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), "e$1"), Ue = n((i, o, a) => {
2803
+ if (o.length < a) throw new TypeError(`Failed to execute '${i}' on 'FormData': ${a} arguments required, but only ${o.length} present.`);
2806
2804
  }, "x");
2807
2805
  const br = (yt = class {
2808
- constructor(...o$1) {
2806
+ constructor(...o) {
2809
2807
  be(this, ee, []);
2810
- if (o$1.length) throw new TypeError("Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.");
2808
+ if (o.length) throw new TypeError("Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.");
2811
2809
  }
2812
2810
  get [Wt]() {
2813
2811
  return "FormData";
@@ -2815,64 +2813,64 @@ const br = (yt = class {
2815
2813
  [Qs]() {
2816
2814
  return this.entries();
2817
2815
  }
2818
- static [Ys](o$1) {
2819
- return o$1 && typeof o$1 == "object" && o$1[Wt] === "FormData" && !Gs.some((a) => typeof o$1[a] != "function");
2816
+ static [Ys](o) {
2817
+ return o && typeof o == "object" && o[Wt] === "FormData" && !Gs.some((a) => typeof o[a] != "function");
2820
2818
  }
2821
- append(...o$1) {
2822
- Ue("append", arguments, 2), O(this, ee).push(Si(...o$1));
2819
+ append(...o) {
2820
+ Ue("append", arguments, 2), O(this, ee).push(Si(...o));
2823
2821
  }
2824
- delete(o$1) {
2825
- Ue("delete", arguments, 1), o$1 += "", X(this, ee, O(this, ee).filter(([a]) => a !== o$1));
2822
+ delete(o) {
2823
+ Ue("delete", arguments, 1), o += "", X(this, ee, O(this, ee).filter(([a]) => a !== o));
2826
2824
  }
2827
- get(o$1) {
2828
- Ue("get", arguments, 1), o$1 += "";
2829
- for (var a = O(this, ee), f$1 = a.length, l = 0; l < f$1; l++) if (a[l][0] === o$1) return a[l][1];
2825
+ get(o) {
2826
+ Ue("get", arguments, 1), o += "";
2827
+ for (var a = O(this, ee), f = a.length, l = 0; l < f; l++) if (a[l][0] === o) return a[l][1];
2830
2828
  return null;
2831
2829
  }
2832
- getAll(o$1, a) {
2833
- return Ue("getAll", arguments, 1), a = [], o$1 += "", O(this, ee).forEach((f$1) => f$1[0] === o$1 && a.push(f$1[1])), a;
2830
+ getAll(o, a) {
2831
+ return Ue("getAll", arguments, 1), a = [], o += "", O(this, ee).forEach((f) => f[0] === o && a.push(f[1])), a;
2834
2832
  }
2835
- has(o$1) {
2836
- return Ue("has", arguments, 1), o$1 += "", O(this, ee).some((a) => a[0] === o$1);
2833
+ has(o) {
2834
+ return Ue("has", arguments, 1), o += "", O(this, ee).some((a) => a[0] === o);
2837
2835
  }
2838
- forEach(o$1, a) {
2836
+ forEach(o, a) {
2839
2837
  Ue("forEach", arguments, 1);
2840
- for (var [f$1, l] of this) o$1.call(a, l, f$1, this);
2838
+ for (var [f, l] of this) o.call(a, l, f, this);
2841
2839
  }
2842
- set(...o$1) {
2840
+ set(...o) {
2843
2841
  Ue("set", arguments, 2);
2844
- var a = [], f$1 = !0;
2845
- o$1 = Si(...o$1), O(this, ee).forEach((l) => {
2846
- l[0] === o$1[0] ? f$1 && (f$1 = !a.push(o$1)) : a.push(l);
2847
- }), f$1 && a.push(o$1), X(this, ee, a);
2842
+ var a = [], f = !0;
2843
+ o = Si(...o), O(this, ee).forEach((l) => {
2844
+ l[0] === o[0] ? f && (f = !a.push(o)) : a.push(l);
2845
+ }), f && a.push(o), X(this, ee, a);
2848
2846
  }
2849
2847
  *entries() {
2850
2848
  yield* O(this, ee);
2851
2849
  }
2852
2850
  *keys() {
2853
- for (var [o$1] of this) yield o$1;
2851
+ for (var [o] of this) yield o;
2854
2852
  }
2855
2853
  *values() {
2856
- for (var [, o$1] of this) yield o$1;
2854
+ for (var [, o] of this) yield o;
2857
2855
  }
2858
2856
  }, ee = /* @__PURE__ */ new WeakMap(), n(yt, "FormData"), yt);
2859
- function Zs(i, o$1 = ut) {
2860
- var a = `${_i()}${_i()}`.replace(/\./g, "").slice(-28).padStart(32, "-"), f$1 = [], l = `--${a}\r
2857
+ function Zs(i, o = ut) {
2858
+ var a = `${_i()}${_i()}`.replace(/\./g, "").slice(-28).padStart(32, "-"), f = [], l = `--${a}\r
2861
2859
  Content-Disposition: form-data; name="`;
2862
- return i.forEach((p, h) => typeof p == "string" ? f$1.push(l + On(h) + `"\r
2860
+ return i.forEach((p, h) => typeof p == "string" ? f.push(l + On(h) + `"\r
2863
2861
  \r
2864
2862
  ${p.replace(/\r(?!\n)|(?<!\r)\n/g, `\r
2865
2863
  `)}\r
2866
- `) : f$1.push(l + On(h) + `"; filename="${On(p.name, 1)}"\r
2864
+ `) : f.push(l + On(h) + `"; filename="${On(p.name, 1)}"\r
2867
2865
  Content-Type: ${p.type || "application/octet-stream"}\r
2868
2866
  \r
2869
2867
  `, p, `\r
2870
- `)), f$1.push(`--${a}--`), new o$1(f$1, { type: "multipart/form-data; boundary=" + a });
2868
+ `)), f.push(`--${a}--`), new o(f, { type: "multipart/form-data; boundary=" + a });
2871
2869
  }
2872
2870
  n(Zs, "formDataToBlob");
2873
- const Un = class Un$1 extends Error {
2874
- constructor(o$1, a) {
2875
- super(o$1), Error.captureStackTrace(this, this.constructor), this.type = a;
2871
+ const Un = class Un extends Error {
2872
+ constructor(o, a) {
2873
+ super(o), Error.captureStackTrace(this, this.constructor), this.type = a;
2876
2874
  }
2877
2875
  get name() {
2878
2876
  return this.constructor.name;
@@ -2883,30 +2881,30 @@ const Un = class Un$1 extends Error {
2883
2881
  };
2884
2882
  n(Un, "FetchBaseError");
2885
2883
  let ft = Un;
2886
- const xn = class xn$1 extends ft {
2887
- constructor(o$1, a, f$1) {
2888
- super(o$1, a), f$1 && (this.code = this.errno = f$1.code, this.erroredSysCall = f$1.syscall);
2884
+ const xn = class xn extends ft {
2885
+ constructor(o, a, f) {
2886
+ super(o, a), f && (this.code = this.errno = f.code, this.erroredSysCall = f.syscall);
2889
2887
  }
2890
2888
  };
2891
2889
  n(xn, "FetchError");
2892
2890
  let G = xn;
2893
- const mr = Symbol.toStringTag, wi = n((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((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((i) => typeof i == "object" && (i[mr] === "AbortSignal" || i[mr] === "EventTarget"), "isAbortSignal"), Js = n((i, o$1) => {
2894
- const a = new URL(o$1).hostname, f$1 = new URL(i).hostname;
2895
- return a === f$1 || a.endsWith(`.${f$1}`);
2896
- }, "isDomainOrSubdomain"), Xs = n((i, o$1) => {
2897
- return new URL(o$1).protocol === new URL(i).protocol;
2898
- }, "isSameProtocol"), el = promisify(me.pipeline), H = Symbol("Body internals"), Nn = class Nn$1 {
2899
- constructor(o$1, { size: a = 0 } = {}) {
2900
- let f$1 = null;
2901
- o$1 === null ? o$1 = null : wi(o$1) ? o$1 = Buffer$1.from(o$1.toString()) : yr(o$1) || Buffer$1.isBuffer(o$1) || (types.isAnyArrayBuffer(o$1) ? o$1 = Buffer$1.from(o$1) : ArrayBuffer.isView(o$1) ? o$1 = Buffer$1.from(o$1.buffer, o$1.byteOffset, o$1.byteLength) : o$1 instanceof me || (o$1 instanceof br ? (o$1 = Zs(o$1), f$1 = o$1.type.split("=")[1]) : o$1 = Buffer$1.from(String(o$1))));
2902
- let l = o$1;
2903
- Buffer$1.isBuffer(o$1) ? l = me.Readable.from(o$1) : yr(o$1) && (l = me.Readable.from(o$1.stream())), this[H] = {
2904
- body: o$1,
2891
+ const mr = Symbol.toStringTag, wi = n((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((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((i) => typeof i == "object" && (i[mr] === "AbortSignal" || i[mr] === "EventTarget"), "isAbortSignal"), Js = n((i, o) => {
2892
+ const a = new URL(o).hostname, f = new URL(i).hostname;
2893
+ return a === f || a.endsWith(`.${f}`);
2894
+ }, "isDomainOrSubdomain"), Xs = n((i, o) => {
2895
+ return new URL(o).protocol === new URL(i).protocol;
2896
+ }, "isSameProtocol"), el = promisify(me.pipeline), H = Symbol("Body internals"), Nn = class Nn {
2897
+ constructor(o, { size: a = 0 } = {}) {
2898
+ let f = null;
2899
+ o === null ? o = null : wi(o) ? o = Buffer$1.from(o.toString()) : yr(o) || Buffer$1.isBuffer(o) || (types.isAnyArrayBuffer(o) ? o = Buffer$1.from(o) : ArrayBuffer.isView(o) ? o = Buffer$1.from(o.buffer, o.byteOffset, o.byteLength) : o instanceof me || (o instanceof br ? (o = Zs(o), f = o.type.split("=")[1]) : o = Buffer$1.from(String(o))));
2900
+ let l = o;
2901
+ Buffer$1.isBuffer(o) ? l = me.Readable.from(o) : yr(o) && (l = me.Readable.from(o.stream())), this[H] = {
2902
+ body: o,
2905
2903
  stream: l,
2906
- boundary: f$1,
2904
+ boundary: f,
2907
2905
  disturbed: !1,
2908
2906
  error: null
2909
- }, this.size = a, o$1 instanceof me && o$1.on("error", (p) => {
2907
+ }, this.size = a, o instanceof me && o.on("error", (p) => {
2910
2908
  const h = p instanceof ft ? p : new G(`Invalid response body while trying to fetch ${this.url}: ${p.message}`, "system", p);
2911
2909
  this[H].error = h;
2912
2910
  });
@@ -2918,30 +2916,30 @@ const mr = Symbol.toStringTag, wi = n((i) => typeof i == "object" && typeof i.ap
2918
2916
  return this[H].disturbed;
2919
2917
  }
2920
2918
  async arrayBuffer() {
2921
- const { buffer: o$1, byteOffset: a, byteLength: f$1 } = await zn(this);
2922
- return o$1.slice(a, a + f$1);
2919
+ const { buffer: o, byteOffset: a, byteLength: f } = await zn(this);
2920
+ return o.slice(a, a + f);
2923
2921
  }
2924
2922
  async formData() {
2925
- const o$1 = this.headers.get("content-type");
2926
- if (o$1.startsWith("application/x-www-form-urlencoded")) {
2927
- const f$1 = new br(), l = new URLSearchParams(await this.text());
2928
- for (const [p, h] of l) f$1.append(p, h);
2929
- return f$1;
2923
+ const o = this.headers.get("content-type");
2924
+ if (o.startsWith("application/x-www-form-urlencoded")) {
2925
+ const f = new br(), l = new URLSearchParams(await this.text());
2926
+ for (const [p, h] of l) f.append(p, h);
2927
+ return f;
2930
2928
  }
2931
- const { toFormData: a } = await import("./multipart-parser-D3zGHRx2.mjs");
2932
- return a(this.body, o$1);
2929
+ const { toFormData: a } = await import("./multipart-parser-KkZpcbcp.mjs");
2930
+ return a(this.body, o);
2933
2931
  }
2934
2932
  async blob() {
2935
- const o$1 = this.headers && this.headers.get("content-type") || this[H].body && this[H].body.type || "";
2936
- return new ut([await this.arrayBuffer()], { type: o$1 });
2933
+ const o = this.headers && this.headers.get("content-type") || this[H].body && this[H].body.type || "";
2934
+ return new ut([await this.arrayBuffer()], { type: o });
2937
2935
  }
2938
2936
  async json() {
2939
- const o$1 = await this.text();
2940
- return JSON.parse(o$1);
2937
+ const o = await this.text();
2938
+ return JSON.parse(o);
2941
2939
  }
2942
2940
  async text() {
2943
- const o$1 = await zn(this);
2944
- return new TextDecoder().decode(o$1);
2941
+ const o = await zn(this);
2942
+ return new TextDecoder().decode(o);
2945
2943
  }
2946
2944
  buffer() {
2947
2945
  return zn(this);
@@ -2961,61 +2959,61 @@ xe.prototype.buffer = deprecate(xe.prototype.buffer, "Please use 'response.array
2961
2959
  async function zn(i) {
2962
2960
  if (i[H].disturbed) throw new TypeError(`body used already for: ${i.url}`);
2963
2961
  if (i[H].disturbed = !0, i[H].error) throw i[H].error;
2964
- const { body: o$1 } = i;
2965
- if (o$1 === null) return Buffer$1.alloc(0);
2966
- if (!(o$1 instanceof me)) return Buffer$1.alloc(0);
2962
+ const { body: o } = i;
2963
+ if (o === null) return Buffer$1.alloc(0);
2964
+ if (!(o instanceof me)) return Buffer$1.alloc(0);
2967
2965
  const a = [];
2968
- let f$1 = 0;
2966
+ let f = 0;
2969
2967
  try {
2970
- for await (const l of o$1) {
2971
- if (i.size > 0 && f$1 + l.length > i.size) {
2968
+ for await (const l of o) {
2969
+ if (i.size > 0 && f + l.length > i.size) {
2972
2970
  const p = new G(`content size at ${i.url} over limit: ${i.size}`, "max-size");
2973
- throw o$1.destroy(p), p;
2971
+ throw o.destroy(p), p;
2974
2972
  }
2975
- f$1 += l.length, a.push(l);
2973
+ f += l.length, a.push(l);
2976
2974
  }
2977
2975
  } catch (l) {
2978
2976
  throw l instanceof ft ? l : new G(`Invalid response body while trying to fetch ${i.url}: ${l.message}`, "system", l);
2979
2977
  }
2980
- if (o$1.readableEnded === !0 || o$1._readableState.ended === !0) try {
2981
- return a.every((l) => typeof l == "string") ? Buffer$1.from(a.join("")) : Buffer$1.concat(a, f$1);
2978
+ if (o.readableEnded === !0 || o._readableState.ended === !0) try {
2979
+ return a.every((l) => typeof l == "string") ? Buffer$1.from(a.join("")) : Buffer$1.concat(a, f);
2982
2980
  } catch (l) {
2983
2981
  throw new G(`Could not create Buffer from response body for ${i.url}: ${l.message}`, "system", l);
2984
2982
  }
2985
2983
  else throw new G(`Premature close of server response while trying to fetch ${i.url}`);
2986
2984
  }
2987
2985
  n(zn, "consumeBody");
2988
- const In = n((i, o$1) => {
2989
- let a, f$1, { body: l } = i[H];
2986
+ const In = n((i, o) => {
2987
+ let a, f, { body: l } = i[H];
2990
2988
  if (i.bodyUsed) throw new Error("cannot clone body after it is used");
2991
- return l instanceof me && typeof l.getBoundary != "function" && (a = new PassThrough({ highWaterMark: o$1 }), f$1 = new PassThrough({ highWaterMark: o$1 }), l.pipe(a), l.pipe(f$1), i[H].stream = a, l = f$1), l;
2992
- }, "clone"), tl = 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((i, o$1) => 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 : Buffer$1.isBuffer(i) || types.isAnyArrayBuffer(i) || ArrayBuffer.isView(i) ? null : i instanceof br ? `multipart/form-data; boundary=${o$1[H].boundary}` : i && typeof i.getBoundary == "function" ? `multipart/form-data;boundary=${tl(i)}` : i instanceof me ? null : "text/plain;charset=UTF-8", "extractContentType"), rl = n((i) => {
2993
- const { body: o$1 } = i[H];
2994
- return o$1 === null ? 0 : yr(o$1) ? o$1.size : Buffer$1.isBuffer(o$1) ? o$1.length : o$1 && typeof o$1.getLengthSync == "function" && o$1.hasKnownLength && o$1.hasKnownLength() ? o$1.getLengthSync() : null;
2995
- }, "getTotalBytes"), nl = n(async (i, { body: o$1 }) => {
2996
- o$1 === null ? i.end() : await el(o$1, i);
2989
+ return l instanceof me && typeof l.getBoundary != "function" && (a = new PassThrough({ highWaterMark: o }), f = new PassThrough({ highWaterMark: o }), l.pipe(a), l.pipe(f), i[H].stream = a, l = f), l;
2990
+ }, "clone"), tl = 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((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 : Buffer$1.isBuffer(i) || 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 me ? null : "text/plain;charset=UTF-8", "extractContentType"), rl = n((i) => {
2991
+ const { body: o } = i[H];
2992
+ return o === null ? 0 : yr(o) ? o.size : Buffer$1.isBuffer(o) ? o.length : o && typeof o.getLengthSync == "function" && o.hasKnownLength && o.hasKnownLength() ? o.getLengthSync() : null;
2993
+ }, "getTotalBytes"), nl = n(async (i, { body: o }) => {
2994
+ o === null ? i.end() : await el(o, i);
2997
2995
  }, "writeToStream"), gr = typeof http.validateHeaderName == "function" ? http.validateHeaderName : (i) => {
2998
2996
  if (!/^[\^`\-\w!#$%&'*+.|~]+$/.test(i)) {
2999
- const o$1 = /* @__PURE__ */ new TypeError(`Header name must be a valid HTTP token [${i}]`);
3000
- throw Object.defineProperty(o$1, "code", { value: "ERR_INVALID_HTTP_TOKEN" }), o$1;
2997
+ const o = /* @__PURE__ */ new TypeError(`Header name must be a valid HTTP token [${i}]`);
2998
+ throw Object.defineProperty(o, "code", { value: "ERR_INVALID_HTTP_TOKEN" }), o;
3001
2999
  }
3002
- }, Fn = typeof http.validateHeaderValue == "function" ? http.validateHeaderValue : (i, o$1) => {
3003
- if (/[^\t\u0020-\u007E\u0080-\u00FF]/.test(o$1)) {
3000
+ }, Fn = typeof http.validateHeaderValue == "function" ? http.validateHeaderValue : (i, o) => {
3001
+ if (/[^\t\u0020-\u007E\u0080-\u00FF]/.test(o)) {
3004
3002
  const a = /* @__PURE__ */ new TypeError(`Invalid character in header content ["${i}"]`);
3005
3003
  throw Object.defineProperty(a, "code", { value: "ERR_INVALID_CHAR" }), a;
3006
3004
  }
3007
- }, Pr = class Pr$1 extends URLSearchParams {
3008
- constructor(o$1) {
3005
+ }, Pr = class Pr extends URLSearchParams {
3006
+ constructor(o) {
3009
3007
  let a = [];
3010
- if (o$1 instanceof Pr$1) {
3011
- const f$1 = o$1.raw();
3012
- for (const [l, p] of Object.entries(f$1)) a.push(...p.map((h) => [l, h]));
3013
- } else if (o$1 != null) if (typeof o$1 == "object" && !types.isBoxedPrimitive(o$1)) {
3014
- const f$1 = o$1[Symbol.iterator];
3015
- if (f$1 == null) a.push(...Object.entries(o$1));
3008
+ if (o instanceof Pr) {
3009
+ const f = o.raw();
3010
+ for (const [l, p] of Object.entries(f)) a.push(...p.map((h) => [l, h]));
3011
+ } else if (o != null) if (typeof o == "object" && !types.isBoxedPrimitive(o)) {
3012
+ const f = o[Symbol.iterator];
3013
+ if (f == null) a.push(...Object.entries(o));
3016
3014
  else {
3017
- if (typeof f$1 != "function") throw new TypeError("Header pairs must be iterable");
3018
- a = [...o$1].map((l) => {
3015
+ if (typeof f != "function") throw new TypeError("Header pairs must be iterable");
3016
+ a = [...o].map((l) => {
3019
3017
  if (typeof l != "object" || types.isBoxedPrimitive(l)) throw new TypeError("Each header pair must be an iterable object");
3020
3018
  return [...l];
3021
3019
  }).map((l) => {
@@ -3024,15 +3022,15 @@ const In = n((i, o$1) => {
3024
3022
  });
3025
3023
  }
3026
3024
  } else throw new TypeError("Failed to construct 'Headers': The provided value is not of type '(sequence<sequence<ByteString>> or record<ByteString, ByteString>)");
3027
- return a = a.length > 0 ? a.map(([f$1, l]) => (gr(f$1), Fn(f$1, String(l)), [String(f$1).toLowerCase(), String(l)])) : void 0, super(a), new Proxy(this, { get(f$1, l, p) {
3025
+ return a = a.length > 0 ? a.map(([f, l]) => (gr(f), Fn(f, String(l)), [String(f).toLowerCase(), String(l)])) : void 0, super(a), new Proxy(this, { get(f, l, p) {
3028
3026
  switch (l) {
3029
3027
  case "append":
3030
- case "set": return (h, S) => (gr(h), Fn(h, String(S)), URLSearchParams.prototype[l].call(f$1, String(h).toLowerCase(), String(S)));
3028
+ case "set": return (h, S) => (gr(h), Fn(h, String(S)), URLSearchParams.prototype[l].call(f, String(h).toLowerCase(), String(S)));
3031
3029
  case "delete":
3032
3030
  case "has":
3033
- case "getAll": return (h) => (gr(h), URLSearchParams.prototype[l].call(f$1, String(h).toLowerCase()));
3034
- case "keys": return () => (f$1.sort(), new Set(URLSearchParams.prototype.keys.call(f$1)).keys());
3035
- default: return Reflect.get(f$1, l, p);
3031
+ case "getAll": return (h) => (gr(h), URLSearchParams.prototype[l].call(f, String(h).toLowerCase()));
3032
+ case "keys": return () => (f.sort(), new Set(URLSearchParams.prototype.keys.call(f)).keys());
3033
+ default: return Reflect.get(f, l, p);
3036
3034
  }
3037
3035
  } });
3038
3036
  }
@@ -3042,35 +3040,35 @@ const In = n((i, o$1) => {
3042
3040
  toString() {
3043
3041
  return Object.prototype.toString.call(this);
3044
3042
  }
3045
- get(o$1) {
3046
- const a = this.getAll(o$1);
3043
+ get(o) {
3044
+ const a = this.getAll(o);
3047
3045
  if (a.length === 0) return null;
3048
- let f$1 = a.join(", ");
3049
- return /^content-encoding$/i.test(o$1) && (f$1 = f$1.toLowerCase()), f$1;
3046
+ let f = a.join(", ");
3047
+ return /^content-encoding$/i.test(o) && (f = f.toLowerCase()), f;
3050
3048
  }
3051
- forEach(o$1, a = void 0) {
3052
- for (const f$1 of this.keys()) Reflect.apply(o$1, a, [
3053
- this.get(f$1),
3054
- f$1,
3049
+ forEach(o, a = void 0) {
3050
+ for (const f of this.keys()) Reflect.apply(o, a, [
3051
+ this.get(f),
3052
+ f,
3055
3053
  this
3056
3054
  ]);
3057
3055
  }
3058
3056
  *values() {
3059
- for (const o$1 of this.keys()) yield this.get(o$1);
3057
+ for (const o of this.keys()) yield this.get(o);
3060
3058
  }
3061
3059
  *entries() {
3062
- for (const o$1 of this.keys()) yield [o$1, this.get(o$1)];
3060
+ for (const o of this.keys()) yield [o, this.get(o)];
3063
3061
  }
3064
3062
  [Symbol.iterator]() {
3065
3063
  return this.entries();
3066
3064
  }
3067
3065
  raw() {
3068
- return [...this.keys()].reduce((o$1, a) => (o$1[a] = this.getAll(a), o$1), {});
3066
+ return [...this.keys()].reduce((o, a) => (o[a] = this.getAll(a), o), {});
3069
3067
  }
3070
3068
  [Symbol.for("nodejs.util.inspect.custom")]() {
3071
- return [...this.keys()].reduce((o$1, a) => {
3072
- const f$1 = this.getAll(a);
3073
- return a === "host" ? o$1[a] = f$1[0] : o$1[a] = f$1.length > 1 ? f$1 : f$1[0], o$1;
3069
+ return [...this.keys()].reduce((o, a) => {
3070
+ const f = this.getAll(a);
3071
+ return a === "host" ? o[a] = f[0] : o[a] = f.length > 1 ? f : f[0], o;
3074
3072
  }, {});
3075
3073
  }
3076
3074
  };
@@ -3081,11 +3079,11 @@ Object.defineProperties(ye.prototype, [
3081
3079
  "entries",
3082
3080
  "forEach",
3083
3081
  "values"
3084
- ].reduce((i, o$1) => (i[o$1] = { enumerable: !0 }, i), {}));
3082
+ ].reduce((i, o) => (i[o] = { enumerable: !0 }, i), {}));
3085
3083
  function ol(i = []) {
3086
- return new ye(i.reduce((o$1, a, f$1, l) => (f$1 % 2 === 0 && o$1.push(l.slice(f$1, f$1 + 2)), o$1), []).filter(([o$1, a]) => {
3084
+ return new ye(i.reduce((o, a, f, l) => (f % 2 === 0 && o.push(l.slice(f, f + 2)), o), []).filter(([o, a]) => {
3087
3085
  try {
3088
- return gr(o$1), Fn(o$1, String(a)), !0;
3086
+ return gr(o), Fn(o, String(a)), !0;
3089
3087
  } catch {
3090
3088
  return !1;
3091
3089
  }
@@ -3098,18 +3096,18 @@ const il = new Set([
3098
3096
  303,
3099
3097
  307,
3100
3098
  308
3101
- ]), jn = n((i) => il.has(i), "isRedirect"), se = Symbol("Response internals"), Ne = class Ne$1 extends xe {
3102
- constructor(o$1 = null, a = {}) {
3103
- super(o$1, a);
3104
- const f$1 = a.status != null ? a.status : 200, l = new ye(a.headers);
3105
- if (o$1 !== null && !l.has("Content-Type")) {
3106
- const p = Ri(o$1, this);
3099
+ ]), jn = n((i) => il.has(i), "isRedirect"), se = Symbol("Response internals"), Ne = class Ne extends xe {
3100
+ constructor(o = null, a = {}) {
3101
+ super(o, a);
3102
+ const f = a.status != null ? a.status : 200, l = new ye(a.headers);
3103
+ if (o !== null && !l.has("Content-Type")) {
3104
+ const p = Ri(o, this);
3107
3105
  p && l.append("Content-Type", p);
3108
3106
  }
3109
3107
  this[se] = {
3110
3108
  type: "default",
3111
3109
  url: a.url,
3112
- status: f$1,
3110
+ status: f,
3113
3111
  statusText: a.statusText || "",
3114
3112
  headers: l,
3115
3113
  counter: a.counter,
@@ -3141,7 +3139,7 @@ const il = new Set([
3141
3139
  return this[se].highWaterMark;
3142
3140
  }
3143
3141
  clone() {
3144
- return new Ne$1(In(this, this.highWaterMark), {
3142
+ return new Ne(In(this, this.highWaterMark), {
3145
3143
  type: this.type,
3146
3144
  url: this.url,
3147
3145
  status: this.status,
@@ -3153,25 +3151,25 @@ const il = new Set([
3153
3151
  highWaterMark: this.highWaterMark
3154
3152
  });
3155
3153
  }
3156
- static redirect(o$1, a = 302) {
3154
+ static redirect(o, a = 302) {
3157
3155
  if (!jn(a)) throw new RangeError("Failed to execute \"redirect\" on \"response\": Invalid status code");
3158
- return new Ne$1(null, {
3159
- headers: { location: new URL(o$1).toString() },
3156
+ return new Ne(null, {
3157
+ headers: { location: new URL(o).toString() },
3160
3158
  status: a
3161
3159
  });
3162
3160
  }
3163
3161
  static error() {
3164
- const o$1 = new Ne$1(null, {
3162
+ const o = new Ne(null, {
3165
3163
  status: 0,
3166
3164
  statusText: ""
3167
3165
  });
3168
- return o$1[se].type = "error", o$1;
3166
+ return o[se].type = "error", o;
3169
3167
  }
3170
- static json(o$1 = void 0, a = {}) {
3171
- const f$1 = JSON.stringify(o$1);
3172
- if (f$1 === void 0) throw new TypeError("data is not JSON serializable");
3168
+ static json(o = void 0, a = {}) {
3169
+ const f = JSON.stringify(o);
3170
+ if (f === void 0) throw new TypeError("data is not JSON serializable");
3173
3171
  const l = new ye(a && a.headers);
3174
- return l.has("content-type") || l.set("content-type", "application/json"), new Ne$1(f$1, {
3172
+ return l.has("content-type") || l.set("content-type", "application/json"), new Ne(f, {
3175
3173
  ...a,
3176
3174
  headers: l
3177
3175
  });
@@ -3194,11 +3192,11 @@ Object.defineProperties(le.prototype, {
3194
3192
  });
3195
3193
  const al = n((i) => {
3196
3194
  if (i.search) return i.search;
3197
- const o$1 = i.href.length - 1, a = i.hash || (i.href[o$1] === "#" ? "#" : "");
3198
- return i.href[o$1 - a.length] === "?" ? "?" : "";
3195
+ const o = i.href.length - 1, a = i.hash || (i.href[o] === "#" ? "#" : "");
3196
+ return i.href[o - a.length] === "?" ? "?" : "";
3199
3197
  }, "getSearch");
3200
- function Ti(i, o$1 = !1) {
3201
- return i == null || (i = new URL(i), /^(about|blob|data):$/.test(i.protocol)) ? "no-referrer" : (i.username = "", i.password = "", i.hash = "", o$1 && (i.pathname = "", i.search = ""), i);
3198
+ function Ti(i, o = !1) {
3199
+ 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);
3202
3200
  }
3203
3201
  n(Ti, "stripURLForUseAsAReferrer");
3204
3202
  const Ci = new Set([
@@ -3219,23 +3217,23 @@ function ll(i) {
3219
3217
  n(ll, "validateReferrerPolicy");
3220
3218
  function ul(i) {
3221
3219
  if (/^(http|ws)s:$/.test(i.protocol)) return !0;
3222
- const o$1 = i.host.replace(/(^\[)|(]$)/g, ""), a = isIP(o$1);
3223
- return a === 4 && /^127\./.test(o$1) || a === 6 && /^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(o$1) ? !0 : i.host === "localhost" || i.host.endsWith(".localhost") ? !1 : i.protocol === "file:";
3220
+ const o = i.host.replace(/(^\[)|(]$)/g, ""), a = isIP(o);
3221
+ 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:";
3224
3222
  }
3225
3223
  n(ul, "isOriginPotentiallyTrustworthy");
3226
3224
  function ct(i) {
3227
3225
  return /^about:(blank|srcdoc)$/.test(i) || i.protocol === "data:" || /^(blob|filesystem):$/.test(i.protocol) ? !0 : ul(i);
3228
3226
  }
3229
3227
  n(ct, "isUrlPotentiallyTrustworthy");
3230
- function fl(i, { referrerURLCallback: o$1, referrerOriginCallback: a } = {}) {
3228
+ function fl(i, { referrerURLCallback: o, referrerOriginCallback: a } = {}) {
3231
3229
  if (i.referrer === "no-referrer" || i.referrerPolicy === "") return null;
3232
- const f$1 = i.referrerPolicy;
3230
+ const f = i.referrerPolicy;
3233
3231
  if (i.referrer === "about:client") return "no-referrer";
3234
3232
  const l = i.referrer;
3235
3233
  let p = Ti(l), h = Ti(l, !0);
3236
- p.toString().length > 4096 && (p = h), o$1 && (p = o$1(p)), a && (h = a(h));
3234
+ p.toString().length > 4096 && (p = h), o && (p = o(p)), a && (h = a(h));
3237
3235
  const S = new URL(i.url);
3238
- switch (f$1) {
3236
+ switch (f) {
3239
3237
  case "no-referrer": return "no-referrer";
3240
3238
  case "origin": return h;
3241
3239
  case "unsafe-url": return p;
@@ -3244,33 +3242,33 @@ function fl(i, { referrerURLCallback: o$1, referrerOriginCallback: a } = {}) {
3244
3242
  case "same-origin": return p.origin === S.origin ? p : "no-referrer";
3245
3243
  case "origin-when-cross-origin": return p.origin === S.origin ? p : h;
3246
3244
  case "no-referrer-when-downgrade": return ct(p) && !ct(S) ? "no-referrer" : p;
3247
- default: throw new TypeError(`Invalid referrerPolicy: ${f$1}`);
3245
+ default: throw new TypeError(`Invalid referrerPolicy: ${f}`);
3248
3246
  }
3249
3247
  }
3250
3248
  n(fl, "determineRequestsReferrer");
3251
3249
  function cl(i) {
3252
- const o$1 = (i.get("referrer-policy") || "").split(/[,\s]+/);
3250
+ const o = (i.get("referrer-policy") || "").split(/[,\s]+/);
3253
3251
  let a = "";
3254
- for (const f$1 of o$1) f$1 && Ci.has(f$1) && (a = f$1);
3252
+ for (const f of o) f && Ci.has(f) && (a = f);
3255
3253
  return a;
3256
3254
  }
3257
3255
  n(cl, "parseReferrerPolicyFromHeader");
3258
- const $ = Symbol("Request internals"), qt = n((i) => typeof i == "object" && typeof i[$] == "object", "isRequest"), dl = 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 {
3259
- constructor(o$1, a = {}) {
3260
- let f$1;
3261
- if (qt(o$1) ? f$1 = new URL(o$1.url) : (f$1 = new URL(o$1), o$1 = {}), f$1.username !== "" || f$1.password !== "") throw new TypeError(`${f$1} is an url with embedded credentials.`);
3262
- let l = a.method || o$1.method || "GET";
3263
- if (/^(delete|get|head|options|post|put)$/i.test(l) && (l = l.toUpperCase()), !qt(a) && "data" in a && dl(), (a.body != null || qt(o$1) && o$1.body !== null) && (l === "GET" || l === "HEAD")) throw new TypeError("Request with GET/HEAD method cannot have body");
3264
- const p = a.body ? a.body : qt(o$1) && o$1.body !== null ? In(o$1) : null;
3265
- super(p, { size: a.size || o$1.size || 0 });
3266
- const h = new ye(a.headers || o$1.headers || {});
3256
+ const $ = Symbol("Request internals"), qt = n((i) => typeof i == "object" && typeof i[$] == "object", "isRequest"), dl = deprecate(() => {}, ".data is not a valid RequestInit property, use .body instead", "https://github.com/node-fetch/node-fetch/issues/1000 (request)"), vr = class vr extends xe {
3257
+ constructor(o, a = {}) {
3258
+ let f;
3259
+ if (qt(o) ? f = new URL(o.url) : (f = new URL(o), o = {}), f.username !== "" || f.password !== "") throw new TypeError(`${f} is an url with embedded credentials.`);
3260
+ let l = a.method || o.method || "GET";
3261
+ 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");
3262
+ const p = a.body ? a.body : qt(o) && o.body !== null ? In(o) : null;
3263
+ super(p, { size: a.size || o.size || 0 });
3264
+ const h = new ye(a.headers || o.headers || {});
3267
3265
  if (p !== null && !h.has("Content-Type")) {
3268
3266
  const w = Ri(p, this);
3269
3267
  w && h.set("Content-Type", w);
3270
3268
  }
3271
- let S = qt(o$1) ? o$1.signal : null;
3269
+ let S = qt(o) ? o.signal : null;
3272
3270
  if ("signal" in a && (S = a.signal), S != null && !Ks(S)) throw new TypeError("Expected signal to be an instanceof AbortSignal or EventTarget");
3273
- let v = a.referrer == null ? o$1.referrer : a.referrer;
3271
+ let v = a.referrer == null ? o.referrer : a.referrer;
3274
3272
  if (v === "") v = "no-referrer";
3275
3273
  else if (v) {
3276
3274
  const w = new URL(v);
@@ -3278,12 +3276,12 @@ const $ = Symbol("Request internals"), qt = n((i) => typeof i == "object" && typ
3278
3276
  } else v = void 0;
3279
3277
  this[$] = {
3280
3278
  method: l,
3281
- redirect: a.redirect || o$1.redirect || "follow",
3279
+ redirect: a.redirect || o.redirect || "follow",
3282
3280
  headers: h,
3283
- parsedURL: f$1,
3281
+ parsedURL: f,
3284
3282
  signal: S,
3285
3283
  referrer: v
3286
- }, this.follow = a.follow === void 0 ? o$1.follow === void 0 ? 20 : o$1.follow : a.follow, this.compress = a.compress === void 0 ? o$1.compress === void 0 ? !0 : o$1.compress : a.compress, this.counter = a.counter || o$1.counter || 0, this.agent = a.agent || o$1.agent, this.highWaterMark = a.highWaterMark || o$1.highWaterMark || 16384, this.insecureHTTPParser = a.insecureHTTPParser || o$1.insecureHTTPParser || !1, this.referrerPolicy = a.referrerPolicy || o$1.referrerPolicy || "";
3284
+ }, 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 || "";
3287
3285
  }
3288
3286
  get method() {
3289
3287
  return this[$].method;
@@ -3308,11 +3306,11 @@ const $ = Symbol("Request internals"), qt = n((i) => typeof i == "object" && typ
3308
3306
  get referrerPolicy() {
3309
3307
  return this[$].referrerPolicy;
3310
3308
  }
3311
- set referrerPolicy(o$1) {
3312
- this[$].referrerPolicy = ll(o$1);
3309
+ set referrerPolicy(o) {
3310
+ this[$].referrerPolicy = ll(o);
3313
3311
  }
3314
3312
  clone() {
3315
- return new vr$1(this);
3313
+ return new vr(this);
3316
3314
  }
3317
3315
  get [Symbol.toStringTag]() {
3318
3316
  return "Request";
@@ -3331,30 +3329,30 @@ Object.defineProperties(dt.prototype, {
3331
3329
  referrerPolicy: { enumerable: !0 }
3332
3330
  });
3333
3331
  const hl = n((i) => {
3334
- const { parsedURL: o$1 } = i[$], a = new ye(i[$].headers);
3332
+ const { parsedURL: o } = i[$], a = new ye(i[$].headers);
3335
3333
  a.has("Accept") || a.set("Accept", "*/*");
3336
- let f$1 = null;
3337
- if (i.body === null && /^(post|put)$/i.test(i.method) && (f$1 = "0"), i.body !== null) {
3334
+ let f = null;
3335
+ if (i.body === null && /^(post|put)$/i.test(i.method) && (f = "0"), i.body !== null) {
3338
3336
  const S = rl(i);
3339
- typeof S == "number" && !Number.isNaN(S) && (f$1 = String(S));
3337
+ typeof S == "number" && !Number.isNaN(S) && (f = String(S));
3340
3338
  }
3341
- 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");
3339
+ f && a.set("Content-Length", f), 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");
3342
3340
  let { agent: l } = i;
3343
- typeof l == "function" && (l = l(o$1));
3344
- const p = al(o$1);
3341
+ typeof l == "function" && (l = l(o));
3342
+ const p = al(o);
3345
3343
  return {
3346
- parsedURL: o$1,
3344
+ parsedURL: o,
3347
3345
  options: {
3348
- path: o$1.pathname + p,
3346
+ path: o.pathname + p,
3349
3347
  method: i.method,
3350
3348
  headers: a[Symbol.for("nodejs.util.inspect.custom")](),
3351
3349
  insecureHTTPParser: i.insecureHTTPParser,
3352
3350
  agent: l
3353
3351
  }
3354
3352
  };
3355
- }, "getNodeRequestOptions"), Hn = class Hn$1 extends ft {
3356
- constructor(o$1, a = "aborted") {
3357
- super(o$1, a);
3353
+ }, "getNodeRequestOptions"), Hn = class Hn extends ft {
3354
+ constructor(o, a = "aborted") {
3355
+ super(o, a);
3358
3356
  }
3359
3357
  };
3360
3358
  n(Hn, "AbortError");
@@ -3363,44 +3361,49 @@ let _r = Hn;
3363
3361
  function pl() {
3364
3362
  if (Pi) return Ln;
3365
3363
  if (Pi = 1, !globalThis.DOMException) try {
3366
- const { MessageChannel: i } = __require("worker_threads"), o$1 = new i().port1, a = /* @__PURE__ */ new ArrayBuffer();
3367
- o$1.postMessage(a, [a, a]);
3364
+ const { MessageChannel: i } = __require("worker_threads"), o = new i().port1, a = /* @__PURE__ */ new ArrayBuffer();
3365
+ o.postMessage(a, [a, a]);
3368
3366
  } catch (i) {
3369
3367
  i.constructor.name === "DOMException" && (globalThis.DOMException = i.constructor);
3370
3368
  }
3371
3369
  return Ln = globalThis.DOMException, Ln;
3372
3370
  }
3373
3371
  n(pl, "requireNodeDomexception");
3374
- const ml = f(pl()), { stat: $n } = promises, yl = n((i, o$1) => vi(statSync(i), i, o$1), "blobFromSync"), gl = n((i, o$1) => $n(i).then((a) => vi(a, i, o$1)), "blobFrom"), _l = n((i, o$1) => $n(i).then((a) => Ei(a, i, o$1)), "fileFrom"), Sl = n((i, o$1) => Ei(statSync(i), i, o$1), "fileFromSync"), vi = n((i, o$1, a = "") => new ut([new Sr({
3375
- path: o$1,
3372
+ const ml = f(pl()), { stat: $n } = promises;
3373
+ n((i, o) => vi(statSync(i), i, o), "blobFromSync");
3374
+ n((i, o) => $n(i).then((a) => vi(a, i, o)), "blobFrom");
3375
+ n((i, o) => $n(i).then((a) => Ei(a, i, o)), "fileFrom");
3376
+ n((i, o) => Ei(statSync(i), i, o), "fileFromSync");
3377
+ const vi = n((i, o, a = "") => new ut([new Sr({
3378
+ path: o,
3376
3379
  size: i.size,
3377
3380
  lastModified: i.mtimeMs,
3378
3381
  start: 0
3379
- })], { type: a }), "fromBlob"), Ei = n((i, o$1, a = "") => new qn([new Sr({
3380
- path: o$1,
3382
+ })], { type: a }), "fromBlob"), Ei = n((i, o, a = "") => new qn([new Sr({
3383
+ path: o,
3381
3384
  size: i.size,
3382
3385
  lastModified: i.mtimeMs,
3383
3386
  start: 0
3384
- })], basename(o$1), {
3387
+ })], basename(o), {
3385
3388
  type: a,
3386
3389
  lastModified: i.mtimeMs
3387
- }), "fromFile"), Er = class Er$1 {
3388
- constructor(o$1) {
3390
+ }), "fromFile"), Er = class Er {
3391
+ constructor(o) {
3389
3392
  be(this, He);
3390
3393
  be(this, Ve);
3391
- X(this, He, o$1.path), X(this, Ve, o$1.start), this.size = o$1.size, this.lastModified = o$1.lastModified;
3394
+ X(this, He, o.path), X(this, Ve, o.start), this.size = o.size, this.lastModified = o.lastModified;
3392
3395
  }
3393
- slice(o$1, a) {
3394
- return new Er$1({
3396
+ slice(o, a) {
3397
+ return new Er({
3395
3398
  path: O(this, He),
3396
3399
  lastModified: this.lastModified,
3397
- size: a - o$1,
3398
- start: O(this, Ve) + o$1
3400
+ size: a - o,
3401
+ start: O(this, Ve) + o
3399
3402
  });
3400
3403
  }
3401
3404
  async *stream() {
3402
- const { mtimeMs: o$1 } = await $n(O(this, He));
3403
- if (o$1 > 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");
3405
+ const { mtimeMs: o } = await $n(O(this, He));
3406
+ 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");
3404
3407
  yield* createReadStream(O(this, He), {
3405
3408
  start: O(this, Ve),
3406
3409
  end: O(this, Ve) + this.size - 1
@@ -3417,9 +3420,9 @@ const wl = new Set([
3417
3420
  "http:",
3418
3421
  "https:"
3419
3422
  ]);
3420
- async function Ai(i, o$1) {
3421
- return new Promise((a, f$1) => {
3422
- const l = new dt(i, o$1), { parsedURL: p, options: h } = hl(l);
3423
+ async function Ai(i, o) {
3424
+ return new Promise((a, f) => {
3425
+ const l = new dt(i, o), { parsedURL: p, options: h } = hl(l);
3423
3426
  if (!wl.has(p.protocol)) throw new TypeError(`node-fetch cannot load ${i}. URL scheme "${p.protocol.replace(/:$/, "")}" is not supported.`);
3424
3427
  if (p.protocol === "data:") {
3425
3428
  const g = Us(l.url);
@@ -3430,7 +3433,7 @@ async function Ai(i, o$1) {
3430
3433
  let w = null;
3431
3434
  const A = n(() => {
3432
3435
  const g = new _r("The operation was aborted.");
3433
- f$1(g), l.body && l.body instanceof me.Readable && l.body.destroy(g), !(!w || !w.body) && w.body.emit("error", g);
3436
+ f(g), l.body && l.body instanceof me.Readable && l.body.destroy(g), !(!w || !w.body) && w.body.emit("error", g);
3434
3437
  }, "abort");
3435
3438
  if (v && v.aborted) {
3436
3439
  A();
@@ -3444,7 +3447,7 @@ async function Ai(i, o$1) {
3444
3447
  b.abort(), v && v.removeEventListener("abort", T);
3445
3448
  }, "finalize");
3446
3449
  b.on("error", (g) => {
3447
- f$1(new G(`request to ${l.url} failed, reason: ${g.message}`, "system", g)), q();
3450
+ f(new G(`request to ${l.url} failed, reason: ${g.message}`, "system", g)), q();
3448
3451
  }), Rl(b, (g) => {
3449
3452
  w && w.body && w.body.destroy(g);
3450
3453
  }), process.version < "v14" && b.on("socket", (g) => {
@@ -3467,19 +3470,19 @@ async function Ai(i, o$1) {
3467
3470
  j = z === null ? null : new URL(z, l.url);
3468
3471
  } catch {
3469
3472
  if (l.redirect !== "manual") {
3470
- f$1(new G(`uri requested responds with an invalid redirect URL: ${z}`, "invalid-redirect")), q();
3473
+ f(new G(`uri requested responds with an invalid redirect URL: ${z}`, "invalid-redirect")), q();
3471
3474
  return;
3472
3475
  }
3473
3476
  }
3474
3477
  switch (l.redirect) {
3475
3478
  case "error":
3476
- f$1(new G(`uri requested responds with a redirect, redirect mode is set to error: ${l.url}`, "no-redirect")), q();
3479
+ f(new G(`uri requested responds with a redirect, redirect mode is set to error: ${l.url}`, "no-redirect")), q();
3477
3480
  return;
3478
3481
  case "manual": break;
3479
3482
  case "follow": {
3480
3483
  if (j === null) break;
3481
3484
  if (l.counter >= l.follow) {
3482
- f$1(new G(`maximum redirect reached at: ${l.url}`, "max-redirect")), q();
3485
+ f(new G(`maximum redirect reached at: ${l.url}`, "max-redirect")), q();
3483
3486
  return;
3484
3487
  }
3485
3488
  const U = {
@@ -3501,8 +3504,8 @@ async function Ai(i, o$1) {
3501
3504
  "cookie",
3502
3505
  "cookie2"
3503
3506
  ]) U.headers.delete(jt);
3504
- if (g.statusCode !== 303 && l.body && o$1.body instanceof me.Readable) {
3505
- f$1(new G("Cannot follow redirect with body being a readable stream", "unsupported-redirect")), q();
3507
+ if (g.statusCode !== 303 && l.body && o.body instanceof me.Readable) {
3508
+ f(new G("Cannot follow redirect with body being a readable stream", "unsupported-redirect")), q();
3506
3509
  return;
3507
3510
  }
3508
3511
  (g.statusCode === 303 || (g.statusCode === 301 || g.statusCode === 302) && l.method === "POST") && (U.method = "GET", U.body = void 0, U.headers.delete("content-length"));
@@ -3510,14 +3513,14 @@ async function Ai(i, o$1) {
3510
3513
  D && (U.referrerPolicy = D), a(Ai(new dt(j, U))), q();
3511
3514
  return;
3512
3515
  }
3513
- default: return f$1(/* @__PURE__ */ new TypeError(`Redirect option '${l.redirect}' is not a valid value of RequestRedirect`));
3516
+ default: return f(/* @__PURE__ */ new TypeError(`Redirect option '${l.redirect}' is not a valid value of RequestRedirect`));
3514
3517
  }
3515
3518
  }
3516
3519
  v && g.once("end", () => {
3517
3520
  v.removeEventListener("abort", T);
3518
3521
  });
3519
3522
  let I = pipeline(g, new PassThrough(), (z) => {
3520
- z && f$1(z);
3523
+ z && f(z);
3521
3524
  });
3522
3525
  process.version < "v12.10" && g.on("aborted", T);
3523
3526
  const F = {
@@ -3539,19 +3542,19 @@ async function Ai(i, o$1) {
3539
3542
  };
3540
3543
  if (Q === "gzip" || Q === "x-gzip") {
3541
3544
  I = pipeline(I, st.createGunzip(ge), (z) => {
3542
- z && f$1(z);
3545
+ z && f(z);
3543
3546
  }), w = new le(I, F), a(w);
3544
3547
  return;
3545
3548
  }
3546
3549
  if (Q === "deflate" || Q === "x-deflate") {
3547
3550
  const z = pipeline(g, new PassThrough(), (j) => {
3548
- j && f$1(j);
3551
+ j && f(j);
3549
3552
  });
3550
3553
  z.once("data", (j) => {
3551
3554
  (j[0] & 15) === 8 ? I = pipeline(I, st.createInflate(), (U) => {
3552
- U && f$1(U);
3555
+ U && f(U);
3553
3556
  }) : I = pipeline(I, st.createInflateRaw(), (U) => {
3554
- U && f$1(U);
3557
+ U && f(U);
3555
3558
  }), w = new le(I, F), a(w);
3556
3559
  }), z.once("end", () => {
3557
3560
  w || (w = new le(I, F), a(w));
@@ -3560,28 +3563,28 @@ async function Ai(i, o$1) {
3560
3563
  }
3561
3564
  if (Q === "br") {
3562
3565
  I = pipeline(I, st.createBrotliDecompress(), (z) => {
3563
- z && f$1(z);
3566
+ z && f(z);
3564
3567
  }), w = new le(I, F), a(w);
3565
3568
  return;
3566
3569
  }
3567
3570
  w = new le(I, F), a(w);
3568
- }), nl(b, l).catch(f$1);
3571
+ }), nl(b, l).catch(f);
3569
3572
  });
3570
3573
  }
3571
3574
  n(Ai, "fetch$1");
3572
- function Rl(i, o$1) {
3575
+ function Rl(i, o) {
3573
3576
  const a = Buffer$1.from(`0\r
3574
3577
  \r
3575
3578
  `);
3576
- let f$1 = !1, l = !1, p;
3579
+ let f = !1, l = !1, p;
3577
3580
  i.on("response", (h) => {
3578
3581
  const { headers: S } = h;
3579
- f$1 = S["transfer-encoding"] === "chunked" && !S["content-length"];
3582
+ f = S["transfer-encoding"] === "chunked" && !S["content-length"];
3580
3583
  }), i.on("socket", (h) => {
3581
3584
  const S = n(() => {
3582
- if (f$1 && !l) {
3585
+ if (f && !l) {
3583
3586
  const w = /* @__PURE__ */ new Error("Premature close");
3584
- w.code = "ERR_STREAM_PREMATURE_CLOSE", o$1(w);
3587
+ w.code = "ERR_STREAM_PREMATURE_CLOSE", o(w);
3585
3588
  }
3586
3589
  }, "onSocketClose"), v = n((w) => {
3587
3590
  l = Buffer$1.compare(w.slice(-5), a) === 0, !l && p && (l = Buffer$1.compare(p.slice(-3), a.slice(0, 3)) === 0 && Buffer$1.compare(w.slice(-2), a.slice(3)) === 0), p = w;
@@ -3594,8 +3597,8 @@ function Rl(i, o$1) {
3594
3597
  n(Rl, "fixResponseChunkedTransferBadEnding");
3595
3598
  const Bi = /* @__PURE__ */ new WeakMap(), Dn = /* @__PURE__ */ new WeakMap();
3596
3599
  function W(i) {
3597
- const o$1 = Bi.get(i);
3598
- return console.assert(o$1 != null, "'this' is expected an Event object, but got", i), o$1;
3600
+ const o = Bi.get(i);
3601
+ return console.assert(o != null, "'this' is expected an Event object, but got", i), o;
3599
3602
  }
3600
3603
  n(W, "pd");
3601
3604
  function ki(i) {
@@ -3606,24 +3609,24 @@ function ki(i) {
3606
3609
  i.event.cancelable && (i.canceled = !0, typeof i.event.preventDefault == "function" && i.event.preventDefault());
3607
3610
  }
3608
3611
  n(ki, "setCancelFlag");
3609
- function ht(i, o$1) {
3612
+ function ht(i, o) {
3610
3613
  Bi.set(this, {
3611
3614
  eventTarget: i,
3612
- event: o$1,
3615
+ event: o,
3613
3616
  eventPhase: 2,
3614
3617
  currentTarget: i,
3615
3618
  canceled: !1,
3616
3619
  stopped: !1,
3617
3620
  immediateStopped: !1,
3618
3621
  passiveListener: null,
3619
- timeStamp: o$1.timeStamp || Date.now()
3622
+ timeStamp: o.timeStamp || Date.now()
3620
3623
  }), Object.defineProperty(this, "isTrusted", {
3621
3624
  value: !1,
3622
3625
  enumerable: !0
3623
3626
  });
3624
- const a = Object.keys(o$1);
3625
- for (let f$1 = 0; f$1 < a.length; ++f$1) {
3626
- const l = a[f$1];
3627
+ const a = Object.keys(o);
3628
+ for (let f = 0; f < a.length; ++f) {
3629
+ const l = a[f];
3627
3630
  l in this || Object.defineProperty(this, l, Wi(l));
3628
3631
  }
3629
3632
  }
@@ -3690,8 +3693,8 @@ n(ht, "Event"), ht.prototype = {
3690
3693
  },
3691
3694
  set cancelBubble(i) {
3692
3695
  if (!i) return;
3693
- const o$1 = W(this);
3694
- o$1.stopped = !0, typeof o$1.event.cancelBubble == "boolean" && (o$1.event.cancelBubble = !0);
3696
+ const o = W(this);
3697
+ o.stopped = !0, typeof o.event.cancelBubble == "boolean" && (o.event.cancelBubble = !0);
3695
3698
  },
3696
3699
  get returnValue() {
3697
3700
  return !W(this).canceled;
@@ -3710,8 +3713,8 @@ function Wi(i) {
3710
3713
  get() {
3711
3714
  return W(this).event[i];
3712
3715
  },
3713
- set(o$1) {
3714
- W(this).event[i] = o$1;
3716
+ set(o) {
3717
+ W(this).event[i] = o;
3715
3718
  },
3716
3719
  configurable: !0,
3717
3720
  enumerable: !0
@@ -3721,59 +3724,59 @@ n(Wi, "defineRedirectDescriptor");
3721
3724
  function Tl(i) {
3722
3725
  return {
3723
3726
  value() {
3724
- const o$1 = W(this).event;
3725
- return o$1[i].apply(o$1, arguments);
3727
+ const o = W(this).event;
3728
+ return o[i].apply(o, arguments);
3726
3729
  },
3727
3730
  configurable: !0,
3728
3731
  enumerable: !0
3729
3732
  };
3730
3733
  }
3731
3734
  n(Tl, "defineCallDescriptor");
3732
- function Cl(i, o$1) {
3733
- const a = Object.keys(o$1);
3735
+ function Cl(i, o) {
3736
+ const a = Object.keys(o);
3734
3737
  if (a.length === 0) return i;
3735
- function f$1(l, p) {
3738
+ function f(l, p) {
3736
3739
  i.call(this, l, p);
3737
3740
  }
3738
- n(f$1, "CustomEvent"), f$1.prototype = Object.create(i.prototype, { constructor: {
3739
- value: f$1,
3741
+ n(f, "CustomEvent"), f.prototype = Object.create(i.prototype, { constructor: {
3742
+ value: f,
3740
3743
  configurable: !0,
3741
3744
  writable: !0
3742
3745
  } });
3743
3746
  for (let l = 0; l < a.length; ++l) {
3744
3747
  const p = a[l];
3745
3748
  if (!(p in i.prototype)) {
3746
- const S = typeof Object.getOwnPropertyDescriptor(o$1, p).value == "function";
3747
- Object.defineProperty(f$1.prototype, p, S ? Tl(p) : Wi(p));
3749
+ const S = typeof Object.getOwnPropertyDescriptor(o, p).value == "function";
3750
+ Object.defineProperty(f.prototype, p, S ? Tl(p) : Wi(p));
3748
3751
  }
3749
3752
  }
3750
- return f$1;
3753
+ return f;
3751
3754
  }
3752
3755
  n(Cl, "defineWrapper");
3753
3756
  function qi(i) {
3754
3757
  if (i == null || i === Object.prototype) return ht;
3755
- let o$1 = Dn.get(i);
3756
- return o$1 ?? (o$1 = Cl(qi(Object.getPrototypeOf(i)), i), Dn.set(i, o$1)), o$1;
3758
+ let o = Dn.get(i);
3759
+ return o ?? (o = Cl(qi(Object.getPrototypeOf(i)), i), Dn.set(i, o)), o;
3757
3760
  }
3758
3761
  n(qi, "getWrapper");
3759
- function Pl(i, o$1) {
3760
- return new (qi(Object.getPrototypeOf(o$1)))(i, o$1);
3762
+ function Pl(i, o) {
3763
+ return new (qi(Object.getPrototypeOf(o)))(i, o);
3761
3764
  }
3762
3765
  n(Pl, "wrapEvent");
3763
3766
  function vl(i) {
3764
3767
  return W(i).immediateStopped;
3765
3768
  }
3766
3769
  n(vl, "isStopped");
3767
- function El(i, o$1) {
3768
- W(i).eventPhase = o$1;
3770
+ function El(i, o) {
3771
+ W(i).eventPhase = o;
3769
3772
  }
3770
3773
  n(El, "setEventPhase");
3771
- function Al(i, o$1) {
3772
- W(i).currentTarget = o$1;
3774
+ function Al(i, o) {
3775
+ W(i).currentTarget = o;
3773
3776
  }
3774
3777
  n(Al, "setCurrentTarget");
3775
- function Oi(i, o$1) {
3776
- W(i).passiveListener = o$1;
3778
+ function Oi(i, o) {
3779
+ W(i).passiveListener = o;
3777
3780
  }
3778
3781
  n(Oi, "setPassiveListener");
3779
3782
  const zi = /* @__PURE__ */ new WeakMap(), Ii = 1, Fi = 2, wr = 3;
@@ -3782,9 +3785,9 @@ function Rr(i) {
3782
3785
  }
3783
3786
  n(Rr, "isObject");
3784
3787
  function Ot(i) {
3785
- const o$1 = zi.get(i);
3786
- if (o$1 == null) throw new TypeError("'this' is expected an EventTarget object, but got another value.");
3787
- return o$1;
3788
+ const o = zi.get(i);
3789
+ if (o == null) throw new TypeError("'this' is expected an EventTarget object, but got another value.");
3790
+ return o;
3788
3791
  }
3789
3792
  n(Ot, "getListeners");
3790
3793
  function Bl(i) {
@@ -3797,20 +3800,20 @@ function Bl(i) {
3797
3800
  }
3798
3801
  return null;
3799
3802
  },
3800
- set(o$1) {
3801
- typeof o$1 != "function" && !Rr(o$1) && (o$1 = null);
3803
+ set(o) {
3804
+ typeof o != "function" && !Rr(o) && (o = null);
3802
3805
  const a = Ot(this);
3803
- let f$1 = null, l = a.get(i);
3804
- 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;
3805
- if (o$1 !== null) {
3806
+ let f = null, l = a.get(i);
3807
+ for (; l != null;) l.listenerType === wr ? f !== null ? f.next = l.next : l.next !== null ? a.set(i, l.next) : a.delete(i) : f = l, l = l.next;
3808
+ if (o !== null) {
3806
3809
  const p = {
3807
- listener: o$1,
3810
+ listener: o,
3808
3811
  listenerType: wr,
3809
3812
  passive: !1,
3810
3813
  once: !1,
3811
3814
  next: null
3812
3815
  };
3813
- f$1 === null ? a.set(i, p) : f$1.next = p;
3816
+ f === null ? a.set(i, p) : f.next = p;
3814
3817
  }
3815
3818
  },
3816
3819
  configurable: !0,
@@ -3818,21 +3821,21 @@ function Bl(i) {
3818
3821
  };
3819
3822
  }
3820
3823
  n(Bl, "defineEventAttributeDescriptor");
3821
- function ji(i, o$1) {
3822
- Object.defineProperty(i, `on${o$1}`, Bl(o$1));
3824
+ function ji(i, o) {
3825
+ Object.defineProperty(i, `on${o}`, Bl(o));
3823
3826
  }
3824
3827
  n(ji, "defineEventAttribute");
3825
3828
  function Li(i) {
3826
- function o$1() {
3829
+ function o() {
3827
3830
  Pe.call(this);
3828
3831
  }
3829
- n(o$1, "CustomEventTarget"), o$1.prototype = Object.create(Pe.prototype, { constructor: {
3830
- value: o$1,
3832
+ n(o, "CustomEventTarget"), o.prototype = Object.create(Pe.prototype, { constructor: {
3833
+ value: o,
3831
3834
  configurable: !0,
3832
3835
  writable: !0
3833
3836
  } });
3834
- for (let a = 0; a < i.length; ++a) ji(o$1.prototype, i[a]);
3835
- return o$1;
3837
+ for (let a = 0; a < i.length; ++a) ji(o.prototype, i[a]);
3838
+ return o;
3836
3839
  }
3837
3840
  n(Li, "defineCustomEventTarget");
3838
3841
  function Pe() {
@@ -3843,41 +3846,41 @@ function Pe() {
3843
3846
  if (arguments.length === 1 && Array.isArray(arguments[0])) return Li(arguments[0]);
3844
3847
  if (arguments.length > 0) {
3845
3848
  const i = new Array(arguments.length);
3846
- for (let o$1 = 0; o$1 < arguments.length; ++o$1) i[o$1] = arguments[o$1];
3849
+ for (let o = 0; o < arguments.length; ++o) i[o] = arguments[o];
3847
3850
  return Li(i);
3848
3851
  }
3849
3852
  throw new TypeError("Cannot call a class as a function");
3850
3853
  }
3851
3854
  n(Pe, "EventTarget"), Pe.prototype = {
3852
- addEventListener(i, o$1, a) {
3853
- if (o$1 == null) return;
3854
- if (typeof o$1 != "function" && !Rr(o$1)) throw new TypeError("'listener' should be a function or an object.");
3855
- const f$1 = Ot(this), l = Rr(a), h = (l ? !!a.capture : !!a) ? Ii : Fi, S = {
3856
- listener: o$1,
3855
+ addEventListener(i, o, a) {
3856
+ if (o == null) return;
3857
+ if (typeof o != "function" && !Rr(o)) throw new TypeError("'listener' should be a function or an object.");
3858
+ const f = Ot(this), l = Rr(a), h = (l ? !!a.capture : !!a) ? Ii : Fi, S = {
3859
+ listener: o,
3857
3860
  listenerType: h,
3858
3861
  passive: l && !!a.passive,
3859
3862
  once: l && !!a.once,
3860
3863
  next: null
3861
3864
  };
3862
- let v = f$1.get(i);
3865
+ let v = f.get(i);
3863
3866
  if (v === void 0) {
3864
- f$1.set(i, S);
3867
+ f.set(i, S);
3865
3868
  return;
3866
3869
  }
3867
3870
  let w = null;
3868
3871
  for (; v != null;) {
3869
- if (v.listener === o$1 && v.listenerType === h) return;
3872
+ if (v.listener === o && v.listenerType === h) return;
3870
3873
  w = v, v = v.next;
3871
3874
  }
3872
3875
  w.next = S;
3873
3876
  },
3874
- removeEventListener(i, o$1, a) {
3875
- if (o$1 == null) return;
3876
- const f$1 = Ot(this), p = (Rr(a) ? !!a.capture : !!a) ? Ii : Fi;
3877
- let h = null, S = f$1.get(i);
3877
+ removeEventListener(i, o, a) {
3878
+ if (o == null) return;
3879
+ const f = Ot(this), p = (Rr(a) ? !!a.capture : !!a) ? Ii : Fi;
3880
+ let h = null, S = f.get(i);
3878
3881
  for (; S != null;) {
3879
- if (S.listener === o$1 && S.listenerType === p) {
3880
- h !== null ? h.next = S.next : S.next !== null ? f$1.set(i, S.next) : f$1.delete(i);
3882
+ if (S.listener === o && S.listenerType === p) {
3883
+ h !== null ? h.next = S.next : S.next !== null ? f.set(i, S.next) : f.delete(i);
3881
3884
  return;
3882
3885
  }
3883
3886
  h = S, S = S.next;
@@ -3885,20 +3888,20 @@ n(Pe, "EventTarget"), Pe.prototype = {
3885
3888
  },
3886
3889
  dispatchEvent(i) {
3887
3890
  if (i == null || typeof i.type != "string") throw new TypeError("\"event.type\" should be a string.");
3888
- const o$1 = Ot(this), a = i.type;
3889
- let f$1 = o$1.get(a);
3890
- if (f$1 == null) return !0;
3891
+ const o = Ot(this), a = i.type;
3892
+ let f = o.get(a);
3893
+ if (f == null) return !0;
3891
3894
  const l = Pl(this, i);
3892
3895
  let p = null;
3893
- for (; f$1 != null;) {
3894
- if (f$1.once ? p !== null ? p.next = f$1.next : f$1.next !== null ? o$1.set(a, f$1.next) : o$1.delete(a) : p = f$1, Oi(l, f$1.passive ? f$1.listener : null), typeof f$1.listener == "function") try {
3895
- f$1.listener.call(this, l);
3896
+ for (; f != null;) {
3897
+ if (f.once ? p !== null ? p.next = f.next : f.next !== null ? o.set(a, f.next) : o.delete(a) : p = f, Oi(l, f.passive ? f.listener : null), typeof f.listener == "function") try {
3898
+ f.listener.call(this, l);
3896
3899
  } catch (h) {
3897
3900
  typeof console < "u" && typeof console.error == "function" && console.error(h);
3898
3901
  }
3899
- else f$1.listenerType !== wr && typeof f$1.listener.handleEvent == "function" && f$1.listener.handleEvent(l);
3902
+ else f.listenerType !== wr && typeof f.listener.handleEvent == "function" && f.listener.handleEvent(l);
3900
3903
  if (vl(l)) break;
3901
- f$1 = f$1.next;
3904
+ f = f.next;
3902
3905
  }
3903
3906
  return Oi(l, null), El(l, 0), Al(l, null), !l.defaultPrevented;
3904
3907
  }
@@ -3907,14 +3910,14 @@ n(Pe, "EventTarget"), Pe.prototype = {
3907
3910
  configurable: !0,
3908
3911
  writable: !0
3909
3912
  }), typeof window < "u" && typeof window.EventTarget < "u" && Object.setPrototypeOf(Pe.prototype, window.EventTarget.prototype);
3910
- const Vn = class Vn$1 extends Pe {
3913
+ const Vn = class Vn extends Pe {
3911
3914
  constructor() {
3912
3915
  throw super(), /* @__PURE__ */ new TypeError("AbortSignal cannot be constructed directly");
3913
3916
  }
3914
3917
  get aborted() {
3915
- const o$1 = Tr.get(this);
3916
- if (typeof o$1 != "boolean") throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this === null ? "null" : typeof this}`);
3917
- return o$1;
3918
+ const o = Tr.get(this);
3919
+ if (typeof o != "boolean") throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this === null ? "null" : typeof this}`);
3920
+ return o;
3918
3921
  }
3919
3922
  };
3920
3923
  n(Vn, "AbortSignal");
@@ -3947,9 +3950,9 @@ let Mn = (gt = class {
3947
3950
  }, n(gt, "AbortController"), gt);
3948
3951
  const $i = /* @__PURE__ */ new WeakMap();
3949
3952
  function Di(i) {
3950
- const o$1 = $i.get(i);
3951
- if (o$1 == null) throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${i === null ? "null" : typeof i}`);
3952
- return o$1;
3953
+ const o = $i.get(i);
3954
+ if (o == null) throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${i === null ? "null" : typeof i}`);
3955
+ return o;
3953
3956
  }
3954
3957
  n(Di, "getSignal"), Object.defineProperties(Mn.prototype, {
3955
3958
  signal: { enumerable: !0 },
@@ -3958,8 +3961,8 @@ n(Di, "getSignal"), Object.defineProperties(Mn.prototype, {
3958
3961
  configurable: !0,
3959
3962
  value: "AbortController"
3960
3963
  });
3961
- var ql = Object.defineProperty, Ol = n((i, o$1) => ql(i, "name", {
3962
- value: o$1,
3964
+ var ql = Object.defineProperty, Ol = n((i, o) => ql(i, "name", {
3965
+ value: o,
3963
3966
  configurable: !0
3964
3967
  }), "e");
3965
3968
  const Mi = Ai;
@@ -3968,6 +3971,5 @@ function Ui() {
3968
3971
  !globalThis.process?.versions?.node && !globalThis.process?.env?.DISABLE_NODE_FETCH_NATIVE_WARN && console.warn("[node-fetch-native] Node.js compatible build of `node-fetch-native` is being used in a non-Node.js environment. Please make sure you are using proper export conditions or report this issue to https://github.com/unjs/node-fetch-native. You can set `process.env.DISABLE_NODE_FETCH_NATIVE_WARN` to disable this warning.");
3969
3972
  }
3970
3973
  n(Ui, "s"), Ol(Ui, "checkNodeEnvironment");
3971
-
3972
3974
  //#endregion
3973
- export { le as a, ye as c, dt as i, Mn as n, qn as o, br as r, ut as s, Mi as t };
3975
+ export { le as a, ye as c, dt as i, Mn as n, qn as o, br as r, ut as s, Mi as t };