@wp-playground/cli 1.1.5 → 1.2.0

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,10 +1,10 @@
1
- import { logger as xe, errorLogPath as ns } from "@php-wasm/logger";
1
+ import { logger as me, errorLogPath as ns } from "@php-wasm/logger";
2
2
  import { ProgressTracker as rs, EmscriptenDownloadMonitor as is } from "@php-wasm/progress";
3
3
  import { SupportedPHPVersions as ss, PHPResponse as os, consumeAPI as Yn, exposeAPI as Zn } from "@php-wasm/universal";
4
4
  import { resolveRemoteBlueprint as as, isBlueprintBundle as cs, compileBlueprint as ls, runBlueprintSteps as fs } from "@wp-playground/blueprints";
5
5
  import { RecommendedPHPVersion as Qr, zipDirectory as Vn, unzipFile as us } from "@wp-playground/common";
6
6
  import ye, { existsSync as ei } from "fs";
7
- import Je, { basename as kt, join as Pn } from "path";
7
+ import Je, { basename as Et, join as Pn } from "path";
8
8
  import { Worker as ds } from "worker_threads";
9
9
  import { resolveWordPressRelease as ps } from "@wp-playground/wordpress";
10
10
  import mt from "fs-extra";
@@ -16,13 +16,13 @@ import { Semaphore as Dn } from "@php-wasm/util";
16
16
  function _s(n) {
17
17
  const t = process.cwd(), e = [...n.mount || []], r = [...n.mountBeforeInstall || []];
18
18
  if (ri(t)) {
19
- const c = kt(t);
19
+ const c = Et(t);
20
20
  e.push({
21
21
  hostPath: t,
22
22
  vfsPath: `/wordpress/wp-content/plugins/${c}`
23
23
  });
24
24
  } else if (ni(t)) {
25
- const c = kt(t);
25
+ const c = Et(t);
26
26
  e.push({
27
27
  hostPath: t,
28
28
  vfsPath: `/wordpress/wp-content/themes/${c}`
@@ -84,12 +84,12 @@ function ys(n) {
84
84
  return ri(n) ? [
85
85
  {
86
86
  step: "activatePlugin",
87
- pluginPath: `/wordpress/wp-content/plugins/${kt(n)}`
87
+ pluginPath: `/wordpress/wp-content/plugins/${Et(n)}`
88
88
  }
89
89
  ] : ni(n) ? [
90
90
  {
91
91
  step: "activateTheme",
92
- themeFolderName: kt(n)
92
+ themeFolderName: Et(n)
93
93
  }
94
94
  ] : ti(n) || vn(n) ? [
95
95
  {
@@ -108,7 +108,7 @@ function ys(n) {
108
108
  }
109
109
  ] : [];
110
110
  }
111
- const En = Je.join(ms.homedir(), ".wordpress-playground");
111
+ const kn = Je.join(ms.homedir(), ".wordpress-playground");
112
112
  async function bs(n) {
113
113
  return await ii(
114
114
  "https://github.com/WordPress/sqlite-database-integration/archive/refs/heads/develop.zip",
@@ -117,8 +117,8 @@ async function bs(n) {
117
117
  );
118
118
  }
119
119
  async function ii(n, t, e) {
120
- const r = Je.join(En, t);
121
- return mt.existsSync(r) || (mt.ensureDirSync(En), await vs(n, r, e)), si(r);
120
+ const r = Je.join(kn, t);
121
+ return mt.existsSync(r) || (mt.ensureDirSync(kn), await vs(n, r, e)), si(r);
122
122
  }
123
123
  async function vs(n, t, e) {
124
124
  const s = (await e.monitorFetch(fetch(n))).body.getReader(), a = `${t}.partial`, c = mt.createWriteStream(a);
@@ -136,9 +136,9 @@ async function vs(n, t, e) {
136
136
  });
137
137
  }
138
138
  function si(n, t) {
139
- return new File([mt.readFileSync(n)], kt(n));
139
+ return new File([mt.readFileSync(n)], Et(n));
140
140
  }
141
- async function Es(n) {
141
+ async function ks(n) {
142
142
  const t = xs(), e = await new Promise((a, c) => {
143
143
  const l = t.listen(n.port, () => {
144
144
  const f = l.address();
@@ -150,7 +150,7 @@ async function Es(n) {
150
150
  url: a.url,
151
151
  headers: Ss(a),
152
152
  method: a.method,
153
- body: await ks(a)
153
+ body: await Es(a)
154
154
  });
155
155
  c.statusCode = l.httpStatusCode;
156
156
  for (const f in l.headers)
@@ -160,7 +160,7 @@ async function Es(n) {
160
160
  const s = e.address().port;
161
161
  return await n.onBind(e, s);
162
162
  }
163
- const ks = async (n) => await new Promise((t) => {
163
+ const Es = async (n) => await new Promise((t) => {
164
164
  const e = [];
165
165
  n.on("data", (r) => {
166
166
  e.push(r);
@@ -248,7 +248,7 @@ class oi extends Error {
248
248
  if (a instanceof Error) {
249
249
  if (a.isReportableInCLI)
250
250
  return a;
251
- Array.isArray(a.cause) ? s.push(...a.cause) : s.push(a.cause), e++, e >= r && xe.warn(
251
+ Array.isArray(a.cause) ? s.push(...a.cause) : s.push(a.cause), e++, e >= r && me.warn(
252
252
  "Recursion limit exceeded while checking if error is reportable"
253
253
  );
254
254
  }
@@ -287,36 +287,36 @@ var Is = {};
287
287
  })(function(t) {
288
288
  t.version = "1.2.2";
289
289
  function e() {
290
- for (var b = 0, C = new Array(256), v = 0; v != 256; ++v)
291
- b = v, b = b & 1 ? -306674912 ^ b >>> 1 : b >>> 1, b = b & 1 ? -306674912 ^ b >>> 1 : b >>> 1, b = b & 1 ? -306674912 ^ b >>> 1 : b >>> 1, b = b & 1 ? -306674912 ^ b >>> 1 : b >>> 1, b = b & 1 ? -306674912 ^ b >>> 1 : b >>> 1, b = b & 1 ? -306674912 ^ b >>> 1 : b >>> 1, b = b & 1 ? -306674912 ^ b >>> 1 : b >>> 1, b = b & 1 ? -306674912 ^ b >>> 1 : b >>> 1, C[v] = b;
292
- return typeof Int32Array < "u" ? new Int32Array(C) : C;
290
+ for (var y = 0, D = new Array(256), b = 0; b != 256; ++b)
291
+ y = b, y = y & 1 ? -306674912 ^ y >>> 1 : y >>> 1, y = y & 1 ? -306674912 ^ y >>> 1 : y >>> 1, y = y & 1 ? -306674912 ^ y >>> 1 : y >>> 1, y = y & 1 ? -306674912 ^ y >>> 1 : y >>> 1, y = y & 1 ? -306674912 ^ y >>> 1 : y >>> 1, y = y & 1 ? -306674912 ^ y >>> 1 : y >>> 1, y = y & 1 ? -306674912 ^ y >>> 1 : y >>> 1, y = y & 1 ? -306674912 ^ y >>> 1 : y >>> 1, D[b] = y;
292
+ return typeof Int32Array < "u" ? new Int32Array(D) : D;
293
293
  }
294
294
  var r = e();
295
- function s(b) {
296
- var C = 0, v = 0, S = 0, M = typeof Int32Array < "u" ? new Int32Array(4096) : new Array(4096);
297
- for (S = 0; S != 256; ++S) M[S] = b[S];
298
- for (S = 0; S != 256; ++S)
299
- for (v = b[S], C = 256 + S; C < 4096; C += 256) v = M[C] = v >>> 8 ^ b[v & 255];
300
- var L = [];
301
- for (S = 1; S != 16; ++S) L[S - 1] = typeof Int32Array < "u" ? M.subarray(S * 256, S * 256 + 256) : M.slice(S * 256, S * 256 + 256);
302
- return L;
295
+ function s(y) {
296
+ var D = 0, b = 0, E = 0, M = typeof Int32Array < "u" ? new Int32Array(4096) : new Array(4096);
297
+ for (E = 0; E != 256; ++E) M[E] = y[E];
298
+ for (E = 0; E != 256; ++E)
299
+ for (b = y[E], D = 256 + E; D < 4096; D += 256) b = M[D] = b >>> 8 ^ y[b & 255];
300
+ var O = [];
301
+ for (E = 1; E != 16; ++E) O[E - 1] = typeof Int32Array < "u" ? M.subarray(E * 256, E * 256 + 256) : M.slice(E * 256, E * 256 + 256);
302
+ return O;
303
303
  }
304
- var a = s(r), c = a[0], l = a[1], f = a[2], _ = a[3], x = a[4], w = a[5], g = a[6], k = a[7], P = a[8], m = a[9], d = a[10], h = a[11], y = a[12], T = a[13], D = a[14];
305
- function A(b, C) {
306
- for (var v = C ^ -1, S = 0, M = b.length; S < M; ) v = v >>> 8 ^ r[(v ^ b.charCodeAt(S++)) & 255];
307
- return ~v;
304
+ var a = s(r), c = a[0], l = a[1], f = a[2], _ = a[3], x = a[4], w = a[5], g = a[6], T = a[7], C = a[8], m = a[9], d = a[10], h = a[11], v = a[12], A = a[13], P = a[14];
305
+ function S(y, D) {
306
+ for (var b = D ^ -1, E = 0, M = y.length; E < M; ) b = b >>> 8 ^ r[(b ^ y.charCodeAt(E++)) & 255];
307
+ return ~b;
308
308
  }
309
- function R(b, C) {
310
- for (var v = C ^ -1, S = b.length - 15, M = 0; M < S; ) v = D[b[M++] ^ v & 255] ^ T[b[M++] ^ v >> 8 & 255] ^ y[b[M++] ^ v >> 16 & 255] ^ h[b[M++] ^ v >>> 24] ^ d[b[M++]] ^ m[b[M++]] ^ P[b[M++]] ^ k[b[M++]] ^ g[b[M++]] ^ w[b[M++]] ^ x[b[M++]] ^ _[b[M++]] ^ f[b[M++]] ^ l[b[M++]] ^ c[b[M++]] ^ r[b[M++]];
311
- for (S += 15; M < S; ) v = v >>> 8 ^ r[(v ^ b[M++]) & 255];
312
- return ~v;
309
+ function R(y, D) {
310
+ for (var b = D ^ -1, E = y.length - 15, M = 0; M < E; ) b = P[y[M++] ^ b & 255] ^ A[y[M++] ^ b >> 8 & 255] ^ v[y[M++] ^ b >> 16 & 255] ^ h[y[M++] ^ b >>> 24] ^ d[y[M++]] ^ m[y[M++]] ^ C[y[M++]] ^ T[y[M++]] ^ g[y[M++]] ^ w[y[M++]] ^ x[y[M++]] ^ _[y[M++]] ^ f[y[M++]] ^ l[y[M++]] ^ c[y[M++]] ^ r[y[M++]];
311
+ for (E += 15; M < E; ) b = b >>> 8 ^ r[(b ^ y[M++]) & 255];
312
+ return ~b;
313
313
  }
314
- function F(b, C) {
315
- for (var v = C ^ -1, S = 0, M = b.length, L = 0, Y = 0; S < M; )
316
- L = b.charCodeAt(S++), L < 128 ? v = v >>> 8 ^ r[(v ^ L) & 255] : L < 2048 ? (v = v >>> 8 ^ r[(v ^ (192 | L >> 6 & 31)) & 255], v = v >>> 8 ^ r[(v ^ (128 | L & 63)) & 255]) : L >= 55296 && L < 57344 ? (L = (L & 1023) + 64, Y = b.charCodeAt(S++) & 1023, v = v >>> 8 ^ r[(v ^ (240 | L >> 8 & 7)) & 255], v = v >>> 8 ^ r[(v ^ (128 | L >> 2 & 63)) & 255], v = v >>> 8 ^ r[(v ^ (128 | Y >> 6 & 15 | (L & 3) << 4)) & 255], v = v >>> 8 ^ r[(v ^ (128 | Y & 63)) & 255]) : (v = v >>> 8 ^ r[(v ^ (224 | L >> 12 & 15)) & 255], v = v >>> 8 ^ r[(v ^ (128 | L >> 6 & 63)) & 255], v = v >>> 8 ^ r[(v ^ (128 | L & 63)) & 255]);
317
- return ~v;
314
+ function F(y, D) {
315
+ for (var b = D ^ -1, E = 0, M = y.length, O = 0, $ = 0; E < M; )
316
+ O = y.charCodeAt(E++), O < 128 ? b = b >>> 8 ^ r[(b ^ O) & 255] : O < 2048 ? (b = b >>> 8 ^ r[(b ^ (192 | O >> 6 & 31)) & 255], b = b >>> 8 ^ r[(b ^ (128 | O & 63)) & 255]) : O >= 55296 && O < 57344 ? (O = (O & 1023) + 64, $ = y.charCodeAt(E++) & 1023, b = b >>> 8 ^ r[(b ^ (240 | O >> 8 & 7)) & 255], b = b >>> 8 ^ r[(b ^ (128 | O >> 2 & 63)) & 255], b = b >>> 8 ^ r[(b ^ (128 | $ >> 6 & 15 | (O & 3) << 4)) & 255], b = b >>> 8 ^ r[(b ^ (128 | $ & 63)) & 255]) : (b = b >>> 8 ^ r[(b ^ (224 | O >> 12 & 15)) & 255], b = b >>> 8 ^ r[(b ^ (128 | O >> 6 & 63)) & 255], b = b >>> 8 ^ r[(b ^ (128 | O & 63)) & 255]);
317
+ return ~b;
318
318
  }
319
- t.table = r, t.bstr = A, t.buf = R, t.str = F;
319
+ t.table = r, t.bstr = S, t.buf = R, t.str = F;
320
320
  });
321
321
  })(Is);
322
322
  var ai = {}, en = {};
@@ -370,8 +370,8 @@ function Ms(n) {
370
370
  var Un = {};
371
371
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
372
372
  Un.read = function(n, t, e, r, s) {
373
- var a, c, l = s * 8 - r - 1, f = (1 << l) - 1, _ = f >> 1, x = -7, w = e ? s - 1 : 0, g = e ? -1 : 1, k = n[t + w];
374
- for (w += g, a = k & (1 << -x) - 1, k >>= -x, x += l; x > 0; a = a * 256 + n[t + w], w += g, x -= 8)
373
+ var a, c, l = s * 8 - r - 1, f = (1 << l) - 1, _ = f >> 1, x = -7, w = e ? s - 1 : 0, g = e ? -1 : 1, T = n[t + w];
374
+ for (w += g, a = T & (1 << -x) - 1, T >>= -x, x += l; x > 0; a = a * 256 + n[t + w], w += g, x -= 8)
375
375
  ;
376
376
  for (c = a & (1 << -x) - 1, a >>= -x, x += r; x > 0; c = c * 256 + n[t + w], w += g, x -= 8)
377
377
  ;
@@ -379,18 +379,18 @@ Un.read = function(n, t, e, r, s) {
379
379
  a = 1 - _;
380
380
  else {
381
381
  if (a === f)
382
- return c ? NaN : (k ? -1 : 1) * (1 / 0);
382
+ return c ? NaN : (T ? -1 : 1) * (1 / 0);
383
383
  c = c + Math.pow(2, r), a = a - _;
384
384
  }
385
- return (k ? -1 : 1) * c * Math.pow(2, a - r);
385
+ return (T ? -1 : 1) * c * Math.pow(2, a - r);
386
386
  };
387
387
  Un.write = function(n, t, e, r, s, a) {
388
- var c, l, f, _ = a * 8 - s - 1, x = (1 << _) - 1, w = x >> 1, g = s === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, k = r ? 0 : a - 1, P = r ? 1 : -1, m = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
389
- for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (l = isNaN(t) ? 1 : 0, c = x) : (c = Math.floor(Math.log(t) / Math.LN2), t * (f = Math.pow(2, -c)) < 1 && (c--, f *= 2), c + w >= 1 ? t += g / f : t += g * Math.pow(2, 1 - w), t * f >= 2 && (c++, f /= 2), c + w >= x ? (l = 0, c = x) : c + w >= 1 ? (l = (t * f - 1) * Math.pow(2, s), c = c + w) : (l = t * Math.pow(2, w - 1) * Math.pow(2, s), c = 0)); s >= 8; n[e + k] = l & 255, k += P, l /= 256, s -= 8)
388
+ var c, l, f, _ = a * 8 - s - 1, x = (1 << _) - 1, w = x >> 1, g = s === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, T = r ? 0 : a - 1, C = r ? 1 : -1, m = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
389
+ for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (l = isNaN(t) ? 1 : 0, c = x) : (c = Math.floor(Math.log(t) / Math.LN2), t * (f = Math.pow(2, -c)) < 1 && (c--, f *= 2), c + w >= 1 ? t += g / f : t += g * Math.pow(2, 1 - w), t * f >= 2 && (c++, f /= 2), c + w >= x ? (l = 0, c = x) : c + w >= 1 ? (l = (t * f - 1) * Math.pow(2, s), c = c + w) : (l = t * Math.pow(2, w - 1) * Math.pow(2, s), c = 0)); s >= 8; n[e + T] = l & 255, T += C, l /= 256, s -= 8)
390
390
  ;
391
- for (c = c << s | l, _ += s; _ > 0; n[e + k] = c & 255, k += P, c /= 256, _ -= 8)
391
+ for (c = c << s | l, _ += s; _ > 0; n[e + T] = c & 255, T += C, c /= 256, _ -= 8)
392
392
  ;
393
- n[e + k - P] |= m * 128;
393
+ n[e + T - C] |= m * 128;
394
394
  };
395
395
  /*!
396
396
  * The buffer module from node.js, for the browser.
@@ -400,7 +400,7 @@ Un.write = function(n, t, e, r, s, a) {
400
400
  */
401
401
  (function(n) {
402
402
  var t = en, e = Un, r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
403
- n.Buffer = l, n.SlowBuffer = y, n.INSPECT_MAX_BYTES = 50;
403
+ n.Buffer = l, n.SlowBuffer = v, n.INSPECT_MAX_BYTES = 50;
404
404
  var s = 2147483647;
405
405
  n.kMaxLength = s, l.TYPED_ARRAY_SUPPORT = a(), !l.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
406
406
  "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
@@ -449,7 +449,7 @@ Un.write = function(n, t, e, r, s, a) {
449
449
  if (typeof u == "string")
450
450
  return g(u, i);
451
451
  if (ArrayBuffer.isView(u))
452
- return P(u);
452
+ return C(u);
453
453
  if (u == null)
454
454
  throw new TypeError(
455
455
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof u
@@ -463,8 +463,8 @@ Un.write = function(n, t, e, r, s, a) {
463
463
  var p = u.valueOf && u.valueOf();
464
464
  if (p != null && p !== u)
465
465
  return l.from(p, i, o);
466
- var E = d(u);
467
- if (E) return E;
466
+ var k = d(u);
467
+ if (k) return k;
468
468
  if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof u[Symbol.toPrimitive] == "function")
469
469
  return l.from(
470
470
  u[Symbol.toPrimitive]("string"),
@@ -501,20 +501,20 @@ Un.write = function(n, t, e, r, s, a) {
501
501
  function g(u, i) {
502
502
  if ((typeof i != "string" || i === "") && (i = "utf8"), !l.isEncoding(i))
503
503
  throw new TypeError("Unknown encoding: " + i);
504
- var o = T(u, i) | 0, p = c(o), E = p.write(u, i);
505
- return E !== o && (p = p.slice(0, E)), p;
504
+ var o = A(u, i) | 0, p = c(o), k = p.write(u, i);
505
+ return k !== o && (p = p.slice(0, k)), p;
506
506
  }
507
- function k(u) {
507
+ function T(u) {
508
508
  for (var i = u.length < 0 ? 0 : h(u.length) | 0, o = c(i), p = 0; p < i; p += 1)
509
509
  o[p] = u[p] & 255;
510
510
  return o;
511
511
  }
512
- function P(u) {
512
+ function C(u) {
513
513
  if (fe(u, Uint8Array)) {
514
514
  var i = new Uint8Array(u);
515
515
  return m(i.buffer, i.byteOffset, i.byteLength);
516
516
  }
517
- return k(u);
517
+ return T(u);
518
518
  }
519
519
  function m(u, i, o) {
520
520
  if (i < 0 || u.byteLength < i)
@@ -530,16 +530,16 @@ Un.write = function(n, t, e, r, s, a) {
530
530
  return o.length === 0 || u.copy(o, 0, 0, i), o;
531
531
  }
532
532
  if (u.length !== void 0)
533
- return typeof u.length != "number" || je(u.length) ? c(0) : k(u);
533
+ return typeof u.length != "number" || je(u.length) ? c(0) : T(u);
534
534
  if (u.type === "Buffer" && Array.isArray(u.data))
535
- return k(u.data);
535
+ return T(u.data);
536
536
  }
537
537
  function h(u) {
538
538
  if (u >= s)
539
539
  throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + s.toString(16) + " bytes");
540
540
  return u | 0;
541
541
  }
542
- function y(u) {
542
+ function v(u) {
543
543
  return +u != u && (u = 0), l.alloc(+u);
544
544
  }
545
545
  l.isBuffer = function(i) {
@@ -550,12 +550,12 @@ Un.write = function(n, t, e, r, s, a) {
550
550
  'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
551
551
  );
552
552
  if (i === o) return 0;
553
- for (var p = i.length, E = o.length, U = 0, W = Math.min(p, E); U < W; ++U)
554
- if (i[U] !== o[U]) {
555
- p = i[U], E = o[U];
553
+ for (var p = i.length, k = o.length, L = 0, W = Math.min(p, k); L < W; ++L)
554
+ if (i[L] !== o[L]) {
555
+ p = i[L], k = o[L];
556
556
  break;
557
557
  }
558
- return p < E ? -1 : E < p ? 1 : 0;
558
+ return p < k ? -1 : k < p ? 1 : 0;
559
559
  }, l.isEncoding = function(i) {
560
560
  switch (String(i).toLowerCase()) {
561
561
  case "hex":
@@ -582,24 +582,24 @@ Un.write = function(n, t, e, r, s, a) {
582
582
  if (o === void 0)
583
583
  for (o = 0, p = 0; p < i.length; ++p)
584
584
  o += i[p].length;
585
- var E = l.allocUnsafe(o), U = 0;
585
+ var k = l.allocUnsafe(o), L = 0;
586
586
  for (p = 0; p < i.length; ++p) {
587
587
  var W = i[p];
588
588
  if (fe(W, Uint8Array))
589
- U + W.length > E.length ? l.from(W).copy(E, U) : Uint8Array.prototype.set.call(
590
- E,
589
+ L + W.length > k.length ? l.from(W).copy(k, L) : Uint8Array.prototype.set.call(
590
+ k,
591
591
  W,
592
- U
592
+ L
593
593
  );
594
594
  else if (l.isBuffer(W))
595
- W.copy(E, U);
595
+ W.copy(k, L);
596
596
  else
597
597
  throw new TypeError('"list" argument must be an Array of Buffers');
598
- U += W.length;
598
+ L += W.length;
599
599
  }
600
- return E;
600
+ return k;
601
601
  };
602
- function T(u, i) {
602
+ function A(u, i) {
603
603
  if (l.isBuffer(u))
604
604
  return u.length;
605
605
  if (ArrayBuffer.isView(u) || fe(u, ArrayBuffer))
@@ -610,7 +610,7 @@ Un.write = function(n, t, e, r, s, a) {
610
610
  );
611
611
  var o = u.length, p = arguments.length > 2 && arguments[2] === !0;
612
612
  if (!p && o === 0) return 0;
613
- for (var E = !1; ; )
613
+ for (var k = !1; ; )
614
614
  switch (i) {
615
615
  case "ascii":
616
616
  case "latin1":
@@ -629,30 +629,30 @@ Un.write = function(n, t, e, r, s, a) {
629
629
  case "base64":
630
630
  return tt(u).length;
631
631
  default:
632
- if (E)
632
+ if (k)
633
633
  return p ? -1 : qe(u).length;
634
- i = ("" + i).toLowerCase(), E = !0;
634
+ i = ("" + i).toLowerCase(), k = !0;
635
635
  }
636
636
  }
637
- l.byteLength = T;
638
- function D(u, i, o) {
637
+ l.byteLength = A;
638
+ function P(u, i, o) {
639
639
  var p = !1;
640
640
  if ((i === void 0 || i < 0) && (i = 0), i > this.length || ((o === void 0 || o > this.length) && (o = this.length), o <= 0) || (o >>>= 0, i >>>= 0, o <= i))
641
641
  return "";
642
642
  for (u || (u = "utf8"); ; )
643
643
  switch (u) {
644
644
  case "hex":
645
- return oe(this, i, o);
645
+ return te(this, i, o);
646
646
  case "utf8":
647
647
  case "utf-8":
648
- return Y(this, i, o);
648
+ return $(this, i, o);
649
649
  case "ascii":
650
- return K(this, i, o);
650
+ return G(this, i, o);
651
651
  case "latin1":
652
652
  case "binary":
653
- return V(this, i, o);
653
+ return K(this, i, o);
654
654
  case "base64":
655
- return L(this, i, o);
655
+ return O(this, i, o);
656
656
  case "ucs2":
657
657
  case "ucs-2":
658
658
  case "utf16le":
@@ -664,7 +664,7 @@ Un.write = function(n, t, e, r, s, a) {
664
664
  }
665
665
  }
666
666
  l.prototype._isBuffer = !0;
667
- function A(u, i, o) {
667
+ function S(u, i, o) {
668
668
  var p = u[i];
669
669
  u[i] = u[o], u[o] = p;
670
670
  }
@@ -673,92 +673,92 @@ Un.write = function(n, t, e, r, s, a) {
673
673
  if (i % 2 !== 0)
674
674
  throw new RangeError("Buffer size must be a multiple of 16-bits");
675
675
  for (var o = 0; o < i; o += 2)
676
- A(this, o, o + 1);
676
+ S(this, o, o + 1);
677
677
  return this;
678
678
  }, l.prototype.swap32 = function() {
679
679
  var i = this.length;
680
680
  if (i % 4 !== 0)
681
681
  throw new RangeError("Buffer size must be a multiple of 32-bits");
682
682
  for (var o = 0; o < i; o += 4)
683
- A(this, o, o + 3), A(this, o + 1, o + 2);
683
+ S(this, o, o + 3), S(this, o + 1, o + 2);
684
684
  return this;
685
685
  }, l.prototype.swap64 = function() {
686
686
  var i = this.length;
687
687
  if (i % 8 !== 0)
688
688
  throw new RangeError("Buffer size must be a multiple of 64-bits");
689
689
  for (var o = 0; o < i; o += 8)
690
- A(this, o, o + 7), A(this, o + 1, o + 6), A(this, o + 2, o + 5), A(this, o + 3, o + 4);
690
+ S(this, o, o + 7), S(this, o + 1, o + 6), S(this, o + 2, o + 5), S(this, o + 3, o + 4);
691
691
  return this;
692
692
  }, l.prototype.toString = function() {
693
693
  var i = this.length;
694
- return i === 0 ? "" : arguments.length === 0 ? Y(this, 0, i) : D.apply(this, arguments);
694
+ return i === 0 ? "" : arguments.length === 0 ? $(this, 0, i) : P.apply(this, arguments);
695
695
  }, l.prototype.toLocaleString = l.prototype.toString, l.prototype.equals = function(i) {
696
696
  if (!l.isBuffer(i)) throw new TypeError("Argument must be a Buffer");
697
697
  return this === i ? !0 : l.compare(this, i) === 0;
698
698
  }, l.prototype.inspect = function() {
699
699
  var i = "", o = n.INSPECT_MAX_BYTES;
700
700
  return i = this.toString("hex", 0, o).replace(/(.{2})/g, "$1 ").trim(), this.length > o && (i += " ... "), "<Buffer " + i + ">";
701
- }, r && (l.prototype[r] = l.prototype.inspect), l.prototype.compare = function(i, o, p, E, U) {
701
+ }, r && (l.prototype[r] = l.prototype.inspect), l.prototype.compare = function(i, o, p, k, L) {
702
702
  if (fe(i, Uint8Array) && (i = l.from(i, i.offset, i.byteLength)), !l.isBuffer(i))
703
703
  throw new TypeError(
704
704
  'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof i
705
705
  );
706
- if (o === void 0 && (o = 0), p === void 0 && (p = i ? i.length : 0), E === void 0 && (E = 0), U === void 0 && (U = this.length), o < 0 || p > i.length || E < 0 || U > this.length)
706
+ if (o === void 0 && (o = 0), p === void 0 && (p = i ? i.length : 0), k === void 0 && (k = 0), L === void 0 && (L = this.length), o < 0 || p > i.length || k < 0 || L > this.length)
707
707
  throw new RangeError("out of range index");
708
- if (E >= U && o >= p)
708
+ if (k >= L && o >= p)
709
709
  return 0;
710
- if (E >= U)
710
+ if (k >= L)
711
711
  return -1;
712
712
  if (o >= p)
713
713
  return 1;
714
- if (o >>>= 0, p >>>= 0, E >>>= 0, U >>>= 0, this === i) return 0;
715
- for (var W = U - E, X = p - o, ne = Math.min(W, X), re = this.slice(E, U), pe = i.slice(o, p), te = 0; te < ne; ++te)
716
- if (re[te] !== pe[te]) {
717
- W = re[te], X = pe[te];
714
+ if (o >>>= 0, p >>>= 0, k >>>= 0, L >>>= 0, this === i) return 0;
715
+ for (var W = L - k, X = p - o, re = Math.min(W, X), ie = this.slice(k, L), pe = i.slice(o, p), ne = 0; ne < re; ++ne)
716
+ if (ie[ne] !== pe[ne]) {
717
+ W = ie[ne], X = pe[ne];
718
718
  break;
719
719
  }
720
720
  return W < X ? -1 : X < W ? 1 : 0;
721
721
  };
722
- function R(u, i, o, p, E) {
722
+ function R(u, i, o, p, k) {
723
723
  if (u.length === 0) return -1;
724
- if (typeof o == "string" ? (p = o, o = 0) : o > 2147483647 ? o = 2147483647 : o < -2147483648 && (o = -2147483648), o = +o, je(o) && (o = E ? 0 : u.length - 1), o < 0 && (o = u.length + o), o >= u.length) {
725
- if (E) return -1;
724
+ if (typeof o == "string" ? (p = o, o = 0) : o > 2147483647 ? o = 2147483647 : o < -2147483648 && (o = -2147483648), o = +o, je(o) && (o = k ? 0 : u.length - 1), o < 0 && (o = u.length + o), o >= u.length) {
725
+ if (k) return -1;
726
726
  o = u.length - 1;
727
727
  } else if (o < 0)
728
- if (E) o = 0;
728
+ if (k) o = 0;
729
729
  else return -1;
730
730
  if (typeof i == "string" && (i = l.from(i, p)), l.isBuffer(i))
731
- return i.length === 0 ? -1 : F(u, i, o, p, E);
731
+ return i.length === 0 ? -1 : F(u, i, o, p, k);
732
732
  if (typeof i == "number")
733
- return i = i & 255, typeof Uint8Array.prototype.indexOf == "function" ? E ? Uint8Array.prototype.indexOf.call(u, i, o) : Uint8Array.prototype.lastIndexOf.call(u, i, o) : F(u, [i], o, p, E);
733
+ return i = i & 255, typeof Uint8Array.prototype.indexOf == "function" ? k ? Uint8Array.prototype.indexOf.call(u, i, o) : Uint8Array.prototype.lastIndexOf.call(u, i, o) : F(u, [i], o, p, k);
734
734
  throw new TypeError("val must be string, number or Buffer");
735
735
  }
736
- function F(u, i, o, p, E) {
737
- var U = 1, W = u.length, X = i.length;
736
+ function F(u, i, o, p, k) {
737
+ var L = 1, W = u.length, X = i.length;
738
738
  if (p !== void 0 && (p = String(p).toLowerCase(), p === "ucs2" || p === "ucs-2" || p === "utf16le" || p === "utf-16le")) {
739
739
  if (u.length < 2 || i.length < 2)
740
740
  return -1;
741
- U = 2, W /= 2, X /= 2, o /= 2;
741
+ L = 2, W /= 2, X /= 2, o /= 2;
742
742
  }
743
- function ne(It, gt) {
744
- return U === 1 ? It[gt] : It.readUInt16BE(gt * U);
743
+ function re(It, gt) {
744
+ return L === 1 ? It[gt] : It.readUInt16BE(gt * L);
745
745
  }
746
- var re;
747
- if (E) {
746
+ var ie;
747
+ if (k) {
748
748
  var pe = -1;
749
- for (re = o; re < W; re++)
750
- if (ne(u, re) === ne(i, pe === -1 ? 0 : re - pe)) {
751
- if (pe === -1 && (pe = re), re - pe + 1 === X) return pe * U;
749
+ for (ie = o; ie < W; ie++)
750
+ if (re(u, ie) === re(i, pe === -1 ? 0 : ie - pe)) {
751
+ if (pe === -1 && (pe = ie), ie - pe + 1 === X) return pe * L;
752
752
  } else
753
- pe !== -1 && (re -= re - pe), pe = -1;
753
+ pe !== -1 && (ie -= ie - pe), pe = -1;
754
754
  } else
755
- for (o + X > W && (o = W - X), re = o; re >= 0; re--) {
756
- for (var te = !0, Ye = 0; Ye < X; Ye++)
757
- if (ne(u, re + Ye) !== ne(i, Ye)) {
758
- te = !1;
755
+ for (o + X > W && (o = W - X), ie = o; ie >= 0; ie--) {
756
+ for (var ne = !0, Ye = 0; Ye < X; Ye++)
757
+ if (re(u, ie + Ye) !== re(i, Ye)) {
758
+ ne = !1;
759
759
  break;
760
760
  }
761
- if (te) return re;
761
+ if (ne) return ie;
762
762
  }
763
763
  return -1;
764
764
  }
@@ -769,12 +769,12 @@ Un.write = function(n, t, e, r, s, a) {
769
769
  }, l.prototype.lastIndexOf = function(i, o, p) {
770
770
  return R(this, i, o, p, !1);
771
771
  };
772
- function b(u, i, o, p) {
772
+ function y(u, i, o, p) {
773
773
  o = Number(o) || 0;
774
- var E = u.length - o;
775
- p ? (p = Number(p), p > E && (p = E)) : p = E;
776
- var U = i.length;
777
- p > U / 2 && (p = U / 2);
774
+ var k = u.length - o;
775
+ p ? (p = Number(p), p > k && (p = k)) : p = k;
776
+ var L = i.length;
777
+ p > L / 2 && (p = L / 2);
778
778
  for (var W = 0; W < p; ++W) {
779
779
  var X = parseInt(i.substr(W * 2, 2), 16);
780
780
  if (je(X)) return W;
@@ -782,54 +782,54 @@ Un.write = function(n, t, e, r, s, a) {
782
782
  }
783
783
  return W;
784
784
  }
785
- function C(u, i, o, p) {
785
+ function D(u, i, o, p) {
786
786
  return ge(qe(i, u.length - o), u, o, p);
787
787
  }
788
- function v(u, i, o, p) {
788
+ function b(u, i, o, p) {
789
789
  return ge(at(i), u, o, p);
790
790
  }
791
- function S(u, i, o, p) {
791
+ function E(u, i, o, p) {
792
792
  return ge(tt(i), u, o, p);
793
793
  }
794
794
  function M(u, i, o, p) {
795
795
  return ge(et(i, u.length - o), u, o, p);
796
796
  }
797
- l.prototype.write = function(i, o, p, E) {
797
+ l.prototype.write = function(i, o, p, k) {
798
798
  if (o === void 0)
799
- E = "utf8", p = this.length, o = 0;
799
+ k = "utf8", p = this.length, o = 0;
800
800
  else if (p === void 0 && typeof o == "string")
801
- E = o, p = this.length, o = 0;
801
+ k = o, p = this.length, o = 0;
802
802
  else if (isFinite(o))
803
- o = o >>> 0, isFinite(p) ? (p = p >>> 0, E === void 0 && (E = "utf8")) : (E = p, p = void 0);
803
+ o = o >>> 0, isFinite(p) ? (p = p >>> 0, k === void 0 && (k = "utf8")) : (k = p, p = void 0);
804
804
  else
805
805
  throw new Error(
806
806
  "Buffer.write(string, encoding, offset[, length]) is no longer supported"
807
807
  );
808
- var U = this.length - o;
809
- if ((p === void 0 || p > U) && (p = U), i.length > 0 && (p < 0 || o < 0) || o > this.length)
808
+ var L = this.length - o;
809
+ if ((p === void 0 || p > L) && (p = L), i.length > 0 && (p < 0 || o < 0) || o > this.length)
810
810
  throw new RangeError("Attempt to write outside buffer bounds");
811
- E || (E = "utf8");
811
+ k || (k = "utf8");
812
812
  for (var W = !1; ; )
813
- switch (E) {
813
+ switch (k) {
814
814
  case "hex":
815
- return b(this, i, o, p);
815
+ return y(this, i, o, p);
816
816
  case "utf8":
817
817
  case "utf-8":
818
- return C(this, i, o, p);
818
+ return D(this, i, o, p);
819
819
  case "ascii":
820
820
  case "latin1":
821
821
  case "binary":
822
- return v(this, i, o, p);
822
+ return b(this, i, o, p);
823
823
  case "base64":
824
- return S(this, i, o, p);
824
+ return E(this, i, o, p);
825
825
  case "ucs2":
826
826
  case "ucs-2":
827
827
  case "utf16le":
828
828
  case "utf-16le":
829
829
  return M(this, i, o, p);
830
830
  default:
831
- if (W) throw new TypeError("Unknown encoding: " + E);
832
- E = ("" + E).toLowerCase(), W = !0;
831
+ if (W) throw new TypeError("Unknown encoding: " + k);
832
+ k = ("" + k).toLowerCase(), W = !0;
833
833
  }
834
834
  }, l.prototype.toJSON = function() {
835
835
  return {
@@ -837,30 +837,30 @@ Un.write = function(n, t, e, r, s, a) {
837
837
  data: Array.prototype.slice.call(this._arr || this, 0)
838
838
  };
839
839
  };
840
- function L(u, i, o) {
840
+ function O(u, i, o) {
841
841
  return i === 0 && o === u.length ? t.fromByteArray(u) : t.fromByteArray(u.slice(i, o));
842
842
  }
843
- function Y(u, i, o) {
843
+ function $(u, i, o) {
844
844
  o = Math.min(u.length, o);
845
- for (var p = [], E = i; E < o; ) {
846
- var U = u[E], W = null, X = U > 239 ? 4 : U > 223 ? 3 : U > 191 ? 2 : 1;
847
- if (E + X <= o) {
848
- var ne, re, pe, te;
845
+ for (var p = [], k = i; k < o; ) {
846
+ var L = u[k], W = null, X = L > 239 ? 4 : L > 223 ? 3 : L > 191 ? 2 : 1;
847
+ if (k + X <= o) {
848
+ var re, ie, pe, ne;
849
849
  switch (X) {
850
850
  case 1:
851
- U < 128 && (W = U);
851
+ L < 128 && (W = L);
852
852
  break;
853
853
  case 2:
854
- ne = u[E + 1], (ne & 192) === 128 && (te = (U & 31) << 6 | ne & 63, te > 127 && (W = te));
854
+ re = u[k + 1], (re & 192) === 128 && (ne = (L & 31) << 6 | re & 63, ne > 127 && (W = ne));
855
855
  break;
856
856
  case 3:
857
- ne = u[E + 1], re = u[E + 2], (ne & 192) === 128 && (re & 192) === 128 && (te = (U & 15) << 12 | (ne & 63) << 6 | re & 63, te > 2047 && (te < 55296 || te > 57343) && (W = te));
857
+ re = u[k + 1], ie = u[k + 2], (re & 192) === 128 && (ie & 192) === 128 && (ne = (L & 15) << 12 | (re & 63) << 6 | ie & 63, ne > 2047 && (ne < 55296 || ne > 57343) && (W = ne));
858
858
  break;
859
859
  case 4:
860
- ne = u[E + 1], re = u[E + 2], pe = u[E + 3], (ne & 192) === 128 && (re & 192) === 128 && (pe & 192) === 128 && (te = (U & 15) << 18 | (ne & 63) << 12 | (re & 63) << 6 | pe & 63, te > 65535 && te < 1114112 && (W = te));
860
+ re = u[k + 1], ie = u[k + 2], pe = u[k + 3], (re & 192) === 128 && (ie & 192) === 128 && (pe & 192) === 128 && (ne = (L & 15) << 18 | (re & 63) << 12 | (ie & 63) << 6 | pe & 63, ne > 65535 && ne < 1114112 && (W = ne));
861
861
  }
862
862
  }
863
- W === null ? (W = 65533, X = 1) : W > 65535 && (W -= 65536, p.push(W >>> 10 & 1023 | 55296), W = 56320 | W & 1023), p.push(W), E += X;
863
+ W === null ? (W = 65533, X = 1) : W > 65535 && (W -= 65536, p.push(W >>> 10 & 1023 | 55296), W = 56320 | W & 1023), p.push(W), k += X;
864
864
  }
865
865
  return j(p);
866
866
  }
@@ -876,37 +876,37 @@ Un.write = function(n, t, e, r, s, a) {
876
876
  );
877
877
  return o;
878
878
  }
879
- function K(u, i, o) {
879
+ function G(u, i, o) {
880
880
  var p = "";
881
881
  o = Math.min(u.length, o);
882
- for (var E = i; E < o; ++E)
883
- p += String.fromCharCode(u[E] & 127);
882
+ for (var k = i; k < o; ++k)
883
+ p += String.fromCharCode(u[k] & 127);
884
884
  return p;
885
885
  }
886
- function V(u, i, o) {
886
+ function K(u, i, o) {
887
887
  var p = "";
888
888
  o = Math.min(u.length, o);
889
- for (var E = i; E < o; ++E)
890
- p += String.fromCharCode(u[E]);
889
+ for (var k = i; k < o; ++k)
890
+ p += String.fromCharCode(u[k]);
891
891
  return p;
892
892
  }
893
- function oe(u, i, o) {
893
+ function te(u, i, o) {
894
894
  var p = u.length;
895
895
  (!i || i < 0) && (i = 0), (!o || o < 0 || o > p) && (o = p);
896
- for (var E = "", U = i; U < o; ++U)
897
- E += ue[u[U]];
898
- return E;
896
+ for (var k = "", L = i; L < o; ++L)
897
+ k += ue[u[L]];
898
+ return k;
899
899
  }
900
900
  function Z(u, i, o) {
901
- for (var p = u.slice(i, o), E = "", U = 0; U < p.length - 1; U += 2)
902
- E += String.fromCharCode(p[U] + p[U + 1] * 256);
903
- return E;
901
+ for (var p = u.slice(i, o), k = "", L = 0; L < p.length - 1; L += 2)
902
+ k += String.fromCharCode(p[L] + p[L + 1] * 256);
903
+ return k;
904
904
  }
905
905
  l.prototype.slice = function(i, o) {
906
906
  var p = this.length;
907
907
  i = ~~i, o = o === void 0 ? p : ~~o, i < 0 ? (i += p, i < 0 && (i = 0)) : i > p && (i = p), o < 0 ? (o += p, o < 0 && (o = 0)) : o > p && (o = p), o < i && (o = i);
908
- var E = this.subarray(i, o);
909
- return Object.setPrototypeOf(E, l.prototype), E;
908
+ var k = this.subarray(i, o);
909
+ return Object.setPrototypeOf(k, l.prototype), k;
910
910
  };
911
911
  function J(u, i, o) {
912
912
  if (u % 1 !== 0 || u < 0) throw new RangeError("offset is not uint");
@@ -914,14 +914,14 @@ Un.write = function(n, t, e, r, s, a) {
914
914
  }
915
915
  l.prototype.readUintLE = l.prototype.readUIntLE = function(i, o, p) {
916
916
  i = i >>> 0, o = o >>> 0, p || J(i, o, this.length);
917
- for (var E = this[i], U = 1, W = 0; ++W < o && (U *= 256); )
918
- E += this[i + W] * U;
919
- return E;
917
+ for (var k = this[i], L = 1, W = 0; ++W < o && (L *= 256); )
918
+ k += this[i + W] * L;
919
+ return k;
920
920
  }, l.prototype.readUintBE = l.prototype.readUIntBE = function(i, o, p) {
921
921
  i = i >>> 0, o = o >>> 0, p || J(i, o, this.length);
922
- for (var E = this[i + --o], U = 1; o > 0 && (U *= 256); )
923
- E += this[i + --o] * U;
924
- return E;
922
+ for (var k = this[i + --o], L = 1; o > 0 && (L *= 256); )
923
+ k += this[i + --o] * L;
924
+ return k;
925
925
  }, l.prototype.readUint8 = l.prototype.readUInt8 = function(i, o) {
926
926
  return i = i >>> 0, o || J(i, 1, this.length), this[i];
927
927
  }, l.prototype.readUint16LE = l.prototype.readUInt16LE = function(i, o) {
@@ -934,14 +934,14 @@ Un.write = function(n, t, e, r, s, a) {
934
934
  return i = i >>> 0, o || J(i, 4, this.length), this[i] * 16777216 + (this[i + 1] << 16 | this[i + 2] << 8 | this[i + 3]);
935
935
  }, l.prototype.readIntLE = function(i, o, p) {
936
936
  i = i >>> 0, o = o >>> 0, p || J(i, o, this.length);
937
- for (var E = this[i], U = 1, W = 0; ++W < o && (U *= 256); )
938
- E += this[i + W] * U;
939
- return U *= 128, E >= U && (E -= Math.pow(2, 8 * o)), E;
937
+ for (var k = this[i], L = 1, W = 0; ++W < o && (L *= 256); )
938
+ k += this[i + W] * L;
939
+ return L *= 128, k >= L && (k -= Math.pow(2, 8 * o)), k;
940
940
  }, l.prototype.readIntBE = function(i, o, p) {
941
941
  i = i >>> 0, o = o >>> 0, p || J(i, o, this.length);
942
- for (var E = o, U = 1, W = this[i + --E]; E > 0 && (U *= 256); )
943
- W += this[i + --E] * U;
944
- return U *= 128, W >= U && (W -= Math.pow(2, 8 * o)), W;
942
+ for (var k = o, L = 1, W = this[i + --k]; k > 0 && (L *= 256); )
943
+ W += this[i + --k] * L;
944
+ return L *= 128, W >= L && (W -= Math.pow(2, 8 * o)), W;
945
945
  }, l.prototype.readInt8 = function(i, o) {
946
946
  return i = i >>> 0, o || J(i, 1, this.length), this[i] & 128 ? (255 - this[i] + 1) * -1 : this[i];
947
947
  }, l.prototype.readInt16LE = function(i, o) {
@@ -965,110 +965,110 @@ Un.write = function(n, t, e, r, s, a) {
965
965
  }, l.prototype.readDoubleBE = function(i, o) {
966
966
  return i = i >>> 0, o || J(i, 8, this.length), e.read(this, i, !1, 52, 8);
967
967
  };
968
- function $(u, i, o, p, E, U) {
968
+ function Y(u, i, o, p, k, L) {
969
969
  if (!l.isBuffer(u)) throw new TypeError('"buffer" argument must be a Buffer instance');
970
- if (i > E || i < U) throw new RangeError('"value" argument is out of bounds');
970
+ if (i > k || i < L) throw new RangeError('"value" argument is out of bounds');
971
971
  if (o + p > u.length) throw new RangeError("Index out of range");
972
972
  }
973
- l.prototype.writeUintLE = l.prototype.writeUIntLE = function(i, o, p, E) {
974
- if (i = +i, o = o >>> 0, p = p >>> 0, !E) {
975
- var U = Math.pow(2, 8 * p) - 1;
976
- $(this, i, o, p, U, 0);
973
+ l.prototype.writeUintLE = l.prototype.writeUIntLE = function(i, o, p, k) {
974
+ if (i = +i, o = o >>> 0, p = p >>> 0, !k) {
975
+ var L = Math.pow(2, 8 * p) - 1;
976
+ Y(this, i, o, p, L, 0);
977
977
  }
978
978
  var W = 1, X = 0;
979
979
  for (this[o] = i & 255; ++X < p && (W *= 256); )
980
980
  this[o + X] = i / W & 255;
981
981
  return o + p;
982
- }, l.prototype.writeUintBE = l.prototype.writeUIntBE = function(i, o, p, E) {
983
- if (i = +i, o = o >>> 0, p = p >>> 0, !E) {
984
- var U = Math.pow(2, 8 * p) - 1;
985
- $(this, i, o, p, U, 0);
982
+ }, l.prototype.writeUintBE = l.prototype.writeUIntBE = function(i, o, p, k) {
983
+ if (i = +i, o = o >>> 0, p = p >>> 0, !k) {
984
+ var L = Math.pow(2, 8 * p) - 1;
985
+ Y(this, i, o, p, L, 0);
986
986
  }
987
987
  var W = p - 1, X = 1;
988
988
  for (this[o + W] = i & 255; --W >= 0 && (X *= 256); )
989
989
  this[o + W] = i / X & 255;
990
990
  return o + p;
991
991
  }, l.prototype.writeUint8 = l.prototype.writeUInt8 = function(i, o, p) {
992
- return i = +i, o = o >>> 0, p || $(this, i, o, 1, 255, 0), this[o] = i & 255, o + 1;
992
+ return i = +i, o = o >>> 0, p || Y(this, i, o, 1, 255, 0), this[o] = i & 255, o + 1;
993
993
  }, l.prototype.writeUint16LE = l.prototype.writeUInt16LE = function(i, o, p) {
994
- return i = +i, o = o >>> 0, p || $(this, i, o, 2, 65535, 0), this[o] = i & 255, this[o + 1] = i >>> 8, o + 2;
994
+ return i = +i, o = o >>> 0, p || Y(this, i, o, 2, 65535, 0), this[o] = i & 255, this[o + 1] = i >>> 8, o + 2;
995
995
  }, l.prototype.writeUint16BE = l.prototype.writeUInt16BE = function(i, o, p) {
996
- return i = +i, o = o >>> 0, p || $(this, i, o, 2, 65535, 0), this[o] = i >>> 8, this[o + 1] = i & 255, o + 2;
996
+ return i = +i, o = o >>> 0, p || Y(this, i, o, 2, 65535, 0), this[o] = i >>> 8, this[o + 1] = i & 255, o + 2;
997
997
  }, l.prototype.writeUint32LE = l.prototype.writeUInt32LE = function(i, o, p) {
998
- return i = +i, o = o >>> 0, p || $(this, i, o, 4, 4294967295, 0), this[o + 3] = i >>> 24, this[o + 2] = i >>> 16, this[o + 1] = i >>> 8, this[o] = i & 255, o + 4;
998
+ return i = +i, o = o >>> 0, p || Y(this, i, o, 4, 4294967295, 0), this[o + 3] = i >>> 24, this[o + 2] = i >>> 16, this[o + 1] = i >>> 8, this[o] = i & 255, o + 4;
999
999
  }, l.prototype.writeUint32BE = l.prototype.writeUInt32BE = function(i, o, p) {
1000
- return i = +i, o = o >>> 0, p || $(this, i, o, 4, 4294967295, 0), this[o] = i >>> 24, this[o + 1] = i >>> 16, this[o + 2] = i >>> 8, this[o + 3] = i & 255, o + 4;
1001
- }, l.prototype.writeIntLE = function(i, o, p, E) {
1002
- if (i = +i, o = o >>> 0, !E) {
1003
- var U = Math.pow(2, 8 * p - 1);
1004
- $(this, i, o, p, U - 1, -U);
1000
+ return i = +i, o = o >>> 0, p || Y(this, i, o, 4, 4294967295, 0), this[o] = i >>> 24, this[o + 1] = i >>> 16, this[o + 2] = i >>> 8, this[o + 3] = i & 255, o + 4;
1001
+ }, l.prototype.writeIntLE = function(i, o, p, k) {
1002
+ if (i = +i, o = o >>> 0, !k) {
1003
+ var L = Math.pow(2, 8 * p - 1);
1004
+ Y(this, i, o, p, L - 1, -L);
1005
1005
  }
1006
- var W = 0, X = 1, ne = 0;
1006
+ var W = 0, X = 1, re = 0;
1007
1007
  for (this[o] = i & 255; ++W < p && (X *= 256); )
1008
- i < 0 && ne === 0 && this[o + W - 1] !== 0 && (ne = 1), this[o + W] = (i / X >> 0) - ne & 255;
1008
+ i < 0 && re === 0 && this[o + W - 1] !== 0 && (re = 1), this[o + W] = (i / X >> 0) - re & 255;
1009
1009
  return o + p;
1010
- }, l.prototype.writeIntBE = function(i, o, p, E) {
1011
- if (i = +i, o = o >>> 0, !E) {
1012
- var U = Math.pow(2, 8 * p - 1);
1013
- $(this, i, o, p, U - 1, -U);
1010
+ }, l.prototype.writeIntBE = function(i, o, p, k) {
1011
+ if (i = +i, o = o >>> 0, !k) {
1012
+ var L = Math.pow(2, 8 * p - 1);
1013
+ Y(this, i, o, p, L - 1, -L);
1014
1014
  }
1015
- var W = p - 1, X = 1, ne = 0;
1015
+ var W = p - 1, X = 1, re = 0;
1016
1016
  for (this[o + W] = i & 255; --W >= 0 && (X *= 256); )
1017
- i < 0 && ne === 0 && this[o + W + 1] !== 0 && (ne = 1), this[o + W] = (i / X >> 0) - ne & 255;
1017
+ i < 0 && re === 0 && this[o + W + 1] !== 0 && (re = 1), this[o + W] = (i / X >> 0) - re & 255;
1018
1018
  return o + p;
1019
1019
  }, l.prototype.writeInt8 = function(i, o, p) {
1020
- return i = +i, o = o >>> 0, p || $(this, i, o, 1, 127, -128), i < 0 && (i = 255 + i + 1), this[o] = i & 255, o + 1;
1020
+ return i = +i, o = o >>> 0, p || Y(this, i, o, 1, 127, -128), i < 0 && (i = 255 + i + 1), this[o] = i & 255, o + 1;
1021
1021
  }, l.prototype.writeInt16LE = function(i, o, p) {
1022
- return i = +i, o = o >>> 0, p || $(this, i, o, 2, 32767, -32768), this[o] = i & 255, this[o + 1] = i >>> 8, o + 2;
1022
+ return i = +i, o = o >>> 0, p || Y(this, i, o, 2, 32767, -32768), this[o] = i & 255, this[o + 1] = i >>> 8, o + 2;
1023
1023
  }, l.prototype.writeInt16BE = function(i, o, p) {
1024
- return i = +i, o = o >>> 0, p || $(this, i, o, 2, 32767, -32768), this[o] = i >>> 8, this[o + 1] = i & 255, o + 2;
1024
+ return i = +i, o = o >>> 0, p || Y(this, i, o, 2, 32767, -32768), this[o] = i >>> 8, this[o + 1] = i & 255, o + 2;
1025
1025
  }, l.prototype.writeInt32LE = function(i, o, p) {
1026
- return i = +i, o = o >>> 0, p || $(this, i, o, 4, 2147483647, -2147483648), this[o] = i & 255, this[o + 1] = i >>> 8, this[o + 2] = i >>> 16, this[o + 3] = i >>> 24, o + 4;
1026
+ return i = +i, o = o >>> 0, p || Y(this, i, o, 4, 2147483647, -2147483648), this[o] = i & 255, this[o + 1] = i >>> 8, this[o + 2] = i >>> 16, this[o + 3] = i >>> 24, o + 4;
1027
1027
  }, l.prototype.writeInt32BE = function(i, o, p) {
1028
- return i = +i, o = o >>> 0, p || $(this, i, o, 4, 2147483647, -2147483648), i < 0 && (i = 4294967295 + i + 1), this[o] = i >>> 24, this[o + 1] = i >>> 16, this[o + 2] = i >>> 8, this[o + 3] = i & 255, o + 4;
1028
+ return i = +i, o = o >>> 0, p || Y(this, i, o, 4, 2147483647, -2147483648), i < 0 && (i = 4294967295 + i + 1), this[o] = i >>> 24, this[o + 1] = i >>> 16, this[o + 2] = i >>> 8, this[o + 3] = i & 255, o + 4;
1029
1029
  };
1030
- function ee(u, i, o, p, E, U) {
1030
+ function ee(u, i, o, p, k, L) {
1031
1031
  if (o + p > u.length) throw new RangeError("Index out of range");
1032
1032
  if (o < 0) throw new RangeError("Index out of range");
1033
1033
  }
1034
- function Pe(u, i, o, p, E) {
1035
- return i = +i, o = o >>> 0, E || ee(u, i, o, 4), e.write(u, i, o, p, 23, 4), o + 4;
1034
+ function Pe(u, i, o, p, k) {
1035
+ return i = +i, o = o >>> 0, k || ee(u, i, o, 4), e.write(u, i, o, p, 23, 4), o + 4;
1036
1036
  }
1037
1037
  l.prototype.writeFloatLE = function(i, o, p) {
1038
1038
  return Pe(this, i, o, !0, p);
1039
1039
  }, l.prototype.writeFloatBE = function(i, o, p) {
1040
1040
  return Pe(this, i, o, !1, p);
1041
1041
  };
1042
- function de(u, i, o, p, E) {
1043
- return i = +i, o = o >>> 0, E || ee(u, i, o, 8), e.write(u, i, o, p, 52, 8), o + 8;
1042
+ function de(u, i, o, p, k) {
1043
+ return i = +i, o = o >>> 0, k || ee(u, i, o, 8), e.write(u, i, o, p, 52, 8), o + 8;
1044
1044
  }
1045
1045
  l.prototype.writeDoubleLE = function(i, o, p) {
1046
1046
  return de(this, i, o, !0, p);
1047
1047
  }, l.prototype.writeDoubleBE = function(i, o, p) {
1048
1048
  return de(this, i, o, !1, p);
1049
- }, l.prototype.copy = function(i, o, p, E) {
1049
+ }, l.prototype.copy = function(i, o, p, k) {
1050
1050
  if (!l.isBuffer(i)) throw new TypeError("argument should be a Buffer");
1051
- if (p || (p = 0), !E && E !== 0 && (E = this.length), o >= i.length && (o = i.length), o || (o = 0), E > 0 && E < p && (E = p), E === p || i.length === 0 || this.length === 0) return 0;
1051
+ if (p || (p = 0), !k && k !== 0 && (k = this.length), o >= i.length && (o = i.length), o || (o = 0), k > 0 && k < p && (k = p), k === p || i.length === 0 || this.length === 0) return 0;
1052
1052
  if (o < 0)
1053
1053
  throw new RangeError("targetStart out of bounds");
1054
1054
  if (p < 0 || p >= this.length) throw new RangeError("Index out of range");
1055
- if (E < 0) throw new RangeError("sourceEnd out of bounds");
1056
- E > this.length && (E = this.length), i.length - o < E - p && (E = i.length - o + p);
1057
- var U = E - p;
1058
- return this === i && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(o, p, E) : Uint8Array.prototype.set.call(
1055
+ if (k < 0) throw new RangeError("sourceEnd out of bounds");
1056
+ k > this.length && (k = this.length), i.length - o < k - p && (k = i.length - o + p);
1057
+ var L = k - p;
1058
+ return this === i && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(o, p, k) : Uint8Array.prototype.set.call(
1059
1059
  i,
1060
- this.subarray(p, E),
1060
+ this.subarray(p, k),
1061
1061
  o
1062
- ), U;
1063
- }, l.prototype.fill = function(i, o, p, E) {
1062
+ ), L;
1063
+ }, l.prototype.fill = function(i, o, p, k) {
1064
1064
  if (typeof i == "string") {
1065
- if (typeof o == "string" ? (E = o, o = 0, p = this.length) : typeof p == "string" && (E = p, p = this.length), E !== void 0 && typeof E != "string")
1065
+ if (typeof o == "string" ? (k = o, o = 0, p = this.length) : typeof p == "string" && (k = p, p = this.length), k !== void 0 && typeof k != "string")
1066
1066
  throw new TypeError("encoding must be a string");
1067
- if (typeof E == "string" && !l.isEncoding(E))
1068
- throw new TypeError("Unknown encoding: " + E);
1067
+ if (typeof k == "string" && !l.isEncoding(k))
1068
+ throw new TypeError("Unknown encoding: " + k);
1069
1069
  if (i.length === 1) {
1070
- var U = i.charCodeAt(0);
1071
- (E === "utf8" && U < 128 || E === "latin1") && (i = U);
1070
+ var L = i.charCodeAt(0);
1071
+ (k === "utf8" && L < 128 || k === "latin1") && (i = L);
1072
1072
  }
1073
1073
  } else typeof i == "number" ? i = i & 255 : typeof i == "boolean" && (i = Number(i));
1074
1074
  if (o < 0 || this.length < o || this.length < p)
@@ -1081,11 +1081,11 @@ Un.write = function(n, t, e, r, s, a) {
1081
1081
  for (W = o; W < p; ++W)
1082
1082
  this[W] = i;
1083
1083
  else {
1084
- var X = l.isBuffer(i) ? i : l.from(i, E), ne = X.length;
1085
- if (ne === 0)
1084
+ var X = l.isBuffer(i) ? i : l.from(i, k), re = X.length;
1085
+ if (re === 0)
1086
1086
  throw new TypeError('The value "' + i + '" is invalid for argument "value"');
1087
1087
  for (W = 0; W < p - o; ++W)
1088
- this[W + o] = X[W % ne];
1088
+ this[W + o] = X[W % re];
1089
1089
  }
1090
1090
  return this;
1091
1091
  };
@@ -1098,44 +1098,44 @@ Un.write = function(n, t, e, r, s, a) {
1098
1098
  }
1099
1099
  function qe(u, i) {
1100
1100
  i = i || 1 / 0;
1101
- for (var o, p = u.length, E = null, U = [], W = 0; W < p; ++W) {
1101
+ for (var o, p = u.length, k = null, L = [], W = 0; W < p; ++W) {
1102
1102
  if (o = u.charCodeAt(W), o > 55295 && o < 57344) {
1103
- if (!E) {
1103
+ if (!k) {
1104
1104
  if (o > 56319) {
1105
- (i -= 3) > -1 && U.push(239, 191, 189);
1105
+ (i -= 3) > -1 && L.push(239, 191, 189);
1106
1106
  continue;
1107
1107
  } else if (W + 1 === p) {
1108
- (i -= 3) > -1 && U.push(239, 191, 189);
1108
+ (i -= 3) > -1 && L.push(239, 191, 189);
1109
1109
  continue;
1110
1110
  }
1111
- E = o;
1111
+ k = o;
1112
1112
  continue;
1113
1113
  }
1114
1114
  if (o < 56320) {
1115
- (i -= 3) > -1 && U.push(239, 191, 189), E = o;
1115
+ (i -= 3) > -1 && L.push(239, 191, 189), k = o;
1116
1116
  continue;
1117
1117
  }
1118
- o = (E - 55296 << 10 | o - 56320) + 65536;
1119
- } else E && (i -= 3) > -1 && U.push(239, 191, 189);
1120
- if (E = null, o < 128) {
1118
+ o = (k - 55296 << 10 | o - 56320) + 65536;
1119
+ } else k && (i -= 3) > -1 && L.push(239, 191, 189);
1120
+ if (k = null, o < 128) {
1121
1121
  if ((i -= 1) < 0) break;
1122
- U.push(o);
1122
+ L.push(o);
1123
1123
  } else if (o < 2048) {
1124
1124
  if ((i -= 2) < 0) break;
1125
- U.push(
1125
+ L.push(
1126
1126
  o >> 6 | 192,
1127
1127
  o & 63 | 128
1128
1128
  );
1129
1129
  } else if (o < 65536) {
1130
1130
  if ((i -= 3) < 0) break;
1131
- U.push(
1131
+ L.push(
1132
1132
  o >> 12 | 224,
1133
1133
  o >> 6 & 63 | 128,
1134
1134
  o & 63 | 128
1135
1135
  );
1136
1136
  } else if (o < 1114112) {
1137
1137
  if ((i -= 4) < 0) break;
1138
- U.push(
1138
+ L.push(
1139
1139
  o >> 18 | 240,
1140
1140
  o >> 12 & 63 | 128,
1141
1141
  o >> 6 & 63 | 128,
@@ -1144,7 +1144,7 @@ Un.write = function(n, t, e, r, s, a) {
1144
1144
  } else
1145
1145
  throw new Error("Invalid code point");
1146
1146
  }
1147
- return U;
1147
+ return L;
1148
1148
  }
1149
1149
  function at(u) {
1150
1150
  for (var i = [], o = 0; o < u.length; ++o)
@@ -1152,17 +1152,17 @@ Un.write = function(n, t, e, r, s, a) {
1152
1152
  return i;
1153
1153
  }
1154
1154
  function et(u, i) {
1155
- for (var o, p, E, U = [], W = 0; W < u.length && !((i -= 2) < 0); ++W)
1156
- o = u.charCodeAt(W), p = o >> 8, E = o % 256, U.push(E), U.push(p);
1157
- return U;
1155
+ for (var o, p, k, L = [], W = 0; W < u.length && !((i -= 2) < 0); ++W)
1156
+ o = u.charCodeAt(W), p = o >> 8, k = o % 256, L.push(k), L.push(p);
1157
+ return L;
1158
1158
  }
1159
1159
  function tt(u) {
1160
1160
  return t.toByteArray(wt(u));
1161
1161
  }
1162
1162
  function ge(u, i, o, p) {
1163
- for (var E = 0; E < p && !(E + o >= i.length || E >= u.length); ++E)
1164
- i[E + o] = u[E];
1165
- return E;
1163
+ for (var k = 0; k < p && !(k + o >= i.length || k >= u.length); ++k)
1164
+ i[k + o] = u[k];
1165
+ return k;
1166
1166
  }
1167
1167
  function fe(u, i) {
1168
1168
  return u instanceof i || u != null && u.constructor != null && u.constructor.name != null && u.constructor.name === i.name;
@@ -1172,8 +1172,8 @@ Un.write = function(n, t, e, r, s, a) {
1172
1172
  }
1173
1173
  var ue = function() {
1174
1174
  for (var u = "0123456789abcdef", i = new Array(256), o = 0; o < 16; ++o)
1175
- for (var p = o * 16, E = 0; E < 16; ++E)
1176
- i[p + E] = u[o] + u[E];
1175
+ for (var p = o * 16, k = 0; k < 16; ++k)
1176
+ i[p + k] = u[o] + u[k];
1177
1177
  return i;
1178
1178
  }();
1179
1179
  })(ai);
@@ -1344,7 +1344,7 @@ ReadableStream.prototype[Symbol.asyncIterator] || (ReadableStream.prototype[Symb
1344
1344
  }, ReadableStream.prototype.iterate = // @ts-ignore
1345
1345
  ReadableStream.prototype[Symbol.asyncIterator]);
1346
1346
  new Dn({ concurrency: 10 });
1347
- const St = 15, kn = 30, Sn = 19, Hs = 29, Gt = 256, Bn = Gt + 1 + Hs, Xn = 2 * Bn + 1, _t = 256, $s = 7, zn = 16, Jn = 17, Qn = 18, an = 8 * 2, Kt = -1, Ys = 1, Pt = 2, Zs = 0, dt = 0, er = 1, Vs = 3, Se = 4, Ue = 0, fi = 1, Dt = 2, Oe = -2, Gs = -3, lt = -5;
1347
+ const St = 15, En = 30, Sn = 19, Hs = 29, Gt = 256, Bn = Gt + 1 + Hs, Xn = 2 * Bn + 1, _t = 256, $s = 7, zn = 16, Jn = 17, Qn = 18, an = 8 * 2, Kt = -1, Ys = 1, Pt = 2, Zs = 0, dt = 0, er = 1, Vs = 3, Se = 4, Ue = 0, fi = 1, Dt = 2, Oe = -2, Gs = -3, lt = -5;
1348
1348
  function tn(n) {
1349
1349
  return nn(n.map(([t, e]) => new Array(t).fill(e, 0, t)));
1350
1350
  }
@@ -1380,24 +1380,24 @@ const tr = [0, 1, 2, 3].concat(...tn([
1380
1380
  [64, 28],
1381
1381
  [64, 29]
1382
1382
  ]));
1383
- function ie() {
1383
+ function se() {
1384
1384
  const n = this;
1385
1385
  function t(s) {
1386
1386
  const a = n.dyn_tree, c = n.stat_desc.static_tree, l = n.stat_desc.extra_bits, f = n.stat_desc.extra_base, _ = n.stat_desc.max_length;
1387
- let x, w, g, k, P, m, d = 0;
1388
- for (k = 0; k <= St; k++)
1389
- s.bl_count[k] = 0;
1387
+ let x, w, g, T, C, m, d = 0;
1388
+ for (T = 0; T <= St; T++)
1389
+ s.bl_count[T] = 0;
1390
1390
  for (a[s.heap[s.heap_max] * 2 + 1] = 0, x = s.heap_max + 1; x < Xn; x++)
1391
- w = s.heap[x], k = a[a[w * 2 + 1] * 2 + 1] + 1, k > _ && (k = _, d++), a[w * 2 + 1] = k, !(w > n.max_code) && (s.bl_count[k]++, P = 0, w >= f && (P = l[w - f]), m = a[w * 2], s.opt_len += m * (k + P), c && (s.static_len += m * (c[w * 2 + 1] + P)));
1391
+ w = s.heap[x], T = a[a[w * 2 + 1] * 2 + 1] + 1, T > _ && (T = _, d++), a[w * 2 + 1] = T, !(w > n.max_code) && (s.bl_count[T]++, C = 0, w >= f && (C = l[w - f]), m = a[w * 2], s.opt_len += m * (T + C), c && (s.static_len += m * (c[w * 2 + 1] + C)));
1392
1392
  if (d !== 0) {
1393
1393
  do {
1394
- for (k = _ - 1; s.bl_count[k] === 0; )
1395
- k--;
1396
- s.bl_count[k]--, s.bl_count[k + 1] += 2, s.bl_count[_]--, d -= 2;
1394
+ for (T = _ - 1; s.bl_count[T] === 0; )
1395
+ T--;
1396
+ s.bl_count[T]--, s.bl_count[T + 1] += 2, s.bl_count[_]--, d -= 2;
1397
1397
  } while (d > 0);
1398
- for (k = _; k !== 0; k--)
1399
- for (w = s.bl_count[k]; w !== 0; )
1400
- g = s.heap[--x], !(g > n.max_code) && (a[g * 2 + 1] != k && (s.opt_len += (k - a[g * 2 + 1]) * a[g * 2], a[g * 2 + 1] = k), w--);
1398
+ for (T = _; T !== 0; T--)
1399
+ for (w = s.bl_count[T]; w !== 0; )
1400
+ g = s.heap[--x], !(g > n.max_code) && (a[g * 2 + 1] != T && (s.opt_len += (T - a[g * 2 + 1]) * a[g * 2], a[g * 2 + 1] = T), w--);
1401
1401
  }
1402
1402
  }
1403
1403
  function e(s, a) {
@@ -1431,7 +1431,7 @@ function ie() {
1431
1431
  s.heap[--s.heap_max] = s.heap[1], t(s), r(a, n.max_code, s.bl_count);
1432
1432
  };
1433
1433
  }
1434
- ie._length_code = [0, 1, 2, 3, 4, 5, 6, 7].concat(...tn([
1434
+ se._length_code = [0, 1, 2, 3, 4, 5, 6, 7].concat(...tn([
1435
1435
  [2, 8],
1436
1436
  [2, 9],
1437
1437
  [2, 10],
@@ -1454,8 +1454,8 @@ ie._length_code = [0, 1, 2, 3, 4, 5, 6, 7].concat(...tn([
1454
1454
  [31, 27],
1455
1455
  [1, 28]
1456
1456
  ]));
1457
- ie.base_length = [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 14, 16, 20, 24, 28, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 0];
1458
- ie.base_dist = [
1457
+ se.base_length = [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 14, 16, 20, 24, 28, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 0];
1458
+ se.base_dist = [
1459
1459
  0,
1460
1460
  1,
1461
1461
  2,
@@ -1487,13 +1487,13 @@ ie.base_dist = [
1487
1487
  16384,
1488
1488
  24576
1489
1489
  ];
1490
- ie.d_code = function(n) {
1490
+ se.d_code = function(n) {
1491
1491
  return n < 256 ? tr[n] : tr[256 + (n >>> 7)];
1492
1492
  };
1493
- ie.extra_lbits = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0];
1494
- ie.extra_dbits = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13];
1495
- ie.extra_blbits = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7];
1496
- ie.bl_order = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
1493
+ se.extra_lbits = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0];
1494
+ se.extra_dbits = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13];
1495
+ se.extra_blbits = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7];
1496
+ se.bl_order = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
1497
1497
  function we(n, t, e, r, s) {
1498
1498
  const a = this;
1499
1499
  a.static_tree = n, a.extra_bits = t, a.extra_base = e, a.elems = r, a.max_length = s;
@@ -1791,9 +1791,9 @@ const Ks = [
1791
1791
  we.static_ltree = nn(Ks.map((n, t) => [n, Xs[t]]));
1792
1792
  const zs = [0, 16, 8, 24, 4, 20, 12, 28, 2, 18, 10, 26, 6, 22, 14, 30, 1, 17, 9, 25, 5, 21, 13, 29, 3, 19, 11, 27, 7, 23], Js = tn([[30, 5]]);
1793
1793
  we.static_dtree = nn(zs.map((n, t) => [n, Js[t]]));
1794
- we.static_l_desc = new we(we.static_ltree, ie.extra_lbits, Gt + 1, Bn, St);
1795
- we.static_d_desc = new we(we.static_dtree, ie.extra_dbits, 0, kn, St);
1796
- we.static_bl_desc = new we(null, ie.extra_blbits, 0, Sn, $s);
1794
+ we.static_l_desc = new we(we.static_ltree, se.extra_lbits, Gt + 1, Bn, St);
1795
+ we.static_d_desc = new we(we.static_dtree, se.extra_dbits, 0, En, St);
1796
+ we.static_bl_desc = new we(null, se.extra_blbits, 0, Sn, $s);
1797
1797
  const Qs = 9, eo = 8;
1798
1798
  function Be(n, t, e, r, s) {
1799
1799
  const a = this;
@@ -1838,46 +1838,46 @@ function nr(n, t, e, r) {
1838
1838
  }
1839
1839
  function io() {
1840
1840
  const n = this;
1841
- let t, e, r, s, a, c, l, f, _, x, w, g, k, P, m, d, h, y, T, D, A, R, F, b, C, v, S, M, L, Y, H, j, K;
1842
- const V = new ie(), oe = new ie(), Z = new ie();
1841
+ let t, e, r, s, a, c, l, f, _, x, w, g, T, C, m, d, h, v, A, P, S, R, F, y, D, b, E, M, O, $, H, j, G;
1842
+ const K = new se(), te = new se(), Z = new se();
1843
1843
  n.depth = [];
1844
- let J, $, ee, Pe, de, le;
1845
- n.bl_count = [], n.heap = [], H = [], j = [], K = [];
1844
+ let J, Y, ee, Pe, de, le;
1845
+ n.bl_count = [], n.heap = [], H = [], j = [], G = [];
1846
1846
  function wt() {
1847
- _ = 2 * a, w[k - 1] = 0;
1848
- for (let I = 0; I < k - 1; I++)
1847
+ _ = 2 * a, w[T - 1] = 0;
1848
+ for (let I = 0; I < T - 1; I++)
1849
1849
  w[I] = 0;
1850
- v = Le[S].max_lazy, L = Le[S].good_length, Y = Le[S].nice_length, C = Le[S].max_chain, A = 0, h = 0, F = 0, y = b = ae - 1, D = 0, g = 0;
1850
+ b = Le[E].max_lazy, O = Le[E].good_length, $ = Le[E].nice_length, D = Le[E].max_chain, S = 0, h = 0, F = 0, v = y = ae - 1, P = 0, g = 0;
1851
1851
  }
1852
1852
  function qe() {
1853
1853
  let I;
1854
1854
  for (I = 0; I < Bn; I++)
1855
1855
  H[I * 2] = 0;
1856
- for (I = 0; I < kn; I++)
1856
+ for (I = 0; I < En; I++)
1857
1857
  j[I * 2] = 0;
1858
1858
  for (I = 0; I < Sn; I++)
1859
- K[I * 2] = 0;
1860
- H[_t * 2] = 1, n.opt_len = n.static_len = 0, $ = ee = 0;
1859
+ G[I * 2] = 0;
1860
+ H[_t * 2] = 1, n.opt_len = n.static_len = 0, Y = ee = 0;
1861
1861
  }
1862
1862
  function at() {
1863
- V.dyn_tree = H, V.stat_desc = we.static_l_desc, oe.dyn_tree = j, oe.stat_desc = we.static_d_desc, Z.dyn_tree = K, Z.stat_desc = we.static_bl_desc, de = 0, le = 0, Pe = 8, qe();
1863
+ K.dyn_tree = H, K.stat_desc = we.static_l_desc, te.dyn_tree = j, te.stat_desc = we.static_d_desc, Z.dyn_tree = G, Z.stat_desc = we.static_bl_desc, de = 0, le = 0, Pe = 8, qe();
1864
1864
  }
1865
1865
  n.pqdownheap = function(I, B) {
1866
- const O = n.heap, N = O[B];
1866
+ const U = n.heap, N = U[B];
1867
1867
  let q = B << 1;
1868
- for (; q <= n.heap_len && (q < n.heap_len && nr(I, O[q + 1], O[q], n.depth) && q++, !nr(I, N, O[q], n.depth)); )
1869
- O[B] = O[q], B = q, q <<= 1;
1870
- O[B] = N;
1868
+ for (; q <= n.heap_len && (q < n.heap_len && nr(I, U[q + 1], U[q], n.depth) && q++, !nr(I, N, U[q], n.depth)); )
1869
+ U[B] = U[q], B = q, q <<= 1;
1870
+ U[B] = N;
1871
1871
  };
1872
1872
  function et(I, B) {
1873
- let O = -1, N, q = I[0 * 2 + 1], G = 0, z = 7, be = 4;
1873
+ let U = -1, N, q = I[0 * 2 + 1], V = 0, z = 7, be = 4;
1874
1874
  q === 0 && (z = 138, be = 3), I[(B + 1) * 2 + 1] = 65535;
1875
1875
  for (let De = 0; De <= B; De++)
1876
- N = q, q = I[(De + 1) * 2 + 1], !(++G < z && N == q) && (G < be ? K[N * 2] += G : N !== 0 ? (N != O && K[N * 2]++, K[zn * 2]++) : G <= 10 ? K[Jn * 2]++ : K[Qn * 2]++, G = 0, O = N, q === 0 ? (z = 138, be = 3) : N == q ? (z = 6, be = 3) : (z = 7, be = 4));
1876
+ N = q, q = I[(De + 1) * 2 + 1], !(++V < z && N == q) && (V < be ? G[N * 2] += V : N !== 0 ? (N != U && G[N * 2]++, G[zn * 2]++) : V <= 10 ? G[Jn * 2]++ : G[Qn * 2]++, V = 0, U = N, q === 0 ? (z = 138, be = 3) : N == q ? (z = 6, be = 3) : (z = 7, be = 4));
1877
1877
  }
1878
1878
  function tt() {
1879
1879
  let I;
1880
- for (et(H, V.max_code), et(j, oe.max_code), Z.build_tree(n), I = Sn - 1; I >= 3 && K[ie.bl_order[I] * 2 + 1] === 0; I--)
1880
+ for (et(H, K.max_code), et(j, te.max_code), Z.build_tree(n), I = Sn - 1; I >= 3 && G[se.bl_order[I] * 2 + 1] === 0; I--)
1881
1881
  ;
1882
1882
  return n.opt_len += 3 * (I + 1) + 5 + 5 + 4, I;
1883
1883
  }
@@ -1891,97 +1891,97 @@ function io() {
1891
1891
  ge(I >> 8 & 255), ge(I & 255 & 255);
1892
1892
  }
1893
1893
  function ue(I, B) {
1894
- let O;
1894
+ let U;
1895
1895
  const N = B;
1896
- le > an - N ? (O = I, de |= O << le & 65535, fe(de), de = O >>> an - le, le += N - an) : (de |= I << le & 65535, le += N);
1896
+ le > an - N ? (U = I, de |= U << le & 65535, fe(de), de = U >>> an - le, le += N - an) : (de |= I << le & 65535, le += N);
1897
1897
  }
1898
1898
  function u(I, B) {
1899
- const O = I * 2;
1900
- ue(B[O] & 65535, B[O + 1] & 65535);
1899
+ const U = I * 2;
1900
+ ue(B[U] & 65535, B[U + 1] & 65535);
1901
1901
  }
1902
1902
  function i(I, B) {
1903
- let O, N = -1, q, G = I[0 * 2 + 1], z = 0, be = 7, De = 4;
1904
- for (G === 0 && (be = 138, De = 3), O = 0; O <= B; O++)
1905
- if (q = G, G = I[(O + 1) * 2 + 1], !(++z < be && q == G)) {
1903
+ let U, N = -1, q, V = I[0 * 2 + 1], z = 0, be = 7, De = 4;
1904
+ for (V === 0 && (be = 138, De = 3), U = 0; U <= B; U++)
1905
+ if (q = V, V = I[(U + 1) * 2 + 1], !(++z < be && q == V)) {
1906
1906
  if (z < De)
1907
1907
  do
1908
- u(q, K);
1908
+ u(q, G);
1909
1909
  while (--z !== 0);
1910
- else q !== 0 ? (q != N && (u(q, K), z--), u(zn, K), ue(z - 3, 2)) : z <= 10 ? (u(Jn, K), ue(z - 3, 3)) : (u(Qn, K), ue(z - 11, 7));
1911
- z = 0, N = q, G === 0 ? (be = 138, De = 3) : q == G ? (be = 6, De = 3) : (be = 7, De = 4);
1910
+ else q !== 0 ? (q != N && (u(q, G), z--), u(zn, G), ue(z - 3, 2)) : z <= 10 ? (u(Jn, G), ue(z - 3, 3)) : (u(Qn, G), ue(z - 11, 7));
1911
+ z = 0, N = q, V === 0 ? (be = 138, De = 3) : q == V ? (be = 6, De = 3) : (be = 7, De = 4);
1912
1912
  }
1913
1913
  }
1914
- function o(I, B, O) {
1914
+ function o(I, B, U) {
1915
1915
  let N;
1916
- for (ue(I - 257, 5), ue(B - 1, 5), ue(O - 4, 4), N = 0; N < O; N++)
1917
- ue(K[ie.bl_order[N] * 2 + 1], 3);
1916
+ for (ue(I - 257, 5), ue(B - 1, 5), ue(U - 4, 4), N = 0; N < U; N++)
1917
+ ue(G[se.bl_order[N] * 2 + 1], 3);
1918
1918
  i(H, I - 1), i(j, B - 1);
1919
1919
  }
1920
1920
  function p() {
1921
1921
  le == 16 ? (fe(de), de = 0, le = 0) : le >= 8 && (ge(de & 255), de >>>= 8, le -= 8);
1922
1922
  }
1923
- function E() {
1923
+ function k() {
1924
1924
  ue(fn << 1, 3), u(_t, we.static_ltree), p(), 1 + Pe + 10 - le < 9 && (ue(fn << 1, 3), u(_t, we.static_ltree), p()), Pe = 7;
1925
1925
  }
1926
- function U(I, B) {
1927
- let O, N, q;
1928
- if (n.dist_buf[$] = I, n.lc_buf[$] = B & 255, $++, I === 0 ? H[B * 2]++ : (ee++, I--, H[(ie._length_code[B] + Gt + 1) * 2]++, j[ie.d_code(I) * 2]++), !($ & 8191) && S > 2) {
1929
- for (O = $ * 8, N = A - h, q = 0; q < kn; q++)
1930
- O += j[q * 2] * (5 + ie.extra_dbits[q]);
1931
- if (O >>>= 3, ee < Math.floor($ / 2) && O < Math.floor(N / 2))
1926
+ function L(I, B) {
1927
+ let U, N, q;
1928
+ if (n.dist_buf[Y] = I, n.lc_buf[Y] = B & 255, Y++, I === 0 ? H[B * 2]++ : (ee++, I--, H[(se._length_code[B] + Gt + 1) * 2]++, j[se.d_code(I) * 2]++), !(Y & 8191) && E > 2) {
1929
+ for (U = Y * 8, N = S - h, q = 0; q < En; q++)
1930
+ U += j[q * 2] * (5 + se.extra_dbits[q]);
1931
+ if (U >>>= 3, ee < Math.floor(Y / 2) && U < Math.floor(N / 2))
1932
1932
  return !0;
1933
1933
  }
1934
- return $ == J - 1;
1934
+ return Y == J - 1;
1935
1935
  }
1936
1936
  function W(I, B) {
1937
- let O, N, q = 0, G, z;
1938
- if ($ !== 0)
1937
+ let U, N, q = 0, V, z;
1938
+ if (Y !== 0)
1939
1939
  do
1940
- O = n.dist_buf[q], N = n.lc_buf[q], q++, O === 0 ? u(N, I) : (G = ie._length_code[N], u(G + Gt + 1, I), z = ie.extra_lbits[G], z !== 0 && (N -= ie.base_length[G], ue(N, z)), O--, G = ie.d_code(O), u(G, B), z = ie.extra_dbits[G], z !== 0 && (O -= ie.base_dist[G], ue(O, z)));
1941
- while (q < $);
1940
+ U = n.dist_buf[q], N = n.lc_buf[q], q++, U === 0 ? u(N, I) : (V = se._length_code[N], u(V + Gt + 1, I), z = se.extra_lbits[V], z !== 0 && (N -= se.base_length[V], ue(N, z)), U--, V = se.d_code(U), u(V, B), z = se.extra_dbits[V], z !== 0 && (U -= se.base_dist[V], ue(U, z)));
1941
+ while (q < Y);
1942
1942
  u(_t, I), Pe = I[_t * 2 + 1];
1943
1943
  }
1944
1944
  function X() {
1945
1945
  le > 8 ? fe(de) : le > 0 && ge(de & 255), de = 0, le = 0;
1946
1946
  }
1947
- function ne(I, B, O) {
1947
+ function re(I, B, U) {
1948
1948
  X(), Pe = 8, fe(B), fe(~B), n.pending_buf.set(f.subarray(I, I + B), n.pending), n.pending += B;
1949
1949
  }
1950
- function re(I, B, O) {
1951
- ue((no << 1) + (O ? 1 : 0), 3), ne(I, B);
1950
+ function ie(I, B, U) {
1951
+ ue((no << 1) + (U ? 1 : 0), 3), re(I, B);
1952
1952
  }
1953
- function pe(I, B, O) {
1954
- let N, q, G = 0;
1955
- S > 0 ? (V.build_tree(n), oe.build_tree(n), G = tt(), N = n.opt_len + 3 + 7 >>> 3, q = n.static_len + 3 + 7 >>> 3, q <= N && (N = q)) : N = q = B + 5, B + 4 <= N && I != -1 ? re(I, B, O) : q == N ? (ue((fn << 1) + (O ? 1 : 0), 3), W(we.static_ltree, we.static_dtree)) : (ue((ro << 1) + (O ? 1 : 0), 3), o(V.max_code + 1, oe.max_code + 1, G + 1), W(H, j)), qe(), O && X();
1953
+ function pe(I, B, U) {
1954
+ let N, q, V = 0;
1955
+ E > 0 ? (K.build_tree(n), te.build_tree(n), V = tt(), N = n.opt_len + 3 + 7 >>> 3, q = n.static_len + 3 + 7 >>> 3, q <= N && (N = q)) : N = q = B + 5, B + 4 <= N && I != -1 ? ie(I, B, U) : q == N ? (ue((fn << 1) + (U ? 1 : 0), 3), W(we.static_ltree, we.static_dtree)) : (ue((ro << 1) + (U ? 1 : 0), 3), o(K.max_code + 1, te.max_code + 1, V + 1), W(H, j)), qe(), U && X();
1956
1956
  }
1957
- function te(I) {
1958
- pe(h >= 0 ? h : -1, A - h, I), h = A, t.flush_pending();
1957
+ function ne(I) {
1958
+ pe(h >= 0 ? h : -1, S - h, I), h = S, t.flush_pending();
1959
1959
  }
1960
1960
  function Ye() {
1961
- let I, B, O, N;
1961
+ let I, B, U, N;
1962
1962
  do {
1963
- if (N = _ - F - A, N === 0 && A === 0 && F === 0)
1963
+ if (N = _ - F - S, N === 0 && S === 0 && F === 0)
1964
1964
  N = a;
1965
1965
  else if (N == -1)
1966
1966
  N--;
1967
- else if (A >= a + a - Te) {
1968
- f.set(f.subarray(a, a + a), 0), R -= a, A -= a, h -= a, I = k, O = I;
1967
+ else if (S >= a + a - Te) {
1968
+ f.set(f.subarray(a, a + a), 0), R -= a, S -= a, h -= a, I = T, U = I;
1969
1969
  do
1970
- B = w[--O] & 65535, w[O] = B >= a ? B - a : 0;
1970
+ B = w[--U] & 65535, w[U] = B >= a ? B - a : 0;
1971
1971
  while (--I !== 0);
1972
- I = a, O = I;
1972
+ I = a, U = I;
1973
1973
  do
1974
- B = x[--O] & 65535, x[O] = B >= a ? B - a : 0;
1974
+ B = x[--U] & 65535, x[U] = B >= a ? B - a : 0;
1975
1975
  while (--I !== 0);
1976
1976
  N += a;
1977
1977
  }
1978
1978
  if (t.avail_in === 0)
1979
1979
  return;
1980
- I = t.read_buf(f, A + F, N), F += I, F >= ae && (g = f[A] & 255, g = (g << d ^ f[A + 1] & 255) & m);
1980
+ I = t.read_buf(f, S + F, N), F += I, F >= ae && (g = f[S] & 255, g = (g << d ^ f[S + 1] & 255) & m);
1981
1981
  } while (F < Te && t.avail_in !== 0);
1982
1982
  }
1983
1983
  function It(I) {
1984
- let B = 65535, O;
1984
+ let B = 65535, U;
1985
1985
  for (B > r - 5 && (B = r - 5); ; ) {
1986
1986
  if (F <= 1) {
1987
1987
  if (Ye(), F === 0 && I == dt)
@@ -1989,35 +1989,35 @@ function io() {
1989
1989
  if (F === 0)
1990
1990
  break;
1991
1991
  }
1992
- if (A += F, F = 0, O = h + B, (A === 0 || A >= O) && (F = A - O, A = O, te(!1), t.avail_out === 0) || A - h >= a - Te && (te(!1), t.avail_out === 0))
1992
+ if (S += F, F = 0, U = h + B, (S === 0 || S >= U) && (F = S - U, S = U, ne(!1), t.avail_out === 0) || S - h >= a - Te && (ne(!1), t.avail_out === 0))
1993
1993
  return Fe;
1994
1994
  }
1995
- return te(I == Se), t.avail_out === 0 ? I == Se ? yt : Fe : I == Se ? Ot : Ut;
1995
+ return ne(I == Se), t.avail_out === 0 ? I == Se ? yt : Fe : I == Se ? Ot : Ut;
1996
1996
  }
1997
1997
  function gt(I) {
1998
- let B = C, O = A, N, q, G = b;
1999
- const z = A > a - Te ? A - (a - Te) : 0;
2000
- let be = Y;
2001
- const De = l, sn = A + Ht;
2002
- let Hn = f[O + G - 1], $n = f[O + G];
2003
- b >= L && (B >>= 2), be > F && (be = F);
1998
+ let B = D, U = S, N, q, V = y;
1999
+ const z = S > a - Te ? S - (a - Te) : 0;
2000
+ let be = $;
2001
+ const De = l, sn = S + Ht;
2002
+ let Hn = f[U + V - 1], $n = f[U + V];
2003
+ y >= O && (B >>= 2), be > F && (be = F);
2004
2004
  do
2005
- if (N = I, !(f[N + G] != $n || f[N + G - 1] != Hn || f[N] != f[O] || f[++N] != f[O + 1])) {
2006
- O += 2, N++;
2005
+ if (N = I, !(f[N + V] != $n || f[N + V - 1] != Hn || f[N] != f[U] || f[++N] != f[U + 1])) {
2006
+ U += 2, N++;
2007
2007
  do
2008
2008
  ;
2009
- while (f[++O] == f[++N] && f[++O] == f[++N] && f[++O] == f[++N] && f[++O] == f[++N] && f[++O] == f[++N] && f[++O] == f[++N] && f[++O] == f[++N] && f[++O] == f[++N] && O < sn);
2010
- if (q = Ht - (sn - O), O = sn - Ht, q > G) {
2011
- if (R = I, G = q, q >= be)
2009
+ while (f[++U] == f[++N] && f[++U] == f[++N] && f[++U] == f[++N] && f[++U] == f[++N] && f[++U] == f[++N] && f[++U] == f[++N] && f[++U] == f[++N] && f[++U] == f[++N] && U < sn);
2010
+ if (q = Ht - (sn - U), U = sn - Ht, q > V) {
2011
+ if (R = I, V = q, q >= be)
2012
2012
  break;
2013
- Hn = f[O + G - 1], $n = f[O + G];
2013
+ Hn = f[U + V - 1], $n = f[U + V];
2014
2014
  }
2015
2015
  }
2016
2016
  while ((I = x[I & De] & 65535) > z && --B !== 0);
2017
- return G <= F ? G : F;
2017
+ return V <= F ? V : F;
2018
2018
  }
2019
2019
  function Qi(I) {
2020
- let B = 0, O;
2020
+ let B = 0, U;
2021
2021
  for (; ; ) {
2022
2022
  if (F < Te) {
2023
2023
  if (Ye(), F < Te && I == dt)
@@ -2025,24 +2025,24 @@ function io() {
2025
2025
  if (F === 0)
2026
2026
  break;
2027
2027
  }
2028
- if (F >= ae && (g = (g << d ^ f[A + (ae - 1)] & 255) & m, B = w[g] & 65535, x[A & l] = w[g], w[g] = A), B !== 0 && (A - B & 65535) <= a - Te && M != Pt && (y = gt(B)), y >= ae)
2029
- if (O = U(A - R, y - ae), F -= y, y <= v && F >= ae) {
2030
- y--;
2028
+ if (F >= ae && (g = (g << d ^ f[S + (ae - 1)] & 255) & m, B = w[g] & 65535, x[S & l] = w[g], w[g] = S), B !== 0 && (S - B & 65535) <= a - Te && M != Pt && (v = gt(B)), v >= ae)
2029
+ if (U = L(S - R, v - ae), F -= v, v <= b && F >= ae) {
2030
+ v--;
2031
2031
  do
2032
- A++, g = (g << d ^ f[A + (ae - 1)] & 255) & m, B = w[g] & 65535, x[A & l] = w[g], w[g] = A;
2033
- while (--y !== 0);
2034
- A++;
2032
+ S++, g = (g << d ^ f[S + (ae - 1)] & 255) & m, B = w[g] & 65535, x[S & l] = w[g], w[g] = S;
2033
+ while (--v !== 0);
2034
+ S++;
2035
2035
  } else
2036
- A += y, y = 0, g = f[A] & 255, g = (g << d ^ f[A + 1] & 255) & m;
2036
+ S += v, v = 0, g = f[S] & 255, g = (g << d ^ f[S + 1] & 255) & m;
2037
2037
  else
2038
- O = U(0, f[A] & 255), F--, A++;
2039
- if (O && (te(!1), t.avail_out === 0))
2038
+ U = L(0, f[S] & 255), F--, S++;
2039
+ if (U && (ne(!1), t.avail_out === 0))
2040
2040
  return Fe;
2041
2041
  }
2042
- return te(I == Se), t.avail_out === 0 ? I == Se ? yt : Fe : I == Se ? Ot : Ut;
2042
+ return ne(I == Se), t.avail_out === 0 ? I == Se ? yt : Fe : I == Se ? Ot : Ut;
2043
2043
  }
2044
2044
  function es(I) {
2045
- let B = 0, O, N;
2045
+ let B = 0, U, N;
2046
2046
  for (; ; ) {
2047
2047
  if (F < Te) {
2048
2048
  if (Ye(), F < Te && I == dt)
@@ -2050,57 +2050,57 @@ function io() {
2050
2050
  if (F === 0)
2051
2051
  break;
2052
2052
  }
2053
- if (F >= ae && (g = (g << d ^ f[A + (ae - 1)] & 255) & m, B = w[g] & 65535, x[A & l] = w[g], w[g] = A), b = y, T = R, y = ae - 1, B !== 0 && b < v && (A - B & 65535) <= a - Te && (M != Pt && (y = gt(B)), y <= 5 && (M == Ys || y == ae && A - R > 4096) && (y = ae - 1)), b >= ae && y <= b) {
2054
- N = A + F - ae, O = U(A - 1 - T, b - ae), F -= b - 1, b -= 2;
2053
+ if (F >= ae && (g = (g << d ^ f[S + (ae - 1)] & 255) & m, B = w[g] & 65535, x[S & l] = w[g], w[g] = S), y = v, A = R, v = ae - 1, B !== 0 && y < b && (S - B & 65535) <= a - Te && (M != Pt && (v = gt(B)), v <= 5 && (M == Ys || v == ae && S - R > 4096) && (v = ae - 1)), y >= ae && v <= y) {
2054
+ N = S + F - ae, U = L(S - 1 - A, y - ae), F -= y - 1, y -= 2;
2055
2055
  do
2056
- ++A <= N && (g = (g << d ^ f[A + (ae - 1)] & 255) & m, B = w[g] & 65535, x[A & l] = w[g], w[g] = A);
2057
- while (--b !== 0);
2058
- if (D = 0, y = ae - 1, A++, O && (te(!1), t.avail_out === 0))
2056
+ ++S <= N && (g = (g << d ^ f[S + (ae - 1)] & 255) & m, B = w[g] & 65535, x[S & l] = w[g], w[g] = S);
2057
+ while (--y !== 0);
2058
+ if (P = 0, v = ae - 1, S++, U && (ne(!1), t.avail_out === 0))
2059
2059
  return Fe;
2060
- } else if (D !== 0) {
2061
- if (O = U(0, f[A - 1] & 255), O && te(!1), A++, F--, t.avail_out === 0)
2060
+ } else if (P !== 0) {
2061
+ if (U = L(0, f[S - 1] & 255), U && ne(!1), S++, F--, t.avail_out === 0)
2062
2062
  return Fe;
2063
2063
  } else
2064
- D = 1, A++, F--;
2064
+ P = 1, S++, F--;
2065
2065
  }
2066
- return D !== 0 && (O = U(0, f[A - 1] & 255), D = 0), te(I == Se), t.avail_out === 0 ? I == Se ? yt : Fe : I == Se ? Ot : Ut;
2066
+ return P !== 0 && (U = L(0, f[S - 1] & 255), P = 0), ne(I == Se), t.avail_out === 0 ? I == Se ? yt : Fe : I == Se ? Ot : Ut;
2067
2067
  }
2068
2068
  function ts(I) {
2069
2069
  return I.total_in = I.total_out = 0, I.msg = null, n.pending = 0, n.pending_out = 0, e = Bt, s = dt, at(), wt(), Ue;
2070
2070
  }
2071
- n.deflateInit = function(I, B, O, N, q, G) {
2072
- return N || (N = ln), q || (q = eo), G || (G = Zs), I.msg = null, B == Kt && (B = 6), q < 1 || q > Qs || N != ln || O < 9 || O > 15 || B < 0 || B > 9 || G < 0 || G > Pt ? Oe : (I.dstate = n, c = O, a = 1 << c, l = a - 1, P = q + 7, k = 1 << P, m = k - 1, d = Math.floor((P + ae - 1) / ae), f = new Uint8Array(a * 2), x = [], w = [], J = 1 << q + 6, n.pending_buf = new Uint8Array(J * 4), r = J * 4, n.dist_buf = new Uint16Array(J), n.lc_buf = new Uint8Array(J), S = B, M = G, ts(I));
2071
+ n.deflateInit = function(I, B, U, N, q, V) {
2072
+ return N || (N = ln), q || (q = eo), V || (V = Zs), I.msg = null, B == Kt && (B = 6), q < 1 || q > Qs || N != ln || U < 9 || U > 15 || B < 0 || B > 9 || V < 0 || V > Pt ? Oe : (I.dstate = n, c = U, a = 1 << c, l = a - 1, C = q + 7, T = 1 << C, m = T - 1, d = Math.floor((C + ae - 1) / ae), f = new Uint8Array(a * 2), x = [], w = [], J = 1 << q + 6, n.pending_buf = new Uint8Array(J * 4), r = J * 4, n.dist_buf = new Uint16Array(J), n.lc_buf = new Uint8Array(J), E = B, M = V, ts(I));
2073
2073
  }, n.deflateEnd = function() {
2074
2074
  return e != cn && e != Bt && e != bt ? Oe : (n.lc_buf = null, n.dist_buf = null, n.pending_buf = null, w = null, x = null, f = null, n.dstate = null, e == Bt ? Gs : Ue);
2075
- }, n.deflateParams = function(I, B, O) {
2075
+ }, n.deflateParams = function(I, B, U) {
2076
2076
  let N = Ue;
2077
- return B == Kt && (B = 6), B < 0 || B > 9 || O < 0 || O > Pt ? Oe : (Le[S].func != Le[B].func && I.total_in !== 0 && (N = I.deflate(er)), S != B && (S = B, v = Le[S].max_lazy, L = Le[S].good_length, Y = Le[S].nice_length, C = Le[S].max_chain), M = O, N);
2078
- }, n.deflateSetDictionary = function(I, B, O) {
2079
- let N = O, q, G = 0;
2077
+ return B == Kt && (B = 6), B < 0 || B > 9 || U < 0 || U > Pt ? Oe : (Le[E].func != Le[B].func && I.total_in !== 0 && (N = I.deflate(er)), E != B && (E = B, b = Le[E].max_lazy, O = Le[E].good_length, $ = Le[E].nice_length, D = Le[E].max_chain), M = U, N);
2078
+ }, n.deflateSetDictionary = function(I, B, U) {
2079
+ let N = U, q, V = 0;
2080
2080
  if (!B || e != cn)
2081
2081
  return Oe;
2082
2082
  if (N < ae)
2083
2083
  return Ue;
2084
- for (N > a - Te && (N = a - Te, G = O - N), f.set(B.subarray(G, G + N), 0), A = N, h = N, g = f[0] & 255, g = (g << d ^ f[1] & 255) & m, q = 0; q <= N - ae; q++)
2084
+ for (N > a - Te && (N = a - Te, V = U - N), f.set(B.subarray(V, V + N), 0), S = N, h = N, g = f[0] & 255, g = (g << d ^ f[1] & 255) & m, q = 0; q <= N - ae; q++)
2085
2085
  g = (g << d ^ f[q + (ae - 1)] & 255) & m, x[q & l] = w[g], w[g] = q;
2086
2086
  return Ue;
2087
2087
  }, n.deflate = function(I, B) {
2088
- let O, N, q, G, z;
2088
+ let U, N, q, V, z;
2089
2089
  if (B > Se || B < 0)
2090
2090
  return Oe;
2091
2091
  if (!I.next_out || !I.next_in && I.avail_in !== 0 || e == bt && B != Se)
2092
2092
  return I.msg = Lt[Dt - Oe], Oe;
2093
2093
  if (I.avail_out === 0)
2094
2094
  return I.msg = Lt[Dt - lt], lt;
2095
- if (t = I, G = s, s = B, e == cn && (N = ln + (c - 8 << 4) << 8, q = (S - 1 & 255) >> 1, q > 3 && (q = 3), N |= q << 6, A !== 0 && (N |= to), N += 31 - N % 31, e = Bt, je(N)), n.pending !== 0) {
2095
+ if (t = I, V = s, s = B, e == cn && (N = ln + (c - 8 << 4) << 8, q = (E - 1 & 255) >> 1, q > 3 && (q = 3), N |= q << 6, S !== 0 && (N |= to), N += 31 - N % 31, e = Bt, je(N)), n.pending !== 0) {
2096
2096
  if (t.flush_pending(), t.avail_out === 0)
2097
2097
  return s = -1, Ue;
2098
- } else if (t.avail_in === 0 && B <= G && B != Se)
2098
+ } else if (t.avail_in === 0 && B <= V && B != Se)
2099
2099
  return t.msg = Lt[Dt - lt], lt;
2100
2100
  if (e == bt && t.avail_in !== 0)
2101
2101
  return I.msg = Lt[Dt - lt], lt;
2102
2102
  if (t.avail_in !== 0 || F !== 0 || B != dt && e != bt) {
2103
- switch (z = -1, Le[S].func) {
2103
+ switch (z = -1, Le[E].func) {
2104
2104
  case ui:
2105
2105
  z = It(B);
2106
2106
  break;
@@ -2115,10 +2115,10 @@ function io() {
2115
2115
  return t.avail_out === 0 && (s = -1), Ue;
2116
2116
  if (z == Ut) {
2117
2117
  if (B == er)
2118
- E();
2119
- else if (re(0, 0, !1), B == Vs)
2120
- for (O = 0; O < k; O++)
2121
- w[O] = 0;
2118
+ k();
2119
+ else if (ie(0, 0, !1), B == Vs)
2120
+ for (U = 0; U < T; U++)
2121
+ w[U] = 0;
2122
2122
  if (t.flush_pending(), t.avail_out === 0)
2123
2123
  return s = -1, Ue;
2124
2124
  }
@@ -2178,18 +2178,18 @@ function so(n) {
2178
2178
  const t = this, e = new di(), r = oo(n && n.chunkSize ? n.chunkSize : 64 * 1024), s = dt, a = new Uint8Array(r);
2179
2179
  let c = n ? n.level : Kt;
2180
2180
  typeof c > "u" && (c = Kt), e.deflateInit(c), e.next_out = a, t.append = function(l, f) {
2181
- let _, x, w = 0, g = 0, k = 0;
2182
- const P = [];
2181
+ let _, x, w = 0, g = 0, T = 0;
2182
+ const C = [];
2183
2183
  if (l.length) {
2184
2184
  e.next_in_index = 0, e.next_in = l, e.avail_in = l.length;
2185
2185
  do {
2186
2186
  if (e.next_out_index = 0, e.avail_out = r, _ = e.deflate(s), _ != Ue)
2187
2187
  throw new Error("deflating: " + e.msg);
2188
- e.next_out_index && (e.next_out_index == r ? P.push(new Uint8Array(a)) : P.push(a.subarray(0, e.next_out_index))), k += e.next_out_index, f && e.next_in_index > 0 && e.next_in_index != w && (f(e.next_in_index), w = e.next_in_index);
2188
+ e.next_out_index && (e.next_out_index == r ? C.push(new Uint8Array(a)) : C.push(a.subarray(0, e.next_out_index))), T += e.next_out_index, f && e.next_in_index > 0 && e.next_in_index != w && (f(e.next_in_index), w = e.next_in_index);
2189
2189
  } while (e.avail_in > 0 || e.avail_out === 0);
2190
- return P.length > 1 ? (x = new Uint8Array(k), P.forEach(function(m) {
2190
+ return C.length > 1 ? (x = new Uint8Array(T), C.forEach(function(m) {
2191
2191
  x.set(m, g), g += m.length;
2192
- })) : x = P[0] ? new Uint8Array(P[0]) : new Uint8Array(), x;
2192
+ })) : x = C[0] ? new Uint8Array(C[0]) : new Uint8Array(), x;
2193
2193
  }
2194
2194
  }, t.flush = function() {
2195
2195
  let l, f, _ = 0, x = 0;
@@ -2207,7 +2207,7 @@ function so(n) {
2207
2207
  function oo(n) {
2208
2208
  return n + 5 * (Math.floor(n / 16383) + 1);
2209
2209
  }
2210
- const ao = 15, Q = 0, He = 1, co = 2, Ae = -2, se = -3, rr = -4, $e = -5, Re = [
2210
+ const ao = 15, Q = 0, He = 1, co = 2, Ae = -2, oe = -3, rr = -4, $e = -5, Re = [
2211
2211
  0,
2212
2212
  1,
2213
2213
  3,
@@ -3994,54 +3994,54 @@ const ao = 15, Q = 0, He = 1, co = 2, Ae = -2, se = -3, rr = -4, $e = -5, Re = [
3994
3994
  function An() {
3995
3995
  const n = this;
3996
3996
  let t, e, r, s, a, c;
3997
- function l(_, x, w, g, k, P, m, d, h, y, T) {
3998
- let D, A, R, F, b, C, v, S, M, L, Y, H, j, K, V;
3999
- L = 0, b = w;
3997
+ function l(_, x, w, g, T, C, m, d, h, v, A) {
3998
+ let P, S, R, F, y, D, b, E, M, O, $, H, j, G, K;
3999
+ O = 0, y = w;
4000
4000
  do
4001
- r[_[x + L]]++, L++, b--;
4002
- while (b !== 0);
4001
+ r[_[x + O]]++, O++, y--;
4002
+ while (y !== 0);
4003
4003
  if (r[0] == w)
4004
4004
  return m[0] = -1, d[0] = 0, Q;
4005
- for (S = d[0], C = 1; C <= Ze && r[C] === 0; C++)
4005
+ for (E = d[0], D = 1; D <= Ze && r[D] === 0; D++)
4006
4006
  ;
4007
- for (v = C, S < C && (S = C), b = Ze; b !== 0 && r[b] === 0; b--)
4007
+ for (b = D, E < D && (E = D), y = Ze; y !== 0 && r[y] === 0; y--)
4008
4008
  ;
4009
- for (R = b, S > b && (S = b), d[0] = S, K = 1 << C; C < b; C++, K <<= 1)
4010
- if ((K -= r[C]) < 0)
4011
- return se;
4012
- if ((K -= r[b]) < 0)
4013
- return se;
4014
- for (r[b] += K, c[1] = C = 0, L = 1, j = 2; --b !== 0; )
4015
- c[j] = C += r[L], j++, L++;
4016
- b = 0, L = 0;
4009
+ for (R = y, E > y && (E = y), d[0] = E, G = 1 << D; D < y; D++, G <<= 1)
4010
+ if ((G -= r[D]) < 0)
4011
+ return oe;
4012
+ if ((G -= r[y]) < 0)
4013
+ return oe;
4014
+ for (r[y] += G, c[1] = D = 0, O = 1, j = 2; --y !== 0; )
4015
+ c[j] = D += r[O], j++, O++;
4016
+ y = 0, O = 0;
4017
4017
  do
4018
- (C = _[x + L]) !== 0 && (T[c[C]++] = b), L++;
4019
- while (++b < w);
4020
- for (w = c[R], c[0] = b = 0, L = 0, F = -1, H = -S, a[0] = 0, Y = 0, V = 0; v <= R; v++)
4021
- for (D = r[v]; D-- !== 0; ) {
4022
- for (; v > H + S; ) {
4023
- if (F++, H += S, V = R - H, V = V > S ? S : V, (A = 1 << (C = v - H)) > D + 1 && (A -= D + 1, j = v, C < V))
4024
- for (; ++C < V && !((A <<= 1) <= r[++j]); )
4025
- A -= r[j];
4026
- if (V = 1 << C, y[0] + V > pi)
4027
- return se;
4028
- a[F] = Y = /* hp+ */
4029
- y[0], y[0] += V, F !== 0 ? (c[F] = b, s[0] = /* (byte) */
4030
- C, s[1] = /* (byte) */
4031
- S, C = b >>> H - S, s[2] = /* (int) */
4032
- Y - a[F - 1] - C, h.set(s, (a[F - 1] + C) * 3)) : m[0] = Y;
4018
+ (D = _[x + O]) !== 0 && (A[c[D]++] = y), O++;
4019
+ while (++y < w);
4020
+ for (w = c[R], c[0] = y = 0, O = 0, F = -1, H = -E, a[0] = 0, $ = 0, K = 0; b <= R; b++)
4021
+ for (P = r[b]; P-- !== 0; ) {
4022
+ for (; b > H + E; ) {
4023
+ if (F++, H += E, K = R - H, K = K > E ? E : K, (S = 1 << (D = b - H)) > P + 1 && (S -= P + 1, j = b, D < K))
4024
+ for (; ++D < K && !((S <<= 1) <= r[++j]); )
4025
+ S -= r[j];
4026
+ if (K = 1 << D, v[0] + K > pi)
4027
+ return oe;
4028
+ a[F] = $ = /* hp+ */
4029
+ v[0], v[0] += K, F !== 0 ? (c[F] = y, s[0] = /* (byte) */
4030
+ D, s[1] = /* (byte) */
4031
+ E, D = y >>> H - E, s[2] = /* (int) */
4032
+ $ - a[F - 1] - D, h.set(s, (a[F - 1] + D) * 3)) : m[0] = $;
4033
4033
  }
4034
4034
  for (s[1] = /* (byte) */
4035
- v - H, L >= w ? s[0] = 192 : T[L] < g ? (s[0] = /* (byte) */
4036
- T[L] < 256 ? 0 : 96, s[2] = T[L++]) : (s[0] = /* (byte) */
4037
- P[T[L] - g] + 16 + 64, s[2] = k[T[L++] - g]), A = 1 << v - H, C = b >>> H; C < V; C += A)
4038
- h.set(s, (Y + C) * 3);
4039
- for (C = 1 << v - 1; b & C; C >>>= 1)
4040
- b ^= C;
4041
- for (b ^= C, M = (1 << H) - 1; (b & M) != c[F]; )
4042
- F--, H -= S, M = (1 << H) - 1;
4035
+ b - H, O >= w ? s[0] = 192 : A[O] < g ? (s[0] = /* (byte) */
4036
+ A[O] < 256 ? 0 : 96, s[2] = A[O++]) : (s[0] = /* (byte) */
4037
+ C[A[O] - g] + 16 + 64, s[2] = T[A[O++] - g]), S = 1 << b - H, D = y >>> H; D < K; D += S)
4038
+ h.set(s, ($ + D) * 3);
4039
+ for (D = 1 << b - 1; y & D; D >>>= 1)
4040
+ y ^= D;
4041
+ for (y ^= D, M = (1 << H) - 1; (y & M) != c[F]; )
4042
+ F--, H -= E, M = (1 << H) - 1;
4043
4043
  }
4044
- return K !== 0 && R != 1 ? $e : Q;
4044
+ return G !== 0 && R != 1 ? $e : Q;
4045
4045
  }
4046
4046
  function f(_) {
4047
4047
  let x;
@@ -4053,12 +4053,12 @@ function An() {
4053
4053
  s[x] = 0;
4054
4054
  a.set(r.subarray(0, Ze), 0), c.set(r.subarray(0, Ze + 1), 0);
4055
4055
  }
4056
- n.inflate_trees_bits = function(_, x, w, g, k) {
4057
- let P;
4058
- return f(19), t[0] = 0, P = l(_, 0, 19, 19, null, null, w, x, g, t, e), P == se ? k.msg = "oversubscribed dynamic bit lengths tree" : (P == $e || x[0] === 0) && (k.msg = "incomplete dynamic bit lengths tree", P = se), P;
4059
- }, n.inflate_trees_dynamic = function(_, x, w, g, k, P, m, d, h) {
4060
- let y;
4061
- return f(288), t[0] = 0, y = l(w, 0, _, 257, xo, wo, P, g, d, t, e), y != Q || g[0] === 0 ? (y == se ? h.msg = "oversubscribed literal/length tree" : y != rr && (h.msg = "incomplete literal/length tree", y = se), y) : (f(288), y = l(w, _, x, 0, go, _o, m, k, d, t, e), y != Q || k[0] === 0 && _ > 257 ? (y == se ? h.msg = "oversubscribed distance tree" : y == $e ? (h.msg = "incomplete distance tree", y = se) : y != rr && (h.msg = "empty distance tree with lengths", y = se), y) : Q);
4056
+ n.inflate_trees_bits = function(_, x, w, g, T) {
4057
+ let C;
4058
+ return f(19), t[0] = 0, C = l(_, 0, 19, 19, null, null, w, x, g, t, e), C == oe ? T.msg = "oversubscribed dynamic bit lengths tree" : (C == $e || x[0] === 0) && (T.msg = "incomplete dynamic bit lengths tree", C = oe), C;
4059
+ }, n.inflate_trees_dynamic = function(_, x, w, g, T, C, m, d, h) {
4060
+ let v;
4061
+ return f(288), t[0] = 0, v = l(w, 0, _, 257, xo, wo, C, g, d, t, e), v != Q || g[0] === 0 ? (v == oe ? h.msg = "oversubscribed literal/length tree" : v != rr && (h.msg = "incomplete literal/length tree", v = oe), v) : (f(288), v = l(w, _, x, 0, go, _o, m, T, d, t, e), v != Q || T[0] === 0 && _ > 257 ? (v == oe ? h.msg = "oversubscribed distance tree" : v == $e ? (h.msg = "incomplete distance tree", v = oe) : v != rr && (h.msg = "empty distance tree with lengths", v = oe), v) : Q);
4062
4062
  };
4063
4063
  }
4064
4064
  An.inflate_trees_fixed = function(n, t, e, r) {
@@ -4067,170 +4067,170 @@ An.inflate_trees_fixed = function(n, t, e, r) {
4067
4067
  const Wt = 0, ir = 1, sr = 2, or = 3, ar = 4, cr = 5, lr = 6, un = 7, fr = 8, Mt = 9;
4068
4068
  function yo() {
4069
4069
  const n = this;
4070
- let t, e = 0, r, s = 0, a = 0, c = 0, l = 0, f = 0, _ = 0, x = 0, w, g = 0, k, P = 0;
4071
- function m(d, h, y, T, D, A, R, F) {
4072
- let b, C, v, S, M, L, Y, H, j, K, V, oe, Z, J, $, ee;
4073
- Y = F.next_in_index, H = F.avail_in, M = R.bitb, L = R.bitk, j = R.write, K = j < R.read ? R.read - j - 1 : R.end - j, V = Re[d], oe = Re[h];
4070
+ let t, e = 0, r, s = 0, a = 0, c = 0, l = 0, f = 0, _ = 0, x = 0, w, g = 0, T, C = 0;
4071
+ function m(d, h, v, A, P, S, R, F) {
4072
+ let y, D, b, E, M, O, $, H, j, G, K, te, Z, J, Y, ee;
4073
+ $ = F.next_in_index, H = F.avail_in, M = R.bitb, O = R.bitk, j = R.write, G = j < R.read ? R.read - j - 1 : R.end - j, K = Re[d], te = Re[h];
4074
4074
  do {
4075
- for (; L < 20; )
4076
- H--, M |= (F.read_byte(Y++) & 255) << L, L += 8;
4077
- if (b = M & V, C = y, v = T, ee = (v + b) * 3, (S = C[ee]) === 0) {
4078
- M >>= C[ee + 1], L -= C[ee + 1], R.win[j++] = /* (byte) */
4079
- C[ee + 2], K--;
4075
+ for (; O < 20; )
4076
+ H--, M |= (F.read_byte($++) & 255) << O, O += 8;
4077
+ if (y = M & K, D = v, b = A, ee = (b + y) * 3, (E = D[ee]) === 0) {
4078
+ M >>= D[ee + 1], O -= D[ee + 1], R.win[j++] = /* (byte) */
4079
+ D[ee + 2], G--;
4080
4080
  continue;
4081
4081
  }
4082
4082
  do {
4083
- if (M >>= C[ee + 1], L -= C[ee + 1], S & 16) {
4084
- for (S &= 15, Z = C[ee + 2] + /* (int) */
4085
- (M & Re[S]), M >>= S, L -= S; L < 15; )
4086
- H--, M |= (F.read_byte(Y++) & 255) << L, L += 8;
4087
- b = M & oe, C = D, v = A, ee = (v + b) * 3, S = C[ee];
4083
+ if (M >>= D[ee + 1], O -= D[ee + 1], E & 16) {
4084
+ for (E &= 15, Z = D[ee + 2] + /* (int) */
4085
+ (M & Re[E]), M >>= E, O -= E; O < 15; )
4086
+ H--, M |= (F.read_byte($++) & 255) << O, O += 8;
4087
+ y = M & te, D = P, b = S, ee = (b + y) * 3, E = D[ee];
4088
4088
  do
4089
- if (M >>= C[ee + 1], L -= C[ee + 1], S & 16) {
4090
- for (S &= 15; L < S; )
4091
- H--, M |= (F.read_byte(Y++) & 255) << L, L += 8;
4092
- if (J = C[ee + 2] + (M & Re[S]), M >>= S, L -= S, K -= Z, j >= J)
4093
- $ = j - J, j - $ > 0 && 2 > j - $ ? (R.win[j++] = R.win[$++], R.win[j++] = R.win[$++], Z -= 2) : (R.win.set(R.win.subarray($, $ + 2), j), j += 2, $ += 2, Z -= 2);
4089
+ if (M >>= D[ee + 1], O -= D[ee + 1], E & 16) {
4090
+ for (E &= 15; O < E; )
4091
+ H--, M |= (F.read_byte($++) & 255) << O, O += 8;
4092
+ if (J = D[ee + 2] + (M & Re[E]), M >>= E, O -= E, G -= Z, j >= J)
4093
+ Y = j - J, j - Y > 0 && 2 > j - Y ? (R.win[j++] = R.win[Y++], R.win[j++] = R.win[Y++], Z -= 2) : (R.win.set(R.win.subarray(Y, Y + 2), j), j += 2, Y += 2, Z -= 2);
4094
4094
  else {
4095
- $ = j - J;
4095
+ Y = j - J;
4096
4096
  do
4097
- $ += R.end;
4098
- while ($ < 0);
4099
- if (S = R.end - $, Z > S) {
4100
- if (Z -= S, j - $ > 0 && S > j - $)
4097
+ Y += R.end;
4098
+ while (Y < 0);
4099
+ if (E = R.end - Y, Z > E) {
4100
+ if (Z -= E, j - Y > 0 && E > j - Y)
4101
4101
  do
4102
- R.win[j++] = R.win[$++];
4103
- while (--S !== 0);
4102
+ R.win[j++] = R.win[Y++];
4103
+ while (--E !== 0);
4104
4104
  else
4105
- R.win.set(R.win.subarray($, $ + S), j), j += S, $ += S, S = 0;
4106
- $ = 0;
4105
+ R.win.set(R.win.subarray(Y, Y + E), j), j += E, Y += E, E = 0;
4106
+ Y = 0;
4107
4107
  }
4108
4108
  }
4109
- if (j - $ > 0 && Z > j - $)
4109
+ if (j - Y > 0 && Z > j - Y)
4110
4110
  do
4111
- R.win[j++] = R.win[$++];
4111
+ R.win[j++] = R.win[Y++];
4112
4112
  while (--Z !== 0);
4113
4113
  else
4114
- R.win.set(R.win.subarray($, $ + Z), j), j += Z, $ += Z, Z = 0;
4114
+ R.win.set(R.win.subarray(Y, Y + Z), j), j += Z, Y += Z, Z = 0;
4115
4115
  break;
4116
- } else if (!(S & 64))
4117
- b += C[ee + 2], b += M & Re[S], ee = (v + b) * 3, S = C[ee];
4116
+ } else if (!(E & 64))
4117
+ y += D[ee + 2], y += M & Re[E], ee = (b + y) * 3, E = D[ee];
4118
4118
  else
4119
- return F.msg = "invalid distance code", Z = F.avail_in - H, Z = L >> 3 < Z ? L >> 3 : Z, H += Z, Y -= Z, L -= Z << 3, R.bitb = M, R.bitk = L, F.avail_in = H, F.total_in += Y - F.next_in_index, F.next_in_index = Y, R.write = j, se;
4119
+ return F.msg = "invalid distance code", Z = F.avail_in - H, Z = O >> 3 < Z ? O >> 3 : Z, H += Z, $ -= Z, O -= Z << 3, R.bitb = M, R.bitk = O, F.avail_in = H, F.total_in += $ - F.next_in_index, F.next_in_index = $, R.write = j, oe;
4120
4120
  while (!0);
4121
4121
  break;
4122
4122
  }
4123
- if (S & 64)
4124
- return S & 32 ? (Z = F.avail_in - H, Z = L >> 3 < Z ? L >> 3 : Z, H += Z, Y -= Z, L -= Z << 3, R.bitb = M, R.bitk = L, F.avail_in = H, F.total_in += Y - F.next_in_index, F.next_in_index = Y, R.write = j, He) : (F.msg = "invalid literal/length code", Z = F.avail_in - H, Z = L >> 3 < Z ? L >> 3 : Z, H += Z, Y -= Z, L -= Z << 3, R.bitb = M, R.bitk = L, F.avail_in = H, F.total_in += Y - F.next_in_index, F.next_in_index = Y, R.write = j, se);
4125
- if (b += C[ee + 2], b += M & Re[S], ee = (v + b) * 3, (S = C[ee]) === 0) {
4126
- M >>= C[ee + 1], L -= C[ee + 1], R.win[j++] = /* (byte) */
4127
- C[ee + 2], K--;
4123
+ if (E & 64)
4124
+ return E & 32 ? (Z = F.avail_in - H, Z = O >> 3 < Z ? O >> 3 : Z, H += Z, $ -= Z, O -= Z << 3, R.bitb = M, R.bitk = O, F.avail_in = H, F.total_in += $ - F.next_in_index, F.next_in_index = $, R.write = j, He) : (F.msg = "invalid literal/length code", Z = F.avail_in - H, Z = O >> 3 < Z ? O >> 3 : Z, H += Z, $ -= Z, O -= Z << 3, R.bitb = M, R.bitk = O, F.avail_in = H, F.total_in += $ - F.next_in_index, F.next_in_index = $, R.write = j, oe);
4125
+ if (y += D[ee + 2], y += M & Re[E], ee = (b + y) * 3, (E = D[ee]) === 0) {
4126
+ M >>= D[ee + 1], O -= D[ee + 1], R.win[j++] = /* (byte) */
4127
+ D[ee + 2], G--;
4128
4128
  break;
4129
4129
  }
4130
4130
  } while (!0);
4131
- } while (K >= 258 && H >= 10);
4132
- return Z = F.avail_in - H, Z = L >> 3 < Z ? L >> 3 : Z, H += Z, Y -= Z, L -= Z << 3, R.bitb = M, R.bitk = L, F.avail_in = H, F.total_in += Y - F.next_in_index, F.next_in_index = Y, R.write = j, Q;
4131
+ } while (G >= 258 && H >= 10);
4132
+ return Z = F.avail_in - H, Z = O >> 3 < Z ? O >> 3 : Z, H += Z, $ -= Z, O -= Z << 3, R.bitb = M, R.bitk = O, F.avail_in = H, F.total_in += $ - F.next_in_index, F.next_in_index = $, R.write = j, Q;
4133
4133
  }
4134
- n.init = function(d, h, y, T, D, A) {
4134
+ n.init = function(d, h, v, A, P, S) {
4135
4135
  t = Wt, _ = /* (byte) */
4136
4136
  d, x = /* (byte) */
4137
- h, w = y, g = T, k = D, P = A, r = null;
4138
- }, n.proc = function(d, h, y) {
4139
- let T, D, A, R = 0, F = 0, b = 0, C, v, S, M;
4140
- for (b = h.next_in_index, C = h.avail_in, R = d.bitb, F = d.bitk, v = d.write, S = v < d.read ? d.read - v - 1 : d.end - v; ; )
4137
+ h, w = v, g = A, T = P, C = S, r = null;
4138
+ }, n.proc = function(d, h, v) {
4139
+ let A, P, S, R = 0, F = 0, y = 0, D, b, E, M;
4140
+ for (y = h.next_in_index, D = h.avail_in, R = d.bitb, F = d.bitk, b = d.write, E = b < d.read ? d.read - b - 1 : d.end - b; ; )
4141
4141
  switch (t) {
4142
4142
  case Wt:
4143
- if (S >= 258 && C >= 10 && (d.bitb = R, d.bitk = F, h.avail_in = C, h.total_in += b - h.next_in_index, h.next_in_index = b, d.write = v, y = m(_, x, w, g, k, P, d, h), b = h.next_in_index, C = h.avail_in, R = d.bitb, F = d.bitk, v = d.write, S = v < d.read ? d.read - v - 1 : d.end - v, y != Q)) {
4144
- t = y == He ? un : Mt;
4143
+ if (E >= 258 && D >= 10 && (d.bitb = R, d.bitk = F, h.avail_in = D, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = b, v = m(_, x, w, g, T, C, d, h), y = h.next_in_index, D = h.avail_in, R = d.bitb, F = d.bitk, b = d.write, E = b < d.read ? d.read - b - 1 : d.end - b, v != Q)) {
4144
+ t = v == He ? un : Mt;
4145
4145
  break;
4146
4146
  }
4147
4147
  a = _, r = w, s = g, t = ir;
4148
4148
  case ir:
4149
- for (T = a; F < T; ) {
4150
- if (C !== 0)
4151
- y = Q;
4149
+ for (A = a; F < A; ) {
4150
+ if (D !== 0)
4151
+ v = Q;
4152
4152
  else
4153
- return d.bitb = R, d.bitk = F, h.avail_in = C, h.total_in += b - h.next_in_index, h.next_in_index = b, d.write = v, d.inflate_flush(h, y);
4154
- C--, R |= (h.read_byte(b++) & 255) << F, F += 8;
4153
+ return d.bitb = R, d.bitk = F, h.avail_in = D, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = b, d.inflate_flush(h, v);
4154
+ D--, R |= (h.read_byte(y++) & 255) << F, F += 8;
4155
4155
  }
4156
- if (D = (s + (R & Re[T])) * 3, R >>>= r[D + 1], F -= r[D + 1], A = r[D], A === 0) {
4157
- c = r[D + 2], t = lr;
4156
+ if (P = (s + (R & Re[A])) * 3, R >>>= r[P + 1], F -= r[P + 1], S = r[P], S === 0) {
4157
+ c = r[P + 2], t = lr;
4158
4158
  break;
4159
4159
  }
4160
- if (A & 16) {
4161
- l = A & 15, e = r[D + 2], t = sr;
4160
+ if (S & 16) {
4161
+ l = S & 15, e = r[P + 2], t = sr;
4162
4162
  break;
4163
4163
  }
4164
- if (!(A & 64)) {
4165
- a = A, s = D / 3 + r[D + 2];
4164
+ if (!(S & 64)) {
4165
+ a = S, s = P / 3 + r[P + 2];
4166
4166
  break;
4167
4167
  }
4168
- if (A & 32) {
4168
+ if (S & 32) {
4169
4169
  t = un;
4170
4170
  break;
4171
4171
  }
4172
- return t = Mt, h.msg = "invalid literal/length code", y = se, d.bitb = R, d.bitk = F, h.avail_in = C, h.total_in += b - h.next_in_index, h.next_in_index = b, d.write = v, d.inflate_flush(h, y);
4172
+ return t = Mt, h.msg = "invalid literal/length code", v = oe, d.bitb = R, d.bitk = F, h.avail_in = D, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = b, d.inflate_flush(h, v);
4173
4173
  case sr:
4174
- for (T = l; F < T; ) {
4175
- if (C !== 0)
4176
- y = Q;
4174
+ for (A = l; F < A; ) {
4175
+ if (D !== 0)
4176
+ v = Q;
4177
4177
  else
4178
- return d.bitb = R, d.bitk = F, h.avail_in = C, h.total_in += b - h.next_in_index, h.next_in_index = b, d.write = v, d.inflate_flush(h, y);
4179
- C--, R |= (h.read_byte(b++) & 255) << F, F += 8;
4178
+ return d.bitb = R, d.bitk = F, h.avail_in = D, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = b, d.inflate_flush(h, v);
4179
+ D--, R |= (h.read_byte(y++) & 255) << F, F += 8;
4180
4180
  }
4181
- e += R & Re[T], R >>= T, F -= T, a = x, r = k, s = P, t = or;
4181
+ e += R & Re[A], R >>= A, F -= A, a = x, r = T, s = C, t = or;
4182
4182
  case or:
4183
- for (T = a; F < T; ) {
4184
- if (C !== 0)
4185
- y = Q;
4183
+ for (A = a; F < A; ) {
4184
+ if (D !== 0)
4185
+ v = Q;
4186
4186
  else
4187
- return d.bitb = R, d.bitk = F, h.avail_in = C, h.total_in += b - h.next_in_index, h.next_in_index = b, d.write = v, d.inflate_flush(h, y);
4188
- C--, R |= (h.read_byte(b++) & 255) << F, F += 8;
4187
+ return d.bitb = R, d.bitk = F, h.avail_in = D, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = b, d.inflate_flush(h, v);
4188
+ D--, R |= (h.read_byte(y++) & 255) << F, F += 8;
4189
4189
  }
4190
- if (D = (s + (R & Re[T])) * 3, R >>= r[D + 1], F -= r[D + 1], A = r[D], A & 16) {
4191
- l = A & 15, f = r[D + 2], t = ar;
4190
+ if (P = (s + (R & Re[A])) * 3, R >>= r[P + 1], F -= r[P + 1], S = r[P], S & 16) {
4191
+ l = S & 15, f = r[P + 2], t = ar;
4192
4192
  break;
4193
4193
  }
4194
- if (!(A & 64)) {
4195
- a = A, s = D / 3 + r[D + 2];
4194
+ if (!(S & 64)) {
4195
+ a = S, s = P / 3 + r[P + 2];
4196
4196
  break;
4197
4197
  }
4198
- return t = Mt, h.msg = "invalid distance code", y = se, d.bitb = R, d.bitk = F, h.avail_in = C, h.total_in += b - h.next_in_index, h.next_in_index = b, d.write = v, d.inflate_flush(h, y);
4198
+ return t = Mt, h.msg = "invalid distance code", v = oe, d.bitb = R, d.bitk = F, h.avail_in = D, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = b, d.inflate_flush(h, v);
4199
4199
  case ar:
4200
- for (T = l; F < T; ) {
4201
- if (C !== 0)
4202
- y = Q;
4200
+ for (A = l; F < A; ) {
4201
+ if (D !== 0)
4202
+ v = Q;
4203
4203
  else
4204
- return d.bitb = R, d.bitk = F, h.avail_in = C, h.total_in += b - h.next_in_index, h.next_in_index = b, d.write = v, d.inflate_flush(h, y);
4205
- C--, R |= (h.read_byte(b++) & 255) << F, F += 8;
4204
+ return d.bitb = R, d.bitk = F, h.avail_in = D, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = b, d.inflate_flush(h, v);
4205
+ D--, R |= (h.read_byte(y++) & 255) << F, F += 8;
4206
4206
  }
4207
- f += R & Re[T], R >>= T, F -= T, t = cr;
4207
+ f += R & Re[A], R >>= A, F -= A, t = cr;
4208
4208
  case cr:
4209
- for (M = v - f; M < 0; )
4209
+ for (M = b - f; M < 0; )
4210
4210
  M += d.end;
4211
4211
  for (; e !== 0; ) {
4212
- if (S === 0 && (v == d.end && d.read !== 0 && (v = 0, S = v < d.read ? d.read - v - 1 : d.end - v), S === 0 && (d.write = v, y = d.inflate_flush(h, y), v = d.write, S = v < d.read ? d.read - v - 1 : d.end - v, v == d.end && d.read !== 0 && (v = 0, S = v < d.read ? d.read - v - 1 : d.end - v), S === 0)))
4213
- return d.bitb = R, d.bitk = F, h.avail_in = C, h.total_in += b - h.next_in_index, h.next_in_index = b, d.write = v, d.inflate_flush(h, y);
4214
- d.win[v++] = d.win[M++], S--, M == d.end && (M = 0), e--;
4212
+ if (E === 0 && (b == d.end && d.read !== 0 && (b = 0, E = b < d.read ? d.read - b - 1 : d.end - b), E === 0 && (d.write = b, v = d.inflate_flush(h, v), b = d.write, E = b < d.read ? d.read - b - 1 : d.end - b, b == d.end && d.read !== 0 && (b = 0, E = b < d.read ? d.read - b - 1 : d.end - b), E === 0)))
4213
+ return d.bitb = R, d.bitk = F, h.avail_in = D, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = b, d.inflate_flush(h, v);
4214
+ d.win[b++] = d.win[M++], E--, M == d.end && (M = 0), e--;
4215
4215
  }
4216
4216
  t = Wt;
4217
4217
  break;
4218
4218
  case lr:
4219
- if (S === 0 && (v == d.end && d.read !== 0 && (v = 0, S = v < d.read ? d.read - v - 1 : d.end - v), S === 0 && (d.write = v, y = d.inflate_flush(h, y), v = d.write, S = v < d.read ? d.read - v - 1 : d.end - v, v == d.end && d.read !== 0 && (v = 0, S = v < d.read ? d.read - v - 1 : d.end - v), S === 0)))
4220
- return d.bitb = R, d.bitk = F, h.avail_in = C, h.total_in += b - h.next_in_index, h.next_in_index = b, d.write = v, d.inflate_flush(h, y);
4221
- y = Q, d.win[v++] = /* (byte) */
4222
- c, S--, t = Wt;
4219
+ if (E === 0 && (b == d.end && d.read !== 0 && (b = 0, E = b < d.read ? d.read - b - 1 : d.end - b), E === 0 && (d.write = b, v = d.inflate_flush(h, v), b = d.write, E = b < d.read ? d.read - b - 1 : d.end - b, b == d.end && d.read !== 0 && (b = 0, E = b < d.read ? d.read - b - 1 : d.end - b), E === 0)))
4220
+ return d.bitb = R, d.bitk = F, h.avail_in = D, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = b, d.inflate_flush(h, v);
4221
+ v = Q, d.win[b++] = /* (byte) */
4222
+ c, E--, t = Wt;
4223
4223
  break;
4224
4224
  case un:
4225
- if (F > 7 && (F -= 8, C++, b--), d.write = v, y = d.inflate_flush(h, y), v = d.write, S = v < d.read ? d.read - v - 1 : d.end - v, d.read != d.write)
4226
- return d.bitb = R, d.bitk = F, h.avail_in = C, h.total_in += b - h.next_in_index, h.next_in_index = b, d.write = v, d.inflate_flush(h, y);
4225
+ if (F > 7 && (F -= 8, D++, y--), d.write = b, v = d.inflate_flush(h, v), b = d.write, E = b < d.read ? d.read - b - 1 : d.end - b, d.read != d.write)
4226
+ return d.bitb = R, d.bitk = F, h.avail_in = D, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = b, d.inflate_flush(h, v);
4227
4227
  t = fr;
4228
4228
  case fr:
4229
- return y = He, d.bitb = R, d.bitk = F, h.avail_in = C, h.total_in += b - h.next_in_index, h.next_in_index = b, d.write = v, d.inflate_flush(h, y);
4229
+ return v = He, d.bitb = R, d.bitk = F, h.avail_in = D, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = b, d.inflate_flush(h, v);
4230
4230
  case Mt:
4231
- return y = se, d.bitb = R, d.bitk = F, h.avail_in = C, h.total_in += b - h.next_in_index, h.next_in_index = b, d.write = v, d.inflate_flush(h, y);
4231
+ return v = oe, d.bitb = R, d.bitk = F, h.avail_in = D, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = b, d.inflate_flush(h, v);
4232
4232
  default:
4233
- return y = Ae, d.bitb = R, d.bitk = F, h.avail_in = C, h.total_in += b - h.next_in_index, h.next_in_index = b, d.write = v, d.inflate_flush(h, y);
4233
+ return v = Ae, d.bitb = R, d.bitk = F, h.avail_in = D, h.total_in += y - h.next_in_index, h.next_in_index = y, d.write = b, d.inflate_flush(h, v);
4234
4234
  }
4235
4235
  }, n.free = function() {
4236
4236
  };
@@ -4262,132 +4262,132 @@ function bo(n, t) {
4262
4262
  let r = ft, s = 0, a = 0, c = 0, l;
4263
4263
  const f = [0], _ = [0], x = new yo();
4264
4264
  let w = 0, g = new Int32Array(pi * 3);
4265
- const k = 0, P = new An();
4265
+ const T = 0, C = new An();
4266
4266
  e.bitk = 0, e.bitb = 0, e.win = new Uint8Array(t), e.end = t, e.read = 0, e.write = 0, e.reset = function(m, d) {
4267
- d && (d[0] = k), r == Nt && x.free(m), r = ft, e.bitk = 0, e.bitb = 0, e.read = e.write = 0;
4267
+ d && (d[0] = T), r == Nt && x.free(m), r = ft, e.bitk = 0, e.bitb = 0, e.read = e.write = 0;
4268
4268
  }, e.reset(n, null), e.inflate_flush = function(m, d) {
4269
- let h, y, T;
4270
- return y = m.next_out_index, T = e.read, h = /* (int) */
4271
- (T <= e.write ? e.write : e.end) - T, h > m.avail_out && (h = m.avail_out), h !== 0 && d == $e && (d = Q), m.avail_out -= h, m.total_out += h, m.next_out.set(e.win.subarray(T, T + h), y), y += h, T += h, T == e.end && (T = 0, e.write == e.end && (e.write = 0), h = e.write - T, h > m.avail_out && (h = m.avail_out), h !== 0 && d == $e && (d = Q), m.avail_out -= h, m.total_out += h, m.next_out.set(e.win.subarray(T, T + h), y), y += h, T += h), m.next_out_index = y, e.read = T, d;
4269
+ let h, v, A;
4270
+ return v = m.next_out_index, A = e.read, h = /* (int) */
4271
+ (A <= e.write ? e.write : e.end) - A, h > m.avail_out && (h = m.avail_out), h !== 0 && d == $e && (d = Q), m.avail_out -= h, m.total_out += h, m.next_out.set(e.win.subarray(A, A + h), v), v += h, A += h, A == e.end && (A = 0, e.write == e.end && (e.write = 0), h = e.write - A, h > m.avail_out && (h = m.avail_out), h !== 0 && d == $e && (d = Q), m.avail_out -= h, m.total_out += h, m.next_out.set(e.win.subarray(A, A + h), v), v += h, A += h), m.next_out_index = v, e.read = A, d;
4272
4272
  }, e.proc = function(m, d) {
4273
- let h, y, T, D, A, R, F, b;
4274
- for (D = m.next_in_index, A = m.avail_in, y = e.bitb, T = e.bitk, R = e.write, F = /* (int) */
4273
+ let h, v, A, P, S, R, F, y;
4274
+ for (P = m.next_in_index, S = m.avail_in, v = e.bitb, A = e.bitk, R = e.write, F = /* (int) */
4275
4275
  R < e.read ? e.read - R - 1 : e.end - R; ; ) {
4276
- let C, v, S, M, L, Y, H, j;
4276
+ let D, b, E, M, O, $, H, j;
4277
4277
  switch (r) {
4278
4278
  case ft:
4279
- for (; T < 3; ) {
4280
- if (A !== 0)
4279
+ for (; A < 3; ) {
4280
+ if (S !== 0)
4281
4281
  d = Q;
4282
4282
  else
4283
- return e.bitb = y, e.bitk = T, m.avail_in = A, m.total_in += D - m.next_in_index, m.next_in_index = D, e.write = R, e.inflate_flush(m, d);
4284
- A--, y |= (m.read_byte(D++) & 255) << T, T += 8;
4283
+ return e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4284
+ S--, v |= (m.read_byte(P++) & 255) << A, A += 8;
4285
4285
  }
4286
4286
  switch (h = /* (int) */
4287
- y & 7, w = h & 1, h >>> 1) {
4287
+ v & 7, w = h & 1, h >>> 1) {
4288
4288
  case 0:
4289
- y >>>= 3, T -= 3, h = T & 7, y >>>= h, T -= h, r = dn;
4289
+ v >>>= 3, A -= 3, h = A & 7, v >>>= h, A -= h, r = dn;
4290
4290
  break;
4291
4291
  case 1:
4292
- C = [], v = [], S = [[]], M = [[]], An.inflate_trees_fixed(C, v, S, M), x.init(C[0], v[0], S[0], 0, M[0], 0), y >>>= 3, T -= 3, r = Nt;
4292
+ D = [], b = [], E = [[]], M = [[]], An.inflate_trees_fixed(D, b, E, M), x.init(D[0], b[0], E[0], 0, M[0], 0), v >>>= 3, A -= 3, r = Nt;
4293
4293
  break;
4294
4294
  case 2:
4295
- y >>>= 3, T -= 3, r = pr;
4295
+ v >>>= 3, A -= 3, r = pr;
4296
4296
  break;
4297
4297
  case 3:
4298
- return y >>>= 3, T -= 3, r = nt, m.msg = "invalid block type", d = se, e.bitb = y, e.bitk = T, m.avail_in = A, m.total_in += D - m.next_in_index, m.next_in_index = D, e.write = R, e.inflate_flush(m, d);
4298
+ return v >>>= 3, A -= 3, r = nt, m.msg = "invalid block type", d = oe, e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4299
4299
  }
4300
4300
  break;
4301
4301
  case dn:
4302
- for (; T < 32; ) {
4303
- if (A !== 0)
4302
+ for (; A < 32; ) {
4303
+ if (S !== 0)
4304
4304
  d = Q;
4305
4305
  else
4306
- return e.bitb = y, e.bitk = T, m.avail_in = A, m.total_in += D - m.next_in_index, m.next_in_index = D, e.write = R, e.inflate_flush(m, d);
4307
- A--, y |= (m.read_byte(D++) & 255) << T, T += 8;
4306
+ return e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4307
+ S--, v |= (m.read_byte(P++) & 255) << A, A += 8;
4308
4308
  }
4309
- if ((~y >>> 16 & 65535) != (y & 65535))
4310
- return r = nt, m.msg = "invalid stored block lengths", d = se, e.bitb = y, e.bitk = T, m.avail_in = A, m.total_in += D - m.next_in_index, m.next_in_index = D, e.write = R, e.inflate_flush(m, d);
4311
- s = y & 65535, y = T = 0, r = s !== 0 ? dr : w !== 0 ? qt : ft;
4309
+ if ((~v >>> 16 & 65535) != (v & 65535))
4310
+ return r = nt, m.msg = "invalid stored block lengths", d = oe, e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4311
+ s = v & 65535, v = A = 0, r = s !== 0 ? dr : w !== 0 ? qt : ft;
4312
4312
  break;
4313
4313
  case dr:
4314
- if (A === 0 || F === 0 && (R == e.end && e.read !== 0 && (R = 0, F = /* (int) */
4314
+ if (S === 0 || F === 0 && (R == e.end && e.read !== 0 && (R = 0, F = /* (int) */
4315
4315
  R < e.read ? e.read - R - 1 : e.end - R), F === 0 && (e.write = R, d = e.inflate_flush(m, d), R = e.write, F = /* (int) */
4316
4316
  R < e.read ? e.read - R - 1 : e.end - R, R == e.end && e.read !== 0 && (R = 0, F = /* (int) */
4317
4317
  R < e.read ? e.read - R - 1 : e.end - R), F === 0)))
4318
- return e.bitb = y, e.bitk = T, m.avail_in = A, m.total_in += D - m.next_in_index, m.next_in_index = D, e.write = R, e.inflate_flush(m, d);
4319
- if (d = Q, h = s, h > A && (h = A), h > F && (h = F), e.win.set(m.read_buf(D, h), R), D += h, A -= h, R += h, F -= h, (s -= h) !== 0)
4318
+ return e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4319
+ if (d = Q, h = s, h > S && (h = S), h > F && (h = F), e.win.set(m.read_buf(P, h), R), P += h, S -= h, R += h, F -= h, (s -= h) !== 0)
4320
4320
  break;
4321
4321
  r = w !== 0 ? qt : ft;
4322
4322
  break;
4323
4323
  case pr:
4324
- for (; T < 14; ) {
4325
- if (A !== 0)
4324
+ for (; A < 14; ) {
4325
+ if (S !== 0)
4326
4326
  d = Q;
4327
4327
  else
4328
- return e.bitb = y, e.bitk = T, m.avail_in = A, m.total_in += D - m.next_in_index, m.next_in_index = D, e.write = R, e.inflate_flush(m, d);
4329
- A--, y |= (m.read_byte(D++) & 255) << T, T += 8;
4328
+ return e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4329
+ S--, v |= (m.read_byte(P++) & 255) << A, A += 8;
4330
4330
  }
4331
- if (a = h = y & 16383, (h & 31) > 29 || (h >> 5 & 31) > 29)
4332
- return r = nt, m.msg = "too many length or distance symbols", d = se, e.bitb = y, e.bitk = T, m.avail_in = A, m.total_in += D - m.next_in_index, m.next_in_index = D, e.write = R, e.inflate_flush(m, d);
4331
+ if (a = h = v & 16383, (h & 31) > 29 || (h >> 5 & 31) > 29)
4332
+ return r = nt, m.msg = "too many length or distance symbols", d = oe, e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4333
4333
  if (h = 258 + (h & 31) + (h >> 5 & 31), !l || l.length < h)
4334
4334
  l = [];
4335
4335
  else
4336
- for (b = 0; b < h; b++)
4337
- l[b] = 0;
4338
- y >>>= 14, T -= 14, c = 0, r = mr;
4336
+ for (y = 0; y < h; y++)
4337
+ l[y] = 0;
4338
+ v >>>= 14, A -= 14, c = 0, r = mr;
4339
4339
  case mr:
4340
4340
  for (; c < 4 + (a >>> 10); ) {
4341
- for (; T < 3; ) {
4342
- if (A !== 0)
4341
+ for (; A < 3; ) {
4342
+ if (S !== 0)
4343
4343
  d = Q;
4344
4344
  else
4345
- return e.bitb = y, e.bitk = T, m.avail_in = A, m.total_in += D - m.next_in_index, m.next_in_index = D, e.write = R, e.inflate_flush(m, d);
4346
- A--, y |= (m.read_byte(D++) & 255) << T, T += 8;
4345
+ return e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4346
+ S--, v |= (m.read_byte(P++) & 255) << A, A += 8;
4347
4347
  }
4348
- l[ur[c++]] = y & 7, y >>>= 3, T -= 3;
4348
+ l[ur[c++]] = v & 7, v >>>= 3, A -= 3;
4349
4349
  }
4350
4350
  for (; c < 19; )
4351
4351
  l[ur[c++]] = 0;
4352
- if (f[0] = 7, h = P.inflate_trees_bits(l, f, _, g, m), h != Q)
4353
- return d = h, d == se && (l = null, r = nt), e.bitb = y, e.bitk = T, m.avail_in = A, m.total_in += D - m.next_in_index, m.next_in_index = D, e.write = R, e.inflate_flush(m, d);
4352
+ if (f[0] = 7, h = C.inflate_trees_bits(l, f, _, g, m), h != Q)
4353
+ return d = h, d == oe && (l = null, r = nt), e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4354
4354
  c = 0, r = hr;
4355
4355
  case hr:
4356
4356
  for (; h = a, !(c >= 258 + (h & 31) + (h >> 5 & 31)); ) {
4357
- let K, V;
4358
- for (h = f[0]; T < h; ) {
4359
- if (A !== 0)
4357
+ let G, K;
4358
+ for (h = f[0]; A < h; ) {
4359
+ if (S !== 0)
4360
4360
  d = Q;
4361
4361
  else
4362
- return e.bitb = y, e.bitk = T, m.avail_in = A, m.total_in += D - m.next_in_index, m.next_in_index = D, e.write = R, e.inflate_flush(m, d);
4363
- A--, y |= (m.read_byte(D++) & 255) << T, T += 8;
4362
+ return e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4363
+ S--, v |= (m.read_byte(P++) & 255) << A, A += 8;
4364
4364
  }
4365
- if (h = g[(_[0] + (y & Re[h])) * 3 + 1], V = g[(_[0] + (y & Re[h])) * 3 + 2], V < 16)
4366
- y >>>= h, T -= h, l[c++] = V;
4365
+ if (h = g[(_[0] + (v & Re[h])) * 3 + 1], K = g[(_[0] + (v & Re[h])) * 3 + 2], K < 16)
4366
+ v >>>= h, A -= h, l[c++] = K;
4367
4367
  else {
4368
- for (b = V == 18 ? 7 : V - 14, K = V == 18 ? 11 : 3; T < h + b; ) {
4369
- if (A !== 0)
4368
+ for (y = K == 18 ? 7 : K - 14, G = K == 18 ? 11 : 3; A < h + y; ) {
4369
+ if (S !== 0)
4370
4370
  d = Q;
4371
4371
  else
4372
- return e.bitb = y, e.bitk = T, m.avail_in = A, m.total_in += D - m.next_in_index, m.next_in_index = D, e.write = R, e.inflate_flush(m, d);
4373
- A--, y |= (m.read_byte(D++) & 255) << T, T += 8;
4372
+ return e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4373
+ S--, v |= (m.read_byte(P++) & 255) << A, A += 8;
4374
4374
  }
4375
- if (y >>>= h, T -= h, K += y & Re[b], y >>>= b, T -= b, b = c, h = a, b + K > 258 + (h & 31) + (h >> 5 & 31) || V == 16 && b < 1)
4376
- return l = null, r = nt, m.msg = "invalid bit length repeat", d = se, e.bitb = y, e.bitk = T, m.avail_in = A, m.total_in += D - m.next_in_index, m.next_in_index = D, e.write = R, e.inflate_flush(m, d);
4377
- V = V == 16 ? l[b - 1] : 0;
4375
+ if (v >>>= h, A -= h, G += v & Re[y], v >>>= y, A -= y, y = c, h = a, y + G > 258 + (h & 31) + (h >> 5 & 31) || K == 16 && y < 1)
4376
+ return l = null, r = nt, m.msg = "invalid bit length repeat", d = oe, e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4377
+ K = K == 16 ? l[y - 1] : 0;
4378
4378
  do
4379
- l[b++] = V;
4380
- while (--K !== 0);
4381
- c = b;
4379
+ l[y++] = K;
4380
+ while (--G !== 0);
4381
+ c = y;
4382
4382
  }
4383
4383
  }
4384
- if (_[0] = -1, L = [], Y = [], H = [], j = [], L[0] = 9, Y[0] = 6, h = a, h = P.inflate_trees_dynamic(257 + (h & 31), 1 + (h >> 5 & 31), l, L, Y, H, j, g, m), h != Q)
4385
- return h == se && (l = null, r = nt), d = h, e.bitb = y, e.bitk = T, m.avail_in = A, m.total_in += D - m.next_in_index, m.next_in_index = D, e.write = R, e.inflate_flush(m, d);
4386
- x.init(L[0], Y[0], g, H[0], g, j[0]), r = Nt;
4384
+ if (_[0] = -1, O = [], $ = [], H = [], j = [], O[0] = 9, $[0] = 6, h = a, h = C.inflate_trees_dynamic(257 + (h & 31), 1 + (h >> 5 & 31), l, O, $, H, j, g, m), h != Q)
4385
+ return h == oe && (l = null, r = nt), d = h, e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4386
+ x.init(O[0], $[0], g, H[0], g, j[0]), r = Nt;
4387
4387
  case Nt:
4388
- if (e.bitb = y, e.bitk = T, m.avail_in = A, m.total_in += D - m.next_in_index, m.next_in_index = D, e.write = R, (d = x.proc(e, m, d)) != He)
4388
+ if (e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, (d = x.proc(e, m, d)) != He)
4389
4389
  return e.inflate_flush(m, d);
4390
- if (d = Q, x.free(m), D = m.next_in_index, A = m.avail_in, y = e.bitb, T = e.bitk, R = e.write, F = /* (int) */
4390
+ if (d = Q, x.free(m), P = m.next_in_index, S = m.avail_in, v = e.bitb, A = e.bitk, R = e.write, F = /* (int) */
4391
4391
  R < e.read ? e.read - R - 1 : e.end - R, w === 0) {
4392
4392
  r = ft;
4393
4393
  break;
@@ -4396,14 +4396,14 @@ function bo(n, t) {
4396
4396
  case qt:
4397
4397
  if (e.write = R, d = e.inflate_flush(m, d), R = e.write, F = /* (int) */
4398
4398
  R < e.read ? e.read - R - 1 : e.end - R, e.read != e.write)
4399
- return e.bitb = y, e.bitk = T, m.avail_in = A, m.total_in += D - m.next_in_index, m.next_in_index = D, e.write = R, e.inflate_flush(m, d);
4399
+ return e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4400
4400
  r = xr;
4401
4401
  case xr:
4402
- return d = He, e.bitb = y, e.bitk = T, m.avail_in = A, m.total_in += D - m.next_in_index, m.next_in_index = D, e.write = R, e.inflate_flush(m, d);
4402
+ return d = He, e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4403
4403
  case nt:
4404
- return d = se, e.bitb = y, e.bitk = T, m.avail_in = A, m.total_in += D - m.next_in_index, m.next_in_index = D, e.write = R, e.inflate_flush(m, d);
4404
+ return d = oe, e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4405
4405
  default:
4406
- return d = Ae, e.bitb = y, e.bitk = T, m.avail_in = A, m.total_in += D - m.next_in_index, m.next_in_index = D, e.write = R, e.inflate_flush(m, d);
4406
+ return d = Ae, e.bitb = v, e.bitk = A, m.avail_in = S, m.total_in += P - m.next_in_index, m.next_in_index = P, e.write = R, e.inflate_flush(m, d);
4407
4407
  }
4408
4408
  }
4409
4409
  }, e.free = function(m) {
@@ -4414,7 +4414,7 @@ function bo(n, t) {
4414
4414
  return r == dn ? 1 : 0;
4415
4415
  };
4416
4416
  }
4417
- const vo = 32, Eo = 8, ko = 0, wr = 1, gr = 2, _r = 3, yr = 4, br = 5, pn = 6, vt = 7, vr = 12, Ve = 13, So = [0, 0, 255, 255];
4417
+ const vo = 32, ko = 8, Eo = 0, wr = 1, gr = 2, _r = 3, yr = 4, br = 5, pn = 6, vt = 7, vr = 12, Ve = 13, So = [0, 0, 255, 255];
4418
4418
  function Ao() {
4419
4419
  const n = this;
4420
4420
  n.mode = 0, n.method = 0, n.was = [0], n.need = 0, n.marker = 0, n.wbits = 0;
@@ -4432,10 +4432,10 @@ function Ao() {
4432
4432
  const c = e.istate;
4433
4433
  for (r = r == fo ? $e : Q, s = $e; ; )
4434
4434
  switch (c.mode) {
4435
- case ko:
4435
+ case Eo:
4436
4436
  if (e.avail_in === 0)
4437
4437
  return s;
4438
- if (s = r, e.avail_in--, e.total_in++, ((c.method = e.read_byte(e.next_in_index++)) & 15) != Eo) {
4438
+ if (s = r, e.avail_in--, e.total_in++, ((c.method = e.read_byte(e.next_in_index++)) & 15) != ko) {
4439
4439
  c.mode = Ve, e.msg = "unknown compression method", c.marker = 5;
4440
4440
  break;
4441
4441
  }
@@ -4473,7 +4473,7 @@ function Ao() {
4473
4473
  case pn:
4474
4474
  return c.mode = Ve, e.msg = "need dictionary", c.marker = 0, Ae;
4475
4475
  case vt:
4476
- if (s = c.blocks.proc(e, s), s == se) {
4476
+ if (s = c.blocks.proc(e, s), s == oe) {
4477
4477
  c.mode = Ve, c.marker = 0;
4478
4478
  break;
4479
4479
  }
@@ -4483,7 +4483,7 @@ function Ao() {
4483
4483
  case vr:
4484
4484
  return e.avail_in = 0, He;
4485
4485
  case Ve:
4486
- return se;
4486
+ return oe;
4487
4487
  default:
4488
4488
  return Ae;
4489
4489
  }
@@ -4502,7 +4502,7 @@ function Ao() {
4502
4502
  return $e;
4503
4503
  for (s = e.next_in_index, a = f.marker; r !== 0 && a < 4; )
4504
4504
  e.read_byte(s) == So[a] ? a++ : e.read_byte(s) !== 0 ? a = 0 : a = 4 - a, s++, r--;
4505
- return e.total_in += s - e.next_in_index, e.next_in_index = s, e.avail_in = r, f.marker = a, a != 4 ? se : (c = e.total_in, l = e.total_out, t(e), e.total_in = c, e.total_out = l, f.mode = vt, Q);
4505
+ return e.total_in += s - e.next_in_index, e.next_in_index = s, e.avail_in = r, f.marker = a, a != 4 ? oe : (c = e.total_in, l = e.total_out, t(e), e.total_in = c, e.total_out = l, f.mode = vt, Q);
4506
4506
  }, n.inflateSyncPoint = function(e) {
4507
4507
  return !e || !e.istate || !e.istate.blocks ? Ae : e.istate.blocks.sync_point();
4508
4508
  };
@@ -4545,7 +4545,7 @@ function To(n) {
4545
4545
  let c = !1;
4546
4546
  e.inflateInit(), e.next_out = a, t.append = function(l, f) {
4547
4547
  const _ = [];
4548
- let x, w, g = 0, k = 0, P = 0;
4548
+ let x, w, g = 0, T = 0, C = 0;
4549
4549
  if (l.length !== 0) {
4550
4550
  e.next_in_index = 0, e.next_in = l, e.avail_in = l.length;
4551
4551
  do {
@@ -4556,17 +4556,17 @@ function To(n) {
4556
4556
  throw new Error("inflating: " + e.msg);
4557
4557
  if ((c || x === He) && e.avail_in === l.length)
4558
4558
  throw new Error("inflating: bad input");
4559
- e.next_out_index && (e.next_out_index === r ? _.push(new Uint8Array(a)) : _.push(a.subarray(0, e.next_out_index))), P += e.next_out_index, f && e.next_in_index > 0 && e.next_in_index != g && (f(e.next_in_index), g = e.next_in_index);
4559
+ e.next_out_index && (e.next_out_index === r ? _.push(new Uint8Array(a)) : _.push(a.subarray(0, e.next_out_index))), C += e.next_out_index, f && e.next_in_index > 0 && e.next_in_index != g && (f(e.next_in_index), g = e.next_in_index);
4560
4560
  } while (e.avail_in > 0 || e.avail_out === 0);
4561
- return _.length > 1 ? (w = new Uint8Array(P), _.forEach(function(m) {
4562
- w.set(m, k), k += m.length;
4561
+ return _.length > 1 ? (w = new Uint8Array(C), _.forEach(function(m) {
4562
+ w.set(m, T), T += m.length;
4563
4563
  })) : w = _[0] ? new Uint8Array(_[0]) : new Uint8Array(), w;
4564
4564
  }
4565
4565
  }, t.flush = function() {
4566
4566
  e.inflateEnd();
4567
4567
  };
4568
4568
  }
4569
- const st = 4294967295, Xe = 65535, Ro = 8, Fo = 0, Co = 99, Io = 67324752, Po = 134695760, Er = 33639248, Do = 101010256, kr = 101075792, Lo = 117853008, ut = 22, mn = 20, hn = 56, Uo = 1, Oo = 39169, Bo = 10, Wo = 1, Mo = 21589, No = 28789, qo = 25461, jo = 6534, Sr = 1, Ho = 6, Ar = 8, Tr = 2048, Rr = 16, Fr = 16384, Cr = 73, Ir = "/", ke = void 0, Qe = "undefined", Ft = "function";
4569
+ const st = 4294967295, Xe = 65535, Ro = 8, Fo = 0, Co = 99, Io = 67324752, Po = 134695760, kr = 33639248, Do = 101010256, Er = 101075792, Lo = 117853008, ut = 22, mn = 20, hn = 56, Uo = 1, Oo = 39169, Bo = 10, Wo = 1, Mo = 21589, No = 28789, qo = 25461, jo = 6534, Sr = 1, Ho = 6, Ar = 8, Tr = 2048, Rr = 16, Fr = 16384, Cr = 73, Ir = "/", Ee = void 0, Qe = "undefined", Ft = "function";
4570
4570
  class Pr {
4571
4571
  constructor(t) {
4572
4572
  return class extends TransformStream {
@@ -4597,7 +4597,7 @@ const Yo = {
4597
4597
  terminateWorkerTimeout: 5e3,
4598
4598
  useWebWorkers: !0,
4599
4599
  useCompressionStream: !0,
4600
- workerScripts: ke,
4600
+ workerScripts: Ee,
4601
4601
  CompressionStreamNative: typeof CompressionStream != Qe && CompressionStream,
4602
4602
  DecompressionStreamNative: typeof DecompressionStream != Qe && DecompressionStream
4603
4603
  }, ze = Object.assign({}, Yo);
@@ -4621,22 +4621,22 @@ function Wn(n) {
4621
4621
  DecompressionStream: x,
4622
4622
  workerScripts: w
4623
4623
  } = n;
4624
- if (Ge("baseURL", t), Ge("chunkSize", e), Ge("maxWorkers", r), Ge("terminateWorkerTimeout", s), Ge("useCompressionStream", a), Ge("useWebWorkers", c), l && (ze.CompressionStream = new Pr(l)), f && (ze.DecompressionStream = new Pr(f)), Ge("CompressionStream", _), Ge("DecompressionStream", x), w !== ke) {
4625
- const { deflate: g, inflate: k } = w;
4626
- if ((g || k) && (ze.workerScripts || (ze.workerScripts = {})), g) {
4624
+ if (Ge("baseURL", t), Ge("chunkSize", e), Ge("maxWorkers", r), Ge("terminateWorkerTimeout", s), Ge("useCompressionStream", a), Ge("useWebWorkers", c), l && (ze.CompressionStream = new Pr(l)), f && (ze.DecompressionStream = new Pr(f)), Ge("CompressionStream", _), Ge("DecompressionStream", x), w !== Ee) {
4625
+ const { deflate: g, inflate: T } = w;
4626
+ if ((g || T) && (ze.workerScripts || (ze.workerScripts = {})), g) {
4627
4627
  if (!Array.isArray(g))
4628
4628
  throw new Error("workerScripts.deflate must be an array");
4629
4629
  ze.workerScripts.deflate = g;
4630
4630
  }
4631
- if (k) {
4632
- if (!Array.isArray(k))
4631
+ if (T) {
4632
+ if (!Array.isArray(T))
4633
4633
  throw new Error("workerScripts.inflate must be an array");
4634
- ze.workerScripts.inflate = k;
4634
+ ze.workerScripts.inflate = T;
4635
4635
  }
4636
4636
  }
4637
4637
  }
4638
4638
  function Ge(n, t) {
4639
- t !== ke && (ze[n] = t);
4639
+ t !== Ee && (ze[n] = t);
4640
4640
  }
4641
4641
  const xn = {
4642
4642
  application: {
@@ -6278,7 +6278,7 @@ function Go(n) {
6278
6278
  } else
6279
6279
  return new TextEncoder().encode(n);
6280
6280
  }
6281
- const Ee = {
6281
+ const ke = {
6282
6282
  /**
6283
6283
  * Concatenate two bit arrays.
6284
6284
  * @param {bitArray} a1 The first array.
@@ -6288,8 +6288,8 @@ const Ee = {
6288
6288
  concat(n, t) {
6289
6289
  if (n.length === 0 || t.length === 0)
6290
6290
  return n.concat(t);
6291
- const e = n[n.length - 1], r = Ee.getPartial(e);
6292
- return r === 32 ? n.concat(t) : Ee._shiftRight(t, r, e | 0, n.slice(0, n.length - 1));
6291
+ const e = n[n.length - 1], r = ke.getPartial(e);
6292
+ return r === 32 ? n.concat(t) : ke._shiftRight(t, r, e | 0, n.slice(0, n.length - 1));
6293
6293
  },
6294
6294
  /**
6295
6295
  * Find the length of an array of bits.
@@ -6301,7 +6301,7 @@ const Ee = {
6301
6301
  if (t === 0)
6302
6302
  return 0;
6303
6303
  const e = n[t - 1];
6304
- return (t - 1) * 32 + Ee.getPartial(e);
6304
+ return (t - 1) * 32 + ke.getPartial(e);
6305
6305
  },
6306
6306
  /**
6307
6307
  * Truncate an array.
@@ -6314,7 +6314,7 @@ const Ee = {
6314
6314
  return n;
6315
6315
  n = n.slice(0, Math.ceil(t / 32));
6316
6316
  const e = n.length;
6317
- return t = t & 31, e > 0 && t && (n[e - 1] = Ee.partial(t, n[e - 1] & 2147483648 >> t - 1, 1)), n;
6317
+ return t = t & 31, e > 0 && t && (n[e - 1] = ke.partial(t, n[e - 1] & 2147483648 >> t - 1, 1)), n;
6318
6318
  },
6319
6319
  /**
6320
6320
  * Make a partial word for a bit array.
@@ -6348,14 +6348,14 @@ const Ee = {
6348
6348
  return r.concat(n);
6349
6349
  for (let c = 0; c < n.length; c++)
6350
6350
  r.push(e | n[c] >>> t), e = n[c] << 32 - t;
6351
- const s = n.length ? n[n.length - 1] : 0, a = Ee.getPartial(s);
6352
- return r.push(Ee.partial(t + a & 31, t + a > 32 ? e : r.pop(), 1)), r;
6351
+ const s = n.length ? n[n.length - 1] : 0, a = ke.getPartial(s);
6352
+ return r.push(ke.partial(t + a & 31, t + a > 32 ? e : r.pop(), 1)), r;
6353
6353
  }
6354
6354
  }, zt = {
6355
6355
  bytes: {
6356
6356
  /** Convert from a bitArray to an array of bytes. */
6357
6357
  fromBits(n) {
6358
- const e = Ee.bitLength(n) / 8, r = new Uint8Array(e);
6358
+ const e = ke.bitLength(n) / 8, r = new Uint8Array(e);
6359
6359
  let s;
6360
6360
  for (let a = 0; a < e; a++)
6361
6361
  a & 3 || (s = n[a / 4]), r[a] = s >>> 24, s <<= 8;
@@ -6367,7 +6367,7 @@ const Ee = {
6367
6367
  let e, r = 0;
6368
6368
  for (e = 0; e < n.length; e++)
6369
6369
  r = r << 8 | n[e], (e & 3) === 3 && (t.push(r), r = 0);
6370
- return e & 3 && t.push(Ee.partial(8 * (e & 3), r)), t;
6370
+ return e & 3 && t.push(ke.partial(8 * (e & 3), r)), t;
6371
6371
  }
6372
6372
  }
6373
6373
  }, gi = {};
@@ -6392,7 +6392,7 @@ gi.sha1 = class {
6392
6392
  update(n) {
6393
6393
  const t = this;
6394
6394
  typeof n == "string" && (n = zt.utf8String.toBits(n));
6395
- const e = t._buffer = Ee.concat(t._buffer, n), r = t._length, s = t._length = r + Ee.bitLength(n);
6395
+ const e = t._buffer = ke.concat(t._buffer, n), r = t._length, s = t._length = r + ke.bitLength(n);
6396
6396
  if (s > 9007199254740991)
6397
6397
  throw new Error("Cannot hash more than 2^53 - 1 bits");
6398
6398
  const a = new Uint32Array(e);
@@ -6409,7 +6409,7 @@ gi.sha1 = class {
6409
6409
  const n = this;
6410
6410
  let t = n._buffer;
6411
6411
  const e = n._h;
6412
- t = Ee.concat(t, [Ee.partial(1, 1)]);
6412
+ t = ke.concat(t, [ke.partial(1, 1)]);
6413
6413
  for (let r = t.length + 2; r & 15; r++)
6414
6414
  t.push(0);
6415
6415
  for (t.push(Math.floor(n._length / 4294967296)), t.push(n._length | 0); t.length; )
@@ -6508,9 +6508,9 @@ _i.aes = class {
6508
6508
  for (let x = c = 0; !e[x]; x ^= l || 1, c = a[c] || 1) {
6509
6509
  let w = c ^ c << 1 ^ c << 2 ^ c << 3 ^ c << 4;
6510
6510
  w = w >> 8 ^ w & 255 ^ 99, e[x] = w, r[w] = x, _ = s[f = s[l = s[x]]];
6511
- let g = _ * 16843009 ^ f * 65537 ^ l * 257 ^ x * 16843008, k = s[w] * 257 ^ w * 16843008;
6512
- for (let P = 0; P < 4; P++)
6513
- n[P][x] = k = k << 24 ^ k >>> 8, t[P][w] = g = g << 24 ^ g >>> 8;
6511
+ let g = _ * 16843009 ^ f * 65537 ^ l * 257 ^ x * 16843008, T = s[w] * 257 ^ w * 16843008;
6512
+ for (let C = 0; C < 4; C++)
6513
+ n[C][x] = T = T << 24 ^ T >>> 8, t[C][w] = g = g << 24 ^ g >>> 8;
6514
6514
  }
6515
6515
  for (let x = 0; x < 5; x++)
6516
6516
  n[x] = n[x].slice(0), t[x] = t[x].slice(0);
@@ -6526,11 +6526,11 @@ _i.aes = class {
6526
6526
  if (n.length !== 4)
6527
6527
  throw new Error("invalid aes block size");
6528
6528
  const e = this._key[t], r = e.length / 4 - 2, s = [0, 0, 0, 0], a = this._tables[t], c = a[0], l = a[1], f = a[2], _ = a[3], x = a[4];
6529
- let w = n[0] ^ e[0], g = n[t ? 3 : 1] ^ e[1], k = n[2] ^ e[2], P = n[t ? 1 : 3] ^ e[3], m = 4, d, h, y;
6530
- for (let T = 0; T < r; T++)
6531
- d = c[w >>> 24] ^ l[g >> 16 & 255] ^ f[k >> 8 & 255] ^ _[P & 255] ^ e[m], h = c[g >>> 24] ^ l[k >> 16 & 255] ^ f[P >> 8 & 255] ^ _[w & 255] ^ e[m + 1], y = c[k >>> 24] ^ l[P >> 16 & 255] ^ f[w >> 8 & 255] ^ _[g & 255] ^ e[m + 2], P = c[P >>> 24] ^ l[w >> 16 & 255] ^ f[g >> 8 & 255] ^ _[k & 255] ^ e[m + 3], m += 4, w = d, g = h, k = y;
6532
- for (let T = 0; T < 4; T++)
6533
- s[t ? 3 & -T : T] = x[w >>> 24] << 24 ^ x[g >> 16 & 255] << 16 ^ x[k >> 8 & 255] << 8 ^ x[P & 255] ^ e[m++], d = w, w = g, g = k, k = P, P = d;
6529
+ let w = n[0] ^ e[0], g = n[t ? 3 : 1] ^ e[1], T = n[2] ^ e[2], C = n[t ? 1 : 3] ^ e[3], m = 4, d, h, v;
6530
+ for (let A = 0; A < r; A++)
6531
+ d = c[w >>> 24] ^ l[g >> 16 & 255] ^ f[T >> 8 & 255] ^ _[C & 255] ^ e[m], h = c[g >>> 24] ^ l[T >> 16 & 255] ^ f[C >> 8 & 255] ^ _[w & 255] ^ e[m + 1], v = c[T >>> 24] ^ l[C >> 16 & 255] ^ f[w >> 8 & 255] ^ _[g & 255] ^ e[m + 2], C = c[C >>> 24] ^ l[w >> 16 & 255] ^ f[g >> 8 & 255] ^ _[T & 255] ^ e[m + 3], m += 4, w = d, g = h, T = v;
6532
+ for (let A = 0; A < 4; A++)
6533
+ s[t ? 3 & -A : A] = x[w >>> 24] << 24 ^ x[g >> 16 & 255] << 16 ^ x[T >> 8 & 255] << 8 ^ x[C & 255] ^ e[m++], d = w, w = g, g = T, T = C, C = d;
6534
6534
  return s;
6535
6535
  }
6536
6536
  };
@@ -6583,13 +6583,13 @@ yi.ctrGladman = class {
6583
6583
  let r;
6584
6584
  if (!(r = t.length))
6585
6585
  return [];
6586
- const s = Ee.bitLength(t);
6586
+ const s = ke.bitLength(t);
6587
6587
  for (let a = 0; a < r; a += 4) {
6588
6588
  this.incCounter(e);
6589
6589
  const c = n.encrypt(e);
6590
6590
  t[a] ^= c[0], t[a + 1] ^= c[1], t[a + 2] ^= c[2], t[a + 3] ^= c[3];
6591
6591
  }
6592
- return Ee.clamp(t, s);
6592
+ return ke.clamp(t, s);
6593
6593
  }
6594
6594
  };
6595
6595
  const ot = {
@@ -6603,9 +6603,9 @@ const ot = {
6603
6603
  let a, c, l, f, _;
6604
6604
  const x = new ArrayBuffer(s), w = new DataView(x);
6605
6605
  let g = 0;
6606
- const k = Ee;
6606
+ const T = ke;
6607
6607
  for (t = zt.bytes.toBits(t), _ = 1; g < (s || 1); _++) {
6608
- for (a = c = n.encrypt(k.concat(t, [_])), l = 1; l < e; l++)
6608
+ for (a = c = n.encrypt(T.concat(t, [_])), l = 1; l < e; l++)
6609
6609
  for (c = n.encrypt(c), f = 0; f < c.length; f++)
6610
6610
  a[f] ^= c[f];
6611
6611
  for (l = 0; g < (s || 1) && l < a.length; l++)
@@ -6643,10 +6643,10 @@ ot.hmacSha1 = class {
6643
6643
  }
6644
6644
  };
6645
6645
  const Xo = typeof crypto != Qe && typeof crypto.getRandomValues == Ft, bi = "Invalid password", vi = "Invalid signature", Mn = "zipjs-abort-check-password";
6646
- function Ei(n) {
6646
+ function ki(n) {
6647
6647
  return Xo ? crypto.getRandomValues(n) : Ko.getRandomValues(n);
6648
6648
  }
6649
- const pt = 16, zo = "raw", ki = { name: "PBKDF2" }, Jo = { name: "HMAC" }, Qo = "SHA-1", ea = Object.assign({ hash: Jo }, ki), Tn = Object.assign({ iterations: 1e3, hash: { name: Qo } }, ki), ta = ["deriveBits"], At = [8, 12, 16], Et = [16, 24, 32], Ke = 10, na = [0, 0, 0, 0], rn = typeof crypto != Qe, Ct = rn && crypto.subtle, Si = rn && typeof Ct != Qe, Me = zt.bytes, ra = _i.aes, ia = yi.ctrGladman, sa = ot.hmacSha1;
6649
+ const pt = 16, zo = "raw", Ei = { name: "PBKDF2" }, Jo = { name: "HMAC" }, Qo = "SHA-1", ea = Object.assign({ hash: Jo }, Ei), Tn = Object.assign({ iterations: 1e3, hash: { name: Qo } }, Ei), ta = ["deriveBits"], At = [8, 12, 16], kt = [16, 24, 32], Ke = 10, na = [0, 0, 0, 0], rn = typeof crypto != Qe, Ct = rn && crypto.subtle, Si = rn && typeof Ct != Qe, Me = zt.bytes, ra = _i.aes, ia = yi.ctrGladman, sa = ot.hmacSha1;
6650
6650
  let Dr = rn && Si && typeof Ct.importKey == Ft, Lr = rn && Si && typeof Ct.deriveBits == Ft;
6651
6651
  class oa extends TransformStream {
6652
6652
  constructor({ password: t, rawPassword: e, signed: r, encryptionStrength: s, checkPasswordOnly: a }) {
@@ -6668,8 +6668,8 @@ class oa extends TransformStream {
6668
6668
  ready: g
6669
6669
  } = f;
6670
6670
  _ ? (await ca(f, x, _, Ie(c, 0, At[x] + 2)), c = Ie(c, At[x] + 2), a ? l.error(new Error(Mn)) : w()) : await g;
6671
- const k = new Uint8Array(c.length - Ke - (c.length - Ke) % pt);
6672
- l.enqueue(Ai(f, c, k, 0, Ke, !0));
6671
+ const T = new Uint8Array(c.length - Ke - (c.length - Ke) % pt);
6672
+ l.enqueue(Ai(f, c, T, 0, Ke, !0));
6673
6673
  },
6674
6674
  async flush(c) {
6675
6675
  const {
@@ -6681,21 +6681,21 @@ class oa extends TransformStream {
6681
6681
  } = this;
6682
6682
  if (_ && f) {
6683
6683
  await w;
6684
- const g = Ie(x, 0, x.length - Ke), k = Ie(x, x.length - Ke);
6685
- let P = new Uint8Array();
6684
+ const g = Ie(x, 0, x.length - Ke), T = Ie(x, x.length - Ke);
6685
+ let C = new Uint8Array();
6686
6686
  if (g.length) {
6687
6687
  const m = Rt(Me, g);
6688
6688
  _.update(m);
6689
6689
  const d = f.update(m);
6690
- P = Tt(Me, d);
6690
+ C = Tt(Me, d);
6691
6691
  }
6692
6692
  if (l) {
6693
6693
  const m = Ie(Tt(Me, _.digest()), 0, Ke);
6694
6694
  for (let d = 0; d < Ke; d++)
6695
- if (m[d] != k[d])
6695
+ if (m[d] != T[d])
6696
6696
  throw new Error(vi);
6697
6697
  }
6698
- c.enqueue(P);
6698
+ c.enqueue(C);
6699
6699
  }
6700
6700
  }
6701
6701
  });
@@ -6722,8 +6722,8 @@ class aa extends TransformStream {
6722
6722
  } = l;
6723
6723
  let g = new Uint8Array();
6724
6724
  f ? (g = await la(l, _, f), x()) : await w;
6725
- const k = new Uint8Array(g.length + a.length - a.length % pt);
6726
- k.set(g, 0), c.enqueue(Ai(l, a, k, g.length, 0));
6725
+ const T = new Uint8Array(g.length + a.length - a.length % pt);
6726
+ T.set(g, 0), c.enqueue(Ai(l, a, T, g.length, 0));
6727
6727
  },
6728
6728
  async flush(a) {
6729
6729
  const {
@@ -6767,12 +6767,12 @@ async function ca(n, t, e, r) {
6767
6767
  throw new Error(bi);
6768
6768
  }
6769
6769
  async function la(n, t, e) {
6770
- const r = Ei(new Uint8Array(At[t])), s = await Ti(n, t, e, r);
6770
+ const r = ki(new Uint8Array(At[t])), s = await Ti(n, t, e, r);
6771
6771
  return Nn(r, s);
6772
6772
  }
6773
6773
  async function Ti(n, t, e, r) {
6774
6774
  n.password = null;
6775
- const s = await fa(zo, e, ea, !1, ta), a = await ua(Object.assign({ salt: r }, Tn), s, 8 * (Et[t] * 2 + 2)), c = new Uint8Array(a), l = Rt(Me, Ie(c, 0, Et[t])), f = Rt(Me, Ie(c, Et[t], Et[t] * 2)), _ = Ie(c, Et[t] * 2);
6775
+ const s = await fa(zo, e, ea, !1, ta), a = await ua(Object.assign({ salt: r }, Tn), s, 8 * (kt[t] * 2 + 2)), c = new Uint8Array(a), l = Rt(Me, Ie(c, 0, kt[t])), f = Rt(Me, Ie(c, kt[t], kt[t] * 2)), _ = Ie(c, kt[t] * 2);
6776
6776
  return Object.assign(n, {
6777
6777
  keys: {
6778
6778
  key: l,
@@ -6804,7 +6804,7 @@ async function ua(n, t, e) {
6804
6804
  return ot.pbkdf2(t, n.salt, Tn.iterations, e);
6805
6805
  }
6806
6806
  function Ri(n, t) {
6807
- return t === ke ? Go(n) : t;
6807
+ return t === Ee ? Go(n) : t;
6808
6808
  }
6809
6809
  function Nn(n, t) {
6810
6810
  let e = n;
@@ -6863,7 +6863,7 @@ class ma extends TransformStream {
6863
6863
  let c, l;
6864
6864
  if (a.password) {
6865
6865
  a.password = null;
6866
- const f = Ei(new Uint8Array(ht));
6866
+ const f = ki(new Uint8Array(ht));
6867
6867
  f[ht - 1] = a.passwordVerification, c = new Uint8Array(r.length + f.length), c.set(Or(a, f), 0), l = ht;
6868
6868
  } else
6869
6869
  c = new Uint8Array(r.length), l = 0;
@@ -6913,10 +6913,10 @@ class ha extends TransformStream {
6913
6913
  constructor(t, { chunkSize: e, CompressionStream: r, CompressionStreamNative: s }) {
6914
6914
  super({});
6915
6915
  const { compressed: a, encrypted: c, useCompressionStream: l, zipCrypto: f, signed: _, level: x } = t, w = this;
6916
- let g, k, P = Pi(super.readable);
6917
- (!c || f) && _ && (g = new wi(), P = Ne(P, g)), a && (P = Li(P, l, { level: x, chunkSize: e }, s, r)), c && (f ? P = Ne(P, new ma(t)) : (k = new aa(t), P = Ne(P, k))), Di(w, P, () => {
6916
+ let g, T, C = Pi(super.readable);
6917
+ (!c || f) && _ && (g = new wi(), C = Ne(C, g)), a && (C = Li(C, l, { level: x, chunkSize: e }, s, r)), c && (f ? C = Ne(C, new ma(t)) : (T = new aa(t), C = Ne(C, T))), Di(w, C, () => {
6918
6918
  let m;
6919
- c && !f && (m = k.signature), (!c || f) && _ && (m = new DataView(g.value.buffer).getUint32(0)), w.signature = m;
6919
+ c && !f && (m = T.signature), (!c || f) && _ && (m = new DataView(g.value.buffer).getUint32(0)), w.signature = m;
6920
6920
  });
6921
6921
  }
6922
6922
  }
@@ -6924,11 +6924,11 @@ class xa extends TransformStream {
6924
6924
  constructor(t, { chunkSize: e, DecompressionStream: r, DecompressionStreamNative: s }) {
6925
6925
  super({});
6926
6926
  const { zipCrypto: a, encrypted: c, signed: l, signature: f, compressed: _, useCompressionStream: x } = t;
6927
- let w, g, k = Pi(super.readable);
6928
- c && (a ? k = Ne(k, new pa(t)) : (g = new oa(t), k = Ne(k, g))), _ && (k = Li(k, x, { chunkSize: e }, s, r)), (!c || a) && l && (w = new wi(), k = Ne(k, w)), Di(this, k, () => {
6927
+ let w, g, T = Pi(super.readable);
6928
+ c && (a ? T = Ne(T, new pa(t)) : (g = new oa(t), T = Ne(T, g))), _ && (T = Li(T, x, { chunkSize: e }, s, r)), (!c || a) && l && (w = new wi(), T = Ne(T, w)), Di(this, T, () => {
6929
6929
  if ((!c || a) && l) {
6930
- const P = new DataView(w.value.buffer);
6931
- if (f != P.getUint32(0, !1))
6930
+ const C = new DataView(w.value.buffer);
6931
+ if (f != C.getUint32(0, !1))
6932
6932
  throw new Error(vi);
6933
6933
  }
6934
6934
  });
@@ -6976,8 +6976,8 @@ class va extends TransformStream {
6976
6976
  s.startsWith(ba) ? a = ha : s.startsWith(Ui) && (a = xa);
6977
6977
  let c = 0, l = 0;
6978
6978
  const f = new a(t, e), _ = super.readable, x = new TransformStream({
6979
- transform(g, k) {
6980
- g && g.length && (l += g.length, k.enqueue(g));
6979
+ transform(g, T) {
6980
+ g && g.length && (l += g.length, T.enqueue(g));
6981
6981
  },
6982
6982
  flush() {
6983
6983
  Object.assign(r, {
@@ -6985,8 +6985,8 @@ class va extends TransformStream {
6985
6985
  });
6986
6986
  }
6987
6987
  }), w = new TransformStream({
6988
- transform(g, k) {
6989
- g && g.length && (c += g.length, k.enqueue(g));
6988
+ transform(g, T) {
6989
+ g && g.length && (c += g.length, T.enqueue(g));
6990
6990
  },
6991
6991
  flush() {
6992
6992
  const { signature: g } = f;
@@ -7004,7 +7004,7 @@ class va extends TransformStream {
7004
7004
  });
7005
7005
  }
7006
7006
  }
7007
- class Ea extends TransformStream {
7007
+ class ka extends TransformStream {
7008
7008
  constructor(t) {
7009
7009
  let e;
7010
7010
  super({
@@ -7028,15 +7028,15 @@ class wn {
7028
7028
  const { signal: w } = c;
7029
7029
  return Object.assign(t, {
7030
7030
  busy: !0,
7031
- readable: e.pipeThrough(new Ea(a.chunkSize)).pipeThrough(new ka(e, c), { signal: w }),
7031
+ readable: e.pipeThrough(new ka(a.chunkSize)).pipeThrough(new Ea(e, c), { signal: w }),
7032
7032
  writable: r,
7033
7033
  options: Object.assign({}, s),
7034
7034
  scripts: _,
7035
7035
  transferStreams: f,
7036
7036
  terminate() {
7037
7037
  return new Promise((g) => {
7038
- const { worker: k, busy: P } = t;
7039
- k ? (P ? t.resolveTerminated = g : (k.terminate(), g()), t.interface = null) : g();
7038
+ const { worker: T, busy: C } = t;
7039
+ T ? (C ? t.resolveTerminated = g : (T.terminate(), g()), t.interface = null) : g();
7040
7040
  });
7041
7041
  },
7042
7042
  onTaskFinished() {
@@ -7046,7 +7046,7 @@ class wn {
7046
7046
  }), (l && Oi ? Sa : Bi)(t, a);
7047
7047
  }
7048
7048
  }
7049
- class ka extends TransformStream {
7049
+ class Ea extends TransformStream {
7050
7050
  constructor(t, { onstart: e, onprogress: r, size: s, onend: a }) {
7051
7051
  let c = 0;
7052
7052
  super({
@@ -7111,8 +7111,8 @@ async function Aa({ options: n, readable: t, writable: e, onTaskFinished: r }, s
7111
7111
  }
7112
7112
  async function Ta(n, t) {
7113
7113
  let e, r;
7114
- const s = new Promise((g, k) => {
7115
- e = g, r = k;
7114
+ const s = new Promise((g, T) => {
7115
+ e = g, r = T;
7116
7116
  });
7117
7117
  Object.assign(n, {
7118
7118
  reader: null,
@@ -7191,20 +7191,20 @@ async function Ca({ data: n }, t) {
7191
7191
  const { type: e, value: r, messageId: s, result: a, error: c } = n, { reader: l, writer: f, resolveResult: _, rejectResult: x, onTaskFinished: w } = t;
7192
7192
  try {
7193
7193
  if (c) {
7194
- const { message: k, stack: P, code: m, name: d } = c, h = new Error(k);
7195
- Object.assign(h, { stack: P, code: m, name: d }), g(h);
7194
+ const { message: T, stack: C, code: m, name: d } = c, h = new Error(T);
7195
+ Object.assign(h, { stack: C, code: m, name: d }), g(h);
7196
7196
  } else {
7197
7197
  if (e == _a) {
7198
- const { value: k, done: P } = await l.read();
7199
- $t({ type: Mr, value: k, done: P, messageId: s }, t);
7198
+ const { value: T, done: C } = await l.read();
7199
+ $t({ type: Mr, value: T, done: C, messageId: s }, t);
7200
7200
  }
7201
7201
  e == Mr && (await f.ready, await f.write(new Uint8Array(r)), $t({ type: ya, messageId: s }, t)), e == Nr && g(null, a);
7202
7202
  }
7203
- } catch (k) {
7204
- $t({ type: Nr, messageId: s }, t), g(k);
7203
+ } catch (T) {
7204
+ $t({ type: Nr, messageId: s }, t), g(T);
7205
7205
  }
7206
- function g(k, P) {
7207
- k ? x(k) : _(P), f && f.releaseLock(), w();
7206
+ function g(T, C) {
7207
+ T ? x(T) : _(C), f && f.releaseLock(), w();
7208
7208
  }
7209
7209
  }
7210
7210
  let it = [];
@@ -7212,10 +7212,10 @@ const _n = [];
7212
7212
  let Hr = 0;
7213
7213
  async function Ia(n, t) {
7214
7214
  const { options: e, config: r } = t, { transferStreams: s, useWebWorkers: a, useCompressionStream: c, codecType: l, compressed: f, signed: _, encrypted: x } = e, { workerScripts: w, maxWorkers: g } = r;
7215
- t.transferStreams = s || s === ke;
7216
- const k = !f && !_ && !x && !t.transferStreams;
7217
- return t.useWebWorkers = !k && (a || a === ke && r.useWebWorkers), t.scripts = t.useWebWorkers && w ? w[l] : [], e.useCompressionStream = c || c === ke && r.useCompressionStream, (await P()).run();
7218
- async function P() {
7215
+ t.transferStreams = s || s === Ee;
7216
+ const T = !f && !_ && !x && !t.transferStreams;
7217
+ return t.useWebWorkers = !T && (a || a === Ee && r.useWebWorkers), t.scripts = t.useWebWorkers && w ? w[l] : [], e.useCompressionStream = c || c === Ee && r.useCompressionStream, (await C()).run();
7218
+ async function C() {
7219
7219
  const d = it.find((h) => !h.busy);
7220
7220
  if (d)
7221
7221
  return $r(d), new wn(d, n, t, m);
@@ -7227,8 +7227,8 @@ async function Ia(n, t) {
7227
7227
  }
7228
7228
  function m(d) {
7229
7229
  if (_n.length) {
7230
- const [{ resolve: h, stream: y, workerOptions: T }] = _n.splice(0, 1);
7231
- h(new wn(d, y, T, m));
7230
+ const [{ resolve: h, stream: v, workerOptions: A }] = _n.splice(0, 1);
7231
+ h(new wn(d, v, A, m));
7232
7232
  } else d.worker ? ($r(d), Pa(d, t)) : it = it.filter((h) => h != d);
7233
7233
  }
7234
7234
  }
@@ -7346,8 +7346,8 @@ class Yr extends jn {
7346
7346
  if (c)
7347
7347
  x.length >= w ? (await f(x.slice(0, w)), await _(), r.diskOffset += s.size, r.diskNumber++, c = null, await this.write(x.slice(w))) : await f(x);
7348
7348
  else {
7349
- const { value: g, done: k } = await t.next();
7350
- if (k && !g)
7349
+ const { value: g, done: T } = await t.next();
7350
+ if (T && !g)
7351
7351
  throw new Error(La);
7352
7352
  s = g, s.size = 0, s.maxSize && (r.maxSize = s.maxSize), r.availableSize = r.maxSize, await Jt(s), a = g.writable, c = a.getWriter(), await this.write(x);
7353
7353
  }
@@ -7382,11 +7382,11 @@ function Ma(n) {
7382
7382
  }), n;
7383
7383
  }
7384
7384
  function Na(n) {
7385
- n.writable === ke && typeof n.next == Ft && (n = new Yr(n)), n instanceof WritableStream && (n = {
7385
+ n.writable === Ee && typeof n.next == Ft && (n = new Yr(n)), n instanceof WritableStream && (n = {
7386
7386
  writable: n
7387
7387
  });
7388
7388
  const { writable: t } = n;
7389
- return t.size === ke && (t.size = 0), n instanceof Yr || Object.assign(n, {
7389
+ return t.size === Ee && (t.size = 0), n instanceof Yr || Object.assign(n, {
7390
7390
  diskNumber: 0,
7391
7391
  diskOffset: 0,
7392
7392
  availableSize: 1 / 0,
@@ -7481,96 +7481,96 @@ class zr {
7481
7481
  const e = this;
7482
7482
  let { reader: r } = e;
7483
7483
  const { config: s } = e;
7484
- if (await Jt(r), (r.size === ke || !r.readUint8Array) && (r = new Rn(await new Response(r.readable).blob()), await Jt(r)), r.size < ut)
7484
+ if (await Jt(r), (r.size === Ee || !r.readUint8Array) && (r = new Rn(await new Response(r.readable).blob()), await Jt(r)), r.size < ut)
7485
7485
  throw new Error(yn);
7486
7486
  r.chunkSize = Vo(s);
7487
7487
  const a = await gc(r, Do, r.size, ut, Xe * 16);
7488
7488
  if (!a) {
7489
- const v = await _e(r, 0, 4), S = he(v);
7490
- throw ce(S) == Po ? new Error(Gr) : new Error(ic);
7489
+ const b = await _e(r, 0, 4), E = xe(b);
7490
+ throw ce(E) == Po ? new Error(Gr) : new Error(ic);
7491
7491
  }
7492
- const c = he(a);
7492
+ const c = xe(a);
7493
7493
  let l = ce(c, 12), f = ce(c, 16);
7494
- const _ = a.offset, x = me(c, 20), w = _ + ut + x;
7495
- let g = me(c, 4);
7496
- const k = r.lastDiskNumber || 0;
7497
- let P = me(c, 6), m = me(c, 8), d = 0, h = 0;
7498
- if (f == st || l == st || m == Xe || P == Xe) {
7499
- const v = await _e(r, a.offset - mn, mn), S = he(v);
7500
- if (ce(S, 0) == Lo) {
7501
- f = Zt(S, 8);
7502
- let M = await _e(r, f, hn, -1), L = he(M);
7503
- const Y = a.offset - mn - hn;
7504
- if (ce(L, 0) != kr && f != Y) {
7494
+ const _ = a.offset, x = he(c, 20), w = _ + ut + x;
7495
+ let g = he(c, 4);
7496
+ const T = r.lastDiskNumber || 0;
7497
+ let C = he(c, 6), m = he(c, 8), d = 0, h = 0;
7498
+ if (f == st || l == st || m == Xe || C == Xe) {
7499
+ const b = await _e(r, a.offset - mn, mn), E = xe(b);
7500
+ if (ce(E, 0) == Lo) {
7501
+ f = Zt(E, 8);
7502
+ let M = await _e(r, f, hn, -1), O = xe(M);
7503
+ const $ = a.offset - mn - hn;
7504
+ if (ce(O, 0) != Er && f != $) {
7505
7505
  const H = f;
7506
- f = Y, d = f - H, M = await _e(r, f, hn, -1), L = he(M);
7506
+ f = $, d = f - H, M = await _e(r, f, hn, -1), O = xe(M);
7507
7507
  }
7508
- if (ce(L, 0) != kr)
7508
+ if (ce(O, 0) != Er)
7509
7509
  throw new Error(sc);
7510
- g == Xe && (g = ce(L, 16)), P == Xe && (P = ce(L, 20)), m == Xe && (m = Zt(L, 32)), l == st && (l = Zt(L, 40)), f -= l;
7510
+ g == Xe && (g = ce(O, 16)), C == Xe && (C = ce(O, 20)), m == Xe && (m = Zt(O, 32)), l == st && (l = Zt(O, 40)), f -= l;
7511
7511
  }
7512
7512
  }
7513
- if (f >= r.size && (d = r.size - f - l - ut, f = r.size - l - ut), k != g)
7513
+ if (f >= r.size && (d = r.size - f - l - ut, f = r.size - l - ut), T != g)
7514
7514
  throw new Error(Gr);
7515
7515
  if (f < 0)
7516
7516
  throw new Error(yn);
7517
- let y = 0, T = await _e(r, f, l, P), D = he(T);
7517
+ let v = 0, A = await _e(r, f, l, C), P = xe(A);
7518
7518
  if (l) {
7519
- const v = a.offset - l;
7520
- if (ce(D, y) != Er && f != v) {
7521
- const S = f;
7522
- f = v, d += f - S, T = await _e(r, f, l, P), D = he(T);
7519
+ const b = a.offset - l;
7520
+ if (ce(P, v) != kr && f != b) {
7521
+ const E = f;
7522
+ f = b, d += f - E, A = await _e(r, f, l, C), P = xe(A);
7523
7523
  }
7524
7524
  }
7525
- const A = a.offset - f - (r.lastDiskOffset || 0);
7526
- if (l != A && A >= 0 && (l = A, T = await _e(r, f, l, P), D = he(T)), f < 0 || f >= r.size)
7525
+ const S = a.offset - f - (r.lastDiskOffset || 0);
7526
+ if (l != S && S >= 0 && (l = S, A = await _e(r, f, l, C), P = xe(A)), f < 0 || f >= r.size)
7527
7527
  throw new Error(yn);
7528
7528
  const R = ve(e, t, "filenameEncoding"), F = ve(e, t, "commentEncoding");
7529
- for (let v = 0; v < m; v++) {
7530
- const S = new pc(r, s, e.options);
7531
- if (ce(D, y) != Er)
7529
+ for (let b = 0; b < m; b++) {
7530
+ const E = new pc(r, s, e.options);
7531
+ if (ce(P, v) != kr)
7532
7532
  throw new Error(oc);
7533
- Xi(S, D, y + 6);
7534
- const M = !!S.bitFlag.languageEncodingFlag, L = y + 46, Y = L + S.filenameLength, H = Y + S.extraFieldLength, j = me(D, y + 4), K = j >> 8 == 0, V = j >> 8 == 3, oe = T.subarray(L, Y), Z = me(D, y + 32), J = H + Z, $ = T.subarray(H, J), ee = M, Pe = M, de = ce(D, y + 38), le = K && (xt(D, y + 38) & Rr) == Rr || V && (de >> 16 & Fr) == Fr || oe.length && oe[oe.length - 1] == Ir.charCodeAt(0), wt = V && (de >> 16 & Cr) == Cr, qe = ce(D, y + 42) + d;
7535
- Object.assign(S, {
7533
+ Xi(E, P, v + 6);
7534
+ const M = !!E.bitFlag.languageEncodingFlag, O = v + 46, $ = O + E.filenameLength, H = $ + E.extraFieldLength, j = he(P, v + 4), G = j >> 8 == 0, K = j >> 8 == 3, te = A.subarray(O, $), Z = he(P, v + 32), J = H + Z, Y = A.subarray(H, J), ee = M, Pe = M, de = ce(P, v + 38), le = G && (xt(P, v + 38) & Rr) == Rr || K && (de >> 16 & Fr) == Fr || te.length && te[te.length - 1] == Ir.charCodeAt(0), wt = K && (de >> 16 & Cr) == Cr, qe = ce(P, v + 42) + d;
7535
+ Object.assign(E, {
7536
7536
  versionMadeBy: j,
7537
- msDosCompatible: K,
7537
+ msDosCompatible: G,
7538
7538
  compressedSize: 0,
7539
7539
  uncompressedSize: 0,
7540
7540
  commentLength: Z,
7541
7541
  directory: le,
7542
7542
  offset: qe,
7543
- diskNumberStart: me(D, y + 34),
7544
- internalFileAttributes: me(D, y + 36),
7543
+ diskNumberStart: he(P, v + 34),
7544
+ internalFileAttributes: he(P, v + 36),
7545
7545
  externalFileAttributes: de,
7546
- rawFilename: oe,
7546
+ rawFilename: te,
7547
7547
  filenameUTF8: ee,
7548
7548
  commentUTF8: Pe,
7549
- rawExtraField: T.subarray(Y, H),
7549
+ rawExtraField: A.subarray($, H),
7550
7550
  executable: wt
7551
- }), S.internalFileAttribute = S.internalFileAttributes, S.externalFileAttribute = S.externalFileAttributes;
7551
+ }), E.internalFileAttribute = E.internalFileAttributes, E.externalFileAttribute = E.externalFileAttributes;
7552
7552
  const at = ve(e, t, "decodeText") || Yt, et = ee ? Kr : R || Xr, tt = Pe ? Kr : F || Xr;
7553
- let ge = at(oe, et);
7554
- ge === ke && (ge = Yt(oe, et));
7555
- let fe = at($, tt);
7556
- fe === ke && (fe = Yt($, tt)), Object.assign(S, {
7557
- rawComment: $,
7553
+ let ge = at(te, et);
7554
+ ge === Ee && (ge = Yt(te, et));
7555
+ let fe = at(Y, tt);
7556
+ fe === Ee && (fe = Yt(Y, tt)), Object.assign(E, {
7557
+ rawComment: Y,
7558
7558
  filename: ge,
7559
7559
  comment: fe,
7560
7560
  directory: le || ge.endsWith(Ir)
7561
- }), h = Math.max(qe, h), zi(S, S, D, y + 6), S.zipCrypto = S.encrypted && !S.extraFieldAES;
7562
- const je = new Zr(S);
7563
- je.getData = (u, i) => S.getData(u, je, i), y = J;
7561
+ }), h = Math.max(qe, h), zi(E, E, P, v + 6), E.zipCrypto = E.encrypted && !E.extraFieldAES;
7562
+ const je = new Zr(E);
7563
+ je.getData = (u, i) => E.getData(u, je, i), v = J;
7564
7564
  const { onprogress: ue } = t;
7565
7565
  if (ue)
7566
7566
  try {
7567
- await ue(v + 1, m, new Zr(S));
7567
+ await ue(b + 1, m, new Zr(E));
7568
7568
  } catch {
7569
7569
  }
7570
7570
  yield je;
7571
7571
  }
7572
- const b = ve(e, t, "extractPrependedData"), C = ve(e, t, "extractAppendedData");
7573
- return b && (e.prependedData = h > 0 ? await _e(r, 0, h) : new Uint8Array()), e.comment = x ? await _e(r, _ + ut, x) : new Uint8Array(), C && (e.appendedData = w < r.size ? await _e(r, w, r.size - w) : new Uint8Array()), !0;
7572
+ const y = ve(e, t, "extractPrependedData"), D = ve(e, t, "extractAppendedData");
7573
+ return y && (e.prependedData = h > 0 ? await _e(r, 0, h) : new Uint8Array()), e.comment = x ? await _e(r, _ + ut, x) : new Uint8Array(), D && (e.appendedData = w < r.size ? await _e(r, w, r.size - w) : new Uint8Array()), !0;
7574
7574
  }
7575
7575
  async getEntries(t = {}) {
7576
7576
  const e = [];
@@ -7599,75 +7599,75 @@ class pc {
7599
7599
  config: x,
7600
7600
  bitFlag: w,
7601
7601
  signature: g,
7602
- rawLastModDate: k,
7603
- uncompressedSize: P,
7602
+ rawLastModDate: T,
7603
+ uncompressedSize: C,
7604
7604
  compressedSize: m
7605
- } = s, d = e.localDirectory = {}, h = await _e(a, c, 30, l), y = he(h);
7606
- let T = ve(s, r, "password"), D = ve(s, r, "rawPassword");
7607
- const A = ve(s, r, "passThrough");
7608
- if (T = T && T.length && T, D = D && D.length && D, f && f.originalCompressionMethod != Co)
7605
+ } = s, d = e.localDirectory = {}, h = await _e(a, c, 30, l), v = xe(h);
7606
+ let A = ve(s, r, "password"), P = ve(s, r, "rawPassword");
7607
+ const S = ve(s, r, "passThrough");
7608
+ if (A = A && A.length && A, P = P && P.length && P, f && f.originalCompressionMethod != Co)
7609
7609
  throw new Error(Vr);
7610
- if (_ != Fo && _ != Ro && !A)
7610
+ if (_ != Fo && _ != Ro && !S)
7611
7611
  throw new Error(Vr);
7612
- if (ce(y, 0) != Io)
7612
+ if (ce(v, 0) != Io)
7613
7613
  throw new Error(ac);
7614
- Xi(d, y, 4), d.rawExtraField = d.extraFieldLength ? await _e(a, c + 30 + d.filenameLength, d.extraFieldLength, l) : new Uint8Array(), zi(s, d, y, 4, !0), Object.assign(e, {
7614
+ Xi(d, v, 4), d.rawExtraField = d.extraFieldLength ? await _e(a, c + 30 + d.filenameLength, d.extraFieldLength, l) : new Uint8Array(), zi(s, d, v, 4, !0), Object.assign(e, {
7615
7615
  lastAccessDate: d.lastAccessDate,
7616
7616
  creationDate: d.creationDate
7617
7617
  });
7618
- const R = s.encrypted && d.encrypted && !A, F = R && !f;
7619
- if (A || (e.zipCrypto = F), R) {
7620
- if (!F && f.strength === ke)
7618
+ const R = s.encrypted && d.encrypted && !S, F = R && !f;
7619
+ if (S || (e.zipCrypto = F), R) {
7620
+ if (!F && f.strength === Ee)
7621
7621
  throw new Error(fc);
7622
- if (!T && !D)
7622
+ if (!A && !P)
7623
7623
  throw new Error(lc);
7624
7624
  }
7625
- const b = c + 30 + d.filenameLength + d.extraFieldLength, C = m, v = a.readable;
7626
- Object.assign(v, {
7625
+ const y = c + 30 + d.filenameLength + d.extraFieldLength, D = m, b = a.readable;
7626
+ Object.assign(b, {
7627
7627
  diskNumberStart: l,
7628
- offset: b,
7629
- size: C
7628
+ offset: y,
7629
+ size: D
7630
7630
  });
7631
- const S = ve(s, r, "signal"), M = ve(s, r, "checkPasswordOnly");
7632
- M && (t = new WritableStream()), t = Na(t), await Jt(t, A ? m : P);
7633
- const { writable: L } = t, { onstart: Y, onprogress: H, onend: j } = r, K = {
7631
+ const E = ve(s, r, "signal"), M = ve(s, r, "checkPasswordOnly");
7632
+ M && (t = new WritableStream()), t = Na(t), await Jt(t, S ? m : C);
7633
+ const { writable: O } = t, { onstart: $, onprogress: H, onend: j } = r, G = {
7634
7634
  options: {
7635
7635
  codecType: Ui,
7636
- password: T,
7637
- rawPassword: D,
7636
+ password: A,
7637
+ rawPassword: P,
7638
7638
  zipCrypto: F,
7639
7639
  encryptionStrength: f && f.strength,
7640
- signed: ve(s, r, "checkSignature") && !A,
7641
- passwordVerification: F && (w.dataDescriptor ? k >>> 8 & 255 : g >>> 24 & 255),
7640
+ signed: ve(s, r, "checkSignature") && !S,
7641
+ passwordVerification: F && (w.dataDescriptor ? T >>> 8 & 255 : g >>> 24 & 255),
7642
7642
  signature: g,
7643
- compressed: _ != 0 && !A,
7644
- encrypted: s.encrypted && !A,
7643
+ compressed: _ != 0 && !S,
7644
+ encrypted: s.encrypted && !S,
7645
7645
  useWebWorkers: ve(s, r, "useWebWorkers"),
7646
7646
  useCompressionStream: ve(s, r, "useCompressionStream"),
7647
7647
  transferStreams: ve(s, r, "transferStreams"),
7648
7648
  checkPasswordOnly: M
7649
7649
  },
7650
7650
  config: x,
7651
- streamOptions: { signal: S, size: C, onstart: Y, onprogress: H, onend: j }
7651
+ streamOptions: { signal: E, size: D, onstart: $, onprogress: H, onend: j }
7652
7652
  };
7653
- let V = 0;
7653
+ let K = 0;
7654
7654
  try {
7655
- ({ outputSize: V } = await Ia({ readable: v, writable: L }, K));
7656
- } catch (oe) {
7657
- if (!M || oe.message != Mn)
7658
- throw oe;
7655
+ ({ outputSize: K } = await Ia({ readable: b, writable: O }, G));
7656
+ } catch (te) {
7657
+ if (!M || te.message != Mn)
7658
+ throw te;
7659
7659
  } finally {
7660
- const oe = ve(s, r, "preventClose");
7661
- L.size += V, !oe && !L.locked && await L.getWriter().close();
7660
+ const te = ve(s, r, "preventClose");
7661
+ O.size += K, !te && !O.locked && await O.getWriter().close();
7662
7662
  }
7663
- return M ? ke : t.getData ? t.getData() : L;
7663
+ return M ? Ee : t.getData ? t.getData() : O;
7664
7664
  }
7665
7665
  }
7666
7666
  function Xi(n, t, e) {
7667
- const r = n.rawBitFlag = me(t, e + 2), s = (r & Sr) == Sr, a = ce(t, e + 6);
7667
+ const r = n.rawBitFlag = he(t, e + 2), s = (r & Sr) == Sr, a = ce(t, e + 6);
7668
7668
  Object.assign(n, {
7669
7669
  encrypted: s,
7670
- version: me(t, e),
7670
+ version: he(t, e),
7671
7671
  bitFlag: {
7672
7672
  level: (r & Ho) >> 1,
7673
7673
  dataDescriptor: (r & Ar) == Ar,
@@ -7675,24 +7675,24 @@ function Xi(n, t, e) {
7675
7675
  },
7676
7676
  rawLastModDate: a,
7677
7677
  lastModDate: _c(a),
7678
- filenameLength: me(t, e + 22),
7679
- extraFieldLength: me(t, e + 24)
7678
+ filenameLength: he(t, e + 22),
7679
+ extraFieldLength: he(t, e + 24)
7680
7680
  });
7681
7681
  }
7682
7682
  function zi(n, t, e, r, s) {
7683
- const { rawExtraField: a } = t, c = t.extraField = /* @__PURE__ */ new Map(), l = he(new Uint8Array(a));
7683
+ const { rawExtraField: a } = t, c = t.extraField = /* @__PURE__ */ new Map(), l = xe(new Uint8Array(a));
7684
7684
  let f = 0;
7685
7685
  try {
7686
7686
  for (; f < a.length; ) {
7687
- const h = me(l, f), y = me(l, f + 2);
7687
+ const h = he(l, f), v = he(l, f + 2);
7688
7688
  c.set(h, {
7689
7689
  type: h,
7690
- data: a.slice(f + 4, f + 4 + y)
7691
- }), f += 4 + y;
7690
+ data: a.slice(f + 4, f + 4 + v)
7691
+ }), f += 4 + v;
7692
7692
  }
7693
7693
  } catch {
7694
7694
  }
7695
- const _ = me(e, r + 4);
7695
+ const _ = he(e, r + 4);
7696
7696
  Object.assign(t, {
7697
7697
  signature: ce(e, r + 10),
7698
7698
  uncompressedSize: ce(e, r + 18),
@@ -7704,10 +7704,10 @@ function zi(n, t, e, r, s) {
7704
7704
  w && (Jr(w, qi, ji, t, n), t.extraFieldUnicodePath = w);
7705
7705
  const g = c.get(qo);
7706
7706
  g && (Jr(g, Hi, $i, t, n), t.extraFieldUnicodeComment = g);
7707
- const k = c.get(Oo);
7708
- k ? (hc(k, t, _), t.extraFieldAES = k) : t.compressionMethod = _;
7709
- const P = c.get(Bo);
7710
- P && (xc(P, t), t.extraFieldNTFS = P);
7707
+ const T = c.get(Oo);
7708
+ T ? (hc(T, t, _), t.extraFieldAES = T) : t.compressionMethod = _;
7709
+ const C = c.get(Bo);
7710
+ C && (xc(C, t), t.extraFieldNTFS = C);
7711
7711
  const m = c.get(Mo);
7712
7712
  m && (wc(m, t, s), t.extraFieldExtendedTimestamp = m);
7713
7713
  const d = c.get(jo);
@@ -7715,7 +7715,7 @@ function zi(n, t, e, r, s) {
7715
7715
  }
7716
7716
  function mc(n, t) {
7717
7717
  t.zip64 = !0;
7718
- const e = he(n.data), r = uc.filter(([s, a]) => t[s] == a);
7718
+ const e = xe(n.data), r = uc.filter(([s, a]) => t[s] == a);
7719
7719
  for (let s = 0, a = 0; s < r.length; s++) {
7720
7720
  const [c, l] = r[s];
7721
7721
  if (t[c] == l) {
@@ -7726,9 +7726,9 @@ function mc(n, t) {
7726
7726
  }
7727
7727
  }
7728
7728
  function Jr(n, t, e, r, s) {
7729
- const a = he(n.data), c = new Xt();
7729
+ const a = xe(n.data), c = new Xt();
7730
7730
  c.append(s[e]);
7731
- const l = he(new Uint8Array(4));
7731
+ const l = xe(new Uint8Array(4));
7732
7732
  l.setUint32(0, c.get(), !0);
7733
7733
  const f = ce(a, 1);
7734
7734
  Object.assign(n, {
@@ -7738,28 +7738,28 @@ function Jr(n, t, e, r, s) {
7738
7738
  }), n.valid && (r[t] = n[t], r[t + "UTF8"] = !0);
7739
7739
  }
7740
7740
  function hc(n, t, e) {
7741
- const r = he(n.data), s = xt(r, 4);
7741
+ const r = xe(n.data), s = xt(r, 4);
7742
7742
  Object.assign(n, {
7743
7743
  vendorVersion: xt(r, 0),
7744
7744
  vendorId: xt(r, 2),
7745
7745
  strength: s,
7746
7746
  originalCompressionMethod: e,
7747
- compressionMethod: me(r, 5)
7747
+ compressionMethod: he(r, 5)
7748
7748
  }), t.compressionMethod = n.compressionMethod;
7749
7749
  }
7750
7750
  function xc(n, t) {
7751
- const e = he(n.data);
7751
+ const e = xe(n.data);
7752
7752
  let r = 4, s;
7753
7753
  try {
7754
7754
  for (; r < n.data.length && !s; ) {
7755
- const a = me(e, r), c = me(e, r + 2);
7755
+ const a = he(e, r), c = he(e, r + 2);
7756
7756
  a == Wo && (s = n.data.slice(r + 4, r + 4 + c)), r += 4 + c;
7757
7757
  }
7758
7758
  } catch {
7759
7759
  }
7760
7760
  try {
7761
7761
  if (s && s.length == 24) {
7762
- const a = he(s), c = a.getBigUint64(0, !0), l = a.getBigUint64(8, !0), f = a.getBigUint64(16, !0);
7762
+ const a = xe(s), c = a.getBigUint64(0, !0), l = a.getBigUint64(8, !0), f = a.getBigUint64(16, !0);
7763
7763
  Object.assign(n, {
7764
7764
  rawLastModDate: c,
7765
7765
  rawLastAccessDate: l,
@@ -7772,7 +7772,7 @@ function xc(n, t) {
7772
7772
  }
7773
7773
  }
7774
7774
  function wc(n, t, e) {
7775
- const r = he(n.data), s = xt(r, 0), a = [], c = [];
7775
+ const r = xe(n.data), s = xt(r, 0), a = [], c = [];
7776
7776
  e ? ((s & 1) == 1 && (a.push(Cn), c.push(In)), (s & 2) == 2 && (a.push(Gi), c.push(Ha)), (s & 4) == 4 && (a.push(Ki), c.push($a))) : n.data.length >= 5 && (a.push(Cn), c.push(In));
7777
7777
  let l = 1;
7778
7778
  a.forEach((f, _) => {
@@ -7786,7 +7786,7 @@ function wc(n, t, e) {
7786
7786
  });
7787
7787
  }
7788
7788
  async function gc(n, t, e, r, s) {
7789
- const a = new Uint8Array(4), c = he(a);
7789
+ const a = new Uint8Array(4), c = xe(a);
7790
7790
  yc(c, 0, t);
7791
7791
  const l = r + s;
7792
7792
  return await f(r) || await f(Math.min(l, e));
@@ -7801,7 +7801,7 @@ async function gc(n, t, e, r, s) {
7801
7801
  }
7802
7802
  }
7803
7803
  function ve(n, t, e) {
7804
- return t[e] === ke ? n.options[e] : t[e];
7804
+ return t[e] === Ee ? n.options[e] : t[e];
7805
7805
  }
7806
7806
  function _c(n) {
7807
7807
  const t = (n & 4294901760) >> 16, e = n & 65535;
@@ -7816,7 +7816,7 @@ function bn(n) {
7816
7816
  function xt(n, t) {
7817
7817
  return n.getUint8(t);
7818
7818
  }
7819
- function me(n, t) {
7819
+ function he(n, t) {
7820
7820
  return n.getUint16(t, !0);
7821
7821
  }
7822
7822
  function ce(n, t) {
@@ -7828,7 +7828,7 @@ function Zt(n, t) {
7828
7828
  function yc(n, t, e) {
7829
7829
  n.setUint32(t, e, !0);
7830
7830
  }
7831
- function he(n) {
7831
+ function xe(n) {
7832
7832
  return new DataView(n.buffer);
7833
7833
  }
7834
7834
  let Ji;
@@ -7948,7 +7948,7 @@ class vc {
7948
7948
  );
7949
7949
  }
7950
7950
  }
7951
- class Ec {
7951
+ class kc {
7952
7952
  constructor(t) {
7953
7953
  this.root = t;
7954
7954
  }
@@ -7985,7 +7985,7 @@ class Ec {
7985
7985
  )
7986
7986
  ) : e(
7987
7987
  new Vt(
7988
- kc(a),
7988
+ Ec(a),
7989
7989
  t,
7990
7990
  {
7991
7991
  filesize: l.size
@@ -7996,7 +7996,7 @@ class Ec {
7996
7996
  });
7997
7997
  }
7998
7998
  }
7999
- function kc(n) {
7999
+ function Ec(n) {
8000
8000
  return new ReadableStream({
8001
8001
  start(e) {
8002
8002
  n.on("data", (r) => e.enqueue(r)), n.on("end", () => e.close());
@@ -8034,7 +8034,7 @@ async function Sc({
8034
8034
  `Blueprint file at ${e} is not a valid JSON file`
8035
8035
  );
8036
8036
  }
8037
- const c = Je.dirname(e), l = new Ec(c);
8037
+ const c = Je.dirname(e), l = new kc(c);
8038
8038
  return new vc([
8039
8039
  new bc({
8040
8040
  "blueprint.json": a
@@ -8210,7 +8210,7 @@ async function Ac(n) {
8210
8210
  let t, e;
8211
8211
  const r = [];
8212
8212
  n.autoMount && (n = _s(n));
8213
- async function s(k) {
8213
+ async function s(C) {
8214
8214
  await e.run({
8215
8215
  code: `<?php
8216
8216
  $zip = new ZipArchive();
@@ -8231,11 +8231,11 @@ async function Ac(n) {
8231
8231
 
8232
8232
  `
8233
8233
  });
8234
- const P = await e.readFileAsBuffer("/tmp/build.zip");
8235
- ye.writeFileSync(k, P);
8234
+ const m = await e.readFileAsBuffer("/tmp/build.zip");
8235
+ ye.writeFileSync(C, m);
8236
8236
  }
8237
8237
  async function a() {
8238
- const k = cs(n.blueprint) ? n.blueprint : {
8238
+ const C = cs(n.blueprint) ? n.blueprint : {
8239
8239
  login: n.login,
8240
8240
  ...n.blueprint,
8241
8241
  preferredVersions: {
@@ -8243,136 +8243,140 @@ async function Ac(n) {
8243
8243
  wp: n.wp ?? n?.blueprint?.preferredVersions?.wp ?? "latest",
8244
8244
  ...n.blueprint?.preferredVersions || {}
8245
8245
  }
8246
- }, P = new rs();
8247
- let m = "", d = !1;
8248
- return P.addEventListener("progress", (h) => {
8249
- if (d)
8246
+ }, m = new rs();
8247
+ let d = "", h = !1;
8248
+ return m.addEventListener("progress", (v) => {
8249
+ if (h)
8250
8250
  return;
8251
- d = h.detail.progress === 100;
8252
- const y = Math.floor(h.detail.progress);
8253
- m = h.detail.caption || m || "Running the Blueprint";
8254
- const T = `${m.trim()} – ${y}%`;
8251
+ h = v.detail.progress === 100;
8252
+ const A = Math.floor(v.detail.progress);
8253
+ d = v.detail.caption || d || "Running the Blueprint";
8254
+ const P = `${d.trim()} – ${A}%`;
8255
8255
  n.quiet || l(
8256
8256
  process.stdout,
8257
- T,
8258
- d
8257
+ P,
8258
+ h
8259
8259
  );
8260
- }), await ls(k, {
8261
- progress: P
8260
+ }), await ls(C, {
8261
+ progress: m
8262
8262
  });
8263
8263
  }
8264
8264
  let c = "";
8265
- function l(k, P, m) {
8266
- P !== c && (c = P, k.isTTY ? (k.cursorTo(0), k.write(P), k.clearLine(1), m && k.write(`
8267
- `)) : k.write(`${P}
8265
+ function l(C, m, d) {
8266
+ m !== c && (c = m, C.isTTY ? (C.cursorTo(0), C.write(m), C.clearLine(1), d && C.write(`
8267
+ `)) : C.write(`${m}
8268
8268
  `));
8269
8269
  }
8270
- async function f(k) {
8271
- const P = new ds(k);
8272
- return new Promise((m, d) => {
8273
- function h(T) {
8274
- T === "worker-script-initialized" && (m(P), P.off("message", h));
8270
+ async function f(C) {
8271
+ const m = new ds(C);
8272
+ return new Promise((d, h) => {
8273
+ function v(P) {
8274
+ P === "worker-script-initialized" && (d(m), m.off("message", v));
8275
8275
  }
8276
- function y(T) {
8277
- const D = new Error(
8278
- `Worker failed to load at ${k}. ${T.message ? `Original error: ${T.message}` : ""}`
8276
+ function A(P) {
8277
+ const S = new Error(
8278
+ `Worker failed to load at ${C}. ${P.message ? `Original error: ${P.message}` : ""}`
8279
8279
  );
8280
- D.filename = k, d(D), P.off("error", y);
8280
+ S.filename = C, h(S), m.off("error", A);
8281
8281
  }
8282
- P.on("message", h), P.on("error", y);
8282
+ m.on("message", v), m.on("error", A);
8283
8283
  });
8284
8284
  }
8285
- function _(k) {
8286
- const P = new URL(
8285
+ function _(C) {
8286
+ const m = new URL(
8287
8287
  As,
8288
8288
  import.meta.url
8289
- ), m = [];
8290
- for (let d = 0; d < k; d++)
8291
- m.push(f(P));
8292
- return Promise.all(m);
8293
- }
8294
- n.quiet && (xe.handlers = []);
8295
- const x = await a(), w = new ws();
8296
- let g = !1;
8297
- return xe.log("Starting a PHP server..."), Es({
8289
+ ), d = [];
8290
+ for (let h = 0; h < C; h++)
8291
+ d.push(f(m));
8292
+ return Promise.all(d);
8293
+ }
8294
+ n.quiet && (me.handlers = []);
8295
+ const x = await a(), w = await import("fs-ext").then((C) => C.flockSync).catch(() => {
8296
+ me.warn(
8297
+ "The fs-ext package is not installed. Internal file locking will not be integrated with host OS file locking."
8298
+ );
8299
+ }), g = new ws(w);
8300
+ let T = !1;
8301
+ return me.log("Starting a PHP server..."), ks({
8298
8302
  port: n.port,
8299
- onBind: async (k, P) => {
8300
- const m = `http://127.0.0.1:${P}`, d = n.experimentalMultiWorker ?? 1, h = _(d);
8301
- xe.log(`Setting up WordPress ${n.wp}`);
8302
- let y;
8303
- const T = new is();
8303
+ onBind: async (C, m) => {
8304
+ const d = `http://127.0.0.1:${m}`, h = n.experimentalMultiWorker ?? 1, v = _(h);
8305
+ me.log(`Setting up WordPress ${n.wp}`);
8306
+ let A;
8307
+ const P = new is();
8304
8308
  if (!n.skipWordPressSetup) {
8305
- let C = !1;
8306
- T.addEventListener("progress", (v) => {
8307
- if (C)
8309
+ let b = !1;
8310
+ P.addEventListener("progress", (E) => {
8311
+ if (b)
8308
8312
  return;
8309
- const { loaded: S, total: M } = v.detail, L = Math.floor(
8310
- Math.min(100, 100 * S / M)
8313
+ const { loaded: M, total: O } = E.detail, $ = Math.floor(
8314
+ Math.min(100, 100 * M / O)
8311
8315
  );
8312
- C = L === 100, n.quiet || l(
8316
+ b = $ === 100, n.quiet || l(
8313
8317
  process.stdout,
8314
- `Downloading WordPress ${L}%...`,
8315
- C
8318
+ `Downloading WordPress ${$}%...`,
8319
+ b
8316
8320
  );
8317
- }), y = await ps(n.wp), xe.log(
8318
- `Resolved WordPress release URL: ${y?.releaseUrl}`
8321
+ }), A = await ps(n.wp), me.log(
8322
+ `Resolved WordPress release URL: ${A?.releaseUrl}`
8319
8323
  );
8320
8324
  }
8321
- const D = y && Je.join(
8322
- En,
8323
- `prebuilt-wp-content-for-wp-${y.version}.zip`
8324
- ), A = y ? ye.existsSync(D) ? si(D) : await ii(
8325
- y.releaseUrl,
8326
- `${y.version}.zip`,
8327
- T
8325
+ const S = A && Je.join(
8326
+ kn,
8327
+ `prebuilt-wp-content-for-wp-${A.version}.zip`
8328
+ ), R = A ? ye.existsSync(S) ? si(S) : await ii(
8329
+ A.releaseUrl,
8330
+ `${A.version}.zip`,
8331
+ P
8328
8332
  ) : void 0;
8329
- xe.log("Fetching SQLite integration plugin...");
8330
- const R = n.skipSqliteSetup ? void 0 : await bs(T), F = n.followSymlinks === !0, b = n.experimentalTrace === !0;
8333
+ me.log("Fetching SQLite integration plugin...");
8334
+ const F = n.skipSqliteSetup ? void 0 : await bs(P), y = n.followSymlinks === !0, D = n.experimentalTrace === !0;
8331
8335
  try {
8332
- const C = n.mountBeforeInstall || [], v = n.mount || [], [S, ...M] = await h;
8333
- e = Yn(S), r.push({
8336
+ const b = n.mountBeforeInstall || [], E = n.mount || [], [M, ...O] = await v;
8337
+ e = Yn(M), r.push({
8334
8338
  playground: e,
8335
- worker: S
8336
- }), await e.isConnected(), Zn(w, void 0, S), xe.log("Booting WordPress...");
8337
- const L = Math.floor(
8338
- Number.MAX_SAFE_INTEGER / d
8339
+ worker: M
8340
+ }), await e.isConnected(), Zn(g, void 0, M), me.log("Booting WordPress...");
8341
+ const $ = Math.floor(
8342
+ Number.MAX_SAFE_INTEGER / h
8339
8343
  );
8340
8344
  if (await e.boot({
8341
8345
  phpVersion: x.versions.php,
8342
8346
  wpVersion: x.versions.wp,
8343
- absoluteUrl: m,
8344
- mountsBeforeWpInstall: C,
8345
- mountsAfterWpInstall: v,
8346
- wordPressZip: A && await A.arrayBuffer(),
8347
- sqliteIntegrationPluginZip: await R.arrayBuffer(),
8347
+ absoluteUrl: d,
8348
+ mountsBeforeWpInstall: b,
8349
+ mountsAfterWpInstall: E,
8350
+ wordPressZip: R && await R.arrayBuffer(),
8351
+ sqliteIntegrationPluginZip: await F.arrayBuffer(),
8348
8352
  firstProcessId: 0,
8349
- processIdSpaceLength: L,
8350
- followSymlinks: F,
8351
- trace: b
8352
- }), y && !n.mountBeforeInstall && !ye.existsSync(D) && (xe.log(
8353
+ processIdSpaceLength: $,
8354
+ followSymlinks: y,
8355
+ trace: D
8356
+ }), A && !n.mountBeforeInstall && !ye.existsSync(S) && (me.log(
8353
8357
  "Caching preinstalled WordPress for the next boot..."
8354
8358
  ), ye.writeFileSync(
8355
- D,
8359
+ S,
8356
8360
  await Vn(e, "/wordpress")
8357
- ), xe.log("Cached!")), t = new Ts(e), await e.isReady(), g = !0, xe.log("Booted!"), x && (xe.log("Running the Blueprint..."), await fs(x, e), xe.log("Finished running the blueprint")), n.command === "build-snapshot" ? (await s(n.outfile), xe.log(`WordPress exported to ${n.outfile}`), process.exit(0)) : n.command === "run-blueprint" && (xe.log("Blueprint executed"), process.exit(0)), n.experimentalMultiWorker && n.experimentalMultiWorker > 1) {
8358
- xe.log("Preparing additional workers...");
8359
- const Y = await Vn(
8361
+ ), me.log("Cached!")), t = new Ts(e), await e.isReady(), T = !0, me.log("Booted!"), x && (me.log("Running the Blueprint..."), await fs(x, e), me.log("Finished running the blueprint")), n.command === "build-snapshot" ? (await s(n.outfile), me.log(`WordPress exported to ${n.outfile}`), process.exit(0)) : n.command === "run-blueprint" && (me.log("Blueprint executed"), process.exit(0)), n.experimentalMultiWorker && n.experimentalMultiWorker > 1) {
8362
+ me.log("Preparing additional workers...");
8363
+ const H = await Vn(
8360
8364
  e,
8361
8365
  "/internal"
8362
- ), H = L;
8366
+ ), j = $;
8363
8367
  await Promise.all(
8364
- M.map(async (j, K) => {
8365
- const V = Yn(j);
8368
+ O.map(async (G, K) => {
8369
+ const te = Yn(G);
8366
8370
  r.push({
8367
- playground: V,
8368
- worker: j
8369
- }), await V.isConnected(), Zn(w, void 0, j);
8370
- const oe = H + K * L;
8371
- await V.boot({
8371
+ playground: te,
8372
+ worker: G
8373
+ }), await te.isConnected(), Zn(g, void 0, G);
8374
+ const Z = j + K * $;
8375
+ await te.boot({
8372
8376
  phpVersion: x.versions.php,
8373
- absoluteUrl: m,
8374
- mountsBeforeWpInstall: C,
8375
- mountsAfterWpInstall: v,
8377
+ absoluteUrl: d,
8378
+ mountsBeforeWpInstall: b,
8379
+ mountsAfterWpInstall: E,
8376
8380
  // Skip WordPress zip because we share the /wordpress directory
8377
8381
  // populated by the initial worker.
8378
8382
  wordPressZip: void 0,
@@ -8380,45 +8384,45 @@ async function Ac(n) {
8380
8384
  // will copy it from primary's `/internal` directory.
8381
8385
  sqliteIntegrationPluginZip: void 0,
8382
8386
  dataSqlPath: "/wordpress/wp-content/database/.ht.sqlite",
8383
- firstProcessId: oe,
8384
- processIdSpaceLength: L,
8385
- followSymlinks: F,
8386
- trace: b
8387
- }), await V.isReady(), await V.writeFile(
8387
+ firstProcessId: Z,
8388
+ processIdSpaceLength: $,
8389
+ followSymlinks: y,
8390
+ trace: D
8391
+ }), await te.isReady(), await te.writeFile(
8388
8392
  "/tmp/internal.zip",
8389
- Y
8393
+ H
8390
8394
  ), await us(
8391
- V,
8395
+ te,
8392
8396
  "/tmp/internal.zip",
8393
8397
  "/internal"
8394
- ), await V.unlink(
8398
+ ), await te.unlink(
8395
8399
  "/tmp/internal.zip"
8396
- ), t.addWorker(V);
8400
+ ), t.addWorker(te);
8397
8401
  })
8398
- ), xe.log("Ready!");
8402
+ ), me.log("Ready!");
8399
8403
  }
8400
- return xe.log(`WordPress is running on ${m}`), {
8404
+ return me.log(`WordPress is running on ${d}`), {
8401
8405
  playground: e,
8402
- server: k,
8406
+ server: C,
8403
8407
  [Symbol.asyncDispose]: async function() {
8404
8408
  await Promise.all(
8405
8409
  r.map(
8406
- async ({ playground: H, worker: j }) => {
8407
- await H.dispose(), await j.terminate();
8410
+ async ({ playground: j, worker: G }) => {
8411
+ await j.dispose(), await G.terminate();
8408
8412
  }
8409
8413
  )
8410
- ), await new Promise((H) => k.close(H));
8414
+ ), await new Promise((j) => C.close(j));
8411
8415
  }
8412
8416
  };
8413
- } catch (C) {
8417
+ } catch (b) {
8414
8418
  if (!n.debug)
8415
- throw C;
8416
- const v = await e.readFileAsText(ns);
8417
- throw new Error(v, { cause: C });
8419
+ throw b;
8420
+ const E = await e.readFileAsText(ns);
8421
+ throw new Error(E, { cause: b });
8418
8422
  }
8419
8423
  },
8420
- async handleRequest(k) {
8421
- return g ? await t.handleRequest(k) : os.forHttpCode(
8424
+ async handleRequest(C) {
8425
+ return T ? await t.handleRequest(C) : os.forHttpCode(
8422
8426
  502,
8423
8427
  "WordPress is not ready yet"
8424
8428
  );
@@ -8429,4 +8433,4 @@ export {
8429
8433
  jc as p,
8430
8434
  Ac as r
8431
8435
  };
8432
- //# sourceMappingURL=run-cli-bX1Rsm_j.js.map
8436
+ //# sourceMappingURL=run-cli-CbJy_CRO.js.map