@wp-playground/client 1.0.12 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.cjs +27 -27
  2. package/index.js +580 -570
  3. package/package.json +9 -9
package/index.js CHANGED
@@ -96,17 +96,17 @@ const An = [
96
96
  "themes/twentytwentyfive",
97
97
  "themes/twentytwentysix"
98
98
  ], Tn = Symbol("SleepFinished");
99
- function no(e) {
99
+ function ao(e) {
100
100
  return new Promise((r) => {
101
101
  setTimeout(() => r(Tn), e);
102
102
  });
103
103
  }
104
- class ao extends Error {
104
+ class oo extends Error {
105
105
  constructor() {
106
106
  super("Acquiring lock timed out");
107
107
  }
108
108
  }
109
- class oo {
109
+ class po {
110
110
  constructor({ concurrency: r, timeout: s }) {
111
111
  this._running = 0, this.concurrency = r, this.timeout = s, this.queue = [];
112
112
  }
@@ -122,10 +122,10 @@ class oo {
122
122
  const r = new Promise((s) => {
123
123
  this.queue.push(s);
124
124
  });
125
- this.timeout !== void 0 ? await Promise.race([r, no(this.timeout)]).then(
125
+ this.timeout !== void 0 ? await Promise.race([r, ao(this.timeout)]).then(
126
126
  (s) => {
127
127
  if (s === Tn)
128
- throw new ao();
128
+ throw new oo();
129
129
  }
130
130
  ) : await r;
131
131
  } else {
@@ -162,12 +162,12 @@ function gt(e) {
162
162
  }
163
163
  function si(e) {
164
164
  const r = e[0] === "/";
165
- return e = po(
165
+ return e = fo(
166
166
  e.split("/").filter((s) => !!s),
167
167
  !r
168
168
  ).join("/"), (r ? "/" : "") + e.replace(/\/$/, "");
169
169
  }
170
- function po(e, r) {
170
+ function fo(e, r) {
171
171
  let s = 0;
172
172
  for (let n = e.length - 1; n >= 0; n--) {
173
173
  const o = e[n];
@@ -185,11 +185,11 @@ function Cn(e = 36, r = "!@#$%^&*()_+=-[]/.,<>?") {
185
185
  n += s[Math.floor(Math.random() * s.length)];
186
186
  return n;
187
187
  }
188
- function fo() {
188
+ function lo() {
189
189
  return Cn(36, "-_");
190
190
  }
191
191
  function Ie(e) {
192
- return `json_decode(base64_decode('${lo(
192
+ return `json_decode(base64_decode('${uo(
193
193
  JSON.stringify(e)
194
194
  )}'), true)`;
195
195
  }
@@ -199,23 +199,23 @@ function ns(e) {
199
199
  r[s] = Ie(e[s]);
200
200
  return r;
201
201
  }
202
- function lo(e) {
203
- return uo(new TextEncoder().encode(e));
204
- }
205
202
  function uo(e) {
203
+ return co(new TextEncoder().encode(e));
204
+ }
205
+ function co(e) {
206
206
  const r = String.fromCodePoint(...e);
207
207
  return btoa(r);
208
208
  }
209
- const co = "playground-log", vi = (e, ...r) => {
209
+ const ho = "playground-log", vi = (e, ...r) => {
210
210
  xe.dispatchEvent(
211
- new CustomEvent(co, {
211
+ new CustomEvent(ho, {
212
212
  detail: {
213
213
  log: e,
214
214
  args: r
215
215
  }
216
216
  })
217
217
  );
218
- }, ho = (e, ...r) => {
218
+ }, yo = (e, ...r) => {
219
219
  switch (typeof e.message == "string" ? Reflect.set(e, "message", Us(e.message)) : e.message.message && typeof e.message.message == "string" && Reflect.set(
220
220
  e.message,
221
221
  "message",
@@ -239,15 +239,15 @@ const co = "playground-log", vi = (e, ...r) => {
239
239
  default:
240
240
  console.log(e.message, ...r);
241
241
  }
242
- }, yo = (e) => e instanceof Error ? [e.message, e.stack].join(`
242
+ }, mo = (e) => e instanceof Error ? [e.message, e.stack].join(`
243
243
  `) : JSON.stringify(e, null, 2), On = [], Pi = (e) => {
244
244
  On.push(e);
245
245
  }, Ws = (e) => {
246
246
  if (e.raw === !0)
247
247
  Pi(e.message);
248
248
  else {
249
- const r = bo(
250
- typeof e.message == "object" ? yo(e.message) : e.message,
249
+ const r = vo(
250
+ typeof e.message == "object" ? mo(e.message) : e.message,
251
251
  e.severity ?? "Info",
252
252
  e.prefix ?? "JavaScript"
253
253
  );
@@ -255,9 +255,9 @@ const co = "playground-log", vi = (e, ...r) => {
255
255
  }
256
256
  };
257
257
  let _s = 0;
258
- const Ei = "/wordpress/wp-content/debug.log", mo = async (e) => await e.fileExists(Ei) ? await e.readFileAsText(Ei) : "", _o = (e, r) => {
258
+ const Ei = "/wordpress/wp-content/debug.log", _o = async (e) => await e.fileExists(Ei) ? await e.readFileAsText(Ei) : "", go = (e, r) => {
259
259
  r.addEventListener("request.end", async () => {
260
- const s = await mo(r);
260
+ const s = await _o(r);
261
261
  if (s.length > _s) {
262
262
  const n = s.substring(_s);
263
263
  e.logMessage({
@@ -280,7 +280,7 @@ const Ei = "/wordpress/wp-content/debug.log", mo = async (e) => await e.fileExis
280
280
  ));
281
281
  });
282
282
  };
283
- class go extends EventTarget {
283
+ class wo extends EventTarget {
284
284
  // constructor
285
285
  constructor(r = []) {
286
286
  super(), this.handlers = r, this.fatalErrorEvent = "playground-fatal-error";
@@ -392,14 +392,14 @@ class go extends EventTarget {
392
392
  );
393
393
  }
394
394
  }
395
- const wo = () => {
395
+ const bo = () => {
396
396
  try {
397
397
  if (process.env.NODE_ENV === "test")
398
398
  return [Ws, vi];
399
399
  } catch {
400
400
  }
401
- return [Ws, ho, vi];
402
- }, xe = new go(wo()), Us = (e) => e.replace(/\t/g, ""), bo = (e, r, s) => {
401
+ return [Ws, yo, vi];
402
+ }, xe = new wo(bo()), Us = (e) => e.replace(/\t/g, ""), vo = (e, r, s) => {
403
403
  const n = /* @__PURE__ */ new Date(), o = new Intl.DateTimeFormat("en-GB", {
404
404
  year: "numeric",
405
405
  month: "short",
@@ -490,11 +490,11 @@ const wo = () => {
490
490
  throw xe.debug(i), new Error(
491
491
  `Theme ${r} could not be activated – WordPress exited with no error. Sometimes, when $_SERVER or site options are not configured correctly, WordPress exits early with a 301 redirect. Inspect the "debug" logs in the console for more details`
492
492
  );
493
- }, vo = async (e, { code: r }) => await e.run({ code: r }), Po = async (e, { options: r }) => await e.run(r), In = async (e, { path: r }) => {
493
+ }, Po = async (e, { code: r }) => await e.run({ code: r }), Eo = async (e, { options: r }) => await e.run(r), In = async (e, { path: r }) => {
494
494
  await e.unlink(r);
495
- }, Eo = async (e, { sql: r }, s) => {
495
+ }, ko = async (e, { sql: r }, s) => {
496
496
  s == null || s.tracker.setCaption("Executing SQL Queries");
497
- const n = `/tmp/${fo()}.sql`;
497
+ const n = `/tmp/${lo()}.sql`;
498
498
  await e.writeFile(
499
499
  n,
500
500
  new Uint8Array(await r.arrayBuffer())
@@ -518,7 +518,7 @@ const wo = () => {
518
518
  `
519
519
  });
520
520
  return await In(e, { path: n }), t;
521
- }, ko = async (e, { request: r }) => {
521
+ }, So = async (e, { request: r }) => {
522
522
  xe.warn(
523
523
  'Deprecated: The Blueprint step "request" is deprecated and will be removed in a future release.'
524
524
  );
@@ -528,7 +528,7 @@ const wo = () => {
528
528
  `Request failed with status ${s.httpStatusCode}`
529
529
  );
530
530
  return s;
531
- }, So = `<?php
531
+ }, Ao = `<?php
532
532
 
533
533
  /**
534
534
  * Rewrites the wp-config.php file to ensure specific constants are defined
@@ -862,10 +862,10 @@ function skip_whitespace($tokens) {
862
862
  `, ii = async (e, { consts: r, method: s = "define-before-run" }) => {
863
863
  switch (s) {
864
864
  case "define-before-run":
865
- await Ao(e, r);
865
+ await To(e, r);
866
866
  break;
867
867
  case "rewrite-wp-config": {
868
- const n = await e.documentRoot, o = _e(n, "/wp-config.php"), i = await e.readFileAsText(o), t = await To(
868
+ const n = await e.documentRoot, o = _e(n, "/wp-config.php"), i = await e.readFileAsText(o), t = await Co(
869
869
  e,
870
870
  i,
871
871
  r
@@ -877,17 +877,17 @@ function skip_whitespace($tokens) {
877
877
  throw new Error(`Invalid method: ${s}`);
878
878
  }
879
879
  };
880
- async function Ao(e, r) {
880
+ async function To(e, r) {
881
881
  for (const s in r)
882
882
  await e.defineConstant(s, r[s]);
883
883
  }
884
- async function To(e, r, s) {
884
+ async function Co(e, r, s) {
885
885
  await e.writeFile("/tmp/code.php", r);
886
886
  const n = ns({
887
887
  consts: s
888
888
  });
889
889
  return await e.run({
890
- code: `${So}
890
+ code: `${Ao}
891
891
  $wp_config_path = '/tmp/code.php';
892
892
  $wp_config = file_get_contents($wp_config_path);
893
893
  $new_wp_config = rewrite_wp_config_to_define_constants($wp_config, ${n.consts});
@@ -907,7 +907,7 @@ const Hn = async (e, { options: r }) => {
907
907
  echo "Success";
908
908
  `
909
909
  });
910
- }, Co = async (e, { meta: r, userId: s }) => {
910
+ }, Oo = async (e, { meta: r, userId: s }) => {
911
911
  const n = await e.documentRoot;
912
912
  await e.run({
913
913
  code: `<?php
@@ -918,7 +918,7 @@ const Hn = async (e, { options: r }) => {
918
918
  }
919
919
  `
920
920
  });
921
- }, ni = "/tmp/wp-cli.phar", Oo = {
921
+ }, ni = "/tmp/wp-cli.phar", xo = {
922
922
  resource: "url",
923
923
  /**
924
924
  * Use compression for downloading the wp-cli.phar file.
@@ -943,7 +943,7 @@ const Hn = async (e, { options: r }) => {
943
943
  }, Rn = async (e, { command: r, wpCliPath: s = ni }) => {
944
944
  await $n(e, s);
945
945
  let n;
946
- if (typeof r == "string" ? (r = r.trim(), n = xo(r)) : n = r, n.shift() !== "wp")
946
+ if (typeof r == "string" ? (r = r.trim(), n = Lo(r)) : n = r, n.shift() !== "wp")
947
947
  throw new Error('The first argument must be "wp".');
948
948
  const i = await e.documentRoot;
949
949
  await e.writeFile("/tmp/stdout", ""), await e.writeFile("/tmp/stderr", ""), await e.writeFile(
@@ -979,7 +979,7 @@ const Hn = async (e, { options: r }) => {
979
979
  throw new Error(t.errors);
980
980
  return t;
981
981
  };
982
- function xo(e) {
982
+ function Lo(e) {
983
983
  let n = 0, o = "";
984
984
  const i = [];
985
985
  let t = "";
@@ -989,7 +989,7 @@ function xo(e) {
989
989
  }
990
990
  return t && i.push(t), i;
991
991
  }
992
- const Lo = async (e, { wpCliPath: r }) => {
992
+ const Io = async (e, { wpCliPath: r }) => {
993
993
  await $n(e, r), await ii(e, {
994
994
  consts: {
995
995
  WP_ALLOW_MULTISITE: 1
@@ -1009,16 +1009,16 @@ const Lo = async (e, { wpCliPath: r }) => {
1009
1009
  }), await Rn(e, {
1010
1010
  command: "wp core multisite-convert"
1011
1011
  });
1012
- }, Io = async (e, { fromPath: r, toPath: s }) => {
1012
+ }, Ho = async (e, { fromPath: r, toPath: s }) => {
1013
1013
  await e.writeFile(
1014
1014
  s,
1015
1015
  await e.readFileAsBuffer(r)
1016
1016
  );
1017
- }, Ho = async (e, { fromPath: r, toPath: s }) => {
1017
+ }, $o = async (e, { fromPath: r, toPath: s }) => {
1018
1018
  await e.mv(r, s);
1019
- }, $o = async (e, { path: r }) => {
1020
- await e.mkdir(r);
1021
1019
  }, Ro = async (e, { path: r }) => {
1020
+ await e.mkdir(r);
1021
+ }, Do = async (e, { path: r }) => {
1022
1022
  await e.rmdir(r);
1023
1023
  }, Dn = async (e, { path: r, data: s }) => {
1024
1024
  s instanceof File && (s = new Uint8Array(await s.arrayBuffer())), r.startsWith("/wordpress/wp-content/mu-plugins") && !await e.fileExists("/wordpress/wp-content/mu-plugins") && await e.mkdir("/wordpress/wp-content/mu-plugins"), await e.writeFile(r, s);
@@ -1101,7 +1101,7 @@ const Lo = async (e, { wpCliPath: r }) => {
1101
1101
  75: "Cross-device link.",
1102
1102
  76: "Extension: Capabilities insufficient."
1103
1103
  };
1104
- function Do(e) {
1104
+ function Bo(e) {
1105
1105
  const r = typeof e == "object" ? e == null ? void 0 : e.errno : null;
1106
1106
  if (r in Xt)
1107
1107
  return Xt[r];
@@ -1125,10 +1125,10 @@ function Ve(e = "") {
1125
1125
  };
1126
1126
  };
1127
1127
  }
1128
- var Bo = Object.defineProperty, Fo = Object.getOwnPropertyDescriptor, Ye = (e, r, s, n) => {
1129
- for (var o = n > 1 ? void 0 : n ? Fo(r, s) : r, i = e.length - 1, t; i >= 0; i--)
1128
+ var Fo = Object.defineProperty, jo = Object.getOwnPropertyDescriptor, Ye = (e, r, s, n) => {
1129
+ for (var o = n > 1 ? void 0 : n ? jo(r, s) : r, i = e.length - 1, t; i >= 0; i--)
1130
1130
  (t = e[i]) && (o = (n ? t(r, s, o) : t(o)) || o);
1131
- return n && o && Bo(r, s, o), o;
1131
+ return n && o && Fo(r, s, o), o;
1132
1132
  };
1133
1133
  const Xe = class $e {
1134
1134
  static readFileAsText(r, s) {
@@ -1156,7 +1156,7 @@ const Xe = class $e {
1156
1156
  const o = r.lookupPath(s).node.mount, i = $e.fileExists(r, n) ? r.lookupPath(n).node.mount : r.lookupPath(gt(n)).node.mount;
1157
1157
  o.mountpoint !== i.mountpoint ? ($e.copyRecursive(r, s, n), $e.isDir(r, s) ? $e.rmdir(r, s, { recursive: !0 }) : r.unlink(s)) : r.rename(s, n);
1158
1158
  } catch (o) {
1159
- const i = Do(o);
1159
+ const i = Bo(o);
1160
1160
  throw i ? new Error(
1161
1161
  `Could not move ${s} to ${n}: ${i}`,
1162
1162
  {
@@ -1289,7 +1289,7 @@ Ye([
1289
1289
  Ye([
1290
1290
  Ve('Could not copy files from "{path}"')
1291
1291
  ], Xe, "copyRecursive", 1);
1292
- const jo = {
1292
+ const No = {
1293
1293
  500: "Internal Server Error",
1294
1294
  502: "Bad Gateway",
1295
1295
  404: "Not Found",
@@ -1313,7 +1313,7 @@ class Qt {
1313
1313
  r,
1314
1314
  {},
1315
1315
  new TextEncoder().encode(
1316
- s || jo[r] || ""
1316
+ s || No[r] || ""
1317
1317
  )
1318
1318
  );
1319
1319
  }
@@ -1469,7 +1469,7 @@ var Ai = {
1469
1469
  safe: yr,
1470
1470
  unsafe: Ut
1471
1471
  };
1472
- async function Xu(e, r) {
1472
+ async function sc(e, r) {
1473
1473
  const s = Ai.parse(await e.readFileAsText(ki));
1474
1474
  for (const [n, o] of Object.entries(r))
1475
1475
  o == null ? delete s[n] : s[n] = o;
@@ -1499,7 +1499,7 @@ const oi = [
1499
1499
  "7.2",
1500
1500
  "7.1",
1501
1501
  "7.0"
1502
- ], No = oi[0], Qu = oi;
1502
+ ], Wo = oi[0], ic = oi;
1503
1503
  async function as(e, r, s, { rmRoot: n = !1 } = {}) {
1504
1504
  n && await e.isDir(r) && await e.rmdir(r, { recursive: !0 });
1505
1505
  for (const [o, i] of Object.entries(s)) {
@@ -1507,7 +1507,7 @@ async function as(e, r, s, { rmRoot: n = !1 } = {}) {
1507
1507
  await e.fileExists(gt(t)) || await e.mkdir(gt(t)), i instanceof Uint8Array || typeof i == "string" ? await e.writeFile(t, i) : await as(e, t, i);
1508
1508
  }
1509
1509
  }
1510
- const Wo = async (e, { writeToPath: r, filesTree: s }) => {
1510
+ const Uo = async (e, { writeToPath: r, filesTree: s }) => {
1511
1511
  await as(e, r, s.files);
1512
1512
  }, jn = async (e, { siteUrl: r }) => {
1513
1513
  await ii(e, {
@@ -1516,7 +1516,7 @@ const Wo = async (e, { writeToPath: r, filesTree: s }) => {
1516
1516
  WP_SITEURL: r
1517
1517
  }
1518
1518
  });
1519
- }, Uo = async (e, { file: r }, s) => {
1519
+ }, qo = async (e, { file: r }, s) => {
1520
1520
  var o;
1521
1521
  (o = s == null ? void 0 : s.tracker) == null || o.setCaption("Importing content"), await Dn(e, {
1522
1522
  path: "/tmp/import.wxr",
@@ -1650,7 +1650,7 @@ const Wo = async (e, { writeToPath: r, filesTree: s }) => {
1650
1650
  else if (!r)
1651
1651
  throw new Error("Either zipPath or zipFile must be provided");
1652
1652
  await Wn(e, r || s, n);
1653
- }, qo = async (e, { wordPressFilesZip: r, pathInZip: s = "" }) => {
1653
+ }, Mo = async (e, { wordPressFilesZip: r, pathInZip: s = "" }) => {
1654
1654
  const n = await e.documentRoot;
1655
1655
  let o = _e("/tmp", "import");
1656
1656
  await e.mkdir(o), await pi(e, {
@@ -1698,7 +1698,7 @@ const Wo = async (e, { writeToPath: r, filesTree: s }) => {
1698
1698
  async function Ti(e, r) {
1699
1699
  await e.fileExists(r) && (await e.isDir(r) ? await e.rmdir(r) : await e.unlink(r));
1700
1700
  }
1701
- async function Mo(e) {
1701
+ async function Ko(e) {
1702
1702
  const r = await e.request({
1703
1703
  url: "/wp-admin/export.php?download=true&content=all"
1704
1704
  });
@@ -1761,7 +1761,7 @@ function os(e) {
1761
1761
  const r = e.split(".").shift().replace(/-/g, " ");
1762
1762
  return r.charAt(0).toUpperCase() + r.slice(1).toLowerCase();
1763
1763
  }
1764
- const Ko = async (e, { pluginData: r, pluginZipFile: s, ifAlreadyInstalled: n, options: o = {} }, i) => {
1764
+ const zo = async (e, { pluginData: r, pluginZipFile: s, ifAlreadyInstalled: n, options: o = {} }, i) => {
1765
1765
  s && (r = s, xe.warn(
1766
1766
  'The "pluginZipFile" option is deprecated. Use "pluginData" instead.'
1767
1767
  ));
@@ -1797,7 +1797,7 @@ const Ko = async (e, { pluginData: r, pluginZipFile: s, ifAlreadyInstalled: n, o
1797
1797
  },
1798
1798
  i
1799
1799
  );
1800
- }, zo = async (e, { themeData: r, themeZipFile: s, ifAlreadyInstalled: n, options: o = {} }, i) => {
1800
+ }, Go = async (e, { themeData: r, themeZipFile: s, ifAlreadyInstalled: n, options: o = {} }, i) => {
1801
1801
  s && (r = s, xe.warn(
1802
1802
  'The "themeZipFile" option is deprecated. Use "themeData" instead.'
1803
1803
  ));
@@ -1836,9 +1836,9 @@ const Ko = async (e, { pluginData: r, pluginZipFile: s, ifAlreadyInstalled: n, o
1836
1836
  },
1837
1837
  i
1838
1838
  );
1839
- }, Go = async (e, { username: r = "admin" } = {}, s) => {
1839
+ }, Zo = async (e, { username: r = "admin" } = {}, s) => {
1840
1840
  s == null || s.tracker.setCaption((s == null ? void 0 : s.initialCaption) || "Logging in"), e.defineConstant("PLAYGROUND_AUTO_LOGIN_AS_USER", r);
1841
- }, Zo = async (e, r, s) => {
1841
+ }, Vo = async (e, r, s) => {
1842
1842
  var o;
1843
1843
  (o = s == null ? void 0 : s.tracker) == null || o.setCaption("Resetting WordPress data");
1844
1844
  const n = await e.documentRoot;
@@ -1862,7 +1862,7 @@ const Ko = async (e, { pluginData: r, pluginZipFile: s, ifAlreadyInstalled: n, o
1862
1862
  $GLOBALS['@pdo']->query("UPDATE SQLITE_SEQUENCE SET SEQ=0 WHERE NAME='wp_commentmeta'");
1863
1863
  `
1864
1864
  });
1865
- }, Vo = async (e, { options: r }) => {
1865
+ }, Yo = async (e, { options: r }) => {
1866
1866
  await e.request({
1867
1867
  url: "/wp-admin/install.php?step=2",
1868
1868
  method: "POST",
@@ -1879,7 +1879,7 @@ const Ko = async (e, { pluginData: r, pluginZipFile: s, ifAlreadyInstalled: n, o
1879
1879
  admin_email: "admin@localhost.com"
1880
1880
  }
1881
1881
  });
1882
- }, Yo = async (e, { selfContained: r = !1 } = {}) => {
1882
+ }, Xo = async (e, { selfContained: r = !1 } = {}) => {
1883
1883
  const s = "/tmp/wordpress-playground.zip", n = await e.documentRoot, o = _e(n, "wp-content");
1884
1884
  let i = An;
1885
1885
  r && (i = i.filter((y) => !y.startsWith("themes/twenty")).filter(
@@ -1896,7 +1896,7 @@ const Ko = async (e, { pluginData: r, pluginZipFile: s, ifAlreadyInstalled: n, o
1896
1896
  [_e(n, "wp-config.php")]: "wp-config.php"
1897
1897
  } : {}
1898
1898
  });
1899
- await Qo(
1899
+ await Jo(
1900
1900
  e,
1901
1901
  `zipDir(${t.wpContentPath}, ${t.zipPath}, array(
1902
1902
  'exclude_paths' => ${t.exceptPaths},
@@ -1906,7 +1906,7 @@ const Ko = async (e, { pluginData: r, pluginZipFile: s, ifAlreadyInstalled: n, o
1906
1906
  );
1907
1907
  const p = await e.readFileAsBuffer(s);
1908
1908
  return e.unlink(s), p;
1909
- }, Xo = `<?php
1909
+ }, Qo = `<?php
1910
1910
 
1911
1911
  function zipDir($root, $output, $options = array())
1912
1912
  {
@@ -1966,21 +1966,31 @@ function join_paths()
1966
1966
  return preg_replace('#/+#', '/', join('/', $paths));
1967
1967
  }
1968
1968
  `;
1969
- async function Qo(e, r) {
1969
+ async function Jo(e, r) {
1970
1970
  return await e.run({
1971
- code: Xo + r
1971
+ code: Qo + r
1972
1972
  });
1973
1973
  }
1974
- const Jo = async (e, { language: r }, s) => {
1974
+ const ep = "nightly", rp = "6.7.1-RC1", qn = {
1975
+ nightly: ep,
1976
+ beta: rp,
1977
+ "6.7": "6.7.1",
1978
+ "6.6": "6.6.2",
1979
+ "6.5": "6.5.5",
1980
+ "6.4": "6.4.5",
1981
+ "6.3": "6.3.5"
1982
+ }, tp = Object.keys(
1983
+ qn
1984
+ ), sp = tp.filter((e) => e.match(/^\d/))[0], ip = (e, r, s = qn.beta, n = sp) => (e.match(/^(\d.\d(.\d)?)-(alpha|beta|nightly|rc).*$/i) ? e = s.replace(/^(\d.\d)(.\d+)/i, "$1").replace(/(rc|beta).*$/i, "RC") : e.match(/^(\d+\.\d+)(?:\.\d+)?$/) || (e = n), `https://downloads.wordpress.org/translation/core/${e}/${r}.zip`), np = async (e, { language: r }, s) => {
1975
1985
  s == null || s.tracker.setCaption((s == null ? void 0 : s.initialCaption) || "Translating"), await e.defineConstant("WPLANG", r);
1976
- const n = await e.documentRoot, i = [
1977
- {
1978
- url: `https://downloads.wordpress.org/translation/core/${(await e.run({
1979
- code: `<?php
1986
+ const n = await e.documentRoot, o = (await e.run({
1987
+ code: `<?php
1980
1988
  require '${n}/wp-includes/version.php';
1981
1989
  echo $wp_version;
1982
1990
  `
1983
- })).text}/${r}.zip`,
1991
+ })).text, i = [
1992
+ {
1993
+ url: ip(o, r),
1984
1994
  type: "core"
1985
1995
  }
1986
1996
  ], p = (await e.run({
@@ -2055,42 +2065,42 @@ const Jo = async (e, { language: r }, s) => {
2055
2065
  );
2056
2066
  xe.warn(`Error downloading translations for ${g}: ${b}`);
2057
2067
  }
2058
- }, ep = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2068
+ }, ap = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2059
2069
  __proto__: null,
2060
2070
  activatePlugin: xn,
2061
2071
  activateTheme: Ln,
2062
- cp: Io,
2072
+ cp: Ho,
2063
2073
  defineSiteUrl: jn,
2064
2074
  defineWpConfigConsts: ii,
2065
- enableMultisite: Lo,
2066
- exportWXR: Mo,
2075
+ enableMultisite: Io,
2076
+ exportWXR: Ko,
2067
2077
  importThemeStarterContent: Nn,
2068
- importWordPressFiles: qo,
2069
- importWxr: Uo,
2070
- installPlugin: Ko,
2071
- installTheme: zo,
2072
- login: Go,
2073
- mkdir: $o,
2074
- mv: Ho,
2075
- request: ko,
2076
- resetData: Zo,
2078
+ importWordPressFiles: Mo,
2079
+ importWxr: qo,
2080
+ installPlugin: zo,
2081
+ installTheme: Go,
2082
+ login: Zo,
2083
+ mkdir: Ro,
2084
+ mv: $o,
2085
+ request: So,
2086
+ resetData: Vo,
2077
2087
  rm: In,
2078
- rmdir: Ro,
2079
- runPHP: vo,
2080
- runPHPWithOptions: Po,
2081
- runSql: Eo,
2082
- runWpInstallationWizard: Vo,
2083
- setSiteLanguage: Jo,
2088
+ rmdir: Do,
2089
+ runPHP: Po,
2090
+ runPHPWithOptions: Eo,
2091
+ runSql: ko,
2092
+ runWpInstallationWizard: Yo,
2093
+ setSiteLanguage: np,
2084
2094
  setSiteOptions: Hn,
2085
2095
  unzip: pi,
2086
- updateUserMeta: Co,
2096
+ updateUserMeta: Oo,
2087
2097
  wpCLI: Rn,
2088
2098
  writeFile: Dn,
2089
- writeFiles: Wo,
2090
- zipWpContent: Yo
2091
- }, Symbol.toStringTag, { value: "Module" })), rp = 5 * 1024 * 1024;
2092
- function tp(e, r) {
2093
- const s = e.headers.get("content-length") || "", n = parseInt(s, 10) || rp;
2099
+ writeFiles: Uo,
2100
+ zipWpContent: Xo
2101
+ }, Symbol.toStringTag, { value: "Module" })), op = 5 * 1024 * 1024;
2102
+ function pp(e, r) {
2103
+ const s = e.headers.get("content-length") || "", n = parseInt(s, 10) || op;
2094
2104
  function o(i, t) {
2095
2105
  r(
2096
2106
  new CustomEvent("progress", {
@@ -2298,7 +2308,7 @@ class ps extends EventTarget {
2298
2308
  this.dispatchEvent(new CustomEvent("done"));
2299
2309
  }
2300
2310
  }
2301
- function sp(e) {
2311
+ function fp(e) {
2302
2312
  let r = [e];
2303
2313
  return {
2304
2314
  next() {
@@ -2312,14 +2322,14 @@ function sp(e) {
2312
2322
  }
2313
2323
  };
2314
2324
  }
2315
- function qn(e) {
2316
- return e[Symbol.asyncIterator] ? e[Symbol.asyncIterator]() : e[Symbol.iterator] ? e[Symbol.iterator]() : e.next ? e : sp(e);
2325
+ function Mn(e) {
2326
+ return e[Symbol.asyncIterator] ? e[Symbol.asyncIterator]() : e[Symbol.iterator] ? e[Symbol.iterator]() : e.next ? e : fp(e);
2317
2327
  }
2318
- class Mn {
2328
+ class Kn {
2319
2329
  constructor(r) {
2320
2330
  if (typeof Buffer > "u")
2321
2331
  throw new Error("Missing Buffer dependency");
2322
- this.stream = qn(r), this.buffer = null, this.cursor = 0, this.undoCursor = 0, this.started = !1, this._ended = !1, this._discardedBytes = 0;
2332
+ this.stream = Mn(r), this.buffer = null, this.cursor = 0, this.undoCursor = 0, this.started = !1, this._ended = !1, this._discardedBytes = 0;
2323
2333
  }
2324
2334
  eof() {
2325
2335
  return this._ended && this.cursor === this.buffer.length;
@@ -2360,7 +2370,7 @@ class Mn {
2360
2370
  if (this._ended)
2361
2371
  return;
2362
2372
  const s = [this.buffer];
2363
- for (; this.cursor + r > ip(s); ) {
2373
+ for (; this.cursor + r > lp(s); ) {
2364
2374
  const n = await this._next();
2365
2375
  if (this._ended)
2366
2376
  break;
@@ -2375,10 +2385,10 @@ class Mn {
2375
2385
  this.buffer = await this._next();
2376
2386
  }
2377
2387
  }
2378
- function ip(e) {
2388
+ function lp(e) {
2379
2389
  return e.reduce((r, s) => r + s.length, 0);
2380
2390
  }
2381
- function np(e, r) {
2391
+ function up(e, r) {
2382
2392
  const s = r.toString(16);
2383
2393
  return "0".repeat(e - s.length) + s;
2384
2394
  }
@@ -2391,11 +2401,11 @@ class Ce {
2391
2401
  }
2392
2402
  static encode(r) {
2393
2403
  typeof r == "string" && (r = Buffer.from(r));
2394
- const s = r.length + 4, n = np(4, s);
2404
+ const s = r.length + 4, n = up(4, s);
2395
2405
  return Buffer.concat([Buffer.from(n, "utf8"), r]);
2396
2406
  }
2397
2407
  static streamReader(r) {
2398
- const s = new Mn(r);
2408
+ const s = new Kn(r);
2399
2409
  return async function() {
2400
2410
  try {
2401
2411
  let o = await s.read(4);
@@ -2452,19 +2462,19 @@ class fs extends it {
2452
2462
  }
2453
2463
  }
2454
2464
  fs.code = "UnsafeFilepathError";
2455
- function Kn(e, r) {
2465
+ function zn(e, r) {
2456
2466
  return -(e < r) || +(e > r);
2457
2467
  }
2458
- function ap(e, r) {
2459
- return Kn(e.path, r.path);
2468
+ function cp(e, r) {
2469
+ return zn(e.path, r.path);
2460
2470
  }
2461
- function op(e, r) {
2462
- return Kn(Ci(e), Ci(r));
2471
+ function dp(e, r) {
2472
+ return zn(Ci(e), Ci(r));
2463
2473
  }
2464
2474
  function Ci(e) {
2465
2475
  return e.mode === "040000" ? e.path + "/" : e.path;
2466
2476
  }
2467
- function zn(e) {
2477
+ function Gn(e) {
2468
2478
  switch (e) {
2469
2479
  case "040000":
2470
2480
  return "tree";
@@ -2479,7 +2489,7 @@ function zn(e) {
2479
2489
  }
2480
2490
  throw new be(`Unexpected GitTree entry mode: ${e}`);
2481
2491
  }
2482
- function pp(e) {
2492
+ function hp(e) {
2483
2493
  const r = [];
2484
2494
  let s = 0;
2485
2495
  for (; s < e.length; ) {
@@ -2495,7 +2505,7 @@ function pp(e) {
2495
2505
  );
2496
2506
  let i = e.slice(s, n).toString("utf8");
2497
2507
  i === "40000" && (i = "040000");
2498
- const t = zn(i), p = e.slice(n + 1, o).toString("utf8");
2508
+ const t = Gn(i), p = e.slice(n + 1, o).toString("utf8");
2499
2509
  if (p.includes("\\") || p.includes("/"))
2500
2510
  throw new fs(p);
2501
2511
  const y = e.slice(o + 1, o + 21).toString("hex");
@@ -2503,7 +2513,7 @@ function pp(e) {
2503
2513
  }
2504
2514
  return r;
2505
2515
  }
2506
- function fp(e) {
2516
+ function yp(e) {
2507
2517
  if (typeof e == "number" && (e = e.toString(8)), e.match(/^0?4.*/))
2508
2518
  return "040000";
2509
2519
  if (e.match(/^1006.*/))
@@ -2516,18 +2526,18 @@ function fp(e) {
2516
2526
  return "160000";
2517
2527
  throw new be(`Could not understand file mode: ${e}`);
2518
2528
  }
2519
- function lp(e) {
2520
- return !e.oid && e.sha && (e.oid = e.sha), e.mode = fp(e.mode), e.type || (e.type = zn(e.mode)), e;
2529
+ function mp(e) {
2530
+ return !e.oid && e.sha && (e.oid = e.sha), e.mode = yp(e.mode), e.type || (e.type = Gn(e.mode)), e;
2521
2531
  }
2522
2532
  class fi {
2523
2533
  constructor(r) {
2524
2534
  if (Buffer.isBuffer(r))
2525
- this._entries = pp(r);
2535
+ this._entries = hp(r);
2526
2536
  else if (Array.isArray(r))
2527
- this._entries = r.map(lp);
2537
+ this._entries = r.map(mp);
2528
2538
  else
2529
2539
  throw new be("invalid type passed to GitTree constructor");
2530
- this._entries.sort(ap);
2540
+ this._entries.sort(cp);
2531
2541
  }
2532
2542
  static from(r) {
2533
2543
  return new fi(r);
@@ -2538,7 +2548,7 @@ class fi {
2538
2548
  }
2539
2549
  toObject() {
2540
2550
  const r = [...this._entries];
2541
- return r.sort(op), Buffer.concat(
2551
+ return r.sort(dp), Buffer.concat(
2542
2552
  r.map((s) => {
2543
2553
  const n = Buffer.from(s.mode.replace(/^0/, "")), o = Buffer.from(" "), i = Buffer.from(s.path, "utf8"), t = Buffer.from([0]), p = Buffer.from(s.oid, "hex");
2544
2554
  return Buffer.concat([n, o, i, t, p]);
@@ -2557,20 +2567,20 @@ class fi {
2557
2567
  }
2558
2568
  }
2559
2569
  function Ms({ name: e, email: r, timestamp: s, timezoneOffset: n }) {
2560
- return n = up(n), `${e} <${r}> ${s} ${n}`;
2570
+ return n = _p(n), `${e} <${r}> ${s} ${n}`;
2561
2571
  }
2562
- function up(e) {
2563
- const r = cp(dp(e));
2572
+ function _p(e) {
2573
+ const r = gp(wp(e));
2564
2574
  e = Math.abs(e);
2565
2575
  const s = Math.floor(e / 60);
2566
2576
  e -= s * 60;
2567
2577
  let n = String(s), o = String(e);
2568
2578
  return n.length < 2 && (n = "0" + n), o.length < 2 && (o = "0" + o), (r === -1 ? "-" : "+") + n + o;
2569
2579
  }
2570
- function cp(e) {
2580
+ function gp(e) {
2571
2581
  return Math.sign(e) || (Object.is(e, -0) ? -1 : 1);
2572
2582
  }
2573
- function dp(e) {
2583
+ function wp(e) {
2574
2584
  return e === 0 ? e : -e;
2575
2585
  }
2576
2586
  function mr(e) {
@@ -2585,14 +2595,14 @@ function Jt(e) {
2585
2595
  name: r,
2586
2596
  email: s,
2587
2597
  timestamp: Number(n),
2588
- timezoneOffset: hp(o)
2598
+ timezoneOffset: bp(o)
2589
2599
  };
2590
2600
  }
2591
- function hp(e) {
2601
+ function bp(e) {
2592
2602
  let [, r, s, n] = e.match(/(\+|-)(\d\d)(\d\d)/);
2593
- return n = (r === "+" ? 1 : -1) * (Number(s) * 60 + Number(n)), yp(n);
2603
+ return n = (r === "+" ? 1 : -1) * (Number(s) * 60 + Number(n)), vp(n);
2594
2604
  }
2595
- function yp(e) {
2605
+ function vp(e) {
2596
2606
  return e === 0 ? e : -e;
2597
2607
  }
2598
2608
  class ct {
@@ -2690,7 +2700,7 @@ function vs(e) {
2690
2700
  `) + `
2691
2701
  `;
2692
2702
  }
2693
- function mp(e) {
2703
+ function Pp(e) {
2694
2704
  return e.split(`
2695
2705
  `).map((r) => r.replace(/^ /, "")).join(`
2696
2706
  `);
@@ -2799,7 +2809,7 @@ gpgsig`)), n = r.slice(
2799
2809
  this._commit.indexOf("-----BEGIN PGP SIGNATURE-----"),
2800
2810
  this._commit.indexOf("-----END PGP SIGNATURE-----") + 27
2801
2811
  );
2802
- return mp(r);
2812
+ return Pp(r);
2803
2813
  }
2804
2814
  static async sign(r, s, n) {
2805
2815
  const o = r.withoutSignature(), i = Ne.justMessage(r._commit);
@@ -2811,7 +2821,7 @@ gpgsig` + vs(t) + `
2811
2821
  return Ne.from(y);
2812
2822
  }
2813
2823
  }
2814
- var Gn = {};
2824
+ var Zn = {};
2815
2825
  /*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */
2816
2826
  (function(e) {
2817
2827
  (function(r) {
@@ -2856,9 +2866,9 @@ var Gn = {};
2856
2866
  }
2857
2867
  r.table = n, r.bstr = O, r.buf = A, r.str = B;
2858
2868
  });
2859
- })(Gn);
2860
- const _p = /* @__PURE__ */ ai(Gn);
2861
- class gp {
2869
+ })(Zn);
2870
+ const Ep = /* @__PURE__ */ ai(Zn);
2871
+ class kp {
2862
2872
  static wrap({ type: r, object: s }) {
2863
2873
  return Buffer.concat([
2864
2874
  Buffer.from(`${r} ${s.byteLength.toString()}\0`),
@@ -2931,7 +2941,7 @@ class Lr {
2931
2941
  return this._start += 4, s;
2932
2942
  }
2933
2943
  }
2934
- function wp(e, r) {
2944
+ function Sp(e, r) {
2935
2945
  const s = new Lr(e), n = Oi(s);
2936
2946
  if (n !== r.byteLength)
2937
2947
  throw new be(
@@ -3029,27 +3039,27 @@ var wr = {};
3029
3039
  i ? (e.Buf8 = Uint8Array, e.Buf16 = Uint16Array, e.Buf32 = Int32Array, e.assign(e, n)) : (e.Buf8 = Array, e.Buf16 = Array, e.Buf32 = Array, e.assign(e, o));
3030
3040
  }, e.setTyped(r);
3031
3041
  })(wr);
3032
- var Tt = {}, ur = {}, nt = {}, bp = wr, vp = 4, Ii = 0, Hi = 1, Pp = 2;
3042
+ var Tt = {}, ur = {}, nt = {}, Ap = wr, Tp = 4, Ii = 0, Hi = 1, Cp = 2;
3033
3043
  function at(e) {
3034
3044
  for (var r = e.length; --r >= 0; )
3035
3045
  e[r] = 0;
3036
3046
  }
3037
- var Ep = 0, Zn = 1, kp = 2, Sp = 3, Ap = 258, li = 29, Ct = 256, wt = Ct + 1 + li, rt = 30, ui = 19, Vn = 2 * wt + 1, Hr = 15, Ps = 16, Tp = 7, ci = 256, Yn = 16, Xn = 17, Qn = 18, Ks = (
3047
+ var Op = 0, Vn = 1, xp = 2, Lp = 3, Ip = 258, li = 29, Ct = 256, wt = Ct + 1 + li, rt = 30, ui = 19, Yn = 2 * wt + 1, Hr = 15, Ps = 16, Hp = 7, ci = 256, Xn = 16, Qn = 17, Jn = 18, Ks = (
3038
3048
  /* extra bits for each length code */
3039
3049
  [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]
3040
3050
  ), qt = (
3041
3051
  /* extra bits for each distance code */
3042
3052
  [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]
3043
- ), Cp = (
3053
+ ), $p = (
3044
3054
  /* extra bits for each bit length code */
3045
3055
  [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]
3046
- ), Jn = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], Op = 512, _r = new Array((wt + 2) * 2);
3056
+ ), ea = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], Rp = 512, _r = new Array((wt + 2) * 2);
3047
3057
  at(_r);
3048
3058
  var dt = new Array(rt * 2);
3049
3059
  at(dt);
3050
- var bt = new Array(Op);
3060
+ var bt = new Array(Rp);
3051
3061
  at(bt);
3052
- var vt = new Array(Ap - Sp + 1);
3062
+ var vt = new Array(Ip - Lp + 1);
3053
3063
  at(vt);
3054
3064
  var di = new Array(li);
3055
3065
  at(di);
@@ -3058,11 +3068,11 @@ at(es);
3058
3068
  function Es(e, r, s, n, o) {
3059
3069
  this.static_tree = e, this.extra_bits = r, this.extra_base = s, this.elems = n, this.max_length = o, this.has_stree = e && e.length;
3060
3070
  }
3061
- var ea, ra, ta;
3071
+ var ra, ta, sa;
3062
3072
  function ks(e, r) {
3063
3073
  this.dyn_tree = e, this.max_code = 0, this.stat_desc = r;
3064
3074
  }
3065
- function sa(e) {
3075
+ function ia(e) {
3066
3076
  return e < 256 ? bt[e] : bt[256 + (e >>> 7)];
3067
3077
  }
3068
3078
  function Pt(e, r) {
@@ -3079,21 +3089,21 @@ function pr(e, r, s) {
3079
3089
  /*.Len*/
3080
3090
  );
3081
3091
  }
3082
- function ia(e, r) {
3092
+ function na(e, r) {
3083
3093
  var s = 0;
3084
3094
  do
3085
3095
  s |= e & 1, e >>>= 1, s <<= 1;
3086
3096
  while (--r > 0);
3087
3097
  return s >>> 1;
3088
3098
  }
3089
- function xp(e) {
3099
+ function Dp(e) {
3090
3100
  e.bi_valid === 16 ? (Pt(e, e.bi_buf), e.bi_buf = 0, e.bi_valid = 0) : e.bi_valid >= 8 && (e.pending_buf[e.pending++] = e.bi_buf & 255, e.bi_buf >>= 8, e.bi_valid -= 8);
3091
3101
  }
3092
- function Lp(e, r) {
3102
+ function Bp(e, r) {
3093
3103
  var s = r.dyn_tree, n = r.max_code, o = r.stat_desc.static_tree, i = r.stat_desc.has_stree, t = r.stat_desc.extra_bits, p = r.stat_desc.extra_base, y = r.stat_desc.max_length, u, d, g, b, w, H, P = 0;
3094
3104
  for (b = 0; b <= Hr; b++)
3095
3105
  e.bl_count[b] = 0;
3096
- for (s[e.heap[e.heap_max] * 2 + 1] = 0, u = e.heap_max + 1; u < Vn; u++)
3106
+ for (s[e.heap[e.heap_max] * 2 + 1] = 0, u = e.heap_max + 1; u < Yn; u++)
3097
3107
  d = e.heap[u], b = s[s[d * 2 + 1] * 2 + 1] + 1, b > y && (b = y, P++), s[d * 2 + 1] = b, !(d > n) && (e.bl_count[b]++, w = 0, d >= p && (w = t[d - p]), H = s[d * 2], e.opt_len += H * (b + w), i && (e.static_len += H * (o[d * 2 + 1] + w)));
3098
3108
  if (P !== 0) {
3099
3109
  do {
@@ -3106,16 +3116,16 @@ function Lp(e, r) {
3106
3116
  g = e.heap[--u], !(g > n) && (s[g * 2 + 1] !== b && (e.opt_len += (b - s[g * 2 + 1]) * s[g * 2], s[g * 2 + 1] = b), d--);
3107
3117
  }
3108
3118
  }
3109
- function na(e, r, s) {
3119
+ function aa(e, r, s) {
3110
3120
  var n = new Array(Hr + 1), o = 0, i, t;
3111
3121
  for (i = 1; i <= Hr; i++)
3112
3122
  n[i] = o = o + s[i - 1] << 1;
3113
3123
  for (t = 0; t <= r; t++) {
3114
3124
  var p = e[t * 2 + 1];
3115
- p !== 0 && (e[t * 2] = ia(n[p]++, p));
3125
+ p !== 0 && (e[t * 2] = na(n[p]++, p));
3116
3126
  }
3117
3127
  }
3118
- function Ip() {
3128
+ function Fp() {
3119
3129
  var e, r, s, n, o, i = new Array(Hr + 1);
3120
3130
  for (s = 0, n = 0; n < li - 1; n++)
3121
3131
  for (di[n] = s, e = 0; e < 1 << Ks[n]; e++)
@@ -3136,11 +3146,11 @@ function Ip() {
3136
3146
  _r[e * 2 + 1] = 7, e++, i[7]++;
3137
3147
  for (; e <= 287; )
3138
3148
  _r[e * 2 + 1] = 8, e++, i[8]++;
3139
- for (na(_r, wt + 1, i), e = 0; e < rt; e++)
3140
- dt[e * 2 + 1] = 5, dt[e * 2] = ia(e, 5);
3141
- ea = new Es(_r, Ks, Ct + 1, wt, Hr), ra = new Es(dt, qt, 0, rt, Hr), ta = new Es(new Array(0), Cp, 0, ui, Tp);
3149
+ for (aa(_r, wt + 1, i), e = 0; e < rt; e++)
3150
+ dt[e * 2 + 1] = 5, dt[e * 2] = na(e, 5);
3151
+ ra = new Es(_r, Ks, Ct + 1, wt, Hr), ta = new Es(dt, qt, 0, rt, Hr), sa = new Es(new Array(0), $p, 0, ui, Hp);
3142
3152
  }
3143
- function aa(e) {
3153
+ function oa(e) {
3144
3154
  var r;
3145
3155
  for (r = 0; r < wt; r++)
3146
3156
  e.dyn_ltree[r * 2] = 0;
@@ -3150,11 +3160,11 @@ function aa(e) {
3150
3160
  e.bl_tree[r * 2] = 0;
3151
3161
  e.dyn_ltree[ci * 2] = 1, e.opt_len = e.static_len = 0, e.last_lit = e.matches = 0;
3152
3162
  }
3153
- function oa(e) {
3163
+ function pa(e) {
3154
3164
  e.bi_valid > 8 ? Pt(e, e.bi_buf) : e.bi_valid > 0 && (e.pending_buf[e.pending++] = e.bi_buf), e.bi_buf = 0, e.bi_valid = 0;
3155
3165
  }
3156
- function Hp(e, r, s, n) {
3157
- oa(e), n && (Pt(e, s), Pt(e, ~s)), bp.arraySet(e.pending_buf, e.window, r, s, e.pending), e.pending += s;
3166
+ function jp(e, r, s, n) {
3167
+ pa(e), n && (Pt(e, s), Pt(e, ~s)), Ap.arraySet(e.pending_buf, e.window, r, s, e.pending), e.pending += s;
3158
3168
  }
3159
3169
  function $i(e, r, s, n) {
3160
3170
  var o = r * 2, i = s * 2;
@@ -3169,13 +3179,13 @@ function Ri(e, r, s) {
3169
3179
  var n, o, i = 0, t, p;
3170
3180
  if (e.last_lit !== 0)
3171
3181
  do
3172
- n = e.pending_buf[e.d_buf + i * 2] << 8 | e.pending_buf[e.d_buf + i * 2 + 1], o = e.pending_buf[e.l_buf + i], i++, n === 0 ? pr(e, o, r) : (t = vt[o], pr(e, t + Ct + 1, r), p = Ks[t], p !== 0 && (o -= di[t], Be(e, o, p)), n--, t = sa(n), pr(e, t, s), p = qt[t], p !== 0 && (n -= es[t], Be(e, n, p)));
3182
+ n = e.pending_buf[e.d_buf + i * 2] << 8 | e.pending_buf[e.d_buf + i * 2 + 1], o = e.pending_buf[e.l_buf + i], i++, n === 0 ? pr(e, o, r) : (t = vt[o], pr(e, t + Ct + 1, r), p = Ks[t], p !== 0 && (o -= di[t], Be(e, o, p)), n--, t = ia(n), pr(e, t, s), p = qt[t], p !== 0 && (n -= es[t], Be(e, n, p)));
3173
3183
  while (i < e.last_lit);
3174
3184
  pr(e, ci, r);
3175
3185
  }
3176
3186
  function zs(e, r) {
3177
3187
  var s = r.dyn_tree, n = r.stat_desc.static_tree, o = r.stat_desc.has_stree, i = r.stat_desc.elems, t, p, y = -1, u;
3178
- for (e.heap_len = 0, e.heap_max = Vn, t = 0; t < i; t++)
3188
+ for (e.heap_len = 0, e.heap_max = Yn, t = 0; t < i; t++)
3179
3189
  s[t * 2] !== 0 ? (e.heap[++e.heap_len] = y = t, e.depth[t] = 0) : s[t * 2 + 1] = 0;
3180
3190
  for (; e.heap_len < 2; )
3181
3191
  u = e.heap[++e.heap_len] = y < 2 ? ++y : 0, s[u * 2] = 1, e.depth[u] = 0, e.opt_len--, o && (e.static_len -= n[u * 2 + 1]);
@@ -3210,12 +3220,12 @@ function zs(e, r) {
3210
3220
  e.heap[--e.heap_max] = e.heap[
3211
3221
  1
3212
3222
  /*SMALLEST*/
3213
- ], Lp(e, r), na(s, y, e.bl_count);
3223
+ ], Bp(e, r), aa(s, y, e.bl_count);
3214
3224
  }
3215
3225
  function Di(e, r, s) {
3216
3226
  var n, o = -1, i, t = r[0 * 2 + 1], p = 0, y = 7, u = 4;
3217
3227
  for (t === 0 && (y = 138, u = 3), r[(s + 1) * 2 + 1] = 65535, n = 0; n <= s; n++)
3218
- i = t, t = r[(n + 1) * 2 + 1], !(++p < y && i === t) && (p < u ? e.bl_tree[i * 2] += p : i !== 0 ? (i !== o && e.bl_tree[i * 2]++, e.bl_tree[Yn * 2]++) : p <= 10 ? e.bl_tree[Xn * 2]++ : e.bl_tree[Qn * 2]++, p = 0, o = i, t === 0 ? (y = 138, u = 3) : i === t ? (y = 6, u = 3) : (y = 7, u = 4));
3228
+ i = t, t = r[(n + 1) * 2 + 1], !(++p < y && i === t) && (p < u ? e.bl_tree[i * 2] += p : i !== 0 ? (i !== o && e.bl_tree[i * 2]++, e.bl_tree[Xn * 2]++) : p <= 10 ? e.bl_tree[Qn * 2]++ : e.bl_tree[Jn * 2]++, p = 0, o = i, t === 0 ? (y = 138, u = 3) : i === t ? (y = 6, u = 3) : (y = 7, u = 4));
3219
3229
  }
3220
3230
  function Bi(e, r, s) {
3221
3231
  var n, o = -1, i, t = r[0 * 2 + 1], p = 0, y = 7, u = 4;
@@ -3226,23 +3236,23 @@ function Bi(e, r, s) {
3226
3236
  pr(e, i, e.bl_tree);
3227
3237
  while (--p !== 0);
3228
3238
  else
3229
- i !== 0 ? (i !== o && (pr(e, i, e.bl_tree), p--), pr(e, Yn, e.bl_tree), Be(e, p - 3, 2)) : p <= 10 ? (pr(e, Xn, e.bl_tree), Be(e, p - 3, 3)) : (pr(e, Qn, e.bl_tree), Be(e, p - 11, 7));
3239
+ i !== 0 ? (i !== o && (pr(e, i, e.bl_tree), p--), pr(e, Xn, e.bl_tree), Be(e, p - 3, 2)) : p <= 10 ? (pr(e, Qn, e.bl_tree), Be(e, p - 3, 3)) : (pr(e, Jn, e.bl_tree), Be(e, p - 11, 7));
3230
3240
  p = 0, o = i, t === 0 ? (y = 138, u = 3) : i === t ? (y = 6, u = 3) : (y = 7, u = 4);
3231
3241
  }
3232
3242
  }
3233
- function $p(e) {
3243
+ function Np(e) {
3234
3244
  var r;
3235
- for (Di(e, e.dyn_ltree, e.l_desc.max_code), Di(e, e.dyn_dtree, e.d_desc.max_code), zs(e, e.bl_desc), r = ui - 1; r >= 3 && e.bl_tree[Jn[r] * 2 + 1] === 0; r--)
3245
+ for (Di(e, e.dyn_ltree, e.l_desc.max_code), Di(e, e.dyn_dtree, e.d_desc.max_code), zs(e, e.bl_desc), r = ui - 1; r >= 3 && e.bl_tree[ea[r] * 2 + 1] === 0; r--)
3236
3246
  ;
3237
3247
  return e.opt_len += 3 * (r + 1) + 5 + 5 + 4, r;
3238
3248
  }
3239
- function Rp(e, r, s, n) {
3249
+ function Wp(e, r, s, n) {
3240
3250
  var o;
3241
3251
  for (Be(e, r - 257, 5), Be(e, s - 1, 5), Be(e, n - 4, 4), o = 0; o < n; o++)
3242
- Be(e, e.bl_tree[Jn[o] * 2 + 1], 3);
3252
+ Be(e, e.bl_tree[ea[o] * 2 + 1], 3);
3243
3253
  Bi(e, e.dyn_ltree, r - 1), Bi(e, e.dyn_dtree, s - 1);
3244
3254
  }
3245
- function Dp(e) {
3255
+ function Up(e) {
3246
3256
  var r = 4093624447, s;
3247
3257
  for (s = 0; s <= 31; s++, r >>>= 1)
3248
3258
  if (r & 1 && e.dyn_ltree[s * 2] !== 0)
@@ -3255,28 +3265,28 @@ function Dp(e) {
3255
3265
  return Ii;
3256
3266
  }
3257
3267
  var Fi = !1;
3258
- function Bp(e) {
3259
- Fi || (Ip(), Fi = !0), e.l_desc = new ks(e.dyn_ltree, ea), e.d_desc = new ks(e.dyn_dtree, ra), e.bl_desc = new ks(e.bl_tree, ta), e.bi_buf = 0, e.bi_valid = 0, aa(e);
3268
+ function qp(e) {
3269
+ Fi || (Fp(), Fi = !0), e.l_desc = new ks(e.dyn_ltree, ra), e.d_desc = new ks(e.dyn_dtree, ta), e.bl_desc = new ks(e.bl_tree, sa), e.bi_buf = 0, e.bi_valid = 0, oa(e);
3260
3270
  }
3261
- function pa(e, r, s, n) {
3262
- Be(e, (Ep << 1) + (n ? 1 : 0), 3), Hp(e, r, s, !0);
3271
+ function fa(e, r, s, n) {
3272
+ Be(e, (Op << 1) + (n ? 1 : 0), 3), jp(e, r, s, !0);
3263
3273
  }
3264
- function Fp(e) {
3265
- Be(e, Zn << 1, 3), pr(e, ci, _r), xp(e);
3274
+ function Mp(e) {
3275
+ Be(e, Vn << 1, 3), pr(e, ci, _r), Dp(e);
3266
3276
  }
3267
- function jp(e, r, s, n) {
3277
+ function Kp(e, r, s, n) {
3268
3278
  var o, i, t = 0;
3269
- e.level > 0 ? (e.strm.data_type === Pp && (e.strm.data_type = Dp(e)), zs(e, e.l_desc), zs(e, e.d_desc), t = $p(e), o = e.opt_len + 3 + 7 >>> 3, i = e.static_len + 3 + 7 >>> 3, i <= o && (o = i)) : o = i = s + 5, s + 4 <= o && r !== -1 ? pa(e, r, s, n) : e.strategy === vp || i === o ? (Be(e, (Zn << 1) + (n ? 1 : 0), 3), Ri(e, _r, dt)) : (Be(e, (kp << 1) + (n ? 1 : 0), 3), Rp(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, t + 1), Ri(e, e.dyn_ltree, e.dyn_dtree)), aa(e), n && oa(e);
3279
+ e.level > 0 ? (e.strm.data_type === Cp && (e.strm.data_type = Up(e)), zs(e, e.l_desc), zs(e, e.d_desc), t = Np(e), o = e.opt_len + 3 + 7 >>> 3, i = e.static_len + 3 + 7 >>> 3, i <= o && (o = i)) : o = i = s + 5, s + 4 <= o && r !== -1 ? fa(e, r, s, n) : e.strategy === Tp || i === o ? (Be(e, (Vn << 1) + (n ? 1 : 0), 3), Ri(e, _r, dt)) : (Be(e, (xp << 1) + (n ? 1 : 0), 3), Wp(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, t + 1), Ri(e, e.dyn_ltree, e.dyn_dtree)), oa(e), n && pa(e);
3270
3280
  }
3271
- function Np(e, r, s) {
3272
- return e.pending_buf[e.d_buf + e.last_lit * 2] = r >>> 8 & 255, e.pending_buf[e.d_buf + e.last_lit * 2 + 1] = r & 255, e.pending_buf[e.l_buf + e.last_lit] = s & 255, e.last_lit++, r === 0 ? e.dyn_ltree[s * 2]++ : (e.matches++, r--, e.dyn_ltree[(vt[s] + Ct + 1) * 2]++, e.dyn_dtree[sa(r) * 2]++), e.last_lit === e.lit_bufsize - 1;
3281
+ function zp(e, r, s) {
3282
+ return e.pending_buf[e.d_buf + e.last_lit * 2] = r >>> 8 & 255, e.pending_buf[e.d_buf + e.last_lit * 2 + 1] = r & 255, e.pending_buf[e.l_buf + e.last_lit] = s & 255, e.last_lit++, r === 0 ? e.dyn_ltree[s * 2]++ : (e.matches++, r--, e.dyn_ltree[(vt[s] + Ct + 1) * 2]++, e.dyn_dtree[ia(r) * 2]++), e.last_lit === e.lit_bufsize - 1;
3273
3283
  }
3274
- nt._tr_init = Bp;
3275
- nt._tr_stored_block = pa;
3276
- nt._tr_flush_block = jp;
3277
- nt._tr_tally = Np;
3278
- nt._tr_align = Fp;
3279
- function Wp(e, r, s, n) {
3284
+ nt._tr_init = qp;
3285
+ nt._tr_stored_block = fa;
3286
+ nt._tr_flush_block = Kp;
3287
+ nt._tr_tally = zp;
3288
+ nt._tr_align = Mp;
3289
+ function Gp(e, r, s, n) {
3280
3290
  for (var o = e & 65535 | 0, i = e >>> 16 & 65535 | 0, t = 0; s !== 0; ) {
3281
3291
  t = s > 2e3 ? 2e3 : s, s -= t;
3282
3292
  do
@@ -3286,8 +3296,8 @@ function Wp(e, r, s, n) {
3286
3296
  }
3287
3297
  return o | i << 16 | 0;
3288
3298
  }
3289
- var fa = Wp;
3290
- function Up() {
3299
+ var la = Gp;
3300
+ function Zp() {
3291
3301
  for (var e, r = [], s = 0; s < 256; s++) {
3292
3302
  e = s;
3293
3303
  for (var n = 0; n < 8; n++)
@@ -3296,15 +3306,15 @@ function Up() {
3296
3306
  }
3297
3307
  return r;
3298
3308
  }
3299
- var qp = Up();
3300
- function Mp(e, r, s, n) {
3301
- var o = qp, i = n + s;
3309
+ var Vp = Zp();
3310
+ function Yp(e, r, s, n) {
3311
+ var o = Vp, i = n + s;
3302
3312
  e ^= -1;
3303
3313
  for (var t = n; t < i; t++)
3304
3314
  e = e >>> 8 ^ o[(e ^ r[t]) & 255];
3305
3315
  return e ^ -1;
3306
3316
  }
3307
- var la = Mp, hi = {
3317
+ var ua = Yp, hi = {
3308
3318
  2: "need dictionary",
3309
3319
  /* Z_NEED_DICT 2 */
3310
3320
  1: "stream end",
@@ -3323,9 +3333,9 @@ var la = Mp, hi = {
3323
3333
  /* Z_BUF_ERROR (-5) */
3324
3334
  "-6": "incompatible version"
3325
3335
  /* Z_VERSION_ERROR (-6) */
3326
- }, Re = wr, ze = nt, ua = fa, kr = la, Kp = hi, Ur = 0, zp = 1, Gp = 3, Or = 4, ji = 5, fr = 0, Ni = 1, Ge = -2, Zp = -3, As = -5, Vp = -1, Yp = 1, Dt = 2, Xp = 3, Qp = 4, Jp = 0, ef = 2, ls = 8, rf = 9, tf = 15, sf = 8, nf = 29, af = 256, Gs = af + 1 + nf, of = 30, pf = 19, ff = 2 * Gs + 1, lf = 15, oe = 3, Tr = 258, er = Tr + oe + 1, uf = 32, us = 42, Zs = 69, Mt = 73, Kt = 91, zt = 103, $r = 113, ut = 666, Ae = 1, Ot = 2, Br = 3, ot = 4, cf = 3;
3336
+ }, Re = wr, ze = nt, ca = la, kr = ua, Xp = hi, Ur = 0, Qp = 1, Jp = 3, Or = 4, ji = 5, fr = 0, Ni = 1, Ge = -2, ef = -3, As = -5, rf = -1, tf = 1, Dt = 2, sf = 3, nf = 4, af = 0, of = 2, ls = 8, pf = 9, ff = 15, lf = 8, uf = 29, cf = 256, Gs = cf + 1 + uf, df = 30, hf = 19, yf = 2 * Gs + 1, mf = 15, oe = 3, Tr = 258, er = Tr + oe + 1, _f = 32, us = 42, Zs = 69, Mt = 73, Kt = 91, zt = 103, $r = 113, ut = 666, Ae = 1, Ot = 2, Br = 3, ot = 4, gf = 3;
3327
3337
  function Cr(e, r) {
3328
- return e.msg = Kp[r], r;
3338
+ return e.msg = Xp[r], r;
3329
3339
  }
3330
3340
  function Wi(e) {
3331
3341
  return (e << 1) - (e > 4 ? 9 : 0);
@@ -3347,11 +3357,11 @@ function fe(e, r) {
3347
3357
  function lt(e, r) {
3348
3358
  e.pending_buf[e.pending++] = r >>> 8 & 255, e.pending_buf[e.pending++] = r & 255;
3349
3359
  }
3350
- function df(e, r, s, n) {
3360
+ function wf(e, r, s, n) {
3351
3361
  var o = e.avail_in;
3352
- return o > n && (o = n), o === 0 ? 0 : (e.avail_in -= o, Re.arraySet(r, e.input, e.next_in, o, s), e.state.wrap === 1 ? e.adler = ua(e.adler, r, o, s) : e.state.wrap === 2 && (e.adler = kr(e.adler, r, o, s)), e.next_in += o, e.total_in += o, o);
3362
+ return o > n && (o = n), o === 0 ? 0 : (e.avail_in -= o, Re.arraySet(r, e.input, e.next_in, o, s), e.state.wrap === 1 ? e.adler = ca(e.adler, r, o, s) : e.state.wrap === 2 && (e.adler = kr(e.adler, r, o, s)), e.next_in += o, e.total_in += o, o);
3353
3363
  }
3354
- function ca(e, r) {
3364
+ function da(e, r) {
3355
3365
  var s = e.max_chain_length, n = e.strstart, o, i, t = e.prev_length, p = e.nice_match, y = e.strstart > e.w_size - er ? e.strstart - (e.w_size - er) : 0, u = e.window, d = e.w_mask, g = e.prev, b = e.strstart + Tr, w = u[n + t - 1], H = u[n + t];
3356
3366
  e.prev_length >= e.good_match && (s >>= 2), p > e.lookahead && (p = e.lookahead);
3357
3367
  do
@@ -3385,12 +3395,12 @@ function Fr(e) {
3385
3395
  }
3386
3396
  if (e.strm.avail_in === 0)
3387
3397
  break;
3388
- if (n = df(e.strm, e.window, e.strstart + e.lookahead, i), e.lookahead += n, e.lookahead + e.insert >= oe)
3398
+ if (n = wf(e.strm, e.window, e.strstart + e.lookahead, i), e.lookahead += n, e.lookahead + e.insert >= oe)
3389
3399
  for (t = e.strstart - e.insert, e.ins_h = e.window[t], e.ins_h = (e.ins_h << e.hash_shift ^ e.window[t + 1]) & e.hash_mask; e.insert && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[t + oe - 1]) & e.hash_mask, e.prev[t & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = t, t++, e.insert--, !(e.lookahead + e.insert < oe)); )
3390
3400
  ;
3391
3401
  } while (e.lookahead < er && e.strm.avail_in !== 0);
3392
3402
  }
3393
- function hf(e, r) {
3403
+ function bf(e, r) {
3394
3404
  var s = 65535;
3395
3405
  for (s > e.pending_buf_size - 5 && (s = e.pending_buf_size - 5); ; ) {
3396
3406
  if (e.lookahead <= 1) {
@@ -3414,7 +3424,7 @@ function Ts(e, r) {
3414
3424
  if (e.lookahead === 0)
3415
3425
  break;
3416
3426
  }
3417
- if (s = 0, e.lookahead >= oe && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + oe - 1]) & e.hash_mask, s = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), s !== 0 && e.strstart - s <= e.w_size - er && (e.match_length = ca(e, s)), e.match_length >= oe)
3427
+ if (s = 0, e.lookahead >= oe && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + oe - 1]) & e.hash_mask, s = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), s !== 0 && e.strstart - s <= e.w_size - er && (e.match_length = da(e, s)), e.match_length >= oe)
3418
3428
  if (n = ze._tr_tally(e, e.strstart - e.match_start, e.match_length - oe), e.lookahead -= e.match_length, e.match_length <= e.max_lazy_match && e.lookahead >= oe) {
3419
3429
  e.match_length--;
3420
3430
  do
@@ -3438,7 +3448,7 @@ function Vr(e, r) {
3438
3448
  if (e.lookahead === 0)
3439
3449
  break;
3440
3450
  }
3441
- if (s = 0, e.lookahead >= oe && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + oe - 1]) & e.hash_mask, s = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), e.prev_length = e.match_length, e.prev_match = e.match_start, e.match_length = oe - 1, s !== 0 && e.prev_length < e.max_lazy_match && e.strstart - s <= e.w_size - er && (e.match_length = ca(e, s), e.match_length <= 5 && (e.strategy === Yp || e.match_length === oe && e.strstart - e.match_start > 4096) && (e.match_length = oe - 1)), e.prev_length >= oe && e.match_length <= e.prev_length) {
3451
+ if (s = 0, e.lookahead >= oe && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + oe - 1]) & e.hash_mask, s = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), e.prev_length = e.match_length, e.prev_match = e.match_start, e.match_length = oe - 1, s !== 0 && e.prev_length < e.max_lazy_match && e.strstart - s <= e.w_size - er && (e.match_length = da(e, s), e.match_length <= 5 && (e.strategy === tf || e.match_length === oe && e.strstart - e.match_start > 4096) && (e.match_length = oe - 1)), e.prev_length >= oe && e.match_length <= e.prev_length) {
3442
3452
  o = e.strstart + e.lookahead - oe, n = ze._tr_tally(e, e.strstart - 1 - e.prev_match, e.prev_length - oe), e.lookahead -= e.prev_length - 1, e.prev_length -= 2;
3443
3453
  do
3444
3454
  ++e.strstart <= o && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + oe - 1]) & e.hash_mask, s = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart);
@@ -3453,7 +3463,7 @@ function Vr(e, r) {
3453
3463
  }
3454
3464
  return e.match_available && (n = ze._tr_tally(e, 0, e.window[e.strstart - 1]), e.match_available = 0), e.insert = e.strstart < oe - 1 ? e.strstart : oe - 1, r === Or ? (Le(e, !0), e.strm.avail_out === 0 ? Br : ot) : e.last_lit && (Le(e, !1), e.strm.avail_out === 0) ? Ae : Ot;
3455
3465
  }
3456
- function yf(e, r) {
3466
+ function vf(e, r) {
3457
3467
  for (var s, n, o, i, t = e.window; ; ) {
3458
3468
  if (e.lookahead <= Tr) {
3459
3469
  if (Fr(e), e.lookahead <= Tr && r === Ur)
@@ -3473,7 +3483,7 @@ function yf(e, r) {
3473
3483
  }
3474
3484
  return e.insert = 0, r === Or ? (Le(e, !0), e.strm.avail_out === 0 ? Br : ot) : e.last_lit && (Le(e, !1), e.strm.avail_out === 0) ? Ae : Ot;
3475
3485
  }
3476
- function mf(e, r) {
3486
+ function Pf(e, r) {
3477
3487
  for (var s; ; ) {
3478
3488
  if (e.lookahead === 0 && (Fr(e), e.lookahead === 0)) {
3479
3489
  if (r === Ur)
@@ -3491,7 +3501,7 @@ function nr(e, r, s, n, o) {
3491
3501
  var Jr;
3492
3502
  Jr = [
3493
3503
  /* good lazy nice chain */
3494
- new nr(0, 0, 0, 0, hf),
3504
+ new nr(0, 0, 0, 0, bf),
3495
3505
  /* 0 store only */
3496
3506
  new nr(4, 4, 8, 4, Ts),
3497
3507
  /* 1 max speed, no lazy matches */
@@ -3512,37 +3522,37 @@ Jr = [
3512
3522
  new nr(32, 258, 258, 4096, Vr)
3513
3523
  /* 9 max compression */
3514
3524
  ];
3515
- function _f(e) {
3525
+ function Ef(e) {
3516
3526
  e.window_size = 2 * e.w_size, Ar(e.head), e.max_lazy_match = Jr[e.level].max_lazy, e.good_match = Jr[e.level].good_length, e.nice_match = Jr[e.level].nice_length, e.max_chain_length = Jr[e.level].max_chain, e.strstart = 0, e.block_start = 0, e.lookahead = 0, e.insert = 0, e.match_length = e.prev_length = oe - 1, e.match_available = 0, e.ins_h = 0;
3517
3527
  }
3518
- function gf() {
3519
- this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = ls, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new Re.Buf16(ff * 2), this.dyn_dtree = new Re.Buf16((2 * of + 1) * 2), this.bl_tree = new Re.Buf16((2 * pf + 1) * 2), Ar(this.dyn_ltree), Ar(this.dyn_dtree), Ar(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new Re.Buf16(lf + 1), this.heap = new Re.Buf16(2 * Gs + 1), Ar(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new Re.Buf16(2 * Gs + 1), Ar(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
3528
+ function kf() {
3529
+ this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = ls, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new Re.Buf16(yf * 2), this.dyn_dtree = new Re.Buf16((2 * df + 1) * 2), this.bl_tree = new Re.Buf16((2 * hf + 1) * 2), Ar(this.dyn_ltree), Ar(this.dyn_dtree), Ar(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new Re.Buf16(mf + 1), this.heap = new Re.Buf16(2 * Gs + 1), Ar(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new Re.Buf16(2 * Gs + 1), Ar(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
3520
3530
  }
3521
- function da(e) {
3531
+ function ha(e) {
3522
3532
  var r;
3523
- return !e || !e.state ? Cr(e, Ge) : (e.total_in = e.total_out = 0, e.data_type = ef, r = e.state, r.pending = 0, r.pending_out = 0, r.wrap < 0 && (r.wrap = -r.wrap), r.status = r.wrap ? us : $r, e.adler = r.wrap === 2 ? 0 : 1, r.last_flush = Ur, ze._tr_init(r), fr);
3533
+ return !e || !e.state ? Cr(e, Ge) : (e.total_in = e.total_out = 0, e.data_type = of, r = e.state, r.pending = 0, r.pending_out = 0, r.wrap < 0 && (r.wrap = -r.wrap), r.status = r.wrap ? us : $r, e.adler = r.wrap === 2 ? 0 : 1, r.last_flush = Ur, ze._tr_init(r), fr);
3524
3534
  }
3525
- function ha(e) {
3526
- var r = da(e);
3527
- return r === fr && _f(e.state), r;
3535
+ function ya(e) {
3536
+ var r = ha(e);
3537
+ return r === fr && Ef(e.state), r;
3528
3538
  }
3529
- function wf(e, r) {
3539
+ function Sf(e, r) {
3530
3540
  return !e || !e.state || e.state.wrap !== 2 ? Ge : (e.state.gzhead = r, fr);
3531
3541
  }
3532
- function ya(e, r, s, n, o, i) {
3542
+ function ma(e, r, s, n, o, i) {
3533
3543
  if (!e)
3534
3544
  return Ge;
3535
3545
  var t = 1;
3536
- if (r === Vp && (r = 6), n < 0 ? (t = 0, n = -n) : n > 15 && (t = 2, n -= 16), o < 1 || o > rf || s !== ls || n < 8 || n > 15 || r < 0 || r > 9 || i < 0 || i > Qp)
3546
+ if (r === rf && (r = 6), n < 0 ? (t = 0, n = -n) : n > 15 && (t = 2, n -= 16), o < 1 || o > pf || s !== ls || n < 8 || n > 15 || r < 0 || r > 9 || i < 0 || i > nf)
3537
3547
  return Cr(e, Ge);
3538
3548
  n === 8 && (n = 9);
3539
- var p = new gf();
3540
- return e.state = p, p.strm = e, p.wrap = t, p.gzhead = null, p.w_bits = n, p.w_size = 1 << p.w_bits, p.w_mask = p.w_size - 1, p.hash_bits = o + 7, p.hash_size = 1 << p.hash_bits, p.hash_mask = p.hash_size - 1, p.hash_shift = ~~((p.hash_bits + oe - 1) / oe), p.window = new Re.Buf8(p.w_size * 2), p.head = new Re.Buf16(p.hash_size), p.prev = new Re.Buf16(p.w_size), p.lit_bufsize = 1 << o + 6, p.pending_buf_size = p.lit_bufsize * 4, p.pending_buf = new Re.Buf8(p.pending_buf_size), p.d_buf = 1 * p.lit_bufsize, p.l_buf = (1 + 2) * p.lit_bufsize, p.level = r, p.strategy = i, p.method = s, ha(e);
3549
+ var p = new kf();
3550
+ return e.state = p, p.strm = e, p.wrap = t, p.gzhead = null, p.w_bits = n, p.w_size = 1 << p.w_bits, p.w_mask = p.w_size - 1, p.hash_bits = o + 7, p.hash_size = 1 << p.hash_bits, p.hash_mask = p.hash_size - 1, p.hash_shift = ~~((p.hash_bits + oe - 1) / oe), p.window = new Re.Buf8(p.w_size * 2), p.head = new Re.Buf16(p.hash_size), p.prev = new Re.Buf16(p.w_size), p.lit_bufsize = 1 << o + 6, p.pending_buf_size = p.lit_bufsize * 4, p.pending_buf = new Re.Buf8(p.pending_buf_size), p.d_buf = 1 * p.lit_bufsize, p.l_buf = (1 + 2) * p.lit_bufsize, p.level = r, p.strategy = i, p.method = s, ya(e);
3541
3551
  }
3542
- function bf(e, r) {
3543
- return ya(e, r, ls, tf, sf, Jp);
3552
+ function Af(e, r) {
3553
+ return ma(e, r, ls, ff, lf, af);
3544
3554
  }
3545
- function vf(e, r) {
3555
+ function Tf(e, r) {
3546
3556
  var s, n, o, i;
3547
3557
  if (!e || !e.state || r > ji || r < 0)
3548
3558
  return e ? Cr(e, Ge) : Ge;
@@ -3553,10 +3563,10 @@ function vf(e, r) {
3553
3563
  e.adler = 0, fe(n, 31), fe(n, 139), fe(n, 8), n.gzhead ? (fe(
3554
3564
  n,
3555
3565
  (n.gzhead.text ? 1 : 0) + (n.gzhead.hcrc ? 2 : 0) + (n.gzhead.extra ? 4 : 0) + (n.gzhead.name ? 8 : 0) + (n.gzhead.comment ? 16 : 0)
3556
- ), fe(n, n.gzhead.time & 255), fe(n, n.gzhead.time >> 8 & 255), fe(n, n.gzhead.time >> 16 & 255), fe(n, n.gzhead.time >> 24 & 255), fe(n, n.level === 9 ? 2 : n.strategy >= Dt || n.level < 2 ? 4 : 0), fe(n, n.gzhead.os & 255), n.gzhead.extra && n.gzhead.extra.length && (fe(n, n.gzhead.extra.length & 255), fe(n, n.gzhead.extra.length >> 8 & 255)), n.gzhead.hcrc && (e.adler = kr(e.adler, n.pending_buf, n.pending, 0)), n.gzindex = 0, n.status = Zs) : (fe(n, 0), fe(n, 0), fe(n, 0), fe(n, 0), fe(n, 0), fe(n, n.level === 9 ? 2 : n.strategy >= Dt || n.level < 2 ? 4 : 0), fe(n, cf), n.status = $r);
3566
+ ), fe(n, n.gzhead.time & 255), fe(n, n.gzhead.time >> 8 & 255), fe(n, n.gzhead.time >> 16 & 255), fe(n, n.gzhead.time >> 24 & 255), fe(n, n.level === 9 ? 2 : n.strategy >= Dt || n.level < 2 ? 4 : 0), fe(n, n.gzhead.os & 255), n.gzhead.extra && n.gzhead.extra.length && (fe(n, n.gzhead.extra.length & 255), fe(n, n.gzhead.extra.length >> 8 & 255)), n.gzhead.hcrc && (e.adler = kr(e.adler, n.pending_buf, n.pending, 0)), n.gzindex = 0, n.status = Zs) : (fe(n, 0), fe(n, 0), fe(n, 0), fe(n, 0), fe(n, 0), fe(n, n.level === 9 ? 2 : n.strategy >= Dt || n.level < 2 ? 4 : 0), fe(n, gf), n.status = $r);
3557
3567
  else {
3558
3568
  var t = ls + (n.w_bits - 8 << 4) << 8, p = -1;
3559
- n.strategy >= Dt || n.level < 2 ? p = 0 : n.level < 6 ? p = 1 : n.level === 6 ? p = 2 : p = 3, t |= p << 6, n.strstart !== 0 && (t |= uf), t += 31 - t % 31, n.status = $r, lt(n, t), n.strstart !== 0 && (lt(n, e.adler >>> 16), lt(n, e.adler & 65535)), e.adler = 1;
3569
+ n.strategy >= Dt || n.level < 2 ? p = 0 : n.level < 6 ? p = 1 : n.level === 6 ? p = 2 : p = 3, t |= p << 6, n.strstart !== 0 && (t |= _f), t += 31 - t % 31, n.status = $r, lt(n, t), n.strstart !== 0 && (lt(n, e.adler >>> 16), lt(n, e.adler & 65535)), e.adler = 1;
3560
3570
  }
3561
3571
  if (n.status === Zs)
3562
3572
  if (n.gzhead.extra) {
@@ -3599,23 +3609,23 @@ function vf(e, r) {
3599
3609
  if (n.status === ut && e.avail_in !== 0)
3600
3610
  return Cr(e, As);
3601
3611
  if (e.avail_in !== 0 || n.lookahead !== 0 || r !== Ur && n.status !== ut) {
3602
- var y = n.strategy === Dt ? mf(n, r) : n.strategy === Xp ? yf(n, r) : Jr[n.level].func(n, r);
3612
+ var y = n.strategy === Dt ? Pf(n, r) : n.strategy === sf ? vf(n, r) : Jr[n.level].func(n, r);
3603
3613
  if ((y === Br || y === ot) && (n.status = ut), y === Ae || y === Br)
3604
3614
  return e.avail_out === 0 && (n.last_flush = -1), fr;
3605
- if (y === Ot && (r === zp ? ze._tr_align(n) : r !== ji && (ze._tr_stored_block(n, 0, 0, !1), r === Gp && (Ar(n.head), n.lookahead === 0 && (n.strstart = 0, n.block_start = 0, n.insert = 0))), Sr(e), e.avail_out === 0))
3615
+ if (y === Ot && (r === Qp ? ze._tr_align(n) : r !== ji && (ze._tr_stored_block(n, 0, 0, !1), r === Jp && (Ar(n.head), n.lookahead === 0 && (n.strstart = 0, n.block_start = 0, n.insert = 0))), Sr(e), e.avail_out === 0))
3606
3616
  return n.last_flush = -1, fr;
3607
3617
  }
3608
3618
  return r !== Or ? fr : n.wrap <= 0 ? Ni : (n.wrap === 2 ? (fe(n, e.adler & 255), fe(n, e.adler >> 8 & 255), fe(n, e.adler >> 16 & 255), fe(n, e.adler >> 24 & 255), fe(n, e.total_in & 255), fe(n, e.total_in >> 8 & 255), fe(n, e.total_in >> 16 & 255), fe(n, e.total_in >> 24 & 255)) : (lt(n, e.adler >>> 16), lt(n, e.adler & 65535)), Sr(e), n.wrap > 0 && (n.wrap = -n.wrap), n.pending !== 0 ? fr : Ni);
3609
3619
  }
3610
- function Pf(e) {
3620
+ function Cf(e) {
3611
3621
  var r;
3612
- return !e || !e.state ? Ge : (r = e.state.status, r !== us && r !== Zs && r !== Mt && r !== Kt && r !== zt && r !== $r && r !== ut ? Cr(e, Ge) : (e.state = null, r === $r ? Cr(e, Zp) : fr));
3622
+ return !e || !e.state ? Ge : (r = e.state.status, r !== us && r !== Zs && r !== Mt && r !== Kt && r !== zt && r !== $r && r !== ut ? Cr(e, Ge) : (e.state = null, r === $r ? Cr(e, ef) : fr));
3613
3623
  }
3614
- function Ef(e, r) {
3624
+ function Of(e, r) {
3615
3625
  var s = r.length, n, o, i, t, p, y, u, d;
3616
3626
  if (!e || !e.state || (n = e.state, t = n.wrap, t === 2 || t === 1 && n.status !== us || n.lookahead))
3617
3627
  return Ge;
3618
- for (t === 1 && (e.adler = ua(e.adler, r, s, 0)), n.wrap = 0, s >= n.w_size && (t === 0 && (Ar(n.head), n.strstart = 0, n.block_start = 0, n.insert = 0), d = new Re.Buf8(n.w_size), Re.arraySet(d, r, s - n.w_size, n.w_size, 0), r = d, s = n.w_size), p = e.avail_in, y = e.next_in, u = e.input, e.avail_in = s, e.next_in = 0, e.input = r, Fr(n); n.lookahead >= oe; ) {
3628
+ for (t === 1 && (e.adler = ca(e.adler, r, s, 0)), n.wrap = 0, s >= n.w_size && (t === 0 && (Ar(n.head), n.strstart = 0, n.block_start = 0, n.insert = 0), d = new Re.Buf8(n.w_size), Re.arraySet(d, r, s - n.w_size, n.w_size, 0), r = d, s = n.w_size), p = e.avail_in, y = e.next_in, u = e.input, e.avail_in = s, e.next_in = 0, e.input = r, Fr(n); n.lookahead >= oe; ) {
3619
3629
  o = n.strstart, i = n.lookahead - (oe - 1);
3620
3630
  do
3621
3631
  n.ins_h = (n.ins_h << n.hash_shift ^ n.window[o + oe - 1]) & n.hash_mask, n.prev[o & n.w_mask] = n.head[n.ins_h], n.head[n.ins_h] = o, o++;
@@ -3624,25 +3634,25 @@ function Ef(e, r) {
3624
3634
  }
3625
3635
  return n.strstart += n.lookahead, n.block_start = n.strstart, n.insert = n.lookahead, n.lookahead = 0, n.match_length = n.prev_length = oe - 1, n.match_available = 0, e.next_in = y, e.input = u, e.avail_in = p, n.wrap = t, fr;
3626
3636
  }
3627
- ur.deflateInit = bf;
3628
- ur.deflateInit2 = ya;
3629
- ur.deflateReset = ha;
3630
- ur.deflateResetKeep = da;
3631
- ur.deflateSetHeader = wf;
3632
- ur.deflate = vf;
3633
- ur.deflateEnd = Pf;
3634
- ur.deflateSetDictionary = Ef;
3637
+ ur.deflateInit = Af;
3638
+ ur.deflateInit2 = ma;
3639
+ ur.deflateReset = ya;
3640
+ ur.deflateResetKeep = ha;
3641
+ ur.deflateSetHeader = Sf;
3642
+ ur.deflate = Tf;
3643
+ ur.deflateEnd = Cf;
3644
+ ur.deflateSetDictionary = Of;
3635
3645
  ur.deflateInfo = "pako deflate (from Nodeca project)";
3636
- var qr = {}, cs = wr, ma = !0, _a = !0;
3646
+ var qr = {}, cs = wr, _a = !0, ga = !0;
3637
3647
  try {
3638
3648
  String.fromCharCode.apply(null, [0]);
3639
3649
  } catch {
3640
- ma = !1;
3650
+ _a = !1;
3641
3651
  }
3642
3652
  try {
3643
3653
  String.fromCharCode.apply(null, new Uint8Array(1));
3644
3654
  } catch {
3645
- _a = !1;
3655
+ ga = !1;
3646
3656
  }
3647
3657
  var Et = new cs.Buf8(256);
3648
3658
  for (var Er = 0; Er < 256; Er++)
@@ -3656,15 +3666,15 @@ qr.string2buf = function(e) {
3656
3666
  s = e.charCodeAt(o), (s & 64512) === 55296 && o + 1 < t && (n = e.charCodeAt(o + 1), (n & 64512) === 56320 && (s = 65536 + (s - 55296 << 10) + (n - 56320), o++)), s < 128 ? r[i++] = s : s < 2048 ? (r[i++] = 192 | s >>> 6, r[i++] = 128 | s & 63) : s < 65536 ? (r[i++] = 224 | s >>> 12, r[i++] = 128 | s >>> 6 & 63, r[i++] = 128 | s & 63) : (r[i++] = 240 | s >>> 18, r[i++] = 128 | s >>> 12 & 63, r[i++] = 128 | s >>> 6 & 63, r[i++] = 128 | s & 63);
3657
3667
  return r;
3658
3668
  };
3659
- function ga(e, r) {
3660
- if (r < 65534 && (e.subarray && _a || !e.subarray && ma))
3669
+ function wa(e, r) {
3670
+ if (r < 65534 && (e.subarray && ga || !e.subarray && _a))
3661
3671
  return String.fromCharCode.apply(null, cs.shrinkBuf(e, r));
3662
3672
  for (var s = "", n = 0; n < r; n++)
3663
3673
  s += String.fromCharCode(e[n]);
3664
3674
  return s;
3665
3675
  }
3666
3676
  qr.buf2binstring = function(e) {
3667
- return ga(e, e.length);
3677
+ return wa(e, e.length);
3668
3678
  };
3669
3679
  qr.binstring2buf = function(e) {
3670
3680
  for (var r = new cs.Buf8(e.length), s = 0, n = r.length; s < n; s++)
@@ -3690,7 +3700,7 @@ qr.buf2string = function(e, r) {
3690
3700
  }
3691
3701
  o < 65536 ? p[n++] = o : (o -= 65536, p[n++] = 55296 | o >> 10 & 1023, p[n++] = 56320 | o & 1023);
3692
3702
  }
3693
- return ga(p, n);
3703
+ return wa(p, n);
3694
3704
  };
3695
3705
  qr.utf8border = function(e, r) {
3696
3706
  var s;
@@ -3698,24 +3708,24 @@ qr.utf8border = function(e, r) {
3698
3708
  s--;
3699
3709
  return s < 0 || s === 0 ? r : s + Et[e[s]] > r ? s : r;
3700
3710
  };
3701
- function kf() {
3711
+ function xf() {
3702
3712
  this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
3703
3713
  }
3704
- var wa = kf, ht = ur, yt = wr, Vs = qr, Ys = hi, Sf = wa, ba = Object.prototype.toString, Af = 0, Cs = 4, tt = 0, Ui = 1, qi = 2, Tf = -1, Cf = 0, Of = 8;
3714
+ var ba = xf, ht = ur, yt = wr, Vs = qr, Ys = hi, Lf = ba, va = Object.prototype.toString, If = 0, Cs = 4, tt = 0, Ui = 1, qi = 2, Hf = -1, $f = 0, Rf = 8;
3705
3715
  function jr(e) {
3706
3716
  if (!(this instanceof jr))
3707
3717
  return new jr(e);
3708
3718
  this.options = yt.assign({
3709
- level: Tf,
3710
- method: Of,
3719
+ level: Hf,
3720
+ method: Rf,
3711
3721
  chunkSize: 16384,
3712
3722
  windowBits: 15,
3713
3723
  memLevel: 8,
3714
- strategy: Cf,
3724
+ strategy: $f,
3715
3725
  to: ""
3716
3726
  }, e || {});
3717
3727
  var r = this.options;
3718
- r.raw && r.windowBits > 0 ? r.windowBits = -r.windowBits : r.gzip && r.windowBits > 0 && r.windowBits < 16 && (r.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new Sf(), this.strm.avail_out = 0;
3728
+ r.raw && r.windowBits > 0 ? r.windowBits = -r.windowBits : r.gzip && r.windowBits > 0 && r.windowBits < 16 && (r.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new Lf(), this.strm.avail_out = 0;
3719
3729
  var s = ht.deflateInit2(
3720
3730
  this.strm,
3721
3731
  r.level,
@@ -3728,7 +3738,7 @@ function jr(e) {
3728
3738
  throw new Error(Ys[s]);
3729
3739
  if (r.header && ht.deflateSetHeader(this.strm, r.header), r.dictionary) {
3730
3740
  var n;
3731
- if (typeof r.dictionary == "string" ? n = Vs.string2buf(r.dictionary) : ba.call(r.dictionary) === "[object ArrayBuffer]" ? n = new Uint8Array(r.dictionary) : n = r.dictionary, s = ht.deflateSetDictionary(this.strm, n), s !== tt)
3741
+ if (typeof r.dictionary == "string" ? n = Vs.string2buf(r.dictionary) : va.call(r.dictionary) === "[object ArrayBuffer]" ? n = new Uint8Array(r.dictionary) : n = r.dictionary, s = ht.deflateSetDictionary(this.strm, n), s !== tt)
3732
3742
  throw new Error(Ys[s]);
3733
3743
  this._dict_set = !0;
3734
3744
  }
@@ -3737,7 +3747,7 @@ jr.prototype.push = function(e, r) {
3737
3747
  var s = this.strm, n = this.options.chunkSize, o, i;
3738
3748
  if (this.ended)
3739
3749
  return !1;
3740
- i = r === ~~r ? r : r === !0 ? Cs : Af, typeof e == "string" ? s.input = Vs.string2buf(e) : ba.call(e) === "[object ArrayBuffer]" ? s.input = new Uint8Array(e) : s.input = e, s.next_in = 0, s.avail_in = s.input.length;
3750
+ i = r === ~~r ? r : r === !0 ? Cs : If, typeof e == "string" ? s.input = Vs.string2buf(e) : va.call(e) === "[object ArrayBuffer]" ? s.input = new Uint8Array(e) : s.input = e, s.next_in = 0, s.avail_in = s.input.length;
3741
3751
  do {
3742
3752
  if (s.avail_out === 0 && (s.output = new yt.Buf8(n), s.next_out = 0, s.avail_out = n), o = ht.deflate(s, i), o !== Ui && o !== tt)
3743
3753
  return this.onEnd(o), this.ended = !0, !1;
@@ -3757,17 +3767,17 @@ function yi(e, r) {
3757
3767
  throw s.msg || Ys[s.err];
3758
3768
  return s.result;
3759
3769
  }
3760
- function xf(e, r) {
3770
+ function Df(e, r) {
3761
3771
  return r = r || {}, r.raw = !0, yi(e, r);
3762
3772
  }
3763
- function Lf(e, r) {
3773
+ function Bf(e, r) {
3764
3774
  return r = r || {}, r.gzip = !0, yi(e, r);
3765
3775
  }
3766
3776
  Tt.Deflate = jr;
3767
3777
  Tt.deflate = yi;
3768
- Tt.deflateRaw = xf;
3769
- Tt.gzip = Lf;
3770
- var xt = {}, rr = {}, Bt = 30, If = 12, Hf = function(r, s) {
3778
+ Tt.deflateRaw = Df;
3779
+ Tt.gzip = Bf;
3780
+ var xt = {}, rr = {}, Bt = 30, Ff = 12, jf = function(r, s) {
3771
3781
  var n, o, i, t, p, y, u, d, g, b, w, H, P, N, j, q, $, W, O, A, B, x, T, k, S;
3772
3782
  n = r.state, o = r.next_in, k = r.input, i = o + (r.avail_in - 5), t = r.next_out, S = r.output, p = t - (s - r.avail_out), y = t + (r.avail_out - 257), u = n.dmax, d = n.wsize, g = n.whave, b = n.wnext, w = n.window, H = n.hold, P = n.bits, N = n.lencode, j = n.distcode, q = (1 << n.lenbits) - 1, $ = (1 << n.distbits) - 1;
3773
3783
  e:
@@ -3841,7 +3851,7 @@ var xt = {}, rr = {}, Bt = 30, If = 12, Hf = function(r, s) {
3841
3851
  }
3842
3852
  } else if (O & 64)
3843
3853
  if (O & 32) {
3844
- n.mode = If;
3854
+ n.mode = Ff;
3845
3855
  break e;
3846
3856
  } else {
3847
3857
  r.msg = "invalid literal/length code", n.mode = Bt;
@@ -3855,7 +3865,7 @@ var xt = {}, rr = {}, Bt = 30, If = 12, Hf = function(r, s) {
3855
3865
  }
3856
3866
  } while (o < i && t < y);
3857
3867
  A = P >> 3, o -= A, P -= A << 3, H &= (1 << P) - 1, r.next_in = o, r.next_out = t, r.avail_in = o < i ? 5 + (i - o) : 5 - (o - i), r.avail_out = t < y ? 257 + (y - t) : 257 - (t - y), n.hold = H, n.bits = P;
3858
- }, Mi = wr, Yr = 15, Ki = 852, zi = 592, Gi = 0, Os = 1, Zi = 2, $f = [
3868
+ }, Mi = wr, Yr = 15, Ki = 852, zi = 592, Gi = 0, Os = 1, Zi = 2, Nf = [
3859
3869
  /* Length codes 257..285 base */
3860
3870
  3,
3861
3871
  4,
@@ -3888,7 +3898,7 @@ var xt = {}, rr = {}, Bt = 30, If = 12, Hf = function(r, s) {
3888
3898
  258,
3889
3899
  0,
3890
3900
  0
3891
- ], Rf = [
3901
+ ], Wf = [
3892
3902
  /* Length codes 257..285 extra */
3893
3903
  16,
3894
3904
  16,
@@ -3921,7 +3931,7 @@ var xt = {}, rr = {}, Bt = 30, If = 12, Hf = function(r, s) {
3921
3931
  16,
3922
3932
  72,
3923
3933
  78
3924
- ], Df = [
3934
+ ], Uf = [
3925
3935
  /* Distance codes 0..29 base */
3926
3936
  1,
3927
3937
  2,
@@ -3955,7 +3965,7 @@ var xt = {}, rr = {}, Bt = 30, If = 12, Hf = function(r, s) {
3955
3965
  24577,
3956
3966
  0,
3957
3967
  0
3958
- ], Bf = [
3968
+ ], qf = [
3959
3969
  /* Distance codes 0..29 extra */
3960
3970
  16,
3961
3971
  16,
@@ -3989,7 +3999,7 @@ var xt = {}, rr = {}, Bt = 30, If = 12, Hf = function(r, s) {
3989
3999
  29,
3990
4000
  64,
3991
4001
  64
3992
- ], Ff = function(r, s, n, o, i, t, p, y) {
4002
+ ], Mf = function(r, s, n, o, i, t, p, y) {
3993
4003
  var u = y.bits, d = 0, g = 0, b = 0, w = 0, H = 0, P = 0, N = 0, j = 0, q = 0, $ = 0, W, O, A, B, x, T = null, k = 0, S, F = new Mi.Buf16(Yr + 1), D = new Mi.Buf16(Yr + 1), I = null, V = 0, z, K, Y;
3994
4004
  for (d = 0; d <= Yr; d++)
3995
4005
  F[d] = 0;
@@ -4010,7 +4020,7 @@ var xt = {}, rr = {}, Bt = 30, If = 12, Hf = function(r, s) {
4010
4020
  D[d + 1] = D[d] + F[d];
4011
4021
  for (g = 0; g < o; g++)
4012
4022
  s[n + g] !== 0 && (p[D[s[n + g]]++] = g);
4013
- if (r === Gi ? (T = I = p, S = 19) : r === Os ? (T = $f, k -= 257, I = Rf, V -= 257, S = 256) : (T = Df, I = Bf, S = -1), $ = 0, g = 0, d = b, x = t, P = H, N = 0, A = -1, q = 1 << H, B = q - 1, r === Os && q > Ki || r === Zi && q > zi)
4023
+ if (r === Gi ? (T = I = p, S = 19) : r === Os ? (T = Nf, k -= 257, I = Wf, V -= 257, S = 256) : (T = Uf, I = qf, S = -1), $ = 0, g = 0, d = b, x = t, P = H, N = 0, A = -1, q = 1 << H, B = q - 1, r === Os && q > Ki || r === Zi && q > zi)
4014
4024
  return 1;
4015
4025
  for (; ; ) {
4016
4026
  z = d - N, p[g] < S ? (K = 0, Y = p[g]) : p[g] > S ? (K = I[V + p[g]], Y = T[k + p[g]]) : (K = 32 + 64, Y = 0), W = 1 << d - N, O = 1 << P, b = O;
@@ -4033,34 +4043,34 @@ var xt = {}, rr = {}, Bt = 30, If = 12, Hf = function(r, s) {
4033
4043
  }
4034
4044
  }
4035
4045
  return $ !== 0 && (i[x + $] = d - N << 24 | 64 << 16 | 0), y.bits = H, 0;
4036
- }, Ue = wr, Xs = fa, ar = la, jf = Hf, mt = Ff, Nf = 0, va = 1, Pa = 2, Vi = 4, Wf = 5, Ft = 6, Nr = 0, Uf = 1, qf = 2, Ze = -2, Ea = -3, ka = -4, Mf = -5, Yi = 8, Sa = 1, Xi = 2, Qi = 3, Ji = 4, en = 5, rn = 6, tn = 7, sn = 8, nn = 9, an = 10, rs = 11, hr = 12, xs = 13, on = 14, Ls = 15, pn = 16, fn = 17, ln = 18, un = 19, jt = 20, Nt = 21, cn = 22, dn = 23, hn = 24, yn = 25, mn = 26, Is = 27, _n = 28, gn = 29, we = 30, Aa = 31, Kf = 32, zf = 852, Gf = 592, Zf = 15, Vf = Zf;
4046
+ }, Ue = wr, Xs = la, ar = ua, Kf = jf, mt = Mf, zf = 0, Pa = 1, Ea = 2, Vi = 4, Gf = 5, Ft = 6, Nr = 0, Zf = 1, Vf = 2, Ze = -2, ka = -3, Sa = -4, Yf = -5, Yi = 8, Aa = 1, Xi = 2, Qi = 3, Ji = 4, en = 5, rn = 6, tn = 7, sn = 8, nn = 9, an = 10, rs = 11, hr = 12, xs = 13, on = 14, Ls = 15, pn = 16, fn = 17, ln = 18, un = 19, jt = 20, Nt = 21, cn = 22, dn = 23, hn = 24, yn = 25, mn = 26, Is = 27, _n = 28, gn = 29, we = 30, Ta = 31, Xf = 32, Qf = 852, Jf = 592, el = 15, rl = el;
4037
4047
  function wn(e) {
4038
4048
  return (e >>> 24 & 255) + (e >>> 8 & 65280) + ((e & 65280) << 8) + ((e & 255) << 24);
4039
4049
  }
4040
- function Yf() {
4050
+ function tl() {
4041
4051
  this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new Ue.Buf16(320), this.work = new Ue.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
4042
4052
  }
4043
- function Ta(e) {
4053
+ function Ca(e) {
4044
4054
  var r;
4045
- return !e || !e.state ? Ze : (r = e.state, e.total_in = e.total_out = r.total = 0, e.msg = "", r.wrap && (e.adler = r.wrap & 1), r.mode = Sa, r.last = 0, r.havedict = 0, r.dmax = 32768, r.head = null, r.hold = 0, r.bits = 0, r.lencode = r.lendyn = new Ue.Buf32(zf), r.distcode = r.distdyn = new Ue.Buf32(Gf), r.sane = 1, r.back = -1, Nr);
4055
+ return !e || !e.state ? Ze : (r = e.state, e.total_in = e.total_out = r.total = 0, e.msg = "", r.wrap && (e.adler = r.wrap & 1), r.mode = Aa, r.last = 0, r.havedict = 0, r.dmax = 32768, r.head = null, r.hold = 0, r.bits = 0, r.lencode = r.lendyn = new Ue.Buf32(Qf), r.distcode = r.distdyn = new Ue.Buf32(Jf), r.sane = 1, r.back = -1, Nr);
4046
4056
  }
4047
- function Ca(e) {
4057
+ function Oa(e) {
4048
4058
  var r;
4049
- return !e || !e.state ? Ze : (r = e.state, r.wsize = 0, r.whave = 0, r.wnext = 0, Ta(e));
4059
+ return !e || !e.state ? Ze : (r = e.state, r.wsize = 0, r.whave = 0, r.wnext = 0, Ca(e));
4050
4060
  }
4051
- function Oa(e, r) {
4061
+ function xa(e, r) {
4052
4062
  var s, n;
4053
- return !e || !e.state || (n = e.state, r < 0 ? (s = 0, r = -r) : (s = (r >> 4) + 1, r < 48 && (r &= 15)), r && (r < 8 || r > 15)) ? Ze : (n.window !== null && n.wbits !== r && (n.window = null), n.wrap = s, n.wbits = r, Ca(e));
4063
+ return !e || !e.state || (n = e.state, r < 0 ? (s = 0, r = -r) : (s = (r >> 4) + 1, r < 48 && (r &= 15)), r && (r < 8 || r > 15)) ? Ze : (n.window !== null && n.wbits !== r && (n.window = null), n.wrap = s, n.wbits = r, Oa(e));
4054
4064
  }
4055
- function xa(e, r) {
4065
+ function La(e, r) {
4056
4066
  var s, n;
4057
- return e ? (n = new Yf(), e.state = n, n.window = null, s = Oa(e, r), s !== Nr && (e.state = null), s) : Ze;
4067
+ return e ? (n = new tl(), e.state = n, n.window = null, s = xa(e, r), s !== Nr && (e.state = null), s) : Ze;
4058
4068
  }
4059
- function Xf(e) {
4060
- return xa(e, Vf);
4069
+ function sl(e) {
4070
+ return La(e, rl);
4061
4071
  }
4062
4072
  var bn = !0, Hs, $s;
4063
- function Qf(e) {
4073
+ function il(e) {
4064
4074
  if (bn) {
4065
4075
  var r;
4066
4076
  for (Hs = new Ue.Buf32(512), $s = new Ue.Buf32(32), r = 0; r < 144; )
@@ -4071,17 +4081,17 @@ function Qf(e) {
4071
4081
  e.lens[r++] = 7;
4072
4082
  for (; r < 288; )
4073
4083
  e.lens[r++] = 8;
4074
- for (mt(va, e.lens, 0, 288, Hs, 0, e.work, { bits: 9 }), r = 0; r < 32; )
4084
+ for (mt(Pa, e.lens, 0, 288, Hs, 0, e.work, { bits: 9 }), r = 0; r < 32; )
4075
4085
  e.lens[r++] = 5;
4076
- mt(Pa, e.lens, 0, 32, $s, 0, e.work, { bits: 5 }), bn = !1;
4086
+ mt(Ea, e.lens, 0, 32, $s, 0, e.work, { bits: 5 }), bn = !1;
4077
4087
  }
4078
4088
  e.lencode = Hs, e.lenbits = 9, e.distcode = $s, e.distbits = 5;
4079
4089
  }
4080
- function La(e, r, s, n) {
4090
+ function Ia(e, r, s, n) {
4081
4091
  var o, i = e.state;
4082
4092
  return i.window === null && (i.wsize = 1 << i.wbits, i.wnext = 0, i.whave = 0, i.window = new Ue.Buf8(i.wsize)), n >= i.wsize ? (Ue.arraySet(i.window, r, s - i.wsize, i.wsize, 0), i.wnext = 0, i.whave = i.wsize) : (o = i.wsize - i.wnext, o > n && (o = n), Ue.arraySet(i.window, r, s - n, o, i.wnext), n -= o, n ? (Ue.arraySet(i.window, r, s - n, n, 0), i.wnext = n, i.whave = i.wsize) : (i.wnext += o, i.wnext === i.wsize && (i.wnext = 0), i.whave < i.wsize && (i.whave += o))), 0;
4083
4093
  }
4084
- function Jf(e, r) {
4094
+ function nl(e, r) {
4085
4095
  var s, n, o, i, t, p, y, u, d, g, b, w, H, P, N = 0, j, q, $, W, O, A, B, x, T = new Ue.Buf8(4), k, S, F = (
4086
4096
  /* permutation of code lengths */
4087
4097
  [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]
@@ -4092,7 +4102,7 @@ function Jf(e, r) {
4092
4102
  e:
4093
4103
  for (; ; )
4094
4104
  switch (s.mode) {
4095
- case Sa:
4105
+ case Aa:
4096
4106
  if (s.wrap === 0) {
4097
4107
  s.mode = xs;
4098
4108
  break;
@@ -4226,10 +4236,10 @@ function Jf(e, r) {
4226
4236
  e.adler = s.check = wn(u), u = 0, d = 0, s.mode = rs;
4227
4237
  case rs:
4228
4238
  if (s.havedict === 0)
4229
- return e.next_out = t, e.avail_out = y, e.next_in = i, e.avail_in = p, s.hold = u, s.bits = d, qf;
4239
+ return e.next_out = t, e.avail_out = y, e.next_in = i, e.avail_in = p, s.hold = u, s.bits = d, Vf;
4230
4240
  e.adler = s.check = 1, s.mode = hr;
4231
4241
  case hr:
4232
- if (r === Wf || r === Ft)
4242
+ if (r === Gf || r === Ft)
4233
4243
  break e;
4234
4244
  case xs:
4235
4245
  if (s.last) {
@@ -4246,7 +4256,7 @@ function Jf(e, r) {
4246
4256
  s.mode = on;
4247
4257
  break;
4248
4258
  case 1:
4249
- if (Qf(s), s.mode = jt, r === Ft) {
4259
+ if (il(s), s.mode = jt, r === Ft) {
4250
4260
  u >>>= 2, d -= 2;
4251
4261
  break e;
4252
4262
  }
@@ -4304,7 +4314,7 @@ function Jf(e, r) {
4304
4314
  }
4305
4315
  for (; s.have < 19; )
4306
4316
  s.lens[F[s.have++]] = 0;
4307
- if (s.lencode = s.lendyn, s.lenbits = 7, k = { bits: s.lenbits }, x = mt(Nf, s.lens, 0, 19, s.lencode, 0, s.work, k), s.lenbits = k.bits, x) {
4317
+ if (s.lencode = s.lendyn, s.lenbits = 7, k = { bits: s.lenbits }, x = mt(zf, s.lens, 0, 19, s.lencode, 0, s.work, k), s.lenbits = k.bits, x) {
4308
4318
  e.msg = "invalid code lengths set", s.mode = we;
4309
4319
  break;
4310
4320
  }
@@ -4359,11 +4369,11 @@ function Jf(e, r) {
4359
4369
  e.msg = "invalid code -- missing end-of-block", s.mode = we;
4360
4370
  break;
4361
4371
  }
4362
- if (s.lenbits = 9, k = { bits: s.lenbits }, x = mt(va, s.lens, 0, s.nlen, s.lencode, 0, s.work, k), s.lenbits = k.bits, x) {
4372
+ if (s.lenbits = 9, k = { bits: s.lenbits }, x = mt(Pa, s.lens, 0, s.nlen, s.lencode, 0, s.work, k), s.lenbits = k.bits, x) {
4363
4373
  e.msg = "invalid literal/lengths set", s.mode = we;
4364
4374
  break;
4365
4375
  }
4366
- if (s.distbits = 6, s.distcode = s.distdyn, k = { bits: s.distbits }, x = mt(Pa, s.lens, s.nlen, s.ndist, s.distcode, 0, s.work, k), s.distbits = k.bits, x) {
4376
+ if (s.distbits = 6, s.distcode = s.distdyn, k = { bits: s.distbits }, x = mt(Ea, s.lens, s.nlen, s.ndist, s.distcode, 0, s.work, k), s.distbits = k.bits, x) {
4367
4377
  e.msg = "invalid distances set", s.mode = we;
4368
4378
  break;
4369
4379
  }
@@ -4373,7 +4383,7 @@ function Jf(e, r) {
4373
4383
  s.mode = Nt;
4374
4384
  case Nt:
4375
4385
  if (p >= 6 && y >= 258) {
4376
- e.next_out = t, e.avail_out = y, e.next_in = i, e.avail_in = p, s.hold = u, s.bits = d, jf(e, b), t = e.next_out, o = e.output, y = e.avail_out, i = e.next_in, n = e.input, p = e.avail_in, u = s.hold, d = s.bits, s.mode === hr && (s.back = -1);
4386
+ e.next_out = t, e.avail_out = y, e.next_in = i, e.avail_in = p, s.hold = u, s.bits = d, Kf(e, b), t = e.next_out, o = e.output, y = e.avail_out, i = e.next_in, n = e.input, p = e.avail_in, u = s.hold, d = s.bits, s.mode === hr && (s.back = -1);
4377
4387
  break;
4378
4388
  }
4379
4389
  for (s.back = 0; N = s.lencode[u & (1 << s.lenbits) - 1], j = N >>> 24, q = N >>> 16 & 255, $ = N & 65535, !(j <= d); ) {
@@ -4497,45 +4507,45 @@ function Jf(e, r) {
4497
4507
  }
4498
4508
  s.mode = gn;
4499
4509
  case gn:
4500
- x = Uf;
4510
+ x = Zf;
4501
4511
  break e;
4502
4512
  case we:
4503
- x = Ea;
4513
+ x = ka;
4504
4514
  break e;
4505
- case Aa:
4506
- return ka;
4507
- case Kf:
4515
+ case Ta:
4516
+ return Sa;
4517
+ case Xf:
4508
4518
  default:
4509
4519
  return Ze;
4510
4520
  }
4511
- return e.next_out = t, e.avail_out = y, e.next_in = i, e.avail_in = p, s.hold = u, s.bits = d, (s.wsize || b !== e.avail_out && s.mode < we && (s.mode < Is || r !== Vi)) && La(e, e.output, e.next_out, b - e.avail_out), g -= e.avail_in, b -= e.avail_out, e.total_in += g, e.total_out += b, s.total += b, s.wrap && b && (e.adler = s.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/
4512
- s.flags ? ar(s.check, o, b, e.next_out - b) : Xs(s.check, o, b, e.next_out - b)), e.data_type = s.bits + (s.last ? 64 : 0) + (s.mode === hr ? 128 : 0) + (s.mode === jt || s.mode === Ls ? 256 : 0), (g === 0 && b === 0 || r === Vi) && x === Nr && (x = Mf), x;
4521
+ return e.next_out = t, e.avail_out = y, e.next_in = i, e.avail_in = p, s.hold = u, s.bits = d, (s.wsize || b !== e.avail_out && s.mode < we && (s.mode < Is || r !== Vi)) && Ia(e, e.output, e.next_out, b - e.avail_out), g -= e.avail_in, b -= e.avail_out, e.total_in += g, e.total_out += b, s.total += b, s.wrap && b && (e.adler = s.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/
4522
+ s.flags ? ar(s.check, o, b, e.next_out - b) : Xs(s.check, o, b, e.next_out - b)), e.data_type = s.bits + (s.last ? 64 : 0) + (s.mode === hr ? 128 : 0) + (s.mode === jt || s.mode === Ls ? 256 : 0), (g === 0 && b === 0 || r === Vi) && x === Nr && (x = Yf), x;
4513
4523
  }
4514
- function el(e) {
4524
+ function al(e) {
4515
4525
  if (!e || !e.state)
4516
4526
  return Ze;
4517
4527
  var r = e.state;
4518
4528
  return r.window && (r.window = null), e.state = null, Nr;
4519
4529
  }
4520
- function rl(e, r) {
4530
+ function ol(e, r) {
4521
4531
  var s;
4522
4532
  return !e || !e.state || (s = e.state, !(s.wrap & 2)) ? Ze : (s.head = r, r.done = !1, Nr);
4523
4533
  }
4524
- function tl(e, r) {
4534
+ function pl(e, r) {
4525
4535
  var s = r.length, n, o, i;
4526
- return !e || !e.state || (n = e.state, n.wrap !== 0 && n.mode !== rs) ? Ze : n.mode === rs && (o = 1, o = Xs(o, r, s, 0), o !== n.check) ? Ea : (i = La(e, r, s, s), i ? (n.mode = Aa, ka) : (n.havedict = 1, Nr));
4527
- }
4528
- rr.inflateReset = Ca;
4529
- rr.inflateReset2 = Oa;
4530
- rr.inflateResetKeep = Ta;
4531
- rr.inflateInit = Xf;
4532
- rr.inflateInit2 = xa;
4533
- rr.inflate = Jf;
4534
- rr.inflateEnd = el;
4535
- rr.inflateGetHeader = rl;
4536
- rr.inflateSetDictionary = tl;
4536
+ return !e || !e.state || (n = e.state, n.wrap !== 0 && n.mode !== rs) ? Ze : n.mode === rs && (o = 1, o = Xs(o, r, s, 0), o !== n.check) ? ka : (i = Ia(e, r, s, s), i ? (n.mode = Ta, Sa) : (n.havedict = 1, Nr));
4537
+ }
4538
+ rr.inflateReset = Oa;
4539
+ rr.inflateReset2 = xa;
4540
+ rr.inflateResetKeep = Ca;
4541
+ rr.inflateInit = sl;
4542
+ rr.inflateInit2 = La;
4543
+ rr.inflate = nl;
4544
+ rr.inflateEnd = al;
4545
+ rr.inflateGetHeader = ol;
4546
+ rr.inflateSetDictionary = pl;
4537
4547
  rr.inflateInfo = "pako inflate (from Nodeca project)";
4538
- var Ia = {
4548
+ var Ha = {
4539
4549
  /* Allowed flush values; see deflate() and inflate() below for details */
4540
4550
  Z_NO_FLUSH: 0,
4541
4551
  Z_PARTIAL_FLUSH: 1,
@@ -4575,10 +4585,10 @@ var Ia = {
4575
4585
  Z_DEFLATED: 8
4576
4586
  //Z_NULL: null // Use -1 or null inline, depending on var type
4577
4587
  };
4578
- function sl() {
4588
+ function fl() {
4579
4589
  this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = !1;
4580
4590
  }
4581
- var il = sl, st = rr, _t = wr, Gt = qr, Ee = Ia, Qs = hi, nl = wa, al = il, Ha = Object.prototype.toString;
4591
+ var ll = fl, st = rr, _t = wr, Gt = qr, Ee = Ha, Qs = hi, ul = ba, cl = ll, $a = Object.prototype.toString;
4582
4592
  function Wr(e) {
4583
4593
  if (!(this instanceof Wr))
4584
4594
  return new Wr(e);
@@ -4588,21 +4598,21 @@ function Wr(e) {
4588
4598
  to: ""
4589
4599
  }, e || {});
4590
4600
  var r = this.options;
4591
- r.raw && r.windowBits >= 0 && r.windowBits < 16 && (r.windowBits = -r.windowBits, r.windowBits === 0 && (r.windowBits = -15)), r.windowBits >= 0 && r.windowBits < 16 && !(e && e.windowBits) && (r.windowBits += 32), r.windowBits > 15 && r.windowBits < 48 && (r.windowBits & 15 || (r.windowBits |= 15)), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new nl(), this.strm.avail_out = 0;
4601
+ r.raw && r.windowBits >= 0 && r.windowBits < 16 && (r.windowBits = -r.windowBits, r.windowBits === 0 && (r.windowBits = -15)), r.windowBits >= 0 && r.windowBits < 16 && !(e && e.windowBits) && (r.windowBits += 32), r.windowBits > 15 && r.windowBits < 48 && (r.windowBits & 15 || (r.windowBits |= 15)), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new ul(), this.strm.avail_out = 0;
4592
4602
  var s = st.inflateInit2(
4593
4603
  this.strm,
4594
4604
  r.windowBits
4595
4605
  );
4596
4606
  if (s !== Ee.Z_OK)
4597
4607
  throw new Error(Qs[s]);
4598
- if (this.header = new al(), st.inflateGetHeader(this.strm, this.header), r.dictionary && (typeof r.dictionary == "string" ? r.dictionary = Gt.string2buf(r.dictionary) : Ha.call(r.dictionary) === "[object ArrayBuffer]" && (r.dictionary = new Uint8Array(r.dictionary)), r.raw && (s = st.inflateSetDictionary(this.strm, r.dictionary), s !== Ee.Z_OK)))
4608
+ if (this.header = new cl(), st.inflateGetHeader(this.strm, this.header), r.dictionary && (typeof r.dictionary == "string" ? r.dictionary = Gt.string2buf(r.dictionary) : $a.call(r.dictionary) === "[object ArrayBuffer]" && (r.dictionary = new Uint8Array(r.dictionary)), r.raw && (s = st.inflateSetDictionary(this.strm, r.dictionary), s !== Ee.Z_OK)))
4599
4609
  throw new Error(Qs[s]);
4600
4610
  }
4601
4611
  Wr.prototype.push = function(e, r) {
4602
4612
  var s = this.strm, n = this.options.chunkSize, o = this.options.dictionary, i, t, p, y, u, d = !1;
4603
4613
  if (this.ended)
4604
4614
  return !1;
4605
- t = r === ~~r ? r : r === !0 ? Ee.Z_FINISH : Ee.Z_NO_FLUSH, typeof e == "string" ? s.input = Gt.binstring2buf(e) : Ha.call(e) === "[object ArrayBuffer]" ? s.input = new Uint8Array(e) : s.input = e, s.next_in = 0, s.avail_in = s.input.length;
4615
+ t = r === ~~r ? r : r === !0 ? Ee.Z_FINISH : Ee.Z_NO_FLUSH, typeof e == "string" ? s.input = Gt.binstring2buf(e) : $a.call(e) === "[object ArrayBuffer]" ? s.input = new Uint8Array(e) : s.input = e, s.next_in = 0, s.avail_in = s.input.length;
4606
4616
  do {
4607
4617
  if (s.avail_out === 0 && (s.output = new _t.Buf8(n), s.next_out = 0, s.avail_out = n), i = st.inflate(s, Ee.Z_NO_FLUSH), i === Ee.Z_NEED_DICT && o && (i = st.inflateSetDictionary(this.strm, o)), i === Ee.Z_BUF_ERROR && d === !0 && (i = Ee.Z_OK, d = !1), i !== Ee.Z_STREAM_END && i !== Ee.Z_OK)
4608
4618
  return this.onEnd(i), this.ended = !0, !1;
@@ -4622,19 +4632,19 @@ function mi(e, r) {
4622
4632
  throw s.msg || Qs[s.err];
4623
4633
  return s.result;
4624
4634
  }
4625
- function ol(e, r) {
4635
+ function dl(e, r) {
4626
4636
  return r = r || {}, r.raw = !0, mi(e, r);
4627
4637
  }
4628
4638
  xt.Inflate = Wr;
4629
4639
  xt.inflate = mi;
4630
- xt.inflateRaw = ol;
4640
+ xt.inflateRaw = dl;
4631
4641
  xt.ungzip = mi;
4632
- var pl = wr.assign, fl = Tt, ll = xt, ul = Ia, $a = {};
4633
- pl($a, fl, ll, ul);
4634
- var cl = $a;
4635
- const Ra = /* @__PURE__ */ ai(cl);
4636
- async function dl(e, r) {
4637
- const s = new Mn(e);
4642
+ var hl = wr.assign, yl = Tt, ml = xt, _l = Ha, Ra = {};
4643
+ hl(Ra, yl, ml, _l);
4644
+ var gl = Ra;
4645
+ const Da = /* @__PURE__ */ ai(gl);
4646
+ async function wl(e, r) {
4647
+ const s = new Kn(e);
4638
4648
  let n = await s.read(4);
4639
4649
  if (n = n.toString("utf8"), n !== "PACK")
4640
4650
  throw new be(`Invalid PACK header '${n}'`);
@@ -4644,7 +4654,7 @@ async function dl(e, r) {
4644
4654
  let i = await s.read(4);
4645
4655
  if (i = i.readUInt32BE(0), !(i < 1))
4646
4656
  for (; !s.eof() && i--; ) {
4647
- const t = s.tell(), { type: p, length: y, ofs: u, reference: d } = await hl(s), g = new Ra.Inflate();
4657
+ const t = s.tell(), { type: p, length: y, ofs: u, reference: d } = await bl(s), g = new Da.Inflate();
4648
4658
  for (; !g.result; ) {
4649
4659
  const b = await s.chunk();
4650
4660
  if (!b)
@@ -4671,7 +4681,7 @@ async function dl(e, r) {
4671
4681
  }
4672
4682
  }
4673
4683
  }
4674
- async function hl(e) {
4684
+ async function bl(e) {
4675
4685
  let r = await e.byte();
4676
4686
  const s = r >> 4 & 7;
4677
4687
  let n = r & 15;
@@ -4693,11 +4703,11 @@ async function hl(e) {
4693
4703
  }
4694
4704
  return s === 7 && (i = await e.read(20)), { type: s, length: n, ofs: o, reference: i };
4695
4705
  }
4696
- let yl = !1;
4697
- async function ml(e) {
4698
- return yl ? _l(e) : Ra.inflate(e);
4706
+ let vl = !1;
4707
+ async function Pl(e) {
4708
+ return vl ? El(e) : Da.inflate(e);
4699
4709
  }
4700
- async function _l(e) {
4710
+ async function El(e) {
4701
4711
  const r = new DecompressionStream("deflate"), s = new Blob([e]).stream().pipeThrough(r);
4702
4712
  return new Uint8Array(await new Response(s).arrayBuffer());
4703
4713
  }
@@ -4719,16 +4729,16 @@ typeof Object.create == "function" ? Js.exports = function(r, s) {
4719
4729
  n.prototype = s.prototype, r.prototype = new n(), r.prototype.constructor = r;
4720
4730
  }
4721
4731
  };
4722
- var gl = Js.exports, ei = { exports: {} }, gr = {}, ds = {};
4723
- ds.byteLength = vl;
4724
- ds.toByteArray = El;
4725
- ds.fromByteArray = Al;
4726
- var lr = [], Ke = [], wl = typeof Uint8Array < "u" ? Uint8Array : Array, Rs = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
4727
- for (var Xr = 0, bl = Rs.length; Xr < bl; ++Xr)
4732
+ var kl = Js.exports, ei = { exports: {} }, gr = {}, ds = {};
4733
+ ds.byteLength = Tl;
4734
+ ds.toByteArray = Ol;
4735
+ ds.fromByteArray = Il;
4736
+ var lr = [], Ke = [], Sl = typeof Uint8Array < "u" ? Uint8Array : Array, Rs = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
4737
+ for (var Xr = 0, Al = Rs.length; Xr < Al; ++Xr)
4728
4738
  lr[Xr] = Rs[Xr], Ke[Rs.charCodeAt(Xr)] = Xr;
4729
4739
  Ke["-".charCodeAt(0)] = 62;
4730
4740
  Ke["_".charCodeAt(0)] = 63;
4731
- function Da(e) {
4741
+ function Ba(e) {
4732
4742
  var r = e.length;
4733
4743
  if (r % 4 > 0)
4734
4744
  throw new Error("Invalid string. Length must be a multiple of 4");
@@ -4737,30 +4747,30 @@ function Da(e) {
4737
4747
  var n = s === r ? 0 : 4 - s % 4;
4738
4748
  return [s, n];
4739
4749
  }
4740
- function vl(e) {
4741
- var r = Da(e), s = r[0], n = r[1];
4750
+ function Tl(e) {
4751
+ var r = Ba(e), s = r[0], n = r[1];
4742
4752
  return (s + n) * 3 / 4 - n;
4743
4753
  }
4744
- function Pl(e, r, s) {
4754
+ function Cl(e, r, s) {
4745
4755
  return (r + s) * 3 / 4 - s;
4746
4756
  }
4747
- function El(e) {
4748
- var r, s = Da(e), n = s[0], o = s[1], i = new wl(Pl(e, n, o)), t = 0, p = o > 0 ? n - 4 : n, y;
4757
+ function Ol(e) {
4758
+ var r, s = Ba(e), n = s[0], o = s[1], i = new Sl(Cl(e, n, o)), t = 0, p = o > 0 ? n - 4 : n, y;
4749
4759
  for (y = 0; y < p; y += 4)
4750
4760
  r = Ke[e.charCodeAt(y)] << 18 | Ke[e.charCodeAt(y + 1)] << 12 | Ke[e.charCodeAt(y + 2)] << 6 | Ke[e.charCodeAt(y + 3)], i[t++] = r >> 16 & 255, i[t++] = r >> 8 & 255, i[t++] = r & 255;
4751
4761
  return o === 2 && (r = Ke[e.charCodeAt(y)] << 2 | Ke[e.charCodeAt(y + 1)] >> 4, i[t++] = r & 255), o === 1 && (r = Ke[e.charCodeAt(y)] << 10 | Ke[e.charCodeAt(y + 1)] << 4 | Ke[e.charCodeAt(y + 2)] >> 2, i[t++] = r >> 8 & 255, i[t++] = r & 255), i;
4752
4762
  }
4753
- function kl(e) {
4763
+ function xl(e) {
4754
4764
  return lr[e >> 18 & 63] + lr[e >> 12 & 63] + lr[e >> 6 & 63] + lr[e & 63];
4755
4765
  }
4756
- function Sl(e, r, s) {
4766
+ function Ll(e, r, s) {
4757
4767
  for (var n, o = [], i = r; i < s; i += 3)
4758
- n = (e[i] << 16 & 16711680) + (e[i + 1] << 8 & 65280) + (e[i + 2] & 255), o.push(kl(n));
4768
+ n = (e[i] << 16 & 16711680) + (e[i + 1] << 8 & 65280) + (e[i + 2] & 255), o.push(xl(n));
4759
4769
  return o.join("");
4760
4770
  }
4761
- function Al(e) {
4771
+ function Il(e) {
4762
4772
  for (var r, s = e.length, n = s % 3, o = [], i = 16383, t = 0, p = s - n; t < p; t += i)
4763
- o.push(Sl(e, t, t + i > p ? p : t + i));
4773
+ o.push(Ll(e, t, t + i > p ? p : t + i));
4764
4774
  return n === 1 ? (r = e[s - 1], o.push(
4765
4775
  lr[r >> 2] + lr[r << 4 & 63] + "=="
4766
4776
  )) : n === 2 && (r = (e[s - 2] << 8) + e[s - 1], o.push(
@@ -5798,12 +5808,12 @@ _i.write = function(e, r, s, n, o, i) {
5798
5808
  return s.SlowBuffer(t);
5799
5809
  };
5800
5810
  })(ei, ei.exports);
5801
- var Ba = ei.exports, Fa = Ba.Buffer;
5811
+ var Fa = ei.exports, ja = Fa.Buffer;
5802
5812
  function hs(e, r) {
5803
- this._block = Fa.alloc(e), this._finalSize = r, this._blockSize = e, this._len = 0;
5813
+ this._block = ja.alloc(e), this._finalSize = r, this._blockSize = e, this._len = 0;
5804
5814
  }
5805
5815
  hs.prototype.update = function(e, r) {
5806
- typeof e == "string" && (r = r || "utf8", e = Fa.from(e, r));
5816
+ typeof e == "string" && (r = r || "utf8", e = ja.from(e, r));
5807
5817
  for (var s = this._block, n = this._blockSize, o = e.length, i = this._len, t = 0; t < o; ) {
5808
5818
  for (var p = i % n, y = Math.min(o - t, n - p), u = 0; u < y; u++)
5809
5819
  s[p + u] = e[t + u];
@@ -5828,49 +5838,49 @@ hs.prototype.digest = function(e) {
5828
5838
  hs.prototype._update = function() {
5829
5839
  throw new Error("_update must be implemented by subclass");
5830
5840
  };
5831
- var Tl = hs, Cl = gl, ja = Tl, Ol = Ba.Buffer, xl = [
5841
+ var Hl = hs, $l = kl, Na = Hl, Rl = Fa.Buffer, Dl = [
5832
5842
  1518500249,
5833
5843
  1859775393,
5834
5844
  -1894007588,
5835
5845
  -899497514
5836
- ], Ll = new Array(80);
5846
+ ], Bl = new Array(80);
5837
5847
  function Lt() {
5838
- this.init(), this._w = Ll, ja.call(this, 64, 56);
5848
+ this.init(), this._w = Bl, Na.call(this, 64, 56);
5839
5849
  }
5840
- Cl(Lt, ja);
5850
+ $l(Lt, Na);
5841
5851
  Lt.prototype.init = function() {
5842
5852
  return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this;
5843
5853
  };
5844
- function Il(e) {
5854
+ function Fl(e) {
5845
5855
  return e << 1 | e >>> 31;
5846
5856
  }
5847
- function Hl(e) {
5857
+ function jl(e) {
5848
5858
  return e << 5 | e >>> 27;
5849
5859
  }
5850
- function $l(e) {
5860
+ function Nl(e) {
5851
5861
  return e << 30 | e >>> 2;
5852
5862
  }
5853
- function Rl(e, r, s, n) {
5863
+ function Wl(e, r, s, n) {
5854
5864
  return e === 0 ? r & s | ~r & n : e === 2 ? r & s | r & n | s & n : r ^ s ^ n;
5855
5865
  }
5856
5866
  Lt.prototype._update = function(e) {
5857
5867
  for (var r = this._w, s = this._a | 0, n = this._b | 0, o = this._c | 0, i = this._d | 0, t = this._e | 0, p = 0; p < 16; ++p)
5858
5868
  r[p] = e.readInt32BE(p * 4);
5859
5869
  for (; p < 80; ++p)
5860
- r[p] = Il(r[p - 3] ^ r[p - 8] ^ r[p - 14] ^ r[p - 16]);
5870
+ r[p] = Fl(r[p - 3] ^ r[p - 8] ^ r[p - 14] ^ r[p - 16]);
5861
5871
  for (var y = 0; y < 80; ++y) {
5862
- var u = ~~(y / 20), d = Hl(s) + Rl(u, n, o, i) + t + r[y] + xl[u] | 0;
5863
- t = i, i = o, o = $l(n), n = s, s = d;
5872
+ var u = ~~(y / 20), d = jl(s) + Wl(u, n, o, i) + t + r[y] + Dl[u] | 0;
5873
+ t = i, i = o, o = Nl(n), n = s, s = d;
5864
5874
  }
5865
5875
  this._a = s + this._a | 0, this._b = n + this._b | 0, this._c = o + this._c | 0, this._d = i + this._d | 0, this._e = t + this._e | 0;
5866
5876
  };
5867
5877
  Lt.prototype._hash = function() {
5868
- var e = Ol.allocUnsafe(20);
5878
+ var e = Rl.allocUnsafe(20);
5869
5879
  return e.writeInt32BE(this._a | 0, 0), e.writeInt32BE(this._b | 0, 4), e.writeInt32BE(this._c | 0, 8), e.writeInt32BE(this._d | 0, 12), e.writeInt32BE(this._e | 0, 16), e;
5870
5880
  };
5871
- var Dl = Lt;
5872
- const Bl = /* @__PURE__ */ ai(Dl);
5873
- function Fl(e) {
5881
+ var Ul = Lt;
5882
+ const ql = /* @__PURE__ */ ai(Ul);
5883
+ function Ml(e) {
5874
5884
  let r = "";
5875
5885
  for (const s of new Uint8Array(e))
5876
5886
  s < 16 && (r += "0"), r += s.toString(16);
@@ -5878,24 +5888,24 @@ function Fl(e) {
5878
5888
  }
5879
5889
  let Ds = null;
5880
5890
  async function vn(e) {
5881
- return Ds === null && (Ds = await Nl()), Ds ? Na(e) : jl(e);
5891
+ return Ds === null && (Ds = await zl()), Ds ? Wa(e) : Kl(e);
5882
5892
  }
5883
- function jl(e) {
5884
- return new Bl().update(e).digest("hex");
5893
+ function Kl(e) {
5894
+ return new ql().update(e).digest("hex");
5885
5895
  }
5886
- async function Na(e) {
5896
+ async function Wa(e) {
5887
5897
  const r = await crypto.subtle.digest("SHA-1", e);
5888
- return Fl(r);
5898
+ return Ml(r);
5889
5899
  }
5890
- async function Nl() {
5900
+ async function zl() {
5891
5901
  try {
5892
- if (await Na(new Uint8Array([])) === "da39a3ee5e6b4b0d3255bfef95601890afd80709")
5902
+ if (await Wa(new Uint8Array([])) === "da39a3ee5e6b4b0d3255bfef95601890afd80709")
5893
5903
  return !0;
5894
5904
  } catch {
5895
5905
  }
5896
5906
  return !1;
5897
5907
  }
5898
- function Wl(e) {
5908
+ function Gl(e) {
5899
5909
  const r = [];
5900
5910
  let s = 0, n = 0;
5901
5911
  do {
@@ -5905,7 +5915,7 @@ function Wl(e) {
5905
5915
  } while (n);
5906
5916
  return r.reduce((o, i) => o + 1 << 7 | i, -1);
5907
5917
  }
5908
- function Ul(e, r) {
5918
+ function Zl(e, r) {
5909
5919
  let s = r, n = 4, o = null;
5910
5920
  do
5911
5921
  o = e.readUInt8(), s |= (o & 127) << n, n += 7;
@@ -5958,7 +5968,7 @@ class kt {
5958
5968
  7: "ref-delta"
5959
5969
  }, i = {}, t = r.slice(-20).toString("hex"), p = [], y = {}, u = /* @__PURE__ */ new Map();
5960
5970
  let d = null, g = null;
5961
- await dl([r], async ({ data: N, type: j, reference: q, offset: $, num: W }) => {
5971
+ await wl([r], async ({ data: N, type: j, reference: q, offset: $, num: W }) => {
5962
5972
  d === null && (d = W);
5963
5973
  const O = Math.floor(
5964
5974
  (d - W) * 100 / d
@@ -5980,7 +5990,7 @@ class kt {
5980
5990
  });
5981
5991
  const b = Object.keys(i).map(Number);
5982
5992
  for (const [N, j] of b.entries()) {
5983
- const q = N + 1 === b.length ? r.byteLength - 20 : b[N + 1], $ = i[j], W = _p.buf(r.slice(j, q)) >>> 0;
5993
+ const q = N + 1 === b.length ? r.byteLength - 20 : b[N + 1], $ = i[j], W = Ep.buf(r.slice(j, q)) >>> 0;
5984
5994
  $.end = q, $.crc = W;
5985
5995
  }
5986
5996
  const w = new kt({
@@ -6008,7 +6018,7 @@ class kt {
6008
6018
  w.readDepth = 0, w.externalReadDepth = 0;
6009
6019
  const { type: $, object: W } = await w.readSlice({ start: N });
6010
6020
  P[w.readDepth] += 1;
6011
- const O = await vn(gp.wrap({ type: $, object: W }));
6021
+ const O = await vn(kp.wrap({ type: $, object: W }));
6012
6022
  q.oid = O, p.push(O), u.set(O, N), y[O] = q.crc;
6013
6023
  } catch {
6014
6024
  continue;
@@ -6079,10 +6089,10 @@ class kt {
6079
6089
  throw new be("Unrecognized type: 0b" + t.toString(2));
6080
6090
  const y = i & 15;
6081
6091
  let u = y;
6082
- i & 128 && (u = Ul(o, y));
6092
+ i & 128 && (u = Zl(o, y));
6083
6093
  let g = null, b = null;
6084
6094
  if (p === "ofs_delta") {
6085
- const H = Wl(o), P = r - H;
6095
+ const H = Gl(o), P = r - H;
6086
6096
  ({ object: g, type: p } = await this.readSlice({ start: P }));
6087
6097
  }
6088
6098
  if (p === "ref_delta") {
@@ -6090,11 +6100,11 @@ class kt {
6090
6100
  ({ object: g, type: p } = await this.read({ oid: H }));
6091
6101
  }
6092
6102
  const w = n.slice(o.tell());
6093
- if (b = Buffer.from(await ml(w)), b.byteLength !== u)
6103
+ if (b = Buffer.from(await Pl(w)), b.byteLength !== u)
6094
6104
  throw new be(
6095
6105
  `Packfile told us object would have length ${u} but it had length ${b.byteLength}`
6096
6106
  );
6097
- return g && (b = Buffer.from(wp(b, g))), this.readDepth > 3 && (this.offsetCache[r] = { type: p, object: b }), { type: p, format: "content", object: b };
6107
+ return g && (b = Buffer.from(Sp(b, g))), this.readDepth > 3 && (this.offsetCache[r] = { type: p, object: b }), { type: p, format: "content", object: b };
6098
6108
  }
6099
6109
  }
6100
6110
  class St extends it {
@@ -6120,8 +6130,8 @@ class ys extends it {
6120
6130
  }
6121
6131
  }
6122
6132
  ys.code = "ObjectTypeError";
6123
- async function Wa(e, r) {
6124
- const s = qn(e);
6133
+ async function Ua(e, r) {
6134
+ const s = Mn(e);
6125
6135
  for (; ; ) {
6126
6136
  const { value: n, done: o } = await s.next();
6127
6137
  if (n && await r(n), o)
@@ -6132,7 +6142,7 @@ async function Wa(e, r) {
6132
6142
  async function At(e) {
6133
6143
  let r = 0;
6134
6144
  const s = [];
6135
- await Wa(e, (i) => {
6145
+ await Ua(e, (i) => {
6136
6146
  s.push(i), r += i.byteLength;
6137
6147
  });
6138
6148
  const n = new Uint8Array(r);
@@ -6177,7 +6187,7 @@ class Bs {
6177
6187
  });
6178
6188
  }
6179
6189
  }
6180
- class ql {
6190
+ class Vl {
6181
6191
  static demux(r) {
6182
6192
  const s = Ce.streamReader(r), n = new Bs(), o = new Bs(), i = new Bs(), t = async function() {
6183
6193
  const p = await s();
@@ -6280,11 +6290,11 @@ class ql {
6280
6290
  // return output
6281
6291
  // }
6282
6292
  }
6283
- async function Ua(e) {
6284
- const { packetlines: r, packfile: s, progress: n } = ql.demux(e), o = [], i = [], t = [];
6293
+ async function qa(e) {
6294
+ const { packetlines: r, packfile: s, progress: n } = Vl.demux(e), o = [], i = [], t = [];
6285
6295
  let p = !1, y = !1;
6286
6296
  return new Promise((u, d) => {
6287
- Wa(r, (g) => {
6297
+ Ua(r, (g) => {
6288
6298
  const b = g.toString("utf8").trim();
6289
6299
  if (b.startsWith("shallow")) {
6290
6300
  const w = b.slice(-41).trim();
@@ -6304,28 +6314,28 @@ async function Ua(e) {
6304
6314
  });
6305
6315
  }
6306
6316
  typeof window < "u" && (window.Buffer = gr.Buffer);
6307
- async function Ml(e, r, s) {
6308
- const o = (await Ma(e, r))[r], i = await Ka(e, o), t = await Gl(i, o, s), p = await Zl(
6317
+ async function Yl(e, r, s) {
6318
+ const o = (await Ka(e, r))[r], i = await za(e, o), t = await Jl(i, o, s), p = await eu(
6309
6319
  e,
6310
6320
  s.map((u) => t[u].oid)
6311
6321
  ), y = {};
6312
6322
  return await Promise.all(
6313
6323
  s.map(async (u) => {
6314
- y[u] = await za(
6324
+ y[u] = await Ga(
6315
6325
  p,
6316
6326
  t[u].oid
6317
6327
  );
6318
6328
  })
6319
6329
  ), y;
6320
6330
  }
6321
- async function Kl(e, r) {
6322
- const s = await Ma(e, r);
6331
+ async function Xl(e, r) {
6332
+ const s = await Ka(e, r);
6323
6333
  if (!(r in s))
6324
6334
  throw new Error(`Branch ${r} not found`);
6325
- const n = s[r], o = await Ka(e, n), i = await zl(o, n);
6326
- return i != null && i.object ? qa(i) : [];
6335
+ const n = s[r], o = await za(e, n), i = await Ql(o, n);
6336
+ return i != null && i.object ? Ma(i) : [];
6327
6337
  }
6328
- function qa(e) {
6338
+ function Ma(e) {
6329
6339
  return e.object.map((r) => {
6330
6340
  if (r.type === "blob")
6331
6341
  return {
@@ -6336,11 +6346,11 @@ function qa(e) {
6336
6346
  return {
6337
6347
  name: r.path,
6338
6348
  type: "folder",
6339
- children: qa(r)
6349
+ children: Ma(r)
6340
6350
  };
6341
6351
  }).filter((r) => !!(r != null && r.name));
6342
6352
  }
6343
- async function Ma(e, r) {
6353
+ async function Ka(e, r) {
6344
6354
  const s = gr.Buffer.from(
6345
6355
  await At([
6346
6356
  Ce.encode(`command=ls-refs
@@ -6366,13 +6376,13 @@ async function Ma(e, r) {
6366
6376
  },
6367
6377
  body: s
6368
6378
  }), o = {};
6369
- for await (const i of Vl(n)) {
6379
+ for await (const i of ru(n)) {
6370
6380
  const t = i.indexOf(" "), p = i.slice(0, t), y = i.slice(t + 1, i.length - 1);
6371
6381
  o[y] = p;
6372
6382
  }
6373
6383
  return o;
6374
6384
  }
6375
- async function Ka(e, r) {
6385
+ async function za(e, r) {
6376
6386
  const s = gr.Buffer.from(
6377
6387
  await At([
6378
6388
  Ce.encode(
@@ -6399,7 +6409,7 @@ async function Ka(e, r) {
6399
6409
  "Content-Length": `${s.length}`
6400
6410
  },
6401
6411
  body: s
6402
- }), o = Ga(n.body), i = await Ua(o), t = gr.Buffer.from(await At(i.packfile)), p = await kt.fromPack({
6412
+ }), o = Za(n.body), i = await qa(o), t = gr.Buffer.from(await At(i.packfile)), p = await kt.fromPack({
6403
6413
  pack: t
6404
6414
  }), y = p.read;
6405
6415
  return p.read = async function({ oid: u, ...d }) {
@@ -6407,7 +6417,7 @@ async function Ka(e, r) {
6407
6417
  return g.oid = u, g;
6408
6418
  }, p;
6409
6419
  }
6410
- async function zl(e, r) {
6420
+ async function Ql(e, r) {
6411
6421
  const s = await e.read({
6412
6422
  oid: r
6413
6423
  });
@@ -6421,7 +6431,7 @@ async function zl(e, r) {
6421
6431
  }
6422
6432
  return n;
6423
6433
  }
6424
- async function Gl(e, r, s) {
6434
+ async function Jl(e, r, s) {
6425
6435
  const n = await e.read({
6426
6436
  oid: r
6427
6437
  });
@@ -6453,7 +6463,7 @@ async function Gl(e, r, s) {
6453
6463
  }
6454
6464
  return i;
6455
6465
  }
6456
- async function Zl(e, r) {
6466
+ async function eu(e, r) {
6457
6467
  const s = gr.Buffer.from(
6458
6468
  await At([
6459
6469
  ...r.map(
@@ -6474,12 +6484,12 @@ async function Zl(e, r) {
6474
6484
  "Content-Length": `${s.length}`
6475
6485
  },
6476
6486
  body: s
6477
- }), o = Ga(n.body), i = await Ua(o), t = gr.Buffer.from(await At(i.packfile));
6487
+ }), o = Za(n.body), i = await qa(o), t = gr.Buffer.from(await At(i.packfile));
6478
6488
  return await kt.fromPack({
6479
6489
  pack: t
6480
6490
  });
6481
6491
  }
6482
- async function za(e, r) {
6492
+ async function Ga(e, r) {
6483
6493
  const s = await e.read({ oid: r });
6484
6494
  if (Rr(s), s.type === "blob")
6485
6495
  return s.object;
@@ -6489,7 +6499,7 @@ async function za(e, r) {
6489
6499
  const p = await e.read({ oid: i });
6490
6500
  Rr(p), n[o] = p.object;
6491
6501
  } else
6492
- t === "tree" && (n[o] = await za(e, i));
6502
+ t === "tree" && (n[o] = await Ga(e, i));
6493
6503
  return n;
6494
6504
  }
6495
6505
  function Rr(e) {
@@ -6515,7 +6525,7 @@ function Rr(e) {
6515
6525
  );
6516
6526
  }
6517
6527
  }
6518
- async function* Vl(e) {
6528
+ async function* ru(e) {
6519
6529
  const r = await e.text();
6520
6530
  let s = 0;
6521
6531
  for (; s <= r.length; ) {
@@ -6525,7 +6535,7 @@ async function* Vl(e) {
6525
6535
  yield r.substring(s + 4, s + n), s += n;
6526
6536
  }
6527
6537
  }
6528
- function Ga(e) {
6538
+ function Za(e) {
6529
6539
  if (e[Symbol.asyncIterator])
6530
6540
  return e;
6531
6541
  const r = e.getReader();
@@ -6541,7 +6551,7 @@ function Ga(e) {
6541
6551
  }
6542
6552
  };
6543
6553
  }
6544
- function Yl(e, r) {
6554
+ function tu(e, r) {
6545
6555
  r = si(r);
6546
6556
  const s = ["", ".", "/"].includes(r);
6547
6557
  let n = e;
@@ -6572,7 +6582,7 @@ function Yl(e, r) {
6572
6582
  }
6573
6583
  return o;
6574
6584
  }
6575
- const Xl = [
6585
+ const su = [
6576
6586
  "vfs",
6577
6587
  "literal",
6578
6588
  "wordpress.org/themes",
@@ -6580,8 +6590,8 @@ const Xl = [
6580
6590
  "url",
6581
6591
  "git:directory"
6582
6592
  ];
6583
- function Ql(e) {
6584
- return e && typeof e == "object" && typeof e.resource == "string" && Xl.includes(e.resource);
6593
+ function iu(e) {
6594
+ return e && typeof e == "object" && typeof e.resource == "string" && su.includes(e.resource);
6585
6595
  }
6586
6596
  class br {
6587
6597
  get progress() {
@@ -6612,35 +6622,35 @@ class br {
6612
6622
  let i;
6613
6623
  switch (r.resource) {
6614
6624
  case "vfs":
6615
- i = new Jl(r, n);
6625
+ i = new nu(r, n);
6616
6626
  break;
6617
6627
  case "literal":
6618
- i = new eu(r, n);
6628
+ i = new au(r, n);
6619
6629
  break;
6620
6630
  case "wordpress.org/themes":
6621
- i = new nu(r, n);
6631
+ i = new uu(r, n);
6622
6632
  break;
6623
6633
  case "wordpress.org/plugins":
6624
- i = new au(r, n);
6634
+ i = new cu(r, n);
6625
6635
  break;
6626
6636
  case "url":
6627
- i = new tu(r, n);
6637
+ i = new pu(r, n);
6628
6638
  break;
6629
6639
  case "git:directory":
6630
- i = new su(r, n, {
6640
+ i = new fu(r, n, {
6631
6641
  corsProxy: o
6632
6642
  });
6633
6643
  break;
6634
6644
  case "literal:directory":
6635
- i = new iu(r, n);
6645
+ i = new lu(r, n);
6636
6646
  break;
6637
6647
  default:
6638
6648
  throw new Error(`Invalid resource: ${r}`);
6639
6649
  }
6640
- return i = new ou(i), s && (i = new pu(i, s)), i;
6650
+ return i = new du(i), s && (i = new hu(i, s)), i;
6641
6651
  }
6642
6652
  }
6643
- class Za extends br {
6653
+ class Va extends br {
6644
6654
  constructor(r) {
6645
6655
  super(), this.resource = r;
6646
6656
  }
@@ -6665,7 +6675,7 @@ class Za extends br {
6665
6675
  this.resource.setPlayground(r);
6666
6676
  }
6667
6677
  }
6668
- class Jl extends br {
6678
+ class nu extends br {
6669
6679
  /**
6670
6680
  * Creates a new instance of `VFSResource`.
6671
6681
  * @param playground The playground client.
@@ -6688,7 +6698,7 @@ class Jl extends br {
6688
6698
  return this.resource.path.split("/").pop() || "";
6689
6699
  }
6690
6700
  }
6691
- class eu extends br {
6701
+ class au extends br {
6692
6702
  /**
6693
6703
  * Creates a new instance of `LiteralResource`.
6694
6704
  * @param resource The literal reference.
@@ -6724,9 +6734,9 @@ class gi extends br {
6724
6734
  let o = await fetch(r);
6725
6735
  if (!o.ok)
6726
6736
  throw new Error(`Could not download "${r}"`);
6727
- if (o = await tp(
6737
+ if (o = await pp(
6728
6738
  o,
6729
- ((n = this.progress) == null ? void 0 : n.loadingListener) ?? ru
6739
+ ((n = this.progress) == null ? void 0 : n.loadingListener) ?? ou
6730
6740
  ), o.status !== 200)
6731
6741
  throw new Error(`Could not download "${r}"`);
6732
6742
  return new File([await o.blob()], this.name);
@@ -6780,9 +6790,9 @@ class gi extends br {
6780
6790
  return !0;
6781
6791
  }
6782
6792
  }
6783
- const ru = () => {
6793
+ const ou = () => {
6784
6794
  };
6785
- class tu extends gi {
6795
+ class pu extends gi {
6786
6796
  /**
6787
6797
  * Creates a new instance of `UrlResource`.
6788
6798
  * @param resource The URL reference.
@@ -6808,14 +6818,14 @@ class tu extends gi {
6808
6818
  return this.resource.caption ?? super.caption;
6809
6819
  }
6810
6820
  }
6811
- class su extends br {
6821
+ class fu extends br {
6812
6822
  constructor(r, s, n) {
6813
6823
  super(), this.reference = r, this._progress = s, this.options = n;
6814
6824
  }
6815
6825
  async resolve() {
6816
6826
  var p;
6817
- const r = (p = this.options) != null && p.corsProxy ? `${this.options.corsProxy}?${this.reference.url}` : this.reference.url, s = ["", "HEAD"].includes(this.reference.ref) ? "HEAD" : `refs/heads/${this.reference.ref}`, n = await Kl(r, s), o = this.reference.path.replace(/^\/+/, ""), i = Yl(n, o);
6818
- let t = await Ml(r, s, i);
6827
+ const r = (p = this.options) != null && p.corsProxy ? `${this.options.corsProxy}?${this.reference.url}` : this.reference.url, s = ["", "HEAD"].includes(this.reference.ref) ? "HEAD" : `refs/heads/${this.reference.ref}`, n = await Xl(r, s), o = this.reference.path.replace(/^\/+/, ""), i = tu(n, o);
6828
+ let t = await Yl(r, s, i);
6819
6829
  return t = Object.fromEntries(
6820
6830
  Object.entries(t).map(([y, u]) => (y = y.substring(this.reference.path.length), y = y.replace(/^\/+/, ""), [y, u]))
6821
6831
  ), {
@@ -6828,7 +6838,7 @@ class su extends br {
6828
6838
  return this.reference.path.split("/").pop();
6829
6839
  }
6830
6840
  }
6831
- class iu extends br {
6841
+ class lu extends br {
6832
6842
  constructor(r, s) {
6833
6843
  super(), this.reference = r, this._progress = s;
6834
6844
  }
@@ -6840,7 +6850,7 @@ class iu extends br {
6840
6850
  return this.reference.name;
6841
6851
  }
6842
6852
  }
6843
- class nu extends gi {
6853
+ class uu extends gi {
6844
6854
  constructor(r, s) {
6845
6855
  super(s), this.resource = r;
6846
6856
  }
@@ -6848,10 +6858,10 @@ class nu extends gi {
6848
6858
  return os(this.resource.slug);
6849
6859
  }
6850
6860
  getURL() {
6851
- return `https://downloads.wordpress.org/theme/${Va(this.resource.slug)}`;
6861
+ return `https://downloads.wordpress.org/theme/${Ya(this.resource.slug)}`;
6852
6862
  }
6853
6863
  }
6854
- class au extends gi {
6864
+ class cu extends gi {
6855
6865
  constructor(r, s) {
6856
6866
  super(s), this.resource = r;
6857
6867
  }
@@ -6861,19 +6871,19 @@ class au extends gi {
6861
6871
  }
6862
6872
  /** @inheritDoc */
6863
6873
  getURL() {
6864
- return `https://downloads.wordpress.org/plugin/${Va(this.resource.slug)}`;
6874
+ return `https://downloads.wordpress.org/plugin/${Ya(this.resource.slug)}`;
6865
6875
  }
6866
6876
  }
6867
- function Va(e) {
6877
+ function Ya(e) {
6868
6878
  return !e || e.endsWith(".zip") ? e : e + ".latest-stable.zip";
6869
6879
  }
6870
- class ou extends Za {
6880
+ class du extends Va {
6871
6881
  /** @inheritDoc */
6872
6882
  async resolve() {
6873
6883
  return this.promise || (this.promise = this.resource.resolve()), this.promise;
6874
6884
  }
6875
6885
  }
6876
- class pu extends Za {
6886
+ class hu extends Va {
6877
6887
  constructor(r, s) {
6878
6888
  super(r), this.semaphore = s;
6879
6889
  }
@@ -6882,7 +6892,7 @@ class pu extends Za {
6882
6892
  return this.isAsync ? this.semaphore.run(() => this.resource.resolve()) : this.resource.resolve();
6883
6893
  }
6884
6894
  }
6885
- const fu = {
6895
+ const yu = {
6886
6896
  type: "object",
6887
6897
  properties: {
6888
6898
  landingPage: {
@@ -7009,13 +7019,13 @@ const fu = {
7009
7019
  $schema: { type: "string" }
7010
7020
  },
7011
7021
  additionalProperties: !1
7012
- }, lu = {
7022
+ }, mu = {
7013
7023
  type: "string",
7014
7024
  enum: ["8.3", "8.2", "8.1", "8.0", "7.4", "7.3", "7.2", "7.1", "7.0"]
7015
- }, uu = {
7025
+ }, _u = {
7016
7026
  type: "object",
7017
7027
  additionalProperties: { type: ["string", "boolean", "number"] }
7018
- }, Ya = Object.prototype.hasOwnProperty;
7028
+ }, Xa = Object.prototype.hasOwnProperty;
7019
7029
  function le(e, { instancePath: r = "", parentData: s, parentDataProperty: n, rootData: o = e } = {}) {
7020
7030
  let i = null, t = 0;
7021
7031
  const p = t;
@@ -8470,7 +8480,7 @@ Only the username field is required for user authentication.`
8470
8480
  required: ["language", "step"]
8471
8481
  }
8472
8482
  ]
8473
- }, cu = {
8483
+ }, gu = {
8474
8484
  type: "object",
8475
8485
  additionalProperties: {
8476
8486
  anyOf: [
@@ -8504,7 +8514,7 @@ function Dr(e, { instancePath: r = "", parentData: s, parentDataProperty: n, roo
8504
8514
  schemaPath: "#/additionalProperties/anyOf/1/type",
8505
8515
  keyword: "type",
8506
8516
  params: {
8507
- type: cu.additionalProperties.anyOf[1].type
8517
+ type: gu.additionalProperties.anyOf[1].type
8508
8518
  },
8509
8519
  message: "must be object,string"
8510
8520
  };
@@ -8787,7 +8797,7 @@ function Je(e, { instancePath: r = "", parentData: s, parentDataProperty: n, roo
8787
8797
  }
8788
8798
  return Je.errors = i, t === 0;
8789
8799
  }
8790
- const Xa = {
8800
+ const Qa = {
8791
8801
  type: "string",
8792
8802
  enum: ["GET", "POST", "HEAD", "OPTIONS", "PATCH", "PUT", "DELETE"]
8793
8803
  };
@@ -8839,7 +8849,7 @@ function We(e, { instancePath: r = "", parentData: s, parentDataProperty: n, roo
8839
8849
  instancePath: r + "/method",
8840
8850
  schemaPath: "#/definitions/HTTPMethod/enum",
8841
8851
  keyword: "enum",
8842
- params: { allowedValues: Xa.enum },
8852
+ params: { allowedValues: Qa.enum },
8843
8853
  message: "must be equal to one of the allowed values"
8844
8854
  }
8845
8855
  ], !1;
@@ -9838,7 +9848,7 @@ function We(e, { instancePath: r = "", parentData: s, parentDataProperty: n, roo
9838
9848
  ], !1;
9839
9849
  return We.errors = i, t === 0;
9840
9850
  }
9841
- const du = {
9851
+ const wu = {
9842
9852
  type: "object",
9843
9853
  properties: {
9844
9854
  relativeUri: {
@@ -9910,7 +9920,7 @@ function Se(e, { instancePath: r = "", parentData: s, parentDataProperty: n, roo
9910
9920
  if (e && typeof e == "object" && !Array.isArray(e)) {
9911
9921
  const H = t;
9912
9922
  for (const P in e)
9913
- if (!Ya.call(du.properties, P))
9923
+ if (!Xa.call(wu.properties, P))
9914
9924
  return Se.errors = [
9915
9925
  {
9916
9926
  instancePath: r,
@@ -9989,7 +9999,7 @@ function Se(e, { instancePath: r = "", parentData: s, parentDataProperty: n, roo
9989
9999
  schemaPath: "#/definitions/HTTPMethod/enum",
9990
10000
  keyword: "enum",
9991
10001
  params: {
9992
- allowedValues: Xa.enum
10002
+ allowedValues: Qa.enum
9993
10003
  },
9994
10004
  message: "must be equal to one of the allowed values"
9995
10005
  }
@@ -16396,7 +16406,7 @@ function ie(e, { instancePath: r = "", parentData: s, parentDataProperty: n, roo
16396
16406
  if (e && typeof e == "object" && !Array.isArray(e)) {
16397
16407
  const O = t;
16398
16408
  for (const A in e)
16399
- if (!Ya.call(fu.properties, A))
16409
+ if (!Xa.call(yu.properties, A))
16400
16410
  return ie.errors = [
16401
16411
  {
16402
16412
  instancePath: r,
@@ -16644,7 +16654,7 @@ function ie(e, { instancePath: r = "", parentData: s, parentDataProperty: n, roo
16644
16654
  schemaPath: "#/definitions/SupportedPHPVersion/enum",
16645
16655
  keyword: "enum",
16646
16656
  params: {
16647
- allowedValues: lu.enum
16657
+ allowedValues: mu.enum
16648
16658
  },
16649
16659
  message: "must be equal to one of the allowed values"
16650
16660
  };
@@ -16857,7 +16867,7 @@ function ie(e, { instancePath: r = "", parentData: s, parentDataProperty: n, roo
16857
16867
  schemaPath: "#/definitions/PHPConstants/additionalProperties/type",
16858
16868
  keyword: "type",
16859
16869
  params: {
16860
- type: uu.additionalProperties.type
16870
+ type: _u.additionalProperties.type
16861
16871
  },
16862
16872
  message: "must be string,boolean,number"
16863
16873
  }
@@ -17376,14 +17386,14 @@ function Zt(e, { instancePath: r = "", parentData: s, parentDataProperty: n, roo
17376
17386
  rootData: o
17377
17387
  }) || (i = i === null ? ie.errors : i.concat(ie.errors), t = i.length), Zt.errors = i, t === 0;
17378
17388
  }
17379
- const { wpCLI: hu, ...Pn } = ep, yu = {
17389
+ const { wpCLI: bu, ...Pn } = ap, vu = {
17380
17390
  ...Pn,
17381
- "wp-cli": hu,
17391
+ "wp-cli": bu,
17382
17392
  importFile: Pn.importWxr
17383
17393
  };
17384
- function mu(e, {
17394
+ function Pu(e, {
17385
17395
  progress: r = new ps(),
17386
- semaphore: s = new oo({ concurrency: 3 }),
17396
+ semaphore: s = new po({ concurrency: 3 }),
17387
17397
  onStepCompleted: n = () => {
17388
17398
  },
17389
17399
  corsProxy: o
@@ -17391,7 +17401,7 @@ function mu(e, {
17391
17401
  var b, w, H, P, N, j, q, $, W;
17392
17402
  e = structuredClone(e), e = {
17393
17403
  ...e,
17394
- steps: (e.steps || []).filter(wu).filter(bu)
17404
+ steps: (e.steps || []).filter(Su).filter(Au)
17395
17405
  };
17396
17406
  for (const O of e.steps)
17397
17407
  !O || typeof O != "object" || (O.step === "importFile" ? (O.step = "importWxr", xe.warn(
@@ -17430,7 +17440,7 @@ function mu(e, {
17430
17440
  if ((w = e == null ? void 0 : e.extraLibraries) != null && w.includes("wp-cli") || i !== -1) {
17431
17441
  const O = {
17432
17442
  step: "writeFile",
17433
- data: Oo,
17443
+ data: xo,
17434
17444
  path: ni
17435
17445
  };
17436
17446
  i === -1 ? (H = e.steps) == null || H.push(O) : (P = e.steps) == null || P.splice(
@@ -17450,7 +17460,7 @@ function mu(e, {
17450
17460
  caption: "Downloading the WordPress Importer plugin"
17451
17461
  }
17452
17462
  }));
17453
- const { valid: p, errors: y } = _u(e);
17463
+ const { valid: p, errors: y } = Eu(e);
17454
17464
  if (!p) {
17455
17465
  const O = new Error(
17456
17466
  `Invalid blueprint: ${y[0].message} at ${y[0].instancePath}`
@@ -17464,7 +17474,7 @@ function mu(e, {
17464
17474
  },
17465
17475
  0
17466
17476
  ), g = u.map(
17467
- (O) => vu(O, {
17477
+ (O) => Tu(O, {
17468
17478
  semaphore: s,
17469
17479
  rootProgressTracker: r,
17470
17480
  totalProgressWeight: d,
@@ -17473,10 +17483,10 @@ function mu(e, {
17473
17483
  );
17474
17484
  return {
17475
17485
  versions: {
17476
- php: gu(
17486
+ php: ku(
17477
17487
  (q = e.preferredVersions) == null ? void 0 : q.php,
17478
17488
  oi,
17479
- No
17489
+ Wo
17480
17490
  ),
17481
17491
  wp: (($ = e.preferredVersions) == null ? void 0 : $.wp) || "latest"
17482
17492
  },
@@ -17514,7 +17524,7 @@ function mu(e, {
17514
17524
  }
17515
17525
  };
17516
17526
  }
17517
- function _u(e) {
17527
+ function Eu(e) {
17518
17528
  var o;
17519
17529
  const r = Zt(e);
17520
17530
  if (r)
@@ -17530,18 +17540,18 @@ function _u(e) {
17530
17540
  errors: n
17531
17541
  };
17532
17542
  }
17533
- function gu(e, r, s) {
17543
+ function ku(e, r, s) {
17534
17544
  return e && r.includes(e) ? e : s;
17535
17545
  }
17536
- function wu(e) {
17546
+ function Su(e) {
17537
17547
  return !!(typeof e == "object" && e);
17538
17548
  }
17539
- function bu(e) {
17549
+ function Au(e) {
17540
17550
  return ["setPhpIniEntry", "request"].includes(e.step) ? (xe.warn(
17541
17551
  `The "${e.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`
17542
17552
  ), !1) : !0;
17543
17553
  }
17544
- function vu(e, {
17554
+ function Tu(e, {
17545
17555
  semaphore: r,
17546
17556
  rootProgressTracker: s,
17547
17557
  totalProgressWeight: n,
@@ -17553,7 +17563,7 @@ function vu(e, {
17553
17563
  ), t = {};
17554
17564
  for (const b of Object.keys(e)) {
17555
17565
  let w = e[b];
17556
- Ql(w) && (w = br.create(w, {
17566
+ iu(w) && (w = br.create(w, {
17557
17567
  semaphore: r,
17558
17568
  corsProxy: o
17559
17569
  })), t[b] = w;
@@ -17561,9 +17571,9 @@ function vu(e, {
17561
17571
  const p = async (b) => {
17562
17572
  var w;
17563
17573
  try {
17564
- return i.fillSlowly(), await yu[e.step](
17574
+ return i.fillSlowly(), await vu[e.step](
17565
17575
  b,
17566
- await Pu(t),
17576
+ await Cu(t),
17567
17577
  {
17568
17578
  tracker: i,
17569
17579
  initialCaption: (w = e.progress) == null ? void 0 : w.caption
@@ -17587,7 +17597,7 @@ function En(e) {
17587
17597
  }
17588
17598
  return r;
17589
17599
  }
17590
- async function Pu(e) {
17600
+ async function Cu(e) {
17591
17601
  const r = {};
17592
17602
  for (const s in e) {
17593
17603
  const n = e[s];
@@ -17595,18 +17605,18 @@ async function Pu(e) {
17595
17605
  }
17596
17606
  return r;
17597
17607
  }
17598
- async function Eu(e, r) {
17608
+ async function Ou(e, r) {
17599
17609
  await e.run(r);
17600
17610
  }
17601
- function ec() {
17611
+ function ac() {
17602
17612
  }
17603
17613
  /**
17604
17614
  * @license
17605
17615
  * Copyright 2019 Google LLC
17606
17616
  * SPDX-License-Identifier: Apache-2.0
17607
17617
  */
17608
- const Qa = Symbol("Comlink.proxy"), ku = Symbol("Comlink.endpoint"), Su = Symbol("Comlink.releaseProxy"), Ns = Symbol("Comlink.finalizer"), Vt = Symbol("Comlink.thrown"), Ja = (e) => typeof e == "object" && e !== null || typeof e == "function", Au = {
17609
- canHandle: (e) => Ja(e) && e[Qa],
17618
+ const Ja = Symbol("Comlink.proxy"), xu = Symbol("Comlink.endpoint"), Lu = Symbol("Comlink.releaseProxy"), Ns = Symbol("Comlink.finalizer"), Vt = Symbol("Comlink.thrown"), eo = (e) => typeof e == "object" && e !== null || typeof e == "function", Iu = {
17619
+ canHandle: (e) => eo(e) && e[Ja],
17610
17620
  serialize(e) {
17611
17621
  const { port1: r, port2: s } = new MessageChannel();
17612
17622
  return wi(e, r), [s, [s]];
@@ -17614,8 +17624,8 @@ const Qa = Symbol("Comlink.proxy"), ku = Symbol("Comlink.endpoint"), Su = Symbol
17614
17624
  deserialize(e) {
17615
17625
  return e.start(), bi(e);
17616
17626
  }
17617
- }, Tu = {
17618
- canHandle: (e) => Ja(e) && Vt in e,
17627
+ }, Hu = {
17628
+ canHandle: (e) => eo(e) && Vt in e,
17619
17629
  serialize({ value: e }) {
17620
17630
  let r;
17621
17631
  return e instanceof Error ? r = {
@@ -17631,10 +17641,10 @@ const Qa = Symbol("Comlink.proxy"), ku = Symbol("Comlink.endpoint"), Su = Symbol
17631
17641
  throw e.isError ? Object.assign(new Error(e.value.message), e.value) : e.value;
17632
17642
  }
17633
17643
  }, et = /* @__PURE__ */ new Map([
17634
- ["proxy", Au],
17635
- ["throw", Tu]
17644
+ ["proxy", Iu],
17645
+ ["throw", Hu]
17636
17646
  ]);
17637
- function Cu(e, r) {
17647
+ function $u(e, r) {
17638
17648
  for (const s of e)
17639
17649
  if (r === s || s === "*" || s instanceof RegExp && s.test(r))
17640
17650
  return !0;
@@ -17644,7 +17654,7 @@ function wi(e, r = globalThis, s = ["*"]) {
17644
17654
  r.addEventListener("message", function n(o) {
17645
17655
  if (!o || !o.data)
17646
17656
  return;
17647
- if (!Cu(s, o.origin)) {
17657
+ if (!$u(s, o.origin)) {
17648
17658
  console.warn(`Invalid origin '${o.origin}' for comlink proxy`);
17649
17659
  return;
17650
17660
  }
@@ -17665,13 +17675,13 @@ function wi(e, r = globalThis, s = ["*"]) {
17665
17675
  case "CONSTRUCT":
17666
17676
  {
17667
17677
  const b = new g(...y);
17668
- u = so(b);
17678
+ u = io(b);
17669
17679
  }
17670
17680
  break;
17671
17681
  case "ENDPOINT":
17672
17682
  {
17673
17683
  const { port1: b, port2: w } = new MessageChannel();
17674
- wi(e, w), u = Hu(b, [b]);
17684
+ wi(e, w), u = ju(b, [b]);
17675
17685
  }
17676
17686
  break;
17677
17687
  case "RELEASE":
@@ -17685,7 +17695,7 @@ function wi(e, r = globalThis, s = ["*"]) {
17685
17695
  }
17686
17696
  Promise.resolve(u).catch((d) => ({ value: d, [Vt]: 0 })).then((d) => {
17687
17697
  const [g, b] = is(d);
17688
- r.postMessage(Object.assign(Object.assign({}, g), { id: i }), b), t === "RELEASE" && (r.removeEventListener("message", n), eo(r), Ns in e && typeof e[Ns] == "function" && e[Ns]());
17698
+ r.postMessage(Object.assign(Object.assign({}, g), { id: i }), b), t === "RELEASE" && (r.removeEventListener("message", n), ro(r), Ns in e && typeof e[Ns] == "function" && e[Ns]());
17689
17699
  }).catch((d) => {
17690
17700
  const [g, b] = is({
17691
17701
  value: new TypeError("Unserializable return value"),
@@ -17695,11 +17705,11 @@ function wi(e, r = globalThis, s = ["*"]) {
17695
17705
  });
17696
17706
  }), r.start && r.start();
17697
17707
  }
17698
- function Ou(e) {
17708
+ function Ru(e) {
17699
17709
  return e.constructor.name === "MessagePort";
17700
17710
  }
17701
- function eo(e) {
17702
- Ou(e) && e.close();
17711
+ function ro(e) {
17712
+ Ru(e) && e.close();
17703
17713
  }
17704
17714
  function bi(e, r) {
17705
17715
  return ri(e, [], r);
@@ -17708,22 +17718,22 @@ function Wt(e) {
17708
17718
  if (e)
17709
17719
  throw new Error("Proxy has been released and is not useable");
17710
17720
  }
17711
- function ro(e) {
17721
+ function to(e) {
17712
17722
  return Qr(e, {
17713
17723
  type: "RELEASE"
17714
17724
  }).then(() => {
17715
- eo(e);
17725
+ ro(e);
17716
17726
  });
17717
17727
  }
17718
17728
  const ts = /* @__PURE__ */ new WeakMap(), ss = "FinalizationRegistry" in globalThis && new FinalizationRegistry((e) => {
17719
17729
  const r = (ts.get(e) || 0) - 1;
17720
- ts.set(e, r), r === 0 && ro(e);
17730
+ ts.set(e, r), r === 0 && to(e);
17721
17731
  });
17722
- function xu(e, r) {
17732
+ function Du(e, r) {
17723
17733
  const s = (ts.get(r) || 0) + 1;
17724
17734
  ts.set(r, s), ss && ss.register(e, r, e);
17725
17735
  }
17726
- function Lu(e) {
17736
+ function Bu(e) {
17727
17737
  ss && ss.unregister(e);
17728
17738
  }
17729
17739
  function ri(e, r = [], s = function() {
@@ -17731,9 +17741,9 @@ function ri(e, r = [], s = function() {
17731
17741
  let n = !1;
17732
17742
  const o = new Proxy(s, {
17733
17743
  get(i, t) {
17734
- if (Wt(n), t === Su)
17744
+ if (Wt(n), t === Lu)
17735
17745
  return () => {
17736
- Lu(o), ro(e), n = !0;
17746
+ Bu(o), to(e), n = !0;
17737
17747
  };
17738
17748
  if (t === "then") {
17739
17749
  if (r.length === 0)
@@ -17758,7 +17768,7 @@ function ri(e, r = [], s = function() {
17758
17768
  apply(i, t, p) {
17759
17769
  Wt(n);
17760
17770
  const y = r[r.length - 1];
17761
- if (y === ku)
17771
+ if (y === xu)
17762
17772
  return Qr(e, {
17763
17773
  type: "ENDPOINT"
17764
17774
  }).then(Ir);
@@ -17781,23 +17791,23 @@ function ri(e, r = [], s = function() {
17781
17791
  }, y).then(Ir);
17782
17792
  }
17783
17793
  });
17784
- return xu(o, e), o;
17794
+ return Du(o, e), o;
17785
17795
  }
17786
- function Iu(e) {
17796
+ function Fu(e) {
17787
17797
  return Array.prototype.concat.apply([], e);
17788
17798
  }
17789
17799
  function kn(e) {
17790
17800
  const r = e.map(is);
17791
- return [r.map((s) => s[0]), Iu(r.map((s) => s[1]))];
17801
+ return [r.map((s) => s[0]), Fu(r.map((s) => s[1]))];
17792
17802
  }
17793
- const to = /* @__PURE__ */ new WeakMap();
17794
- function Hu(e, r) {
17795
- return to.set(e, r), e;
17803
+ const so = /* @__PURE__ */ new WeakMap();
17804
+ function ju(e, r) {
17805
+ return so.set(e, r), e;
17796
17806
  }
17797
- function so(e) {
17798
- return Object.assign(e, { [Qa]: !0 });
17807
+ function io(e) {
17808
+ return Object.assign(e, { [Ja]: !0 });
17799
17809
  }
17800
- function $u(e, r = globalThis, s = "*") {
17810
+ function Nu(e, r = globalThis, s = "*") {
17801
17811
  return {
17802
17812
  postMessage: (n, o) => e.postMessage(n, s, o),
17803
17813
  addEventListener: r.addEventListener.bind(r),
@@ -17822,7 +17832,7 @@ function is(e) {
17822
17832
  type: "RAW",
17823
17833
  value: e
17824
17834
  },
17825
- to.get(e) || []
17835
+ so.get(e) || []
17826
17836
  ];
17827
17837
  }
17828
17838
  function Ir(e) {
@@ -17835,36 +17845,36 @@ function Ir(e) {
17835
17845
  }
17836
17846
  function Qr(e, r, s) {
17837
17847
  return new Promise((n) => {
17838
- const o = Ru();
17848
+ const o = Wu();
17839
17849
  e.addEventListener("message", function i(t) {
17840
17850
  !t.data || !t.data.id || t.data.id !== o || (e.removeEventListener("message", i), n(t.data));
17841
17851
  }), e.start && e.start(), e.postMessage(Object.assign({ id: o }, r), s);
17842
17852
  });
17843
17853
  }
17844
- function Ru() {
17854
+ function Wu() {
17845
17855
  return new Array(4).fill(0).map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16)).join("-");
17846
17856
  }
17847
- function Du(e, r = void 0) {
17848
- Fu();
17849
- const s = e instanceof Worker ? e : $u(e, r), n = bi(s), o = io(n);
17857
+ function Uu(e, r = void 0) {
17858
+ Mu();
17859
+ const s = e instanceof Worker ? e : Nu(e, r), n = bi(s), o = no(n);
17850
17860
  return new Proxy(o, {
17851
17861
  get: (i, t) => t === "isConnected" ? async () => {
17852
17862
  for (; ; )
17853
17863
  try {
17854
- await Bu(n.isConnected(), 200);
17864
+ await qu(n.isConnected(), 200);
17855
17865
  break;
17856
17866
  } catch {
17857
17867
  }
17858
17868
  } : n[t]
17859
17869
  });
17860
17870
  }
17861
- async function Bu(e, r) {
17871
+ async function qu(e, r) {
17862
17872
  return new Promise((s, n) => {
17863
17873
  setTimeout(n, r), e.then(s);
17864
17874
  });
17865
17875
  }
17866
17876
  let Sn = !1;
17867
- function Fu() {
17877
+ function Mu() {
17868
17878
  if (Sn)
17869
17879
  return;
17870
17880
  Sn = !0, et.set("EVENT", {
@@ -17900,20 +17910,20 @@ function Fu() {
17900
17910
  return s.response && (n[0].value.response = s.response), s.source && (n[0].value.source = s.source), n;
17901
17911
  };
17902
17912
  }
17903
- function io(e) {
17913
+ function no(e) {
17904
17914
  return new Proxy(e, {
17905
17915
  get(r, s) {
17906
17916
  switch (typeof r[s]) {
17907
17917
  case "function":
17908
17918
  return (...n) => r[s](...n);
17909
17919
  case "object":
17910
- return r[s] === null ? r[s] : io(r[s]);
17920
+ return r[s] === null ? r[s] : no(r[s]);
17911
17921
  case "undefined":
17912
17922
  case "number":
17913
17923
  case "string":
17914
17924
  return r[s];
17915
17925
  default:
17916
- return so(r[s]);
17926
+ return io(r[s]);
17917
17927
  }
17918
17928
  }
17919
17929
  });
@@ -17921,7 +17931,7 @@ function io(e) {
17921
17931
  function vr(e) {
17922
17932
  return Object.fromEntries(Object.entries(e).map(([r, s]) => [s, r]));
17923
17933
  }
17924
- const ju = {
17934
+ const Ku = {
17925
17935
  server_name: 0,
17926
17936
  max_fragment_length: 1,
17927
17937
  client_certificate_url: 2,
@@ -17976,12 +17986,12 @@ const ju = {
17976
17986
  transparency_info: 52,
17977
17987
  connection_id: 54
17978
17988
  };
17979
- vr(ju);
17980
- const Nu = {
17989
+ vr(Ku);
17990
+ const zu = {
17981
17991
  host_name: 0
17982
17992
  };
17983
- vr(Nu);
17984
- const Wu = {
17993
+ vr(zu);
17994
+ const Gu = {
17985
17995
  TLS1_CK_PSK_WITH_RC4_128_SHA: 138,
17986
17996
  TLS1_CK_PSK_WITH_3DES_EDE_CBC_SHA: 139,
17987
17997
  TLS1_CK_PSK_WITH_AES_128_CBC_SHA: 140,
@@ -18185,29 +18195,29 @@ const Wu = {
18185
18195
  TLS1_CK_DHE_PSK_WITH_CHACHA20_POLY1305: 52397,
18186
18196
  TLS1_CK_RSA_PSK_WITH_CHACHA20_POLY1305: 52398
18187
18197
  };
18188
- vr(Wu);
18189
- const Uu = {
18198
+ vr(Gu);
18199
+ const Zu = {
18190
18200
  secp256r1: 23,
18191
18201
  secp384r1: 24,
18192
18202
  secp521r1: 25,
18193
18203
  x25519: 29,
18194
18204
  x448: 30
18195
18205
  };
18196
- vr(Uu);
18197
- const qu = {
18206
+ vr(Zu);
18207
+ const Vu = {
18198
18208
  uncompressed: 0,
18199
18209
  ansiX962_compressed_prime: 1,
18200
18210
  ansiX962_compressed_char2: 2
18201
18211
  };
18202
- vr(qu);
18203
- const Mu = {
18212
+ vr(Vu);
18213
+ const Yu = {
18204
18214
  anonymous: 0,
18205
18215
  rsa: 1,
18206
18216
  dsa: 2,
18207
18217
  ecdsa: 3
18208
18218
  };
18209
- vr(Mu);
18210
- const Ku = {
18219
+ vr(Yu);
18220
+ const Xu = {
18211
18221
  none: 0,
18212
18222
  md5: 1,
18213
18223
  sha1: 2,
@@ -18216,13 +18226,13 @@ const Ku = {
18216
18226
  sha384: 5,
18217
18227
  sha512: 6
18218
18228
  };
18219
- vr(Ku);
18220
- const zu = {
18229
+ vr(Xu);
18230
+ const Qu = {
18221
18231
  Warning: 1,
18222
18232
  Fatal: 2
18223
18233
  };
18224
- vr(zu);
18225
- const Gu = {
18234
+ vr(Qu);
18235
+ const Ju = {
18226
18236
  CloseNotify: 0,
18227
18237
  UnexpectedMessage: 10,
18228
18238
  BadRecordMac: 20,
@@ -18249,7 +18259,7 @@ const Gu = {
18249
18259
  NoRenegotiation: 100,
18250
18260
  UnsupportedExtension: 110
18251
18261
  };
18252
- vr(Gu);
18262
+ vr(Ju);
18253
18263
  crypto.subtle.generateKey(
18254
18264
  {
18255
18265
  name: "ECDH",
@@ -18261,7 +18271,7 @@ crypto.subtle.generateKey(
18261
18271
  ["deriveKey", "deriveBits"]
18262
18272
  // Key usage
18263
18273
  );
18264
- async function rc({
18274
+ async function oc({
18265
18275
  iframe: e,
18266
18276
  blueprint: r,
18267
18277
  remoteUrl: s,
@@ -18277,10 +18287,10 @@ async function rc({
18277
18287
  corsProxy: g,
18278
18288
  shouldInstallWordPress: b
18279
18289
  }) {
18280
- Vu(s), Zu(e), s = Yu(s, {
18290
+ rc(s), ec(e), s = tc(s, {
18281
18291
  progressbar: !o
18282
18292
  }), n.setCaption("Preparing WordPress"), r || (r = {});
18283
- const w = mu(r, {
18293
+ const w = Pu(r, {
18284
18294
  progress: n.stage(0.5),
18285
18295
  onStepCompleted: i,
18286
18296
  corsProxy: g
@@ -18288,7 +18298,7 @@ async function rc({
18288
18298
  await new Promise((N) => {
18289
18299
  e.src = s, e.addEventListener("load", N, !1);
18290
18300
  });
18291
- const H = Du(
18301
+ const H = Uu(
18292
18302
  e.contentWindow,
18293
18303
  e.ownerDocument.defaultView
18294
18304
  );
@@ -18302,21 +18312,21 @@ async function rc({
18302
18312
  phpVersion: w.versions.php,
18303
18313
  wpVersion: w.versions.wp,
18304
18314
  withNetworking: w.features.networking
18305
- }), await H.isReady(), P.finish(), _o(xe, H), t(H), y && await y(), await Eu(w, H), n.finish(), H;
18315
+ }), await H.isReady(), P.finish(), go(xe, H), t(H), y && await y(), await Ou(w, H), n.finish(), H;
18306
18316
  }
18307
- function Zu(e) {
18317
+ function ec(e) {
18308
18318
  var r, s;
18309
18319
  (r = e.sandbox) != null && r.length && !((s = e.sandbox) != null && s.contains("allow-storage-access-by-user-activation")) && e.sandbox.add("allow-storage-access-by-user-activation");
18310
18320
  }
18311
18321
  const Yt = "https://playground.wordpress.net";
18312
- function Vu(e) {
18322
+ function rc(e) {
18313
18323
  const r = new URL(e, Yt);
18314
18324
  if ((r.origin === Yt || r.hostname === "localhost") && r.pathname !== "/remote.html")
18315
18325
  throw new Error(
18316
18326
  `Invalid remote URL: ${r}. Expected origin to be ${Yt}/remote.html.`
18317
18327
  );
18318
18328
  }
18319
- function Yu(e, r) {
18329
+ function tc(e, r) {
18320
18330
  const s = new URL(e, Yt), n = new URLSearchParams(s.search);
18321
18331
  for (const [o, i] of Object.entries(r))
18322
18332
  if (i != null && i !== !1)
@@ -18328,46 +18338,46 @@ function Yu(e, r) {
18328
18338
  return s.search = n.toString(), s.toString();
18329
18339
  }
18330
18340
  export {
18331
- No as LatestSupportedPHPVersion,
18341
+ Wo as LatestSupportedPHPVersion,
18332
18342
  oi as SupportedPHPVersions,
18333
- Qu as SupportedPHPVersionsList,
18343
+ ic as SupportedPHPVersionsList,
18334
18344
  xn as activatePlugin,
18335
18345
  Ln as activateTheme,
18336
- mu as compileBlueprint,
18337
- Io as cp,
18346
+ Pu as compileBlueprint,
18347
+ Ho as cp,
18338
18348
  jn as defineSiteUrl,
18339
18349
  ii as defineWpConfigConsts,
18340
- Lo as enableMultisite,
18341
- Mo as exportWXR,
18350
+ Io as enableMultisite,
18351
+ Ko as exportWXR,
18342
18352
  Nn as importThemeStarterContent,
18343
- qo as importWordPressFiles,
18344
- Uo as importWxr,
18345
- Ko as installPlugin,
18346
- zo as installTheme,
18347
- Go as login,
18348
- $o as mkdir,
18349
- Ho as mv,
18353
+ Mo as importWordPressFiles,
18354
+ qo as importWxr,
18355
+ zo as installPlugin,
18356
+ Go as installTheme,
18357
+ Zo as login,
18358
+ Ro as mkdir,
18359
+ $o as mv,
18350
18360
  Ie as phpVar,
18351
18361
  ns as phpVars,
18352
- ko as request,
18353
- Zo as resetData,
18362
+ So as request,
18363
+ Vo as resetData,
18354
18364
  In as rm,
18355
- Ro as rmdir,
18356
- Eu as runBlueprintSteps,
18357
- vo as runPHP,
18358
- Po as runPHPWithOptions,
18359
- Eo as runSql,
18360
- Vo as runWpInstallationWizard,
18361
- Xu as setPhpIniEntries,
18362
- ec as setPluginProxyURL,
18363
- Jo as setSiteLanguage,
18365
+ Do as rmdir,
18366
+ Ou as runBlueprintSteps,
18367
+ Po as runPHP,
18368
+ Eo as runPHPWithOptions,
18369
+ ko as runSql,
18370
+ Yo as runWpInstallationWizard,
18371
+ sc as setPhpIniEntries,
18372
+ ac as setPluginProxyURL,
18373
+ np as setSiteLanguage,
18364
18374
  Hn as setSiteOptions,
18365
- rc as startPlaygroundWeb,
18375
+ oc as startPlaygroundWeb,
18366
18376
  pi as unzip,
18367
- Co as updateUserMeta,
18377
+ Oo as updateUserMeta,
18368
18378
  Rn as wpCLI,
18369
18379
  An as wpContentFilesExcludedFromExport,
18370
18380
  Dn as writeFile,
18371
- Wo as writeFiles,
18372
- Yo as zipWpContent
18381
+ Uo as writeFiles,
18382
+ Xo as zipWpContent
18373
18383
  };