@wp-playground/client 0.5.3 → 0.5.4

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 +63 -37
  2. package/index.js +680 -654
  3. package/package.json +2 -2
package/index.js CHANGED
@@ -2,7 +2,7 @@ var Pn = (e, t, r) => {
2
2
  if (!t.has(e))
3
3
  throw TypeError("Cannot " + r);
4
4
  };
5
- var H = (e, t, r) => (Pn(e, t, "read from private field"), r ? r.call(e) : t.get(e)), ee = (e, t, r) => {
5
+ var z = (e, t, r) => (Pn(e, t, "read from private field"), r ? r.call(e) : t.get(e)), ee = (e, t, r) => {
6
6
  if (t.has(e))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  t instanceof WeakSet ? t.add(e) : t.set(e, r);
@@ -88,7 +88,7 @@ const Ti = [
88
88
  "themes/twentytwentyfour",
89
89
  "themes/twentytwentyfive",
90
90
  "themes/twentytwentysix"
91
- ], ki = async (e, { pluginPath: t, pluginName: r }, n) => {
91
+ ], Ri = async (e, { pluginPath: t, pluginName: r }, n) => {
92
92
  n == null || n.tracker.setCaption(`Activating ${r || t}`);
93
93
  const s = [
94
94
  `${await e.documentRoot}/wp-load.php`,
@@ -122,7 +122,7 @@ echo 'NO_ENTRY_FILE';
122
122
  `
123
123
  })).text.endsWith("NO_ENTRY_FILE"))
124
124
  throw new Error("Could not find plugin entry file.");
125
- }, Ri = async (e, { themeFolderName: t }, r) => {
125
+ }, ki = async (e, { themeFolderName: t }, r) => {
126
126
  r == null || r.tracker.setCaption(`Activating ${t}`);
127
127
  const n = `${await e.documentRoot}/wp-load.php`;
128
128
  if (!e.fileExists(n))
@@ -168,16 +168,16 @@ class Ln {
168
168
  function ye(...e) {
169
169
  let t = e.join("/");
170
170
  const r = t[0] === "/", n = t.substring(t.length - 1) === "/";
171
- return t = Ci(t), !t && !r && (t = "."), t && n && (t += "/"), t;
171
+ return t = Oi(t), !t && !r && (t = "."), t && n && (t += "/"), t;
172
172
  }
173
173
  function na(e) {
174
174
  if (e === "/")
175
175
  return "/";
176
- e = Ci(e);
176
+ e = Oi(e);
177
177
  const t = e.lastIndexOf("/");
178
178
  return t === -1 ? "" : t === 0 ? "/" : e.substr(0, t);
179
179
  }
180
- function Ci(e) {
180
+ function Oi(e) {
181
181
  const t = e[0] === "/";
182
182
  return e = sa(
183
183
  e.split("/").filter((r) => !!r),
@@ -594,7 +594,7 @@ const ua = `<?php
594
594
  * a class named "Wp_Http_" . $transport_name – which means we must adhere to this
595
595
  * hardcoded pattern.
596
596
  */
597
- class Wp_Http_Fetch implements Requests_Transport
597
+ class Wp_Http_Fetch_Base
598
598
  {
599
599
  public $headers = '';
600
600
 
@@ -629,31 +629,33 @@ class Wp_Http_Fetch implements Requests_Transport
629
629
  if (!empty($data)) {
630
630
  $data_format = $options['data_format'];
631
631
  if ($data_format === 'query') {
632
- $url = self::format_get($url, $data);
632
+ $url = self::format_get($url, $data);
633
633
  $data = '';
634
634
  } elseif (!is_string($data)) {
635
635
  $data = http_build_query($data, null, '&');
636
636
  }
637
637
  }
638
638
 
639
- $request = json_encode(array(
640
- 'type' => 'request',
641
- 'data' => [
642
- 'headers' => $headers,
643
- 'data' => $data,
644
- 'url' => $url,
645
- 'method' => $options['type'],
646
- ]
647
- ));
639
+ $request = json_encode(
640
+ array(
641
+ 'type' => 'request',
642
+ 'data' => [
643
+ 'headers' => $headers,
644
+ 'data' => $data,
645
+ 'url' => $url,
646
+ 'method' => $options['type'],
647
+ ]
648
+ )
649
+ );
648
650
 
649
651
  $this->headers = post_message_to_js($request);
650
652
 
651
653
  // Store a file if the request specifies it.
652
654
  // Are we sure that \`$this->headers\` includes the body of the response?
653
- $before_response_body = strpos( $this->headers, "\\r\\n\\r\\n" );
654
- if ( isset( $options['filename'] ) && $options['filename'] && false !== $before_response_body ) {
655
- $response_body = substr( $this->headers, $before_response_body + 4 );
656
- $this->headers = substr( $this->headers, 0, $before_response_body );
655
+ $before_response_body = strpos($this->headers, "\\r\\n\\r\\n");
656
+ if (isset($options['filename']) && $options['filename'] && false !== $before_response_body) {
657
+ $response_body = substr($this->headers, $before_response_body + 4);
658
+ $this->headers = substr($this->headers, 0, $before_response_body);
657
659
  file_put_contents($options['filename'], $response_body);
658
660
  }
659
661
 
@@ -663,10 +665,10 @@ class Wp_Http_Fetch implements Requests_Transport
663
665
  public function request_multiple($requests, $options)
664
666
  {
665
667
  $responses = array();
666
- $class = get_class($this);
668
+ $class = get_class($this);
667
669
  foreach ($requests as $id => $request) {
668
670
  try {
669
- $handler = new $class();
671
+ $handler = new $class();
670
672
  $responses[$id] = $handler->request($request['url'], $request['headers'], $request['data'], $request['options']);
671
673
  $request['options']['hooks']->dispatch('transport.internal.parse_response', array(&$responses[$id], $request));
672
674
  } catch (Requests_Exception $e) {
@@ -683,7 +685,7 @@ class Wp_Http_Fetch implements Requests_Transport
683
685
  protected static function format_get($url, $data)
684
686
  {
685
687
  if (!empty($data)) {
686
- $query = '';
688
+ $query = '';
687
689
  $url_parts = parse_url($url);
688
690
  if (empty($url_parts['query'])) {
689
691
  $url_parts['query'] = '';
@@ -711,6 +713,18 @@ class Wp_Http_Fetch implements Requests_Transport
711
713
  return true;
712
714
  }
713
715
  }
716
+
717
+ if (class_exists('\\WpOrg\\Requests\\Requests')) {
718
+ class Wp_Http_Fetch extends Wp_Http_Fetch_Base implements \\WpOrg\\Requests\\Transport
719
+ {
720
+
721
+ }
722
+ } else {
723
+ class Wp_Http_Fetch extends Wp_Http_Fetch_Base implements Requests_Transport
724
+ {
725
+
726
+ }
727
+ }
714
728
  `, da = `<?php
715
729
 
716
730
  /**
@@ -718,7 +732,7 @@ class Wp_Http_Fetch implements Requests_Transport
718
732
  * to prevent the Requests class from complaining about not having any
719
733
  * transports.
720
734
  */
721
- class Requests_Transport_Dummy implements Requests_Transport
735
+ class Requests_Transport_Dummy_Base
722
736
  {
723
737
  public $headers = '';
724
738
 
@@ -754,6 +768,18 @@ class Requests_Transport_Dummy implements Requests_Transport
754
768
  return true;
755
769
  }
756
770
  }
771
+
772
+ if (class_exists('\\WpOrg\\Requests\\Requests')) {
773
+ class Requests_Transport_Dummy extends Requests_Transport_Dummy_Base implements \\WpOrg\\Requests\\Transport
774
+ {
775
+
776
+ }
777
+ } else {
778
+ class Requests_Transport_Dummy extends Requests_Transport_Dummy_Base implements Requests_Transport
779
+ {
780
+
781
+ }
782
+ }
757
783
  `, pa = `<?php
758
784
  /**
759
785
  * Add a notice to wp-login.php offering the username and password.
@@ -887,7 +913,7 @@ const fa = async (e, t) => {
887
913
  t.wordpressPath || "/wordpress",
888
914
  t.siteUrl
889
915
  );
890
- t.addPhpInfo === !0 && await r.addPhpInfo(), t.siteUrl && await r.patchSiteUrl(), t.patchSecrets === !0 && await r.patchSecrets(), t.disableSiteHealth === !0 && await r.disableSiteHealth(), t.disableWpNewBlogNotification === !0 && await r.disableWpNewBlogNotification(), t.makeEditorFrameControlled === !0 && await Oi(e, r.wordpressPath, [
916
+ t.addPhpInfo === !0 && await r.addPhpInfo(), t.siteUrl && await r.patchSiteUrl(), t.patchSecrets === !0 && await r.patchSecrets(), t.disableSiteHealth === !0 && await r.disableSiteHealth(), t.disableWpNewBlogNotification === !0 && await r.disableWpNewBlogNotification(), t.makeEditorFrameControlled === !0 && await Ci(e, r.wordpressPath, [
891
917
  `${r.wordpressPath}/wp-includes/js/dist/block-editor.js`,
892
918
  `${r.wordpressPath}/wp-includes/js/dist/block-editor.min.js`
893
919
  ]), t.prepareForRunningInsideWebBrowser === !0 && await r.prepareForRunningInsideWebBrowser(), t.addFetchNetworkTransport === !0 && await r.addFetchNetworkTransport();
@@ -983,7 +1009,7 @@ function et(e) {
983
1009
  r += t[Math.floor(Math.random() * t.length)];
984
1010
  return r;
985
1011
  }
986
- async function Oi(e, t, r) {
1012
+ async function Ci(e, t, r) {
987
1013
  const n = `
988
1014
  /**
989
1015
  * A synchronous function to read a blob URL as text.
@@ -1224,7 +1250,7 @@ async function Ii(e, t) {
1224
1250
  throw console.log(xs + t), console.log(t + ""), console.log(r.errors), r.errors;
1225
1251
  return r;
1226
1252
  }
1227
- const zn = async (e, { zipPath: t, extractToPath: r }) => {
1253
+ const Hn = async (e, { zipPath: t, extractToPath: r }) => {
1228
1254
  const n = mn({
1229
1255
  zipPath: t,
1230
1256
  extractToPath: r
@@ -1233,7 +1259,7 @@ const zn = async (e, { zipPath: t, extractToPath: r }) => {
1233
1259
  e,
1234
1260
  `unzip(${n.zipPath}, ${n.extractToPath});`
1235
1261
  );
1236
- }, ka = async (e, { wordPressFilesZip: t, pathInZip: r = "" }) => {
1262
+ }, Ra = async (e, { wordPressFilesZip: t, pathInZip: r = "" }) => {
1237
1263
  const n = "/import.zip";
1238
1264
  await e.writeFile(
1239
1265
  n,
@@ -1241,7 +1267,7 @@ const zn = async (e, { zipPath: t, extractToPath: r }) => {
1241
1267
  );
1242
1268
  const s = await e.documentRoot;
1243
1269
  let i = ye("/tmp", "import");
1244
- await e.mkdir(i), await zn(e, { zipPath: n, extractToPath: i }), await e.unlink(n), i = ye(i, r);
1270
+ await e.mkdir(i), await Hn(e, { zipPath: n, extractToPath: i }), await e.unlink(n), i = ye(i, r);
1245
1271
  const o = ye(i, "wp-content"), l = ye(s, "wp-content");
1246
1272
  for (const h of Ti) {
1247
1273
  const v = ye(
@@ -1281,13 +1307,13 @@ const zn = async (e, { zipPath: t, extractToPath: r }) => {
1281
1307
  async function Ws(e, t) {
1282
1308
  await e.fileExists(t) && (await e.isDir(t) ? await e.rmdir(t) : await e.unlink(t));
1283
1309
  }
1284
- async function Ra(e) {
1310
+ async function ka(e) {
1285
1311
  const t = await e.request({
1286
1312
  url: "/wp-admin/export.php?download=true&content=all"
1287
1313
  });
1288
1314
  return new File([t.bytes], "export.xml");
1289
1315
  }
1290
- async function Ca(e) {
1316
+ async function Oa(e) {
1291
1317
  const t = await e.request({
1292
1318
  url: "/wp-admin/export.php?download=true&content=all&export_wxz=1"
1293
1319
  });
@@ -1302,7 +1328,7 @@ async function Ai(e, { targetPath: t, zipFile: r }) {
1302
1328
  data: r
1303
1329
  });
1304
1330
  try {
1305
- await zn(e, {
1331
+ await Hn(e, {
1306
1332
  zipPath: l,
1307
1333
  extractToPath: d
1308
1334
  });
@@ -1328,7 +1354,7 @@ function yn(e) {
1328
1354
  const t = e.split(".").shift().replace(/-/g, " ");
1329
1355
  return t.charAt(0).toUpperCase() + t.slice(1).toLowerCase();
1330
1356
  }
1331
- const Oa = async (e, { pluginZipFile: t, options: r = {} }, n) => {
1357
+ const Ca = async (e, { pluginZipFile: t, options: r = {} }, n) => {
1332
1358
  const s = t.name.split("/").pop() || "plugin.zip", i = yn(s);
1333
1359
  n == null || n.tracker.setCaption(`Installing the ${i} plugin`);
1334
1360
  try {
@@ -1336,7 +1362,7 @@ const Oa = async (e, { pluginZipFile: t, options: r = {} }, n) => {
1336
1362
  zipFile: t,
1337
1363
  targetPath: `${await e.documentRoot}/wp-content/plugins`
1338
1364
  });
1339
- ("activate" in r ? r.activate : !0) && await ki(
1365
+ ("activate" in r ? r.activate : !0) && await Ri(
1340
1366
  e,
1341
1367
  {
1342
1368
  pluginPath: o,
@@ -1351,7 +1377,7 @@ const Oa = async (e, { pluginZipFile: t, options: r = {} }, n) => {
1351
1377
  }
1352
1378
  };
1353
1379
  async function Na(e) {
1354
- await e.isDir("/wordpress/wp-content/plugins/gutenberg") && !await e.fileExists("/wordpress/.gutenberg-patched") && (await e.writeFile("/wordpress/.gutenberg-patched", "1"), await Oi(e, "/wordpress", [
1380
+ await e.isDir("/wordpress/wp-content/plugins/gutenberg") && !await e.fileExists("/wordpress/.gutenberg-patched") && (await e.writeFile("/wordpress/.gutenberg-patched", "1"), await Ci(e, "/wordpress", [
1355
1381
  "/wordpress/wp-content/plugins/gutenberg/build/block-editor/index.js",
1356
1382
  "/wordpress/wp-content/plugins/gutenberg/build/block-editor/index.min.js"
1357
1383
  ]));
@@ -1364,7 +1390,7 @@ const ja = async (e, { themeZipFile: t, options: r = {} }, n) => {
1364
1390
  zipFile: t,
1365
1391
  targetPath: `${await e.documentRoot}/wp-content/themes`
1366
1392
  });
1367
- ("activate" in r ? r.activate : !0) && await Ri(
1393
+ ("activate" in r ? r.activate : !0) && await ki(
1368
1394
  e,
1369
1395
  {
1370
1396
  themeFolderName: i
@@ -1461,17 +1487,17 @@ const qa = async (e, { selfContained: t = !1 } = {}) => {
1461
1487
  return e.unlink(r), l;
1462
1488
  }, Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1463
1489
  __proto__: null,
1464
- activatePlugin: ki,
1465
- activateTheme: Ri,
1490
+ activatePlugin: Ri,
1491
+ activateTheme: ki,
1466
1492
  applyWordPressPatches: fa,
1467
1493
  cp: wa,
1468
1494
  defineSiteUrl: Ea,
1469
1495
  defineWpConfigConsts: ur,
1470
- exportWXR: Ra,
1471
- exportWXZ: Ca,
1496
+ exportWXR: ka,
1497
+ exportWXZ: Oa,
1472
1498
  importFile: Sa,
1473
- importWordPressFiles: ka,
1474
- installPlugin: Oa,
1499
+ importWordPressFiles: Ra,
1500
+ installPlugin: Ca,
1475
1501
  installTheme: ja,
1476
1502
  login: Ia,
1477
1503
  mkdir: ba,
@@ -1485,7 +1511,7 @@ const qa = async (e, { selfContained: t = !1 } = {}) => {
1485
1511
  runWpInstallationWizard: Aa,
1486
1512
  setPhpIniEntry: $a,
1487
1513
  setSiteOptions: Da,
1488
- unzip: zn,
1514
+ unzip: Hn,
1489
1515
  updateUserMeta: Fa,
1490
1516
  writeFile: ji,
1491
1517
  zipWpContent: qa
@@ -1700,7 +1726,7 @@ class gn extends EventTarget {
1700
1726
  }
1701
1727
  }
1702
1728
  const Bs = Symbol("error"), Gs = Symbol("message");
1703
- class Hn extends Event {
1729
+ class zn extends Event {
1704
1730
  /**
1705
1731
  * Create a new `ErrorEvent`.
1706
1732
  *
@@ -1718,10 +1744,10 @@ class Hn extends Event {
1718
1744
  return this[Gs];
1719
1745
  }
1720
1746
  }
1721
- Object.defineProperty(Hn.prototype, "error", { enumerable: !0 });
1722
- Object.defineProperty(Hn.prototype, "message", { enumerable: !0 });
1723
- const za = typeof globalThis.ErrorEvent == "function" ? globalThis.ErrorEvent : Hn;
1724
- function Ha(e) {
1747
+ Object.defineProperty(zn.prototype, "error", { enumerable: !0 });
1748
+ Object.defineProperty(zn.prototype, "message", { enumerable: !0 });
1749
+ const Ha = typeof globalThis.ErrorEvent == "function" ? globalThis.ErrorEvent : zn;
1750
+ function za(e) {
1725
1751
  return e instanceof Error ? "exitCode" in e && (e == null ? void 0 : e.exitCode) === 0 || (e == null ? void 0 : e.name) === "ExitStatus" && "status" in e && e.status === 0 : !1;
1726
1752
  }
1727
1753
  class Va extends EventTarget {
@@ -1759,14 +1785,14 @@ function xa(e) {
1759
1785
  );
1760
1786
  if (e.lastAsyncifyStackSource && (o.cause = e.lastAsyncifyStackSource), t.hasListeners()) {
1761
1787
  t.dispatchEvent(
1762
- new za("error", {
1788
+ new Ha("error", {
1763
1789
  error: o,
1764
1790
  message: l
1765
1791
  })
1766
1792
  );
1767
1793
  return;
1768
1794
  }
1769
- throw Ha(o) || Ja(l), o;
1795
+ throw za(o) || Ja(l), o;
1770
1796
  }
1771
1797
  };
1772
1798
  }
@@ -1915,7 +1941,7 @@ const Vn = [
1915
1941
  ], Zs = {
1916
1942
  "kitchen-sink": Fi
1917
1943
  };
1918
- var $t, zt;
1944
+ var $t, Ht;
1919
1945
  class Za {
1920
1946
  /**
1921
1947
  * @param server - The PHP server to browse.
@@ -1923,8 +1949,8 @@ class Za {
1923
1949
  */
1924
1950
  constructor(t, r = {}) {
1925
1951
  ee(this, $t, void 0);
1926
- ee(this, zt, void 0);
1927
- this.requestHandler = t, pe(this, $t, {}), pe(this, zt, {
1952
+ ee(this, Ht, void 0);
1953
+ this.requestHandler = t, pe(this, $t, {}), pe(this, Ht, {
1928
1954
  handleRedirects: !1,
1929
1955
  maxRedirects: 4,
1930
1956
  ...r
@@ -1952,7 +1978,7 @@ class Za {
1952
1978
  cookie: this.serializeCookies()
1953
1979
  }
1954
1980
  });
1955
- if (n.headers["set-cookie"] && this.setCookies(n.headers["set-cookie"]), H(this, zt).handleRedirects && n.headers.location && r < H(this, zt).maxRedirects) {
1981
+ if (n.headers["set-cookie"] && this.setCookies(n.headers["set-cookie"]), z(this, Ht).handleRedirects && n.headers.location && r < z(this, Ht).maxRedirects) {
1956
1982
  const s = new URL(
1957
1983
  n.headers.location[0],
1958
1984
  this.requestHandler.absoluteUrl
@@ -1990,19 +2016,19 @@ class Za {
1990
2016
  if (!r.includes("="))
1991
2017
  continue;
1992
2018
  const n = r.indexOf("="), s = r.substring(0, n), i = r.substring(n + 1).split(";")[0];
1993
- H(this, $t)[s] = i;
2019
+ z(this, $t)[s] = i;
1994
2020
  } catch (n) {
1995
2021
  console.error(n);
1996
2022
  }
1997
2023
  }
1998
2024
  serializeCookies() {
1999
2025
  const t = [];
2000
- for (const r in H(this, $t))
2001
- t.push(`${r}=${H(this, $t)[r]}`);
2026
+ for (const r in z(this, $t))
2027
+ t.push(`${r}=${z(this, $t)[r]}`);
2002
2028
  return t.join("; ");
2003
2029
  }
2004
2030
  }
2005
- $t = new WeakMap(), zt = new WeakMap();
2031
+ $t = new WeakMap(), Ht = new WeakMap();
2006
2032
  const Xa = "http://example.com";
2007
2033
  function Xs(e) {
2008
2034
  return e.toString().substring(e.origin.length);
@@ -2013,7 +2039,7 @@ function ei(e, t) {
2013
2039
  function ec(e, t) {
2014
2040
  return !t || e.startsWith(t) ? e : t + e;
2015
2041
  }
2016
- var ze, Ht, _r, _t, Vt, He, xt, Wt, Xr, qi, en, Mi, tn, Ui;
2042
+ var He, zt, _r, _t, Vt, ze, xt, Wt, Xr, qi, en, Mi, tn, Ui;
2017
2043
  class tc {
2018
2044
  /**
2019
2045
  * @param php - The PHP instance.
@@ -2045,12 +2071,12 @@ class tc {
2045
2071
  * @returns The resolved filesystem path.
2046
2072
  */
2047
2073
  ee(this, tn);
2048
- ee(this, ze, void 0);
2049
- ee(this, Ht, void 0);
2074
+ ee(this, He, void 0);
2075
+ ee(this, zt, void 0);
2050
2076
  ee(this, _r, void 0);
2051
2077
  ee(this, _t, void 0);
2052
2078
  ee(this, Vt, void 0);
2053
- ee(this, He, void 0);
2079
+ ee(this, ze, void 0);
2054
2080
  ee(this, xt, void 0);
2055
2081
  ee(this, Wt, void 0);
2056
2082
  pe(this, Wt, new Ln({ concurrency: 1 }));
@@ -2058,17 +2084,17 @@ class tc {
2058
2084
  documentRoot: n = "/www/",
2059
2085
  absoluteUrl: s = typeof location == "object" ? location == null ? void 0 : location.href : ""
2060
2086
  } = r;
2061
- this.php = t, pe(this, ze, n);
2087
+ this.php = t, pe(this, He, n);
2062
2088
  const i = new URL(s);
2063
- pe(this, _r, i.hostname), pe(this, _t, i.port ? Number(i.port) : i.protocol === "https:" ? 443 : 80), pe(this, Ht, (i.protocol || "").replace(":", ""));
2064
- const o = H(this, _t) !== 443 && H(this, _t) !== 80;
2089
+ pe(this, _r, i.hostname), pe(this, _t, i.port ? Number(i.port) : i.protocol === "https:" ? 443 : 80), pe(this, zt, (i.protocol || "").replace(":", ""));
2090
+ const o = z(this, _t) !== 443 && z(this, _t) !== 80;
2065
2091
  pe(this, Vt, [
2066
- H(this, _r),
2067
- o ? `:${H(this, _t)}` : ""
2068
- ].join("")), pe(this, He, i.pathname.replace(/\/+$/, "")), pe(this, xt, [
2069
- `${H(this, Ht)}://`,
2070
- H(this, Vt),
2071
- H(this, He)
2092
+ z(this, _r),
2093
+ o ? `:${z(this, _t)}` : ""
2094
+ ].join("")), pe(this, ze, i.pathname.replace(/\/+$/, "")), pe(this, xt, [
2095
+ `${z(this, zt)}://`,
2096
+ z(this, Vt),
2097
+ z(this, ze)
2072
2098
  ].join(""));
2073
2099
  }
2074
2100
  /** @inheritDoc */
@@ -2078,18 +2104,18 @@ class tc {
2078
2104
  /** @inheritDoc */
2079
2105
  internalUrlToPath(t) {
2080
2106
  const r = new URL(t);
2081
- return r.pathname.startsWith(H(this, He)) && (r.pathname = r.pathname.slice(H(this, He).length)), Xs(r);
2107
+ return r.pathname.startsWith(z(this, ze)) && (r.pathname = r.pathname.slice(z(this, ze).length)), Xs(r);
2082
2108
  }
2083
2109
  get isRequestRunning() {
2084
- return H(this, Wt).running > 0;
2110
+ return z(this, Wt).running > 0;
2085
2111
  }
2086
2112
  /** @inheritDoc */
2087
2113
  get absoluteUrl() {
2088
- return H(this, xt);
2114
+ return z(this, xt);
2089
2115
  }
2090
2116
  /** @inheritDoc */
2091
2117
  get documentRoot() {
2092
- return H(this, ze);
2118
+ return z(this, He);
2093
2119
  }
2094
2120
  /** @inheritDoc */
2095
2121
  async request(t) {
@@ -2098,12 +2124,12 @@ class tc {
2098
2124
  r ? void 0 : Xa
2099
2125
  ), s = ei(
2100
2126
  n.pathname,
2101
- H(this, He)
2102
- ), i = `${H(this, ze)}${s}`;
2127
+ z(this, ze)
2128
+ ), i = `${z(this, He)}${s}`;
2103
2129
  return sc(i) ? await _e(this, en, Mi).call(this, t, n) : _e(this, Xr, qi).call(this, i);
2104
2130
  }
2105
2131
  }
2106
- ze = new WeakMap(), Ht = new WeakMap(), _r = new WeakMap(), _t = new WeakMap(), Vt = new WeakMap(), He = new WeakMap(), xt = new WeakMap(), Wt = new WeakMap(), Xr = new WeakSet(), qi = function(t) {
2132
+ He = new WeakMap(), zt = new WeakMap(), _r = new WeakMap(), _t = new WeakMap(), Vt = new WeakMap(), ze = new WeakMap(), xt = new WeakMap(), Wt = new WeakMap(), Xr = new WeakSet(), qi = function(t) {
2107
2133
  if (!this.php.fileExists(t))
2108
2134
  return new bt(
2109
2135
  404,
@@ -2130,15 +2156,15 @@ ze = new WeakMap(), Ht = new WeakMap(), _r = new WeakMap(), _t = new WeakMap(),
2130
2156
  );
2131
2157
  }, en = new WeakSet(), Mi = async function(t, r) {
2132
2158
  var s;
2133
- const n = await H(this, Wt).acquire();
2159
+ const n = await z(this, Wt).acquire();
2134
2160
  try {
2135
- this.php.addServerGlobalEntry("DOCUMENT_ROOT", H(this, ze)), this.php.addServerGlobalEntry(
2161
+ this.php.addServerGlobalEntry("DOCUMENT_ROOT", z(this, He)), this.php.addServerGlobalEntry(
2136
2162
  "HTTPS",
2137
- H(this, xt).startsWith("https://") ? "on" : ""
2163
+ z(this, xt).startsWith("https://") ? "on" : ""
2138
2164
  );
2139
2165
  let i = "GET";
2140
2166
  const o = {
2141
- host: H(this, Vt),
2167
+ host: z(this, Vt),
2142
2168
  ...Zi(t.headers || {})
2143
2169
  }, l = [];
2144
2170
  if (t.files && Object.keys(t.files).length) {
@@ -2173,9 +2199,9 @@ ze = new WeakMap(), Ht = new WeakMap(), _r = new WeakMap(), _t = new WeakMap(),
2173
2199
  return await this.php.run({
2174
2200
  relativeUri: ec(
2175
2201
  Xs(r),
2176
- H(this, He)
2202
+ z(this, ze)
2177
2203
  ),
2178
- protocol: H(this, Ht),
2204
+ protocol: z(this, zt),
2179
2205
  method: t.method || i,
2180
2206
  body: d,
2181
2207
  fileInfos: l,
@@ -2186,14 +2212,14 @@ ze = new WeakMap(), Ht = new WeakMap(), _r = new WeakMap(), _t = new WeakMap(),
2186
2212
  n();
2187
2213
  }
2188
2214
  }, tn = new WeakSet(), Ui = function(t) {
2189
- let r = ei(t, H(this, He));
2215
+ let r = ei(t, z(this, ze));
2190
2216
  r.includes(".php") ? r = r.split(".php")[0] + ".php" : (r.endsWith("/") || (r += "/"), r.endsWith("index.php") || (r += "index.php"));
2191
- const n = `${H(this, ze)}${r}`;
2217
+ const n = `${z(this, He)}${r}`;
2192
2218
  if (this.php.fileExists(n))
2193
2219
  return n;
2194
- if (!this.php.fileExists(`${H(this, ze)}/index.php`))
2220
+ if (!this.php.fileExists(`${z(this, He)}/index.php`))
2195
2221
  throw new Error(`File not found: ${n}`);
2196
- return `${H(this, ze)}/index.php`;
2222
+ return `${z(this, He)}/index.php`;
2197
2223
  };
2198
2224
  function rc(e) {
2199
2225
  const t = {}, r = e.match(/--(.*)\r\n/);
@@ -2376,7 +2402,7 @@ var uc = Object.defineProperty, dc = Object.getOwnPropertyDescriptor, Be = (e, t
2376
2402
  return n && s && uc(t, r, s), s;
2377
2403
  };
2378
2404
  const we = "string", Dt = "number", te = Symbol("__private__dont__use");
2379
- var wt, nt, vt, st, Ye, Bt, wr, rn, Li, nn, zi, sn, Hi, on, Vi, an, xi, cn, Wi, ln, Bi, un, Gi, dn, Ki, pn, Ji, fn, Yi, hn, Qi;
2405
+ var wt, nt, vt, st, Ye, Bt, wr, rn, Li, nn, Hi, sn, zi, on, Vi, an, xi, cn, Wi, ln, Bi, un, Gi, dn, Ki, pn, Ji, fn, Yi, hn, Qi;
2380
2406
  class Ge {
2381
2407
  /**
2382
2408
  * Initializes a PHP runtime.
@@ -2419,21 +2445,21 @@ class Ge {
2419
2445
  ));
2420
2446
  }
2421
2447
  addEventListener(t, r) {
2422
- H(this, Ye).has(t) || H(this, Ye).set(t, /* @__PURE__ */ new Set()), H(this, Ye).get(t).add(r);
2448
+ z(this, Ye).has(t) || z(this, Ye).set(t, /* @__PURE__ */ new Set()), z(this, Ye).get(t).add(r);
2423
2449
  }
2424
2450
  removeEventListener(t, r) {
2425
2451
  var n;
2426
- (n = H(this, Ye).get(t)) == null || n.delete(r);
2452
+ (n = z(this, Ye).get(t)) == null || n.delete(r);
2427
2453
  }
2428
2454
  dispatchEvent(t) {
2429
- const r = H(this, Ye).get(t.type);
2455
+ const r = z(this, Ye).get(t.type);
2430
2456
  if (r)
2431
2457
  for (const n of r)
2432
2458
  n(t);
2433
2459
  }
2434
2460
  /** @inheritDoc */
2435
2461
  async onMessage(t) {
2436
- H(this, Bt).push(t);
2462
+ z(this, Bt).push(t);
2437
2463
  }
2438
2464
  /** @inheritDoc */
2439
2465
  async setSpawnHandler(t) {
@@ -2464,7 +2490,7 @@ class Ge {
2464
2490
  if (!r)
2465
2491
  throw new Error("Invalid PHP runtime id.");
2466
2492
  this[te] = r, r.onMessage = async (n) => {
2467
- for (const s of H(this, Bt)) {
2493
+ for (const s of z(this, Bt)) {
2468
2494
  const i = await s(n);
2469
2495
  if (i)
2470
2496
  return i;
@@ -2474,7 +2500,7 @@ class Ge {
2474
2500
  }
2475
2501
  /** @inheritDoc */
2476
2502
  setPhpIniPath(t) {
2477
- if (H(this, nt))
2503
+ if (z(this, nt))
2478
2504
  throw new Error("Cannot set PHP ini path after calling run().");
2479
2505
  this[te].ccall(
2480
2506
  "wasm_set_phpini_path",
@@ -2485,9 +2511,9 @@ class Ge {
2485
2511
  }
2486
2512
  /** @inheritDoc */
2487
2513
  setPhpIniEntry(t, r) {
2488
- if (H(this, nt))
2514
+ if (z(this, nt))
2489
2515
  throw new Error("Cannot set PHP ini entries after calling run().");
2490
- H(this, wt).push([t, r]);
2516
+ z(this, wt).push([t, r]);
2491
2517
  }
2492
2518
  /** @inheritDoc */
2493
2519
  chdir(t) {
@@ -2501,9 +2527,9 @@ class Ge {
2501
2527
  }
2502
2528
  /** @inheritDoc */
2503
2529
  async run(t) {
2504
- const r = await H(this, wr).acquire();
2530
+ const r = await z(this, wr).acquire();
2505
2531
  try {
2506
- H(this, nt) || (_e(this, rn, Li).call(this), pe(this, nt, !0)), _e(this, un, Gi).call(this, t.scriptPath || ""), _e(this, sn, Hi).call(this, t.relativeUri || ""), _e(this, an, xi).call(this, t.method || "GET");
2532
+ z(this, nt) || (_e(this, rn, Li).call(this), pe(this, nt, !0)), _e(this, un, Gi).call(this, t.scriptPath || ""), _e(this, sn, zi).call(this, t.relativeUri || ""), _e(this, an, xi).call(this, t.method || "GET");
2507
2533
  const n = Zi(t.headers || {}), s = n.host || "example.com:443";
2508
2534
  if (_e(this, on, Vi).call(this, s, t.protocol || "http"), _e(this, cn, Wi).call(this, n), t.body && _e(this, ln, Bi).call(this, t.body), t.fileInfos)
2509
2535
  for (const i of t.fileInfos)
@@ -2516,7 +2542,7 @@ class Ge {
2516
2542
  }
2517
2543
  }
2518
2544
  addServerGlobalEntry(t, r) {
2519
- H(this, st)[t] = r;
2545
+ z(this, st)[t] = r;
2520
2546
  }
2521
2547
  defineConstant(t, r) {
2522
2548
  let n = {};
@@ -2616,8 +2642,8 @@ wt = new WeakMap(), nt = new WeakMap(), vt = new WeakMap(), st = new WeakMap(),
2616
2642
  }
2617
2643
  }
2618
2644
  }`
2619
- ), H(this, wt).length > 0) {
2620
- const t = H(this, wt).map(([r, n]) => `${r}=${n}`).join(`
2645
+ ), z(this, wt).length > 0) {
2646
+ const t = z(this, wt).map(([r, n]) => `${r}=${n}`).join(`
2621
2647
  `) + `
2622
2648
 
2623
2649
  `;
@@ -2629,7 +2655,7 @@ wt = new WeakMap(), nt = new WeakMap(), vt = new WeakMap(), st = new WeakMap(),
2629
2655
  );
2630
2656
  }
2631
2657
  this[te].ccall("php_wasm_init", null, [], []);
2632
- }, nn = new WeakSet(), zi = function() {
2658
+ }, nn = new WeakSet(), Hi = function() {
2633
2659
  const t = "/tmp/headers.json";
2634
2660
  if (!this.fileExists(t))
2635
2661
  throw new Error(
@@ -2646,7 +2672,7 @@ wt = new WeakMap(), nt = new WeakMap(), vt = new WeakMap(), st = new WeakMap(),
2646
2672
  headers: n,
2647
2673
  httpStatusCode: r.status
2648
2674
  };
2649
- }, sn = new WeakSet(), Hi = function(t) {
2675
+ }, sn = new WeakSet(), zi = function(t) {
2650
2676
  if (this[te].ccall(
2651
2677
  "wasm_set_request_uri",
2652
2678
  null,
@@ -2730,12 +2756,12 @@ wt = new WeakMap(), nt = new WeakMap(), vt = new WeakMap(), st = new WeakMap(),
2730
2756
  [t]
2731
2757
  );
2732
2758
  }, dn = new WeakSet(), Ki = function() {
2733
- for (const t in H(this, st))
2759
+ for (const t in z(this, st))
2734
2760
  this[te].ccall(
2735
2761
  "wasm_add_SERVER_entry",
2736
2762
  null,
2737
2763
  [we, we],
2738
- [t, H(this, st)[t]]
2764
+ [t, z(this, st)[t]]
2739
2765
  );
2740
2766
  }, pn = new WeakSet(), Ji = function(t) {
2741
2767
  const { key: r, name: n, type: s, data: i } = t, o = `/tmp/${Math.random().toFixed(20)}`;
@@ -2763,7 +2789,7 @@ wt = new WeakMap(), nt = new WeakMap(), vt = new WeakMap(), st = new WeakMap(),
2763
2789
  r = (p) => {
2764
2790
  const h = new Error("Rethrown");
2765
2791
  h.cause = p.error, h.betterMessage = p.message, l(h);
2766
- }, (u = H(this, vt)) == null || u.addEventListener(
2792
+ }, (u = z(this, vt)) == null || u.addEventListener(
2767
2793
  "error",
2768
2794
  r
2769
2795
  );
@@ -2787,9 +2813,9 @@ wt = new WeakMap(), nt = new WeakMap(), vt = new WeakMap(), st = new WeakMap(),
2787
2813
  const l = o, d = "betterMessage" in l ? l.betterMessage : l.message, u = new Error(d);
2788
2814
  throw u.cause = l, u;
2789
2815
  } finally {
2790
- (i = H(this, vt)) == null || i.removeEventListener("error", r), pe(this, st, {});
2816
+ (i = z(this, vt)) == null || i.removeEventListener("error", r), pe(this, st, {});
2791
2817
  }
2792
- const { headers: n, httpStatusCode: s } = _e(this, nn, zi).call(this);
2818
+ const { headers: n, httpStatusCode: s } = _e(this, nn, Hi).call(this);
2793
2819
  return new bt(
2794
2820
  s,
2795
2821
  n,
@@ -3068,10 +3094,10 @@ var jn = { exports: {} }, to = {}, Ae = {}, Gt = {}, vr = {}, G = {}, $r = {};
3068
3094
  }
3069
3095
  e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
3070
3096
  class r extends t {
3071
- constructor(R) {
3072
- if (super(), !e.IDENTIFIER.test(R))
3097
+ constructor(k) {
3098
+ if (super(), !e.IDENTIFIER.test(k))
3073
3099
  throw new Error("CodeGen: name must be a valid identifier");
3074
- this.str = R;
3100
+ this.str = k;
3075
3101
  }
3076
3102
  toString() {
3077
3103
  return this.str;
@@ -3085,8 +3111,8 @@ var jn = { exports: {} }, to = {}, Ae = {}, Gt = {}, vr = {}, G = {}, $r = {};
3085
3111
  }
3086
3112
  e.Name = r;
3087
3113
  class n extends t {
3088
- constructor(R) {
3089
- super(), this._items = typeof R == "string" ? [R] : R;
3114
+ constructor(k) {
3115
+ super(), this._items = typeof k == "string" ? [k] : k;
3090
3116
  }
3091
3117
  toString() {
3092
3118
  return this.str;
@@ -3094,66 +3120,66 @@ var jn = { exports: {} }, to = {}, Ae = {}, Gt = {}, vr = {}, G = {}, $r = {};
3094
3120
  emptyStr() {
3095
3121
  if (this._items.length > 1)
3096
3122
  return !1;
3097
- const R = this._items[0];
3098
- return R === "" || R === '""';
3123
+ const k = this._items[0];
3124
+ return k === "" || k === '""';
3099
3125
  }
3100
3126
  get str() {
3101
- var R;
3102
- return (R = this._str) !== null && R !== void 0 ? R : this._str = this._items.reduce((C, j) => `${C}${j}`, "");
3127
+ var k;
3128
+ return (k = this._str) !== null && k !== void 0 ? k : this._str = this._items.reduce((O, j) => `${O}${j}`, "");
3103
3129
  }
3104
3130
  get names() {
3105
- var R;
3106
- return (R = this._names) !== null && R !== void 0 ? R : this._names = this._items.reduce((C, j) => (j instanceof r && (C[j.str] = (C[j.str] || 0) + 1), C), {});
3131
+ var k;
3132
+ return (k = this._names) !== null && k !== void 0 ? k : this._names = this._items.reduce((O, j) => (j instanceof r && (O[j.str] = (O[j.str] || 0) + 1), O), {});
3107
3133
  }
3108
3134
  }
3109
3135
  e._Code = n, e.nil = new n("");
3110
- function s(g, ...R) {
3111
- const C = [g[0]];
3136
+ function s(g, ...k) {
3137
+ const O = [g[0]];
3112
3138
  let j = 0;
3113
- for (; j < R.length; )
3114
- l(C, R[j]), C.push(g[++j]);
3115
- return new n(C);
3139
+ for (; j < k.length; )
3140
+ l(O, k[j]), O.push(g[++j]);
3141
+ return new n(O);
3116
3142
  }
3117
3143
  e._ = s;
3118
3144
  const i = new n("+");
3119
- function o(g, ...R) {
3120
- const C = [T(g[0])];
3145
+ function o(g, ...k) {
3146
+ const O = [T(g[0])];
3121
3147
  let j = 0;
3122
- for (; j < R.length; )
3123
- C.push(i), l(C, R[j]), C.push(i, T(g[++j]));
3124
- return d(C), new n(C);
3148
+ for (; j < k.length; )
3149
+ O.push(i), l(O, k[j]), O.push(i, T(g[++j]));
3150
+ return d(O), new n(O);
3125
3151
  }
3126
3152
  e.str = o;
3127
- function l(g, R) {
3128
- R instanceof n ? g.push(...R._items) : R instanceof r ? g.push(R) : g.push(h(R));
3153
+ function l(g, k) {
3154
+ k instanceof n ? g.push(...k._items) : k instanceof r ? g.push(k) : g.push(h(k));
3129
3155
  }
3130
3156
  e.addCodeArg = l;
3131
3157
  function d(g) {
3132
- let R = 1;
3133
- for (; R < g.length - 1; ) {
3134
- if (g[R] === i) {
3135
- const C = u(g[R - 1], g[R + 1]);
3136
- if (C !== void 0) {
3137
- g.splice(R - 1, 3, C);
3158
+ let k = 1;
3159
+ for (; k < g.length - 1; ) {
3160
+ if (g[k] === i) {
3161
+ const O = u(g[k - 1], g[k + 1]);
3162
+ if (O !== void 0) {
3163
+ g.splice(k - 1, 3, O);
3138
3164
  continue;
3139
3165
  }
3140
- g[R++] = "+";
3166
+ g[k++] = "+";
3141
3167
  }
3142
- R++;
3168
+ k++;
3143
3169
  }
3144
3170
  }
3145
- function u(g, R) {
3146
- if (R === '""')
3171
+ function u(g, k) {
3172
+ if (k === '""')
3147
3173
  return g;
3148
3174
  if (g === '""')
3149
- return R;
3175
+ return k;
3150
3176
  if (typeof g == "string")
3151
- return R instanceof r || g[g.length - 1] !== '"' ? void 0 : typeof R != "string" ? `${g.slice(0, -1)}${R}"` : R[0] === '"' ? g.slice(0, -1) + R.slice(1) : void 0;
3152
- if (typeof R == "string" && R[0] === '"' && !(g instanceof r))
3153
- return `"${g}${R.slice(1)}`;
3177
+ return k instanceof r || g[g.length - 1] !== '"' ? void 0 : typeof k != "string" ? `${g.slice(0, -1)}${k}"` : k[0] === '"' ? g.slice(0, -1) + k.slice(1) : void 0;
3178
+ if (typeof k == "string" && k[0] === '"' && !(g instanceof r))
3179
+ return `"${g}${k.slice(1)}`;
3154
3180
  }
3155
- function p(g, R) {
3156
- return R.emptyStr() ? g : g.emptyStr() ? R : o`${g}${R}`;
3181
+ function p(g, k) {
3182
+ return k.emptyStr() ? g : g.emptyStr() ? k : o`${g}${k}`;
3157
3183
  }
3158
3184
  e.strConcat = p;
3159
3185
  function h(g) {
@@ -3171,12 +3197,12 @@ var jn = { exports: {} }, to = {}, Ae = {}, Gt = {}, vr = {}, G = {}, $r = {};
3171
3197
  return typeof g == "string" && e.IDENTIFIER.test(g) ? new n(`.${g}`) : s`[${g}]`;
3172
3198
  }
3173
3199
  e.getProperty = w;
3174
- function k(g) {
3200
+ function R(g) {
3175
3201
  if (typeof g == "string" && e.IDENTIFIER.test(g))
3176
3202
  return new n(`${g}`);
3177
3203
  throw new Error(`CodeGen: invalid export name: ${g}, use explicit $id name mapping`);
3178
3204
  }
3179
- e.getEsmExportName = k;
3205
+ e.getEsmExportName = R;
3180
3206
  function _(g) {
3181
3207
  return new n(g.toString());
3182
3208
  }
@@ -3246,14 +3272,14 @@ var In = {};
3246
3272
  if (p.ref === void 0)
3247
3273
  throw new Error("CodeGen: ref must be passed in value");
3248
3274
  const v = this.toName(u), { prefix: T } = v, w = (h = p.key) !== null && h !== void 0 ? h : p.ref;
3249
- let k = this._values[T];
3250
- if (k) {
3251
- const R = k.get(w);
3252
- if (R)
3253
- return R;
3275
+ let R = this._values[T];
3276
+ if (R) {
3277
+ const k = R.get(w);
3278
+ if (k)
3279
+ return k;
3254
3280
  } else
3255
- k = this._values[T] = /* @__PURE__ */ new Map();
3256
- k.set(w, v);
3281
+ R = this._values[T] = /* @__PURE__ */ new Map();
3282
+ R.set(w, v);
3257
3283
  const _ = this._scope[T] || (this._scope[T] = []), g = _.length;
3258
3284
  return _[g] = p.ref, v.setValue(p, { property: T, itemIndex: g }), v;
3259
3285
  }
@@ -3279,20 +3305,20 @@ var In = {};
3279
3305
  _reduceValues(u, p, h = {}, v) {
3280
3306
  let T = t.nil;
3281
3307
  for (const w in u) {
3282
- const k = u[w];
3283
- if (!k)
3308
+ const R = u[w];
3309
+ if (!R)
3284
3310
  continue;
3285
3311
  const _ = h[w] = h[w] || /* @__PURE__ */ new Map();
3286
- k.forEach((g) => {
3312
+ R.forEach((g) => {
3287
3313
  if (_.has(g))
3288
3314
  return;
3289
3315
  _.set(g, n.Started);
3290
- let R = p(g);
3291
- if (R) {
3292
- const C = this.opts.es5 ? e.varKinds.var : e.varKinds.const;
3293
- T = (0, t._)`${T}${C} ${g} = ${R};${this.opts._n}`;
3294
- } else if (R = v == null ? void 0 : v(g))
3295
- T = (0, t._)`${T}${R}${this.opts._n}`;
3316
+ let k = p(g);
3317
+ if (k) {
3318
+ const O = this.opts.es5 ? e.varKinds.var : e.varKinds.const;
3319
+ T = (0, t._)`${T}${O} ${g} = ${k};${this.opts._n}`;
3320
+ } else if (k = v == null ? void 0 : v(g))
3321
+ T = (0, t._)`${T}${k}${this.opts._n}`;
3296
3322
  else
3297
3323
  throw new r(g);
3298
3324
  _.set(g, n.Completed);
@@ -3382,7 +3408,7 @@ var In = {};
3382
3408
  }
3383
3409
  get names() {
3384
3410
  const a = this.lhs instanceof t.Name ? {} : { ...this.lhs.names };
3385
- return ke(a, this.rhs);
3411
+ return Re(a, this.rhs);
3386
3412
  }
3387
3413
  }
3388
3414
  class d extends l {
@@ -3471,7 +3497,7 @@ var In = {};
3471
3497
  return "{" + a._n + super.render(a) + "}" + a._n;
3472
3498
  }
3473
3499
  }
3474
- class k extends T {
3500
+ class R extends T {
3475
3501
  }
3476
3502
  class _ extends w {
3477
3503
  }
@@ -3506,14 +3532,14 @@ var In = {};
3506
3532
  }
3507
3533
  get names() {
3508
3534
  const a = super.names;
3509
- return ke(a, this.condition), this.else && Z(a, this.else.names), a;
3535
+ return Re(a, this.condition), this.else && Z(a, this.else.names), a;
3510
3536
  }
3511
3537
  }
3512
3538
  g.kind = "if";
3513
- class R extends w {
3539
+ class k extends w {
3514
3540
  }
3515
- R.kind = "for";
3516
- class C extends R {
3541
+ k.kind = "for";
3542
+ class O extends k {
3517
3543
  constructor(a) {
3518
3544
  super(), this.iteration = a;
3519
3545
  }
@@ -3528,7 +3554,7 @@ var In = {};
3528
3554
  return Z(super.names, this.iteration.names);
3529
3555
  }
3530
3556
  }
3531
- class j extends R {
3557
+ class j extends k {
3532
3558
  constructor(a, m, N, q) {
3533
3559
  super(), this.varKind = a, this.name = m, this.from = N, this.to = q;
3534
3560
  }
@@ -3537,11 +3563,11 @@ var In = {};
3537
3563
  return `for(${m} ${N}=${q}; ${N}<${M}; ${N}++)` + super.render(a);
3538
3564
  }
3539
3565
  get names() {
3540
- const a = ke(super.names, this.from);
3541
- return ke(a, this.to);
3566
+ const a = Re(super.names, this.from);
3567
+ return Re(a, this.to);
3542
3568
  }
3543
3569
  }
3544
- class D extends R {
3570
+ class D extends k {
3545
3571
  constructor(a, m, N, q) {
3546
3572
  super(), this.loop = a, this.varKind = m, this.name = N, this.iterable = q;
3547
3573
  }
@@ -3565,12 +3591,12 @@ var In = {};
3565
3591
  }
3566
3592
  }
3567
3593
  b.kind = "func";
3568
- class O extends T {
3594
+ class C extends T {
3569
3595
  render(a) {
3570
3596
  return "return " + super.render(a);
3571
3597
  }
3572
3598
  }
3573
- O.kind = "return";
3599
+ C.kind = "return";
3574
3600
  class A extends w {
3575
3601
  render(a) {
3576
3602
  let m = "try" + super.render(a);
@@ -3607,7 +3633,7 @@ var In = {};
3607
3633
  class ce {
3608
3634
  constructor(a, m = {}) {
3609
3635
  this._values = {}, this._blockStarts = [], this._constants = {}, this.opts = { ...m, _n: m.lines ? `
3610
- ` : "" }, this._extScope = a, this._scope = new r.Scope({ parent: a }), this._nodes = [new k()];
3636
+ ` : "" }, this._extScope = a, this._scope = new r.Scope({ parent: a }), this._nodes = [new R()];
3611
3637
  }
3612
3638
  toString() {
3613
3639
  return this._root.render(this.opts);
@@ -3698,7 +3724,7 @@ var In = {};
3698
3724
  }
3699
3725
  // a generic `for` clause (or statement if `forBody` is passed)
3700
3726
  for(a, m) {
3701
- return this._for(new C(a), m);
3727
+ return this._for(new O(a), m);
3702
3728
  }
3703
3729
  // `for` statement for a range of values
3704
3730
  forRange(a, m, N, q, M = this.opts.es5 ? r.varKinds.var : r.varKinds.let) {
@@ -3726,7 +3752,7 @@ var In = {};
3726
3752
  }
3727
3753
  // end `for` loop
3728
3754
  endFor() {
3729
- return this._endBlockNode(R);
3755
+ return this._endBlockNode(k);
3730
3756
  }
3731
3757
  // `label` statement
3732
3758
  label(a) {
@@ -3738,10 +3764,10 @@ var In = {};
3738
3764
  }
3739
3765
  // `return` statement
3740
3766
  return(a) {
3741
- const m = new O();
3767
+ const m = new C();
3742
3768
  if (this._blockNode(m), this.code(a), m.nodes.length !== 1)
3743
3769
  throw new Error('CodeGen: "return" should have one node');
3744
- return this._endBlockNode(O);
3770
+ return this._endBlockNode(C);
3745
3771
  }
3746
3772
  // `try` statement
3747
3773
  try(a, m, N) {
@@ -3820,7 +3846,7 @@ var In = {};
3820
3846
  P[m] = (P[m] || 0) + (a[m] || 0);
3821
3847
  return P;
3822
3848
  }
3823
- function ke(P, a) {
3849
+ function Re(P, a) {
3824
3850
  return a instanceof t._CodeOrName ? Z(P, a.names) : P;
3825
3851
  }
3826
3852
  function he(P, a, m) {
@@ -3850,9 +3876,9 @@ var In = {};
3850
3876
  return P.reduce(Tt);
3851
3877
  }
3852
3878
  e.and = Qt;
3853
- const kt = $(e.operators.OR);
3879
+ const Rt = $(e.operators.OR);
3854
3880
  function F(...P) {
3855
- return P.reduce(kt);
3881
+ return P.reduce(Rt);
3856
3882
  }
3857
3883
  e.or = F;
3858
3884
  function $(P) {
@@ -3867,51 +3893,51 @@ var re = {};
3867
3893
  Object.defineProperty(e, "__esModule", { value: !0 }), e.checkStrictMode = e.getErrorPath = e.Type = e.useFunc = e.setEvaluated = e.evaluatedPropsToName = e.mergeEvaluated = e.eachItem = e.unescapeJsonPointer = e.escapeJsonPointer = e.escapeFragment = e.unescapeFragment = e.schemaRefOrVal = e.schemaHasRulesButRef = e.schemaHasRules = e.checkUnknownRules = e.alwaysValidSchema = e.toHash = void 0;
3868
3894
  const t = G, r = $r;
3869
3895
  function n(b) {
3870
- const O = {};
3896
+ const C = {};
3871
3897
  for (const A of b)
3872
- O[A] = !0;
3873
- return O;
3898
+ C[A] = !0;
3899
+ return C;
3874
3900
  }
3875
3901
  e.toHash = n;
3876
- function s(b, O) {
3877
- return typeof O == "boolean" ? O : Object.keys(O).length === 0 ? !0 : (i(b, O), !o(O, b.self.RULES.all));
3902
+ function s(b, C) {
3903
+ return typeof C == "boolean" ? C : Object.keys(C).length === 0 ? !0 : (i(b, C), !o(C, b.self.RULES.all));
3878
3904
  }
3879
3905
  e.alwaysValidSchema = s;
3880
- function i(b, O = b.schema) {
3906
+ function i(b, C = b.schema) {
3881
3907
  const { opts: A, self: x } = b;
3882
- if (!A.strictSchema || typeof O == "boolean")
3908
+ if (!A.strictSchema || typeof C == "boolean")
3883
3909
  return;
3884
3910
  const K = x.RULES.keywords;
3885
- for (const ce in O)
3911
+ for (const ce in C)
3886
3912
  K[ce] || D(b, `unknown keyword: "${ce}"`);
3887
3913
  }
3888
3914
  e.checkUnknownRules = i;
3889
- function o(b, O) {
3915
+ function o(b, C) {
3890
3916
  if (typeof b == "boolean")
3891
3917
  return !b;
3892
3918
  for (const A in b)
3893
- if (O[A])
3919
+ if (C[A])
3894
3920
  return !0;
3895
3921
  return !1;
3896
3922
  }
3897
3923
  e.schemaHasRules = o;
3898
- function l(b, O) {
3924
+ function l(b, C) {
3899
3925
  if (typeof b == "boolean")
3900
3926
  return !b;
3901
3927
  for (const A in b)
3902
- if (A !== "$ref" && O.all[A])
3928
+ if (A !== "$ref" && C.all[A])
3903
3929
  return !0;
3904
3930
  return !1;
3905
3931
  }
3906
3932
  e.schemaHasRulesButRef = l;
3907
- function d({ topSchemaRef: b, schemaPath: O }, A, x, K) {
3933
+ function d({ topSchemaRef: b, schemaPath: C }, A, x, K) {
3908
3934
  if (!K) {
3909
3935
  if (typeof A == "number" || typeof A == "boolean")
3910
3936
  return A;
3911
3937
  if (typeof A == "string")
3912
3938
  return (0, t._)`${A}`;
3913
3939
  }
3914
- return (0, t._)`${b}${O}${(0, t.getProperty)(x)}`;
3940
+ return (0, t._)`${b}${C}${(0, t.getProperty)(x)}`;
3915
3941
  }
3916
3942
  e.schemaRefOrVal = d;
3917
3943
  function u(b) {
@@ -3930,74 +3956,74 @@ var re = {};
3930
3956
  return b.replace(/~1/g, "/").replace(/~0/g, "~");
3931
3957
  }
3932
3958
  e.unescapeJsonPointer = v;
3933
- function T(b, O) {
3959
+ function T(b, C) {
3934
3960
  if (Array.isArray(b))
3935
3961
  for (const A of b)
3936
- O(A);
3962
+ C(A);
3937
3963
  else
3938
- O(b);
3964
+ C(b);
3939
3965
  }
3940
3966
  e.eachItem = T;
3941
- function w({ mergeNames: b, mergeToName: O, mergeValues: A, resultToName: x }) {
3942
- return (K, ce, Z, ke) => {
3943
- const he = Z === void 0 ? ce : Z instanceof t.Name ? (ce instanceof t.Name ? b(K, ce, Z) : O(K, ce, Z), Z) : ce instanceof t.Name ? (O(K, Z, ce), ce) : A(ce, Z);
3944
- return ke === t.Name && !(he instanceof t.Name) ? x(K, he) : he;
3967
+ function w({ mergeNames: b, mergeToName: C, mergeValues: A, resultToName: x }) {
3968
+ return (K, ce, Z, Re) => {
3969
+ const he = Z === void 0 ? ce : Z instanceof t.Name ? (ce instanceof t.Name ? b(K, ce, Z) : C(K, ce, Z), Z) : ce instanceof t.Name ? (C(K, Z, ce), ce) : A(ce, Z);
3970
+ return Re === t.Name && !(he instanceof t.Name) ? x(K, he) : he;
3945
3971
  };
3946
3972
  }
3947
3973
  e.mergeEvaluated = {
3948
3974
  props: w({
3949
- mergeNames: (b, O, A) => b.if((0, t._)`${A} !== true && ${O} !== undefined`, () => {
3950
- b.if((0, t._)`${O} === true`, () => b.assign(A, !0), () => b.assign(A, (0, t._)`${A} || {}`).code((0, t._)`Object.assign(${A}, ${O})`));
3975
+ mergeNames: (b, C, A) => b.if((0, t._)`${A} !== true && ${C} !== undefined`, () => {
3976
+ b.if((0, t._)`${C} === true`, () => b.assign(A, !0), () => b.assign(A, (0, t._)`${A} || {}`).code((0, t._)`Object.assign(${A}, ${C})`));
3951
3977
  }),
3952
- mergeToName: (b, O, A) => b.if((0, t._)`${A} !== true`, () => {
3953
- O === !0 ? b.assign(A, !0) : (b.assign(A, (0, t._)`${A} || {}`), _(b, A, O));
3978
+ mergeToName: (b, C, A) => b.if((0, t._)`${A} !== true`, () => {
3979
+ C === !0 ? b.assign(A, !0) : (b.assign(A, (0, t._)`${A} || {}`), _(b, A, C));
3954
3980
  }),
3955
- mergeValues: (b, O) => b === !0 ? !0 : { ...b, ...O },
3956
- resultToName: k
3981
+ mergeValues: (b, C) => b === !0 ? !0 : { ...b, ...C },
3982
+ resultToName: R
3957
3983
  }),
3958
3984
  items: w({
3959
- mergeNames: (b, O, A) => b.if((0, t._)`${A} !== true && ${O} !== undefined`, () => b.assign(A, (0, t._)`${O} === true ? true : ${A} > ${O} ? ${A} : ${O}`)),
3960
- mergeToName: (b, O, A) => b.if((0, t._)`${A} !== true`, () => b.assign(A, O === !0 ? !0 : (0, t._)`${A} > ${O} ? ${A} : ${O}`)),
3961
- mergeValues: (b, O) => b === !0 ? !0 : Math.max(b, O),
3962
- resultToName: (b, O) => b.var("items", O)
3985
+ mergeNames: (b, C, A) => b.if((0, t._)`${A} !== true && ${C} !== undefined`, () => b.assign(A, (0, t._)`${C} === true ? true : ${A} > ${C} ? ${A} : ${C}`)),
3986
+ mergeToName: (b, C, A) => b.if((0, t._)`${A} !== true`, () => b.assign(A, C === !0 ? !0 : (0, t._)`${A} > ${C} ? ${A} : ${C}`)),
3987
+ mergeValues: (b, C) => b === !0 ? !0 : Math.max(b, C),
3988
+ resultToName: (b, C) => b.var("items", C)
3963
3989
  })
3964
3990
  };
3965
- function k(b, O) {
3966
- if (O === !0)
3991
+ function R(b, C) {
3992
+ if (C === !0)
3967
3993
  return b.var("props", !0);
3968
3994
  const A = b.var("props", (0, t._)`{}`);
3969
- return O !== void 0 && _(b, A, O), A;
3995
+ return C !== void 0 && _(b, A, C), A;
3970
3996
  }
3971
- e.evaluatedPropsToName = k;
3972
- function _(b, O, A) {
3973
- Object.keys(A).forEach((x) => b.assign((0, t._)`${O}${(0, t.getProperty)(x)}`, !0));
3997
+ e.evaluatedPropsToName = R;
3998
+ function _(b, C, A) {
3999
+ Object.keys(A).forEach((x) => b.assign((0, t._)`${C}${(0, t.getProperty)(x)}`, !0));
3974
4000
  }
3975
4001
  e.setEvaluated = _;
3976
4002
  const g = {};
3977
- function R(b, O) {
4003
+ function k(b, C) {
3978
4004
  return b.scopeValue("func", {
3979
- ref: O,
3980
- code: g[O.code] || (g[O.code] = new r._Code(O.code))
4005
+ ref: C,
4006
+ code: g[C.code] || (g[C.code] = new r._Code(C.code))
3981
4007
  });
3982
4008
  }
3983
- e.useFunc = R;
3984
- var C;
4009
+ e.useFunc = k;
4010
+ var O;
3985
4011
  (function(b) {
3986
4012
  b[b.Num = 0] = "Num", b[b.Str = 1] = "Str";
3987
- })(C = e.Type || (e.Type = {}));
3988
- function j(b, O, A) {
4013
+ })(O = e.Type || (e.Type = {}));
4014
+ function j(b, C, A) {
3989
4015
  if (b instanceof t.Name) {
3990
- const x = O === C.Num;
4016
+ const x = C === O.Num;
3991
4017
  return A ? x ? (0, t._)`"[" + ${b} + "]"` : (0, t._)`"['" + ${b} + "']"` : x ? (0, t._)`"/" + ${b}` : (0, t._)`"/" + ${b}.replace(/~/g, "~0").replace(/\\//g, "~1")`;
3992
4018
  }
3993
4019
  return A ? (0, t.getProperty)(b).toString() : "/" + h(b);
3994
4020
  }
3995
4021
  e.getErrorPath = j;
3996
- function D(b, O, A = b.opts.strictSchema) {
4022
+ function D(b, C, A = b.opts.strictSchema) {
3997
4023
  if (A) {
3998
- if (O = `strict mode: ${O}`, A === !0)
3999
- throw new Error(O);
4000
- b.self.logger.warn(O);
4024
+ if (C = `strict mode: ${C}`, A === !0)
4025
+ throw new Error(C);
4026
+ b.self.logger.warn(C);
4001
4027
  }
4002
4028
  }
4003
4029
  e.checkStrictMode = D;
@@ -4036,36 +4062,36 @@ Ke.default = Ec;
4036
4062
  }, e.keyword$DataError = {
4037
4063
  message: ({ keyword: _, schemaType: g }) => g ? (0, t.str)`"${_}" keyword must be ${g} ($data)` : (0, t.str)`"${_}" keyword is invalid ($data)`
4038
4064
  };
4039
- function s(_, g = e.keywordError, R, C) {
4040
- const { it: j } = _, { gen: D, compositeRule: b, allErrors: O } = j, A = h(_, g, R);
4041
- C ?? (b || O) ? d(D, A) : u(j, (0, t._)`[${A}]`);
4065
+ function s(_, g = e.keywordError, k, O) {
4066
+ const { it: j } = _, { gen: D, compositeRule: b, allErrors: C } = j, A = h(_, g, k);
4067
+ O ?? (b || C) ? d(D, A) : u(j, (0, t._)`[${A}]`);
4042
4068
  }
4043
4069
  e.reportError = s;
4044
- function i(_, g = e.keywordError, R) {
4045
- const { it: C } = _, { gen: j, compositeRule: D, allErrors: b } = C, O = h(_, g, R);
4046
- d(j, O), D || b || u(C, n.default.vErrors);
4070
+ function i(_, g = e.keywordError, k) {
4071
+ const { it: O } = _, { gen: j, compositeRule: D, allErrors: b } = O, C = h(_, g, k);
4072
+ d(j, C), D || b || u(O, n.default.vErrors);
4047
4073
  }
4048
4074
  e.reportExtraError = i;
4049
4075
  function o(_, g) {
4050
4076
  _.assign(n.default.errors, g), _.if((0, t._)`${n.default.vErrors} !== null`, () => _.if(g, () => _.assign((0, t._)`${n.default.vErrors}.length`, g), () => _.assign(n.default.vErrors, null)));
4051
4077
  }
4052
4078
  e.resetErrorsCount = o;
4053
- function l({ gen: _, keyword: g, schemaValue: R, data: C, errsCount: j, it: D }) {
4079
+ function l({ gen: _, keyword: g, schemaValue: k, data: O, errsCount: j, it: D }) {
4054
4080
  if (j === void 0)
4055
4081
  throw new Error("ajv implementation error");
4056
4082
  const b = _.name("err");
4057
- _.forRange("i", j, n.default.errors, (O) => {
4058
- _.const(b, (0, t._)`${n.default.vErrors}[${O}]`), _.if((0, t._)`${b}.instancePath === undefined`, () => _.assign((0, t._)`${b}.instancePath`, (0, t.strConcat)(n.default.instancePath, D.errorPath))), _.assign((0, t._)`${b}.schemaPath`, (0, t.str)`${D.errSchemaPath}/${g}`), D.opts.verbose && (_.assign((0, t._)`${b}.schema`, R), _.assign((0, t._)`${b}.data`, C));
4083
+ _.forRange("i", j, n.default.errors, (C) => {
4084
+ _.const(b, (0, t._)`${n.default.vErrors}[${C}]`), _.if((0, t._)`${b}.instancePath === undefined`, () => _.assign((0, t._)`${b}.instancePath`, (0, t.strConcat)(n.default.instancePath, D.errorPath))), _.assign((0, t._)`${b}.schemaPath`, (0, t.str)`${D.errSchemaPath}/${g}`), D.opts.verbose && (_.assign((0, t._)`${b}.schema`, k), _.assign((0, t._)`${b}.data`, O));
4059
4085
  });
4060
4086
  }
4061
4087
  e.extendErrors = l;
4062
4088
  function d(_, g) {
4063
- const R = _.const("err", g);
4064
- _.if((0, t._)`${n.default.vErrors} === null`, () => _.assign(n.default.vErrors, (0, t._)`[${R}]`), (0, t._)`${n.default.vErrors}.push(${R})`), _.code((0, t._)`${n.default.errors}++`);
4089
+ const k = _.const("err", g);
4090
+ _.if((0, t._)`${n.default.vErrors} === null`, () => _.assign(n.default.vErrors, (0, t._)`[${k}]`), (0, t._)`${n.default.vErrors}.push(${k})`), _.code((0, t._)`${n.default.errors}++`);
4065
4091
  }
4066
4092
  function u(_, g) {
4067
- const { gen: R, validateName: C, schemaEnv: j } = _;
4068
- j.$async ? R.throw((0, t._)`new ${_.ValidationError}(${g})`) : (R.assign((0, t._)`${C}.errors`, g), R.return(!1));
4093
+ const { gen: k, validateName: O, schemaEnv: j } = _;
4094
+ j.$async ? k.throw((0, t._)`new ${_.ValidationError}(${g})`) : (k.assign((0, t._)`${O}.errors`, g), k.return(!1));
4069
4095
  }
4070
4096
  const p = {
4071
4097
  keyword: new t.Name("keyword"),
@@ -4076,45 +4102,45 @@ Ke.default = Ec;
4076
4102
  schema: new t.Name("schema"),
4077
4103
  parentSchema: new t.Name("parentSchema")
4078
4104
  };
4079
- function h(_, g, R) {
4080
- const { createErrors: C } = _.it;
4081
- return C === !1 ? (0, t._)`{}` : v(_, g, R);
4082
- }
4083
- function v(_, g, R = {}) {
4084
- const { gen: C, it: j } = _, D = [
4085
- T(j, R),
4086
- w(_, R)
4105
+ function h(_, g, k) {
4106
+ const { createErrors: O } = _.it;
4107
+ return O === !1 ? (0, t._)`{}` : v(_, g, k);
4108
+ }
4109
+ function v(_, g, k = {}) {
4110
+ const { gen: O, it: j } = _, D = [
4111
+ T(j, k),
4112
+ w(_, k)
4087
4113
  ];
4088
- return k(_, g, D), C.object(...D);
4114
+ return R(_, g, D), O.object(...D);
4089
4115
  }
4090
4116
  function T({ errorPath: _ }, { instancePath: g }) {
4091
- const R = g ? (0, t.str)`${_}${(0, r.getErrorPath)(g, r.Type.Str)}` : _;
4092
- return [n.default.instancePath, (0, t.strConcat)(n.default.instancePath, R)];
4117
+ const k = g ? (0, t.str)`${_}${(0, r.getErrorPath)(g, r.Type.Str)}` : _;
4118
+ return [n.default.instancePath, (0, t.strConcat)(n.default.instancePath, k)];
4093
4119
  }
4094
- function w({ keyword: _, it: { errSchemaPath: g } }, { schemaPath: R, parentSchema: C }) {
4095
- let j = C ? g : (0, t.str)`${g}/${_}`;
4096
- return R && (j = (0, t.str)`${j}${(0, r.getErrorPath)(R, r.Type.Str)}`), [p.schemaPath, j];
4120
+ function w({ keyword: _, it: { errSchemaPath: g } }, { schemaPath: k, parentSchema: O }) {
4121
+ let j = O ? g : (0, t.str)`${g}/${_}`;
4122
+ return k && (j = (0, t.str)`${j}${(0, r.getErrorPath)(k, r.Type.Str)}`), [p.schemaPath, j];
4097
4123
  }
4098
- function k(_, { params: g, message: R }, C) {
4099
- const { keyword: j, data: D, schemaValue: b, it: O } = _, { opts: A, propertyName: x, topSchemaRef: K, schemaPath: ce } = O;
4100
- C.push([p.keyword, j], [p.params, typeof g == "function" ? g(_) : g || (0, t._)`{}`]), A.messages && C.push([p.message, typeof R == "function" ? R(_) : R]), A.verbose && C.push([p.schema, b], [p.parentSchema, (0, t._)`${K}${ce}`], [n.default.data, D]), x && C.push([p.propertyName, x]);
4124
+ function R(_, { params: g, message: k }, O) {
4125
+ const { keyword: j, data: D, schemaValue: b, it: C } = _, { opts: A, propertyName: x, topSchemaRef: K, schemaPath: ce } = C;
4126
+ O.push([p.keyword, j], [p.params, typeof g == "function" ? g(_) : g || (0, t._)`{}`]), A.messages && O.push([p.message, typeof k == "function" ? k(_) : k]), A.verbose && O.push([p.schema, b], [p.parentSchema, (0, t._)`${K}${ce}`], [n.default.data, D]), x && O.push([p.propertyName, x]);
4101
4127
  }
4102
4128
  })(vr);
4103
4129
  Object.defineProperty(Gt, "__esModule", { value: !0 });
4104
4130
  Gt.boolOrEmptySchema = Gt.topBoolOrEmptySchema = void 0;
4105
- const Sc = vr, Tc = G, kc = Ke, Rc = {
4131
+ const Sc = vr, Tc = G, Rc = Ke, kc = {
4106
4132
  message: "boolean schema is false"
4107
4133
  };
4108
- function Cc(e) {
4134
+ function Oc(e) {
4109
4135
  const { gen: t, schema: r, validateName: n } = e;
4110
- r === !1 ? ro(e, !1) : typeof r == "object" && r.$async === !0 ? t.return(kc.default.data) : (t.assign((0, Tc._)`${n}.errors`, null), t.return(!0));
4136
+ r === !1 ? ro(e, !1) : typeof r == "object" && r.$async === !0 ? t.return(Rc.default.data) : (t.assign((0, Tc._)`${n}.errors`, null), t.return(!0));
4111
4137
  }
4112
- Gt.topBoolOrEmptySchema = Cc;
4113
- function Oc(e, t) {
4138
+ Gt.topBoolOrEmptySchema = Oc;
4139
+ function Cc(e, t) {
4114
4140
  const { gen: r, schema: n } = e;
4115
4141
  n === !1 ? (r.var(t, !1), ro(e)) : r.var(t, !0);
4116
4142
  }
4117
- Gt.boolOrEmptySchema = Oc;
4143
+ Gt.boolOrEmptySchema = Cc;
4118
4144
  function ro(e, t) {
4119
4145
  const { gen: r, data: n } = e, s = {
4120
4146
  gen: r,
@@ -4126,7 +4152,7 @@ function ro(e, t) {
4126
4152
  params: {},
4127
4153
  it: e
4128
4154
  };
4129
- (0, Sc.reportError)(s, Rc, void 0, t);
4155
+ (0, Sc.reportError)(s, kc, void 0, t);
4130
4156
  }
4131
4157
  var br = {}, Pt = {};
4132
4158
  Object.defineProperty(Pt, "__esModule", { value: !0 });
@@ -4173,86 +4199,86 @@ Qe.shouldUseRule = so;
4173
4199
  Object.defineProperty(e, "__esModule", { value: !0 }), e.reportTypeError = e.checkDataTypes = e.checkDataType = e.coerceAndCheckDataType = e.getJSONTypes = e.getSchemaTypes = e.DataType = void 0;
4174
4200
  const t = Pt, r = Qe, n = vr, s = G, i = re;
4175
4201
  var o;
4176
- (function(C) {
4177
- C[C.Correct = 0] = "Correct", C[C.Wrong = 1] = "Wrong";
4202
+ (function(O) {
4203
+ O[O.Correct = 0] = "Correct", O[O.Wrong = 1] = "Wrong";
4178
4204
  })(o = e.DataType || (e.DataType = {}));
4179
- function l(C) {
4180
- const j = d(C.type);
4205
+ function l(O) {
4206
+ const j = d(O.type);
4181
4207
  if (j.includes("null")) {
4182
- if (C.nullable === !1)
4208
+ if (O.nullable === !1)
4183
4209
  throw new Error("type: null contradicts nullable: false");
4184
4210
  } else {
4185
- if (!j.length && C.nullable !== void 0)
4211
+ if (!j.length && O.nullable !== void 0)
4186
4212
  throw new Error('"nullable" cannot be used without "type"');
4187
- C.nullable === !0 && j.push("null");
4213
+ O.nullable === !0 && j.push("null");
4188
4214
  }
4189
4215
  return j;
4190
4216
  }
4191
4217
  e.getSchemaTypes = l;
4192
- function d(C) {
4193
- const j = Array.isArray(C) ? C : C ? [C] : [];
4218
+ function d(O) {
4219
+ const j = Array.isArray(O) ? O : O ? [O] : [];
4194
4220
  if (j.every(t.isJSONType))
4195
4221
  return j;
4196
4222
  throw new Error("type must be JSONType or JSONType[]: " + j.join(","));
4197
4223
  }
4198
4224
  e.getJSONTypes = d;
4199
- function u(C, j) {
4200
- const { gen: D, data: b, opts: O } = C, A = h(j, O.coerceTypes), x = j.length > 0 && !(A.length === 0 && j.length === 1 && (0, r.schemaHasRulesForType)(C, j[0]));
4225
+ function u(O, j) {
4226
+ const { gen: D, data: b, opts: C } = O, A = h(j, C.coerceTypes), x = j.length > 0 && !(A.length === 0 && j.length === 1 && (0, r.schemaHasRulesForType)(O, j[0]));
4201
4227
  if (x) {
4202
- const K = k(j, b, O.strictNumbers, o.Wrong);
4228
+ const K = R(j, b, C.strictNumbers, o.Wrong);
4203
4229
  D.if(K, () => {
4204
- A.length ? v(C, j, A) : g(C);
4230
+ A.length ? v(O, j, A) : g(O);
4205
4231
  });
4206
4232
  }
4207
4233
  return x;
4208
4234
  }
4209
4235
  e.coerceAndCheckDataType = u;
4210
4236
  const p = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
4211
- function h(C, j) {
4212
- return j ? C.filter((D) => p.has(D) || j === "array" && D === "array") : [];
4237
+ function h(O, j) {
4238
+ return j ? O.filter((D) => p.has(D) || j === "array" && D === "array") : [];
4213
4239
  }
4214
- function v(C, j, D) {
4215
- const { gen: b, data: O, opts: A } = C, x = b.let("dataType", (0, s._)`typeof ${O}`), K = b.let("coerced", (0, s._)`undefined`);
4216
- A.coerceTypes === "array" && b.if((0, s._)`${x} == 'object' && Array.isArray(${O}) && ${O}.length == 1`, () => b.assign(O, (0, s._)`${O}[0]`).assign(x, (0, s._)`typeof ${O}`).if(k(j, O, A.strictNumbers), () => b.assign(K, O))), b.if((0, s._)`${K} !== undefined`);
4240
+ function v(O, j, D) {
4241
+ const { gen: b, data: C, opts: A } = O, x = b.let("dataType", (0, s._)`typeof ${C}`), K = b.let("coerced", (0, s._)`undefined`);
4242
+ A.coerceTypes === "array" && b.if((0, s._)`${x} == 'object' && Array.isArray(${C}) && ${C}.length == 1`, () => b.assign(C, (0, s._)`${C}[0]`).assign(x, (0, s._)`typeof ${C}`).if(R(j, C, A.strictNumbers), () => b.assign(K, C))), b.if((0, s._)`${K} !== undefined`);
4217
4243
  for (const Z of D)
4218
4244
  (p.has(Z) || Z === "array" && A.coerceTypes === "array") && ce(Z);
4219
- b.else(), g(C), b.endIf(), b.if((0, s._)`${K} !== undefined`, () => {
4220
- b.assign(O, K), T(C, K);
4245
+ b.else(), g(O), b.endIf(), b.if((0, s._)`${K} !== undefined`, () => {
4246
+ b.assign(C, K), T(O, K);
4221
4247
  });
4222
4248
  function ce(Z) {
4223
4249
  switch (Z) {
4224
4250
  case "string":
4225
- b.elseIf((0, s._)`${x} == "number" || ${x} == "boolean"`).assign(K, (0, s._)`"" + ${O}`).elseIf((0, s._)`${O} === null`).assign(K, (0, s._)`""`);
4251
+ b.elseIf((0, s._)`${x} == "number" || ${x} == "boolean"`).assign(K, (0, s._)`"" + ${C}`).elseIf((0, s._)`${C} === null`).assign(K, (0, s._)`""`);
4226
4252
  return;
4227
4253
  case "number":
4228
- b.elseIf((0, s._)`${x} == "boolean" || ${O} === null
4229
- || (${x} == "string" && ${O} && ${O} == +${O})`).assign(K, (0, s._)`+${O}`);
4254
+ b.elseIf((0, s._)`${x} == "boolean" || ${C} === null
4255
+ || (${x} == "string" && ${C} && ${C} == +${C})`).assign(K, (0, s._)`+${C}`);
4230
4256
  return;
4231
4257
  case "integer":
4232
- b.elseIf((0, s._)`${x} === "boolean" || ${O} === null
4233
- || (${x} === "string" && ${O} && ${O} == +${O} && !(${O} % 1))`).assign(K, (0, s._)`+${O}`);
4258
+ b.elseIf((0, s._)`${x} === "boolean" || ${C} === null
4259
+ || (${x} === "string" && ${C} && ${C} == +${C} && !(${C} % 1))`).assign(K, (0, s._)`+${C}`);
4234
4260
  return;
4235
4261
  case "boolean":
4236
- b.elseIf((0, s._)`${O} === "false" || ${O} === 0 || ${O} === null`).assign(K, !1).elseIf((0, s._)`${O} === "true" || ${O} === 1`).assign(K, !0);
4262
+ b.elseIf((0, s._)`${C} === "false" || ${C} === 0 || ${C} === null`).assign(K, !1).elseIf((0, s._)`${C} === "true" || ${C} === 1`).assign(K, !0);
4237
4263
  return;
4238
4264
  case "null":
4239
- b.elseIf((0, s._)`${O} === "" || ${O} === 0 || ${O} === false`), b.assign(K, null);
4265
+ b.elseIf((0, s._)`${C} === "" || ${C} === 0 || ${C} === false`), b.assign(K, null);
4240
4266
  return;
4241
4267
  case "array":
4242
4268
  b.elseIf((0, s._)`${x} === "string" || ${x} === "number"
4243
- || ${x} === "boolean" || ${O} === null`).assign(K, (0, s._)`[${O}]`);
4269
+ || ${x} === "boolean" || ${C} === null`).assign(K, (0, s._)`[${C}]`);
4244
4270
  }
4245
4271
  }
4246
4272
  }
4247
- function T({ gen: C, parentData: j, parentDataProperty: D }, b) {
4248
- C.if((0, s._)`${j} !== undefined`, () => C.assign((0, s._)`${j}[${D}]`, b));
4273
+ function T({ gen: O, parentData: j, parentDataProperty: D }, b) {
4274
+ O.if((0, s._)`${j} !== undefined`, () => O.assign((0, s._)`${j}[${D}]`, b));
4249
4275
  }
4250
- function w(C, j, D, b = o.Correct) {
4251
- const O = b === o.Correct ? s.operators.EQ : s.operators.NEQ;
4276
+ function w(O, j, D, b = o.Correct) {
4277
+ const C = b === o.Correct ? s.operators.EQ : s.operators.NEQ;
4252
4278
  let A;
4253
- switch (C) {
4279
+ switch (O) {
4254
4280
  case "null":
4255
- return (0, s._)`${j} ${O} null`;
4281
+ return (0, s._)`${j} ${C} null`;
4256
4282
  case "array":
4257
4283
  A = (0, s._)`Array.isArray(${j})`;
4258
4284
  break;
@@ -4266,7 +4292,7 @@ Qe.shouldUseRule = so;
4266
4292
  A = x();
4267
4293
  break;
4268
4294
  default:
4269
- return (0, s._)`typeof ${j} ${O} ${C}`;
4295
+ return (0, s._)`typeof ${j} ${C} ${O}`;
4270
4296
  }
4271
4297
  return b === o.Correct ? A : (0, s.not)(A);
4272
4298
  function x(K = s.nil) {
@@ -4274,43 +4300,43 @@ Qe.shouldUseRule = so;
4274
4300
  }
4275
4301
  }
4276
4302
  e.checkDataType = w;
4277
- function k(C, j, D, b) {
4278
- if (C.length === 1)
4279
- return w(C[0], j, D, b);
4280
- let O;
4281
- const A = (0, i.toHash)(C);
4303
+ function R(O, j, D, b) {
4304
+ if (O.length === 1)
4305
+ return w(O[0], j, D, b);
4306
+ let C;
4307
+ const A = (0, i.toHash)(O);
4282
4308
  if (A.array && A.object) {
4283
4309
  const x = (0, s._)`typeof ${j} != "object"`;
4284
- O = A.null ? x : (0, s._)`!${j} || ${x}`, delete A.null, delete A.array, delete A.object;
4310
+ C = A.null ? x : (0, s._)`!${j} || ${x}`, delete A.null, delete A.array, delete A.object;
4285
4311
  } else
4286
- O = s.nil;
4312
+ C = s.nil;
4287
4313
  A.number && delete A.integer;
4288
4314
  for (const x in A)
4289
- O = (0, s.and)(O, w(x, j, D, b));
4290
- return O;
4315
+ C = (0, s.and)(C, w(x, j, D, b));
4316
+ return C;
4291
4317
  }
4292
- e.checkDataTypes = k;
4318
+ e.checkDataTypes = R;
4293
4319
  const _ = {
4294
- message: ({ schema: C }) => `must be ${C}`,
4295
- params: ({ schema: C, schemaValue: j }) => typeof C == "string" ? (0, s._)`{type: ${C}}` : (0, s._)`{type: ${j}}`
4320
+ message: ({ schema: O }) => `must be ${O}`,
4321
+ params: ({ schema: O, schemaValue: j }) => typeof O == "string" ? (0, s._)`{type: ${O}}` : (0, s._)`{type: ${j}}`
4296
4322
  };
4297
- function g(C) {
4298
- const j = R(C);
4323
+ function g(O) {
4324
+ const j = k(O);
4299
4325
  (0, n.reportError)(j, _);
4300
4326
  }
4301
4327
  e.reportTypeError = g;
4302
- function R(C) {
4303
- const { gen: j, data: D, schema: b } = C, O = (0, i.schemaRefOrVal)(C, b, "type");
4328
+ function k(O) {
4329
+ const { gen: j, data: D, schema: b } = O, C = (0, i.schemaRefOrVal)(O, b, "type");
4304
4330
  return {
4305
4331
  gen: j,
4306
4332
  keyword: "type",
4307
4333
  data: D,
4308
4334
  schema: b.type,
4309
- schemaCode: O,
4310
- schemaValue: O,
4335
+ schemaCode: C,
4336
+ schemaValue: C,
4311
4337
  parentSchema: b,
4312
4338
  params: {},
4313
- it: C
4339
+ it: O
4314
4340
  };
4315
4341
  }
4316
4342
  })(br);
@@ -4354,10 +4380,10 @@ function Lc({ gen: e, data: t, it: { opts: r } }, n, s) {
4354
4380
  return (0, ie.or)(...n.map((i) => (0, ie.and)(Gn(e, t, i, r.ownProperties), (0, ie._)`${s} = ${i}`)));
4355
4381
  }
4356
4382
  B.checkMissingProp = Lc;
4357
- function zc(e, t) {
4383
+ function Hc(e, t) {
4358
4384
  e.setParams({ missingProperty: t }, !0), e.error();
4359
4385
  }
4360
- B.reportMissingProp = zc;
4386
+ B.reportMissingProp = Hc;
4361
4387
  function io(e) {
4362
4388
  return e.scopeValue("func", {
4363
4389
  // eslint-disable-next-line @typescript-eslint/unbound-method
@@ -4370,11 +4396,11 @@ function Bn(e, t, r) {
4370
4396
  return (0, ie._)`${io(e)}.call(${t}, ${r})`;
4371
4397
  }
4372
4398
  B.isOwnProperty = Bn;
4373
- function Hc(e, t, r, n) {
4399
+ function zc(e, t, r, n) {
4374
4400
  const s = (0, ie._)`${t}${(0, ie.getProperty)(r)} !== undefined`;
4375
4401
  return n ? (0, ie._)`${s} && ${Bn(e, t, r)}` : s;
4376
4402
  }
4377
- B.propertyInData = Hc;
4403
+ B.propertyInData = zc;
4378
4404
  function Gn(e, t, r, n) {
4379
4405
  const s = (0, ie._)`${t}${(0, ie.getProperty)(r)} === undefined`;
4380
4406
  return n ? (0, ie.or)(s, (0, ie.not)(Bn(e, t, r))) : s;
@@ -4470,7 +4496,7 @@ function Zc(e, t) {
4470
4496
  e.block$data(h, v), e.ok((r = t.valid) !== null && r !== void 0 ? r : h);
4471
4497
  function v() {
4472
4498
  if (t.errors === !1)
4473
- k(), t.modifying && ri(e), _(() => e.error());
4499
+ R(), t.modifying && ri(e), _(() => e.error());
4474
4500
  else {
4475
4501
  const g = t.async ? T() : w();
4476
4502
  t.modifying && ri(e), _(() => Xc(e, g));
@@ -4478,19 +4504,19 @@ function Zc(e, t) {
4478
4504
  }
4479
4505
  function T() {
4480
4506
  const g = n.let("ruleErrs", null);
4481
- return n.try(() => k((0, be._)`await `), (R) => n.assign(h, !1).if((0, be._)`${R} instanceof ${d.ValidationError}`, () => n.assign(g, (0, be._)`${R}.errors`), () => n.throw(R))), g;
4507
+ return n.try(() => R((0, be._)`await `), (k) => n.assign(h, !1).if((0, be._)`${k} instanceof ${d.ValidationError}`, () => n.assign(g, (0, be._)`${k}.errors`), () => n.throw(k))), g;
4482
4508
  }
4483
4509
  function w() {
4484
4510
  const g = (0, be._)`${p}.errors`;
4485
- return n.assign(g, null), k(be.nil), g;
4511
+ return n.assign(g, null), R(be.nil), g;
4486
4512
  }
4487
- function k(g = t.async ? (0, be._)`await ` : be.nil) {
4488
- const R = d.opts.passContext ? ht.default.this : ht.default.self, C = !("compile" in t && !l || t.schema === !1);
4489
- n.assign(h, (0, be._)`${g}${(0, Jc.callValidateCode)(e, p, R, C)}`, t.modifying);
4513
+ function R(g = t.async ? (0, be._)`await ` : be.nil) {
4514
+ const k = d.opts.passContext ? ht.default.this : ht.default.self, O = !("compile" in t && !l || t.schema === !1);
4515
+ n.assign(h, (0, be._)`${g}${(0, Jc.callValidateCode)(e, p, k, O)}`, t.modifying);
4490
4516
  }
4491
4517
  function _(g) {
4492
- var R;
4493
- n.if((0, be.not)((R = t.valid) !== null && R !== void 0 ? R : h), g);
4518
+ var k;
4519
+ n.if((0, be.not)((k = t.valid) !== null && k !== void 0 ? k : h), g);
4494
4520
  }
4495
4521
  }
4496
4522
  xe.funcKeywordCode = Zc;
@@ -4772,22 +4798,22 @@ function gl(e, t) {
4772
4798
  return ul(e, { allKeys: !0 }, (h, v, T, w) => {
4773
4799
  if (w === void 0)
4774
4800
  return;
4775
- const k = o + v;
4801
+ const R = o + v;
4776
4802
  let _ = i[w];
4777
- typeof h[r] == "string" && (_ = g.call(this, h[r])), R.call(this, h.$anchor), R.call(this, h.$dynamicAnchor), i[v] = _;
4778
- function g(C) {
4803
+ typeof h[r] == "string" && (_ = g.call(this, h[r])), k.call(this, h.$anchor), k.call(this, h.$dynamicAnchor), i[v] = _;
4804
+ function g(O) {
4779
4805
  const j = this.opts.uriResolver.resolve;
4780
- if (C = Lt(_ ? j(_, C) : C), d.has(C))
4781
- throw p(C);
4782
- d.add(C);
4783
- let D = this.refs[C];
4784
- return typeof D == "string" && (D = this.refs[D]), typeof D == "object" ? u(h, D.schema, C) : C !== Lt(k) && (C[0] === "#" ? (u(h, l[C], C), l[C] = h) : this.refs[C] = k), C;
4785
- }
4786
- function R(C) {
4787
- if (typeof C == "string") {
4788
- if (!yl.test(C))
4789
- throw new Error(`invalid anchor "${C}"`);
4790
- g.call(this, `#${C}`);
4806
+ if (O = Lt(_ ? j(_, O) : O), d.has(O))
4807
+ throw p(O);
4808
+ d.add(O);
4809
+ let D = this.refs[O];
4810
+ return typeof D == "string" && (D = this.refs[D]), typeof D == "object" ? u(h, D.schema, O) : O !== Lt(R) && (O[0] === "#" ? (u(h, l[O], O), l[O] = h) : this.refs[O] = R), O;
4811
+ }
4812
+ function k(O) {
4813
+ if (typeof O == "string") {
4814
+ if (!yl.test(O))
4815
+ throw new Error(`invalid anchor "${O}"`);
4816
+ g.call(this, `#${O}`);
4791
4817
  }
4792
4818
  }
4793
4819
  }), l;
@@ -4829,7 +4855,7 @@ function bl(e, t) {
4829
4855
  function Pl(e) {
4830
4856
  const { schema: t, opts: r, gen: n } = e;
4831
4857
  yo(e, () => {
4832
- r.$comment && t.$comment && vo(e), Rl(e), n.let(V.default.vErrors, null), n.let(V.default.errors, 0), r.unevaluated && El(e), wo(e), Nl(e);
4858
+ r.$comment && t.$comment && vo(e), kl(e), n.let(V.default.vErrors, null), n.let(V.default.errors, 0), r.unevaluated && El(e), wo(e), Nl(e);
4833
4859
  });
4834
4860
  }
4835
4861
  function El(e) {
@@ -4860,12 +4886,12 @@ function $o(e) {
4860
4886
  }
4861
4887
  function Tl(e, t) {
4862
4888
  const { schema: r, gen: n, opts: s } = e;
4863
- s.$comment && r.$comment && vo(e), Cl(e), Ol(e);
4889
+ s.$comment && r.$comment && vo(e), Ol(e), Cl(e);
4864
4890
  const i = n.const("_errs", V.default.errors);
4865
4891
  wo(e, i), n.var(t, (0, U._)`${i} === ${V.default.errors}`);
4866
4892
  }
4867
4893
  function _o(e) {
4868
- (0, Ze.checkUnknownRules)(e), kl(e);
4894
+ (0, Ze.checkUnknownRules)(e), Rl(e);
4869
4895
  }
4870
4896
  function wo(e, t) {
4871
4897
  if (e.opts.jtd)
@@ -4873,19 +4899,19 @@ function wo(e, t) {
4873
4899
  const r = (0, ni.getSchemaTypes)(e.schema), n = (0, ni.coerceAndCheckDataType)(e, r);
4874
4900
  ii(e, r, !n, t);
4875
4901
  }
4876
- function kl(e) {
4902
+ function Rl(e) {
4877
4903
  const { schema: t, errSchemaPath: r, opts: n, self: s } = e;
4878
4904
  t.$ref && n.ignoreKeywordsWithRef && (0, Ze.schemaHasRulesButRef)(t, s.RULES) && s.logger.warn(`$ref: keywords ignored in schema at path "${r}"`);
4879
4905
  }
4880
- function Rl(e) {
4906
+ function kl(e) {
4881
4907
  const { schema: t, opts: r } = e;
4882
4908
  t.default !== void 0 && r.useDefaults && r.strictSchema && (0, Ze.checkStrictMode)(e, "default is ignored in the schema root");
4883
4909
  }
4884
- function Cl(e) {
4910
+ function Ol(e) {
4885
4911
  const t = e.schema[e.opts.schemaId];
4886
4912
  t && (e.baseId = (0, _l.resolveUrl)(e.opts.uriResolver, e.baseId, t));
4887
4913
  }
4888
- function Ol(e) {
4914
+ function Cl(e) {
4889
4915
  if (e.schema.$async && !e.schemaEnv.$async)
4890
4916
  throw new Error("async schema in sync schema");
4891
4917
  }
@@ -5112,21 +5138,21 @@ function So(e, { dataLevel: t, dataNames: r, dataPathArr: n }) {
5112
5138
  Ae.getData = So;
5113
5139
  var Pr = {};
5114
5140
  Object.defineProperty(Pr, "__esModule", { value: !0 });
5115
- class zl extends Error {
5141
+ class Hl extends Error {
5116
5142
  constructor(t) {
5117
5143
  super("validation failed"), this.errors = t, this.ajv = this.validation = !0;
5118
5144
  }
5119
5145
  }
5120
- Pr.default = zl;
5146
+ Pr.default = Hl;
5121
5147
  var Er = {};
5122
5148
  Object.defineProperty(Er, "__esModule", { value: !0 });
5123
5149
  const Tn = $e;
5124
- class Hl extends Error {
5150
+ class zl extends Error {
5125
5151
  constructor(t, r, n, s) {
5126
5152
  super(s || `can't resolve reference ${n} from id ${r}`), this.missingRef = (0, Tn.resolveUrl)(t, r, n), this.missingSchema = (0, Tn.normalizeId)((0, Tn.getFullPath)(t, this.missingRef));
5127
5153
  }
5128
5154
  }
5129
- Er.default = Hl;
5155
+ Er.default = zl;
5130
5156
  var Se = {};
5131
5157
  Object.defineProperty(Se, "__esModule", { value: !0 });
5132
5158
  Se.resolveSchema = Se.getCompilingSchema = Se.resolveRef = Se.compileSchema = Se.SchemaEnv = void 0;
@@ -5183,12 +5209,12 @@ function Yn(e) {
5183
5209
  p = `${o.scopeRefs(ft.default.scope)}return ${h}`, this.opts.code.process && (p = this.opts.code.process(p, e));
5184
5210
  const T = new Function(`${ft.default.self}`, `${ft.default.scope}`, p)(this, this.scope.get());
5185
5211
  if (this.scope.value(d, { ref: T }), T.errors = null, T.schema = e.schema, T.schemaEnv = e, e.$async && (T.$async = !0), this.opts.code.source === !0 && (T.source = { validateName: d, validateCode: h, scopeValues: o._values }), this.opts.unevaluated) {
5186
- const { props: w, items: k } = u;
5212
+ const { props: w, items: R } = u;
5187
5213
  T.evaluated = {
5188
5214
  props: w instanceof Ne.Name ? void 0 : w,
5189
- items: k instanceof Ne.Name ? void 0 : k,
5215
+ items: R instanceof Ne.Name ? void 0 : R,
5190
5216
  dynamicProps: w instanceof Ne.Name,
5191
- dynamicItems: k instanceof Ne.Name
5217
+ dynamicItems: R instanceof Ne.Name
5192
5218
  }, T.source && (T.source.evaluated = (0, Ne.stringify)(T.evaluated));
5193
5219
  }
5194
5220
  return e.validate = T, e;
@@ -5236,18 +5262,18 @@ function wn(e, t) {
5236
5262
  const r = this.opts.uriResolver.parse(t), n = (0, Ie._getFullPath)(this.opts.uriResolver, r);
5237
5263
  let s = (0, Ie.getFullPath)(this.opts.uriResolver, e.baseId, void 0);
5238
5264
  if (Object.keys(e.schema).length > 0 && n === s)
5239
- return kn.call(this, r, e);
5265
+ return Rn.call(this, r, e);
5240
5266
  const i = (0, Ie.normalizeId)(n), o = this.refs[i] || this.schemas[i];
5241
5267
  if (typeof o == "string") {
5242
5268
  const l = wn.call(this, e, o);
5243
- return typeof (l == null ? void 0 : l.schema) != "object" ? void 0 : kn.call(this, r, l);
5269
+ return typeof (l == null ? void 0 : l.schema) != "object" ? void 0 : Rn.call(this, r, l);
5244
5270
  }
5245
5271
  if (typeof (o == null ? void 0 : o.schema) == "object") {
5246
5272
  if (o.validate || Yn.call(this, o), i === (0, Ie.normalizeId)(t)) {
5247
5273
  const { schema: l } = o, { schemaId: d } = this.opts, u = l[d];
5248
5274
  return u && (s = (0, Ie.resolveUrl)(this.opts.uriResolver, s, u)), new _n({ schema: l, schemaId: d, root: e, baseId: s });
5249
5275
  }
5250
- return kn.call(this, r, o);
5276
+ return Rn.call(this, r, o);
5251
5277
  }
5252
5278
  }
5253
5279
  Se.resolveSchema = wn;
@@ -5258,7 +5284,7 @@ const Jl = /* @__PURE__ */ new Set([
5258
5284
  "dependencies",
5259
5285
  "definitions"
5260
5286
  ]);
5261
- function kn(e, { baseId: t, schema: r, root: n }) {
5287
+ function Rn(e, { baseId: t, schema: r, root: n }) {
5262
5288
  var s;
5263
5289
  if (((s = e.fragment) === null || s === void 0 ? void 0 : s[0]) !== "/")
5264
5290
  return;
@@ -5340,20 +5366,20 @@ var Qn = {}, Dn = { exports: {} };
5340
5366
  return y;
5341
5367
  }
5342
5368
  function u(f) {
5343
- var c = "[A-Za-z]", y = "[0-9]", S = n(y, "[A-Fa-f]"), E = s(s("%[EFef]" + S + "%" + S + S + "%" + S + S) + "|" + s("%[89A-Fa-f]" + S + "%" + S + S) + "|" + s("%" + S + S)), L = "[\\:\\/\\?\\#\\[\\]\\@]", z = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", X = n(L, z), se = f ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", ue = f ? "[\\uE000-\\uF8FF]" : "[]", Y = n(c, y, "[\\-\\.\\_\\~]", se);
5344
- s(c + n(c, y, "[\\+\\-\\.]") + "*"), s(s(E + "|" + n(Y, z, "[\\:]")) + "*");
5345
- var ne = s(s("25[0-5]") + "|" + s("2[0-4]" + y) + "|" + s("1" + y + y) + "|" + s("0?[1-9]" + y) + "|0?0?" + y), de = s(ne + "\\." + ne + "\\." + ne + "\\." + ne), W = s(S + "{1,4}"), oe = s(s(W + "\\:" + W) + "|" + de), me = s(s(W + "\\:") + "{6}" + oe), ae = s("\\:\\:" + s(W + "\\:") + "{5}" + oe), Xe = s(s(W) + "?\\:\\:" + s(W + "\\:") + "{4}" + oe), Me = s(s(s(W + "\\:") + "{0,1}" + W) + "?\\:\\:" + s(W + "\\:") + "{3}" + oe), Ue = s(s(s(W + "\\:") + "{0,2}" + W) + "?\\:\\:" + s(W + "\\:") + "{2}" + oe), At = s(s(s(W + "\\:") + "{0,3}" + W) + "?\\:\\:" + W + "\\:" + oe), dt = s(s(s(W + "\\:") + "{0,4}" + W) + "?\\:\\:" + oe), Ce = s(s(s(W + "\\:") + "{0,5}" + W) + "?\\:\\:" + W), Le = s(s(s(W + "\\:") + "{0,6}" + W) + "?\\:\\:"), pt = s([me, ae, Xe, Me, Ue, At, dt, Ce, Le].join("|")), Je = s(s(Y + "|" + E) + "+");
5346
- s("[vV]" + S + "+\\." + n(Y, z, "[\\:]") + "+"), s(s(E + "|" + n(Y, z)) + "*");
5347
- var ir = s(E + "|" + n(Y, z, "[\\:\\@]"));
5348
- return s(s(E + "|" + n(Y, z, "[\\@]")) + "+"), s(s(ir + "|" + n("[\\/\\?]", ue)) + "*"), {
5369
+ var c = "[A-Za-z]", y = "[0-9]", S = n(y, "[A-Fa-f]"), E = s(s("%[EFef]" + S + "%" + S + S + "%" + S + S) + "|" + s("%[89A-Fa-f]" + S + "%" + S + S) + "|" + s("%" + S + S)), L = "[\\:\\/\\?\\#\\[\\]\\@]", H = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", X = n(L, H), se = f ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", ue = f ? "[\\uE000-\\uF8FF]" : "[]", Y = n(c, y, "[\\-\\.\\_\\~]", se);
5370
+ s(c + n(c, y, "[\\+\\-\\.]") + "*"), s(s(E + "|" + n(Y, H, "[\\:]")) + "*");
5371
+ var ne = s(s("25[0-5]") + "|" + s("2[0-4]" + y) + "|" + s("1" + y + y) + "|" + s("0?[1-9]" + y) + "|0?0?" + y), de = s(ne + "\\." + ne + "\\." + ne + "\\." + ne), W = s(S + "{1,4}"), oe = s(s(W + "\\:" + W) + "|" + de), me = s(s(W + "\\:") + "{6}" + oe), ae = s("\\:\\:" + s(W + "\\:") + "{5}" + oe), Xe = s(s(W) + "?\\:\\:" + s(W + "\\:") + "{4}" + oe), Me = s(s(s(W + "\\:") + "{0,1}" + W) + "?\\:\\:" + s(W + "\\:") + "{3}" + oe), Ue = s(s(s(W + "\\:") + "{0,2}" + W) + "?\\:\\:" + s(W + "\\:") + "{2}" + oe), At = s(s(s(W + "\\:") + "{0,3}" + W) + "?\\:\\:" + W + "\\:" + oe), dt = s(s(s(W + "\\:") + "{0,4}" + W) + "?\\:\\:" + oe), Oe = s(s(s(W + "\\:") + "{0,5}" + W) + "?\\:\\:" + W), Le = s(s(s(W + "\\:") + "{0,6}" + W) + "?\\:\\:"), pt = s([me, ae, Xe, Me, Ue, At, dt, Oe, Le].join("|")), Je = s(s(Y + "|" + E) + "+");
5372
+ s("[vV]" + S + "+\\." + n(Y, H, "[\\:]") + "+"), s(s(E + "|" + n(Y, H)) + "*");
5373
+ var ir = s(E + "|" + n(Y, H, "[\\:\\@]"));
5374
+ return s(s(E + "|" + n(Y, H, "[\\@]")) + "+"), s(s(ir + "|" + n("[\\/\\?]", ue)) + "*"), {
5349
5375
  NOT_SCHEME: new RegExp(n("[^]", c, y, "[\\+\\-\\.]"), "g"),
5350
- NOT_USERINFO: new RegExp(n("[^\\%\\:]", Y, z), "g"),
5351
- NOT_HOST: new RegExp(n("[^\\%\\[\\]\\:]", Y, z), "g"),
5352
- NOT_PATH: new RegExp(n("[^\\%\\/\\:\\@]", Y, z), "g"),
5353
- NOT_PATH_NOSCHEME: new RegExp(n("[^\\%\\/\\@]", Y, z), "g"),
5354
- NOT_QUERY: new RegExp(n("[^\\%]", Y, z, "[\\:\\@\\/\\?]", ue), "g"),
5355
- NOT_FRAGMENT: new RegExp(n("[^\\%]", Y, z, "[\\:\\@\\/\\?]"), "g"),
5356
- ESCAPE: new RegExp(n("[^]", Y, z), "g"),
5376
+ NOT_USERINFO: new RegExp(n("[^\\%\\:]", Y, H), "g"),
5377
+ NOT_HOST: new RegExp(n("[^\\%\\[\\]\\:]", Y, H), "g"),
5378
+ NOT_PATH: new RegExp(n("[^\\%\\/\\:\\@]", Y, H), "g"),
5379
+ NOT_PATH_NOSCHEME: new RegExp(n("[^\\%\\/\\@]", Y, H), "g"),
5380
+ NOT_QUERY: new RegExp(n("[^\\%]", Y, H, "[\\:\\@\\/\\?]", ue), "g"),
5381
+ NOT_FRAGMENT: new RegExp(n("[^\\%]", Y, H, "[\\:\\@\\/\\?]"), "g"),
5382
+ ESCAPE: new RegExp(n("[^]", Y, H), "g"),
5357
5383
  UNRESERVED: new RegExp(Y, "g"),
5358
5384
  OTHER_CHARS: new RegExp(n("[^\\%]", Y, X), "g"),
5359
5385
  PCT_ENCODED: new RegExp(E, "g"),
@@ -5364,18 +5390,18 @@ var Qn = {}, Dn = { exports: {} };
5364
5390
  }
5365
5391
  var p = u(!1), h = u(!0), v = function() {
5366
5392
  function f(c, y) {
5367
- var S = [], E = !0, L = !1, z = void 0;
5393
+ var S = [], E = !0, L = !1, H = void 0;
5368
5394
  try {
5369
5395
  for (var X = c[Symbol.iterator](), se; !(E = (se = X.next()).done) && (S.push(se.value), !(y && S.length === y)); E = !0)
5370
5396
  ;
5371
5397
  } catch (ue) {
5372
- L = !0, z = ue;
5398
+ L = !0, H = ue;
5373
5399
  } finally {
5374
5400
  try {
5375
5401
  !E && X.return && X.return();
5376
5402
  } finally {
5377
5403
  if (L)
5378
- throw z;
5404
+ throw H;
5379
5405
  }
5380
5406
  }
5381
5407
  return S;
@@ -5394,11 +5420,11 @@ var Qn = {}, Dn = { exports: {} };
5394
5420
  return y;
5395
5421
  } else
5396
5422
  return Array.from(f);
5397
- }, w = 2147483647, k = 36, _ = 1, g = 26, R = 38, C = 700, j = 72, D = 128, b = "-", O = /^xn--/, A = /[^\0-\x7E]/, x = /[\x2E\u3002\uFF0E\uFF61]/g, K = {
5423
+ }, w = 2147483647, R = 36, _ = 1, g = 26, k = 38, O = 700, j = 72, D = 128, b = "-", C = /^xn--/, A = /[^\0-\x7E]/, x = /[\x2E\u3002\uFF0E\uFF61]/g, K = {
5398
5424
  overflow: "Overflow: input needs wider integers to process",
5399
5425
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
5400
5426
  "invalid-input": "Invalid input"
5401
- }, ce = k - _, Z = Math.floor, ke = String.fromCharCode;
5427
+ }, ce = R - _, Z = Math.floor, Re = String.fromCharCode;
5402
5428
  function he(f) {
5403
5429
  throw new RangeError(K[f]);
5404
5430
  }
@@ -5426,53 +5452,53 @@ var Qn = {}, Dn = { exports: {} };
5426
5452
  }
5427
5453
  var Qt = function(c) {
5428
5454
  return String.fromCodePoint.apply(String, T(c));
5429
- }, kt = function(c) {
5430
- return c - 48 < 10 ? c - 22 : c - 65 < 26 ? c - 65 : c - 97 < 26 ? c - 97 : k;
5455
+ }, Rt = function(c) {
5456
+ return c - 48 < 10 ? c - 22 : c - 65 < 26 ? c - 65 : c - 97 < 26 ? c - 97 : R;
5431
5457
  }, F = function(c, y) {
5432
5458
  return c + 22 + 75 * (c < 26) - ((y != 0) << 5);
5433
5459
  }, $ = function(c, y, S) {
5434
5460
  var E = 0;
5435
5461
  for (
5436
- c = S ? Z(c / C) : c >> 1, c += Z(c / y);
5462
+ c = S ? Z(c / O) : c >> 1, c += Z(c / y);
5437
5463
  /* no initialization */
5438
5464
  c > ce * g >> 1;
5439
- E += k
5465
+ E += R
5440
5466
  )
5441
5467
  c = Z(c / ce);
5442
- return Z(E + (ce + 1) * c / (c + R));
5468
+ return Z(E + (ce + 1) * c / (c + k));
5443
5469
  }, I = function(c) {
5444
- var y = [], S = c.length, E = 0, L = D, z = j, X = c.lastIndexOf(b);
5470
+ var y = [], S = c.length, E = 0, L = D, H = j, X = c.lastIndexOf(b);
5445
5471
  X < 0 && (X = 0);
5446
5472
  for (var se = 0; se < X; ++se)
5447
5473
  c.charCodeAt(se) >= 128 && he("not-basic"), y.push(c.charCodeAt(se));
5448
5474
  for (var ue = X > 0 ? X + 1 : 0; ue < S; ) {
5449
5475
  for (
5450
- var Y = E, ne = 1, de = k;
5476
+ var Y = E, ne = 1, de = R;
5451
5477
  ;
5452
5478
  /* no condition */
5453
- de += k
5479
+ de += R
5454
5480
  ) {
5455
5481
  ue >= S && he("invalid-input");
5456
- var W = kt(c.charCodeAt(ue++));
5457
- (W >= k || W > Z((w - E) / ne)) && he("overflow"), E += W * ne;
5458
- var oe = de <= z ? _ : de >= z + g ? g : de - z;
5482
+ var W = Rt(c.charCodeAt(ue++));
5483
+ (W >= R || W > Z((w - E) / ne)) && he("overflow"), E += W * ne;
5484
+ var oe = de <= H ? _ : de >= H + g ? g : de - H;
5459
5485
  if (W < oe)
5460
5486
  break;
5461
- var me = k - oe;
5487
+ var me = R - oe;
5462
5488
  ne > Z(w / me) && he("overflow"), ne *= me;
5463
5489
  }
5464
5490
  var ae = y.length + 1;
5465
- z = $(E - Y, ae, Y == 0), Z(E / ae) > w - L && he("overflow"), L += Z(E / ae), E %= ae, y.splice(E++, 0, L);
5491
+ H = $(E - Y, ae, Y == 0), Z(E / ae) > w - L && he("overflow"), L += Z(E / ae), E %= ae, y.splice(E++, 0, L);
5466
5492
  }
5467
5493
  return String.fromCodePoint.apply(String, y);
5468
5494
  }, P = function(c) {
5469
5495
  var y = [];
5470
5496
  c = Tt(c);
5471
- var S = c.length, E = D, L = 0, z = j, X = !0, se = !1, ue = void 0;
5497
+ var S = c.length, E = D, L = 0, H = j, X = !0, se = !1, ue = void 0;
5472
5498
  try {
5473
5499
  for (var Y = c[Symbol.iterator](), ne; !(X = (ne = Y.next()).done); X = !0) {
5474
5500
  var de = ne.value;
5475
- de < 128 && y.push(ke(de));
5501
+ de < 128 && y.push(Re(de));
5476
5502
  }
5477
5503
  } catch (or) {
5478
5504
  se = !0, ue = or;
@@ -5502,26 +5528,26 @@ var Qn = {}, Dn = { exports: {} };
5502
5528
  throw Me;
5503
5529
  }
5504
5530
  }
5505
- var Ce = oe + 1;
5506
- me - E > Z((w - L) / Ce) && he("overflow"), L += (me - E) * Ce, E = me;
5531
+ var Oe = oe + 1;
5532
+ me - E > Z((w - L) / Oe) && he("overflow"), L += (me - E) * Oe, E = me;
5507
5533
  var Le = !0, pt = !1, Je = void 0;
5508
5534
  try {
5509
5535
  for (var ir = c[Symbol.iterator](), Us; !(Le = (Us = ir.next()).done); Le = !0) {
5510
5536
  var Ls = Us.value;
5511
5537
  if (Ls < E && ++L > w && he("overflow"), Ls == E) {
5512
5538
  for (
5513
- var kr = L, Rr = k;
5539
+ var Rr = L, kr = R;
5514
5540
  ;
5515
5541
  /* no condition */
5516
- Rr += k
5542
+ kr += R
5517
5543
  ) {
5518
- var Cr = Rr <= z ? _ : Rr >= z + g ? g : Rr - z;
5519
- if (kr < Cr)
5544
+ var Or = kr <= H ? _ : kr >= H + g ? g : kr - H;
5545
+ if (Rr < Or)
5520
5546
  break;
5521
- var zs = kr - Cr, Hs = k - Cr;
5522
- y.push(ke(F(Cr + zs % Hs, 0))), kr = Z(zs / Hs);
5547
+ var Hs = Rr - Or, zs = R - Or;
5548
+ y.push(Re(F(Or + Hs % zs, 0))), Rr = Z(Hs / zs);
5523
5549
  }
5524
- y.push(ke(F(kr, 0))), z = $(L, Ce, oe == W), L = 0, ++oe;
5550
+ y.push(Re(F(Rr, 0))), H = $(L, Oe, oe == W), L = 0, ++oe;
5525
5551
  }
5526
5552
  }
5527
5553
  } catch (or) {
@@ -5539,7 +5565,7 @@ var Qn = {}, Dn = { exports: {} };
5539
5565
  return y.join("");
5540
5566
  }, a = function(c) {
5541
5567
  return ct(c, function(y) {
5542
- return O.test(y) ? I(y.slice(4).toLowerCase()) : y;
5568
+ return C.test(y) ? I(y.slice(4).toLowerCase()) : y;
5543
5569
  });
5544
5570
  }, m = function(c) {
5545
5571
  return ct(c, function(y) {
@@ -5586,8 +5612,8 @@ var Qn = {}, Dn = { exports: {} };
5586
5612
  y += 6;
5587
5613
  } else if (E >= 224) {
5588
5614
  if (S - y >= 9) {
5589
- var z = parseInt(f.substr(y + 4, 2), 16), X = parseInt(f.substr(y + 7, 2), 16);
5590
- c += String.fromCharCode((E & 15) << 12 | (z & 63) << 6 | X & 63);
5615
+ var H = parseInt(f.substr(y + 4, 2), 16), X = parseInt(f.substr(y + 7, 2), 16);
5616
+ c += String.fromCharCode((E & 15) << 12 | (H & 63) << 6 | X & 63);
5591
5617
  } else
5592
5618
  c += f.substr(y, 9);
5593
5619
  y += 9;
@@ -5610,20 +5636,20 @@ var Qn = {}, Dn = { exports: {} };
5610
5636
  var y = f.match(c.IPV4ADDRESS) || [], S = v(y, 2), E = S[1];
5611
5637
  return E ? E.split(".").map(le).join(".") : f;
5612
5638
  }
5613
- function Rt(f, c) {
5639
+ function kt(f, c) {
5614
5640
  var y = f.match(c.IPV6ADDRESS) || [], S = v(y, 3), E = S[1], L = S[2];
5615
5641
  if (E) {
5616
- for (var z = E.toLowerCase().split("::").reverse(), X = v(z, 2), se = X[0], ue = X[1], Y = ue ? ue.split(":").map(le) : [], ne = se.split(":").map(le), de = c.IPV4ADDRESS.test(ne[ne.length - 1]), W = de ? 7 : 8, oe = ne.length - W, me = Array(W), ae = 0; ae < W; ++ae)
5642
+ for (var H = E.toLowerCase().split("::").reverse(), X = v(H, 2), se = X[0], ue = X[1], Y = ue ? ue.split(":").map(le) : [], ne = se.split(":").map(le), de = c.IPV4ADDRESS.test(ne[ne.length - 1]), W = de ? 7 : 8, oe = ne.length - W, me = Array(W), ae = 0; ae < W; ++ae)
5617
5643
  me[ae] = Y[ae] || ne[oe + ae] || "";
5618
5644
  de && (me[W - 1] = De(me[W - 1], c));
5619
- var Xe = me.reduce(function(Ce, Le, pt) {
5645
+ var Xe = me.reduce(function(Oe, Le, pt) {
5620
5646
  if (!Le || Le === "0") {
5621
- var Je = Ce[Ce.length - 1];
5622
- Je && Je.index + Je.length === pt ? Je.length++ : Ce.push({ index: pt, length: 1 });
5647
+ var Je = Oe[Oe.length - 1];
5648
+ Je && Je.index + Je.length === pt ? Je.length++ : Oe.push({ index: pt, length: 1 });
5623
5649
  }
5624
- return Ce;
5625
- }, []), Me = Xe.sort(function(Ce, Le) {
5626
- return Le.length - Ce.length;
5650
+ return Oe;
5651
+ }, []), Me = Xe.sort(function(Oe, Le) {
5652
+ return Le.length - Oe.length;
5627
5653
  })[0], Ue = void 0;
5628
5654
  if (Me && Me.length > 1) {
5629
5655
  var At = me.slice(0, Me.index), dt = me.slice(Me.index + Me.length);
@@ -5640,14 +5666,14 @@ var Qn = {}, Dn = { exports: {} };
5640
5666
  c.reference === "suffix" && (f = (c.scheme ? c.scheme + ":" : "") + "//" + f);
5641
5667
  var E = f.match(Zt);
5642
5668
  if (E) {
5643
- Xt ? (y.scheme = E[1], y.userinfo = E[3], y.host = E[4], y.port = parseInt(E[5], 10), y.path = E[6] || "", y.query = E[7], y.fragment = E[8], isNaN(y.port) && (y.port = E[5])) : (y.scheme = E[1] || void 0, y.userinfo = f.indexOf("@") !== -1 ? E[3] : void 0, y.host = f.indexOf("//") !== -1 ? E[4] : void 0, y.port = parseInt(E[5], 10), y.path = E[6] || "", y.query = f.indexOf("?") !== -1 ? E[7] : void 0, y.fragment = f.indexOf("#") !== -1 ? E[8] : void 0, isNaN(y.port) && (y.port = f.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? E[4] : void 0)), y.host && (y.host = Rt(De(y.host, S), S)), y.scheme === void 0 && y.userinfo === void 0 && y.host === void 0 && y.port === void 0 && !y.path && y.query === void 0 ? y.reference = "same-document" : y.scheme === void 0 ? y.reference = "relative" : y.fragment === void 0 ? y.reference = "absolute" : y.reference = "uri", c.reference && c.reference !== "suffix" && c.reference !== y.reference && (y.error = y.error || "URI is not a " + c.reference + " reference.");
5669
+ Xt ? (y.scheme = E[1], y.userinfo = E[3], y.host = E[4], y.port = parseInt(E[5], 10), y.path = E[6] || "", y.query = E[7], y.fragment = E[8], isNaN(y.port) && (y.port = E[5])) : (y.scheme = E[1] || void 0, y.userinfo = f.indexOf("@") !== -1 ? E[3] : void 0, y.host = f.indexOf("//") !== -1 ? E[4] : void 0, y.port = parseInt(E[5], 10), y.path = E[6] || "", y.query = f.indexOf("?") !== -1 ? E[7] : void 0, y.fragment = f.indexOf("#") !== -1 ? E[8] : void 0, isNaN(y.port) && (y.port = f.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? E[4] : void 0)), y.host && (y.host = kt(De(y.host, S), S)), y.scheme === void 0 && y.userinfo === void 0 && y.host === void 0 && y.port === void 0 && !y.path && y.query === void 0 ? y.reference = "same-document" : y.scheme === void 0 ? y.reference = "relative" : y.fragment === void 0 ? y.reference = "absolute" : y.reference = "uri", c.reference && c.reference !== "suffix" && c.reference !== y.reference && (y.error = y.error || "URI is not a " + c.reference + " reference.");
5644
5670
  var L = q[(c.scheme || y.scheme || "").toLowerCase()];
5645
5671
  if (!c.unicodeSupport && (!L || !L.unicodeSupport)) {
5646
5672
  if (y.host && (c.domainHost || L && L.domainHost))
5647
5673
  try {
5648
5674
  y.host = N.toASCII(y.host.replace(S.PCT_ENCODED, J).toLowerCase());
5649
- } catch (z) {
5650
- y.error = y.error || "Host's domain name can not be converted to ASCII via punycode: " + z;
5675
+ } catch (H) {
5676
+ y.error = y.error || "Host's domain name can not be converted to ASCII via punycode: " + H;
5651
5677
  }
5652
5678
  Q(y, p);
5653
5679
  } else
@@ -5659,17 +5685,17 @@ var Qn = {}, Dn = { exports: {} };
5659
5685
  }
5660
5686
  function er(f, c) {
5661
5687
  var y = c.iri !== !1 ? h : p, S = [];
5662
- return f.userinfo !== void 0 && (S.push(f.userinfo), S.push("@")), f.host !== void 0 && S.push(Rt(De(String(f.host), y), y).replace(y.IPV6ADDRESS, function(E, L, z) {
5663
- return "[" + L + (z ? "%25" + z : "") + "]";
5688
+ return f.userinfo !== void 0 && (S.push(f.userinfo), S.push("@")), f.host !== void 0 && S.push(kt(De(String(f.host), y), y).replace(y.IPV6ADDRESS, function(E, L, H) {
5689
+ return "[" + L + (H ? "%25" + H : "") + "]";
5664
5690
  })), (typeof f.port == "number" || typeof f.port == "string") && (S.push(":"), S.push(String(f.port))), S.length ? S.join("") : void 0;
5665
5691
  }
5666
- var Ct = /^\.\.?\//, Ot = /^\/\.(\/|$)/, Nt = /^\/\.\.(\/|$)/, tr = /^\/?(?:.|\n)*?(?=\/|$)/;
5692
+ var Ot = /^\.\.?\//, Ct = /^\/\.(\/|$)/, Nt = /^\/\.\.(\/|$)/, tr = /^\/?(?:.|\n)*?(?=\/|$)/;
5667
5693
  function Fe(f) {
5668
5694
  for (var c = []; f.length; )
5669
- if (f.match(Ct))
5670
- f = f.replace(Ct, "");
5671
- else if (f.match(Ot))
5672
- f = f.replace(Ot, "/");
5695
+ if (f.match(Ot))
5696
+ f = f.replace(Ot, "");
5697
+ else if (f.match(Ct))
5698
+ f = f.replace(Ct, "/");
5673
5699
  else if (f.match(Nt))
5674
5700
  f = f.replace(Nt, "/"), c.pop();
5675
5701
  else if (f === "." || f === "..")
@@ -5697,8 +5723,8 @@ var Qn = {}, Dn = { exports: {} };
5697
5723
  Q(f, y), c.reference !== "suffix" && f.scheme && (S.push(f.scheme), S.push(":"));
5698
5724
  var L = er(f, c);
5699
5725
  if (L !== void 0 && (c.reference !== "suffix" && S.push("//"), S.push(L), f.path && f.path.charAt(0) !== "/" && S.push("/")), f.path !== void 0) {
5700
- var z = f.path;
5701
- !c.absolutePath && (!E || !E.absolutePath) && (z = Fe(z)), L === void 0 && (z = z.replace(/^\/\//, "/%2F")), S.push(z);
5726
+ var H = f.path;
5727
+ !c.absolutePath && (!E || !E.absolutePath) && (H = Fe(H)), L === void 0 && (H = H.replace(/^\/\//, "/%2F")), S.push(H);
5702
5728
  }
5703
5729
  return f.query !== void 0 && (S.push("?"), S.push(f.query)), f.fragment !== void 0 && (S.push("#"), S.push(f.fragment)), S.join("");
5704
5730
  }
@@ -5719,7 +5745,7 @@ var Qn = {}, Dn = { exports: {} };
5719
5745
  function Tr(f, c) {
5720
5746
  return f && f.toString().replace(!c || !c.iri ? p.ESCAPE : h.ESCAPE, M);
5721
5747
  }
5722
- function Re(f, c) {
5748
+ function ke(f, c) {
5723
5749
  return f && f.toString().replace(!c || !c.iri ? p.PCT_ENCODED : h.PCT_ENCODED, J);
5724
5750
  }
5725
5751
  var ut = {
@@ -5750,8 +5776,8 @@ var Qn = {}, Dn = { exports: {} };
5750
5776
  },
5751
5777
  serialize: function(c, y) {
5752
5778
  if ((c.port === (js(c) ? 443 : 80) || c.port === "") && (c.port = void 0), typeof c.secure == "boolean" && (c.scheme = c.secure ? "wss" : "ws", c.secure = void 0), c.resourceName) {
5753
- var S = c.resourceName.split("?"), E = v(S, 2), L = E[0], z = E[1];
5754
- c.path = L && L !== "/" ? L : void 0, c.query = z, c.resourceName = void 0;
5779
+ var S = c.resourceName.split("?"), E = v(S, 2), L = E[0], H = E[1];
5780
+ c.path = L && L !== "/" ? L : void 0, c.query = H, c.resourceName = void 0;
5755
5781
  }
5756
5782
  return c.fragment = void 0, c;
5757
5783
  }
@@ -5770,7 +5796,7 @@ var Qn = {}, Dn = { exports: {} };
5770
5796
  parse: function(c, y) {
5771
5797
  var S = c, E = S.to = S.path ? S.path.split(",") : [];
5772
5798
  if (S.path = void 0, S.query) {
5773
- for (var L = !1, z = {}, X = S.query.split("&"), se = 0, ue = X.length; se < ue; ++se) {
5799
+ for (var L = !1, H = {}, X = S.query.split("&"), se = 0, ue = X.length; se < ue; ++se) {
5774
5800
  var Y = X[se].split("=");
5775
5801
  switch (Y[0]) {
5776
5802
  case "to":
@@ -5778,26 +5804,26 @@ var Qn = {}, Dn = { exports: {} };
5778
5804
  E.push(ne[de]);
5779
5805
  break;
5780
5806
  case "subject":
5781
- S.subject = Re(Y[1], y);
5807
+ S.subject = ke(Y[1], y);
5782
5808
  break;
5783
5809
  case "body":
5784
- S.body = Re(Y[1], y);
5810
+ S.body = ke(Y[1], y);
5785
5811
  break;
5786
5812
  default:
5787
- L = !0, z[Re(Y[0], y)] = Re(Y[1], y);
5813
+ L = !0, H[ke(Y[0], y)] = ke(Y[1], y);
5788
5814
  break;
5789
5815
  }
5790
5816
  }
5791
- L && (S.headers = z);
5817
+ L && (S.headers = H);
5792
5818
  }
5793
5819
  S.query = void 0;
5794
5820
  for (var oe = 0, me = E.length; oe < me; ++oe) {
5795
5821
  var ae = E[oe].split("@");
5796
- if (ae[0] = Re(ae[0]), y.unicodeSupport)
5797
- ae[1] = Re(ae[1], y).toLowerCase();
5822
+ if (ae[0] = ke(ae[0]), y.unicodeSupport)
5823
+ ae[1] = ke(ae[1], y).toLowerCase();
5798
5824
  else
5799
5825
  try {
5800
- ae[1] = N.toASCII(Re(ae[1], y).toLowerCase());
5826
+ ae[1] = N.toASCII(ke(ae[1], y).toLowerCase());
5801
5827
  } catch (Xe) {
5802
5828
  S.error = S.error || "Email address's domain name can not be converted to ASCII via punycode: " + Xe;
5803
5829
  }
@@ -5808,10 +5834,10 @@ var Qn = {}, Dn = { exports: {} };
5808
5834
  serialize: function(c, y) {
5809
5835
  var S = c, E = l(c.to);
5810
5836
  if (E) {
5811
- for (var L = 0, z = E.length; L < z; ++L) {
5837
+ for (var L = 0, H = E.length; L < H; ++L) {
5812
5838
  var X = String(E[L]), se = X.lastIndexOf("@"), ue = X.slice(0, se).replace(It, bn).replace(It, o).replace(Zo, M), Y = X.slice(se + 1);
5813
5839
  try {
5814
- Y = y.iri ? N.toUnicode(Y) : N.toASCII(Re(Y, y).toLowerCase());
5840
+ Y = y.iri ? N.toUnicode(Y) : N.toASCII(ke(Y, y).toLowerCase());
5815
5841
  } catch (oe) {
5816
5842
  S.error = S.error || "Email address's domain name can not be converted to " + (y.iri ? "Unicode" : "ASCII") + " via punycode: " + oe;
5817
5843
  }
@@ -5831,15 +5857,15 @@ var Qn = {}, Dn = { exports: {} };
5831
5857
  parse: function(c, y) {
5832
5858
  var S = c.path && c.path.match(ea), E = c;
5833
5859
  if (S) {
5834
- var L = y.scheme || E.scheme || "urn", z = S[1].toLowerCase(), X = S[2], se = L + ":" + (y.nid || z), ue = q[se];
5835
- E.nid = z, E.nss = X, E.path = void 0, ue && (E = ue.parse(E, y));
5860
+ var L = y.scheme || E.scheme || "urn", H = S[1].toLowerCase(), X = S[2], se = L + ":" + (y.nid || H), ue = q[se];
5861
+ E.nid = H, E.nss = X, E.path = void 0, ue && (E = ue.parse(E, y));
5836
5862
  } else
5837
5863
  E.error = E.error || "URN can not be parsed.";
5838
5864
  return E;
5839
5865
  },
5840
5866
  serialize: function(c, y) {
5841
- var S = y.scheme || c.scheme || "urn", E = c.nid, L = S + ":" + (y.nid || E), z = q[L];
5842
- z && (c = z.serialize(c, y));
5867
+ var S = y.scheme || c.scheme || "urn", E = c.nid, L = S + ":" + (y.nid || E), H = q[L];
5868
+ H && (c = H.serialize(c, y));
5843
5869
  var X = c, se = c.nss;
5844
5870
  return X.path = (E || y.nid) + ":" + se, X;
5845
5871
  }
@@ -5854,14 +5880,14 @@ var Qn = {}, Dn = { exports: {} };
5854
5880
  return S.nss = (c.uuid || "").toLowerCase(), S;
5855
5881
  }
5856
5882
  };
5857
- q[ut.scheme] = ut, q[Ns.scheme] = Ns, q[sr.scheme] = sr, q[Is.scheme] = Is, q[Fs.scheme] = Fs, q[qs.scheme] = qs, q[Ms.scheme] = Ms, r.SCHEMES = q, r.pctEncChar = M, r.pctDecChars = J, r.parse = Te, r.removeDotSegments = Fe, r.serialize = Pe, r.resolveComponents = jt, r.resolve = rr, r.normalize = lt, r.equal = nr, r.escapeComponent = Tr, r.unescapeComponent = Re, Object.defineProperty(r, "__esModule", { value: !0 });
5883
+ q[ut.scheme] = ut, q[Ns.scheme] = Ns, q[sr.scheme] = sr, q[Is.scheme] = Is, q[Fs.scheme] = Fs, q[qs.scheme] = qs, q[Ms.scheme] = Ms, r.SCHEMES = q, r.pctEncChar = M, r.pctDecChars = J, r.parse = Te, r.removeDotSegments = Fe, r.serialize = Pe, r.resolveComponents = jt, r.resolve = rr, r.normalize = lt, r.equal = nr, r.escapeComponent = Tr, r.unescapeComponent = ke, Object.defineProperty(r, "__esModule", { value: !0 });
5858
5884
  });
5859
5885
  })(Dn, Dn.exports);
5860
5886
  var nu = Dn.exports;
5861
5887
  Object.defineProperty(Qn, "__esModule", { value: !0 });
5862
- const ko = nu;
5863
- ko.code = 'require("ajv/dist/runtime/uri").default';
5864
- Qn.default = ko;
5888
+ const Ro = nu;
5889
+ Ro.code = 'require("ajv/dist/runtime/uri").default';
5890
+ Qn.default = Ro;
5865
5891
  (function(e) {
5866
5892
  Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
5867
5893
  var t = Ae;
@@ -5884,7 +5910,7 @@ Qn.default = ko;
5884
5910
  } });
5885
5911
  const n = Pr, s = Er, i = Pt, o = Se, l = G, d = $e, u = br, p = re, h = ru, v = Qn, T = (F, $) => new RegExp(F, $);
5886
5912
  T.code = "new RegExp";
5887
- const w = ["removeAdditional", "useDefaults", "coerceTypes"], k = /* @__PURE__ */ new Set([
5913
+ const w = ["removeAdditional", "useDefaults", "coerceTypes"], R = /* @__PURE__ */ new Set([
5888
5914
  "validate",
5889
5915
  "serialize",
5890
5916
  "parse",
@@ -5918,22 +5944,22 @@ Qn.default = ko;
5918
5944
  ignoreKeywordsWithRef: "",
5919
5945
  jsPropertySyntax: "",
5920
5946
  unicode: '"minLength"/"maxLength" account for unicode characters by default.'
5921
- }, R = 200;
5922
- function C(F) {
5923
- var $, I, P, a, m, N, q, M, J, Q, le, De, Rt, Zt, Xt, Te, er, Ct, Ot, Nt, tr, Fe, Pe, jt, rr;
5924
- const lt = F.strict, nr = ($ = F.code) === null || $ === void 0 ? void 0 : $.optimize, Tr = nr === !0 || nr === void 0 ? 1 : nr || 0, Re = (P = (I = F.code) === null || I === void 0 ? void 0 : I.regExp) !== null && P !== void 0 ? P : T, ut = (a = F.uriResolver) !== null && a !== void 0 ? a : v.default;
5947
+ }, k = 200;
5948
+ function O(F) {
5949
+ var $, I, P, a, m, N, q, M, J, Q, le, De, kt, Zt, Xt, Te, er, Ot, Ct, Nt, tr, Fe, Pe, jt, rr;
5950
+ const lt = F.strict, nr = ($ = F.code) === null || $ === void 0 ? void 0 : $.optimize, Tr = nr === !0 || nr === void 0 ? 1 : nr || 0, ke = (P = (I = F.code) === null || I === void 0 ? void 0 : I.regExp) !== null && P !== void 0 ? P : T, ut = (a = F.uriResolver) !== null && a !== void 0 ? a : v.default;
5925
5951
  return {
5926
5952
  strictSchema: (N = (m = F.strictSchema) !== null && m !== void 0 ? m : lt) !== null && N !== void 0 ? N : !0,
5927
5953
  strictNumbers: (M = (q = F.strictNumbers) !== null && q !== void 0 ? q : lt) !== null && M !== void 0 ? M : !0,
5928
5954
  strictTypes: (Q = (J = F.strictTypes) !== null && J !== void 0 ? J : lt) !== null && Q !== void 0 ? Q : "log",
5929
5955
  strictTuples: (De = (le = F.strictTuples) !== null && le !== void 0 ? le : lt) !== null && De !== void 0 ? De : "log",
5930
- strictRequired: (Zt = (Rt = F.strictRequired) !== null && Rt !== void 0 ? Rt : lt) !== null && Zt !== void 0 ? Zt : !1,
5931
- code: F.code ? { ...F.code, optimize: Tr, regExp: Re } : { optimize: Tr, regExp: Re },
5932
- loopRequired: (Xt = F.loopRequired) !== null && Xt !== void 0 ? Xt : R,
5933
- loopEnum: (Te = F.loopEnum) !== null && Te !== void 0 ? Te : R,
5956
+ strictRequired: (Zt = (kt = F.strictRequired) !== null && kt !== void 0 ? kt : lt) !== null && Zt !== void 0 ? Zt : !1,
5957
+ code: F.code ? { ...F.code, optimize: Tr, regExp: ke } : { optimize: Tr, regExp: ke },
5958
+ loopRequired: (Xt = F.loopRequired) !== null && Xt !== void 0 ? Xt : k,
5959
+ loopEnum: (Te = F.loopEnum) !== null && Te !== void 0 ? Te : k,
5934
5960
  meta: (er = F.meta) !== null && er !== void 0 ? er : !0,
5935
- messages: (Ct = F.messages) !== null && Ct !== void 0 ? Ct : !0,
5936
- inlineRefs: (Ot = F.inlineRefs) !== null && Ot !== void 0 ? Ot : !0,
5961
+ messages: (Ot = F.messages) !== null && Ot !== void 0 ? Ot : !0,
5962
+ inlineRefs: (Ct = F.inlineRefs) !== null && Ct !== void 0 ? Ct : !0,
5937
5963
  schemaId: (Nt = F.schemaId) !== null && Nt !== void 0 ? Nt : "$id",
5938
5964
  addUsedSchema: (tr = F.addUsedSchema) !== null && tr !== void 0 ? tr : !0,
5939
5965
  validateSchema: (Fe = F.validateSchema) !== null && Fe !== void 0 ? Fe : !0,
@@ -5945,11 +5971,11 @@ Qn.default = ko;
5945
5971
  }
5946
5972
  class j {
5947
5973
  constructor($ = {}) {
5948
- this.schemas = {}, this.refs = {}, this.formats = {}, this._compilations = /* @__PURE__ */ new Set(), this._loading = {}, this._cache = /* @__PURE__ */ new Map(), $ = this.opts = { ...$, ...C($) };
5974
+ this.schemas = {}, this.refs = {}, this.formats = {}, this._compilations = /* @__PURE__ */ new Set(), this._loading = {}, this._cache = /* @__PURE__ */ new Map(), $ = this.opts = { ...$, ...O($) };
5949
5975
  const { es5: I, lines: P } = this.opts.code;
5950
- this.scope = new l.ValueScope({ scope: {}, prefixes: k, es5: I, lines: P }), this.logger = Z($.logger);
5976
+ this.scope = new l.ValueScope({ scope: {}, prefixes: R, es5: I, lines: P }), this.logger = Z($.logger);
5951
5977
  const a = $.validateFormats;
5952
- $.validateFormats = !1, this.RULES = (0, i.getRules)(), D.call(this, _, $, "NOT SUPPORTED"), D.call(this, g, $, "DEPRECATED", "warn"), this._metaOpts = K.call(this), $.formats && A.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), $.keywords && x.call(this, $.keywords), typeof $.meta == "object" && this.addMetaSchema($.meta), O.call(this), $.validateFormats = a;
5978
+ $.validateFormats = !1, this.RULES = (0, i.getRules)(), D.call(this, _, $, "NOT SUPPORTED"), D.call(this, g, $, "DEPRECATED", "warn"), this._metaOpts = K.call(this), $.formats && A.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), $.keywords && x.call(this, $.keywords), typeof $.meta == "object" && this.addMetaSchema($.meta), C.call(this), $.validateFormats = a;
5953
5979
  }
5954
5980
  _addVocabularies() {
5955
5981
  this.addKeyword("$async");
@@ -6154,7 +6180,7 @@ Qn.default = ko;
6154
6180
  if (typeof M != "object")
6155
6181
  continue;
6156
6182
  const { $data: J } = M.definition, Q = N[q];
6157
- J && Q && (N[q] = kt(Q));
6183
+ J && Q && (N[q] = Rt(Q));
6158
6184
  }
6159
6185
  }
6160
6186
  return $;
@@ -6212,7 +6238,7 @@ Qn.default = ko;
6212
6238
  function b(F) {
6213
6239
  return F = (0, d.normalizeId)(F), this.schemas[F] || this.refs[F];
6214
6240
  }
6215
- function O() {
6241
+ function C() {
6216
6242
  const F = this.opts.schemas;
6217
6243
  if (F)
6218
6244
  if (Array.isArray(F))
@@ -6257,13 +6283,13 @@ Qn.default = ko;
6257
6283
  return F;
6258
6284
  throw new Error("logger must implement log, warn and error methods");
6259
6285
  }
6260
- const ke = /^[a-z_$][a-z0-9_$:-]*$/i;
6286
+ const Re = /^[a-z_$][a-z0-9_$:-]*$/i;
6261
6287
  function he(F, $) {
6262
6288
  const { RULES: I } = this;
6263
6289
  if ((0, p.eachItem)(F, (P) => {
6264
6290
  if (I.keywords[P])
6265
6291
  throw new Error(`Keyword ${P} is already defined`);
6266
- if (!ke.test(P))
6292
+ if (!Re.test(P))
6267
6293
  throw new Error(`Keyword ${P} has invalid name`);
6268
6294
  }), !!$ && $.$data && !("code" in $ || "validate" in $))
6269
6295
  throw new Error('$data keyword must have "code" or "validate" function');
@@ -6293,12 +6319,12 @@ Qn.default = ko;
6293
6319
  }
6294
6320
  function Tt(F) {
6295
6321
  let { metaSchema: $ } = F;
6296
- $ !== void 0 && (F.$data && this.opts.$data && ($ = kt($)), F.validateSchema = this.compile($, !0));
6322
+ $ !== void 0 && (F.$data && this.opts.$data && ($ = Rt($)), F.validateSchema = this.compile($, !0));
6297
6323
  }
6298
6324
  const Qt = {
6299
6325
  $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"
6300
6326
  };
6301
- function kt(F) {
6327
+ function Rt(F) {
6302
6328
  return { anyOf: [F, Qt] };
6303
6329
  }
6304
6330
  })(to);
@@ -6314,7 +6340,7 @@ es.default = su;
6314
6340
  var Et = {};
6315
6341
  Object.defineProperty(Et, "__esModule", { value: !0 });
6316
6342
  Et.callRef = Et.getValidate = void 0;
6317
- const iu = Er, ci = B, Ee = G, qt = Ke, li = Se, Or = re, ou = {
6343
+ const iu = Er, ci = B, Ee = G, qt = Ke, li = Se, Cr = re, ou = {
6318
6344
  keyword: "$ref",
6319
6345
  schemaType: "string",
6320
6346
  code(e) {
@@ -6334,26 +6360,26 @@ const iu = Er, ci = B, Ee = G, qt = Ke, li = Se, Or = re, ou = {
6334
6360
  return Ur(e, (0, Ee._)`${w}.validate`, u, u.$async);
6335
6361
  }
6336
6362
  function v(w) {
6337
- const k = Ro(e, w);
6338
- Ur(e, k, w, w.$async);
6363
+ const R = ko(e, w);
6364
+ Ur(e, R, w, w.$async);
6339
6365
  }
6340
6366
  function T(w) {
6341
- const k = t.scopeValue("schema", l.code.source === !0 ? { ref: w, code: (0, Ee.stringify)(w) } : { ref: w }), _ = t.name("valid"), g = e.subschema({
6367
+ const R = t.scopeValue("schema", l.code.source === !0 ? { ref: w, code: (0, Ee.stringify)(w) } : { ref: w }), _ = t.name("valid"), g = e.subschema({
6342
6368
  schema: w,
6343
6369
  dataTypes: [],
6344
6370
  schemaPath: Ee.nil,
6345
- topSchemaRef: k,
6371
+ topSchemaRef: R,
6346
6372
  errSchemaPath: r
6347
6373
  }, _);
6348
6374
  e.mergeEvaluated(g), e.ok(_);
6349
6375
  }
6350
6376
  }
6351
6377
  };
6352
- function Ro(e, t) {
6378
+ function ko(e, t) {
6353
6379
  const { gen: r } = e;
6354
6380
  return t.validate ? r.scopeValue("validate", { ref: t.validate }) : (0, Ee._)`${r.scopeValue("wrapper", { ref: t })}.validate`;
6355
6381
  }
6356
- Et.getValidate = Ro;
6382
+ Et.getValidate = ko;
6357
6383
  function Ur(e, t, r, n) {
6358
6384
  const { gen: s, it: i } = e, { allErrors: o, schemaEnv: l, opts: d } = i, u = d.passContext ? qt.default.this : Ee.nil;
6359
6385
  n ? p() : h();
@@ -6363,35 +6389,35 @@ function Ur(e, t, r, n) {
6363
6389
  const w = s.let("valid");
6364
6390
  s.try(() => {
6365
6391
  s.code((0, Ee._)`await ${(0, ci.callValidateCode)(e, t, u)}`), T(t), o || s.assign(w, !0);
6366
- }, (k) => {
6367
- s.if((0, Ee._)`!(${k} instanceof ${i.ValidationError})`, () => s.throw(k)), v(k), o || s.assign(w, !1);
6392
+ }, (R) => {
6393
+ s.if((0, Ee._)`!(${R} instanceof ${i.ValidationError})`, () => s.throw(R)), v(R), o || s.assign(w, !1);
6368
6394
  }), e.ok(w);
6369
6395
  }
6370
6396
  function h() {
6371
6397
  e.result((0, ci.callValidateCode)(e, t, u), () => T(t), () => v(t));
6372
6398
  }
6373
6399
  function v(w) {
6374
- const k = (0, Ee._)`${w}.errors`;
6375
- s.assign(qt.default.vErrors, (0, Ee._)`${qt.default.vErrors} === null ? ${k} : ${qt.default.vErrors}.concat(${k})`), s.assign(qt.default.errors, (0, Ee._)`${qt.default.vErrors}.length`);
6400
+ const R = (0, Ee._)`${w}.errors`;
6401
+ s.assign(qt.default.vErrors, (0, Ee._)`${qt.default.vErrors} === null ? ${R} : ${qt.default.vErrors}.concat(${R})`), s.assign(qt.default.errors, (0, Ee._)`${qt.default.vErrors}.length`);
6376
6402
  }
6377
6403
  function T(w) {
6378
- var k;
6404
+ var R;
6379
6405
  if (!i.opts.unevaluated)
6380
6406
  return;
6381
- const _ = (k = r == null ? void 0 : r.validate) === null || k === void 0 ? void 0 : k.evaluated;
6407
+ const _ = (R = r == null ? void 0 : r.validate) === null || R === void 0 ? void 0 : R.evaluated;
6382
6408
  if (i.props !== !0)
6383
6409
  if (_ && !_.dynamicProps)
6384
- _.props !== void 0 && (i.props = Or.mergeEvaluated.props(s, _.props, i.props));
6410
+ _.props !== void 0 && (i.props = Cr.mergeEvaluated.props(s, _.props, i.props));
6385
6411
  else {
6386
6412
  const g = s.var("props", (0, Ee._)`${w}.evaluated.props`);
6387
- i.props = Or.mergeEvaluated.props(s, g, i.props, Ee.Name);
6413
+ i.props = Cr.mergeEvaluated.props(s, g, i.props, Ee.Name);
6388
6414
  }
6389
6415
  if (i.items !== !0)
6390
6416
  if (_ && !_.dynamicItems)
6391
- _.items !== void 0 && (i.items = Or.mergeEvaluated.items(s, _.items, i.items));
6417
+ _.items !== void 0 && (i.items = Cr.mergeEvaluated.items(s, _.items, i.items));
6392
6418
  else {
6393
6419
  const g = s.var("items", (0, Ee._)`${w}.evaluated.items`);
6394
- i.items = Or.mergeEvaluated.items(s, g, i.items, Ee.Name);
6420
+ i.items = Cr.mergeEvaluated.items(s, g, i.items, Ee.Name);
6395
6421
  }
6396
6422
  }
6397
6423
  }
@@ -6450,15 +6476,15 @@ const pr = G, pu = {
6450
6476
  ns.default = fu;
6451
6477
  var ss = {}, is = {};
6452
6478
  Object.defineProperty(is, "__esModule", { value: !0 });
6453
- function Co(e) {
6479
+ function Oo(e) {
6454
6480
  const t = e.length;
6455
6481
  let r = 0, n = 0, s;
6456
6482
  for (; n < t; )
6457
6483
  r++, s = e.charCodeAt(n++), s >= 55296 && s <= 56319 && n < t && (s = e.charCodeAt(n), (s & 64512) === 56320 && n++);
6458
6484
  return r;
6459
6485
  }
6460
- is.default = Co;
6461
- Co.code = 'require("ajv/dist/runtime/ucs2length").default';
6486
+ is.default = Oo;
6487
+ Oo.code = 'require("ajv/dist/runtime/ucs2length").default';
6462
6488
  Object.defineProperty(ss, "__esModule", { value: !0 });
6463
6489
  const mt = G, hu = re, mu = is, yu = {
6464
6490
  message({ keyword: e, schemaCode: t }) {
@@ -6533,9 +6559,9 @@ const cr = B, hr = G, Pu = re, Eu = {
6533
6559
  const d = r.length >= l.loopRequired;
6534
6560
  if (o.allErrors ? u() : p(), l.strictRequired) {
6535
6561
  const T = e.parentSchema.properties, { definedProperties: w } = e.it;
6536
- for (const k of r)
6537
- if ((T == null ? void 0 : T[k]) === void 0 && !w.has(k)) {
6538
- const _ = o.schemaEnv.baseId + o.errSchemaPath, g = `required property "${k}" is not defined at "${_}" (strictRequired)`;
6562
+ for (const R of r)
6563
+ if ((T == null ? void 0 : T[R]) === void 0 && !w.has(R)) {
6564
+ const _ = o.schemaEnv.baseId + o.errSchemaPath, g = `required property "${R}" is not defined at "${_}" (strictRequired)`;
6539
6565
  (0, Pu.checkStrictMode)(o, g, o.opts.strictRequired);
6540
6566
  }
6541
6567
  }
@@ -6577,7 +6603,7 @@ const mr = G, Tu = {
6577
6603
  return (0, mr.str)`must NOT have ${r} than ${t} items`;
6578
6604
  },
6579
6605
  params: ({ schemaCode: e }) => (0, mr._)`{limit: ${e}}`
6580
- }, ku = {
6606
+ }, Ru = {
6581
6607
  keyword: ["maxItems", "minItems"],
6582
6608
  type: "array",
6583
6609
  schemaType: "number",
@@ -6588,14 +6614,14 @@ const mr = G, Tu = {
6588
6614
  e.fail$data((0, mr._)`${r}.length ${s} ${n}`);
6589
6615
  }
6590
6616
  };
6591
- ls.default = ku;
6617
+ ls.default = Ru;
6592
6618
  var us = {}, Sr = {};
6593
6619
  Object.defineProperty(Sr, "__esModule", { value: !0 });
6594
- const Oo = lo;
6595
- Oo.code = 'require("ajv/dist/runtime/equal").default';
6596
- Sr.default = Oo;
6620
+ const Co = lo;
6621
+ Co.code = 'require("ajv/dist/runtime/equal").default';
6622
+ Sr.default = Co;
6597
6623
  Object.defineProperty(us, "__esModule", { value: !0 });
6598
- const Rn = br, ge = G, Ru = re, Cu = Sr, Ou = {
6624
+ const kn = br, ge = G, ku = re, Ou = Sr, Cu = {
6599
6625
  message: ({ params: { i: e, j: t } }) => (0, ge.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,
6600
6626
  params: ({ params: { i: e, j: t } }) => (0, ge._)`{i: ${e}, j: ${t}}`
6601
6627
  }, Nu = {
@@ -6603,31 +6629,31 @@ const Rn = br, ge = G, Ru = re, Cu = Sr, Ou = {
6603
6629
  type: "array",
6604
6630
  schemaType: "boolean",
6605
6631
  $data: !0,
6606
- error: Ou,
6632
+ error: Cu,
6607
6633
  code(e) {
6608
6634
  const { gen: t, data: r, $data: n, schema: s, parentSchema: i, schemaCode: o, it: l } = e;
6609
6635
  if (!n && !s)
6610
6636
  return;
6611
- const d = t.let("valid"), u = i.items ? (0, Rn.getSchemaTypes)(i.items) : [];
6637
+ const d = t.let("valid"), u = i.items ? (0, kn.getSchemaTypes)(i.items) : [];
6612
6638
  e.block$data(d, p, (0, ge._)`${o} === false`), e.ok(d);
6613
6639
  function p() {
6614
- const w = t.let("i", (0, ge._)`${r}.length`), k = t.let("j");
6615
- e.setParams({ i: w, j: k }), t.assign(d, !0), t.if((0, ge._)`${w} > 1`, () => (h() ? v : T)(w, k));
6640
+ const w = t.let("i", (0, ge._)`${r}.length`), R = t.let("j");
6641
+ e.setParams({ i: w, j: R }), t.assign(d, !0), t.if((0, ge._)`${w} > 1`, () => (h() ? v : T)(w, R));
6616
6642
  }
6617
6643
  function h() {
6618
6644
  return u.length > 0 && !u.some((w) => w === "object" || w === "array");
6619
6645
  }
6620
- function v(w, k) {
6621
- const _ = t.name("item"), g = (0, Rn.checkDataTypes)(u, _, l.opts.strictNumbers, Rn.DataType.Wrong), R = t.const("indices", (0, ge._)`{}`);
6646
+ function v(w, R) {
6647
+ const _ = t.name("item"), g = (0, kn.checkDataTypes)(u, _, l.opts.strictNumbers, kn.DataType.Wrong), k = t.const("indices", (0, ge._)`{}`);
6622
6648
  t.for((0, ge._)`;${w}--;`, () => {
6623
- t.let(_, (0, ge._)`${r}[${w}]`), t.if(g, (0, ge._)`continue`), u.length > 1 && t.if((0, ge._)`typeof ${_} == "string"`, (0, ge._)`${_} += "_"`), t.if((0, ge._)`typeof ${R}[${_}] == "number"`, () => {
6624
- t.assign(k, (0, ge._)`${R}[${_}]`), e.error(), t.assign(d, !1).break();
6625
- }).code((0, ge._)`${R}[${_}] = ${w}`);
6649
+ t.let(_, (0, ge._)`${r}[${w}]`), t.if(g, (0, ge._)`continue`), u.length > 1 && t.if((0, ge._)`typeof ${_} == "string"`, (0, ge._)`${_} += "_"`), t.if((0, ge._)`typeof ${k}[${_}] == "number"`, () => {
6650
+ t.assign(R, (0, ge._)`${k}[${_}]`), e.error(), t.assign(d, !1).break();
6651
+ }).code((0, ge._)`${k}[${_}] = ${w}`);
6626
6652
  });
6627
6653
  }
6628
- function T(w, k) {
6629
- const _ = (0, Ru.useFunc)(t, Cu.default), g = t.name("outer");
6630
- t.label(g).for((0, ge._)`;${w}--;`, () => t.for((0, ge._)`${k} = ${w}; ${k}--;`, () => t.if((0, ge._)`${_}(${r}[${w}], ${r}[${k}])`, () => {
6654
+ function T(w, R) {
6655
+ const _ = (0, ku.useFunc)(t, Ou.default), g = t.name("outer");
6656
+ t.label(g).for((0, ge._)`;${w}--;`, () => t.for((0, ge._)`${R} = ${w}; ${R}--;`, () => t.if((0, ge._)`${_}(${r}[${w}], ${r}[${R}])`, () => {
6631
6657
  e.error(), t.assign(d, !1).break(g);
6632
6658
  })));
6633
6659
  }
@@ -6673,26 +6699,26 @@ const lr = G, Fu = re, qu = Sr, Mu = {
6673
6699
  if (!Array.isArray(s))
6674
6700
  throw new Error("ajv implementation error");
6675
6701
  const T = t.const("vSchema", i);
6676
- p = (0, lr.or)(...s.map((w, k) => v(T, k)));
6702
+ p = (0, lr.or)(...s.map((w, R) => v(T, R)));
6677
6703
  }
6678
6704
  e.pass(p);
6679
6705
  function h() {
6680
6706
  t.assign(p, !1), t.forOf("v", i, (T) => t.if((0, lr._)`${u()}(${r}, ${T})`, () => t.assign(p, !0).break()));
6681
6707
  }
6682
6708
  function v(T, w) {
6683
- const k = s[w];
6684
- return typeof k == "object" && k !== null ? (0, lr._)`${u()}(${r}, ${T}[${w}])` : (0, lr._)`${r} === ${k}`;
6709
+ const R = s[w];
6710
+ return typeof R == "object" && R !== null ? (0, lr._)`${u()}(${r}, ${T}[${w}])` : (0, lr._)`${r} === ${R}`;
6685
6711
  }
6686
6712
  }
6687
6713
  };
6688
6714
  ps.default = Uu;
6689
6715
  Object.defineProperty(ts, "__esModule", { value: !0 });
6690
- const Lu = rs, zu = ns, Hu = ss, Vu = os, xu = as, Wu = cs, Bu = ls, Gu = us, Ku = ds, Ju = ps, Yu = [
6716
+ const Lu = rs, Hu = ns, zu = ss, Vu = os, xu = as, Wu = cs, Bu = ls, Gu = us, Ku = ds, Ju = ps, Yu = [
6691
6717
  // number
6692
6718
  Lu.default,
6693
- zu.default,
6694
- // string
6695
6719
  Hu.default,
6720
+ // string
6721
+ zu.default,
6696
6722
  Vu.default,
6697
6723
  // object
6698
6724
  xu.default,
@@ -6773,8 +6799,8 @@ function jo(e, t, r = e.schema) {
6773
6799
  }, d)), e.ok(d));
6774
6800
  });
6775
6801
  function p(h) {
6776
- const { opts: v, errSchemaPath: T } = l, w = r.length, k = w === h.minItems && (w === h.maxItems || h[t] === !1);
6777
- if (v.strictTuples && !k) {
6802
+ const { opts: v, errSchemaPath: T } = l, w = r.length, R = w === h.minItems && (w === h.maxItems || h[t] === !1);
6803
+ if (v.strictTuples && !R) {
6778
6804
  const _ = `"${o}" is ${w}-tuple, but minItems or maxItems/${t} are not specified or different at path "${T}"`;
6779
6805
  (0, Lr.checkStrictMode)(l, _, v.strictTuples);
6780
6806
  }
@@ -6810,9 +6836,9 @@ const di = G, nd = re, sd = B, id = Jt, od = {
6810
6836
  ms.default = ad;
6811
6837
  var ys = {};
6812
6838
  Object.defineProperty(ys, "__esModule", { value: !0 });
6813
- const Oe = G, Nr = re, cd = {
6814
- message: ({ params: { min: e, max: t } }) => t === void 0 ? (0, Oe.str)`must contain at least ${e} valid item(s)` : (0, Oe.str)`must contain at least ${e} and no more than ${t} valid item(s)`,
6815
- params: ({ params: { min: e, max: t } }) => t === void 0 ? (0, Oe._)`{minContains: ${e}}` : (0, Oe._)`{minContains: ${e}, maxContains: ${t}}`
6839
+ const Ce = G, Nr = re, cd = {
6840
+ message: ({ params: { min: e, max: t } }) => t === void 0 ? (0, Ce.str)`must contain at least ${e} valid item(s)` : (0, Ce.str)`must contain at least ${e} and no more than ${t} valid item(s)`,
6841
+ params: ({ params: { min: e, max: t } }) => t === void 0 ? (0, Ce._)`{minContains: ${e}}` : (0, Ce._)`{minContains: ${e}, maxContains: ${t}}`
6816
6842
  }, ld = {
6817
6843
  keyword: "contains",
6818
6844
  type: "array",
@@ -6825,7 +6851,7 @@ const Oe = G, Nr = re, cd = {
6825
6851
  let o, l;
6826
6852
  const { minContains: d, maxContains: u } = n;
6827
6853
  i.opts.next ? (o = d === void 0 ? 1 : d, l = u) : o = 1;
6828
- const p = t.const("len", (0, Oe._)`${s}.length`);
6854
+ const p = t.const("len", (0, Ce._)`${s}.length`);
6829
6855
  if (e.setParams({ min: o, max: l }), l === void 0 && o === 0) {
6830
6856
  (0, Nr.checkStrictMode)(i, '"minContains" == 0 without "maxContains": "contains" keyword ignored');
6831
6857
  return;
@@ -6835,29 +6861,29 @@ const Oe = G, Nr = re, cd = {
6835
6861
  return;
6836
6862
  }
6837
6863
  if ((0, Nr.alwaysValidSchema)(i, r)) {
6838
- let k = (0, Oe._)`${p} >= ${o}`;
6839
- l !== void 0 && (k = (0, Oe._)`${k} && ${p} <= ${l}`), e.pass(k);
6864
+ let R = (0, Ce._)`${p} >= ${o}`;
6865
+ l !== void 0 && (R = (0, Ce._)`${R} && ${p} <= ${l}`), e.pass(R);
6840
6866
  return;
6841
6867
  }
6842
6868
  i.items = !0;
6843
6869
  const h = t.name("valid");
6844
- l === void 0 && o === 1 ? T(h, () => t.if(h, () => t.break())) : o === 0 ? (t.let(h, !0), l !== void 0 && t.if((0, Oe._)`${s}.length > 0`, v)) : (t.let(h, !1), v()), e.result(h, () => e.reset());
6870
+ l === void 0 && o === 1 ? T(h, () => t.if(h, () => t.break())) : o === 0 ? (t.let(h, !0), l !== void 0 && t.if((0, Ce._)`${s}.length > 0`, v)) : (t.let(h, !1), v()), e.result(h, () => e.reset());
6845
6871
  function v() {
6846
- const k = t.name("_valid"), _ = t.let("count", 0);
6847
- T(k, () => t.if(k, () => w(_)));
6872
+ const R = t.name("_valid"), _ = t.let("count", 0);
6873
+ T(R, () => t.if(R, () => w(_)));
6848
6874
  }
6849
- function T(k, _) {
6875
+ function T(R, _) {
6850
6876
  t.forRange("i", 0, p, (g) => {
6851
6877
  e.subschema({
6852
6878
  keyword: "contains",
6853
6879
  dataProp: g,
6854
6880
  dataPropType: Nr.Type.Num,
6855
6881
  compositeRule: !0
6856
- }, k), _();
6882
+ }, R), _();
6857
6883
  });
6858
6884
  }
6859
- function w(k) {
6860
- t.code((0, Oe._)`${k}++`), l === void 0 ? t.if((0, Oe._)`${k} >= ${o}`, () => t.assign(h, !0).break()) : (t.if((0, Oe._)`${k} > ${l}`, () => t.assign(h, !1).break()), o === 1 ? t.assign(h, !0) : t.if((0, Oe._)`${k} >= ${o}`, () => t.assign(h, !0)));
6885
+ function w(R) {
6886
+ t.code((0, Ce._)`${R}++`), l === void 0 ? t.if((0, Ce._)`${R} >= ${o}`, () => t.assign(h, !0).break()) : (t.if((0, Ce._)`${R} > ${l}`, () => t.assign(h, !1).break()), o === 1 ? t.assign(h, !0) : t.if((0, Ce._)`${R} >= ${o}`, () => t.assign(h, !0)));
6861
6887
  }
6862
6888
  }
6863
6889
  };
@@ -6903,28 +6929,28 @@ var Io = {};
6903
6929
  return;
6904
6930
  const T = p.let("missing");
6905
6931
  for (const w in u) {
6906
- const k = u[w];
6907
- if (k.length === 0)
6932
+ const R = u[w];
6933
+ if (R.length === 0)
6908
6934
  continue;
6909
6935
  const _ = (0, n.propertyInData)(p, h, w, v.opts.ownProperties);
6910
6936
  d.setParams({
6911
6937
  property: w,
6912
- depsCount: k.length,
6913
- deps: k.join(", ")
6938
+ depsCount: R.length,
6939
+ deps: R.join(", ")
6914
6940
  }), v.allErrors ? p.if(_, () => {
6915
- for (const g of k)
6941
+ for (const g of R)
6916
6942
  (0, n.checkReportMissingProp)(d, g);
6917
- }) : (p.if((0, t._)`${_} && (${(0, n.checkMissingProp)(d, k, T)})`), (0, n.reportMissingProp)(d, T), p.else());
6943
+ }) : (p.if((0, t._)`${_} && (${(0, n.checkMissingProp)(d, R, T)})`), (0, n.reportMissingProp)(d, T), p.else());
6918
6944
  }
6919
6945
  }
6920
6946
  e.validatePropertyDeps = o;
6921
6947
  function l(d, u = d.schema) {
6922
6948
  const { gen: p, data: h, keyword: v, it: T } = d, w = p.name("valid");
6923
- for (const k in u)
6924
- (0, r.alwaysValidSchema)(T, u[k]) || (p.if(
6925
- (0, n.propertyInData)(p, h, k, T.opts.ownProperties),
6949
+ for (const R in u)
6950
+ (0, r.alwaysValidSchema)(T, u[R]) || (p.if(
6951
+ (0, n.propertyInData)(p, h, R, T.opts.ownProperties),
6926
6952
  () => {
6927
- const _ = d.subschema({ keyword: v, schemaProp: k }, w);
6953
+ const _ = d.subschema({ keyword: v, schemaProp: R }, w);
6928
6954
  d.mergeValidEvaluated(_, w);
6929
6955
  },
6930
6956
  () => p.var(w, !0)
@@ -6991,11 +7017,11 @@ const jr = B, je = G, fd = Ke, Ir = re, hd = {
6991
7017
  function v(_) {
6992
7018
  let g;
6993
7019
  if (u.length > 8) {
6994
- const R = (0, Ir.schemaRefOrVal)(o, n.properties, "properties");
6995
- g = (0, jr.isOwnProperty)(t, R, _);
7020
+ const k = (0, Ir.schemaRefOrVal)(o, n.properties, "properties");
7021
+ g = (0, jr.isOwnProperty)(t, k, _);
6996
7022
  } else
6997
- u.length ? g = (0, je.or)(...u.map((R) => (0, je._)`${_} === ${R}`)) : g = je.nil;
6998
- return p.length && (g = (0, je.or)(g, ...p.map((R) => (0, je._)`${(0, jr.usePattern)(e, R)}.test(${_})`))), (0, je.not)(g);
7023
+ u.length ? g = (0, je.or)(...u.map((k) => (0, je._)`${_} === ${k}`)) : g = je.nil;
7024
+ return p.length && (g = (0, je.or)(g, ...p.map((k) => (0, je._)`${(0, jr.usePattern)(e, k)}.test(${_})`))), (0, je.not)(g);
6999
7025
  }
7000
7026
  function T(_) {
7001
7027
  t.code((0, je._)`delete ${s}[${_}]`);
@@ -7011,29 +7037,29 @@ const jr = B, je = G, fd = Ke, Ir = re, hd = {
7011
7037
  }
7012
7038
  if (typeof r == "object" && !(0, Ir.alwaysValidSchema)(o, r)) {
7013
7039
  const g = t.name("valid");
7014
- d.removeAdditional === "failing" ? (k(_, g, !1), t.if((0, je.not)(g), () => {
7040
+ d.removeAdditional === "failing" ? (R(_, g, !1), t.if((0, je.not)(g), () => {
7015
7041
  e.reset(), T(_);
7016
- })) : (k(_, g), l || t.if((0, je.not)(g), () => t.break()));
7042
+ })) : (R(_, g), l || t.if((0, je.not)(g), () => t.break()));
7017
7043
  }
7018
7044
  }
7019
- function k(_, g, R) {
7020
- const C = {
7045
+ function R(_, g, k) {
7046
+ const O = {
7021
7047
  keyword: "additionalProperties",
7022
7048
  dataProp: _,
7023
7049
  dataPropType: Ir.Type.Str
7024
7050
  };
7025
- R === !1 && Object.assign(C, {
7051
+ k === !1 && Object.assign(O, {
7026
7052
  compositeRule: !0,
7027
7053
  createErrors: !1,
7028
7054
  allErrors: !1
7029
- }), e.subschema(C, g);
7055
+ }), e.subschema(O, g);
7030
7056
  }
7031
7057
  }
7032
7058
  };
7033
7059
  vn.default = md;
7034
7060
  var $s = {};
7035
7061
  Object.defineProperty($s, "__esModule", { value: !0 });
7036
- const yd = Ae, pi = B, Cn = re, fi = vn, gd = {
7062
+ const yd = Ae, pi = B, On = re, fi = vn, gd = {
7037
7063
  keyword: "properties",
7038
7064
  type: "object",
7039
7065
  schemaType: "object",
@@ -7043,8 +7069,8 @@ const yd = Ae, pi = B, Cn = re, fi = vn, gd = {
7043
7069
  const o = (0, pi.allSchemaProperties)(r);
7044
7070
  for (const h of o)
7045
7071
  i.definedProperties.add(h);
7046
- i.opts.unevaluated && o.length && i.props !== !0 && (i.props = Cn.mergeEvaluated.props(t, (0, Cn.toHash)(o), i.props));
7047
- const l = o.filter((h) => !(0, Cn.alwaysValidSchema)(i, r[h]));
7072
+ i.opts.unevaluated && o.length && i.props !== !0 && (i.props = On.mergeEvaluated.props(t, (0, On.toHash)(o), i.props));
7073
+ const l = o.filter((h) => !(0, On.alwaysValidSchema)(i, r[h]));
7048
7074
  if (l.length === 0)
7049
7075
  return;
7050
7076
  const d = t.name("valid");
@@ -7070,7 +7096,7 @@ const hi = B, Ar = G, mi = re, yi = re, $d = {
7070
7096
  type: "object",
7071
7097
  schemaType: "object",
7072
7098
  code(e) {
7073
- const { gen: t, schema: r, data: n, parentSchema: s, it: i } = e, { opts: o } = i, l = (0, hi.allSchemaProperties)(r), d = l.filter((k) => (0, mi.alwaysValidSchema)(i, r[k]));
7099
+ const { gen: t, schema: r, data: n, parentSchema: s, it: i } = e, { opts: o } = i, l = (0, hi.allSchemaProperties)(r), d = l.filter((R) => (0, mi.alwaysValidSchema)(i, r[R]));
7074
7100
  if (l.length === 0 || d.length === l.length && (!i.opts.unevaluated || i.props === !0))
7075
7101
  return;
7076
7102
  const u = o.strictSchema && !o.allowMatchingProperties && s.properties, p = t.name("valid");
@@ -7078,20 +7104,20 @@ const hi = B, Ar = G, mi = re, yi = re, $d = {
7078
7104
  const { props: h } = i;
7079
7105
  v();
7080
7106
  function v() {
7081
- for (const k of l)
7082
- u && T(k), i.allErrors ? w(k) : (t.var(p, !0), w(k), t.if(p));
7107
+ for (const R of l)
7108
+ u && T(R), i.allErrors ? w(R) : (t.var(p, !0), w(R), t.if(p));
7083
7109
  }
7084
- function T(k) {
7110
+ function T(R) {
7085
7111
  for (const _ in u)
7086
- new RegExp(k).test(_) && (0, mi.checkStrictMode)(i, `property ${_} matches pattern ${k} (use allowMatchingProperties)`);
7112
+ new RegExp(R).test(_) && (0, mi.checkStrictMode)(i, `property ${_} matches pattern ${R} (use allowMatchingProperties)`);
7087
7113
  }
7088
- function w(k) {
7114
+ function w(R) {
7089
7115
  t.forIn("key", n, (_) => {
7090
- t.if((0, Ar._)`${(0, hi.usePattern)(e, k)}.test(${_})`, () => {
7091
- const g = d.includes(k);
7116
+ t.if((0, Ar._)`${(0, hi.usePattern)(e, R)}.test(${_})`, () => {
7117
+ const g = d.includes(R);
7092
7118
  g || e.subschema({
7093
7119
  keyword: "patternProperties",
7094
- schemaProp: k,
7120
+ schemaProp: R,
7095
7121
  dataProp: _,
7096
7122
  dataPropType: yi.Type.Str
7097
7123
  }, p), i.opts.unevaluated && h !== !0 ? t.assign((0, Ar._)`${h}[${_}]`, !0) : !g && !i.allErrors && t.if((0, Ar.not)(p), () => t.break());
@@ -7136,9 +7162,9 @@ const vd = B, bd = {
7136
7162
  vs.default = bd;
7137
7163
  var bs = {};
7138
7164
  Object.defineProperty(bs, "__esModule", { value: !0 });
7139
- const zr = G, Pd = re, Ed = {
7165
+ const Hr = G, Pd = re, Ed = {
7140
7166
  message: "must match exactly one schema in oneOf",
7141
- params: ({ params: e }) => (0, zr._)`{passingSchemas: ${e.passing}}`
7167
+ params: ({ params: e }) => (0, Hr._)`{passingSchemas: ${e.passing}}`
7142
7168
  }, Sd = {
7143
7169
  keyword: "oneOf",
7144
7170
  schemaType: "array",
@@ -7159,8 +7185,8 @@ const zr = G, Pd = re, Ed = {
7159
7185
  keyword: "oneOf",
7160
7186
  schemaProp: h,
7161
7187
  compositeRule: !0
7162
- }, d), h > 0 && t.if((0, zr._)`${d} && ${o}`).assign(o, !1).assign(l, (0, zr._)`[${l}, ${h}]`).else(), t.if(d, () => {
7163
- t.assign(o, !0), t.assign(l, h), v && e.mergeEvaluated(v, zr.Name);
7188
+ }, d), h > 0 && t.if((0, Hr._)`${d} && ${o}`).assign(o, !1).assign(l, (0, Hr._)`[${l}, ${h}]`).else(), t.if(d, () => {
7189
+ t.assign(o, !0), t.assign(l, h), v && e.mergeEvaluated(v, Hr.Name);
7164
7190
  });
7165
7191
  });
7166
7192
  }
@@ -7169,7 +7195,7 @@ const zr = G, Pd = re, Ed = {
7169
7195
  bs.default = Sd;
7170
7196
  var Ps = {};
7171
7197
  Object.defineProperty(Ps, "__esModule", { value: !0 });
7172
- const Td = re, kd = {
7198
+ const Td = re, Rd = {
7173
7199
  keyword: "allOf",
7174
7200
  schemaType: "array",
7175
7201
  code(e) {
@@ -7185,17 +7211,17 @@ const Td = re, kd = {
7185
7211
  });
7186
7212
  }
7187
7213
  };
7188
- Ps.default = kd;
7214
+ Ps.default = Rd;
7189
7215
  var Es = {};
7190
7216
  Object.defineProperty(Es, "__esModule", { value: !0 });
7191
- const Jr = G, Do = re, Rd = {
7217
+ const Jr = G, Do = re, kd = {
7192
7218
  message: ({ params: e }) => (0, Jr.str)`must match "${e.ifClause}" schema`,
7193
7219
  params: ({ params: e }) => (0, Jr._)`{failingKeyword: ${e.ifClause}}`
7194
- }, Cd = {
7220
+ }, Od = {
7195
7221
  keyword: "if",
7196
7222
  schemaType: ["object", "boolean"],
7197
7223
  trackErrors: !0,
7198
- error: Rd,
7224
+ error: kd,
7199
7225
  code(e) {
7200
7226
  const { gen: t, parentSchema: r, it: n } = e;
7201
7227
  r.then === void 0 && r.else === void 0 && (0, Do.checkStrictMode)(n, '"if" without "then" and "else" is ignored');
@@ -7230,23 +7256,23 @@ function gi(e, t) {
7230
7256
  const r = e.schema[t];
7231
7257
  return r !== void 0 && !(0, Do.alwaysValidSchema)(e, r);
7232
7258
  }
7233
- Es.default = Cd;
7259
+ Es.default = Od;
7234
7260
  var Ss = {};
7235
7261
  Object.defineProperty(Ss, "__esModule", { value: !0 });
7236
- const Od = re, Nd = {
7262
+ const Cd = re, Nd = {
7237
7263
  keyword: ["then", "else"],
7238
7264
  schemaType: ["object", "boolean"],
7239
7265
  code({ keyword: e, parentSchema: t, it: r }) {
7240
- t.if === void 0 && (0, Od.checkStrictMode)(r, `"${e}" without "if" is ignored`);
7266
+ t.if === void 0 && (0, Cd.checkStrictMode)(r, `"${e}" without "if" is ignored`);
7241
7267
  }
7242
7268
  };
7243
7269
  Ss.default = Nd;
7244
7270
  Object.defineProperty(fs, "__esModule", { value: !0 });
7245
- const jd = Jt, Id = hs, Ad = Yt, Dd = ms, Fd = ys, qd = Io, Md = gs, Ud = vn, Ld = $s, zd = _s, Hd = ws, Vd = vs, xd = bs, Wd = Ps, Bd = Es, Gd = Ss;
7271
+ const jd = Jt, Id = hs, Ad = Yt, Dd = ms, Fd = ys, qd = Io, Md = gs, Ud = vn, Ld = $s, Hd = _s, zd = ws, Vd = vs, xd = bs, Wd = Ps, Bd = Es, Gd = Ss;
7246
7272
  function Kd(e = !1) {
7247
7273
  const t = [
7248
7274
  // any
7249
- Hd.default,
7275
+ zd.default,
7250
7276
  Vd.default,
7251
7277
  xd.default,
7252
7278
  Wd.default,
@@ -7257,13 +7283,13 @@ function Kd(e = !1) {
7257
7283
  Ud.default,
7258
7284
  qd.default,
7259
7285
  Ld.default,
7260
- zd.default
7286
+ Hd.default
7261
7287
  ];
7262
7288
  return e ? t.push(Id.default, Dd.default) : t.push(jd.default, Ad.default), t.push(Fd.default), t;
7263
7289
  }
7264
7290
  fs.default = Kd;
7265
- var Ts = {}, ks = {};
7266
- Object.defineProperty(ks, "__esModule", { value: !0 });
7291
+ var Ts = {}, Rs = {};
7292
+ Object.defineProperty(Rs, "__esModule", { value: !0 });
7267
7293
  const fe = G, Jd = {
7268
7294
  message: ({ schemaCode: e }) => (0, fe.str)`must match format "${e}"`,
7269
7295
  params: ({ schemaCode: e }) => (0, fe._)`{format: ${e}}`
@@ -7282,27 +7308,27 @@ const fe = G, Jd = {
7282
7308
  const w = r.scopeValue("formats", {
7283
7309
  ref: h.formats,
7284
7310
  code: d.code.formats
7285
- }), k = r.const("fDef", (0, fe._)`${w}[${o}]`), _ = r.let("fType"), g = r.let("format");
7286
- r.if((0, fe._)`typeof ${k} == "object" && !(${k} instanceof RegExp)`, () => r.assign(_, (0, fe._)`${k}.type || "string"`).assign(g, (0, fe._)`${k}.validate`), () => r.assign(_, (0, fe._)`"string"`).assign(g, k)), e.fail$data((0, fe.or)(R(), C()));
7287
- function R() {
7311
+ }), R = r.const("fDef", (0, fe._)`${w}[${o}]`), _ = r.let("fType"), g = r.let("format");
7312
+ r.if((0, fe._)`typeof ${R} == "object" && !(${R} instanceof RegExp)`, () => r.assign(_, (0, fe._)`${R}.type || "string"`).assign(g, (0, fe._)`${R}.validate`), () => r.assign(_, (0, fe._)`"string"`).assign(g, R)), e.fail$data((0, fe.or)(k(), O()));
7313
+ function k() {
7288
7314
  return d.strictSchema === !1 ? fe.nil : (0, fe._)`${o} && !${g}`;
7289
7315
  }
7290
- function C() {
7291
- const j = p.$async ? (0, fe._)`(${k}.async ? await ${g}(${n}) : ${g}(${n}))` : (0, fe._)`${g}(${n})`, D = (0, fe._)`(typeof ${g} == "function" ? ${j} : ${g}.test(${n}))`;
7316
+ function O() {
7317
+ const j = p.$async ? (0, fe._)`(${R}.async ? await ${g}(${n}) : ${g}(${n}))` : (0, fe._)`${g}(${n})`, D = (0, fe._)`(typeof ${g} == "function" ? ${j} : ${g}.test(${n}))`;
7292
7318
  return (0, fe._)`${g} && ${g} !== true && ${_} === ${t} && !${D}`;
7293
7319
  }
7294
7320
  }
7295
7321
  function T() {
7296
7322
  const w = h.formats[i];
7297
7323
  if (!w) {
7298
- R();
7324
+ k();
7299
7325
  return;
7300
7326
  }
7301
7327
  if (w === !0)
7302
7328
  return;
7303
- const [k, _, g] = C(w);
7304
- k === t && e.pass(j());
7305
- function R() {
7329
+ const [R, _, g] = O(w);
7330
+ R === t && e.pass(j());
7331
+ function k() {
7306
7332
  if (d.strictSchema === !1) {
7307
7333
  h.logger.warn(D());
7308
7334
  return;
@@ -7312,9 +7338,9 @@ const fe = G, Jd = {
7312
7338
  return `unknown format "${i}" ignored in schema at path "${u}"`;
7313
7339
  }
7314
7340
  }
7315
- function C(D) {
7316
- const b = D instanceof RegExp ? (0, fe.regexpCode)(D) : d.code.formats ? (0, fe._)`${d.code.formats}${(0, fe.getProperty)(i)}` : void 0, O = r.scopeValue("formats", { key: i, ref: D, code: b });
7317
- return typeof D == "object" && !(D instanceof RegExp) ? [D.type || "string", D.validate, (0, fe._)`${O}.validate`] : ["string", D, O];
7341
+ function O(D) {
7342
+ const b = D instanceof RegExp ? (0, fe.regexpCode)(D) : d.code.formats ? (0, fe._)`${d.code.formats}${(0, fe.getProperty)(i)}` : void 0, C = r.scopeValue("formats", { key: i, ref: D, code: b });
7343
+ return typeof D == "object" && !(D instanceof RegExp) ? [D.type || "string", D.validate, (0, fe._)`${C}.validate`] : ["string", D, C];
7318
7344
  }
7319
7345
  function j() {
7320
7346
  if (typeof w == "object" && !(w instanceof RegExp) && w.async) {
@@ -7327,9 +7353,9 @@ const fe = G, Jd = {
7327
7353
  }
7328
7354
  }
7329
7355
  };
7330
- ks.default = Yd;
7356
+ Rs.default = Yd;
7331
7357
  Object.defineProperty(Ts, "__esModule", { value: !0 });
7332
- const Qd = ks, Zd = [Qd.default];
7358
+ const Qd = Rs, Zd = [Qd.default];
7333
7359
  Ts.default = Zd;
7334
7360
  var Kt = {};
7335
7361
  Object.defineProperty(Kt, "__esModule", { value: !0 });
@@ -7358,13 +7384,13 @@ const Xd = Xn, ep = ts, tp = fs, rp = Ts, $i = Kt, np = [
7358
7384
  $i.contentVocabulary
7359
7385
  ];
7360
7386
  Zn.default = np;
7361
- var Rs = {}, Fo = {};
7387
+ var ks = {}, Fo = {};
7362
7388
  (function(e) {
7363
7389
  Object.defineProperty(e, "__esModule", { value: !0 }), e.DiscrError = void 0, function(t) {
7364
7390
  t.Tag = "tag", t.Mapping = "mapping";
7365
7391
  }(e.DiscrError || (e.DiscrError = {}));
7366
7392
  })(Fo);
7367
- Object.defineProperty(Rs, "__esModule", { value: !0 });
7393
+ Object.defineProperty(ks, "__esModule", { value: !0 });
7368
7394
  const Mt = G, Mn = Fo, _i = Se, sp = re, ip = {
7369
7395
  message: ({ params: { discrError: e, tagName: t } }) => e === Mn.DiscrError.Tag ? `tag "${t}" must be string` : `value of tag "${t}" must be in oneOf`,
7370
7396
  params: ({ params: { discrError: e, tag: t, tagName: r } }) => (0, Mt._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`
@@ -7394,12 +7420,12 @@ const Mt = G, Mn = Fo, _i = Se, sp = re, ip = {
7394
7420
  t.else(), e.error(!1, { discrError: Mn.DiscrError.Mapping, tag: u, tagName: l }), t.endIf();
7395
7421
  }
7396
7422
  function h(T) {
7397
- const w = t.name("valid"), k = e.subschema({ keyword: "oneOf", schemaProp: T }, w);
7398
- return e.mergeEvaluated(k, Mt.Name), w;
7423
+ const w = t.name("valid"), R = e.subschema({ keyword: "oneOf", schemaProp: T }, w);
7424
+ return e.mergeEvaluated(R, Mt.Name), w;
7399
7425
  }
7400
7426
  function v() {
7401
7427
  var T;
7402
- const w = {}, k = g(s);
7428
+ const w = {}, R = g(s);
7403
7429
  let _ = !0;
7404
7430
  for (let j = 0; j < o.length; j++) {
7405
7431
  let D = o[j];
@@ -7407,7 +7433,7 @@ const Mt = G, Mn = Fo, _i = Se, sp = re, ip = {
7407
7433
  const b = (T = D == null ? void 0 : D.properties) === null || T === void 0 ? void 0 : T[l];
7408
7434
  if (typeof b != "object")
7409
7435
  throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${l}"`);
7410
- _ = _ && (k || g(D)), R(b, j);
7436
+ _ = _ && (R || g(D)), k(b, j);
7411
7437
  }
7412
7438
  if (!_)
7413
7439
  throw new Error(`discriminator: "${l}" must be required`);
@@ -7415,16 +7441,16 @@ const Mt = G, Mn = Fo, _i = Se, sp = re, ip = {
7415
7441
  function g({ required: j }) {
7416
7442
  return Array.isArray(j) && j.includes(l);
7417
7443
  }
7418
- function R(j, D) {
7444
+ function k(j, D) {
7419
7445
  if (j.const)
7420
- C(j.const, D);
7446
+ O(j.const, D);
7421
7447
  else if (j.enum)
7422
7448
  for (const b of j.enum)
7423
- C(b, D);
7449
+ O(b, D);
7424
7450
  else
7425
7451
  throw new Error(`discriminator: "properties/${l}" must have "const" or "enum"`);
7426
7452
  }
7427
- function C(j, D) {
7453
+ function O(j, D) {
7428
7454
  if (typeof j != "string" || j in w)
7429
7455
  throw new Error(`discriminator: "${l}" values must be unique strings`);
7430
7456
  w[j] = D;
@@ -7432,7 +7458,7 @@ const Mt = G, Mn = Fo, _i = Se, sp = re, ip = {
7432
7458
  }
7433
7459
  }
7434
7460
  };
7435
- Rs.default = op;
7461
+ ks.default = op;
7436
7462
  const ap = "http://json-schema.org/draft-07/schema#", cp = "http://json-schema.org/draft-07/schema#", lp = "Core schema meta-schema", up = {
7437
7463
  schemaArray: {
7438
7464
  type: "array",
@@ -7676,7 +7702,7 @@ const ap = "http://json-schema.org/draft-07/schema#", cp = "http://json-schema.o
7676
7702
  };
7677
7703
  (function(e, t) {
7678
7704
  Object.defineProperty(t, "__esModule", { value: !0 }), t.MissingRefError = t.ValidationError = t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = void 0;
7679
- const r = to, n = Zn, s = Rs, i = fp, o = ["/properties"], l = "http://json-schema.org/draft-07/schema";
7705
+ const r = to, n = Zn, s = ks, i = fp, o = ["/properties"], l = "http://json-schema.org/draft-07/schema";
7680
7706
  class d extends r.default {
7681
7707
  _addVocabularies() {
7682
7708
  super._addVocabularies(), n.default.forEach((w) => this.addVocabulary(w)), this.opts.discriminator && this.addKeyword(s.default);
@@ -9244,8 +9270,8 @@ function wp(e, {
9244
9270
  for (const w of T)
9245
9271
  w.setPlayground(v), w.isAsync && w.resolve();
9246
9272
  for (const { run: T, step: w } of d) {
9247
- const k = await T(v);
9248
- n(k, w);
9273
+ const R = await T(v);
9274
+ n(R, w);
9249
9275
  }
9250
9276
  } finally {
9251
9277
  try {
@@ -9312,7 +9338,7 @@ function Tp(e, {
9312
9338
  try {
9313
9339
  return s.fillSlowly(), await Ma[e.step](
9314
9340
  h,
9315
- await kp(i),
9341
+ await Rp(i),
9316
9342
  {
9317
9343
  tracker: s,
9318
9344
  initialCaption: (v = e.progress) == null ? void 0 : v.caption
@@ -9336,7 +9362,7 @@ function wi(e) {
9336
9362
  }
9337
9363
  return t;
9338
9364
  }
9339
- async function kp(e) {
9365
+ async function Rp(e) {
9340
9366
  const t = {};
9341
9367
  for (const r in e) {
9342
9368
  const n = e[r];
@@ -9344,7 +9370,7 @@ async function kp(e) {
9344
9370
  }
9345
9371
  return t;
9346
9372
  }
9347
- async function Rp(e, t) {
9373
+ async function kp(e, t) {
9348
9374
  await e.run(t);
9349
9375
  }
9350
9376
  function Kp() {
@@ -9354,17 +9380,17 @@ function Kp() {
9354
9380
  * Copyright 2019 Google LLC
9355
9381
  * SPDX-License-Identifier: Apache-2.0
9356
9382
  */
9357
- const qo = Symbol("Comlink.proxy"), Cp = Symbol("Comlink.endpoint"), Op = Symbol("Comlink.releaseProxy"), On = Symbol("Comlink.finalizer"), Hr = Symbol("Comlink.thrown"), Mo = (e) => typeof e == "object" && e !== null || typeof e == "function", Np = {
9383
+ const qo = Symbol("Comlink.proxy"), Op = Symbol("Comlink.endpoint"), Cp = Symbol("Comlink.releaseProxy"), Cn = Symbol("Comlink.finalizer"), zr = Symbol("Comlink.thrown"), Mo = (e) => typeof e == "object" && e !== null || typeof e == "function", Np = {
9358
9384
  canHandle: (e) => Mo(e) && e[qo],
9359
9385
  serialize(e) {
9360
9386
  const { port1: t, port2: r } = new MessageChannel();
9361
- return Cs(e, t), [r, [r]];
9387
+ return Os(e, t), [r, [r]];
9362
9388
  },
9363
9389
  deserialize(e) {
9364
- return e.start(), Os(e);
9390
+ return e.start(), Cs(e);
9365
9391
  }
9366
9392
  }, jp = {
9367
- canHandle: (e) => Mo(e) && Hr in e,
9393
+ canHandle: (e) => Mo(e) && zr in e,
9368
9394
  serialize({ value: e }) {
9369
9395
  let t;
9370
9396
  return e instanceof Error ? t = {
@@ -9389,7 +9415,7 @@ function Ip(e, t) {
9389
9415
  return !0;
9390
9416
  return !1;
9391
9417
  }
9392
- function Cs(e, t = globalThis, r = ["*"]) {
9418
+ function Os(e, t = globalThis, r = ["*"]) {
9393
9419
  t.addEventListener("message", function n(s) {
9394
9420
  if (!s || !s.data)
9395
9421
  return;
@@ -9414,13 +9440,13 @@ function Cs(e, t = globalThis, r = ["*"]) {
9414
9440
  case "CONSTRUCT":
9415
9441
  {
9416
9442
  const v = new h(...d);
9417
- u = Ho(v);
9443
+ u = zo(v);
9418
9444
  }
9419
9445
  break;
9420
9446
  case "ENDPOINT":
9421
9447
  {
9422
9448
  const { port1: v, port2: T } = new MessageChannel();
9423
- Cs(e, T), u = Mp(v, [v]);
9449
+ Os(e, T), u = Mp(v, [v]);
9424
9450
  }
9425
9451
  break;
9426
9452
  case "RELEASE":
@@ -9430,15 +9456,15 @@ function Cs(e, t = globalThis, r = ["*"]) {
9430
9456
  return;
9431
9457
  }
9432
9458
  } catch (p) {
9433
- u = { value: p, [Hr]: 0 };
9459
+ u = { value: p, [zr]: 0 };
9434
9460
  }
9435
- Promise.resolve(u).catch((p) => ({ value: p, [Hr]: 0 })).then((p) => {
9461
+ Promise.resolve(u).catch((p) => ({ value: p, [zr]: 0 })).then((p) => {
9436
9462
  const [h, v] = Zr(p);
9437
- t.postMessage(Object.assign(Object.assign({}, h), { id: i }), v), o === "RELEASE" && (t.removeEventListener("message", n), Uo(t), On in e && typeof e[On] == "function" && e[On]());
9463
+ t.postMessage(Object.assign(Object.assign({}, h), { id: i }), v), o === "RELEASE" && (t.removeEventListener("message", n), Uo(t), Cn in e && typeof e[Cn] == "function" && e[Cn]());
9438
9464
  }).catch((p) => {
9439
9465
  const [h, v] = Zr({
9440
9466
  value: new TypeError("Unserializable return value"),
9441
- [Hr]: 0
9467
+ [zr]: 0
9442
9468
  });
9443
9469
  t.postMessage(Object.assign(Object.assign({}, h), { id: i }), v);
9444
9470
  });
@@ -9450,7 +9476,7 @@ function Ap(e) {
9450
9476
  function Uo(e) {
9451
9477
  Ap(e) && e.close();
9452
9478
  }
9453
- function Os(e, t) {
9479
+ function Cs(e, t) {
9454
9480
  return Un(e, [], t);
9455
9481
  }
9456
9482
  function Fr(e) {
@@ -9480,7 +9506,7 @@ function Un(e, t = [], r = function() {
9480
9506
  let n = !1;
9481
9507
  const s = new Proxy(r, {
9482
9508
  get(i, o) {
9483
- if (Fr(n), o === Op)
9509
+ if (Fr(n), o === Cp)
9484
9510
  return () => {
9485
9511
  Fp(s), Lo(e), n = !0;
9486
9512
  };
@@ -9507,7 +9533,7 @@ function Un(e, t = [], r = function() {
9507
9533
  apply(i, o, l) {
9508
9534
  Fr(n);
9509
9535
  const d = t[t.length - 1];
9510
- if (d === Cp)
9536
+ if (d === Op)
9511
9537
  return Ut(e, {
9512
9538
  type: "ENDPOINT"
9513
9539
  }).then(gt);
@@ -9539,11 +9565,11 @@ function vi(e) {
9539
9565
  const t = e.map(Zr);
9540
9566
  return [t.map((r) => r[0]), qp(t.map((r) => r[1]))];
9541
9567
  }
9542
- const zo = /* @__PURE__ */ new WeakMap();
9568
+ const Ho = /* @__PURE__ */ new WeakMap();
9543
9569
  function Mp(e, t) {
9544
- return zo.set(e, t), e;
9570
+ return Ho.set(e, t), e;
9545
9571
  }
9546
- function Ho(e) {
9572
+ function zo(e) {
9547
9573
  return Object.assign(e, { [qo]: !0 });
9548
9574
  }
9549
9575
  function Up(e, t = globalThis, r = "*") {
@@ -9571,7 +9597,7 @@ function Zr(e) {
9571
9597
  type: "RAW",
9572
9598
  value: e
9573
9599
  },
9574
- zo.get(e) || []
9600
+ Ho.get(e) || []
9575
9601
  ];
9576
9602
  }
9577
9603
  function gt(e) {
@@ -9594,26 +9620,26 @@ function Lp() {
9594
9620
  return new Array(4).fill(0).map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16)).join("-");
9595
9621
  }
9596
9622
  function Vo(e) {
9597
- Hp();
9598
- const t = e instanceof Worker ? e : Up(e), r = Os(t), n = xo(r);
9623
+ zp();
9624
+ const t = e instanceof Worker ? e : Up(e), r = Cs(t), n = xo(r);
9599
9625
  return new Proxy(n, {
9600
9626
  get: (s, i) => i === "isConnected" ? async () => {
9601
9627
  for (let o = 0; o < 10; o++)
9602
9628
  try {
9603
- await zp(r.isConnected(), 200);
9629
+ await Hp(r.isConnected(), 200);
9604
9630
  break;
9605
9631
  } catch {
9606
9632
  }
9607
9633
  } : r[i]
9608
9634
  });
9609
9635
  }
9610
- async function zp(e, t) {
9636
+ async function Hp(e, t) {
9611
9637
  return new Promise((r, n) => {
9612
9638
  setTimeout(n, t), e.then(r);
9613
9639
  });
9614
9640
  }
9615
9641
  let bi = !1;
9616
- function Hp() {
9642
+ function zp() {
9617
9643
  bi || (bi = !0, yr.set("EVENT", {
9618
9644
  canHandle: (e) => e instanceof CustomEvent,
9619
9645
  serialize: (e) => [
@@ -9628,10 +9654,10 @@ function Hp() {
9628
9654
  serialize(e) {
9629
9655
  console.debug("[Comlink][Performance] Proxying a function");
9630
9656
  const { port1: t, port2: r } = new MessageChannel();
9631
- return Cs(e, t), [r, [r]];
9657
+ return Os(e, t), [r, [r]];
9632
9658
  },
9633
9659
  deserialize(e) {
9634
- return e.start(), Os(e);
9660
+ return e.start(), Cs(e);
9635
9661
  }
9636
9662
  }), yr.set("PHPResponse", {
9637
9663
  canHandle: (e) => typeof e == "object" && e !== null && "headers" in e && "bytes" in e && "errors" in e && "exitCode" in e && "httpStatusCode" in e,
@@ -9656,7 +9682,7 @@ function xo(e) {
9656
9682
  case "string":
9657
9683
  return t[r];
9658
9684
  default:
9659
- return Ho(t[r]);
9685
+ return zo(t[r]);
9660
9686
  }
9661
9687
  }
9662
9688
  });
@@ -9686,7 +9712,7 @@ async function Vp({
9686
9712
  }),
9687
9713
  n
9688
9714
  );
9689
- return await Rp(o, l), n.finish(), l;
9715
+ return await kp(o, l), n.finish(), l;
9690
9716
  }
9691
9717
  function xp(e) {
9692
9718
  var t, r;
@@ -9739,19 +9765,19 @@ export {
9739
9765
  Qa as LatestSupportedPHPVersion,
9740
9766
  Vn as SupportedPHPVersions,
9741
9767
  Gp as SupportedPHPVersionsList,
9742
- ki as activatePlugin,
9743
- Ri as activateTheme,
9768
+ Ri as activatePlugin,
9769
+ ki as activateTheme,
9744
9770
  fa as applyWordPressPatches,
9745
9771
  wp as compileBlueprint,
9746
9772
  Jp as connectPlayground,
9747
9773
  wa as cp,
9748
9774
  Ea as defineSiteUrl,
9749
9775
  ur as defineWpConfigConsts,
9750
- Ra as exportWXR,
9751
- Ca as exportWXZ,
9776
+ ka as exportWXR,
9777
+ Oa as exportWXZ,
9752
9778
  Sa as importFile,
9753
- ka as importWordPressFiles,
9754
- Oa as installPlugin,
9779
+ Ra as importWordPressFiles,
9780
+ Ca as installPlugin,
9755
9781
  ja as installTheme,
9756
9782
  Ia as login,
9757
9783
  ba as mkdir,
@@ -9761,7 +9787,7 @@ export {
9761
9787
  _a as request,
9762
9788
  Ni as rm,
9763
9789
  Pa as rmdir,
9764
- Rp as runBlueprintSteps,
9790
+ kp as runBlueprintSteps,
9765
9791
  ma as runPHP,
9766
9792
  ya as runPHPWithOptions,
9767
9793
  ga as runSql,
@@ -9770,7 +9796,7 @@ export {
9770
9796
  Kp as setPluginProxyURL,
9771
9797
  Da as setSiteOptions,
9772
9798
  Vp as startPlaygroundWeb,
9773
- zn as unzip,
9799
+ Hn as unzip,
9774
9800
  Fa as updateUserMeta,
9775
9801
  Ti as wpContentFilesExcludedFromExport,
9776
9802
  ji as writeFile,