xmlui 0.9.73 → 0.9.75

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 (28) hide show
  1. package/dist/lib/{apiInterceptorWorker-VgjaTiLV.mjs → apiInterceptorWorker-DatXAMCS.mjs} +149 -149
  2. package/dist/lib/{index-By3AkYm2.mjs → index-BSiZQHKG.mjs} +7599 -7529
  3. package/dist/lib/index.css +1 -1
  4. package/dist/lib/language-server-web-worker.mjs +1 -1
  5. package/dist/lib/language-server.mjs +1 -1
  6. package/dist/lib/{server-common-CfdMYx46.mjs → server-common-LUcdzTQs.mjs} +4433 -4463
  7. package/dist/lib/xmlui-parser.d.ts +3 -0
  8. package/dist/lib/xmlui.d.ts +7 -2
  9. package/dist/lib/xmlui.mjs +1 -1
  10. package/dist/metadata/{apiInterceptorWorker-BGM0pNVK.mjs → apiInterceptorWorker-iGWqhoNo.mjs} +134 -134
  11. package/dist/metadata/{collectedComponentMetadata-CduyISDB.mjs → collectedComponentMetadata-DPDQ1hHG.mjs} +7737 -7668
  12. package/dist/metadata/style.css +1 -1
  13. package/dist/metadata/xmlui-metadata.mjs +1 -1
  14. package/dist/metadata/xmlui-metadata.umd.js +102 -102
  15. package/dist/scripts/package.json +1 -1
  16. package/dist/scripts/src/components/Markdown/MarkdownNative.js +1 -1
  17. package/dist/scripts/src/components/Markdown/utils.js +15 -5
  18. package/dist/scripts/src/components/NestedApp/AppWithCodeViewNative.js +3 -3
  19. package/dist/scripts/src/components/NestedApp/NestedAppNative.js +45 -18
  20. package/dist/scripts/src/components/TreeDisplay/TreeDisplay.js +1 -1
  21. package/dist/scripts/src/components-core/interception/ApiInterceptor.js +6 -1
  22. package/dist/scripts/src/components-core/rendering/AppContent.js +4 -1
  23. package/dist/scripts/src/components-core/rendering/AppRoot.js +2 -2
  24. package/dist/scripts/src/components-core/rendering/AppWrapper.js +2 -2
  25. package/dist/scripts/src/components-core/theming/transformThemeVars.js +1 -1
  26. package/dist/standalone/xmlui-standalone.es.d.ts +7 -2
  27. package/dist/standalone/xmlui-standalone.umd.js +247 -247
  28. package/package.json +1 -1
@@ -1,14 +1,14 @@
1
- var Yo = Object.defineProperty;
1
+ var Qo = Object.defineProperty;
2
2
  var Ga = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
- var Qo = (e, a, o) => a in e ? Yo(e, a, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[a] = o;
6
- var P = (e, a, o) => Qo(e, typeof a != "symbol" ? a + "" : a, o), fa = (e, a, o) => a.has(e) || Ga("Cannot " + o);
5
+ var Zo = (e, a, o) => a in e ? Qo(e, a, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[a] = o;
6
+ var P = (e, a, o) => Zo(e, typeof a != "symbol" ? a + "" : a, o), fa = (e, a, o) => a.has(e) || Ga("Cannot " + o);
7
7
  var ge = (e, a, o) => (fa(e, a, "read from private field"), o ? o.call(e) : a.get(e)), Me = (e, a, o) => a.has(e) ? Ga("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(e) : a.set(e, o), ba = (e, a, o, t) => (fa(e, a, "write to private field"), t ? t.call(e, o) : a.set(e, o), o), ze = (e, a, o) => (fa(e, a, "access private method"), o);
8
- import { delay as Zo, HttpResponse as Be, http as et } from "msw";
9
- import { isArray as lo, isObject as mo, mapValues as at } from "lodash-es";
10
- import { r as ot, g as tt, d as it, m as st, a as nt, o as ya, T as rt } from "./index-By3AkYm2.mjs";
11
- import Ha from "dexie";
8
+ import { delay as Ha, HttpResponse as Be, http as et } from "msw";
9
+ import { isArray as mo, isObject as po, mapValues as at } from "lodash-es";
10
+ import { r as ot, g as tt, d as it, m as st, a as nt, o as ya, T as rt } from "./index-BSiZQHKG.mjs";
11
+ import Va from "dexie";
12
12
  var ut = /(%?)(%([sdijo]))/g;
13
13
  function ct(e, a) {
14
14
  switch (a) {
@@ -86,7 +86,7 @@ const B = {
86
86
  warn: dt,
87
87
  error: gt
88
88
  };
89
- class Va extends Error {
89
+ class Ja extends Error {
90
90
  constructor(a) {
91
91
  super(a), this.name = "InternalError";
92
92
  }
@@ -264,7 +264,7 @@ function wt(e) {
264
264
  a.pathname
265
265
  );
266
266
  }
267
- async function po(e, a = "warn") {
267
+ async function ho(e, a = "warn") {
268
268
  const o = new URL(e.url), t = la(o) + o.search, i = e.method === "HEAD" || e.method === "GET" ? null : await e.clone().text(), n = `intercepted a request without a matching request handler:${`
269
269
 
270
270
  • ${e.method} ${t}
@@ -276,7 +276,7 @@ Read more: https://mswjs.io/docs/getting-started/mocks`;
276
276
  function r(c) {
277
277
  switch (c) {
278
278
  case "error":
279
- throw B.error("Error: %s", n), new Va(
279
+ throw B.error("Error: %s", n), new Ja(
280
280
  B.formatMessage(
281
281
  'Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
282
282
  )
@@ -288,7 +288,7 @@ Read more: https://mswjs.io/docs/getting-started/mocks`;
288
288
  case "bypass":
289
289
  break;
290
290
  default:
291
- throw new Va(
291
+ throw new Ja(
292
292
  B.formatMessage(
293
293
  'Failed to react to an unhandled request: unknown strategy "%s". Please provide one of the supported strategies ("bypass", "warn", "error") or a custom callback function as the value of the "onUnhandledRequest" option.',
294
294
  c
@@ -305,7 +305,7 @@ Read more: https://mswjs.io/docs/getting-started/mocks`;
305
305
  }
306
306
  wt(e) || r(a);
307
307
  }
308
- function ho() {
308
+ function go() {
309
309
  if (typeof navigator < "u" && navigator.product === "ReactNative")
310
310
  return !0;
311
311
  if (typeof process < "u") {
@@ -314,26 +314,26 @@ function ho() {
314
314
  }
315
315
  return !1;
316
316
  }
317
- var Et = Object.create, go = Object.defineProperty, xt = Object.getOwnPropertyDescriptor, ko = Object.getOwnPropertyNames, zt = Object.getPrototypeOf, St = Object.prototype.hasOwnProperty, Ct = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, {
317
+ var Et = Object.create, ko = Object.defineProperty, xt = Object.getOwnPropertyDescriptor, fo = Object.getOwnPropertyNames, zt = Object.getPrototypeOf, St = Object.prototype.hasOwnProperty, Ct = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, {
318
318
  get: (a, o) => (typeof require < "u" ? require : a)[o]
319
319
  }) : e)(function(e) {
320
320
  if (typeof require < "u") return require.apply(this, arguments);
321
321
  throw Error('Dynamic require of "' + e + '" is not supported');
322
322
  }), ae = (e, a) => function() {
323
- return a || (0, e[ko(e)[0]])((a = { exports: {} }).exports, a), a.exports;
323
+ return a || (0, e[fo(e)[0]])((a = { exports: {} }).exports, a), a.exports;
324
324
  }, At = (e, a, o, t) => {
325
325
  if (a && typeof a == "object" || typeof a == "function")
326
- for (let i of ko(a))
327
- !St.call(e, i) && i !== o && go(e, i, { get: () => a[i], enumerable: !(t = xt(a, i)) || t.enumerable });
326
+ for (let i of fo(a))
327
+ !St.call(e, i) && i !== o && ko(e, i, { get: () => a[i], enumerable: !(t = xt(a, i)) || t.enumerable });
328
328
  return e;
329
329
  }, Lt = (e, a, o) => (o = e != null ? Et(zt(e)) : {}, At(
330
330
  // If the importer is in node compatibility mode or this is not an ESM
331
331
  // file that has been converted to a CommonJS file using a Babel-
332
332
  // compatible transform (i.e. "__esModule" has not been set), then set
333
333
  // "default" to the CommonJS "module.exports" for node compatibility.
334
- go(o, "default", { value: e, enumerable: !0 }),
334
+ ko(o, "default", { value: e, enumerable: !0 }),
335
335
  e
336
- )), fo = ae({
336
+ )), bo = ae({
337
337
  "node_modules/punycode/punycode.js"(e, a) {
338
338
  var o = 2147483647, t = 36, i = 1, s = 26, n = 38, r = 700, c = 72, l = 128, h = "-", p = /^xn--/, b = /[^\0-\x7F]/, f = /[\x2E\u3002\uFF0E\uFF61]/g, E = {
339
339
  overflow: "Overflow: input needs wider integers to process",
@@ -10030,7 +10030,7 @@ var Et = Object.create, go = Object.defineProperty, xt = Object.getOwnPropertyDe
10030
10030
  }
10031
10031
  }), Ft = ae({
10032
10032
  "node_modules/psl/index.js"(e) {
10033
- var a = fo(), o = {};
10033
+ var a = bo(), o = {};
10034
10034
  o.rules = Pt().map(function(t) {
10035
10035
  return {
10036
10036
  rule: t,
@@ -10111,7 +10111,7 @@ var Et = Object.create, go = Object.defineProperty, xt = Object.getOwnPropertyDe
10111
10111
  return !!(i.domain && i.listed);
10112
10112
  };
10113
10113
  }
10114
- }), bo = ae({
10114
+ }), yo = ae({
10115
10115
  "node_modules/tough-cookie/lib/pubsuffix-psl.js"(e) {
10116
10116
  var a = Ft(), o = [
10117
10117
  "local",
@@ -10136,7 +10136,7 @@ var Et = Object.create, go = Object.defineProperty, xt = Object.getOwnPropertyDe
10136
10136
  }
10137
10137
  e.getPublicSuffix = i;
10138
10138
  }
10139
- }), yo = ae({
10139
+ }), jo = ae({
10140
10140
  "node_modules/tough-cookie/lib/store.js"(e) {
10141
10141
  var a = class {
10142
10142
  constructor() {
@@ -10171,7 +10171,7 @@ var Et = Object.create, go = Object.defineProperty, xt = Object.getOwnPropertyDe
10171
10171
  };
10172
10172
  e.Store = a;
10173
10173
  }
10174
- }), jo = ae({
10174
+ }), vo = ae({
10175
10175
  "node_modules/universalify/index.js"(e) {
10176
10176
  e.fromCallback = function(a) {
10177
10177
  return Object.defineProperty(function() {
@@ -10192,9 +10192,9 @@ var Et = Object.create, go = Object.defineProperty, xt = Object.getOwnPropertyDe
10192
10192
  }, "name", { value: a.name });
10193
10193
  };
10194
10194
  }
10195
- }), vo = ae({
10195
+ }), wo = ae({
10196
10196
  "node_modules/tough-cookie/lib/permuteDomain.js"(e) {
10197
- var a = bo();
10197
+ var a = yo();
10198
10198
  function o(t, i) {
10199
10199
  const s = a.getPublicSuffix(t, {
10200
10200
  allowSpecialUseDomain: i
@@ -10213,14 +10213,14 @@ var Et = Object.create, go = Object.defineProperty, xt = Object.getOwnPropertyDe
10213
10213
  }
10214
10214
  e.permuteDomain = o;
10215
10215
  }
10216
- }), wo = ae({
10216
+ }), Eo = ae({
10217
10217
  "node_modules/tough-cookie/lib/pathMatch.js"(e) {
10218
10218
  function a(o, t) {
10219
10219
  return t === o || o.indexOf(t) === 0 && (t.substr(-1) === "/" || o.substr(t.length, 1) === "/");
10220
10220
  }
10221
10221
  e.pathMatch = a;
10222
10222
  }
10223
- }), Eo = ae({
10223
+ }), xo = ae({
10224
10224
  "node_modules/tough-cookie/lib/utilHelper.js"(e) {
10225
10225
  function a() {
10226
10226
  try {
@@ -10247,7 +10247,7 @@ var Et = Object.create, go = Object.defineProperty, xt = Object.getOwnPropertyDe
10247
10247
  }
10248
10248
  }), Rt = ae({
10249
10249
  "node_modules/tough-cookie/lib/memstore.js"(e) {
10250
- var { fromCallback: a } = jo(), o = yo().Store, t = vo().permuteDomain, i = wo().pathMatch, { getCustomInspectSymbol: s, getUtilInspect: n } = Eo(), r = class extends o {
10250
+ var { fromCallback: a } = vo(), o = jo().Store, t = wo().permuteDomain, i = Eo().pathMatch, { getCustomInspectSymbol: s, getUtilInspect: n } = xo(), r = class extends o {
10251
10251
  constructor() {
10252
10252
  super(), this.synchronous = !0, this.idx = /* @__PURE__ */ Object.create(null);
10253
10253
  const p = s();
@@ -10411,7 +10411,7 @@ var Et = Object.create, go = Object.defineProperty, xt = Object.getOwnPropertyDe
10411
10411
  }
10412
10412
  }), Tt = ae({
10413
10413
  "node_modules/tough-cookie/lib/cookie.js"(e) {
10414
- var a = fo(), o = qt(), t = bo(), i = yo().Store, s = Rt().MemoryCookieStore, n = wo().pathMatch, r = Ot(), c = _t(), { fromCallback: l } = jo(), { getCustomInspectSymbol: h } = Eo(), p = /^[\x21\x23-\x2B\x2D-\x3A\x3C-\x5B\x5D-\x7E]+$/, b = /[\x00-\x1F]/, f = [`
10414
+ var a = bo(), o = qt(), t = yo(), i = jo().Store, s = Rt().MemoryCookieStore, n = Eo().pathMatch, r = Ot(), c = _t(), { fromCallback: l } = vo(), { getCustomInspectSymbol: h } = xo(), p = /^[\x21\x23-\x2B\x2D-\x3A\x3C-\x5B\x5D-\x7E]+$/, b = /[\x00-\x1F]/, f = [`
10415
10415
  `, "\r", "\0"], E = /[\x20-\x3A\x3C-\x7E]+/, S = /[\x09\x20-\x2F\x3B-\x40\x5B-\x60\x7B-\x7E]/, F = {
10416
10416
  jan: 0,
10417
10417
  feb: 1,
@@ -11090,7 +11090,7 @@ var Et = Object.create, go = Object.defineProperty, xt = Object.getOwnPropertyDe
11090
11090
  return y;
11091
11091
  };
11092
11092
  }
11093
- e.version = c, e.CookieJar = ce, e.Cookie = U, e.Store = i, e.MemoryCookieStore = s, e.parseDate = K, e.formatDate = fe, e.parse = W, e.fromJSON = Z, e.domainMatch = g, e.defaultPath = A, e.pathMatch = n, e.getPublicSuffix = t.getPublicSuffix, e.cookieCompare = ie, e.permuteDomain = vo().permuteDomain, e.permutePath = te, e.canonicalDomain = ne, e.PrefixSecurityEnum = w, e.ParameterError = r.ParameterError;
11093
+ e.version = c, e.CookieJar = ce, e.Cookie = U, e.Store = i, e.MemoryCookieStore = s, e.parseDate = K, e.formatDate = fe, e.parse = W, e.fromJSON = Z, e.domainMatch = g, e.defaultPath = A, e.pathMatch = n, e.getPublicSuffix = t.getPublicSuffix, e.cookieCompare = ie, e.permuteDomain = wo().permuteDomain, e.permutePath = te, e.canonicalDomain = ne, e.PrefixSecurityEnum = w, e.ParameterError = r.ParameterError;
11094
11094
  }
11095
11095
  }), Mt = Lt(Tt()), Bt = Mt.default;
11096
11096
  /*! Bundled license information:
@@ -11398,22 +11398,22 @@ class Vt extends Nt {
11398
11398
  return o.filter((s) => !i.includes(s));
11399
11399
  }
11400
11400
  }
11401
- const Jt = ho() ? new Wt() : new Vt(), Xt = new Ut(Jt);
11402
- var Kt = Object.create, xo = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, zo = Object.getOwnPropertyNames, Qt = Object.getPrototypeOf, Zt = Object.prototype.hasOwnProperty, So = (e, a) => function() {
11403
- return a || (0, e[zo(e)[0]])((a = { exports: {} }).exports, a), a.exports;
11401
+ const Jt = go() ? new Wt() : new Vt(), Xt = new Ut(Jt);
11402
+ var Kt = Object.create, zo = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, So = Object.getOwnPropertyNames, Qt = Object.getPrototypeOf, Zt = Object.prototype.hasOwnProperty, Co = (e, a) => function() {
11403
+ return a || (0, e[So(e)[0]])((a = { exports: {} }).exports, a), a.exports;
11404
11404
  }, ei = (e, a, o, t) => {
11405
11405
  if (a && typeof a == "object" || typeof a == "function")
11406
- for (let i of zo(a))
11407
- !Zt.call(e, i) && i !== o && xo(e, i, { get: () => a[i], enumerable: !(t = Yt(a, i)) || t.enumerable });
11406
+ for (let i of So(a))
11407
+ !Zt.call(e, i) && i !== o && zo(e, i, { get: () => a[i], enumerable: !(t = Yt(a, i)) || t.enumerable });
11408
11408
  return e;
11409
11409
  }, ai = (e, a, o) => (o = e != null ? Kt(Qt(e)) : {}, ei(
11410
11410
  // If the importer is in node compatibility mode or this is not an ESM
11411
11411
  // file that has been converted to a CommonJS file using a Babel-
11412
11412
  // compatible transform (i.e. "__esModule" has not been set), then set
11413
11413
  // "default" to the CommonJS "module.exports" for node compatibility.
11414
- xo(o, "default", { value: e, enumerable: !0 }),
11414
+ zo(o, "default", { value: e, enumerable: !0 }),
11415
11415
  e
11416
- )), oi = So({
11416
+ )), oi = Co({
11417
11417
  "node_modules/statuses/codes.json"(e, a) {
11418
11418
  a.exports = {
11419
11419
  100: "Continue",
@@ -11481,7 +11481,7 @@ var Kt = Object.create, xo = Object.defineProperty, Yt = Object.getOwnPropertyDe
11481
11481
  511: "Network Authentication Required"
11482
11482
  };
11483
11483
  }
11484
- }), ti = So({
11484
+ }), ti = Co({
11485
11485
  "node_modules/statuses/index.js"(e, a) {
11486
11486
  var o = oi();
11487
11487
  a.exports = r, r.message = o, r.code = t(o), r.codes = i(o), r.redirect = {
@@ -11544,19 +11544,19 @@ statuses/index.js:
11544
11544
  * MIT Licensed
11545
11545
  *)
11546
11546
  */
11547
- var ni = Object.create, Co = Object.defineProperty, ri = Object.getOwnPropertyDescriptor, Ao = Object.getOwnPropertyNames, ui = Object.getPrototypeOf, ci = Object.prototype.hasOwnProperty, li = (e, a) => function() {
11548
- return a || (0, e[Ao(e)[0]])((a = { exports: {} }).exports, a), a.exports;
11547
+ var ni = Object.create, Ao = Object.defineProperty, ri = Object.getOwnPropertyDescriptor, Lo = Object.getOwnPropertyNames, ui = Object.getPrototypeOf, ci = Object.prototype.hasOwnProperty, li = (e, a) => function() {
11548
+ return a || (0, e[Lo(e)[0]])((a = { exports: {} }).exports, a), a.exports;
11549
11549
  }, mi = (e, a, o, t) => {
11550
11550
  if (a && typeof a == "object" || typeof a == "function")
11551
- for (let i of Ao(a))
11552
- !ci.call(e, i) && i !== o && Co(e, i, { get: () => a[i], enumerable: !(t = ri(a, i)) || t.enumerable });
11551
+ for (let i of Lo(a))
11552
+ !ci.call(e, i) && i !== o && Ao(e, i, { get: () => a[i], enumerable: !(t = ri(a, i)) || t.enumerable });
11553
11553
  return e;
11554
11554
  }, pi = (e, a, o) => (o = e != null ? ni(ui(e)) : {}, mi(
11555
11555
  // If the importer is in node compatibility mode or this is not an ESM
11556
11556
  // file that has been converted to a CommonJS file using a Babel-
11557
11557
  // compatible transform (i.e. "__esModule" has not been set), then set
11558
11558
  // "default" to the CommonJS "module.exports" for node compatibility.
11559
- !e || !e.__esModule ? Co(o, "default", { value: e, enumerable: !0 }) : o,
11559
+ !e || !e.__esModule ? Ao(o, "default", { value: e, enumerable: !0 }) : o,
11560
11560
  e
11561
11561
  )), hi = li({
11562
11562
  "node_modules/set-cookie-parser/lib/set-cookie.js"(e, a) {
@@ -11654,7 +11654,7 @@ function gi(e, a) {
11654
11654
  const o = Reflect.get(a, di);
11655
11655
  o && Xt.setCookie(o, e.url);
11656
11656
  }
11657
- async function Lo(e, a, o, t, i, s) {
11657
+ async function Io(e, a, o, t, i, s) {
11658
11658
  var l, h, p, b, f, E;
11659
11659
  if (i.emit("request:start", { request: e, requestId: a }), (l = e.headers.get("accept")) != null && l.includes("msw/passthrough")) {
11660
11660
  i.emit("request:end", { request: e, requestId: a }), (h = s == null ? void 0 : s.onPassthroughResponse) == null || h.call(s, e);
@@ -11673,7 +11673,7 @@ async function Lo(e, a, o, t, i, s) {
11673
11673
  requestId: a
11674
11674
  }), n.error;
11675
11675
  if (!n.data) {
11676
- await po(e, t.onUnhandledRequest), i.emit("request:unhandled", { request: e, requestId: a }), i.emit("request:end", { request: e, requestId: a }), (p = s == null ? void 0 : s.onPassthroughResponse) == null || p.call(s, e);
11676
+ await ho(e, t.onUnhandledRequest), i.emit("request:unhandled", { request: e, requestId: a }), i.emit("request:end", { request: e, requestId: a }), (p = s == null ? void 0 : s.onPassthroughResponse) == null || p.call(s, e);
11677
11677
  return;
11678
11678
  }
11679
11679
  const { response: r } = n.data;
@@ -11699,14 +11699,14 @@ function ki(e) {
11699
11699
  function Oa(e) {
11700
11700
  return (a) => a != null && typeof a == "object" && "__kind" in a && a.__kind === e;
11701
11701
  }
11702
- function Ja(e) {
11702
+ function Xa(e) {
11703
11703
  return e != null && typeof e == "object" && !Array.isArray(e);
11704
11704
  }
11705
- function Io(e, a) {
11705
+ function Do(e, a) {
11706
11706
  return Object.entries(a).reduce(
11707
11707
  (o, [t, i]) => {
11708
11708
  const s = o[t];
11709
- return Array.isArray(s) && Array.isArray(i) ? (o[t] = s.concat(i), o) : Ja(s) && Ja(i) ? (o[t] = Io(s, i), o) : (o[t] = i, o);
11709
+ return Array.isArray(s) && Array.isArray(i) ? (o[t] = s.concat(i), o) : Xa(s) && Xa(i) ? (o[t] = Do(s, i), o) : (o[t] = i, o);
11710
11710
  },
11711
11711
  Object.assign({}, e)
11712
11712
  );
@@ -11717,12 +11717,12 @@ var fi = class extends Error {
11717
11717
  `Possible EventEmitter memory leak detected. ${t} ${o.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`
11718
11718
  ), this.emitter = a, this.type = o, this.count = t, this.name = "MaxListenersExceededWarning";
11719
11719
  }
11720
- }, Do = class {
11720
+ }, qo = class {
11721
11721
  static listenerCount(a, o) {
11722
11722
  return a.listenerCount(o);
11723
11723
  }
11724
11724
  constructor() {
11725
- this.events = /* @__PURE__ */ new Map(), this.maxListeners = Do.defaultMaxListeners, this.hasWarnedAboutPotentialMemoryLeak = !1;
11725
+ this.events = /* @__PURE__ */ new Map(), this.maxListeners = qo.defaultMaxListeners, this.hasWarnedAboutPotentialMemoryLeak = !1;
11726
11726
  }
11727
11727
  _emitInternalEvent(a, o, t) {
11728
11728
  this.emit(
@@ -11844,7 +11844,7 @@ var fi = class extends Error {
11844
11844
  rawListeners(a) {
11845
11845
  return this.listeners(a);
11846
11846
  }
11847
- }, na = Do;
11847
+ }, na = qo;
11848
11848
  na.defaultMaxListeners = 10;
11849
11849
  function bi(e, a) {
11850
11850
  const o = e.emit;
@@ -11962,15 +11962,15 @@ function Ai(e) {
11962
11962
  function Li(e) {
11963
11963
  return `\x1B[32m${e}\x1B[0m`;
11964
11964
  }
11965
- var ma = ho(), qo = class {
11965
+ var ma = go(), Po = class {
11966
11966
  constructor(a) {
11967
11967
  P(this, "prefix");
11968
11968
  this.name = a, this.prefix = `[${this.name}]`;
11969
- const o = Xa("DEBUG"), t = Xa("LOG_LEVEL");
11969
+ const o = Ka("DEBUG"), t = Ka("LOG_LEVEL");
11970
11970
  o === "1" || o === "true" || typeof o < "u" && this.name.startsWith(o) ? (this.debug = $e(t, "debug") ? le : this.debug, this.info = $e(t, "info") ? le : this.info, this.success = $e(t, "success") ? le : this.success, this.warning = $e(t, "warning") ? le : this.warning, this.error = $e(t, "error") ? le : this.error) : (this.info = le, this.success = le, this.warning = le, this.error = le, this.only = le);
11971
11971
  }
11972
11972
  extend(a) {
11973
- return new qo(`${this.name}:${a}`);
11973
+ return new Po(`${this.name}:${a}`);
11974
11974
  }
11975
11975
  /**
11976
11976
  * Print a debug message.
@@ -12098,8 +12098,8 @@ var ma = ho(), qo = class {
12098
12098
  prefix: Ca[l]
12099
12099
  };
12100
12100
  this.getWriter(o)(
12101
- [h.timestamp(this.formatTimestamp(r.timestamp))].concat(i != null ? h.prefix(i) : []).concat(Ka(t)).join(" "),
12102
- ...n.map(Ka)
12101
+ [h.timestamp(this.formatTimestamp(r.timestamp))].concat(i != null ? h.prefix(i) : []).concat(Ya(t)).join(" "),
12102
+ ...n.map(Ya)
12103
12103
  );
12104
12104
  }
12105
12105
  formatTimestamp(a) {
@@ -12157,17 +12157,17 @@ function Pi(e, ...a) {
12157
12157
  }
12158
12158
  console.error(e, ...a);
12159
12159
  }
12160
- function Xa(e) {
12160
+ function Ka(e) {
12161
12161
  var a;
12162
12162
  return ma ? process.env[e] : (a = globalThis[e]) == null ? void 0 : a.toString();
12163
12163
  }
12164
12164
  function $e(e, a) {
12165
12165
  return e !== void 0 && e !== a;
12166
12166
  }
12167
- function Ka(e) {
12167
+ function Ya(e) {
12168
12168
  return typeof e > "u" ? "undefined" : e === null ? "null" : typeof e == "string" ? e : typeof e == "object" ? JSON.stringify(e) : e.toString();
12169
12169
  }
12170
- function Ya(e) {
12170
+ function Qa(e) {
12171
12171
  return (
12172
12172
  // @ts-ignore https://github.com/Microsoft/TypeScript/issues/24587
12173
12173
  globalThis[e] || void 0
@@ -12181,7 +12181,7 @@ function Ri(e) {
12181
12181
  }
12182
12182
  var Oi = class {
12183
12183
  constructor(a) {
12184
- this.symbol = a, this.readyState = "INACTIVE", this.emitter = new na(), this.subscriptions = [], this.logger = new qo(a.description), this.emitter.setMaxListeners(0), this.logger.info("constructing the interceptor...");
12184
+ this.symbol = a, this.readyState = "INACTIVE", this.emitter = new na(), this.subscriptions = [], this.logger = new Po(a.description), this.emitter.setMaxListeners(0), this.logger.info("constructing the interceptor...");
12185
12185
  }
12186
12186
  /**
12187
12187
  * Determine if this interceptor can be applied
@@ -12250,7 +12250,7 @@ var Oi = class {
12250
12250
  a.info("no interceptors running, skipping dispose...");
12251
12251
  return;
12252
12252
  }
12253
- if (this.clearInstance(), a.info("global symbol deleted:", Ya(this.symbol)), this.subscriptions.length > 0) {
12253
+ if (this.clearInstance(), a.info("global symbol deleted:", Qa(this.symbol)), this.subscriptions.length > 0) {
12254
12254
  a.info("disposing of %d subscriptions...", this.subscriptions.length);
12255
12255
  for (const o of this.subscriptions)
12256
12256
  o();
@@ -12260,7 +12260,7 @@ var Oi = class {
12260
12260
  }
12261
12261
  getInstance() {
12262
12262
  var a;
12263
- const o = Ya(this.symbol);
12263
+ const o = Qa(this.symbol);
12264
12264
  return this.logger.info("retrieved global instance:", (a = o == null ? void 0 : o.constructor) == null ? void 0 : a.name), o;
12265
12265
  }
12266
12266
  setInstance() {
@@ -12292,7 +12292,7 @@ function Ti() {
12292
12292
  };
12293
12293
  return e;
12294
12294
  }
12295
- var we, Oe, ta, uo, Mi = (uo = class extends Promise {
12295
+ var we, Oe, ta, co, Mi = (co = class extends Promise {
12296
12296
  constructor(o = null) {
12297
12297
  const t = Ti();
12298
12298
  super((i, s) => {
@@ -12324,7 +12324,7 @@ var we, Oe, ta, uo, Mi = (uo = class extends Promise {
12324
12324
  resolve: { configurable: !0, value: this.resolve },
12325
12325
  reject: { configurable: !0, value: this.reject }
12326
12326
  });
12327
- }, uo);
12327
+ }, co);
12328
12328
  function ee(e, a) {
12329
12329
  return Object.defineProperties(a, {
12330
12330
  target: {
@@ -12362,7 +12362,7 @@ var Fe = Symbol("kCancelable"), he = Symbol("kDefaultPrevented"), _a = class ext
12362
12362
  constructor(e, a = {}) {
12363
12363
  super(e, a), this.code = a.code === void 0 ? 0 : a.code, this.reason = a.reason === void 0 ? "" : a.reason, this.wasClean = a.wasClean === void 0 ? !1 : a.wasClean;
12364
12364
  }
12365
- }, Qa = class extends pa {
12365
+ }, Za = class extends pa {
12366
12366
  constructor(e, a = {}) {
12367
12367
  super(e, a), this[Fe] = !!a.cancelable, this[he] = !1;
12368
12368
  }
@@ -12441,7 +12441,7 @@ var Fe = Symbol("kCancelable"), he = Symbol("kDefaultPrevented"), _a = class ext
12441
12441
  close(e, a) {
12442
12442
  this.transport.close(e, a);
12443
12443
  }
12444
- }, Za = "InvalidAccessError: close code out of user configurable range", ra = Symbol("kPassthroughPromise"), Po = Symbol("kOnSend"), Ve = Symbol("kClose"), Je = class extends EventTarget {
12444
+ }, eo = "InvalidAccessError: close code out of user configurable range", ra = Symbol("kPassthroughPromise"), Fo = Symbol("kOnSend"), Ve = Symbol("kClose"), Je = class extends EventTarget {
12445
12445
  constructor(e, a) {
12446
12446
  super(), this.CONNECTING = 0, this.OPEN = 1, this.CLOSING = 2, this.CLOSED = 3, this._onopen = null, this._onmessage = null, this._onerror = null, this._onclose = null, this.url = e.toString(), this.protocol = "", this.extensions = "", this.binaryType = "blob", this.readyState = this.CONNECTING, this.bufferedAmount = 0, this[ra] = new Mi(), queueMicrotask(async () => {
12447
12447
  await this[ra] || (this.protocol = typeof a == "string" ? a : Array.isArray(a) && a.length > 0 ? a[0] : "", this.readyState === this.CONNECTING && (this.readyState = this.OPEN, this.dispatchEvent(ee(this, new Event("open")))));
@@ -12482,13 +12482,13 @@ var Fe = Symbol("kCancelable"), he = Symbol("kDefaultPrevented"), _a = class ext
12482
12482
  throw this.close(), new DOMException("InvalidStateError");
12483
12483
  this.readyState === this.CLOSING || this.readyState === this.CLOSED || (this.bufferedAmount += $i(e), queueMicrotask(() => {
12484
12484
  var a;
12485
- this.bufferedAmount = 0, (a = this[Po]) == null || a.call(this, e);
12485
+ this.bufferedAmount = 0, (a = this[Fo]) == null || a.call(this, e);
12486
12486
  }));
12487
12487
  }
12488
12488
  close(e = 1e3, a) {
12489
- de(e, Za), de(
12489
+ de(e, eo), de(
12490
12490
  e === 1e3 || e >= 3e3 && e <= 4999,
12491
- Za
12491
+ eo
12492
12492
  ), this[Ve](e, a);
12493
12493
  }
12494
12494
  [Ve](e = 1e3, a, o = !0) {
@@ -12665,7 +12665,7 @@ var ve = Symbol("kEmitter"), Ze = Symbol("kBoundListener"), ja = Symbol("kSend")
12665
12665
  this[ve].dispatchEvent(
12666
12666
  ee(
12667
12667
  this.realWebSocket,
12668
- new Qa("close", {
12668
+ new Za("close", {
12669
12669
  /**
12670
12670
  * @note `server.close()` in the interceptor
12671
12671
  * always results in clean closures.
@@ -12710,7 +12710,7 @@ var ve = Symbol("kEmitter"), Ze = Symbol("kBoundListener"), ja = Symbol("kSend")
12710
12710
  this.mockCloseController.abort();
12711
12711
  const a = ee(
12712
12712
  this.realWebSocket,
12713
- new Qa("close", {
12713
+ new Za("close", {
12714
12714
  code: e.code,
12715
12715
  reason: e.reason,
12716
12716
  wasClean: e.wasClean,
@@ -12723,7 +12723,7 @@ var ve = Symbol("kEmitter"), Ze = Symbol("kBoundListener"), ja = Symbol("kSend")
12723
12723
  constructor(e) {
12724
12724
  super(), this.socket = e, this.socket.addEventListener("close", (a) => {
12725
12725
  this.dispatchEvent(ee(this.socket, new pa("close", a)));
12726
- }), this.socket[Po] = (a) => {
12726
+ }), this.socket[Fo] = (a) => {
12727
12727
  this.dispatchEvent(
12728
12728
  ee(
12729
12729
  this.socket,
@@ -12779,9 +12779,9 @@ var ve = Symbol("kEmitter"), Ze = Symbol("kBoundListener"), ja = Symbol("kSend")
12779
12779
  close(e, a) {
12780
12780
  this.socket[Ve](e, a);
12781
12781
  }
12782
- }, Fo = class extends Oi {
12782
+ }, Ro = class extends Oi {
12783
12783
  constructor() {
12784
- super(Fo.symbol);
12784
+ super(Ro.symbol);
12785
12785
  }
12786
12786
  checkEnvironment() {
12787
12787
  return Ei("WebSocket");
@@ -12826,9 +12826,9 @@ var ve = Symbol("kEmitter"), Ze = Symbol("kBoundListener"), ja = Symbol("kSend")
12826
12826
  );
12827
12827
  });
12828
12828
  }
12829
- }, Ro = Fo;
12830
- Ro.symbol = Symbol("websocket");
12831
- const La = new Ro();
12829
+ }, Oo = Ro;
12830
+ Oo.symbol = Symbol("websocket");
12831
+ const La = new Oo();
12832
12832
  new TextEncoder();
12833
12833
  var qe = class extends Response {
12834
12834
  static isConfigurableStatusCode(a) {
@@ -12884,9 +12884,9 @@ var qe = class extends Response {
12884
12884
  }
12885
12885
  qe.setUrl(o.url, this);
12886
12886
  }
12887
- }, Oo = qe;
12888
- Oo.STATUS_CODES_WITHOUT_BODY = [101, 103, 204, 205, 304];
12889
- Oo.STATUS_CODES_WITH_REDIRECT = [301, 302, 303, 307, 308];
12887
+ }, _o = qe;
12888
+ _o.STATUS_CODES_WITHOUT_BODY = [101, 103, 204, 205, 304];
12889
+ _o.STATUS_CODES_WITH_REDIRECT = [301, 302, 303, 307, 308];
12890
12890
  const Wi = Symbol("kDispatchEvent");
12891
12891
  function Gi(e) {
12892
12892
  La.on("connection", async (a) => {
@@ -12911,7 +12911,7 @@ function Gi(e) {
12911
12911
  connection: "upgrade"
12912
12912
  }
12913
12913
  });
12914
- await po(
12914
+ await ho(
12915
12915
  s,
12916
12916
  e.getUnhandledRequestStrategy()
12917
12917
  ).catch((n) => {
@@ -12932,9 +12932,9 @@ function Ce(e) {
12932
12932
  function ha(e) {
12933
12933
  return e instanceof Blob ? e.size : e instanceof ArrayBuffer ? e.byteLength : new Blob([e]).size;
12934
12934
  }
12935
- const eo = 24;
12935
+ const ao = 24;
12936
12936
  function va(e) {
12937
- return e.length <= eo ? e : `${e.slice(0, eo)}…`;
12937
+ return e.length <= ao ? e : `${e.slice(0, ao)}…`;
12938
12938
  }
12939
12939
  async function da(e) {
12940
12940
  if (e instanceof Blob) {
@@ -13220,7 +13220,7 @@ Learn more about creating the Service Worker script: https://mswjs.io/docs/cli/i
13220
13220
  }
13221
13221
  return n.data;
13222
13222
  };
13223
- function _o(e = {}) {
13223
+ function To(e = {}) {
13224
13224
  if (e.quiet)
13225
13225
  return;
13226
13226
  const a = e.message || "Mocking enabled.";
@@ -13243,7 +13243,7 @@ async function rs(e, a) {
13243
13243
  );
13244
13244
  return;
13245
13245
  }
13246
- e.isMockingEnabled = !0, _o({
13246
+ e.isMockingEnabled = !0, To({
13247
13247
  quiet: a.quiet,
13248
13248
  workerScope: (t = e.registration) == null ? void 0 : t.scope,
13249
13249
  workerUrl: (i = e.worker) == null ? void 0 : i.scriptURL,
@@ -13273,7 +13273,7 @@ var ms = (e, a) => async (o, t) => {
13273
13273
  const i = new us(o.ports[0]), s = t.payload.id, n = ls(t.payload), r = n.clone(), c = n.clone();
13274
13274
  Sa.cache.set(n, c), e.requests.set(s, c);
13275
13275
  try {
13276
- await Lo(
13276
+ await Io(
13277
13277
  n,
13278
13278
  s,
13279
13279
  e.getRequestHandlers().filter(Oa("RequestHandler")),
@@ -13436,15 +13436,15 @@ function vs(e) {
13436
13436
  function ws(e) {
13437
13437
  return `\x1B[32m${e}\x1B[0m`;
13438
13438
  }
13439
- var ga = Ta(), To = class {
13439
+ var ga = Ta(), Mo = class {
13440
13440
  constructor(e) {
13441
13441
  P(this, "prefix");
13442
13442
  this.name = e, this.prefix = `[${this.name}]`;
13443
- const a = ao("DEBUG"), o = ao("LOG_LEVEL");
13443
+ const a = oo("DEBUG"), o = oo("LOG_LEVEL");
13444
13444
  a === "1" || a === "true" || typeof a < "u" && this.name.startsWith(a) ? (this.debug = Ne(o, "debug") ? me : this.debug, this.info = Ne(o, "info") ? me : this.info, this.success = Ne(o, "success") ? me : this.success, this.warning = Ne(o, "warning") ? me : this.warning, this.error = Ne(o, "error") ? me : this.error) : (this.info = me, this.success = me, this.warning = me, this.error = me, this.only = me);
13445
13445
  }
13446
13446
  extend(e) {
13447
- return new To(`${this.name}:${e}`);
13447
+ return new Mo(`${this.name}:${e}`);
13448
13448
  }
13449
13449
  /**
13450
13450
  * Print a debug message.
@@ -13572,8 +13572,8 @@ var ga = Ta(), To = class {
13572
13572
  prefix: Da[c]
13573
13573
  };
13574
13574
  this.getWriter(a)(
13575
- [l.timestamp(this.formatTimestamp(n.timestamp))].concat(t != null ? l.prefix(t) : []).concat(oo(o)).join(" "),
13576
- ...s.map(oo)
13575
+ [l.timestamp(this.formatTimestamp(n.timestamp))].concat(t != null ? l.prefix(t) : []).concat(to(o)).join(" "),
13576
+ ...s.map(to)
13577
13577
  );
13578
13578
  }
13579
13579
  formatTimestamp(e) {
@@ -13631,14 +13631,14 @@ function Ss(e, ...a) {
13631
13631
  }
13632
13632
  console.error(e, ...a);
13633
13633
  }
13634
- function ao(e) {
13634
+ function oo(e) {
13635
13635
  var a;
13636
13636
  return ga ? process.env[e] : (a = globalThis[e]) == null ? void 0 : a.toString();
13637
13637
  }
13638
13638
  function Ne(e, a) {
13639
13639
  return e !== void 0 && e !== a;
13640
13640
  }
13641
- function oo(e) {
13641
+ function to(e) {
13642
13642
  return typeof e > "u" ? "undefined" : e === null ? "null" : typeof e == "string" ? e : typeof e == "object" ? JSON.stringify(e) : e.toString();
13643
13643
  }
13644
13644
  var Cs = class extends Error {
@@ -13647,12 +13647,12 @@ var Cs = class extends Error {
13647
13647
  `Possible EventEmitter memory leak detected. ${o} ${a.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`
13648
13648
  ), this.emitter = e, this.type = a, this.count = o, this.name = "MaxListenersExceededWarning";
13649
13649
  }
13650
- }, Mo = class {
13650
+ }, Bo = class {
13651
13651
  static listenerCount(e, a) {
13652
13652
  return e.listenerCount(a);
13653
13653
  }
13654
13654
  constructor() {
13655
- this.events = /* @__PURE__ */ new Map(), this.maxListeners = Mo.defaultMaxListeners, this.hasWarnedAboutPotentialMemoryLeak = !1;
13655
+ this.events = /* @__PURE__ */ new Map(), this.maxListeners = Bo.defaultMaxListeners, this.hasWarnedAboutPotentialMemoryLeak = !1;
13656
13656
  }
13657
13657
  _emitInternalEvent(e, a, o) {
13658
13658
  this.emit(
@@ -13774,10 +13774,10 @@ var Cs = class extends Error {
13774
13774
  rawListeners(e) {
13775
13775
  return this.listeners(e);
13776
13776
  }
13777
- }, Bo = Mo;
13778
- Bo.defaultMaxListeners = 10;
13777
+ }, $o = Bo;
13778
+ $o.defaultMaxListeners = 10;
13779
13779
  var As = "x-interceptors-internal-request-id";
13780
- function to(e) {
13780
+ function io(e) {
13781
13781
  return (
13782
13782
  // @ts-ignore https://github.com/Microsoft/TypeScript/issues/24587
13783
13783
  globalThis[e] || void 0
@@ -13791,7 +13791,7 @@ function Is(e) {
13791
13791
  }
13792
13792
  var Ma = class {
13793
13793
  constructor(e) {
13794
- this.symbol = e, this.readyState = "INACTIVE", this.emitter = new Bo(), this.subscriptions = [], this.logger = new To(e.description), this.emitter.setMaxListeners(0), this.logger.info("constructing the interceptor...");
13794
+ this.symbol = e, this.readyState = "INACTIVE", this.emitter = new $o(), this.subscriptions = [], this.logger = new Mo(e.description), this.emitter.setMaxListeners(0), this.logger.info("constructing the interceptor...");
13795
13795
  }
13796
13796
  /**
13797
13797
  * Determine if this interceptor can be applied
@@ -13860,7 +13860,7 @@ var Ma = class {
13860
13860
  e.info("no interceptors running, skipping dispose...");
13861
13861
  return;
13862
13862
  }
13863
- if (this.clearInstance(), e.info("global symbol deleted:", to(this.symbol)), this.subscriptions.length > 0) {
13863
+ if (this.clearInstance(), e.info("global symbol deleted:", io(this.symbol)), this.subscriptions.length > 0) {
13864
13864
  e.info("disposing of %d subscriptions...", this.subscriptions.length);
13865
13865
  for (const a of this.subscriptions)
13866
13866
  a();
@@ -13870,7 +13870,7 @@ var Ma = class {
13870
13870
  }
13871
13871
  getInstance() {
13872
13872
  var e;
13873
- const a = to(this.symbol);
13873
+ const a = io(this.symbol);
13874
13874
  return this.logger.info("retrieved global instance:", (e = a == null ? void 0 : a.constructor) == null ? void 0 : e.name), a;
13875
13875
  }
13876
13876
  setInstance() {
@@ -13880,7 +13880,7 @@ var Ma = class {
13880
13880
  Is(this.symbol), this.logger.info("cleared global instance!", this.symbol.description);
13881
13881
  }
13882
13882
  };
13883
- function $o() {
13883
+ function Uo() {
13884
13884
  return Math.random().toString(16).slice(2);
13885
13885
  }
13886
13886
  var Pa = class extends Ma {
@@ -14010,7 +14010,7 @@ Please consider using a custom "serviceWorker.url" option to point to the actual
14010
14010
  }
14011
14011
  );
14012
14012
  };
14013
- function Uo(e = {}) {
14013
+ function No(e = {}) {
14014
14014
  e.quiet || console.log(
14015
14015
  `%c${B.formatMessage("Mocking disabled.")}`,
14016
14016
  "color:orangered;font-weight:bold;"
@@ -14024,7 +14024,7 @@ var Fs = (e) => function() {
14024
14024
  );
14025
14025
  return;
14026
14026
  }
14027
- e.workerChannel.send("MOCK_DEACTIVATE"), e.isMockingEnabled = !1, window.clearInterval(e.keepAliveInterval), window.postMessage({ type: "msw/worker:stop" }), Uo({ quiet: (o = e.startOptions) == null ? void 0 : o.quiet });
14027
+ e.workerChannel.send("MOCK_DEACTIVATE"), e.isMockingEnabled = !1, window.clearInterval(e.keepAliveInterval), window.postMessage({ type: "msw/worker:stop" }), No({ quiet: (o = e.startOptions) == null ? void 0 : o.quiet });
14028
14028
  }, Rs = {
14029
14029
  serviceWorker: {
14030
14030
  url: "/mockServiceWorker.js",
@@ -14056,7 +14056,7 @@ function Os() {
14056
14056
  };
14057
14057
  return e;
14058
14058
  }
14059
- var Ee, _e, ia, co, Ba = (co = class extends Promise {
14059
+ var Ee, _e, ia, lo, Ba = (lo = class extends Promise {
14060
14060
  constructor(a = null) {
14061
14061
  const o = Os();
14062
14062
  super((t, i) => {
@@ -14088,7 +14088,7 @@ var Ee, _e, ia, co, Ba = (co = class extends Promise {
14088
14088
  resolve: { configurable: !0, value: this.resolve },
14089
14089
  reject: { configurable: !0, value: this.reject }
14090
14090
  });
14091
- }, co), ua = class extends Error {
14091
+ }, lo), ua = class extends Error {
14092
14092
  constructor(e) {
14093
14093
  super(e), this.name = "InterceptorError", Object.setPrototypeOf(this, ua.prototype);
14094
14094
  }
@@ -14165,7 +14165,7 @@ function Ms(e) {
14165
14165
  function Bs(e) {
14166
14166
  return e == null || !(e instanceof Error) ? !1 : "code" in e && "errno" in e;
14167
14167
  }
14168
- async function No(e) {
14168
+ async function Wo(e) {
14169
14169
  const a = async (s) => (s instanceof Error ? e.onError(s) : Ms(s) ? e.onRequestError(s) : await e.onResponse(s), !0), o = async (s) => {
14170
14170
  if (s instanceof ua)
14171
14171
  throw i.error;
@@ -14224,7 +14224,7 @@ async function No(e) {
14224
14224
  }
14225
14225
  return i.data ? a(i.data) : !1;
14226
14226
  }
14227
- function Wo(e) {
14227
+ function Go(e) {
14228
14228
  const a = Object.getOwnPropertyDescriptor(globalThis, e);
14229
14229
  return typeof a > "u" || typeof a.get == "function" && typeof a.get() > "u" || typeof a.get > "u" && a.value == null ? !1 : typeof a.set > "u" && !a.configurable ? (console.error(
14230
14230
  `[MSW] Failed to apply interceptor: the global \`${e}\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`
@@ -14267,16 +14267,16 @@ async function Ns(e, a) {
14267
14267
  return Promise.reject(Se("redirect count exceeded"));
14268
14268
  if (Object.defineProperty(e, Ea, {
14269
14269
  value: (Reflect.get(e, Ea) || 0) + 1
14270
- }), e.mode === "cors" && (t.username || t.password) && !io(o, t))
14270
+ }), e.mode === "cors" && (t.username || t.password) && !so(o, t))
14271
14271
  return Promise.reject(
14272
14272
  Se('cross origin not allowed for request mode "cors"')
14273
14273
  );
14274
14274
  const i = {};
14275
14275
  return ([301, 302].includes(a.status) && e.method === "POST" || a.status === 303 && !["HEAD", "GET"].includes(e.method)) && (i.method = "GET", i.body = null, Us.forEach((s) => {
14276
14276
  e.headers.delete(s);
14277
- })), io(o, t) || (e.headers.delete("authorization"), e.headers.delete("proxy-authorization"), e.headers.delete("cookie"), e.headers.delete("host")), i.headers = e.headers, fetch(new Request(t, i));
14277
+ })), so(o, t) || (e.headers.delete("authorization"), e.headers.delete("proxy-authorization"), e.headers.delete("cookie"), e.headers.delete("host")), i.headers = e.headers, fetch(new Request(t, i));
14278
14278
  }
14279
- function io(e, a) {
14279
+ function so(e, a) {
14280
14280
  return e.origin === a.origin && e.origin === "null" || e.protocol === a.protocol && e.hostname === a.hostname && e.port === a.port;
14281
14281
  }
14282
14282
  var Ws = class extends TransformStream {
@@ -14325,12 +14325,12 @@ function Js(e) {
14325
14325
  );
14326
14326
  return a ? (e.body.pipeTo(a.writable), a.readable) : null;
14327
14327
  }
14328
- var Go = class extends Ma {
14328
+ var Ho = class extends Ma {
14329
14329
  constructor() {
14330
- super(Go.symbol);
14330
+ super(Ho.symbol);
14331
14331
  }
14332
14332
  checkEnvironment() {
14333
- return Wo("fetch");
14333
+ return Go("fetch");
14334
14334
  }
14335
14335
  async setup() {
14336
14336
  const e = globalThis.fetch;
@@ -14338,11 +14338,11 @@ var Go = class extends Ma {
14338
14338
  !e[Re],
14339
14339
  'Failed to patch the "fetch" module: already patched.'
14340
14340
  ), globalThis.fetch = async (a, o) => {
14341
- const t = $o(), i = typeof a == "string" && typeof location < "u" && !$s(a) ? new URL(a, location.origin) : a, s = new Request(i, o), n = new Ba(), r = new $a(s);
14341
+ const t = Uo(), i = typeof a == "string" && typeof location < "u" && !$s(a) ? new URL(a, location.origin) : a, s = new Request(i, o), n = new Ba(), r = new $a(s);
14342
14342
  return this.logger.info("[%s] %s", s.method, s.url), this.logger.info("awaiting for the mocked response..."), this.logger.info(
14343
14343
  'emitting the "request" event for %s listener(s)...',
14344
14344
  this.emitter.listenerCount("request")
14345
- ), await No({
14345
+ ), await Wo({
14346
14346
  request: s,
14347
14347
  requestId: t,
14348
14348
  emitter: this.emitter,
@@ -14413,13 +14413,13 @@ var Go = class extends Ma {
14413
14413
  );
14414
14414
  });
14415
14415
  }
14416
- }, Ho = Go;
14417
- Ho.symbol = Symbol("fetch");
14416
+ }, Vo = Ho;
14417
+ Vo.symbol = Symbol("fetch");
14418
14418
  function Xs(e, a) {
14419
14419
  const o = new Uint8Array(e.byteLength + a.byteLength);
14420
14420
  return o.set(e, 0), o.set(a, e.byteLength), o;
14421
14421
  }
14422
- var Vo = class {
14422
+ var Jo = class {
14423
14423
  constructor(e, a) {
14424
14424
  this.NONE = 0, this.CAPTURING_PHASE = 1, this.AT_TARGET = 2, this.BUBBLING_PHASE = 3, this.type = "", this.srcElement = null, this.currentTarget = null, this.eventPhase = 0, this.isTrusted = !0, this.composed = !1, this.cancelable = !0, this.defaultPrevented = !1, this.bubbles = !0, this.lengthComputable = !0, this.loaded = 0, this.total = 0, this.cancelBubble = !1, this.returnValue = !0, this.type = e, this.target = (a == null ? void 0 : a.target) || null, this.currentTarget = (a == null ? void 0 : a.currentTarget) || null, this.timeStamp = Date.now();
14425
14425
  }
@@ -14436,7 +14436,7 @@ var Vo = class {
14436
14436
  }
14437
14437
  stopImmediatePropagation() {
14438
14438
  }
14439
- }, Ks = class extends Vo {
14439
+ }, Ks = class extends Jo {
14440
14440
  constructor(e, a) {
14441
14441
  super(e), this.lengthComputable = (a == null ? void 0 : a.lengthComputable) || !1, this.composed = (a == null ? void 0 : a.composed) || !1, this.loaded = (a == null ? void 0 : a.loaded) || 0, this.total = (a == null ? void 0 : a.total) || 0;
14442
14442
  }
@@ -14455,18 +14455,18 @@ function Qs(e, a, o) {
14455
14455
  lengthComputable: !0,
14456
14456
  loaded: (o == null ? void 0 : o.loaded) || 0,
14457
14457
  total: (o == null ? void 0 : o.total) || 0
14458
- }) : new Vo(a, {
14458
+ }) : new Jo(a, {
14459
14459
  target: e,
14460
14460
  currentTarget: e
14461
14461
  });
14462
14462
  }
14463
- function Jo(e, a) {
14463
+ function Xo(e, a) {
14464
14464
  if (!(a in e))
14465
14465
  return null;
14466
14466
  if (Object.prototype.hasOwnProperty.call(e, a))
14467
14467
  return e;
14468
14468
  const t = Reflect.getPrototypeOf(e);
14469
- return t ? Jo(t, a) : null;
14469
+ return t ? Xo(t, a) : null;
14470
14470
  }
14471
14471
  function xa(e, a) {
14472
14472
  return new Proxy(e, Zs(a));
@@ -14478,7 +14478,7 @@ function Zs(e) {
14478
14478
  return a.call(c, r, l);
14479
14479
  }), s.set = function(n, r, c) {
14480
14480
  const l = () => {
14481
- const h = Jo(n, r) || n, p = Reflect.getOwnPropertyDescriptor(
14481
+ const h = Xo(n, r) || n, p = Reflect.getOwnPropertyDescriptor(
14482
14482
  h,
14483
14483
  r
14484
14484
  );
@@ -14535,13 +14535,13 @@ function tn(e) {
14535
14535
  }
14536
14536
  return a;
14537
14537
  }
14538
- async function so(e) {
14538
+ async function no(e) {
14539
14539
  const a = e.headers.get("content-length");
14540
14540
  return a != null && a !== "" ? Number(a) : (await e.arrayBuffer()).byteLength;
14541
14541
  }
14542
14542
  var Ge = Symbol("kIsRequestHandled"), sn = Ta(), za = Symbol("kFetchRequest"), nn = class {
14543
14543
  constructor(e, a) {
14544
- this.initialRequest = e, this.logger = a, this.method = "GET", this.url = null, this[Ge] = !1, this.events = /* @__PURE__ */ new Map(), this.uploadEvents = /* @__PURE__ */ new Map(), this.requestId = $o(), this.requestHeaders = new Headers(), this.responseBuffer = new Uint8Array(), this.request = xa(e, {
14544
+ this.initialRequest = e, this.logger = a, this.method = "GET", this.url = null, this[Ge] = !1, this.events = /* @__PURE__ */ new Map(), this.uploadEvents = /* @__PURE__ */ new Map(), this.requestId = Uo(), this.requestHeaders = new Headers(), this.responseBuffer = new Uint8Array(), this.request = xa(e, {
14545
14545
  setProperty: ([o, t], i) => {
14546
14546
  switch (o) {
14547
14547
  case "ontimeout": {
@@ -14559,7 +14559,7 @@ var Ge = Symbol("kIsRequestHandled"), sn = Ta(), za = Symbol("kFetchRequest"), n
14559
14559
  switch (o) {
14560
14560
  case "open": {
14561
14561
  const [n, r] = t;
14562
- return typeof r > "u" ? (this.method = "GET", this.url = no(n)) : (this.method = n, this.url = no(r)), this.logger = this.logger.extend(`${this.method} ${this.url.href}`), this.logger.info("open", this.method, this.url.href), i();
14562
+ return typeof r > "u" ? (this.method = "GET", this.url = ro(n)) : (this.method = n, this.url = ro(r)), this.logger = this.logger.extend(`${this.method} ${this.url.href}`), this.logger.info("open", this.method, this.url.href), i();
14563
14563
  }
14564
14564
  case "addEventListener": {
14565
14565
  const [n, r] = t;
@@ -14656,7 +14656,7 @@ var Ge = Symbol("kIsRequestHandled"), sn = Ta(), za = Symbol("kFetchRequest"), n
14656
14656
  */
14657
14657
  async respondWith(e) {
14658
14658
  if (this[Ge] = !0, this[za]) {
14659
- const t = await so(
14659
+ const t = await no(
14660
14660
  this[za]
14661
14661
  );
14662
14662
  this.trigger("loadstart", this.request.upload, {
@@ -14716,7 +14716,7 @@ var Ge = Symbol("kIsRequestHandled"), sn = Ta(), za = Symbol("kFetchRequest"), n
14716
14716
  get: () => this.responseXML
14717
14717
  }
14718
14718
  });
14719
- const a = await so(e.clone());
14719
+ const a = await no(e.clone());
14720
14720
  this.logger.info("calculated response body length", a), this.trigger("loadstart", this.request, {
14721
14721
  loaded: 0,
14722
14722
  total: a
@@ -14875,7 +14875,7 @@ var Ge = Symbol("kIsRequestHandled"), sn = Ta(), za = Symbol("kFetchRequest"), n
14875
14875
  return De(o, "headers", t), this.logger.info("converted request to a Fetch API Request!", o), o;
14876
14876
  }
14877
14877
  };
14878
- function no(e) {
14878
+ function ro(e) {
14879
14879
  return typeof location > "u" ? new URL(e) : new URL(e.toString(), location.href);
14880
14880
  }
14881
14881
  function De(e, a, o) {
@@ -14915,7 +14915,7 @@ function rn({
14915
14915
  this.logger.info("awaiting mocked response..."), this.logger.info(
14916
14916
  'emitting the "request" event for %s listener(s)...',
14917
14917
  e.listenerCount("request")
14918
- ), await No({
14918
+ ), await Wo({
14919
14919
  request: l,
14920
14920
  requestId: h,
14921
14921
  controller: p,
@@ -14951,12 +14951,12 @@ function rn({
14951
14951
  }
14952
14952
  });
14953
14953
  }
14954
- var Xo = class extends Ma {
14954
+ var Ko = class extends Ma {
14955
14955
  constructor() {
14956
- super(Xo.interceptorSymbol);
14956
+ super(Ko.interceptorSymbol);
14957
14957
  }
14958
14958
  checkEnvironment() {
14959
- return Wo("XMLHttpRequest");
14959
+ return Go("XMLHttpRequest");
14960
14960
  }
14961
14961
  setup() {
14962
14962
  const e = this.logger.extend("setup");
@@ -14984,15 +14984,15 @@ var Xo = class extends Ma {
14984
14984
  );
14985
14985
  });
14986
14986
  }
14987
- }, Ko = Xo;
14988
- Ko.interceptorSymbol = Symbol("xhr");
14987
+ }, Yo = Ko;
14988
+ Yo.interceptorSymbol = Symbol("xhr");
14989
14989
  function un(e, a) {
14990
14990
  const o = new Pa({
14991
14991
  name: "fallback",
14992
- interceptors: [new Ho(), new Ko()]
14992
+ interceptors: [new Vo(), new Yo()]
14993
14993
  });
14994
14994
  return o.on("request", async ({ request: t, requestId: i, controller: s }) => {
14995
- const n = t.clone(), r = await Lo(
14995
+ const n = t.clone(), r = await Io(
14996
14996
  t,
14997
14997
  i,
14998
14998
  e.getRequestHandlers().filter(Oa("RequestHandler")),
@@ -15030,7 +15030,7 @@ function cn(e) {
15030
15030
  e.fallbackInterceptor = un(
15031
15031
  e,
15032
15032
  o
15033
- ), _o({
15033
+ ), To({
15034
15034
  message: "Mocking enabled (fallback mode).",
15035
15035
  quiet: o.quiet
15036
15036
  });
@@ -15039,7 +15039,7 @@ function cn(e) {
15039
15039
  function ln(e) {
15040
15040
  return function() {
15041
15041
  var o, t;
15042
- (o = e.fallbackInterceptor) == null || o.dispose(), Uo({ quiet: (t = e.startOptions) == null ? void 0 : t.quiet });
15042
+ (o = e.fallbackInterceptor) == null || o.dispose(), No({ quiet: (t = e.startOptions) == null ? void 0 : t.quiet });
15043
15043
  };
15044
15044
  }
15045
15045
  function mn() {
@@ -15142,7 +15142,7 @@ var pn = class extends wi {
15142
15142
  async start(a = {}) {
15143
15143
  return a.waitUntilReady === !0 && B.warn(
15144
15144
  'The "waitUntilReady" option has been deprecated. Please remove it from this "worker.start()" call. Follow the recommended Browser integration (https://mswjs.io/docs/integrations/browser) to eliminate any race conditions between the Service Worker registration and any requests made by your application on initial render.'
15145
- ), this.context.startOptions = Io(
15145
+ ), this.context.startOptions = Do(
15146
15146
  Rs,
15147
15147
  a
15148
15148
  ), Gi({
@@ -15198,7 +15198,7 @@ const dn = {
15198
15198
  Conflict409: (e) => new Wa(ea(e))
15199
15199
  }, gn = {
15200
15200
  getDate: (e) => e ? new Date(e) : /* @__PURE__ */ new Date()
15201
- }, Fa = (e, a) => lo(e) ? e.map((o) => Fa(o, a)) : mo(e) ? at(e, (o) => Fa(o, a)) : a(e);
15201
+ }, Fa = (e, a) => mo(e) ? e.map((o) => Fa(o, a)) : po(e) ? at(e, (o) => Fa(o, a)) : a(e);
15202
15202
  class kn {
15203
15203
  constructor() {
15204
15204
  this.cookies = {};
@@ -15413,11 +15413,11 @@ class jn {
15413
15413
  }
15414
15414
  createDbInstance() {
15415
15415
  var a;
15416
- return new Ha(((a = this.config) == null ? void 0 : a.database) ?? "defaultIndexDb");
15416
+ return new Va(((a = this.config) == null ? void 0 : a.database) ?? "defaultIndexDb");
15417
15417
  }
15418
15418
  async dropDbOnVersionChange(a) {
15419
15419
  const o = this.createDbInstance();
15420
- return await Ha.exists(o.name) ? (await o.open(), o.verno !== a ? (await o.delete(), !0) : (o.close(), !1)) : !0;
15420
+ return await Va.exists(o.name) ? (await o.open(), o.verno !== a ? (await o.delete(), !0) : (o.close(), !1)) : !0;
15421
15421
  }
15422
15422
  // --- This method signifies that a section of operations is executed in a transaction
15423
15423
  async transaction(a) {
@@ -15471,7 +15471,7 @@ async function vn(e) {
15471
15471
  skipTake: async (t, i) => await new N(await e.toArray()).skipTake(t, i)
15472
15472
  };
15473
15473
  }
15474
- function ro(e, a) {
15474
+ function uo(e, a) {
15475
15475
  if (!a) return e;
15476
15476
  const o = { ...e };
15477
15477
  return Object.keys(e).forEach((t) => {
@@ -15558,7 +15558,7 @@ class wn {
15558
15558
  function En(...e) {
15559
15559
  const a = {};
15560
15560
  for (const o of e) {
15561
- if (!mo(o))
15561
+ if (!po(o))
15562
15562
  throw new TypeError("All arguments must be of type object");
15563
15563
  const t = new Headers(o);
15564
15564
  for (const [i, s] of t.entries())
@@ -15653,7 +15653,7 @@ class Sn {
15653
15653
  },
15654
15654
  s
15655
15655
  );
15656
- await Zo();
15656
+ this.apiDef.artificialDelay === void 0 ? await Ha("real") : this.apiDef.artificialDelay !== 0 && await Ha(this.apiDef.artificialDelay);
15657
15657
  const c = new kn(), l = new fn();
15658
15658
  try {
15659
15659
  const p = await this.backend.executeOperation(
@@ -15692,8 +15692,8 @@ class Sn {
15692
15692
  convertRequestParams(a, o) {
15693
15693
  return {
15694
15694
  ...a,
15695
- pathParams: ro(a.pathParams, o.pathParamTypes),
15696
- queryParams: ro(a.queryParams, o.queryParamTypes)
15695
+ pathParams: uo(a.pathParams, o.pathParamTypes),
15696
+ queryParams: uo(a.queryParams, o.queryParamTypes)
15697
15697
  };
15698
15698
  }
15699
15699
  }
@@ -15702,7 +15702,7 @@ function Cn(e) {
15702
15702
  let o = [];
15703
15703
  return Object.entries(a).forEach(([t, i]) => {
15704
15704
  let s = [i.url];
15705
- lo(i.url) && (s = i.url), s.forEach((n) => {
15705
+ mo(i.url) && (s = i.url), s.forEach((n) => {
15706
15706
  o.push(
15707
15707
  et[i.method](
15708
15708
  `${e.getApiUrl()}${n}`,