storybook 9.0.13 → 9.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,5 @@
1
- var ar = Object.defineProperty;
2
- var i = (e, t) => ar(e, "name", { value: t, configurable: !0 });
3
- var fr = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
4
-
5
- // (disabled):../node_modules/util/util.js
6
- var _n = fr(() => {
7
- });
1
+ var lr = Object.defineProperty;
2
+ var i = (e, t) => lr(e, "name", { value: t, configurable: !0 });
8
3
 
9
4
  // src/instrumenter/instrumenter.ts
10
5
  import { once as qs } from "storybook/internal/client-logger";
@@ -16,7 +11,7 @@ import {
16
11
  import { global as Z } from "@storybook/global";
17
12
 
18
13
  // ../node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
19
- var mr = {
14
+ var fr = {
20
15
  reset: [0, 0],
21
16
  bold: [1, 22, "\x1B[22m\x1B[1m"],
22
17
  dim: [2, 22, "\x1B[22m\x1B[2m"],
@@ -58,50 +53,50 @@ var mr = {
58
53
  bgMagentaBright: [105, 49],
59
54
  bgCyanBright: [106, 49],
60
55
  bgWhiteBright: [107, 49]
61
- }, pr = Object.entries(mr);
56
+ }, mr = Object.entries(fr);
62
57
  function Ge(e) {
63
58
  return String(e);
64
59
  }
65
60
  i(Ge, "a");
66
61
  Ge.open = "";
67
62
  Ge.close = "";
68
- function Dt(e = !1) {
63
+ function Ft(e = !1) {
69
64
  let t = typeof process < "u" ? process : void 0, n = t?.env || {}, r = t?.argv || [];
70
65
  return !("NO_COLOR" in n || r.includes("--no-color")) && ("FORCE_COLOR" in n || r.includes("--color") || t?.platform === "win32" || e && n.
71
66
  TERM !== "dumb" || "CI" in n) || typeof window < "u" && !!window.chrome;
72
67
  }
73
- i(Dt, "C");
74
- function Ft(e = !1) {
75
- let t = Dt(e), n = /* @__PURE__ */ i((c, l, u, m) => {
76
- let p = "", a = 0;
68
+ i(Ft, "C");
69
+ function jt(e = !1) {
70
+ let t = Ft(e), n = /* @__PURE__ */ i((c, a, u, m) => {
71
+ let p = "", l = 0;
77
72
  do
78
- p += c.substring(a, m) + u, a = m + l.length, m = c.indexOf(l, a);
73
+ p += c.substring(l, m) + u, l = m + a.length, m = c.indexOf(a, l);
79
74
  while (~m);
80
- return p + c.substring(a);
81
- }, "i"), r = /* @__PURE__ */ i((c, l, u = c) => {
75
+ return p + c.substring(l);
76
+ }, "i"), r = /* @__PURE__ */ i((c, a, u = c) => {
82
77
  let m = /* @__PURE__ */ i((p) => {
83
- let a = String(p), S = a.indexOf(l, c.length);
84
- return ~S ? c + n(a, l, u, S) + l : c + a + l;
78
+ let l = String(p), S = l.indexOf(a, c.length);
79
+ return ~S ? c + n(l, a, u, S) + a : c + l + a;
85
80
  }, "o");
86
- return m.open = c, m.close = l, m;
81
+ return m.open = c, m.close = a, m;
87
82
  }, "g"), o = {
88
83
  isColorSupported: t
89
84
  }, s = /* @__PURE__ */ i((c) => `\x1B[${c}m`, "d");
90
- for (let [c, l] of pr)
85
+ for (let [c, a] of mr)
91
86
  o[c] = t ? r(
92
- s(l[0]),
93
- s(l[1]),
94
- l[2]
87
+ s(a[0]),
88
+ s(a[1]),
89
+ a[2]
95
90
  ) : Ge;
96
91
  return o;
97
92
  }
98
- i(Ft, "p");
93
+ i(jt, "p");
99
94
 
100
95
  // ../node_modules/tinyrainbow/dist/browser.js
101
- var v = Ft();
96
+ var v = jt();
102
97
 
103
98
  // ../node_modules/@vitest/pretty-format/dist/index.js
104
- function Jt(e, t) {
99
+ function Xt(e, t) {
105
100
  return t.forEach(function(n) {
106
101
  n && typeof n != "string" && !Array.isArray(n) && Object.keys(n).forEach(function(r) {
107
102
  if (r !== "default" && !(r in e)) {
@@ -116,40 +111,40 @@ function Jt(e, t) {
116
111
  });
117
112
  }), Object.freeze(e);
118
113
  }
119
- i(Jt, "_mergeNamespaces");
120
- function gr(e, t) {
114
+ i(Xt, "_mergeNamespaces");
115
+ function pr(e, t) {
121
116
  let n = Object.keys(e), r = t === null ? n : n.sort(t);
122
117
  if (Object.getOwnPropertySymbols)
123
118
  for (let o of Object.getOwnPropertySymbols(e))
124
119
  Object.getOwnPropertyDescriptor(e, o).enumerable && r.push(o);
125
120
  return r;
126
121
  }
127
- i(gr, "getKeysOfEnumerableProperties");
128
- function _e(e, t, n, r, o, s, c = ": ") {
129
- let l = "", u = 0, m = e.next();
122
+ i(pr, "getKeysOfEnumerableProperties");
123
+ function Ee(e, t, n, r, o, s, c = ": ") {
124
+ let a = "", u = 0, m = e.next();
130
125
  if (!m.done) {
131
- l += t.spacingOuter;
126
+ a += t.spacingOuter;
132
127
  let p = n + t.indent;
133
128
  for (; !m.done; ) {
134
- if (l += p, u++ === t.maxWidth) {
135
- l += "\u2026";
129
+ if (a += p, u++ === t.maxWidth) {
130
+ a += "\u2026";
136
131
  break;
137
132
  }
138
- let a = s(m.value[0], t, p, r, o), S = s(m.value[1], t, p, r, o);
139
- l += a + c + S, m = e.next(), m.done ? t.min || (l += ",") : l += `,${t.spacingInner}`;
133
+ let l = s(m.value[0], t, p, r, o), S = s(m.value[1], t, p, r, o);
134
+ a += l + c + S, m = e.next(), m.done ? t.min || (a += ",") : a += `,${t.spacingInner}`;
140
135
  }
141
- l += t.spacingOuter + n;
136
+ a += t.spacingOuter + n;
142
137
  }
143
- return l;
138
+ return a;
144
139
  }
145
- i(_e, "printIteratorEntries");
140
+ i(Ee, "printIteratorEntries");
146
141
  function Qe(e, t, n, r, o, s) {
147
- let c = "", l = 0, u = e.next();
142
+ let c = "", a = 0, u = e.next();
148
143
  if (!u.done) {
149
144
  c += t.spacingOuter;
150
145
  let m = n + t.indent;
151
146
  for (; !u.done; ) {
152
- if (c += m, l++ === t.maxWidth) {
147
+ if (c += m, a++ === t.maxWidth) {
153
148
  c += "\u2026";
154
149
  break;
155
150
  }
@@ -160,10 +155,10 @@ function Qe(e, t, n, r, o, s) {
160
155
  return c;
161
156
  }
162
157
  i(Qe, "printIteratorValues");
163
- function Pe(e, t, n, r, o, s) {
158
+ function Re(e, t, n, r, o, s) {
164
159
  let c = "";
165
160
  e = e instanceof ArrayBuffer ? new DataView(e) : e;
166
- let l = /* @__PURE__ */ i((m) => m instanceof DataView, "isDataView"), u = l(e) ? e.byteLength : e.length;
161
+ let a = /* @__PURE__ */ i((m) => m instanceof DataView, "isDataView"), u = a(e) ? e.byteLength : e.length;
167
162
  if (u > 0) {
168
163
  c += t.spacingOuter;
169
164
  let m = n + t.indent;
@@ -172,87 +167,87 @@ function Pe(e, t, n, r, o, s) {
172
167
  c += "\u2026";
173
168
  break;
174
169
  }
175
- (l(e) || p in e) && (c += s(l(e) ? e.getInt8(p) : e[p], t, m, r, o)), p < u - 1 ? c += `,${t.spacingInner}` : t.min || (c += ",");
170
+ (a(e) || p in e) && (c += s(a(e) ? e.getInt8(p) : e[p], t, m, r, o)), p < u - 1 ? c += `,${t.spacingInner}` : t.min || (c += ",");
176
171
  }
177
172
  c += t.spacingOuter + n;
178
173
  }
179
174
  return c;
180
175
  }
181
- i(Pe, "printListItems");
176
+ i(Re, "printListItems");
182
177
  function ve(e, t, n, r, o, s) {
183
- let c = "", l = gr(e, t.compareKeys);
184
- if (l.length > 0) {
178
+ let c = "", a = pr(e, t.compareKeys);
179
+ if (a.length > 0) {
185
180
  c += t.spacingOuter;
186
181
  let u = n + t.indent;
187
- for (let m = 0; m < l.length; m++) {
188
- let p = l[m], a = s(p, t, u, r, o), S = s(e[p], t, u, r, o);
189
- c += `${u + a}: ${S}`, m < l.length - 1 ? c += `,${t.spacingInner}` : t.min || (c += ",");
182
+ for (let m = 0; m < a.length; m++) {
183
+ let p = a[m], l = s(p, t, u, r, o), S = s(e[p], t, u, r, o);
184
+ c += `${u + l}: ${S}`, m < a.length - 1 ? c += `,${t.spacingInner}` : t.min || (c += ",");
190
185
  }
191
186
  c += t.spacingOuter + n;
192
187
  }
193
188
  return c;
194
189
  }
195
190
  i(ve, "printObjectProperties");
196
- var hr = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621, Ae = " ", dr = /* @__PURE__ */ i((e, t, n, r, o, s) => {
191
+ var gr = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621, we = " ", hr = /* @__PURE__ */ i((e, t, n, r, o, s) => {
197
192
  let c = e.toString();
198
193
  if (c === "ArrayContaining" || c === "ArrayNotContaining")
199
- return ++r > t.maxDepth ? `[${c}]` : `${c + Ae}[${Pe(e.sample, t, n, r, o, s)}]`;
194
+ return ++r > t.maxDepth ? `[${c}]` : `${c + we}[${Re(e.sample, t, n, r, o, s)}]`;
200
195
  if (c === "ObjectContaining" || c === "ObjectNotContaining")
201
- return ++r > t.maxDepth ? `[${c}]` : `${c + Ae}{${ve(e.sample, t, n, r, o, s)}}`;
196
+ return ++r > t.maxDepth ? `[${c}]` : `${c + we}{${ve(e.sample, t, n, r, o, s)}}`;
202
197
  if (c === "StringMatching" || c === "StringNotMatching" || c === "StringContaining" || c === "StringNotContaining")
203
- return c + Ae + s(e.sample, t, n, r, o);
198
+ return c + we + s(e.sample, t, n, r, o);
204
199
  if (typeof e.toAsymmetricMatcher != "function")
205
200
  throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);
206
201
  return e.toAsymmetricMatcher();
207
- }, "serialize$5"), yr = /* @__PURE__ */ i((e) => e && e.$$typeof === hr, "test$5"), br = {
208
- serialize: dr,
209
- test: yr
210
- }, Sr = " ", Xt = /* @__PURE__ */ new Set(["DOMStringMap", "NamedNodeMap"]), Er = /^(?:HTML\w*Collection|NodeList)$/;
211
- function _r(e) {
212
- return Xt.has(e) || Er.test(e);
213
- }
214
- i(_r, "testName");
215
- var Tr = /* @__PURE__ */ i((e) => e && e.constructor && !!e.constructor.name && _r(e.constructor.name), "test$4");
216
- function Cr(e) {
202
+ }, "serialize$5"), dr = /* @__PURE__ */ i((e) => e && e.$$typeof === gr, "test$5"), yr = {
203
+ serialize: hr,
204
+ test: dr
205
+ }, br = " ", Zt = /* @__PURE__ */ new Set(["DOMStringMap", "NamedNodeMap"]), Sr = /^(?:HTML\w*Collection|NodeList)$/;
206
+ function Er(e) {
207
+ return Zt.has(e) || Sr.test(e);
208
+ }
209
+ i(Er, "testName");
210
+ var _r = /* @__PURE__ */ i((e) => e && e.constructor && !!e.constructor.name && Er(e.constructor.name), "test$4");
211
+ function Tr(e) {
217
212
  return e.constructor.name === "NamedNodeMap";
218
213
  }
219
- i(Cr, "isNamedNodeMap");
220
- var Or = /* @__PURE__ */ i((e, t, n, r, o, s) => {
214
+ i(Tr, "isNamedNodeMap");
215
+ var Cr = /* @__PURE__ */ i((e, t, n, r, o, s) => {
221
216
  let c = e.constructor.name;
222
- return ++r > t.maxDepth ? `[${c}]` : (t.min ? "" : c + Sr) + (Xt.has(c) ? `{${ve(Cr(e) ? [...e].reduce((l, u) => (l[u.name] = u.value, l),
223
- {}) : { ...e }, t, n, r, o, s)}}` : `[${Pe([...e], t, n, r, o, s)}]`);
224
- }, "serialize$4"), $r = {
225
- serialize: Or,
226
- test: Tr
217
+ return ++r > t.maxDepth ? `[${c}]` : (t.min ? "" : c + br) + (Zt.has(c) ? `{${ve(Tr(e) ? [...e].reduce((a, u) => (a[u.name] = u.value, a),
218
+ {}) : { ...e }, t, n, r, o, s)}}` : `[${Re([...e], t, n, r, o, s)}]`);
219
+ }, "serialize$4"), Or = {
220
+ serialize: Cr,
221
+ test: _r
227
222
  };
228
- function Zt(e) {
223
+ function Qt(e) {
229
224
  return e.replaceAll("<", "&lt;").replaceAll(">", "&gt;");
230
225
  }
231
- i(Zt, "escapeHTML");
226
+ i(Qt, "escapeHTML");
232
227
  function et(e, t, n, r, o, s, c) {
233
- let l = r + n.indent, u = n.colors;
228
+ let a = r + n.indent, u = n.colors;
234
229
  return e.map((m) => {
235
- let p = t[m], a = c(p, n, l, o, s);
236
- return typeof p != "string" && (a.includes(`
237
- `) && (a = n.spacingOuter + l + a + n.spacingOuter + r), a = `{${a}}`), `${n.spacingInner + r + u.prop.open + m + u.prop.close}=${u.value.open}${a}${u.
230
+ let p = t[m], l = c(p, n, a, o, s);
231
+ return typeof p != "string" && (l.includes(`
232
+ `) && (l = n.spacingOuter + a + l + n.spacingOuter + r), l = `{${l}}`), `${n.spacingInner + r + u.prop.open + m + u.prop.close}=${u.value.open}${l}${u.
238
233
  value.close}`;
239
234
  }).join("");
240
235
  }
241
236
  i(et, "printProps");
242
237
  function tt(e, t, n, r, o, s) {
243
- return e.map((c) => t.spacingOuter + n + (typeof c == "string" ? Qt(c, t) : s(c, t, n, r, o))).join("");
238
+ return e.map((c) => t.spacingOuter + n + (typeof c == "string" ? vt(c, t) : s(c, t, n, r, o))).join("");
244
239
  }
245
240
  i(tt, "printChildren");
246
- function Qt(e, t) {
241
+ function vt(e, t) {
247
242
  let n = t.colors.content;
248
- return n.open + Zt(e) + n.close;
243
+ return n.open + Qt(e) + n.close;
249
244
  }
250
- i(Qt, "printText");
251
- function wr(e, t) {
245
+ i(vt, "printText");
246
+ function $r(e, t) {
252
247
  let n = t.colors.comment;
253
- return `${n.open}<!--${Zt(e)}-->${n.close}`;
248
+ return `${n.open}<!--${Qt(e)}-->${n.close}`;
254
249
  }
255
- i(wr, "printComment");
250
+ i($r, "printComment");
256
251
  function nt(e, t, n, r, o) {
257
252
  let s = r.colors.tag;
258
253
  return `${s.open}<${e}${t && s.close + t + r.spacingOuter + o + s.open}${n ? `>${s.close}${n}${r.spacingOuter}${o}${s.open}</${e}` : `${t &&
@@ -264,57 +259,57 @@ function rt(e, t) {
264
259
  return `${n.open}<${e}${n.close} \u2026${n.open} />${n.close}`;
265
260
  }
266
261
  i(rt, "printElementAsLeaf");
267
- var Ar = 1, vt = 3, en = 8, tn = 11, Rr = /^(?:(?:HTML|SVG)\w*)?Element$/;
268
- function Pr(e) {
262
+ var wr = 1, en = 3, tn = 8, nn = 11, Ar = /^(?:(?:HTML|SVG)\w*)?Element$/;
263
+ function Rr(e) {
269
264
  try {
270
265
  return typeof e.hasAttribute == "function" && e.hasAttribute("is");
271
266
  } catch {
272
267
  return !1;
273
268
  }
274
269
  }
275
- i(Pr, "testHasAttribute");
270
+ i(Rr, "testHasAttribute");
276
271
  function Nr(e) {
277
- let t = e.constructor.name, { nodeType: n, tagName: r } = e, o = typeof r == "string" && r.includes("-") || Pr(e);
278
- return n === Ar && (Rr.test(t) || o) || n === vt && t === "Text" || n === en && t === "Comment" || n === tn && t === "DocumentFragment";
272
+ let t = e.constructor.name, { nodeType: n, tagName: r } = e, o = typeof r == "string" && r.includes("-") || Rr(e);
273
+ return n === wr && (Ar.test(t) || o) || n === en && t === "Text" || n === tn && t === "Comment" || n === nn && t === "DocumentFragment";
279
274
  }
280
275
  i(Nr, "testNode");
281
- var Ir = /* @__PURE__ */ i((e) => {
276
+ var Pr = /* @__PURE__ */ i((e) => {
282
277
  var t;
283
278
  return (e == null || (t = e.constructor) === null || t === void 0 ? void 0 : t.name) && Nr(e);
284
279
  }, "test$3");
285
- function Mr(e) {
286
- return e.nodeType === vt;
287
- }
288
- i(Mr, "nodeIsText");
289
- function Lr(e) {
280
+ function Ir(e) {
290
281
  return e.nodeType === en;
291
282
  }
292
- i(Lr, "nodeIsComment");
293
- function He(e) {
283
+ i(Ir, "nodeIsText");
284
+ function Mr(e) {
294
285
  return e.nodeType === tn;
295
286
  }
287
+ i(Mr, "nodeIsComment");
288
+ function He(e) {
289
+ return e.nodeType === nn;
290
+ }
296
291
  i(He, "nodeIsFragment");
297
- var xr = /* @__PURE__ */ i((e, t, n, r, o, s) => {
292
+ var Lr = /* @__PURE__ */ i((e, t, n, r, o, s) => {
293
+ if (Ir(e))
294
+ return vt(e.data, t);
298
295
  if (Mr(e))
299
- return Qt(e.data, t);
300
- if (Lr(e))
301
- return wr(e.data, t);
296
+ return $r(e.data, t);
302
297
  let c = He(e) ? "DocumentFragment" : e.tagName.toLowerCase();
303
- return ++r > t.maxDepth ? rt(c, t) : nt(c, et(He(e) ? [] : Array.from(e.attributes, (l) => l.name).sort(), He(e) ? {} : [...e.attributes].
304
- reduce((l, u) => (l[u.name] = u.value, l), {}), t, n + t.indent, r, o, s), tt(Array.prototype.slice.call(e.childNodes || e.children), t, n +
298
+ return ++r > t.maxDepth ? rt(c, t) : nt(c, et(He(e) ? [] : Array.from(e.attributes, (a) => a.name).sort(), He(e) ? {} : [...e.attributes].
299
+ reduce((a, u) => (a[u.name] = u.value, a), {}), t, n + t.indent, r, o, s), tt(Array.prototype.slice.call(e.childNodes || e.children), t, n +
305
300
  t.indent, r, o, s), t, n);
306
- }, "serialize$3"), Dr = {
307
- serialize: xr,
308
- test: Ir
309
- }, Fr = "@@__IMMUTABLE_ITERABLE__@@", jr = "@@__IMMUTABLE_LIST__@@", kr = "@@__IMMUTABLE_KEYED__@@", Br = "@@__IMMUTABLE_MAP__@@", jt = "@@_\
310
- _IMMUTABLE_ORDERED__@@", zr = "@@__IMMUTABLE_RECORD__@@", Yr = "@@__IMMUTABLE_SEQ__@@", Ur = "@@__IMMUTABLE_SET__@@", Wr = "@@__IMMUTABLE_ST\
311
- ACK__@@", he = /* @__PURE__ */ i((e) => `Immutable.${e}`, "getImmutableName"), Ie = /* @__PURE__ */ i((e) => `[${e}]`, "printAsLeaf"), Ee = "\
312
- ", kt = "\u2026";
313
- function Vr(e, t, n, r, o, s, c) {
314
- return ++r > t.maxDepth ? Ie(he(c)) : `${he(c) + Ee}{${_e(e.entries(), t, n, r, o, s)}}`;
315
- }
316
- i(Vr, "printImmutableEntries");
317
- function qr(e) {
301
+ }, "serialize$3"), xr = {
302
+ serialize: Lr,
303
+ test: Pr
304
+ }, Dr = "@@__IMMUTABLE_ITERABLE__@@", Fr = "@@__IMMUTABLE_LIST__@@", jr = "@@__IMMUTABLE_KEYED__@@", kr = "@@__IMMUTABLE_MAP__@@", kt = "@@_\
305
+ _IMMUTABLE_ORDERED__@@", Br = "@@__IMMUTABLE_RECORD__@@", zr = "@@__IMMUTABLE_SEQ__@@", Yr = "@@__IMMUTABLE_SET__@@", Ur = "@@__IMMUTABLE_ST\
306
+ ACK__@@", de = /* @__PURE__ */ i((e) => `Immutable.${e}`, "getImmutableName"), Pe = /* @__PURE__ */ i((e) => `[${e}]`, "printAsLeaf"), Se = "\
307
+ ", Bt = "\u2026";
308
+ function Wr(e, t, n, r, o, s, c) {
309
+ return ++r > t.maxDepth ? Pe(de(c)) : `${de(c) + Se}{${Ee(e.entries(), t, n, r, o, s)}}`;
310
+ }
311
+ i(Wr, "printImmutableEntries");
312
+ function Vr(e) {
318
313
  let t = 0;
319
314
  return { next() {
320
315
  if (t < e._keys.length) {
@@ -330,37 +325,37 @@ function qr(e) {
330
325
  };
331
326
  } };
332
327
  }
333
- i(qr, "getRecordEntries");
334
- function Kr(e, t, n, r, o, s) {
335
- let c = he(e._name || "Record");
336
- return ++r > t.maxDepth ? Ie(c) : `${c + Ee}{${_e(qr(e), t, n, r, o, s)}}`;
328
+ i(Vr, "getRecordEntries");
329
+ function qr(e, t, n, r, o, s) {
330
+ let c = de(e._name || "Record");
331
+ return ++r > t.maxDepth ? Pe(c) : `${c + Se}{${Ee(Vr(e), t, n, r, o, s)}}`;
337
332
  }
338
- i(Kr, "printImmutableRecord");
339
- function Gr(e, t, n, r, o, s) {
340
- let c = he("Seq");
341
- return ++r > t.maxDepth ? Ie(c) : e[kr] ? `${c + Ee}{${e._iter || e._object ? _e(e.entries(), t, n, r, o, s) : kt}}` : `${c + Ee}[${e._iter ||
342
- e._array || e._collection || e._iterable ? Qe(e.values(), t, n, r, o, s) : kt}]`;
333
+ i(qr, "printImmutableRecord");
334
+ function Kr(e, t, n, r, o, s) {
335
+ let c = de("Seq");
336
+ return ++r > t.maxDepth ? Pe(c) : e[jr] ? `${c + Se}{${e._iter || e._object ? Ee(e.entries(), t, n, r, o, s) : Bt}}` : `${c + Se}[${e._iter ||
337
+ e._array || e._collection || e._iterable ? Qe(e.values(), t, n, r, o, s) : Bt}]`;
343
338
  }
344
- i(Gr, "printImmutableSeq");
339
+ i(Kr, "printImmutableSeq");
345
340
  function Je(e, t, n, r, o, s, c) {
346
- return ++r > t.maxDepth ? Ie(he(c)) : `${he(c) + Ee}[${Qe(e.values(), t, n, r, o, s)}]`;
341
+ return ++r > t.maxDepth ? Pe(de(c)) : `${de(c) + Se}[${Qe(e.values(), t, n, r, o, s)}]`;
347
342
  }
348
343
  i(Je, "printImmutableValues");
349
- var Hr = /* @__PURE__ */ i((e, t, n, r, o, s) => e[Br] ? Vr(e, t, n, r, o, s, e[jt] ? "OrderedMap" : "Map") : e[jr] ? Je(e, t, n, r, o, s, "\
350
- List") : e[Ur] ? Je(e, t, n, r, o, s, e[jt] ? "OrderedSet" : "Set") : e[Wr] ? Je(e, t, n, r, o, s, "Stack") : e[Yr] ? Gr(e, t, n, r, o, s) :
351
- Kr(e, t, n, r, o, s), "serialize$2"), Jr = /* @__PURE__ */ i((e) => e && (e[Fr] === !0 || e[zr] === !0), "test$2"), Xr = {
352
- serialize: Hr,
353
- test: Jr
344
+ var Gr = /* @__PURE__ */ i((e, t, n, r, o, s) => e[kr] ? Wr(e, t, n, r, o, s, e[kt] ? "OrderedMap" : "Map") : e[Fr] ? Je(e, t, n, r, o, s, "\
345
+ List") : e[Yr] ? Je(e, t, n, r, o, s, e[kt] ? "OrderedSet" : "Set") : e[Ur] ? Je(e, t, n, r, o, s, "Stack") : e[zr] ? Kr(e, t, n, r, o, s) :
346
+ qr(e, t, n, r, o, s), "serialize$2"), Hr = /* @__PURE__ */ i((e) => e && (e[Dr] === !0 || e[Br] === !0), "test$2"), Jr = {
347
+ serialize: Gr,
348
+ test: Hr
354
349
  };
355
- function nn(e) {
350
+ function rn(e) {
356
351
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
357
352
  }
358
- i(nn, "getDefaultExportFromCjs");
353
+ i(rn, "getDefaultExportFromCjs");
359
354
  var Xe = { exports: {} };
360
355
  var R = {};
361
- var Bt;
362
- function Zr() {
363
- return Bt || (Bt = 1, function() {
356
+ var zt;
357
+ function Xr() {
358
+ return zt || (zt = 1, function() {
364
359
  function e(f) {
365
360
  if (typeof f == "object" && f !== null) {
366
361
  var d = f.$$typeof;
@@ -376,10 +371,10 @@ function Zr() {
376
371
  return f;
377
372
  default:
378
373
  switch (f = f && f.$$typeof, f) {
379
- case l:
374
+ case a:
380
375
  case u:
381
376
  case S:
382
- case a:
377
+ case l:
383
378
  return f;
384
379
  case c:
385
380
  return f;
@@ -394,14 +389,14 @@ function Zr() {
394
389
  }
395
390
  i(e, "typeOf");
396
391
  var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("reac\
397
- t.strict_mode"), s = Symbol.for("react.profiler"), c = Symbol.for("react.consumer"), l = Symbol.for("react.context"), u = Symbol.for("react.\
398
- forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), a = Symbol.for("react.memo"), S = Symbol.for("react.\
392
+ t.strict_mode"), s = Symbol.for("react.profiler"), c = Symbol.for("react.consumer"), a = Symbol.for("react.context"), u = Symbol.for("react.\
393
+ forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), S = Symbol.for("react.\
399
394
  lazy"), g = Symbol.for("react.view_transition"), h = Symbol.for("react.client.reference");
400
- R.ContextConsumer = c, R.ContextProvider = l, R.Element = t, R.ForwardRef = u, R.Fragment = r, R.Lazy = S, R.Memo = a, R.Portal = n, R.Profiler =
395
+ R.ContextConsumer = c, R.ContextProvider = a, R.Element = t, R.ForwardRef = u, R.Fragment = r, R.Lazy = S, R.Memo = l, R.Portal = n, R.Profiler =
401
396
  s, R.StrictMode = o, R.Suspense = m, R.SuspenseList = p, R.isContextConsumer = function(f) {
402
397
  return e(f) === c;
403
398
  }, R.isContextProvider = function(f) {
404
- return e(f) === l;
399
+ return e(f) === a;
405
400
  }, R.isElement = function(f) {
406
401
  return typeof f == "object" && f !== null && f.$$typeof === t;
407
402
  }, R.isForwardRef = function(f) {
@@ -411,7 +406,7 @@ lazy"), g = Symbol.for("react.view_transition"), h = Symbol.for("react.client.re
411
406
  }, R.isLazy = function(f) {
412
407
  return e(f) === S;
413
408
  }, R.isMemo = function(f) {
414
- return e(f) === a;
409
+ return e(f) === l;
415
410
  }, R.isPortal = function(f) {
416
411
  return e(f) === n;
417
412
  }, R.isProfiler = function(f) {
@@ -424,33 +419,33 @@ lazy"), g = Symbol.for("react.view_transition"), h = Symbol.for("react.client.re
424
419
  return e(f) === p;
425
420
  }, R.isValidElementType = function(f) {
426
421
  return typeof f == "string" || typeof f == "function" || f === r || f === s || f === o || f === m || f === p || typeof f == "object" &&
427
- f !== null && (f.$$typeof === S || f.$$typeof === a || f.$$typeof === l || f.$$typeof === c || f.$$typeof === u || f.$$typeof === h ||
422
+ f !== null && (f.$$typeof === S || f.$$typeof === l || f.$$typeof === a || f.$$typeof === c || f.$$typeof === u || f.$$typeof === h ||
428
423
  f.getModuleId !== void 0);
429
424
  }, R.typeOf = e;
430
425
  }()), R;
431
426
  }
432
- i(Zr, "requireReactIs_development$1");
433
- var zt;
434
- function Qr() {
435
- return zt || (zt = 1, Xe.exports = Zr()), Xe.exports;
427
+ i(Xr, "requireReactIs_development$1");
428
+ var Yt;
429
+ function Zr() {
430
+ return Yt || (Yt = 1, Xe.exports = Xr()), Xe.exports;
436
431
  }
437
- i(Qr, "requireReactIs$1");
438
- var rn = Qr(), vr = /* @__PURE__ */ nn(rn), eo = /* @__PURE__ */ Jt({
432
+ i(Zr, "requireReactIs$1");
433
+ var on = Zr(), Qr = /* @__PURE__ */ rn(on), vr = /* @__PURE__ */ Xt({
439
434
  __proto__: null,
440
- default: vr
441
- }, [rn]), Ze = { exports: {} };
435
+ default: Qr
436
+ }, [on]), Ze = { exports: {} };
442
437
  var w = {};
443
- var Yt;
444
- function to() {
445
- return Yt || (Yt = 1, function() {
438
+ var Ut;
439
+ function eo() {
440
+ return Ut || (Ut = 1, function() {
446
441
  var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"),
447
- o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.server_contex\
448
- t"), u = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), a = Symbol.for("react.mem\
442
+ o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), c = Symbol.for("react.context"), a = Symbol.for("react.server_contex\
443
+ t"), u = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), l = Symbol.for("react.mem\
449
444
  o"), S = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), h = !1, f = !1, d = !1, b = !1, _ = !1, O;
450
445
  O = Symbol.for("react.module.reference");
451
446
  function y(C) {
452
447
  return !!(typeof C == "string" || typeof C == "function" || C === n || C === o || _ || C === r || C === m || C === p || b || C === g ||
453
- h || f || d || typeof C == "object" && C !== null && (C.$$typeof === S || C.$$typeof === a || C.$$typeof === s || C.$$typeof === c || C.
448
+ h || f || d || typeof C == "object" && C !== null && (C.$$typeof === S || C.$$typeof === l || C.$$typeof === s || C.$$typeof === c || C.
454
449
  $$typeof === u || // This needs to include all possible module reference object
455
450
  // types supported by any Flight configuration anywhere since
456
451
  // we don't know which Flight build this will end up being used
@@ -463,24 +458,24 @@ o"), S = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), h = !1, f
463
458
  var Ke = C.$$typeof;
464
459
  switch (Ke) {
465
460
  case e:
466
- var we = C.type;
467
- switch (we) {
461
+ var $e = C.type;
462
+ switch ($e) {
468
463
  case n:
469
464
  case o:
470
465
  case r:
471
466
  case m:
472
467
  case p:
473
- return we;
468
+ return $e;
474
469
  default:
475
- var xt = we && we.$$typeof;
476
- switch (xt) {
477
- case l:
470
+ var Dt = $e && $e.$$typeof;
471
+ switch (Dt) {
472
+ case a:
478
473
  case c:
479
474
  case u:
480
475
  case S:
481
- case a:
476
+ case l:
482
477
  case s:
483
- return xt;
478
+ return Dt;
484
479
  default:
485
480
  return Ke;
486
481
  }
@@ -491,7 +486,7 @@ o"), S = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), h = !1, f
491
486
  }
492
487
  }
493
488
  i(E, "typeOf");
494
- var $ = c, T = s, A = e, K = u, Q = n, I = S, k = a, G = t, Y = o, N = r, L = m, x = p, H = !1, F = !1;
489
+ var $ = c, T = s, A = e, K = u, Q = n, I = S, k = l, G = t, Y = o, P = r, L = m, x = p, H = !1, F = !1;
495
490
  function W(C) {
496
491
  return H || (H = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
497
492
  }
@@ -524,45 +519,45 @@ o"), S = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), h = !1, f
524
519
  return E(C) === S;
525
520
  }
526
521
  i(oe, "isLazy");
527
- function ge(C) {
528
- return E(C) === a;
522
+ function he(C) {
523
+ return E(C) === l;
529
524
  }
530
- i(ge, "isMemo");
525
+ i(he, "isMemo");
531
526
  function ue(C) {
532
527
  return E(C) === t;
533
528
  }
534
529
  i(ue, "isPortal");
535
- function Se(C) {
530
+ function be(C) {
536
531
  return E(C) === o;
537
532
  }
538
- i(Se, "isProfiler");
539
- function Oe(C) {
533
+ i(be, "isProfiler");
534
+ function Ce(C) {
540
535
  return E(C) === r;
541
536
  }
542
- i(Oe, "isStrictMode");
543
- function $e(C) {
537
+ i(Ce, "isStrictMode");
538
+ function Oe(C) {
544
539
  return E(C) === m;
545
540
  }
546
- i($e, "isSuspense");
547
- function lr(C) {
541
+ i(Oe, "isSuspense");
542
+ function ar(C) {
548
543
  return E(C) === p;
549
544
  }
550
- i(lr, "isSuspenseList"), w.ContextConsumer = $, w.ContextProvider = T, w.Element = A, w.ForwardRef = K, w.Fragment = Q, w.Lazy = I, w.Memo =
551
- k, w.Portal = G, w.Profiler = Y, w.StrictMode = N, w.Suspense = L, w.SuspenseList = x, w.isAsyncMode = W, w.isConcurrentMode = re, w.isContextConsumer =
552
- V, w.isContextProvider = q, w.isElement = se, w.isForwardRef = J, w.isFragment = U, w.isLazy = oe, w.isMemo = ge, w.isPortal = ue, w.isProfiler =
553
- Se, w.isStrictMode = Oe, w.isSuspense = $e, w.isSuspenseList = lr, w.isValidElementType = y, w.typeOf = E;
545
+ i(ar, "isSuspenseList"), w.ContextConsumer = $, w.ContextProvider = T, w.Element = A, w.ForwardRef = K, w.Fragment = Q, w.Lazy = I, w.Memo =
546
+ k, w.Portal = G, w.Profiler = Y, w.StrictMode = P, w.Suspense = L, w.SuspenseList = x, w.isAsyncMode = W, w.isConcurrentMode = re, w.isContextConsumer =
547
+ V, w.isContextProvider = q, w.isElement = se, w.isForwardRef = J, w.isFragment = U, w.isLazy = oe, w.isMemo = he, w.isPortal = ue, w.isProfiler =
548
+ be, w.isStrictMode = Ce, w.isSuspense = Oe, w.isSuspenseList = ar, w.isValidElementType = y, w.typeOf = E;
554
549
  }()), w;
555
550
  }
556
- i(to, "requireReactIs_development");
557
- var Ut;
558
- function no() {
559
- return Ut || (Ut = 1, Ze.exports = to()), Ze.exports;
551
+ i(eo, "requireReactIs_development");
552
+ var Wt;
553
+ function to() {
554
+ return Wt || (Wt = 1, Ze.exports = eo()), Ze.exports;
560
555
  }
561
- i(no, "requireReactIs");
562
- var on = no(), ro = /* @__PURE__ */ nn(on), oo = /* @__PURE__ */ Jt({
556
+ i(to, "requireReactIs");
557
+ var sn = to(), no = /* @__PURE__ */ rn(sn), ro = /* @__PURE__ */ Xt({
563
558
  __proto__: null,
564
- default: ro
565
- }, [on]), so = [
559
+ default: no
560
+ }, [sn]), oo = [
566
561
  "isAsyncMode",
567
562
  "isConcurrentMode",
568
563
  "isContextConsumer",
@@ -578,108 +573,108 @@ var on = no(), ro = /* @__PURE__ */ nn(on), oo = /* @__PURE__ */ Jt({
578
573
  "isSuspense",
579
574
  "isSuspenseList",
580
575
  "isValidElementType"
581
- ], ae = Object.fromEntries(so.map((e) => [e, (t) => oo[e](t) || eo[e](t)]));
582
- function sn(e, t = []) {
576
+ ], fe = Object.fromEntries(oo.map((e) => [e, (t) => ro[e](t) || vr[e](t)]));
577
+ function cn(e, t = []) {
583
578
  if (Array.isArray(e))
584
579
  for (let n of e)
585
- sn(n, t);
580
+ cn(n, t);
586
581
  else e != null && e !== !1 && e !== "" && t.push(e);
587
582
  return t;
588
583
  }
589
- i(sn, "getChildren");
590
- function Wt(e) {
584
+ i(cn, "getChildren");
585
+ function Vt(e) {
591
586
  let t = e.type;
592
587
  if (typeof t == "string")
593
588
  return t;
594
589
  if (typeof t == "function")
595
590
  return t.displayName || t.name || "Unknown";
596
- if (ae.isFragment(e))
591
+ if (fe.isFragment(e))
597
592
  return "React.Fragment";
598
- if (ae.isSuspense(e))
593
+ if (fe.isSuspense(e))
599
594
  return "React.Suspense";
600
595
  if (typeof t == "object" && t !== null) {
601
- if (ae.isContextProvider(e))
596
+ if (fe.isContextProvider(e))
602
597
  return "Context.Provider";
603
- if (ae.isContextConsumer(e))
598
+ if (fe.isContextConsumer(e))
604
599
  return "Context.Consumer";
605
- if (ae.isForwardRef(e)) {
600
+ if (fe.isForwardRef(e)) {
606
601
  if (t.displayName)
607
602
  return t.displayName;
608
603
  let n = t.render.displayName || t.render.name || "";
609
604
  return n === "" ? "ForwardRef" : `ForwardRef(${n})`;
610
605
  }
611
- if (ae.isMemo(e)) {
606
+ if (fe.isMemo(e)) {
612
607
  let n = t.displayName || t.type.displayName || t.type.name || "";
613
608
  return n === "" ? "Memo" : `Memo(${n})`;
614
609
  }
615
610
  }
616
611
  return "UNDEFINED";
617
612
  }
618
- i(Wt, "getType");
619
- function io(e) {
613
+ i(Vt, "getType");
614
+ function so(e) {
620
615
  let { props: t } = e;
621
616
  return Object.keys(t).filter((n) => n !== "children" && t[n] !== void 0).sort();
622
617
  }
623
- i(io, "getPropKeys$1");
624
- var co = /* @__PURE__ */ i((e, t, n, r, o, s) => ++r > t.maxDepth ? rt(Wt(e), t) : nt(Wt(e), et(io(e), e.props, t, n + t.indent, r, o, s), tt(
625
- sn(e.props.children), t, n + t.indent, r, o, s), t, n), "serialize$1"), uo = /* @__PURE__ */ i((e) => e != null && ae.isElement(e), "test$1"),
626
- lo = {
627
- serialize: co,
628
- test: uo
618
+ i(so, "getPropKeys$1");
619
+ var io = /* @__PURE__ */ i((e, t, n, r, o, s) => ++r > t.maxDepth ? rt(Vt(e), t) : nt(Vt(e), et(so(e), e.props, t, n + t.indent, r, o, s), tt(
620
+ cn(e.props.children), t, n + t.indent, r, o, s), t, n), "serialize$1"), co = /* @__PURE__ */ i((e) => e != null && fe.isElement(e), "test$1"),
621
+ uo = {
622
+ serialize: io,
623
+ test: co
629
624
  }, ao = typeof Symbol == "function" && Symbol.for ? Symbol.for("react.test.json") : 245830487;
630
- function fo(e) {
625
+ function lo(e) {
631
626
  let { props: t } = e;
632
627
  return t ? Object.keys(t).filter((n) => t[n] !== void 0).sort() : [];
633
628
  }
634
- i(fo, "getPropKeys");
635
- var mo = /* @__PURE__ */ i((e, t, n, r, o, s) => ++r > t.maxDepth ? rt(e.type, t) : nt(e.type, e.props ? et(fo(e), e.props, t, n + t.indent,
636
- r, o, s) : "", e.children ? tt(e.children, t, n + t.indent, r, o, s) : "", t, n), "serialize"), po = /* @__PURE__ */ i((e) => e && e.$$typeof ===
637
- ao, "test"), go = {
638
- serialize: mo,
639
- test: po
640
- }, cn = Object.prototype.toString, ho = Date.prototype.toISOString, yo = Error.prototype.toString, Vt = RegExp.prototype.toString;
641
- function Re(e) {
629
+ i(lo, "getPropKeys");
630
+ var fo = /* @__PURE__ */ i((e, t, n, r, o, s) => ++r > t.maxDepth ? rt(e.type, t) : nt(e.type, e.props ? et(lo(e), e.props, t, n + t.indent,
631
+ r, o, s) : "", e.children ? tt(e.children, t, n + t.indent, r, o, s) : "", t, n), "serialize"), mo = /* @__PURE__ */ i((e) => e && e.$$typeof ===
632
+ ao, "test"), po = {
633
+ serialize: fo,
634
+ test: mo
635
+ }, un = Object.prototype.toString, go = Date.prototype.toISOString, ho = Error.prototype.toString, qt = RegExp.prototype.toString;
636
+ function Ae(e) {
642
637
  return typeof e.constructor == "function" && e.constructor.name || "Object";
643
638
  }
644
- i(Re, "getConstructorName");
645
- function bo(e) {
639
+ i(Ae, "getConstructorName");
640
+ function yo(e) {
646
641
  return typeof window < "u" && e === window;
647
642
  }
648
- i(bo, "isWindow");
649
- var So = /^Symbol\((.*)\)(.*)$/, Eo = /\n/g, st = class st extends Error {
643
+ i(yo, "isWindow");
644
+ var bo = /^Symbol\((.*)\)(.*)$/, So = /\n/g, st = class st extends Error {
650
645
  constructor(t, n) {
651
646
  super(t), this.stack = n, this.name = this.constructor.name;
652
647
  }
653
648
  };
654
649
  i(st, "PrettyFormatPluginError");
655
650
  var Ne = st;
656
- function _o(e) {
651
+ function Eo(e) {
657
652
  return e === "[object Array]" || e === "[object ArrayBuffer]" || e === "[object DataView]" || e === "[object Float32Array]" || e === "[obj\
658
653
  ect Float64Array]" || e === "[object Int8Array]" || e === "[object Int16Array]" || e === "[object Int32Array]" || e === "[object Uint8Array]" ||
659
654
  e === "[object Uint8ClampedArray]" || e === "[object Uint16Array]" || e === "[object Uint32Array]";
660
655
  }
661
- i(_o, "isToStringedArrayType");
662
- function To(e) {
656
+ i(Eo, "isToStringedArrayType");
657
+ function _o(e) {
663
658
  return Object.is(e, -0) ? "-0" : String(e);
664
659
  }
665
- i(To, "printNumber");
666
- function Co(e) {
660
+ i(_o, "printNumber");
661
+ function To(e) {
667
662
  return `${e}n`;
668
663
  }
669
- i(Co, "printBigInt");
670
- function qt(e, t) {
664
+ i(To, "printBigInt");
665
+ function Kt(e, t) {
671
666
  return t ? `[Function ${e.name || "anonymous"}]` : "[Function]";
672
667
  }
673
- i(qt, "printFunction");
674
- function Kt(e) {
675
- return String(e).replace(So, "Symbol($1)");
676
- }
677
- i(Kt, "printSymbol");
668
+ i(Kt, "printFunction");
678
669
  function Gt(e) {
679
- return `[${yo.call(e)}]`;
670
+ return String(e).replace(bo, "Symbol($1)");
680
671
  }
681
- i(Gt, "printError");
682
- function un(e, t, n, r) {
672
+ i(Gt, "printSymbol");
673
+ function Ht(e) {
674
+ return `[${ho.call(e)}]`;
675
+ }
676
+ i(Ht, "printError");
677
+ function an(e, t, n, r) {
683
678
  if (e === !0 || e === !1)
684
679
  return `${e}`;
685
680
  if (e === void 0)
@@ -688,77 +683,77 @@ function un(e, t, n, r) {
688
683
  return "null";
689
684
  let o = typeof e;
690
685
  if (o === "number")
691
- return To(e);
686
+ return _o(e);
692
687
  if (o === "bigint")
693
- return Co(e);
688
+ return To(e);
694
689
  if (o === "string")
695
690
  return r ? `"${e.replaceAll(/"|\\/g, "\\$&")}"` : `"${e}"`;
696
691
  if (o === "function")
697
- return qt(e, t);
692
+ return Kt(e, t);
698
693
  if (o === "symbol")
699
- return Kt(e);
700
- let s = cn.call(e);
694
+ return Gt(e);
695
+ let s = un.call(e);
701
696
  return s === "[object WeakMap]" ? "WeakMap {}" : s === "[object WeakSet]" ? "WeakSet {}" : s === "[object Function]" || s === "[object Gen\
702
- eratorFunction]" ? qt(e, t) : s === "[object Symbol]" ? Kt(e) : s === "[object Date]" ? Number.isNaN(+e) ? "Date { NaN }" : ho.call(e) : s ===
703
- "[object Error]" ? Gt(e) : s === "[object RegExp]" ? n ? Vt.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g, "\\$&") : Vt.call(e) : e instanceof Error ?
704
- Gt(e) : null;
697
+ eratorFunction]" ? Kt(e, t) : s === "[object Symbol]" ? Gt(e) : s === "[object Date]" ? Number.isNaN(+e) ? "Date { NaN }" : go.call(e) : s ===
698
+ "[object Error]" ? Ht(e) : s === "[object RegExp]" ? n ? qt.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g, "\\$&") : qt.call(e) : e instanceof Error ?
699
+ Ht(e) : null;
705
700
  }
706
- i(un, "printBasicValue");
701
+ i(an, "printBasicValue");
707
702
  function ln(e, t, n, r, o, s) {
708
703
  if (o.includes(e))
709
704
  return "[Circular]";
710
705
  o = [...o], o.push(e);
711
- let c = ++r > t.maxDepth, l = t.min;
706
+ let c = ++r > t.maxDepth, a = t.min;
712
707
  if (t.callToJSON && !c && e.toJSON && typeof e.toJSON == "function" && !s)
713
- return le(e.toJSON(), t, n, r, o, !0);
714
- let u = cn.call(e);
715
- return u === "[object Arguments]" ? c ? "[Arguments]" : `${l ? "" : "Arguments "}[${Pe(e, t, n, r, o, le)}]` : _o(u) ? c ? `[${e.constructor.
716
- name}]` : `${l || !t.printBasicPrototype && e.constructor.name === "Array" ? "" : `${e.constructor.name} `}[${Pe(e, t, n, r, o, le)}]` : u ===
717
- "[object Map]" ? c ? "[Map]" : `Map {${_e(e.entries(), t, n, r, o, le, " => ")}}` : u === "[object Set]" ? c ? "[Set]" : `Set {${Qe(e.values(),
718
- t, n, r, o, le)}}` : c || bo(e) ? `[${Re(e)}]` : `${l || !t.printBasicPrototype && Re(e) === "Object" ? "" : `${Re(e)} `}{${ve(e, t, n, r,
719
- o, le)}}`;
708
+ return ae(e.toJSON(), t, n, r, o, !0);
709
+ let u = un.call(e);
710
+ return u === "[object Arguments]" ? c ? "[Arguments]" : `${a ? "" : "Arguments "}[${Re(e, t, n, r, o, ae)}]` : Eo(u) ? c ? `[${e.constructor.
711
+ name}]` : `${a || !t.printBasicPrototype && e.constructor.name === "Array" ? "" : `${e.constructor.name} `}[${Re(e, t, n, r, o, ae)}]` : u ===
712
+ "[object Map]" ? c ? "[Map]" : `Map {${Ee(e.entries(), t, n, r, o, ae, " => ")}}` : u === "[object Set]" ? c ? "[Set]" : `Set {${Qe(e.values(),
713
+ t, n, r, o, ae)}}` : c || yo(e) ? `[${Ae(e)}]` : `${a || !t.printBasicPrototype && Ae(e) === "Object" ? "" : `${Ae(e)} `}{${ve(e, t, n, r,
714
+ o, ae)}}`;
720
715
  }
721
716
  i(ln, "printComplexValue");
722
- var Oo = {
717
+ var Co = {
723
718
  test: /* @__PURE__ */ i((e) => e && e instanceof Error, "test"),
724
719
  serialize(e, t, n, r, o, s) {
725
720
  if (o.includes(e))
726
721
  return "[Circular]";
727
722
  o = [...o, e];
728
- let c = ++r > t.maxDepth, { message: l, cause: u, ...m } = e, p = {
729
- message: l,
723
+ let c = ++r > t.maxDepth, { message: a, cause: u, ...m } = e, p = {
724
+ message: a,
730
725
  ...typeof u < "u" ? { cause: u } : {},
731
726
  ...e instanceof AggregateError ? { errors: e.errors } : {},
732
727
  ...m
733
- }, a = e.name !== "Error" ? e.name : Re(e);
734
- return c ? `[${a}]` : `${a} {${_e(Object.entries(p).values(), t, n, r, o, s)}}`;
728
+ }, l = e.name !== "Error" ? e.name : Ae(e);
729
+ return c ? `[${l}]` : `${l} {${Ee(Object.entries(p).values(), t, n, r, o, s)}}`;
735
730
  }
736
731
  };
737
- function $o(e) {
732
+ function Oo(e) {
738
733
  return e.serialize != null;
739
734
  }
740
- i($o, "isNewPlugin");
741
- function an(e, t, n, r, o, s) {
735
+ i(Oo, "isNewPlugin");
736
+ function fn(e, t, n, r, o, s) {
742
737
  let c;
743
738
  try {
744
- c = $o(e) ? e.serialize(t, n, r, o, s, le) : e.print(t, (l) => le(l, n, r, o, s), (l) => {
739
+ c = Oo(e) ? e.serialize(t, n, r, o, s, ae) : e.print(t, (a) => ae(a, n, r, o, s), (a) => {
745
740
  let u = r + n.indent;
746
- return u + l.replaceAll(Eo, `
741
+ return u + a.replaceAll(So, `
747
742
  ${u}`);
748
743
  }, {
749
744
  edgeSpacing: n.spacingOuter,
750
745
  min: n.min,
751
746
  spacing: n.spacingInner
752
747
  }, n.colors);
753
- } catch (l) {
754
- throw new Ne(l.message, l.stack);
748
+ } catch (a) {
749
+ throw new Ne(a.message, a.stack);
755
750
  }
756
751
  if (typeof c != "string")
757
752
  throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof c}".`);
758
753
  return c;
759
754
  }
760
- i(an, "printPlugin");
761
- function fn(e, t) {
755
+ i(fn, "printPlugin");
756
+ function mn(e, t) {
762
757
  for (let n of e)
763
758
  try {
764
759
  if (n.test(t))
@@ -768,22 +763,22 @@ function fn(e, t) {
768
763
  }
769
764
  return null;
770
765
  }
771
- i(fn, "findPlugin");
772
- function le(e, t, n, r, o, s) {
773
- let c = fn(t.plugins, e);
766
+ i(mn, "findPlugin");
767
+ function ae(e, t, n, r, o, s) {
768
+ let c = mn(t.plugins, e);
774
769
  if (c !== null)
775
- return an(c, e, t, n, r, o);
776
- let l = un(e, t.printFunctionName, t.escapeRegex, t.escapeString);
777
- return l !== null ? l : ln(e, t, n, r, o, s);
770
+ return fn(c, e, t, n, r, o);
771
+ let a = an(e, t.printFunctionName, t.escapeRegex, t.escapeString);
772
+ return a !== null ? a : ln(e, t, n, r, o, s);
778
773
  }
779
- i(le, "printer");
774
+ i(ae, "printer");
780
775
  var ot = {
781
776
  comment: "gray",
782
777
  content: "reset",
783
778
  prop: "yellow",
784
779
  tag: "cyan",
785
780
  value: "green"
786
- }, mn = Object.keys(ot), ee = {
781
+ }, pn = Object.keys(ot), ee = {
787
782
  callToJSON: !0,
788
783
  compareKeys: void 0,
789
784
  escapeRegex: !1,
@@ -798,16 +793,16 @@ var ot = {
798
793
  printFunctionName: !0,
799
794
  theme: ot
800
795
  };
801
- function wo(e) {
796
+ function $o(e) {
802
797
  for (let t of Object.keys(e))
803
798
  if (!Object.prototype.hasOwnProperty.call(ee, t))
804
799
  throw new Error(`pretty-format: Unknown option "${t}".`);
805
800
  if (e.min && e.indent !== void 0 && e.indent !== 0)
806
801
  throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');
807
802
  }
808
- i(wo, "validateOptions");
809
- function Ao() {
810
- return mn.reduce((e, t) => {
803
+ i($o, "validateOptions");
804
+ function wo() {
805
+ return pn.reduce((e, t) => {
811
806
  let n = ot[t], r = n && v[n];
812
807
  if (r && typeof r.close == "string" && typeof r.open == "string")
813
808
  e[t] = r;
@@ -816,73 +811,73 @@ function Ao() {
816
811
  return e;
817
812
  }, /* @__PURE__ */ Object.create(null));
818
813
  }
819
- i(Ao, "getColorsHighlight");
820
- function Ro() {
821
- return mn.reduce((e, t) => (e[t] = {
814
+ i(wo, "getColorsHighlight");
815
+ function Ao() {
816
+ return pn.reduce((e, t) => (e[t] = {
822
817
  close: "",
823
818
  open: ""
824
819
  }, e), /* @__PURE__ */ Object.create(null));
825
820
  }
826
- i(Ro, "getColorsEmpty");
827
- function pn(e) {
821
+ i(Ao, "getColorsEmpty");
822
+ function gn(e) {
828
823
  return e?.printFunctionName ?? ee.printFunctionName;
829
824
  }
830
- i(pn, "getPrintFunctionName");
831
- function gn(e) {
825
+ i(gn, "getPrintFunctionName");
826
+ function hn(e) {
832
827
  return e?.escapeRegex ?? ee.escapeRegex;
833
828
  }
834
- i(gn, "getEscapeRegex");
835
- function hn(e) {
829
+ i(hn, "getEscapeRegex");
830
+ function dn(e) {
836
831
  return e?.escapeString ?? ee.escapeString;
837
832
  }
838
- i(hn, "getEscapeString");
839
- function Ht(e) {
833
+ i(dn, "getEscapeString");
834
+ function Jt(e) {
840
835
  return {
841
836
  callToJSON: e?.callToJSON ?? ee.callToJSON,
842
- colors: e?.highlight ? Ao() : Ro(),
837
+ colors: e?.highlight ? wo() : Ao(),
843
838
  compareKeys: typeof e?.compareKeys == "function" || e?.compareKeys === null ? e.compareKeys : ee.compareKeys,
844
- escapeRegex: gn(e),
845
- escapeString: hn(e),
846
- indent: e?.min ? "" : Po(e?.indent ?? ee.indent),
839
+ escapeRegex: hn(e),
840
+ escapeString: dn(e),
841
+ indent: e?.min ? "" : Ro(e?.indent ?? ee.indent),
847
842
  maxDepth: e?.maxDepth ?? ee.maxDepth,
848
843
  maxWidth: e?.maxWidth ?? ee.maxWidth,
849
844
  min: e?.min ?? ee.min,
850
845
  plugins: e?.plugins ?? ee.plugins,
851
846
  printBasicPrototype: e?.printBasicPrototype ?? !0,
852
- printFunctionName: pn(e),
847
+ printFunctionName: gn(e),
853
848
  spacingInner: e?.min ? " " : `
854
849
  `,
855
850
  spacingOuter: e?.min ? "" : `
856
851
  `
857
852
  };
858
853
  }
859
- i(Ht, "getConfig");
860
- function Po(e) {
854
+ i(Jt, "getConfig");
855
+ function Ro(e) {
861
856
  return Array.from({ length: e + 1 }).join(" ");
862
857
  }
863
- i(Po, "createIndent");
858
+ i(Ro, "createIndent");
864
859
  function X(e, t) {
865
- if (t && (wo(t), t.plugins)) {
866
- let r = fn(t.plugins, e);
860
+ if (t && ($o(t), t.plugins)) {
861
+ let r = mn(t.plugins, e);
867
862
  if (r !== null)
868
- return an(r, e, Ht(t), "", 0, []);
863
+ return fn(r, e, Jt(t), "", 0, []);
869
864
  }
870
- let n = un(e, pn(t), gn(t), hn(t));
871
- return n !== null ? n : ln(e, Ht(t), "", 0, []);
865
+ let n = an(e, gn(t), hn(t), dn(t));
866
+ return n !== null ? n : ln(e, Jt(t), "", 0, []);
872
867
  }
873
868
  i(X, "format");
874
- var Te = {
875
- AsymmetricMatcher: br,
876
- DOMCollection: $r,
877
- DOMElement: Dr,
878
- Immutable: Xr,
879
- ReactElement: lo,
880
- ReactTestComponent: go,
881
- Error: Oo
869
+ var _e = {
870
+ AsymmetricMatcher: yr,
871
+ DOMCollection: Or,
872
+ DOMElement: xr,
873
+ Immutable: Jr,
874
+ ReactElement: uo,
875
+ ReactTestComponent: po,
876
+ Error: Co
882
877
  };
883
878
 
884
879
  // ../node_modules/loupe/lib/helpers.js
885
- var dn = {
880
+ var yn = {
886
881
  bold: ["1", "22"],
887
882
  dim: ["2", "22"],
888
883
  italic: ["3", "23"],
@@ -922,12 +917,12 @@ var dn = {
922
917
  date: "magenta",
923
918
  regexp: "red"
924
919
  }, ie = "\u2026";
925
- function Io(e, t) {
926
- let n = dn[No[t]] || dn[t] || "";
920
+ function Po(e, t) {
921
+ let n = yn[No[t]] || yn[t] || "";
927
922
  return n ? `\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m` : String(e);
928
923
  }
929
- i(Io, "colorise");
930
- function yn({
924
+ i(Po, "colorise");
925
+ function bn({
931
926
  showHidden: e = !1,
932
927
  depth: t = 2,
933
928
  colors: n = !1,
@@ -935,12 +930,12 @@ function yn({
935
930
  showProxy: o = !1,
936
931
  maxArrayLength: s = 1 / 0,
937
932
  breakLength: c = 1 / 0,
938
- seen: l = [],
933
+ seen: a = [],
939
934
  // eslint-disable-next-line no-shadow
940
935
  truncate: u = 1 / 0,
941
936
  stylize: m = String
942
937
  } = {}, p) {
943
- let a = {
938
+ let l = {
944
939
  showHidden: !!e,
945
940
  depth: Number(t),
946
941
  colors: !!n,
@@ -949,17 +944,17 @@ function yn({
949
944
  maxArrayLength: Number(s),
950
945
  breakLength: Number(c),
951
946
  truncate: Number(u),
952
- seen: l,
947
+ seen: a,
953
948
  inspect: p,
954
949
  stylize: m
955
950
  };
956
- return a.colors && (a.stylize = Io), a;
951
+ return l.colors && (l.stylize = Po), l;
957
952
  }
958
- i(yn, "normaliseOptions");
959
- function Mo(e) {
953
+ i(bn, "normaliseOptions");
954
+ function Io(e) {
960
955
  return e >= "\uD800" && e <= "\uDBFF";
961
956
  }
962
- i(Mo, "isHighSurrogate");
957
+ i(Io, "isHighSurrogate");
963
958
  function B(e, t, n = ie) {
964
959
  e = String(e);
965
960
  let r = n.length, o = e.length;
@@ -967,7 +962,7 @@ function B(e, t, n = ie) {
967
962
  return n;
968
963
  if (o > t && o > r) {
969
964
  let s = t - r;
970
- return s > 0 && Mo(e[s - 1]) && (s = s - 1), `${e.slice(0, s)}${n}`;
965
+ return s > 0 && Io(e[s - 1]) && (s = s - 1), `${e.slice(0, s)}${n}`;
971
966
  }
972
967
  return e;
973
968
  }
@@ -977,17 +972,17 @@ function D(e, t, n, r = ", ") {
977
972
  let o = e.length;
978
973
  if (o === 0)
979
974
  return "";
980
- let s = t.truncate, c = "", l = "", u = "";
975
+ let s = t.truncate, c = "", a = "", u = "";
981
976
  for (let m = 0; m < o; m += 1) {
982
- let p = m + 1 === e.length, a = m + 2 === e.length;
977
+ let p = m + 1 === e.length, l = m + 2 === e.length;
983
978
  u = `${ie}(${e.length - m})`;
984
979
  let S = e[m];
985
980
  t.truncate = s - c.length - (p ? 0 : r.length);
986
- let g = l || n(S, t) + (p ? "" : r), h = c.length + g.length, f = h + u.length;
987
- if (p && h > s && c.length + u.length <= s || !p && !a && f > s || (l = p ? "" : n(e[m + 1], t) + (a ? "" : r), !p && a && f > s && h + l.
981
+ let g = a || n(S, t) + (p ? "" : r), h = c.length + g.length, f = h + u.length;
982
+ if (p && h > s && c.length + u.length <= s || !p && !l && f > s || (a = p ? "" : n(e[m + 1], t) + (l ? "" : r), !p && l && f > s && h + a.
988
983
  length > s))
989
984
  break;
990
- if (c += g, !p && !a && h + l.length >= s) {
985
+ if (c += g, !p && !l && h + a.length >= s) {
991
986
  u = `${ie}(${e.length - m - 1})`;
992
987
  break;
993
988
  }
@@ -996,12 +991,12 @@ function D(e, t, n, r = ", ") {
996
991
  return `${c}${u}`;
997
992
  }
998
993
  i(D, "inspectList");
999
- function Lo(e) {
994
+ function Mo(e) {
1000
995
  return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/) ? e : JSON.stringify(e).replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
1001
996
  }
1002
- i(Lo, "quoteComplexKey");
997
+ i(Mo, "quoteComplexKey");
1003
998
  function ce([e, t], n) {
1004
- return n.truncate -= 2, typeof e == "string" ? e = Lo(e) : typeof e != "number" && (e = `[${n.inspect(e, n)}]`), n.truncate -= e.length, t =
999
+ return n.truncate -= 2, typeof e == "string" ? e = Mo(e) : typeof e != "number" && (e = `[${n.inspect(e, n)}]`), n.truncate -= e.length, t =
1005
1000
  n.inspect(t, n), `${e}: ${t}`;
1006
1001
  }
1007
1002
  i(ce, "inspectProperty");
@@ -1020,22 +1015,22 @@ function it(e, t) {
1020
1015
  i(it, "inspectArray");
1021
1016
 
1022
1017
  // ../node_modules/loupe/lib/typedarray.js
1023
- var xo = /* @__PURE__ */ i((e) => typeof Buffer == "function" && e instanceof Buffer ? "Buffer" : e[Symbol.toStringTag] ? e[Symbol.toStringTag] :
1018
+ var Lo = /* @__PURE__ */ i((e) => typeof Buffer == "function" && e instanceof Buffer ? "Buffer" : e[Symbol.toStringTag] ? e[Symbol.toStringTag] :
1024
1019
  e.constructor.name, "getArrayName");
1025
1020
  function te(e, t) {
1026
- let n = xo(e);
1021
+ let n = Lo(e);
1027
1022
  t.truncate -= n.length + 4;
1028
1023
  let r = Object.keys(e).slice(e.length);
1029
1024
  if (!e.length && !r.length)
1030
1025
  return `${n}[]`;
1031
1026
  let o = "";
1032
1027
  for (let c = 0; c < e.length; c++) {
1033
- let l = `${t.stylize(B(e[c], t.truncate), "number")}${c === e.length - 1 ? "" : ", "}`;
1034
- if (t.truncate -= l.length, e[c] !== e.length && t.truncate <= 3) {
1028
+ let a = `${t.stylize(B(e[c], t.truncate), "number")}${c === e.length - 1 ? "" : ", "}`;
1029
+ if (t.truncate -= a.length, e[c] !== e.length && t.truncate <= 3) {
1035
1030
  o += `${ie}(${e.length - e[c] + 1})`;
1036
1031
  break;
1037
1032
  }
1038
- o += l;
1033
+ o += a;
1039
1034
  }
1040
1035
  let s = "";
1041
1036
  return r.length && (s = D(r.map((c) => [c, e[c]]), t, ce)), `${n}[ ${o}${s ? `, ${s}` : ""} ]`;
@@ -1053,67 +1048,67 @@ function ct(e, t) {
1053
1048
  i(ct, "inspectDate");
1054
1049
 
1055
1050
  // ../node_modules/loupe/lib/function.js
1056
- function Me(e, t) {
1051
+ function Ie(e, t) {
1057
1052
  let n = e[Symbol.toStringTag] || "Function", r = e.name;
1058
1053
  return r ? t.stylize(`[${n} ${B(r, t.truncate - 11)}]`, "special") : t.stylize(`[${n}]`, "special");
1059
1054
  }
1060
- i(Me, "inspectFunction");
1055
+ i(Ie, "inspectFunction");
1061
1056
 
1062
1057
  // ../node_modules/loupe/lib/map.js
1063
- function Do([e, t], n) {
1058
+ function xo([e, t], n) {
1064
1059
  return n.truncate -= 4, e = n.inspect(e, n), n.truncate -= e.length, t = n.inspect(t, n), `${e} => ${t}`;
1065
1060
  }
1066
- i(Do, "inspectMapEntry");
1067
- function Fo(e) {
1061
+ i(xo, "inspectMapEntry");
1062
+ function Do(e) {
1068
1063
  let t = [];
1069
1064
  return e.forEach((n, r) => {
1070
1065
  t.push([r, n]);
1071
1066
  }), t;
1072
1067
  }
1073
- i(Fo, "mapToEntries");
1068
+ i(Do, "mapToEntries");
1074
1069
  function ut(e, t) {
1075
- return e.size === 0 ? "Map{}" : (t.truncate -= 7, `Map{ ${D(Fo(e), t, Do)} }`);
1070
+ return e.size === 0 ? "Map{}" : (t.truncate -= 7, `Map{ ${D(Do(e), t, xo)} }`);
1076
1071
  }
1077
1072
  i(ut, "inspectMap");
1078
1073
 
1079
1074
  // ../node_modules/loupe/lib/number.js
1080
- var jo = Number.isNaN || ((e) => e !== e);
1081
- function Le(e, t) {
1082
- return jo(e) ? t.stylize("NaN", "number") : e === 1 / 0 ? t.stylize("Infinity", "number") : e === -1 / 0 ? t.stylize("-Infinity", "number") :
1075
+ var Fo = Number.isNaN || ((e) => e !== e);
1076
+ function Me(e, t) {
1077
+ return Fo(e) ? t.stylize("NaN", "number") : e === 1 / 0 ? t.stylize("Infinity", "number") : e === -1 / 0 ? t.stylize("-Infinity", "number") :
1083
1078
  e === 0 ? t.stylize(1 / e === 1 / 0 ? "+0" : "-0", "number") : t.stylize(B(String(e), t.truncate), "number");
1084
1079
  }
1085
- i(Le, "inspectNumber");
1080
+ i(Me, "inspectNumber");
1086
1081
 
1087
1082
  // ../node_modules/loupe/lib/bigint.js
1088
- function xe(e, t) {
1083
+ function Le(e, t) {
1089
1084
  let n = B(e.toString(), t.truncate - 1);
1090
1085
  return n !== ie && (n += "n"), t.stylize(n, "bigint");
1091
1086
  }
1092
- i(xe, "inspectBigInt");
1087
+ i(Le, "inspectBigInt");
1093
1088
 
1094
1089
  // ../node_modules/loupe/lib/regexp.js
1095
- function lt(e, t) {
1090
+ function at(e, t) {
1096
1091
  let n = e.toString().split("/")[2], r = t.truncate - (2 + n.length), o = e.source;
1097
1092
  return t.stylize(`/${B(o, r)}/${n}`, "regexp");
1098
1093
  }
1099
- i(lt, "inspectRegExp");
1094
+ i(at, "inspectRegExp");
1100
1095
 
1101
1096
  // ../node_modules/loupe/lib/set.js
1102
- function ko(e) {
1097
+ function jo(e) {
1103
1098
  let t = [];
1104
1099
  return e.forEach((n) => {
1105
1100
  t.push(n);
1106
1101
  }), t;
1107
1102
  }
1108
- i(ko, "arrayFromSet");
1109
- function at(e, t) {
1110
- return e.size === 0 ? "Set{}" : (t.truncate -= 7, `Set{ ${D(ko(e), t)} }`);
1103
+ i(jo, "arrayFromSet");
1104
+ function lt(e, t) {
1105
+ return e.size === 0 ? "Set{}" : (t.truncate -= 7, `Set{ ${D(jo(e), t)} }`);
1111
1106
  }
1112
- i(at, "inspectSet");
1107
+ i(lt, "inspectSet");
1113
1108
 
1114
1109
  // ../node_modules/loupe/lib/string.js
1115
- var bn = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\u\
1116
- ffff]", "g"), Bo = {
1110
+ var Sn = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\u\
1111
+ ffff]", "g"), ko = {
1117
1112
  "\b": "\\b",
1118
1113
  " ": "\\t",
1119
1114
  "\n": "\\n",
@@ -1121,55 +1116,55 @@ ffff]", "g"), Bo = {
1121
1116
  "\r": "\\r",
1122
1117
  "'": "\\'",
1123
1118
  "\\": "\\\\"
1124
- }, zo = 16, Yo = 4;
1125
- function Uo(e) {
1126
- return Bo[e] || `\\u${`0000${e.charCodeAt(0).toString(zo)}`.slice(-Yo)}`;
1119
+ }, Bo = 16, zo = 4;
1120
+ function Yo(e) {
1121
+ return ko[e] || `\\u${`0000${e.charCodeAt(0).toString(Bo)}`.slice(-zo)}`;
1127
1122
  }
1128
- i(Uo, "escape");
1129
- function De(e, t) {
1130
- return bn.test(e) && (e = e.replace(bn, Uo)), t.stylize(`'${B(e, t.truncate - 2)}'`, "string");
1123
+ i(Yo, "escape");
1124
+ function xe(e, t) {
1125
+ return Sn.test(e) && (e = e.replace(Sn, Yo)), t.stylize(`'${B(e, t.truncate - 2)}'`, "string");
1131
1126
  }
1132
- i(De, "inspectString");
1127
+ i(xe, "inspectString");
1133
1128
 
1134
1129
  // ../node_modules/loupe/lib/symbol.js
1135
- function Fe(e) {
1130
+ function De(e) {
1136
1131
  return "description" in Symbol.prototype ? e.description ? `Symbol(${e.description})` : "Symbol()" : e.toString();
1137
1132
  }
1138
- i(Fe, "inspectSymbol");
1133
+ i(De, "inspectSymbol");
1139
1134
 
1140
1135
  // ../node_modules/loupe/lib/promise.js
1141
- var Sn = /* @__PURE__ */ i(() => "Promise{\u2026}", "getPromiseValue");
1136
+ var En = /* @__PURE__ */ i(() => "Promise{\u2026}", "getPromiseValue");
1142
1137
  try {
1143
1138
  let { getPromiseDetails: e, kPending: t, kRejected: n } = process.binding("util");
1144
- Array.isArray(e(Promise.resolve())) && (Sn = /* @__PURE__ */ i((r, o) => {
1139
+ Array.isArray(e(Promise.resolve())) && (En = /* @__PURE__ */ i((r, o) => {
1145
1140
  let [s, c] = e(r);
1146
1141
  return s === t ? "Promise{<pending>}" : `Promise${s === n ? "!" : ""}{${o.inspect(c, o)}}`;
1147
1142
  }, "getPromiseValue"));
1148
1143
  } catch {
1149
1144
  }
1150
- var En = Sn;
1145
+ var _n = En;
1151
1146
 
1152
1147
  // ../node_modules/loupe/lib/object.js
1153
- function fe(e, t) {
1148
+ function me(e, t) {
1154
1149
  let n = Object.getOwnPropertyNames(e), r = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e) : [];
1155
1150
  if (n.length === 0 && r.length === 0)
1156
1151
  return "{}";
1157
1152
  if (t.truncate -= 4, t.seen = t.seen || [], t.seen.includes(e))
1158
1153
  return "[Circular]";
1159
1154
  t.seen.push(e);
1160
- let o = D(n.map((l) => [l, e[l]]), t, ce), s = D(r.map((l) => [l, e[l]]), t, ce);
1155
+ let o = D(n.map((a) => [a, e[a]]), t, ce), s = D(r.map((a) => [a, e[a]]), t, ce);
1161
1156
  t.seen.pop();
1162
1157
  let c = "";
1163
1158
  return o && s && (c = ", "), `{ ${o}${c}${s} }`;
1164
1159
  }
1165
- i(fe, "inspectObject");
1160
+ i(me, "inspectObject");
1166
1161
 
1167
1162
  // ../node_modules/loupe/lib/class.js
1168
1163
  var ft = typeof Symbol < "u" && Symbol.toStringTag ? Symbol.toStringTag : !1;
1169
1164
  function mt(e, t) {
1170
1165
  let n = "";
1171
1166
  return ft && ft in e && (n = e[ft]), n = n || e.constructor.name, (!n || n === "_class") && (n = "<Anonymous Class>"), t.truncate -= n.length,
1172
- `${n}${fe(e, t)}`;
1167
+ `${n}${me(e, t)}`;
1173
1168
  }
1174
1169
  i(mt, "inspectClass");
1175
1170
 
@@ -1180,7 +1175,7 @@ function pt(e, t) {
1180
1175
  i(pt, "inspectArguments");
1181
1176
 
1182
1177
  // ../node_modules/loupe/lib/error.js
1183
- var Wo = [
1178
+ var Uo = [
1184
1179
  "stack",
1185
1180
  "line",
1186
1181
  "column",
@@ -1194,7 +1189,7 @@ var Wo = [
1194
1189
  "cause"
1195
1190
  ];
1196
1191
  function gt(e, t) {
1197
- let n = Object.getOwnPropertyNames(e).filter((c) => Wo.indexOf(c) === -1), r = e.name;
1192
+ let n = Object.getOwnPropertyNames(e).filter((c) => Uo.indexOf(c) === -1), r = e.name;
1198
1193
  t.truncate -= r.length;
1199
1194
  let o = "";
1200
1195
  if (typeof e.message == "string" ? o = B(e.message, t.truncate) : n.unshift("message"), o = o ? `: ${o}` : "", t.truncate -= o.length + 5,
@@ -1207,56 +1202,61 @@ function gt(e, t) {
1207
1202
  i(gt, "inspectObject");
1208
1203
 
1209
1204
  // ../node_modules/loupe/lib/html.js
1210
- function Vo([e, t], n) {
1205
+ function Wo([e, t], n) {
1211
1206
  return n.truncate -= 3, t ? `${n.stylize(String(e), "yellow")}=${n.stylize(`"${t}"`, "string")}` : `${n.stylize(String(e), "yellow")}`;
1212
1207
  }
1213
- i(Vo, "inspectAttribute");
1214
- function je(e, t) {
1215
- return D(e, t, ke, `
1208
+ i(Wo, "inspectAttribute");
1209
+ function Fe(e, t) {
1210
+ return D(e, t, Vo, `
1216
1211
  `);
1217
1212
  }
1218
- i(je, "inspectHTMLCollection");
1219
- function ke(e, t) {
1213
+ i(Fe, "inspectNodeCollection");
1214
+ function Vo(e, t) {
1215
+ switch (e.nodeType) {
1216
+ case 1:
1217
+ return je(e, t);
1218
+ case 3:
1219
+ return t.inspect(e.data, t);
1220
+ default:
1221
+ return t.inspect(e, t);
1222
+ }
1223
+ }
1224
+ i(Vo, "inspectNode");
1225
+ function je(e, t) {
1220
1226
  let n = e.getAttributeNames(), r = e.tagName.toLowerCase(), o = t.stylize(`<${r}`, "special"), s = t.stylize(">", "special"), c = t.stylize(
1221
1227
  `</${r}>`, "special");
1222
1228
  t.truncate -= r.length * 2 + 5;
1223
- let l = "";
1224
- n.length > 0 && (l += " ", l += D(n.map((p) => [p, e.getAttribute(p)]), t, Vo, " ")), t.truncate -= l.length;
1225
- let u = t.truncate, m = je(e.children, t);
1226
- return m && m.length > u && (m = `${ie}(${e.children.length})`), `${o}${l}${s}${m}${c}`;
1229
+ let a = "";
1230
+ n.length > 0 && (a += " ", a += D(n.map((p) => [p, e.getAttribute(p)]), t, Wo, " ")), t.truncate -= a.length;
1231
+ let u = t.truncate, m = Fe(e.children, t);
1232
+ return m && m.length > u && (m = `${ie}(${e.children.length})`), `${o}${a}${s}${m}${c}`;
1227
1233
  }
1228
- i(ke, "inspectHTML");
1234
+ i(je, "inspectHTML");
1229
1235
 
1230
1236
  // ../node_modules/loupe/lib/index.js
1231
- var qo = typeof Symbol == "function" && typeof Symbol.for == "function", ht = qo ? Symbol.for("chai/inspect") : "@@chai/inspect", de = !1;
1232
- try {
1233
- let e = _n();
1234
- de = e.inspect ? e.inspect.custom : !1;
1235
- } catch {
1236
- de = !1;
1237
- }
1238
- var Tn = /* @__PURE__ */ new WeakMap(), Cn = {}, On = {
1237
+ var qo = typeof Symbol == "function" && typeof Symbol.for == "function", ht = qo ? Symbol.for("chai/inspect") : "@@chai/inspect", dt = Symbol.
1238
+ for("nodejs.util.inspect.custom"), Tn = /* @__PURE__ */ new WeakMap(), Cn = {}, On = {
1239
1239
  undefined: /* @__PURE__ */ i((e, t) => t.stylize("undefined", "undefined"), "undefined"),
1240
1240
  null: /* @__PURE__ */ i((e, t) => t.stylize("null", "null"), "null"),
1241
1241
  boolean: /* @__PURE__ */ i((e, t) => t.stylize(String(e), "boolean"), "boolean"),
1242
1242
  Boolean: /* @__PURE__ */ i((e, t) => t.stylize(String(e), "boolean"), "Boolean"),
1243
- number: Le,
1244
- Number: Le,
1245
- bigint: xe,
1246
- BigInt: xe,
1247
- string: De,
1248
- String: De,
1249
- function: Me,
1250
- Function: Me,
1251
- symbol: Fe,
1243
+ number: Me,
1244
+ Number: Me,
1245
+ bigint: Le,
1246
+ BigInt: Le,
1247
+ string: xe,
1248
+ String: xe,
1249
+ function: Ie,
1250
+ Function: Ie,
1251
+ symbol: De,
1252
1252
  // A Symbol polyfill will return `Symbol` not `symbol` from typedetect
1253
- Symbol: Fe,
1253
+ Symbol: De,
1254
1254
  Array: it,
1255
1255
  Date: ct,
1256
1256
  Map: ut,
1257
- Set: at,
1258
- RegExp: lt,
1259
- Promise: En,
1257
+ Set: lt,
1258
+ RegExp: at,
1259
+ Promise: _n,
1260
1260
  // WeakSet, WeakMap are totally opaque to us
1261
1261
  WeakSet: /* @__PURE__ */ i((e, t) => t.stylize("WeakSet{\u2026}", "special"), "WeakSet"),
1262
1262
  WeakMap: /* @__PURE__ */ i((e, t) => t.stylize("WeakMap{\u2026}", "special"), "WeakMap"),
@@ -1274,28 +1274,28 @@ var Tn = /* @__PURE__ */ new WeakMap(), Cn = {}, On = {
1274
1274
  DataView: /* @__PURE__ */ i(() => "", "DataView"),
1275
1275
  ArrayBuffer: /* @__PURE__ */ i(() => "", "ArrayBuffer"),
1276
1276
  Error: gt,
1277
- HTMLCollection: je,
1278
- NodeList: je
1279
- }, Ko = /* @__PURE__ */ i((e, t, n) => ht in e && typeof e[ht] == "function" ? e[ht](t) : de && de in e && typeof e[de] == "function" ? e[de](
1280
- t.depth, t) : "inspect" in e && typeof e.inspect == "function" ? e.inspect(t.depth, t) : "constructor" in e && Tn.has(e.constructor) ? Tn.get(
1281
- e.constructor)(e, t) : Cn[n] ? Cn[n](e, t) : "", "inspectCustom"), Go = Object.prototype.toString;
1282
- function Be(e, t = {}) {
1283
- let n = yn(t, Be), { customInspect: r } = n, o = e === null ? "null" : typeof e;
1277
+ HTMLCollection: Fe,
1278
+ NodeList: Fe
1279
+ }, Ko = /* @__PURE__ */ i((e, t, n) => ht in e && typeof e[ht] == "function" ? e[ht](t) : dt in e && typeof e[dt] == "function" ? e[dt](t.depth,
1280
+ t) : "inspect" in e && typeof e.inspect == "function" ? e.inspect(t.depth, t) : "constructor" in e && Tn.has(e.constructor) ? Tn.get(e.constructor)(
1281
+ e, t) : Cn[n] ? Cn[n](e, t) : "", "inspectCustom"), Go = Object.prototype.toString;
1282
+ function ke(e, t = {}) {
1283
+ let n = bn(t, ke), { customInspect: r } = n, o = e === null ? "null" : typeof e;
1284
1284
  if (o === "object" && (o = Go.call(e).slice(8, -1)), o in On)
1285
1285
  return On[o](e, n);
1286
1286
  if (r && e) {
1287
1287
  let c = Ko(e, n, o);
1288
1288
  if (c)
1289
- return typeof c == "string" ? c : Be(c, n);
1289
+ return typeof c == "string" ? c : ke(c, n);
1290
1290
  }
1291
1291
  let s = e ? Object.getPrototypeOf(e) : !1;
1292
- return s === Object.prototype || s === null ? fe(e, n) : e && typeof HTMLElement == "function" && e instanceof HTMLElement ? ke(e, n) : "c\
1293
- onstructor" in e ? e.constructor !== Object ? mt(e, n) : fe(e, n) : e === Object(e) ? fe(e, n) : n.stylize(String(e), o);
1292
+ return s === Object.prototype || s === null ? me(e, n) : e && typeof HTMLElement == "function" && e instanceof HTMLElement ? je(e, n) : "c\
1293
+ onstructor" in e ? e.constructor !== Object ? mt(e, n) : me(e, n) : e === Object(e) ? me(e, n) : n.stylize(String(e), o);
1294
1294
  }
1295
- i(Be, "inspect");
1295
+ i(ke, "inspect");
1296
1296
 
1297
1297
  // ../node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
1298
- var { AsymmetricMatcher: Jo, DOMCollection: Xo, DOMElement: Zo, Immutable: Qo, ReactElement: vo, ReactTestComponent: es } = Te, $n = [
1298
+ var { AsymmetricMatcher: Jo, DOMCollection: Xo, DOMElement: Zo, Immutable: Qo, ReactElement: vo, ReactTestComponent: es } = _e, $n = [
1299
1299
  es,
1300
1300
  vo,
1301
1301
  Zo,
@@ -1303,7 +1303,7 @@ var { AsymmetricMatcher: Jo, DOMCollection: Xo, DOMElement: Zo, Immutable: Qo, R
1303
1303
  Qo,
1304
1304
  Jo
1305
1305
  ];
1306
- function me(e, t = 10, { maxLength: n, ...r } = {}) {
1306
+ function pe(e, t = 10, { maxLength: n, ...r } = {}) {
1307
1307
  let o = n ?? 1e4, s;
1308
1308
  try {
1309
1309
  s = X(e, {
@@ -1321,18 +1321,18 @@ function me(e, t = 10, { maxLength: n, ...r } = {}) {
1321
1321
  ...r
1322
1322
  });
1323
1323
  }
1324
- return s.length >= o && t > 1 ? me(e, Math.floor(Math.min(t, Number.MAX_SAFE_INTEGER) / 2), {
1324
+ return s.length >= o && t > 1 ? pe(e, Math.floor(Math.min(t, Number.MAX_SAFE_INTEGER) / 2), {
1325
1325
  maxLength: n,
1326
1326
  ...r
1327
1327
  }) : s;
1328
1328
  }
1329
- i(me, "stringify");
1329
+ i(pe, "stringify");
1330
1330
  var ts = /%[sdjifoOc%]/g;
1331
1331
  function wn(...e) {
1332
1332
  if (typeof e[0] != "string") {
1333
1333
  let s = [];
1334
1334
  for (let c = 0; c < e.length; c++)
1335
- s.push(Ce(e[c], {
1335
+ s.push(Te(e[c], {
1336
1336
  depth: 0,
1337
1337
  colors: !1
1338
1338
  }));
@@ -1347,7 +1347,7 @@ function wn(...e) {
1347
1347
  case "%s": {
1348
1348
  let c = e[n++];
1349
1349
  return typeof c == "bigint" ? `${c.toString()}n` : typeof c == "number" && c === 0 && 1 / c < 0 ? "-0" : typeof c == "object" && c !==
1350
- null ? typeof c.toString == "function" && c.toString !== Object.prototype.toString ? c.toString() : Ce(c, {
1350
+ null ? typeof c.toString == "function" && c.toString !== Object.prototype.toString ? c.toString() : Te(c, {
1351
1351
  depth: 0,
1352
1352
  colors: !1
1353
1353
  }) : String(c);
@@ -1363,20 +1363,20 @@ function wn(...e) {
1363
1363
  case "%f":
1364
1364
  return Number.parseFloat(String(e[n++])).toString();
1365
1365
  case "%o":
1366
- return Ce(e[n++], {
1366
+ return Te(e[n++], {
1367
1367
  showHidden: !0,
1368
1368
  showProxy: !0
1369
1369
  });
1370
1370
  case "%O":
1371
- return Ce(e[n++]);
1371
+ return Te(e[n++]);
1372
1372
  case "%c":
1373
1373
  return n++, "";
1374
1374
  case "%j":
1375
1375
  try {
1376
1376
  return JSON.stringify(e[n++]);
1377
1377
  } catch (c) {
1378
- let l = c.message;
1379
- if (l.includes("circular structure") || l.includes("cyclic structures") || l.includes("cyclic object"))
1378
+ let a = c.message;
1379
+ if (a.includes("circular structure") || a.includes("cyclic structures") || a.includes("cyclic object"))
1380
1380
  return "[Circular]";
1381
1381
  throw c;
1382
1382
  }
@@ -1385,14 +1385,14 @@ function wn(...e) {
1385
1385
  }
1386
1386
  });
1387
1387
  for (let s = e[n]; n < t; s = e[++n])
1388
- s === null || typeof s != "object" ? o += ` ${s}` : o += ` ${Ce(s)}`;
1388
+ s === null || typeof s != "object" ? o += ` ${s}` : o += ` ${Te(s)}`;
1389
1389
  return o;
1390
1390
  }
1391
1391
  i(wn, "format");
1392
- function Ce(e, t = {}) {
1393
- return t.truncate === 0 && (t.truncate = Number.POSITIVE_INFINITY), Be(e, t);
1392
+ function Te(e, t = {}) {
1393
+ return t.truncate === 0 && (t.truncate = Number.POSITIVE_INFINITY), ke(e, t);
1394
1394
  }
1395
- i(Ce, "inspect");
1395
+ i(Te, "inspect");
1396
1396
  function An(e) {
1397
1397
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1398
1398
  }
@@ -1403,54 +1403,54 @@ function ns(e) {
1403
1403
  return e === Object.prototype || e === Function.prototype || e === RegExp.prototype;
1404
1404
  }
1405
1405
  i(ns, "isFinalObj");
1406
- function ze(e) {
1406
+ function Be(e) {
1407
1407
  return Object.prototype.toString.apply(e).slice(8, -1);
1408
1408
  }
1409
- i(ze, "getType");
1409
+ i(Be, "getType");
1410
1410
  function rs(e, t) {
1411
1411
  let n = typeof t == "function" ? t : (r) => t.add(r);
1412
1412
  Object.getOwnPropertyNames(e).forEach(n), Object.getOwnPropertySymbols(e).forEach(n);
1413
1413
  }
1414
1414
  i(rs, "collectOwnProperties");
1415
- function yt(e) {
1415
+ function bt(e) {
1416
1416
  let t = /* @__PURE__ */ new Set();
1417
1417
  return ns(e) ? [] : (rs(e, t), Array.from(t));
1418
1418
  }
1419
- i(yt, "getOwnProperties");
1419
+ i(bt, "getOwnProperties");
1420
1420
  var Rn = { forceWritable: !1 };
1421
- function bt(e, t = Rn) {
1422
- return dt(e, /* @__PURE__ */ new WeakMap(), t);
1421
+ function St(e, t = Rn) {
1422
+ return yt(e, /* @__PURE__ */ new WeakMap(), t);
1423
1423
  }
1424
- i(bt, "deepClone");
1425
- function dt(e, t, n = Rn) {
1424
+ i(St, "deepClone");
1425
+ function yt(e, t, n = Rn) {
1426
1426
  let r, o;
1427
1427
  if (t.has(e))
1428
1428
  return t.get(e);
1429
1429
  if (Array.isArray(e)) {
1430
1430
  for (o = Array.from({ length: r = e.length }), t.set(e, o); r--; )
1431
- o[r] = dt(e[r], t, n);
1431
+ o[r] = yt(e[r], t, n);
1432
1432
  return o;
1433
1433
  }
1434
1434
  if (Object.prototype.toString.call(e) === "[object Object]") {
1435
1435
  o = Object.create(Object.getPrototypeOf(e)), t.set(e, o);
1436
- let s = yt(e);
1436
+ let s = bt(e);
1437
1437
  for (let c of s) {
1438
- let l = Object.getOwnPropertyDescriptor(e, c);
1439
- if (!l)
1438
+ let a = Object.getOwnPropertyDescriptor(e, c);
1439
+ if (!a)
1440
1440
  continue;
1441
- let u = dt(e[c], t, n);
1441
+ let u = yt(e[c], t, n);
1442
1442
  n.forceWritable ? Object.defineProperty(o, c, {
1443
- enumerable: l.enumerable,
1443
+ enumerable: a.enumerable,
1444
1444
  configurable: !0,
1445
1445
  writable: !0,
1446
1446
  value: u
1447
- }) : "get" in l ? Object.defineProperty(o, c, {
1448
- ...l,
1447
+ }) : "get" in a ? Object.defineProperty(o, c, {
1448
+ ...a,
1449
1449
  get() {
1450
1450
  return u;
1451
1451
  }
1452
1452
  }) : Object.defineProperty(o, c, {
1453
- ...l,
1453
+ ...a,
1454
1454
  value: u
1455
1455
  });
1456
1456
  }
@@ -1458,18 +1458,18 @@ function dt(e, t, n = Rn) {
1458
1458
  }
1459
1459
  return e;
1460
1460
  }
1461
- i(dt, "clone");
1461
+ i(yt, "clone");
1462
1462
 
1463
1463
  // ../node_modules/@vitest/utils/dist/diff.js
1464
- var z = -1, j = 1, M = 0, At = class At {
1464
+ var z = -1, j = 1, M = 0, Rt = class Rt {
1465
1465
  0;
1466
1466
  1;
1467
1467
  constructor(t, n) {
1468
1468
  this[0] = t, this[1] = n;
1469
1469
  }
1470
1470
  };
1471
- i(At, "Diff");
1472
- var P = At;
1471
+ i(Rt, "Diff");
1472
+ var N = Rt;
1473
1473
  function os(e, t) {
1474
1474
  if (!e || !t || e.charAt(0) !== t.charAt(0))
1475
1475
  return 0;
@@ -1489,7 +1489,7 @@ function Vn(e, t) {
1489
1489
  return o;
1490
1490
  }
1491
1491
  i(Vn, "diff_commonSuffix");
1492
- function Pn(e, t) {
1492
+ function Nn(e, t) {
1493
1493
  let n = e.length, r = t.length;
1494
1494
  if (n === 0 || r === 0)
1495
1495
  return 0;
@@ -1499,31 +1499,31 @@ function Pn(e, t) {
1499
1499
  return o;
1500
1500
  let s = 0, c = 1;
1501
1501
  for (; ; ) {
1502
- let l = e.substring(o - c), u = t.indexOf(l);
1502
+ let a = e.substring(o - c), u = t.indexOf(a);
1503
1503
  if (u === -1)
1504
1504
  return s;
1505
1505
  c += u, (u === 0 || e.substring(o - c) === t.substring(0, c)) && (s = c, c++);
1506
1506
  }
1507
1507
  }
1508
- i(Pn, "diff_commonOverlap_");
1508
+ i(Nn, "diff_commonOverlap_");
1509
1509
  function ss(e) {
1510
- let t = !1, n = [], r = 0, o = null, s = 0, c = 0, l = 0, u = 0, m = 0;
1510
+ let t = !1, n = [], r = 0, o = null, s = 0, c = 0, a = 0, u = 0, m = 0;
1511
1511
  for (; s < e.length; )
1512
- e[s][0] === M ? (n[r++] = s, c = u, l = m, u = 0, m = 0, o = e[s][1]) : (e[s][0] === j ? u += e[s][1].length : m += e[s][1].length, o &&
1513
- o.length <= Math.max(c, l) && o.length <= Math.max(u, m) && (e.splice(n[r - 1], 0, new P(z, o)), e[n[r - 1] + 1][0] = j, r--, r--, s = r >
1514
- 0 ? n[r - 1] : -1, c = 0, l = 0, u = 0, m = 0, o = null, t = !0)), s++;
1512
+ e[s][0] === M ? (n[r++] = s, c = u, a = m, u = 0, m = 0, o = e[s][1]) : (e[s][0] === j ? u += e[s][1].length : m += e[s][1].length, o &&
1513
+ o.length <= Math.max(c, a) && o.length <= Math.max(u, m) && (e.splice(n[r - 1], 0, new N(z, o)), e[n[r - 1] + 1][0] = j, r--, r--, s = r >
1514
+ 0 ? n[r - 1] : -1, c = 0, a = 0, u = 0, m = 0, o = null, t = !0)), s++;
1515
1515
  for (t && qn(e), us(e), s = 1; s < e.length; ) {
1516
1516
  if (e[s - 1][0] === z && e[s][0] === j) {
1517
- let p = e[s - 1][1], a = e[s][1], S = Pn(p, a), g = Pn(a, p);
1518
- S >= g ? (S >= p.length / 2 || S >= a.length / 2) && (e.splice(s, 0, new P(M, a.substring(0, S))), e[s - 1][1] = p.substring(0, p.length -
1519
- S), e[s + 1][1] = a.substring(S), s++) : (g >= p.length / 2 || g >= a.length / 2) && (e.splice(s, 0, new P(M, p.substring(0, g))), e[s -
1520
- 1][0] = j, e[s - 1][1] = a.substring(0, a.length - g), e[s + 1][0] = z, e[s + 1][1] = p.substring(g), s++), s++;
1517
+ let p = e[s - 1][1], l = e[s][1], S = Nn(p, l), g = Nn(l, p);
1518
+ S >= g ? (S >= p.length / 2 || S >= l.length / 2) && (e.splice(s, 0, new N(M, l.substring(0, S))), e[s - 1][1] = p.substring(0, p.length -
1519
+ S), e[s + 1][1] = l.substring(S), s++) : (g >= p.length / 2 || g >= l.length / 2) && (e.splice(s, 0, new N(M, p.substring(0, g))), e[s -
1520
+ 1][0] = j, e[s - 1][1] = l.substring(0, l.length - g), e[s + 1][0] = z, e[s + 1][1] = p.substring(g), s++), s++;
1521
1521
  }
1522
1522
  s++;
1523
1523
  }
1524
1524
  }
1525
1525
  i(ss, "diff_cleanupSemantic");
1526
- var Nn = /[^a-z0-9]/i, In = /\s/, Mn = /[\r\n]/, is = /\n\r?\n$/, cs = /^\r?\n\r?\n/;
1526
+ var Pn = /[^a-z0-9]/i, In = /\s/, Mn = /[\r\n]/, is = /\n\r?\n$/, cs = /^\r?\n\r?\n/;
1527
1527
  function us(e) {
1528
1528
  let t = 1;
1529
1529
  for (; t < e.length - 1; ) {
@@ -1533,20 +1533,20 @@ function us(e) {
1533
1533
  let p = r.substring(r.length - s);
1534
1534
  n = n.substring(0, n.length - s), r = p + r.substring(0, r.length - s), o = p + o;
1535
1535
  }
1536
- let c = n, l = r, u = o, m = Ye(n, r) + Ye(r, o);
1536
+ let c = n, a = r, u = o, m = ze(n, r) + ze(r, o);
1537
1537
  for (; r.charAt(0) === o.charAt(0); ) {
1538
1538
  n += r.charAt(0), r = r.substring(1) + o.charAt(0), o = o.substring(1);
1539
- let p = Ye(n, r) + Ye(r, o);
1540
- p >= m && (m = p, c = n, l = r, u = o);
1539
+ let p = ze(n, r) + ze(r, o);
1540
+ p >= m && (m = p, c = n, a = r, u = o);
1541
1541
  }
1542
- e[t - 1][1] !== c && (c ? e[t - 1][1] = c : (e.splice(t - 1, 1), t--), e[t][1] = l, u ? e[t + 1][1] = u : (e.splice(t + 1, 1), t--));
1542
+ e[t - 1][1] !== c && (c ? e[t - 1][1] = c : (e.splice(t - 1, 1), t--), e[t][1] = a, u ? e[t + 1][1] = u : (e.splice(t + 1, 1), t--));
1543
1543
  }
1544
1544
  t++;
1545
1545
  }
1546
1546
  }
1547
1547
  i(us, "diff_cleanupSemanticLossless");
1548
1548
  function qn(e) {
1549
- e.push(new P(M, ""));
1549
+ e.push(new N(M, ""));
1550
1550
  let t = 0, n = 0, r = 0, o = "", s = "", c;
1551
1551
  for (; t < e.length; )
1552
1552
  switch (e[t][0]) {
@@ -1558,37 +1558,37 @@ function qn(e) {
1558
1558
  break;
1559
1559
  case M:
1560
1560
  n + r > 1 ? (n !== 0 && r !== 0 && (c = os(s, o), c !== 0 && (t - n - r > 0 && e[t - n - r - 1][0] === M ? e[t - n - r - 1][1] += s.
1561
- substring(0, c) : (e.splice(0, 0, new P(M, s.substring(0, c))), t++), s = s.substring(c), o = o.substring(c)), c = Vn(s, o), c !== 0 &&
1561
+ substring(0, c) : (e.splice(0, 0, new N(M, s.substring(0, c))), t++), s = s.substring(c), o = o.substring(c)), c = Vn(s, o), c !== 0 &&
1562
1562
  (e[t][1] = s.substring(s.length - c) + e[t][1], s = s.substring(0, s.length - c), o = o.substring(0, o.length - c))), t -= n + r, e.
1563
- splice(t, n + r), o.length && (e.splice(t, 0, new P(z, o)), t++), s.length && (e.splice(t, 0, new P(j, s)), t++), t++) : t !== 0 && e[t -
1563
+ splice(t, n + r), o.length && (e.splice(t, 0, new N(z, o)), t++), s.length && (e.splice(t, 0, new N(j, s)), t++), t++) : t !== 0 && e[t -
1564
1564
  1][0] === M ? (e[t - 1][1] += e[t][1], e.splice(t, 1)) : t++, r = 0, n = 0, o = "", s = "";
1565
1565
  break;
1566
1566
  }
1567
1567
  e[e.length - 1][1] === "" && e.pop();
1568
- let l = !1;
1568
+ let a = !1;
1569
1569
  for (t = 1; t < e.length - 1; )
1570
1570
  e[t - 1][0] === M && e[t + 1][0] === M && (e[t][1].substring(e[t][1].length - e[t - 1][1].length) === e[t - 1][1] ? (e[t][1] = e[t - 1][1] +
1571
- e[t][1].substring(0, e[t][1].length - e[t - 1][1].length), e[t + 1][1] = e[t - 1][1] + e[t + 1][1], e.splice(t - 1, 1), l = !0) : e[t][1].
1571
+ e[t][1].substring(0, e[t][1].length - e[t - 1][1].length), e[t + 1][1] = e[t - 1][1] + e[t + 1][1], e.splice(t - 1, 1), a = !0) : e[t][1].
1572
1572
  substring(0, e[t + 1][1].length) === e[t + 1][1] && (e[t - 1][1] += e[t + 1][1], e[t][1] = e[t][1].substring(e[t + 1][1].length) + e[t +
1573
- 1][1], e.splice(t + 1, 1), l = !0)), t++;
1574
- l && qn(e);
1573
+ 1][1], e.splice(t + 1, 1), a = !0)), t++;
1574
+ a && qn(e);
1575
1575
  }
1576
1576
  i(qn, "diff_cleanupMerge");
1577
- function Ye(e, t) {
1577
+ function ze(e, t) {
1578
1578
  if (!e || !t)
1579
1579
  return 6;
1580
- let n = e.charAt(e.length - 1), r = t.charAt(0), o = n.match(Nn), s = r.match(Nn), c = o && n.match(In), l = s && r.match(In), u = c && n.
1581
- match(Mn), m = l && r.match(Mn), p = u && e.match(is), a = m && t.match(cs);
1582
- return p || a ? 5 : u || m ? 4 : o && !c && l ? 3 : c || l ? 2 : o || s ? 1 : 0;
1583
- }
1584
- i(Ye, "diff_cleanupSemanticScore_");
1585
- var Kn = "Compared values have no visual difference.", ls = "Compared values serialize to the same structure.\nPrinting internal object struc\
1586
- ture without calling `toJSON` instead.", Ue = {}, Ln;
1587
- function as() {
1588
- if (Ln) return Ue;
1589
- Ln = 1, Object.defineProperty(Ue, "__esModule", {
1580
+ let n = e.charAt(e.length - 1), r = t.charAt(0), o = n.match(Pn), s = r.match(Pn), c = o && n.match(In), a = s && r.match(In), u = c && n.
1581
+ match(Mn), m = a && r.match(Mn), p = u && e.match(is), l = m && t.match(cs);
1582
+ return p || l ? 5 : u || m ? 4 : o && !c && a ? 3 : c || a ? 2 : o || s ? 1 : 0;
1583
+ }
1584
+ i(ze, "diff_cleanupSemanticScore_");
1585
+ var Kn = "Compared values have no visual difference.", as = "Compared values serialize to the same structure.\nPrinting internal object struc\
1586
+ ture without calling `toJSON` instead.", Ye = {}, Ln;
1587
+ function ls() {
1588
+ if (Ln) return Ye;
1589
+ Ln = 1, Object.defineProperty(Ye, "__esModule", {
1590
1590
  value: !0
1591
- }), Ue.default = S;
1591
+ }), Ye.default = S;
1592
1592
  let e = "diff-sequences", t = 0, n = /* @__PURE__ */ i((g, h, f, d, b) => {
1593
1593
  let _ = 0;
1594
1594
  for (; g < h && f < d && b(g, f); )
@@ -1642,8 +1642,8 @@ function as() {
1642
1642
  }
1643
1643
  return O;
1644
1644
  }, "extendPathsR"), c = /* @__PURE__ */ i((g, h, f, d, b, _, O, y, E, $, T) => {
1645
- let A = d - h, K = f - h, I = b - d - K, k = -I - (g - 1), G = -I + (g - 1), Y = t, N = g < y ? g : y;
1646
- for (let L = 0, x = -g; L <= N; L += 1, x += 2) {
1645
+ let A = d - h, K = f - h, I = b - d - K, k = -I - (g - 1), G = -I + (g - 1), Y = t, P = g < y ? g : y;
1646
+ for (let L = 0, x = -g; L <= P; L += 1, x += 2) {
1647
1647
  let H = L === 0 || L !== g && Y < O[L], F = H ? O[L] : Y, W = H ? F : F + 1, re = A + W - x, V = n(
1648
1648
  W + 1,
1649
1649
  f,
@@ -1660,20 +1660,20 @@ function as() {
1660
1660
  d,
1661
1661
  J,
1662
1662
  _
1663
- ), oe = F - U, ge = J - U, ue = oe + 1, Se = ge + 1;
1664
- T.nChangePreceding = g - 1, g - 1 === ue + Se - h - d ? (T.aEndPreceding = h, T.bEndPreceding = d) : (T.aEndPreceding = ue, T.bEndPreceding =
1665
- Se), T.nCommonPreceding = U, U !== 0 && (T.aCommonPreceding = ue, T.bCommonPreceding = Se), T.nCommonFollowing = V, V !== 0 && (T.
1663
+ ), oe = F - U, he = J - U, ue = oe + 1, be = he + 1;
1664
+ T.nChangePreceding = g - 1, g - 1 === ue + be - h - d ? (T.aEndPreceding = h, T.bEndPreceding = d) : (T.aEndPreceding = ue, T.bEndPreceding =
1665
+ be), T.nCommonPreceding = U, U !== 0 && (T.aCommonPreceding = ue, T.bCommonPreceding = be), T.nCommonFollowing = V, V !== 0 && (T.
1666
1666
  aCommonFollowing = W + 1, T.bCommonFollowing = re + 1);
1667
- let Oe = q + 1, $e = re + V + 1;
1668
- return T.nChangeFollowing = g - 1, g - 1 === f + b - Oe - $e ? (T.aStartFollowing = f, T.bStartFollowing = b) : (T.aStartFollowing =
1669
- Oe, T.bStartFollowing = $e), !0;
1667
+ let Ce = q + 1, Oe = re + V + 1;
1668
+ return T.nChangeFollowing = g - 1, g - 1 === f + b - Ce - Oe ? (T.aStartFollowing = f, T.bStartFollowing = b) : (T.aStartFollowing =
1669
+ Ce, T.bStartFollowing = Oe), !0;
1670
1670
  }
1671
1671
  }
1672
1672
  }
1673
1673
  return !1;
1674
- }, "extendOverlappablePathsF"), l = /* @__PURE__ */ i((g, h, f, d, b, _, O, y, E, $, T) => {
1675
- let A = b - f, K = f - h, I = b - d - K, k = I - g, G = I + g, Y = t, N = g < $ ? g : $;
1676
- for (let L = 0, x = g; L <= N; L += 1, x -= 2) {
1674
+ }, "extendOverlappablePathsF"), a = /* @__PURE__ */ i((g, h, f, d, b, _, O, y, E, $, T) => {
1675
+ let A = b - f, K = f - h, I = b - d - K, k = I - g, G = I + g, Y = t, P = g < $ ? g : $;
1676
+ for (let L = 0, x = g; L <= P; L += 1, x -= 2) {
1677
1677
  let H = L === 0 || L !== g && E[L] < Y, F = H ? E[L] : Y, W = H ? F : F - 1, re = A + W - x, V = r(
1678
1678
  h,
1679
1679
  W - 1,
@@ -1697,8 +1697,8 @@ function as() {
1697
1697
  _
1698
1698
  );
1699
1699
  T.nCommonFollowing = oe, oe !== 0 && (T.aCommonFollowing = F, T.bCommonFollowing = U);
1700
- let ge = F + oe, ue = U + oe;
1701
- g - 1 === f + b - ge - ue ? (T.aStartFollowing = f, T.bStartFollowing = b) : (T.aStartFollowing = ge, T.bStartFollowing = ue);
1700
+ let he = F + oe, ue = U + oe;
1701
+ g - 1 === f + b - he - ue ? (T.aStartFollowing = f, T.bStartFollowing = b) : (T.aStartFollowing = he, T.bStartFollowing = ue);
1702
1702
  }
1703
1703
  return !0;
1704
1704
  }
@@ -1709,14 +1709,14 @@ function as() {
1709
1709
  let $ = d - h, T = b - f, A = f - h, K = b - d, Q = K - A, I = A, k = A;
1710
1710
  if (O[0] = h - 1, y[0] = f, Q % 2 === 0) {
1711
1711
  let G = (g || Q) / 2, Y = (A + K) / 2;
1712
- for (let N = 1; N <= Y; N += 1)
1713
- if (I = o(N, f, b, $, _, O, I), N < G)
1714
- k = s(N, h, d, T, _, y, k);
1712
+ for (let P = 1; P <= Y; P += 1)
1713
+ if (I = o(P, f, b, $, _, O, I), P < G)
1714
+ k = s(P, h, d, T, _, y, k);
1715
1715
  else if (
1716
1716
  // If a reverse path overlaps a forward path in the same diagonal,
1717
1717
  // return a division of the index intervals at the middle change.
1718
- l(
1719
- N,
1718
+ a(
1719
+ P,
1720
1720
  h,
1721
1721
  f,
1722
1722
  d,
@@ -1731,23 +1731,23 @@ function as() {
1731
1731
  )
1732
1732
  return;
1733
1733
  } else {
1734
- let G = ((g || Q) + 1) / 2, Y = (A + K + 1) / 2, N = 1;
1735
- for (I = o(N, f, b, $, _, O, I), N += 1; N <= Y; N += 1)
1734
+ let G = ((g || Q) + 1) / 2, Y = (A + K + 1) / 2, P = 1;
1735
+ for (I = o(P, f, b, $, _, O, I), P += 1; P <= Y; P += 1)
1736
1736
  if (k = s(
1737
- N - 1,
1737
+ P - 1,
1738
1738
  h,
1739
1739
  d,
1740
1740
  T,
1741
1741
  _,
1742
1742
  y,
1743
1743
  k
1744
- ), N < G)
1745
- I = o(N, f, b, $, _, O, I);
1744
+ ), P < G)
1745
+ I = o(P, f, b, $, _, O, I);
1746
1746
  else if (
1747
1747
  // If a forward path overlaps a reverse path in the same diagonal,
1748
1748
  // return a division of the index intervals at the middle change.
1749
1749
  c(
1750
- N,
1750
+ P,
1751
1751
  h,
1752
1752
  f,
1753
1753
  d,
@@ -1798,7 +1798,7 @@ function as() {
1798
1798
  nCommonPreceding: k,
1799
1799
  aCommonPreceding: G,
1800
1800
  bCommonPreceding: Y,
1801
- nCommonFollowing: N,
1801
+ nCommonFollowing: P,
1802
1802
  aCommonFollowing: L,
1803
1803
  bCommonFollowing: x,
1804
1804
  nChangeFollowing: H,
@@ -1816,7 +1816,7 @@ function as() {
1816
1816
  y,
1817
1817
  E,
1818
1818
  $
1819
- ), k !== 0 && T(k, G, Y), N !== 0 && T(N, L, x), F < f && W < b && m(
1819
+ ), k !== 0 && T(k, G, Y), P !== 0 && T(P, L, x), F < f && W < b && m(
1820
1820
  H,
1821
1821
  F,
1822
1822
  f,
@@ -1835,13 +1835,13 @@ function as() {
1835
1835
  throw new RangeError(`${e}: ${g} value ${h} is not a safe integer`);
1836
1836
  if (h < 0)
1837
1837
  throw new RangeError(`${e}: ${g} value ${h} is a negative integer`);
1838
- }, "validateLength"), a = /* @__PURE__ */ i((g, h) => {
1838
+ }, "validateLength"), l = /* @__PURE__ */ i((g, h) => {
1839
1839
  let f = typeof h;
1840
1840
  if (f !== "function")
1841
1841
  throw new TypeError(`${e}: ${g} typeof ${f} is not a function`);
1842
1842
  }, "validateCallback");
1843
1843
  function S(g, h, f, d) {
1844
- p("aLength", g), p("bLength", h), a("isCommon", f), a("foundSubsequence", d);
1844
+ p("aLength", g), p("bLength", h), l("isCommon", f), l("foundSubsequence", d);
1845
1845
  let b = n(0, g, 0, h, f);
1846
1846
  if (b !== 0 && d(b, 0, 0), g !== b || h !== b) {
1847
1847
  let _ = b, O = b, y = r(
@@ -1883,28 +1883,28 @@ function as() {
1883
1883
  ), y !== 0 && d(y, E, $);
1884
1884
  }
1885
1885
  }
1886
- return i(S, "diffSequence"), Ue;
1886
+ return i(S, "diffSequence"), Ye;
1887
1887
  }
1888
- i(as, "requireBuild");
1889
- var fs = as(), Gn = /* @__PURE__ */ An(fs);
1888
+ i(ls, "requireBuild");
1889
+ var fs = ls(), Gn = /* @__PURE__ */ An(fs);
1890
1890
  function ms(e, t) {
1891
1891
  return e.replace(/\s+$/, (n) => t(n));
1892
1892
  }
1893
1893
  i(ms, "formatTrailingSpaces");
1894
- function $t(e, t, n, r, o, s) {
1894
+ function wt(e, t, n, r, o, s) {
1895
1895
  return e.length !== 0 ? n(`${r} ${ms(e, o)}`) : r !== " " ? n(r) : t && s.length !== 0 ? n(`${r} ${s}`) : "";
1896
1896
  }
1897
- i($t, "printDiffLine");
1897
+ i(wt, "printDiffLine");
1898
1898
  function Hn(e, t, { aColor: n, aIndicator: r, changeLineTrailingSpaceColor: o, emptyFirstOrLastLinePlaceholder: s }) {
1899
- return $t(e, t, n, r, o, s);
1899
+ return wt(e, t, n, r, o, s);
1900
1900
  }
1901
1901
  i(Hn, "printDeleteLine");
1902
1902
  function Jn(e, t, { bColor: n, bIndicator: r, changeLineTrailingSpaceColor: o, emptyFirstOrLastLinePlaceholder: s }) {
1903
- return $t(e, t, n, r, o, s);
1903
+ return wt(e, t, n, r, o, s);
1904
1904
  }
1905
1905
  i(Jn, "printInsertLine");
1906
1906
  function Xn(e, t, { commonColor: n, commonIndicator: r, commonLineTrailingSpaceColor: o, emptyFirstOrLastLinePlaceholder: s }) {
1907
- return $t(e, t, n, r, o, s);
1907
+ return wt(e, t, n, r, o, s);
1908
1908
  }
1909
1909
  i(Xn, "printCommonLine");
1910
1910
  function xn(e, t, n, r, { patchColor: o }) {
@@ -1912,7 +1912,7 @@ function xn(e, t, n, r, { patchColor: o }) {
1912
1912
  }
1913
1913
  i(xn, "createPatchMark");
1914
1914
  function ps(e, t) {
1915
- let n = e.length, r = t.contextLines, o = r + r, s = n, c = !1, l = 0, u = 0;
1915
+ let n = e.length, r = t.contextLines, o = r + r, s = n, c = !1, a = 0, u = 0;
1916
1916
  for (; u !== n; ) {
1917
1917
  let y = u;
1918
1918
  for (; u !== n && e[u][0] === M; )
@@ -1925,24 +1925,24 @@ function ps(e, t) {
1925
1925
  E > r && (s -= E - r, c = !0);
1926
1926
  } else {
1927
1927
  let E = u - y;
1928
- E > o && (s -= E - o, l += 1);
1928
+ E > o && (s -= E - o, a += 1);
1929
1929
  }
1930
1930
  for (; u !== n && e[u][0] !== M; )
1931
1931
  u += 1;
1932
1932
  }
1933
- let m = l !== 0 || c;
1934
- l !== 0 ? s += l + 1 : c && (s += 1);
1935
- let p = s - 1, a = [], S = 0;
1936
- m && a.push("");
1933
+ let m = a !== 0 || c;
1934
+ a !== 0 ? s += a + 1 : c && (s += 1);
1935
+ let p = s - 1, l = [], S = 0;
1936
+ m && l.push("");
1937
1937
  let g = 0, h = 0, f = 0, d = 0, b = /* @__PURE__ */ i((y) => {
1938
- let E = a.length;
1939
- a.push(Xn(y, E === 0 || E === p, t)), f += 1, d += 1;
1938
+ let E = l.length;
1939
+ l.push(Xn(y, E === 0 || E === p, t)), f += 1, d += 1;
1940
1940
  }, "pushCommonLine"), _ = /* @__PURE__ */ i((y) => {
1941
- let E = a.length;
1942
- a.push(Hn(y, E === 0 || E === p, t)), f += 1;
1941
+ let E = l.length;
1942
+ l.push(Hn(y, E === 0 || E === p, t)), f += 1;
1943
1943
  }, "pushDeleteLine"), O = /* @__PURE__ */ i((y) => {
1944
- let E = a.length;
1945
- a.push(Jn(y, E === 0 || E === p, t)), d += 1;
1944
+ let E = l.length;
1945
+ l.push(Jn(y, E === 0 || E === p, t)), d += 1;
1946
1946
  }, "pushInsertLine");
1947
1947
  for (u = 0; u !== n; ) {
1948
1948
  let y = u;
@@ -1963,7 +1963,7 @@ function ps(e, t) {
1963
1963
  let $ = y + r;
1964
1964
  for (let A = y; A !== $; A += 1)
1965
1965
  b(e[A][1]);
1966
- a[S] = xn(g, f, h, d, t), S = a.length, a.push("");
1966
+ l[S] = xn(g, f, h, d, t), S = l.length, l.push("");
1967
1967
  let T = E - o;
1968
1968
  g = f + T, h = d + T, f = g, d = h;
1969
1969
  for (let A = u - r; A !== u; A += 1)
@@ -1977,7 +1977,7 @@ function ps(e, t) {
1977
1977
  for (; u !== n && e[u][0] === j; )
1978
1978
  O(e[u][1]), u += 1;
1979
1979
  }
1980
- return m && (a[S] = xn(g, f, h, d, t)), a.join(`
1980
+ return m && (l[S] = xn(g, f, h, d, t)), l.join(`
1981
1981
  `);
1982
1982
  }
1983
1983
  i(ps, "joinAlignedDiffsNoExpand");
@@ -1996,7 +1996,7 @@ function gs(e, t) {
1996
1996
  `);
1997
1997
  }
1998
1998
  i(gs, "joinAlignedDiffsExpand");
1999
- var St = /* @__PURE__ */ i((e) => e, "noColor"), Zn = 5, hs = 0;
1999
+ var Et = /* @__PURE__ */ i((e) => e, "noColor"), Zn = 5, hs = 0;
2000
2000
  function ds() {
2001
2001
  return {
2002
2002
  aAnnotation: "Expected",
@@ -2006,10 +2006,10 @@ function ds() {
2006
2006
  bColor: v.red,
2007
2007
  bIndicator: "+",
2008
2008
  changeColor: v.inverse,
2009
- changeLineTrailingSpaceColor: St,
2009
+ changeLineTrailingSpaceColor: Et,
2010
2010
  commonColor: v.dim,
2011
2011
  commonIndicator: " ",
2012
- commonLineTrailingSpaceColor: St,
2012
+ commonLineTrailingSpaceColor: Et,
2013
2013
  compareKeys: void 0,
2014
2014
  contextLines: Zn,
2015
2015
  emptyFirstOrLastLinePlaceholder: "",
@@ -2020,7 +2020,7 @@ function ds() {
2020
2020
  printBasicPrototype: !1,
2021
2021
  truncateThreshold: hs,
2022
2022
  truncateAnnotation: "... Diff result is truncated",
2023
- truncateAnnotationColor: St
2023
+ truncateAnnotationColor: Et
2024
2024
  };
2025
2025
  }
2026
2026
  i(ds, "getDefaultOptions");
@@ -2032,7 +2032,7 @@ function bs(e) {
2032
2032
  return typeof e == "number" && Number.isSafeInteger(e) && e >= 0 ? e : Zn;
2033
2033
  }
2034
2034
  i(bs, "getContextLines");
2035
- function pe(e = {}) {
2035
+ function ge(e = {}) {
2036
2036
  return {
2037
2037
  ...ds(),
2038
2038
  ...e,
@@ -2040,7 +2040,7 @@ function pe(e = {}) {
2040
2040
  contextLines: bs(e.contextLines)
2041
2041
  };
2042
2042
  }
2043
- i(pe, "normalizeDiffOptions");
2043
+ i(ge, "normalizeDiffOptions");
2044
2044
  function ye(e) {
2045
2045
  return e.length === 1 && e[0].length === 0;
2046
2046
  }
@@ -2062,8 +2062,8 @@ function Ss(e) {
2062
2062
  };
2063
2063
  }
2064
2064
  i(Ss, "countChanges");
2065
- function Es({ aAnnotation: e, aColor: t, aIndicator: n, bAnnotation: r, bColor: o, bIndicator: s, includeChangeCounts: c, omitAnnotationLines: l }, u) {
2066
- if (l)
2065
+ function Es({ aAnnotation: e, aColor: t, aIndicator: n, bAnnotation: r, bColor: o, bIndicator: s, includeChangeCounts: c, omitAnnotationLines: a }, u) {
2066
+ if (a)
2067
2067
  return "";
2068
2068
  let m = "", p = "";
2069
2069
  if (c) {
@@ -2071,57 +2071,57 @@ function Es({ aAnnotation: e, aColor: t, aIndicator: n, bAnnotation: r, bColor:
2071
2071
  g.length, O = " ".repeat(Math.max(0, _)), y = " ".repeat(Math.max(0, -_));
2072
2072
  m = `${d} ${n} ${O}${g}`, p = `${b} ${s} ${y}${h}`;
2073
2073
  }
2074
- let a = `${n} ${e}${m}`, S = `${s} ${r}${p}`;
2075
- return `${t(a)}
2074
+ let l = `${n} ${e}${m}`, S = `${s} ${r}${p}`;
2075
+ return `${t(l)}
2076
2076
  ${o(S)}
2077
2077
 
2078
2078
  `;
2079
2079
  }
2080
2080
  i(Es, "printAnnotation");
2081
- function wt(e, t, n) {
2081
+ function At(e, t, n) {
2082
2082
  return Es(n, Ss(e)) + (n.expand ? gs(e, n) : ps(e, n)) + (t ? n.truncateAnnotationColor(`
2083
2083
  ${n.truncateAnnotation}`) : "");
2084
2084
  }
2085
- i(wt, "printDiffLines");
2086
- function Ve(e, t, n) {
2087
- let r = pe(n), [o, s] = Qn(ye(e) ? [] : e, ye(t) ? [] : t, r);
2088
- return wt(o, s, r);
2085
+ i(At, "printDiffLines");
2086
+ function We(e, t, n) {
2087
+ let r = ge(n), [o, s] = Qn(ye(e) ? [] : e, ye(t) ? [] : t, r);
2088
+ return At(o, s, r);
2089
2089
  }
2090
- i(Ve, "diffLinesUnified");
2090
+ i(We, "diffLinesUnified");
2091
2091
  function _s(e, t, n, r, o) {
2092
2092
  if (ye(e) && ye(n) && (e = [], n = []), ye(t) && ye(r) && (t = [], r = []), e.length !== n.length || t.length !== r.length)
2093
- return Ve(e, t, o);
2094
- let [s, c] = Qn(n, r, o), l = 0, u = 0;
2093
+ return We(e, t, o);
2094
+ let [s, c] = Qn(n, r, o), a = 0, u = 0;
2095
2095
  return s.forEach((m) => {
2096
2096
  switch (m[0]) {
2097
2097
  case z:
2098
- m[1] = e[l], l += 1;
2098
+ m[1] = e[a], a += 1;
2099
2099
  break;
2100
2100
  case j:
2101
2101
  m[1] = t[u], u += 1;
2102
2102
  break;
2103
2103
  default:
2104
- m[1] = t[u], l += 1, u += 1;
2104
+ m[1] = t[u], a += 1, u += 1;
2105
2105
  }
2106
- }), wt(s, c, pe(o));
2106
+ }), At(s, c, ge(o));
2107
2107
  }
2108
2108
  i(_s, "diffLinesUnified2");
2109
2109
  function Qn(e, t, n) {
2110
2110
  let r = n?.truncateThreshold ?? !1, o = Math.max(Math.floor(n?.truncateThreshold ?? 0), 0), s = r ? Math.min(e.length, o) : e.length, c = r ?
2111
- Math.min(t.length, o) : t.length, l = s !== e.length || c !== t.length, u = /* @__PURE__ */ i((g, h) => e[g] === t[h], "isCommon"), m = [],
2112
- p = 0, a = 0;
2111
+ Math.min(t.length, o) : t.length, a = s !== e.length || c !== t.length, u = /* @__PURE__ */ i((g, h) => e[g] === t[h], "isCommon"), m = [],
2112
+ p = 0, l = 0;
2113
2113
  for (Gn(s, c, u, /* @__PURE__ */ i((g, h, f) => {
2114
2114
  for (; p !== h; p += 1)
2115
- m.push(new P(z, e[p]));
2116
- for (; a !== f; a += 1)
2117
- m.push(new P(j, t[a]));
2118
- for (; g !== 0; g -= 1, p += 1, a += 1)
2119
- m.push(new P(M, t[a]));
2115
+ m.push(new N(z, e[p]));
2116
+ for (; l !== f; l += 1)
2117
+ m.push(new N(j, t[l]));
2118
+ for (; g !== 0; g -= 1, p += 1, l += 1)
2119
+ m.push(new N(M, t[l]));
2120
2120
  }, "foundSubsequence")); p !== s; p += 1)
2121
- m.push(new P(z, e[p]));
2122
- for (; a !== c; a += 1)
2123
- m.push(new P(j, t[a]));
2124
- return [m, l];
2121
+ m.push(new N(z, e[p]));
2122
+ for (; l !== c; l += 1)
2123
+ m.push(new N(j, t[l]));
2124
+ return [m, a];
2125
2125
  }
2126
2126
  i(Qn, "diffLinesRaw");
2127
2127
  function Dn(e) {
@@ -2175,18 +2175,18 @@ function Ts(e, t, n) {
2175
2175
  ` : t;
2176
2176
  s = b.length, c = _.length;
2177
2177
  }
2178
- let l = s !== e.length || c !== t.length, u = /* @__PURE__ */ i((g, h) => e[g] === t[h], "isCommon"), m = 0, p = 0, a = [];
2178
+ let a = s !== e.length || c !== t.length, u = /* @__PURE__ */ i((g, h) => e[g] === t[h], "isCommon"), m = 0, p = 0, l = [];
2179
2179
  return Gn(s, c, u, /* @__PURE__ */ i((g, h, f) => {
2180
- m !== h && a.push(new P(z, e.slice(m, h))), p !== f && a.push(new P(j, t.slice(p, f))), m = h + g, p = f + g, a.push(new P(M, t.slice(f,
2180
+ m !== h && l.push(new N(z, e.slice(m, h))), p !== f && l.push(new N(j, t.slice(p, f))), m = h + g, p = f + g, l.push(new N(M, t.slice(f,
2181
2181
  p)));
2182
- }, "foundSubsequence")), m !== s && a.push(new P(z, e.slice(m))), p !== c && a.push(new P(j, t.slice(p))), [a, l];
2182
+ }, "foundSubsequence")), m !== s && l.push(new N(z, e.slice(m))), p !== c && l.push(new N(j, t.slice(p))), [l, a];
2183
2183
  }
2184
2184
  i(Ts, "diffStrings");
2185
2185
  function Cs(e, t, n) {
2186
2186
  return t.reduce((r, o) => r + (o[0] === M ? o[1] : o[0] === e && o[1].length !== 0 ? n(o[1]) : ""), "");
2187
2187
  }
2188
2188
  i(Cs, "concatenateRelevantDiffs");
2189
- var Rt = class Rt {
2189
+ var Nt = class Nt {
2190
2190
  op;
2191
2191
  line;
2192
2192
  lines;
@@ -2195,18 +2195,20 @@ var Rt = class Rt {
2195
2195
  this.op = t, this.line = [], this.lines = [], this.changeColor = n;
2196
2196
  }
2197
2197
  pushSubstring(t) {
2198
- this.pushDiff(new P(this.op, t));
2198
+ this.pushDiff(new N(this.op, t));
2199
2199
  }
2200
2200
  pushLine() {
2201
- this.lines.push(this.line.length !== 1 ? new P(this.op, Cs(this.op, this.line, this.changeColor)) : this.line[0][0] === this.op ? this.line[0] :
2202
- new P(this.op, this.line[0][1])), this.line.length = 0;
2201
+ this.lines.push(this.line.length !== 1 ? new N(this.op, Cs(this.op, this.line, this.changeColor)) : this.line[0][0] === this.op ? this.line[0] :
2202
+ new N(this.op, this.line[0][1])), this.line.length = 0;
2203
2203
  }
2204
2204
  isLineEmpty() {
2205
2205
  return this.line.length === 0;
2206
2206
  }
2207
+ // Minor input to buffer.
2207
2208
  pushDiff(t) {
2208
2209
  this.line.push(t);
2209
2210
  }
2211
+ // Main input to buffer.
2210
2212
  align(t) {
2211
2213
  let n = t[1];
2212
2214
  if (n.includes(`
@@ -2219,12 +2221,13 @@ var Rt = class Rt {
2219
2221
  } else
2220
2222
  this.pushDiff(t);
2221
2223
  }
2224
+ // Output from buffer.
2222
2225
  moveLinesTo(t) {
2223
2226
  this.isLineEmpty() || this.pushLine(), t.push(...this.lines), this.lines.length = 0;
2224
2227
  }
2225
2228
  };
2226
- i(Rt, "ChangeBuffer");
2227
- var We = Rt, Pt = class Pt {
2229
+ i(Nt, "ChangeBuffer");
2230
+ var Ue = Nt, Pt = class Pt {
2228
2231
  deleteBuffer;
2229
2232
  insertBuffer;
2230
2233
  lines;
@@ -2242,30 +2245,32 @@ var We = Rt, Pt = class Pt {
2242
2245
  flushChangeLines() {
2243
2246
  this.deleteBuffer.moveLinesTo(this.lines), this.insertBuffer.moveLinesTo(this.lines);
2244
2247
  }
2248
+ // Input to buffer.
2245
2249
  align(t) {
2246
2250
  let n = t[0], r = t[1];
2247
2251
  if (r.includes(`
2248
2252
  `)) {
2249
2253
  let o = r.split(`
2250
2254
  `), s = o.length - 1;
2251
- o.forEach((c, l) => {
2252
- if (l === 0) {
2253
- let u = new P(n, c);
2255
+ o.forEach((c, a) => {
2256
+ if (a === 0) {
2257
+ let u = new N(n, c);
2254
2258
  this.deleteBuffer.isLineEmpty() && this.insertBuffer.isLineEmpty() ? (this.flushChangeLines(), this.pushDiffCommonLine(u)) : (this.
2255
2259
  pushDiffChangeLines(u), this.flushChangeLines());
2256
- } else l < s ? this.pushDiffCommonLine(new P(n, c)) : c.length !== 0 && this.pushDiffChangeLines(new P(n, c));
2260
+ } else a < s ? this.pushDiffCommonLine(new N(n, c)) : c.length !== 0 && this.pushDiffChangeLines(new N(n, c));
2257
2261
  });
2258
2262
  } else
2259
2263
  this.pushDiffChangeLines(t);
2260
2264
  }
2265
+ // Output from buffer.
2261
2266
  getLines() {
2262
2267
  return this.flushChangeLines(), this.lines;
2263
2268
  }
2264
2269
  };
2265
2270
  i(Pt, "CommonBuffer");
2266
- var _t = Pt;
2271
+ var Tt = Pt;
2267
2272
  function Os(e, t) {
2268
- let n = new We(z, t), r = new We(j, t), o = new _t(n, r);
2273
+ let n = new Ue(z, t), r = new Ue(j, t), o = new Tt(n, r);
2269
2274
  return e.forEach((s) => {
2270
2275
  switch (s[0]) {
2271
2276
  case z:
@@ -2297,11 +2302,11 @@ function ws(e, t, n) {
2297
2302
  ` : e, r ? `${t}
2298
2303
  ` : t, !0, n);
2299
2304
  if ($s(o, r)) {
2300
- let c = pe(n), l = Os(o, c.changeColor);
2301
- return wt(l, s, c);
2305
+ let c = ge(n), a = Os(o, c.changeColor);
2306
+ return At(a, s, c);
2302
2307
  }
2303
2308
  }
2304
- return Ve(e.split(`
2309
+ return We(e.split(`
2305
2310
  `), t.split(`
2306
2311
  `), n);
2307
2312
  }
@@ -2311,20 +2316,20 @@ function vn(e, t, n, r) {
2311
2316
  return n && ss(o), [o, s];
2312
2317
  }
2313
2318
  i(vn, "diffStringsRaw");
2314
- function Tt(e, t) {
2315
- let { commonColor: n } = pe(t);
2319
+ function Ct(e, t) {
2320
+ let { commonColor: n } = ge(t);
2316
2321
  return n(e);
2317
2322
  }
2318
- i(Tt, "getCommonMessage");
2319
- var { AsymmetricMatcher: As, DOMCollection: Rs, DOMElement: Ps, Immutable: Ns, ReactElement: Is, ReactTestComponent: Ms } = Te, er = [
2323
+ i(Ct, "getCommonMessage");
2324
+ var { AsymmetricMatcher: As, DOMCollection: Rs, DOMElement: Ns, Immutable: Ps, ReactElement: Is, ReactTestComponent: Ms } = _e, er = [
2320
2325
  Ms,
2321
2326
  Is,
2322
- Ps,
2323
- Rs,
2324
2327
  Ns,
2328
+ Rs,
2329
+ Ps,
2325
2330
  As,
2326
- Te.Error
2327
- ], Ct = {
2331
+ _e.Error
2332
+ ], Ot = {
2328
2333
  maxDepth: 20,
2329
2334
  plugins: er
2330
2335
  }, tr = {
@@ -2346,11 +2351,11 @@ function Ls(e, t, n) {
2346
2351
  return O.length <= f ? O : `${O.slice(0, f)}...`;
2347
2352
  };
2348
2353
  i(d, "truncate");
2349
- let { aAnnotation: c, aColor: l, aIndicator: u, bAnnotation: m, bColor: p, bIndicator: a } = pe(n), S = Ot(tr, n), g = X(e, S), h = X(t,
2354
+ let { aAnnotation: c, aColor: a, aIndicator: u, bAnnotation: m, bColor: p, bIndicator: l } = ge(n), S = $t(tr, n), g = X(e, S), h = X(t,
2350
2355
  S), f = 1e5;
2351
2356
  g = d(g), h = d(h);
2352
- let b = `${l(`${u} ${c}:`)}
2353
- ${g}`, _ = `${p(`${a} ${m}:`)}
2357
+ let b = `${a(`${u} ${c}:`)}
2358
+ ${g}`, _ = `${p(`${l} ${m}:`)}
2354
2359
  ${h}`;
2355
2360
  return `${b}
2356
2361
 
@@ -2359,24 +2364,24 @@ ${_}`;
2359
2364
  if (!s)
2360
2365
  switch (r) {
2361
2366
  case "string":
2362
- return Ve(e.split(`
2367
+ return We(e.split(`
2363
2368
  `), t.split(`
2364
2369
  `), n);
2365
2370
  case "boolean":
2366
2371
  case "number":
2367
2372
  return xs(e, t, n);
2368
2373
  case "map":
2369
- return Et(jn(e), jn(t), n);
2374
+ return _t(jn(e), jn(t), n);
2370
2375
  case "set":
2371
- return Et(kn(e), kn(t), n);
2376
+ return _t(kn(e), kn(t), n);
2372
2377
  default:
2373
- return Et(e, t, n);
2378
+ return _t(e, t, n);
2374
2379
  }
2375
2380
  }
2376
2381
  i(Ls, "diff");
2377
2382
  function xs(e, t, n) {
2378
- let r = X(e, Ct), o = X(t, Ct);
2379
- return r === o ? "" : Ve(r.split(`
2383
+ let r = X(e, Ot), o = X(t, Ot);
2384
+ return r === o ? "" : We(r.split(`
2380
2385
  `), o.split(`
2381
2386
  `), n);
2382
2387
  }
@@ -2389,26 +2394,26 @@ function kn(e) {
2389
2394
  return new Set(Array.from(e.values()).sort());
2390
2395
  }
2391
2396
  i(kn, "sortSet");
2392
- function Et(e, t, n) {
2397
+ function _t(e, t, n) {
2393
2398
  let r, o = !1;
2394
2399
  try {
2395
- let c = Ot(Ct, n);
2400
+ let c = $t(Ot, n);
2396
2401
  r = Bn(e, t, c, n);
2397
2402
  } catch {
2398
2403
  o = !0;
2399
2404
  }
2400
- let s = Tt(Kn, n);
2405
+ let s = Ct(Kn, n);
2401
2406
  if (r === void 0 || r === s) {
2402
- let c = Ot(tr, n);
2403
- r = Bn(e, t, c, n), r !== s && !o && (r = `${Tt(ls, n)}
2407
+ let c = $t(tr, n);
2408
+ r = Bn(e, t, c, n), r !== s && !o && (r = `${Ct(as, n)}
2404
2409
 
2405
2410
  ${r}`);
2406
2411
  }
2407
2412
  return r;
2408
2413
  }
2409
- i(Et, "compareObjects");
2410
- function Ot(e, t) {
2411
- let { compareKeys: n, printBasicPrototype: r, maxDepth: o } = pe(t);
2414
+ i(_t, "compareObjects");
2415
+ function $t(e, t) {
2416
+ let { compareKeys: n, printBasicPrototype: r, maxDepth: o } = ge(t);
2412
2417
  return {
2413
2418
  ...e,
2414
2419
  compareKeys: n,
@@ -2416,17 +2421,17 @@ function Ot(e, t) {
2416
2421
  maxDepth: o ?? e.maxDepth
2417
2422
  };
2418
2423
  }
2419
- i(Ot, "getFormatOptions");
2424
+ i($t, "getFormatOptions");
2420
2425
  function Bn(e, t, n, r) {
2421
2426
  let o = {
2422
2427
  ...n,
2423
2428
  indent: 0
2424
2429
  }, s = X(e, o), c = X(t, o);
2425
2430
  if (s === c)
2426
- return Tt(Kn, r);
2431
+ return Ct(Kn, r);
2427
2432
  {
2428
- let l = X(e, n), u = X(t, n);
2429
- return _s(l.split(`
2433
+ let a = X(e, n), u = X(t, n);
2434
+ return _s(a.split(`
2430
2435
  `), u.split(`
2431
2436
  `), s.split(`
2432
2437
  `), c.split(`
@@ -2436,27 +2441,27 @@ function Bn(e, t, n, r) {
2436
2441
  i(Bn, "getObjectsDifference");
2437
2442
  var zn = 2e4;
2438
2443
  function Yn(e) {
2439
- return ze(e) === "Object" && typeof e.asymmetricMatch == "function";
2444
+ return Be(e) === "Object" && typeof e.asymmetricMatch == "function";
2440
2445
  }
2441
2446
  i(Yn, "isAsymmetricMatcher");
2442
2447
  function Un(e, t) {
2443
- let n = ze(e), r = ze(t);
2448
+ let n = Be(e), r = Be(t);
2444
2449
  return n === r && (n === "Object" || n === "Array");
2445
2450
  }
2446
2451
  i(Un, "isReplaceable");
2447
2452
  function nr(e, t, n) {
2448
- let { aAnnotation: r, bAnnotation: o } = pe(n);
2453
+ let { aAnnotation: r, bAnnotation: o } = ge(n);
2449
2454
  if (typeof t == "string" && typeof e == "string" && t.length > 0 && e.length > 0 && t.length <= zn && e.length <= zn && t !== e) {
2450
2455
  if (t.includes(`
2451
2456
  `) || e.includes(`
2452
2457
  `))
2453
2458
  return ws(t, e, n);
2454
- let [p] = vn(t, e, !0), a = p.some((f) => f[0] === M), S = Ds(r, o), g = S(r) + ks(Wn(p, z, a)), h = S(o) + js(Wn(p, j, a));
2459
+ let [p] = vn(t, e, !0), l = p.some((f) => f[0] === M), S = Ds(r, o), g = S(r) + ks(Wn(p, z, l)), h = S(o) + js(Wn(p, j, l));
2455
2460
  return `${g}
2456
2461
  ${h}`;
2457
2462
  }
2458
- let s = bt(t, { forceWritable: !0 }), c = bt(e, { forceWritable: !0 }), { replacedExpected: l, replacedActual: u } = rr(c, s);
2459
- return Ls(l, u, n);
2463
+ let s = St(t, { forceWritable: !0 }), c = St(e, { forceWritable: !0 }), { replacedExpected: a, replacedActual: u } = rr(c, s);
2464
+ return Ls(a, u, n);
2460
2465
  }
2461
2466
  i(nr, "printDiffOrStringify");
2462
2467
  function rr(e, t, n = /* @__PURE__ */ new WeakSet(), r = /* @__PURE__ */ new WeakSet()) {
@@ -2466,15 +2471,15 @@ function rr(e, t, n = /* @__PURE__ */ new WeakSet(), r = /* @__PURE__ */ new Wea
2466
2471
  }) : Un(e, t) ? n.has(e) || r.has(t) ? {
2467
2472
  replacedActual: e,
2468
2473
  replacedExpected: t
2469
- } : (n.add(e), r.add(t), yt(t).forEach((o) => {
2474
+ } : (n.add(e), r.add(t), bt(t).forEach((o) => {
2470
2475
  let s = t[o], c = e[o];
2471
2476
  if (Yn(s))
2472
2477
  s.asymmetricMatch(c) && (e[o] = s);
2473
2478
  else if (Yn(c))
2474
2479
  c.asymmetricMatch(s) && (t[o] = c);
2475
2480
  else if (Un(c, s)) {
2476
- let l = rr(c, s, n, r);
2477
- e[o] = l.replacedActual, t[o] = l.replacedExpected;
2481
+ let a = rr(c, s, n, r);
2482
+ e[o] = a.replacedActual, t[o] = a.replacedExpected;
2478
2483
  }
2479
2484
  }), {
2480
2485
  replacedActual: e,
@@ -2496,11 +2501,11 @@ function or(e) {
2496
2501
  }
2497
2502
  i(or, "replaceTrailingSpaces");
2498
2503
  function js(e) {
2499
- return v.red(or(me(e)));
2504
+ return v.red(or(pe(e)));
2500
2505
  }
2501
2506
  i(js, "printReceived");
2502
2507
  function ks(e) {
2503
- return v.green(or(me(e)));
2508
+ return v.green(or(pe(e)));
2504
2509
  }
2505
2510
  i(ks, "printExpected");
2506
2511
  function Wn(e, t, n) {
@@ -2519,17 +2524,27 @@ function sr(e) {
2519
2524
  return e instanceof Error ? `<unserializable>: ${e.message}` : typeof e == "string" ? `<unserializable>: ${e}` : "<unserializable>";
2520
2525
  }
2521
2526
  i(sr, "getUnserializableMessage");
2522
- function be(e, t = /* @__PURE__ */ new WeakMap()) {
2527
+ function le(e, t = /* @__PURE__ */ new WeakMap()) {
2523
2528
  if (!e || typeof e == "string")
2524
2529
  return e;
2530
+ if (e instanceof Error && "toJSON" in e && typeof e.toJSON == "function") {
2531
+ let n = e.toJSON();
2532
+ return n && n !== e && typeof n == "object" && (typeof e.message == "string" && Ve(() => n.message ?? (n.message = e.message)), typeof e.
2533
+ stack == "string" && Ve(() => n.stack ?? (n.stack = e.stack)), typeof e.name == "string" && Ve(() => n.name ?? (n.name = e.name)), e.cause !=
2534
+ null && Ve(() => n.cause ?? (n.cause = le(e.cause, t)))), le(n, t);
2535
+ }
2525
2536
  if (typeof e == "function")
2526
2537
  return `Function<${e.name || "anonymous"}>`;
2527
2538
  if (typeof e == "symbol")
2528
2539
  return e.toString();
2529
2540
  if (typeof e != "object")
2530
2541
  return e;
2542
+ if (typeof Buffer < "u" && e instanceof Buffer)
2543
+ return `<Buffer(${e.length}) ...>`;
2544
+ if (typeof Uint8Array < "u" && e instanceof Uint8Array)
2545
+ return `<Uint8Array(${e.length}) ...>`;
2531
2546
  if (Ys(e))
2532
- return be(e.toJSON(), t);
2547
+ return le(e.toJSON(), t);
2533
2548
  if (e instanceof Promise || e.constructor && e.constructor.prototype === "AsyncFunction")
2534
2549
  return "Promise";
2535
2550
  if (typeof Element < "u" && e instanceof Element)
@@ -2537,14 +2552,14 @@ function be(e, t = /* @__PURE__ */ new WeakMap()) {
2537
2552
  if (typeof e.asymmetricMatch == "function")
2538
2553
  return `${e.toString()} ${wn(e.sample)}`;
2539
2554
  if (typeof e.toJSON == "function")
2540
- return be(e.toJSON(), t);
2555
+ return le(e.toJSON(), t);
2541
2556
  if (t.has(e))
2542
2557
  return t.get(e);
2543
2558
  if (Array.isArray(e)) {
2544
2559
  let n = new Array(e.length);
2545
2560
  return t.set(e, n), e.forEach((r, o) => {
2546
2561
  try {
2547
- n[o] = be(r, t);
2562
+ n[o] = le(r, t);
2548
2563
  } catch (s) {
2549
2564
  n[o] = sr(s);
2550
2565
  }
@@ -2557,7 +2572,7 @@ function be(e, t = /* @__PURE__ */ new WeakMap()) {
2557
2572
  Object.getOwnPropertyNames(r).forEach((o) => {
2558
2573
  if (!(o in n))
2559
2574
  try {
2560
- n[o] = be(e[o], t);
2575
+ n[o] = le(e[o], t);
2561
2576
  } catch (s) {
2562
2577
  delete n[o], n[o] = sr(s);
2563
2578
  }
@@ -2565,36 +2580,43 @@ function be(e, t = /* @__PURE__ */ new WeakMap()) {
2565
2580
  return n;
2566
2581
  }
2567
2582
  }
2568
- i(be, "serializeValue");
2583
+ i(le, "serializeValue");
2584
+ function Ve(e) {
2585
+ try {
2586
+ return e();
2587
+ } catch {
2588
+ }
2589
+ }
2590
+ i(Ve, "safe");
2569
2591
  function Ws(e) {
2570
2592
  return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g, "");
2571
2593
  }
2572
2594
  i(Ws, "normalizeErrorMessage");
2573
- function Nt(e, t, n = /* @__PURE__ */ new WeakSet()) {
2595
+ function It(e, t, n = /* @__PURE__ */ new WeakSet()) {
2574
2596
  if (!e || typeof e != "object")
2575
2597
  return { message: String(e) };
2576
2598
  let r = e;
2577
- r.stack && (r.stackStr = String(r.stack)), r.name && (r.nameStr = String(r.name)), (r.showDiff || r.showDiff === void 0 && r.expected !== void 0 &&
2578
- r.actual !== void 0) && (r.diff = nr(r.actual, r.expected, {
2599
+ (r.showDiff || r.showDiff === void 0 && r.expected !== void 0 && r.actual !== void 0) && (r.diff = nr(r.actual, r.expected, {
2579
2600
  ...t,
2580
2601
  ...r.diffOptions
2581
- })), typeof r.expected != "string" && (r.expected = me(r.expected, 10)), typeof r.actual != "string" && (r.actual = me(r.actual, 10));
2602
+ })), "expected" in r && typeof r.expected != "string" && (r.expected = pe(r.expected, 10)), "actual" in r && typeof r.actual != "string" &&
2603
+ (r.actual = pe(r.actual, 10));
2582
2604
  try {
2583
2605
  typeof r.message == "string" && (r.message = Ws(r.message));
2584
2606
  } catch {
2585
2607
  }
2586
2608
  try {
2587
- !n.has(r) && typeof r.cause == "object" && (n.add(r), r.cause = Nt(r.cause, t, n));
2609
+ !n.has(r) && typeof r.cause == "object" && (n.add(r), r.cause = It(r.cause, t, n));
2588
2610
  } catch {
2589
2611
  }
2590
2612
  try {
2591
- return be(r);
2613
+ return le(r);
2592
2614
  } catch (o) {
2593
- return be(new Error(`Failed to fully serialize error: ${o?.message}
2615
+ return le(new Error(`Failed to fully serialize error: ${o?.message}
2594
2616
  Inner error message: ${r?.message}`));
2595
2617
  }
2596
2618
  }
2597
- i(Nt, "processError");
2619
+ i(It, "processError");
2598
2620
 
2599
2621
  // src/instrumenter/EVENTS.ts
2600
2622
  var ne = {
@@ -2630,7 +2652,7 @@ prototype.toString.call(e) === "[object Module]", "isModule"), Xs = /* @__PURE__
2630
2652
  } catch {
2631
2653
  return {};
2632
2654
  }
2633
- }, "construct"), It = /* @__PURE__ */ i(() => ({
2655
+ }, "construct"), Mt = /* @__PURE__ */ i(() => ({
2634
2656
  renderPhase: void 0,
2635
2657
  isDebugging: !1,
2636
2658
  isPlaying: !1,
@@ -2652,7 +2674,7 @@ prototype.toString.call(e) === "[object Module]", "isModule"), Xs = /* @__PURE__
2652
2674
  Array.from(e.callRefsByResult.entries()).filter(([, o]) => o.retain)
2653
2675
  );
2654
2676
  return { cursor: n.length, calls: n, callRefsByResult: r };
2655
- }, "getRetainedState"), Lt = class Lt {
2677
+ }, "getRetainedState"), xt = class xt {
2656
2678
  constructor() {
2657
2679
  this.detached = !1;
2658
2680
  this.initialized = !1;
@@ -2678,13 +2700,13 @@ prototype.toString.call(e) === "[object Module]", "isModule"), Xs = /* @__PURE__
2678
2700
  isPlaying: m = !0,
2679
2701
  isDebugging: p = !1
2680
2702
  }) => {
2681
- let a = this.getState(u);
2703
+ let l = this.getState(u);
2682
2704
  this.setState(u, {
2683
- ...It(),
2684
- ...ur(a, p),
2685
- shadowCalls: p ? a.shadowCalls : [],
2686
- chainedCallIds: p ? a.chainedCallIds : /* @__PURE__ */ new Set(),
2687
- playUntil: p ? a.playUntil : void 0,
2705
+ ...Mt(),
2706
+ ...ur(l, p),
2707
+ shadowCalls: p ? l.shadowCalls : [],
2708
+ chainedCallIds: p ? l.chainedCallIds : /* @__PURE__ */ new Set(),
2709
+ playUntil: p ? l.playUntil : void 0,
2688
2710
  isPlaying: m,
2689
2711
  isDebugging: p
2690
2712
  }), this.sync(u);
@@ -2694,20 +2716,20 @@ prototype.toString.call(e) === "[object Module]", "isModule"), Xs = /* @__PURE__
2694
2716
  shadowCalls: S.map((g) => ({ ...g, status: "waiting" })),
2695
2717
  isDebugging: !0
2696
2718
  }));
2697
- let a = this.getLog(m);
2719
+ let l = this.getLog(m);
2698
2720
  this.setState(m, ({ shadowCalls: S }) => {
2699
- if (p || !a.length)
2721
+ if (p || !l.length)
2700
2722
  return { playUntil: p };
2701
- let g = S.findIndex((h) => h.id === a[0].callId);
2723
+ let g = S.findIndex((h) => h.id === l[0].callId);
2702
2724
  return {
2703
2725
  playUntil: S.slice(0, g).filter((h) => h.interceptable && !h.ancestors?.length).slice(-1)[0]?.id
2704
2726
  };
2705
2727
  }), u.emit(ir, { storyId: m, isDebugging: !0 });
2706
2728
  }, "start"), r = /* @__PURE__ */ i((u) => ({ storyId: m }) => {
2707
- let p = this.getLog(m).filter((S) => !S.ancestors?.length), a = p.reduceRight((S, g, h) => S >= 0 || g.status === "waiting" ? S : h, -1);
2708
- n(u)({ storyId: m, playUntil: p[a - 1]?.callId });
2729
+ let p = this.getLog(m).filter((S) => !S.ancestors?.length), l = p.reduceRight((S, g, h) => S >= 0 || g.status === "waiting" ? S : h, -1);
2730
+ n(u)({ storyId: m, playUntil: p[l - 1]?.callId });
2709
2731
  }, "back"), o = /* @__PURE__ */ i((u) => ({ storyId: m, callId: p }) => {
2710
- let { calls: a, shadowCalls: S, resolvers: g } = this.getState(m), h = a.find(({ id: d }) => d === p), f = S.find(({ id: d }) => d ===
2732
+ let { calls: l, shadowCalls: S, resolvers: g } = this.getState(m), h = l.find(({ id: d }) => d === p), f = S.find(({ id: d }) => d ===
2711
2733
  p);
2712
2734
  if (!h && f && Object.values(g).length > 0) {
2713
2735
  let d = this.getLog(m).find((b) => b.status === "waiting")?.callId;
@@ -2717,14 +2739,14 @@ prototype.toString.call(e) === "[object Module]", "isModule"), Xs = /* @__PURE__
2717
2739
  }, "goto"), s = /* @__PURE__ */ i((u) => ({ storyId: m }) => {
2718
2740
  let { resolvers: p } = this.getState(m);
2719
2741
  if (Object.values(p).length > 0)
2720
- Object.values(p).forEach((a) => a());
2742
+ Object.values(p).forEach((l) => l());
2721
2743
  else {
2722
- let a = this.getLog(m).find((S) => S.status === "waiting")?.callId;
2723
- a ? n(u)({ storyId: m, playUntil: a }) : c({ storyId: m });
2744
+ let l = this.getLog(m).find((S) => S.status === "waiting")?.callId;
2745
+ l ? n(u)({ storyId: m, playUntil: l }) : c({ storyId: m });
2724
2746
  }
2725
2747
  }, "next"), c = /* @__PURE__ */ i(({ storyId: u }) => {
2726
2748
  this.setState(u, { playUntil: void 0, isDebugging: !1 }), Object.values(this.getState(u).resolvers).forEach((m) => m());
2727
- }, "end"), l = /* @__PURE__ */ i(({ storyId: u, newPhase: m }) => {
2749
+ }, "end"), a = /* @__PURE__ */ i(({ storyId: u, newPhase: m }) => {
2728
2750
  let { isDebugging: p } = this.getState(u);
2729
2751
  this.setState(u, { renderPhase: m }), m === "preparing" && p && t({ storyId: u }), m === "playing" && t({ storyId: u, isDebugging: p }),
2730
2752
  m === "played" && this.setState(u, {
@@ -2737,14 +2759,14 @@ prototype.toString.call(e) === "[object Module]", "isModule"), Xs = /* @__PURE__
2737
2759
  });
2738
2760
  }, "renderPhaseChanged");
2739
2761
  qe && qe.ready().then(() => {
2740
- this.channel = qe.getChannel(), this.channel.on(ir, t), this.channel.on(Gs, l), this.channel.on(Ks, () => {
2762
+ this.channel = qe.getChannel(), this.channel.on(ir, t), this.channel.on(Gs, a), this.channel.on(Ks, () => {
2741
2763
  this.initialized ? this.cleanup() : this.initialized = !0;
2742
2764
  }), this.channel.on(ne.START, n(this.channel)), this.channel.on(ne.BACK, r(this.channel)), this.channel.on(ne.GOTO, o(this.channel)), this.
2743
2765
  channel.on(ne.NEXT, s(this.channel)), this.channel.on(ne.END, c);
2744
2766
  });
2745
2767
  }
2746
2768
  getState(t) {
2747
- return this.state[t] || It();
2769
+ return this.state[t] || Mt();
2748
2770
  }
2749
2771
  setState(t, n) {
2750
2772
  let r = this.getState(t), o = typeof n == "function" ? n(r) : n;
@@ -2754,7 +2776,7 @@ prototype.toString.call(e) === "[object Module]", "isModule"), Xs = /* @__PURE__
2754
2776
  this.state = Object.entries(this.state).reduce(
2755
2777
  (r, [o, s]) => {
2756
2778
  let c = ur(s);
2757
- return c && (r[o] = Object.assign(It(), c)), r;
2779
+ return c && (r[o] = Object.assign(Mt(), c)), r;
2758
2780
  },
2759
2781
  {}
2760
2782
  );
@@ -2770,15 +2792,15 @@ prototype.toString.call(e) === "[object Module]", "isModule"), Xs = /* @__PURE__
2770
2792
  }
2771
2793
  getLog(t) {
2772
2794
  let { calls: n, shadowCalls: r } = this.getState(t), o = [...r];
2773
- n.forEach((c, l) => {
2774
- o[l] = c;
2795
+ n.forEach((c, a) => {
2796
+ o[a] = c;
2775
2797
  });
2776
2798
  let s = /* @__PURE__ */ new Set();
2777
- return o.reduceRight((c, l) => (l.args.forEach((u) => {
2799
+ return o.reduceRight((c, a) => (a.args.forEach((u) => {
2778
2800
  u?.__callId__ && s.add(u.__callId__);
2779
- }), l.path.forEach((u) => {
2801
+ }), a.path.forEach((u) => {
2780
2802
  u.__callId__ && s.add(u.__callId__);
2781
- }), (l.interceptable || l.exception) && !s.has(l.id) && (c.unshift({ callId: l.id, status: l.status, ancestors: l.ancestors }), s.add(l.
2803
+ }), (a.interceptable || a.exception) && !s.has(a.id) && (c.unshift({ callId: a.id, status: a.status, ancestors: a.ancestors }), s.add(a.
2782
2804
  id)), c), []);
2783
2805
  }
2784
2806
  // Traverses the object structure to recursively patch all function properties.
@@ -2789,24 +2811,24 @@ prototype.toString.call(e) === "[object Module]", "isModule"), Xs = /* @__PURE__
2789
2811
  return t;
2790
2812
  let { mutate: o = !1, path: s = [] } = n, c = n.getKeys ? n.getKeys(t, r) : Object.keys(t);
2791
2813
  return r += 1, c.reduce(
2792
- (l, u) => {
2814
+ (a, u) => {
2793
2815
  let m = vs(t, u);
2794
2816
  if (typeof m?.get == "function") {
2795
2817
  if (m.configurable) {
2796
- let a = /* @__PURE__ */ i(() => m?.get?.bind(t)?.(), "getter");
2797
- Object.defineProperty(l, u, {
2798
- get: /* @__PURE__ */ i(() => this.instrument(a(), { ...n, path: s.concat(u) }, r), "get")
2818
+ let l = /* @__PURE__ */ i(() => m?.get?.bind(t)?.(), "getter");
2819
+ Object.defineProperty(a, u, {
2820
+ get: /* @__PURE__ */ i(() => this.instrument(l(), { ...n, path: s.concat(u) }, r), "get")
2799
2821
  });
2800
2822
  }
2801
- return l;
2823
+ return a;
2802
2824
  }
2803
2825
  let p = t[u];
2804
- return typeof p != "function" ? (l[u] = this.instrument(p, { ...n, path: s.concat(u) }, r), l) : "__originalFn__" in p && typeof p.__originalFn__ ==
2805
- "function" ? (l[u] = p, l) : (l[u] = (...a) => this.track(u, p, t, a, n), l[u].__originalFn__ = p, Object.defineProperty(l[u], "name",
2826
+ return typeof p != "function" ? (a[u] = this.instrument(p, { ...n, path: s.concat(u) }, r), a) : "__originalFn__" in p && typeof p.__originalFn__ ==
2827
+ "function" ? (a[u] = p, a) : (a[u] = (...l) => this.track(u, p, t, l, n), a[u].__originalFn__ = p, Object.defineProperty(a[u], "name",
2806
2828
  { value: u, writable: !1 }), Object.keys(p).length > 0 && Object.assign(
2807
- l[u],
2829
+ a[u],
2808
2830
  this.instrument({ ...p }, { ...n, path: s.concat(u) }, r)
2809
- ), l);
2831
+ ), a);
2810
2832
  },
2811
2833
  o ? t : Zs(t)
2812
2834
  );
@@ -2815,82 +2837,82 @@ prototype.toString.call(e) === "[object Module]", "isModule"), Xs = /* @__PURE__
2815
2837
  // Returns a function that invokes the original function, records the invocation ("call") and
2816
2838
  // returns the original result.
2817
2839
  track(t, n, r, o, s) {
2818
- let c = o?.[0]?.__storyId__ || Z.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId, { cursor: l, ancestors: u } = this.getState(
2840
+ let c = o?.[0]?.__storyId__ || Z.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId, { cursor: a, ancestors: u } = this.getState(
2819
2841
  c);
2820
- this.setState(c, { cursor: l + 1 });
2821
- let m = `${u.slice(-1)[0] || c} [${l}] ${t}`, { path: p = [], intercept: a = !1, retain: S = !1 } = s, g = typeof a == "function" ? a(t,
2822
- p) : a, h = { id: m, cursor: l, storyId: c, ancestors: u, path: p, method: t, args: o, interceptable: g, retain: S }, d = (g && !u.length ?
2842
+ this.setState(c, { cursor: a + 1 });
2843
+ let m = `${u.slice(-1)[0] || c} [${a}] ${t}`, { path: p = [], intercept: l = !1, retain: S = !1 } = s, g = typeof l == "function" ? l(t,
2844
+ p) : l, h = { id: m, cursor: a, storyId: c, ancestors: u, path: p, method: t, args: o, interceptable: g, retain: S }, d = (g && !u.length ?
2823
2845
  this.intercept : this.invoke).call(this, n, r, h, s);
2824
2846
  return this.instrument(d, { ...s, mutate: !0, path: [{ __callId__: h.id }] });
2825
2847
  }
2826
2848
  intercept(t, n, r, o) {
2827
- let { chainedCallIds: s, isDebugging: c, playUntil: l } = this.getState(r.storyId), u = s.has(r.id);
2828
- return !c || u || l ? (l === r.id && this.setState(r.storyId, { playUntil: void 0 }), this.invoke(t, n, r, o)) : new Promise((m) => {
2849
+ let { chainedCallIds: s, isDebugging: c, playUntil: a } = this.getState(r.storyId), u = s.has(r.id);
2850
+ return !c || u || a ? (a === r.id && this.setState(r.storyId, { playUntil: void 0 }), this.invoke(t, n, r, o)) : new Promise((m) => {
2829
2851
  this.setState(r.storyId, ({ resolvers: p }) => ({
2830
2852
  isLocked: !1,
2831
2853
  resolvers: { ...p, [r.id]: m }
2832
2854
  }));
2833
2855
  }).then(() => (this.setState(r.storyId, (m) => {
2834
- let { [r.id]: p, ...a } = m.resolvers;
2835
- return { isLocked: !0, resolvers: a };
2856
+ let { [r.id]: p, ...l } = m.resolvers;
2857
+ return { isLocked: !0, resolvers: l };
2836
2858
  }), this.invoke(t, n, r, o)));
2837
2859
  }
2838
2860
  invoke(t, n, r, o) {
2839
- let { callRefsByResult: s, renderPhase: c } = this.getState(r.storyId), l = 25, u = /* @__PURE__ */ i((a, S, g) => {
2840
- if (g.includes(a))
2861
+ let { callRefsByResult: s, renderPhase: c } = this.getState(r.storyId), a = 25, u = /* @__PURE__ */ i((l, S, g) => {
2862
+ if (g.includes(l))
2841
2863
  return "[Circular]";
2842
- if (g = [...g, a], S > l)
2864
+ if (g = [...g, l], S > a)
2843
2865
  return "...";
2844
- if (s.has(a))
2845
- return s.get(a);
2846
- if (a instanceof Array)
2847
- return a.map((h) => u(h, ++S, g));
2848
- if (a instanceof Date)
2849
- return { __date__: { value: a.toISOString() } };
2850
- if (a instanceof Error) {
2851
- let { name: h, message: f, stack: d } = a;
2866
+ if (s.has(l))
2867
+ return s.get(l);
2868
+ if (l instanceof Array)
2869
+ return l.map((h) => u(h, ++S, g));
2870
+ if (l instanceof Date)
2871
+ return { __date__: { value: l.toISOString() } };
2872
+ if (l instanceof Error) {
2873
+ let { name: h, message: f, stack: d } = l;
2852
2874
  return { __error__: { name: h, message: f, stack: d } };
2853
2875
  }
2854
- if (a instanceof RegExp) {
2855
- let { flags: h, source: f } = a;
2876
+ if (l instanceof RegExp) {
2877
+ let { flags: h, source: f } = l;
2856
2878
  return { __regexp__: { flags: h, source: f } };
2857
2879
  }
2858
- if (a instanceof Z.window?.HTMLElement) {
2859
- let { prefix: h, localName: f, id: d, classList: b, innerText: _ } = a, O = Array.from(b);
2880
+ if (l instanceof Z.window?.HTMLElement) {
2881
+ let { prefix: h, localName: f, id: d, classList: b, innerText: _ } = l, O = Array.from(b);
2860
2882
  return { __element__: { prefix: h, localName: f, id: d, classNames: O, innerText: _ } };
2861
2883
  }
2862
- return typeof a == "function" ? {
2863
- __function__: { name: "getMockName" in a ? a.getMockName() : a.name }
2864
- } : typeof a == "symbol" ? { __symbol__: { description: a.description } } : typeof a == "object" && a?.constructor?.name && a?.constructor?.
2865
- name !== "Object" ? { __class__: { name: a.constructor.name } } : Object.prototype.toString.call(a) === "[object Object]" ? Object.fromEntries(
2866
- Object.entries(a).map(([h, f]) => [h, u(f, ++S, g)])
2867
- ) : a;
2884
+ return typeof l == "function" ? {
2885
+ __function__: { name: "getMockName" in l ? l.getMockName() : l.name }
2886
+ } : typeof l == "symbol" ? { __symbol__: { description: l.description } } : typeof l == "object" && l?.constructor?.name && l?.constructor?.
2887
+ name !== "Object" ? { __class__: { name: l.constructor.name } } : Object.prototype.toString.call(l) === "[object Object]" ? Object.fromEntries(
2888
+ Object.entries(l).map(([h, f]) => [h, u(f, ++S, g)])
2889
+ ) : l;
2868
2890
  }, "serializeValues"), m = {
2869
2891
  ...r,
2870
- args: r.args.map((a) => u(a, 0, []))
2892
+ args: r.args.map((l) => u(l, 0, []))
2871
2893
  };
2872
- r.path.forEach((a) => {
2873
- a?.__callId__ && this.setState(r.storyId, ({ chainedCallIds: S }) => ({
2874
- chainedCallIds: new Set(Array.from(S).concat(a.__callId__))
2894
+ r.path.forEach((l) => {
2895
+ l?.__callId__ && this.setState(r.storyId, ({ chainedCallIds: S }) => ({
2896
+ chainedCallIds: new Set(Array.from(S).concat(l.__callId__))
2875
2897
  }));
2876
2898
  });
2877
- let p = /* @__PURE__ */ i((a) => {
2878
- if (a instanceof Error) {
2879
- let { name: S, message: g, stack: h, callId: f = r.id } = a, {
2899
+ let p = /* @__PURE__ */ i((l) => {
2900
+ if (l instanceof Error) {
2901
+ let { name: S, message: g, stack: h, callId: f = r.id } = l, {
2880
2902
  showDiff: d = void 0,
2881
2903
  diff: b = void 0,
2882
2904
  actual: _ = void 0,
2883
2905
  expected: O = void 0
2884
- } = a.name === "AssertionError" ? Nt(a) : a, y = { name: S, message: g, stack: h, callId: f, showDiff: d, diff: b, actual: _, expected: O };
2906
+ } = l.name === "AssertionError" ? It(l) : l, y = { name: S, message: g, stack: h, callId: f, showDiff: d, diff: b, actual: _, expected: O };
2885
2907
  if (this.update({ ...m, status: "error", exception: y }), this.setState(r.storyId, (E) => ({
2886
2908
  callRefsByResult: new Map([
2887
2909
  ...Array.from(E.callRefsByResult.entries()),
2888
- [a, { __callId__: r.id, retain: r.retain }]
2910
+ [l, { __callId__: r.id, retain: r.retain }]
2889
2911
  ])
2890
2912
  })), r.ancestors?.length)
2891
- throw Object.prototype.hasOwnProperty.call(a, "callId") || Object.defineProperty(a, "callId", { value: r.id }), a;
2913
+ throw Object.prototype.hasOwnProperty.call(l, "callId") || Object.defineProperty(l, "callId", { value: r.id }), l;
2892
2914
  }
2893
- throw a;
2915
+ throw l;
2894
2916
  }, "handleException");
2895
2917
  try {
2896
2918
  if (c === "played" && !r.retain)
@@ -2916,8 +2938,8 @@ prototype.toString.call(e) === "[object Module]", "isModule"), Xs = /* @__PURE__
2916
2938
  ...m,
2917
2939
  status: g instanceof Promise ? "active" : "done"
2918
2940
  }), g instanceof Promise ? g.then((h) => (this.update({ ...m, status: "done" }), h), p) : g;
2919
- } catch (a) {
2920
- return p(a);
2941
+ } catch (l) {
2942
+ return p(l);
2921
2943
  }
2922
2944
  }
2923
2945
  // Sends the call info to the manager and synchronizes the log.
@@ -2936,9 +2958,9 @@ prototype.toString.call(e) === "[object Module]", "isModule"), Xs = /* @__PURE__
2936
2958
  // Uses a 0ms debounce because this might get called many times in one tick.
2937
2959
  sync(t) {
2938
2960
  let n = /* @__PURE__ */ i(() => {
2939
- let { isLocked: r, isPlaying: o } = this.getState(t), s = this.getLog(t), c = s.filter(({ ancestors: a }) => !a.length).find((a) => a.
2940
- status === "waiting")?.callId, l = s.some((a) => a.status === "active");
2941
- if (this.detached || r || l || s.length === 0) {
2961
+ let { isLocked: r, isPlaying: o } = this.getState(t), s = this.getLog(t), c = s.filter(({ ancestors: l }) => !l.length).find((l) => l.
2962
+ status === "waiting")?.callId, a = s.some((l) => l.status === "active");
2963
+ if (this.detached || r || a || s.length === 0) {
2942
2964
  let S = { controlStates: {
2943
2965
  detached: this.detached,
2944
2966
  start: !1,
@@ -2951,7 +2973,7 @@ prototype.toString.call(e) === "[object Module]", "isModule"), Xs = /* @__PURE__
2951
2973
  return;
2952
2974
  }
2953
2975
  let u = s.some(
2954
- (a) => a.status === "done" || a.status === "error"
2976
+ (l) => l.status === "done" || l.status === "error"
2955
2977
  ), p = { controlStates: {
2956
2978
  detached: this.detached,
2957
2979
  start: u,
@@ -2965,14 +2987,14 @@ prototype.toString.call(e) === "[object Module]", "isModule"), Xs = /* @__PURE__
2965
2987
  this.setState(t, ({ syncTimeout: r }) => (clearTimeout(r), { syncTimeout: setTimeout(n, 0) }));
2966
2988
  }
2967
2989
  };
2968
- i(Lt, "Instrumenter");
2969
- var Mt = Lt;
2990
+ i(xt, "Instrumenter");
2991
+ var Lt = xt;
2970
2992
  function Qs(e, t = {}) {
2971
2993
  try {
2972
2994
  let n = !1, r = !1;
2973
2995
  return Z.window?.location?.search?.includes("instrument=true") ? n = !0 : Z.window?.location?.search?.includes("instrument=false") && (r =
2974
2996
  !0), Z.window?.parent === Z.window && !n || r ? e : (Z.window && !Z.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ && (Z.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ =
2975
- new Mt()), (Z.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e, t));
2997
+ new Lt()), (Z.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e, t));
2976
2998
  } catch (n) {
2977
2999
  return qs.warn(n), e;
2978
3000
  }