storybook 9.0.0-alpha.16 → 9.0.0-alpha.17
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.
- package/dist/bin/index.cjs +43 -43
- package/dist/bin/index.js +43 -43
- package/dist/cli/bin/index.cjs +1 -1
- package/dist/cli/bin/index.js +1 -1
- package/dist/common/index.cjs +45 -45
- package/dist/common/index.d.ts +1 -1
- package/dist/common/index.js +45 -45
- package/dist/core-server/index.cjs +2 -2
- package/dist/core-server/index.js +2 -2
- package/dist/core-server/presets/common-manager.js +1 -1
- package/dist/csf-tools/index.cjs +18 -18
- package/dist/csf-tools/index.js +18 -18
- package/dist/instrumenter/index.cjs +532 -539
- package/dist/instrumenter/index.js +1153 -1152
- package/dist/manager/globals-runtime.js +49703 -58809
- package/dist/manager-api/index.cjs +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/preview/runtime.js +38989 -42535
- package/dist/test/index.cjs +1 -1
- package/dist/test/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,42 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var hr = Object.
|
|
5
|
-
var yr = Object.
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var Sr = (t, e) => {
|
|
2
|
+
var Pt = Object.defineProperty;
|
|
3
|
+
var gr = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var hr = Object.getOwnPropertyNames;
|
|
5
|
+
var yr = Object.prototype.hasOwnProperty;
|
|
6
|
+
var c = (t, e) => Pt(t, "name", { value: e, configurable: !0 });
|
|
7
|
+
var dr = (t, e) => {
|
|
9
8
|
for (var n in e)
|
|
10
|
-
|
|
11
|
-
},
|
|
9
|
+
Pt(t, n, { get: e[n], enumerable: !0 });
|
|
10
|
+
}, br = (t, e, n, r) => {
|
|
12
11
|
if (e && typeof e == "object" || typeof e == "function")
|
|
13
|
-
for (let o of
|
|
14
|
-
!
|
|
12
|
+
for (let o of hr(e))
|
|
13
|
+
!yr.call(t, o) && o !== n && Pt(t, o, { get: () => e[o], enumerable: !(r = gr(e, o)) || r.enumerable });
|
|
15
14
|
return t;
|
|
16
15
|
};
|
|
17
|
-
var
|
|
18
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
19
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
20
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
21
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
22
|
-
e || !t || !t.__esModule ? Tt(n, "default", { value: t, enumerable: !0 }) : n,
|
|
23
|
-
t
|
|
24
|
-
)), _r = (t) => Le(Tt({}, "__esModule", { value: !0 }), t);
|
|
16
|
+
var Sr = (t) => br(Pt({}, "__esModule", { value: !0 }), t);
|
|
25
17
|
|
|
26
18
|
// src/instrumenter/index.ts
|
|
27
|
-
var
|
|
28
|
-
|
|
19
|
+
var ci = {};
|
|
20
|
+
dr(ci, {
|
|
29
21
|
CallStates: () => cr,
|
|
30
22
|
EVENTS: () => tt,
|
|
31
23
|
instrument: () => mr
|
|
32
24
|
});
|
|
33
|
-
module.exports =
|
|
25
|
+
module.exports = Sr(ci);
|
|
34
26
|
|
|
35
27
|
// src/instrumenter/instrumenter.ts
|
|
36
28
|
var fr = require("storybook/internal/client-logger"), yt = require("storybook/internal/core-events"), W = require("@storybook/global");
|
|
37
29
|
|
|
38
30
|
// ../node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
|
|
39
|
-
var
|
|
31
|
+
var Er = {
|
|
40
32
|
reset: [0, 0],
|
|
41
33
|
bold: [1, 22, "\x1B[22m\x1B[1m"],
|
|
42
34
|
dim: [2, 22, "\x1B[22m\x1B[2m"],
|
|
@@ -78,13 +70,13 @@ var Cr = {
|
|
|
78
70
|
bgMagentaBright: [105, 49],
|
|
79
71
|
bgCyanBright: [106, 49],
|
|
80
72
|
bgWhiteBright: [107, 49]
|
|
81
|
-
},
|
|
82
|
-
function
|
|
73
|
+
}, _r = Object.entries(Er);
|
|
74
|
+
function vt(t) {
|
|
83
75
|
return String(t);
|
|
84
76
|
}
|
|
85
|
-
c(
|
|
86
|
-
|
|
87
|
-
|
|
77
|
+
c(vt, "a");
|
|
78
|
+
vt.open = "";
|
|
79
|
+
vt.close = "";
|
|
88
80
|
function xe(t = !1) {
|
|
89
81
|
let e = typeof process < "u" ? process : void 0, n = e?.env || {}, r = e?.argv || [];
|
|
90
82
|
return !("NO_COLOR" in n || r.includes("--no-color")) && ("FORCE_COLOR" in n || r.includes("--color") || e?.platform === "win32" || t && n.
|
|
@@ -107,22 +99,22 @@ function Fe(t = !1) {
|
|
|
107
99
|
}, "g"), o = {
|
|
108
100
|
isColorSupported: e
|
|
109
101
|
}, s = /* @__PURE__ */ c((i) => `\x1B[${i}m`, "d");
|
|
110
|
-
for (let [i, a] of
|
|
102
|
+
for (let [i, a] of _r)
|
|
111
103
|
o[i] = e ? r(
|
|
112
104
|
s(a[0]),
|
|
113
105
|
s(a[1]),
|
|
114
106
|
a[2]
|
|
115
|
-
) :
|
|
107
|
+
) : vt;
|
|
116
108
|
return o;
|
|
117
109
|
}
|
|
118
110
|
c(Fe, "p");
|
|
119
111
|
|
|
120
112
|
// ../node_modules/tinyrainbow/dist/node.js
|
|
121
113
|
var De = require("tty");
|
|
122
|
-
var
|
|
123
|
-
var nt = Fe(
|
|
114
|
+
var Tr = process.env.FORCE_TTY !== void 0 || (0, De.isatty)(1);
|
|
115
|
+
var nt = Fe(Tr);
|
|
124
116
|
|
|
125
|
-
// ../node_modules/@vitest/pretty-format/dist/index.js
|
|
117
|
+
// ../node_modules/@vitest/utils/node_modules/@vitest/pretty-format/dist/index.js
|
|
126
118
|
function Ze(t, e) {
|
|
127
119
|
return e.forEach(function(n) {
|
|
128
120
|
n && typeof n != "string" && !Array.isArray(n) && Object.keys(n).forEach(function(r) {
|
|
@@ -139,15 +131,15 @@ function Ze(t, e) {
|
|
|
139
131
|
}), Object.freeze(t);
|
|
140
132
|
}
|
|
141
133
|
c(Ze, "_mergeNamespaces");
|
|
142
|
-
function
|
|
134
|
+
function Cr(t, e) {
|
|
143
135
|
let n = Object.keys(t), r = e === null ? n : n.sort(e);
|
|
144
136
|
if (Object.getOwnPropertySymbols)
|
|
145
137
|
for (let o of Object.getOwnPropertySymbols(t))
|
|
146
138
|
Object.getOwnPropertyDescriptor(t, o).enumerable && r.push(o);
|
|
147
139
|
return r;
|
|
148
140
|
}
|
|
149
|
-
c(
|
|
150
|
-
function
|
|
141
|
+
c(Cr, "getKeysOfEnumerableProperties");
|
|
142
|
+
function Ot(t, e, n, r, o, s, i = ": ") {
|
|
151
143
|
let a = "", l = 0, m = t.next();
|
|
152
144
|
if (!m.done) {
|
|
153
145
|
a += e.spacingOuter;
|
|
@@ -176,8 +168,8 @@ function $t(t, e, n, r, o, s, i = ": ") {
|
|
|
176
168
|
}
|
|
177
169
|
return a;
|
|
178
170
|
}
|
|
179
|
-
c(
|
|
180
|
-
function
|
|
171
|
+
c(Ot, "printIteratorEntries");
|
|
172
|
+
function ne(t, e, n, r, o, s) {
|
|
181
173
|
let i = "", a = 0, l = t.next();
|
|
182
174
|
if (!l.done) {
|
|
183
175
|
i += e.spacingOuter;
|
|
@@ -193,7 +185,7 @@ function ee(t, e, n, r, o, s) {
|
|
|
193
185
|
}
|
|
194
186
|
return i;
|
|
195
187
|
}
|
|
196
|
-
c(
|
|
188
|
+
c(ne, "printIteratorValues");
|
|
197
189
|
function Ft(t, e, n, r, o, s) {
|
|
198
190
|
let i = "";
|
|
199
191
|
t = t instanceof ArrayBuffer ? new DataView(t) : t;
|
|
@@ -219,8 +211,8 @@ function Ft(t, e, n, r, o, s) {
|
|
|
219
211
|
return i;
|
|
220
212
|
}
|
|
221
213
|
c(Ft, "printListItems");
|
|
222
|
-
function
|
|
223
|
-
let i = "", a =
|
|
214
|
+
function re(t, e, n, r, o, s) {
|
|
215
|
+
let i = "", a = Cr(t, e.compareKeys);
|
|
224
216
|
if (a.length > 0) {
|
|
225
217
|
i += e.spacingOuter;
|
|
226
218
|
let l = n + e.indent;
|
|
@@ -232,8 +224,8 @@ function ne(t, e, n, r, o, s) {
|
|
|
232
224
|
}
|
|
233
225
|
return i;
|
|
234
226
|
}
|
|
235
|
-
c(
|
|
236
|
-
var
|
|
227
|
+
c(re, "printObjectProperties");
|
|
228
|
+
var Or = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621, It = " ", $r = /* @__PURE__ */ c((t, e, n, r, o, s) => {
|
|
237
229
|
let i = t.toString();
|
|
238
230
|
if (i === "ArrayContaining" || i === "ArrayNotContaining")
|
|
239
231
|
return ++r > e.maxDepth ? `[${i}]` : `${i + It}[${Ft(
|
|
@@ -245,7 +237,7 @@ var wr = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetric
|
|
|
245
237
|
s
|
|
246
238
|
)}]`;
|
|
247
239
|
if (i === "ObjectContaining" || i === "ObjectNotContaining")
|
|
248
|
-
return ++r > e.maxDepth ? `[${i}]` : `${i + It}{${
|
|
240
|
+
return ++r > e.maxDepth ? `[${i}]` : `${i + It}{${re(
|
|
249
241
|
t.sample,
|
|
250
242
|
e,
|
|
251
243
|
n,
|
|
@@ -260,21 +252,21 @@ var wr = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetric
|
|
|
260
252
|
`Asymmetric matcher ${t.constructor.name} does not implement toAsymmetricMatcher()`
|
|
261
253
|
);
|
|
262
254
|
return t.toAsymmetricMatcher();
|
|
263
|
-
}, "serialize$5"),
|
|
264
|
-
["DOMStringMap", "NamedNodeMap"]),
|
|
265
|
-
function
|
|
266
|
-
return Qe.has(t) ||
|
|
255
|
+
}, "serialize$5"), wr = /* @__PURE__ */ c((t) => t && t.$$typeof === Or, "test$5"), Ar = { serialize: $r, test: wr }, Rr = " ", Qe = /* @__PURE__ */ new Set(
|
|
256
|
+
["DOMStringMap", "NamedNodeMap"]), Nr = /^(?:HTML\w*Collection|NodeList)$/;
|
|
257
|
+
function Pr(t) {
|
|
258
|
+
return Qe.has(t) || Nr.test(t);
|
|
267
259
|
}
|
|
268
|
-
c(
|
|
269
|
-
var
|
|
270
|
-
function
|
|
260
|
+
c(Pr, "testName");
|
|
261
|
+
var Ir = /* @__PURE__ */ c((t) => t && t.constructor && !!t.constructor.name && Pr(t.constructor.name), "test$4");
|
|
262
|
+
function Mr(t) {
|
|
271
263
|
return t.constructor.name === "NamedNodeMap";
|
|
272
264
|
}
|
|
273
|
-
c(
|
|
274
|
-
var
|
|
265
|
+
c(Mr, "isNamedNodeMap");
|
|
266
|
+
var Lr = /* @__PURE__ */ c((t, e, n, r, o, s) => {
|
|
275
267
|
let i = t.constructor.name;
|
|
276
|
-
return ++r > e.maxDepth ? `[${i}]` : (e.min ? "" : i +
|
|
277
|
-
|
|
268
|
+
return ++r > e.maxDepth ? `[${i}]` : (e.min ? "" : i + Rr) + (Qe.has(i) ? `{${re(
|
|
269
|
+
Mr(t) ? [...t].reduce(
|
|
278
270
|
(a, l) => (a[l.name] = l.value, a),
|
|
279
271
|
{}
|
|
280
272
|
) : { ...t },
|
|
@@ -291,12 +283,12 @@ var Fr = /* @__PURE__ */ c((t, e, n, r, o, s) => {
|
|
|
291
283
|
o,
|
|
292
284
|
s
|
|
293
285
|
)}]`);
|
|
294
|
-
}, "serialize$4"),
|
|
286
|
+
}, "serialize$4"), xr = { serialize: Lr, test: Ir };
|
|
295
287
|
function ve(t) {
|
|
296
288
|
return t.replaceAll("<", "<").replaceAll(">", ">");
|
|
297
289
|
}
|
|
298
290
|
c(ve, "escapeHTML");
|
|
299
|
-
function
|
|
291
|
+
function oe(t, e, n, r, o, s, i) {
|
|
300
292
|
let a = r + n.indent, l = n.colors;
|
|
301
293
|
return t.map((m) => {
|
|
302
294
|
let p = e[m], f = i(p, n, a, o, s);
|
|
@@ -305,75 +297,75 @@ function re(t, e, n, r, o, s, i) {
|
|
|
305
297
|
value.close}`;
|
|
306
298
|
}).join("");
|
|
307
299
|
}
|
|
308
|
-
c(
|
|
309
|
-
function
|
|
300
|
+
c(oe, "printProps");
|
|
301
|
+
function se(t, e, n, r, o, s) {
|
|
310
302
|
return t.map(
|
|
311
303
|
(i) => e.spacingOuter + n + (typeof i == "string" ? tn(i, e) : s(i, e, n, r, o))
|
|
312
304
|
).join("");
|
|
313
305
|
}
|
|
314
|
-
c(
|
|
306
|
+
c(se, "printChildren");
|
|
315
307
|
function tn(t, e) {
|
|
316
308
|
let n = e.colors.content;
|
|
317
309
|
return n.open + ve(t) + n.close;
|
|
318
310
|
}
|
|
319
311
|
c(tn, "printText");
|
|
320
|
-
function
|
|
312
|
+
function Fr(t, e) {
|
|
321
313
|
let n = e.colors.comment;
|
|
322
314
|
return `${n.open}<!--${ve(t)}-->${n.close}`;
|
|
323
315
|
}
|
|
324
|
-
c(
|
|
325
|
-
function
|
|
316
|
+
c(Fr, "printComment");
|
|
317
|
+
function ie(t, e, n, r, o) {
|
|
326
318
|
let s = r.colors.tag;
|
|
327
319
|
return `${s.open}<${t}${e && s.close + e + r.spacingOuter + o + s.open}${n ? `>${s.close}${n}${r.spacingOuter}${o}${s.open}</${t}` : `${e &&
|
|
328
320
|
!r.min ? "" : " "}/`}>${s.close}`;
|
|
329
321
|
}
|
|
330
|
-
c(
|
|
331
|
-
function
|
|
322
|
+
c(ie, "printElement");
|
|
323
|
+
function ce(t, e) {
|
|
332
324
|
let n = e.colors.tag;
|
|
333
325
|
return `${n.open}<${t}${n.close} \u2026${n.open} />${n.close}`;
|
|
334
326
|
}
|
|
335
|
-
c(
|
|
336
|
-
var
|
|
337
|
-
function
|
|
327
|
+
c(ce, "printElementAsLeaf");
|
|
328
|
+
var Dr = 1, en = 3, nn = 8, rn = 11, jr = /^(?:(?:HTML|SVG)\w*)?Element$/;
|
|
329
|
+
function Br(t) {
|
|
338
330
|
try {
|
|
339
331
|
return typeof t.hasAttribute == "function" && t.hasAttribute("is");
|
|
340
332
|
} catch {
|
|
341
333
|
return !1;
|
|
342
334
|
}
|
|
343
335
|
}
|
|
344
|
-
c(
|
|
345
|
-
function
|
|
346
|
-
let e = t.constructor.name, { nodeType: n, tagName: r } = t, o = typeof r == "string" && r.includes("-") ||
|
|
347
|
-
return n ===
|
|
336
|
+
c(Br, "testHasAttribute");
|
|
337
|
+
function kr(t) {
|
|
338
|
+
let e = t.constructor.name, { nodeType: n, tagName: r } = t, o = typeof r == "string" && r.includes("-") || Br(t);
|
|
339
|
+
return n === Dr && (jr.test(e) || o) || n === en && e === "Text" || n === nn && e === "Comment" || n === rn && e === "DocumentFragment";
|
|
348
340
|
}
|
|
349
|
-
c(
|
|
350
|
-
var
|
|
341
|
+
c(kr, "testNode");
|
|
342
|
+
var zr = /* @__PURE__ */ c((t) => {
|
|
351
343
|
var e;
|
|
352
|
-
return ((e = t?.constructor) == null ? void 0 : e.name) &&
|
|
344
|
+
return ((e = t?.constructor) == null ? void 0 : e.name) && kr(t);
|
|
353
345
|
}, "test$3");
|
|
354
|
-
function
|
|
346
|
+
function Yr(t) {
|
|
355
347
|
return t.nodeType === en;
|
|
356
348
|
}
|
|
357
|
-
c(
|
|
358
|
-
function
|
|
349
|
+
c(Yr, "nodeIsText");
|
|
350
|
+
function Ur(t) {
|
|
359
351
|
return t.nodeType === nn;
|
|
360
352
|
}
|
|
361
|
-
c(
|
|
362
|
-
function
|
|
353
|
+
c(Ur, "nodeIsComment");
|
|
354
|
+
function te(t) {
|
|
363
355
|
return t.nodeType === rn;
|
|
364
356
|
}
|
|
365
|
-
c(
|
|
366
|
-
var
|
|
367
|
-
if (
|
|
357
|
+
c(te, "nodeIsFragment");
|
|
358
|
+
var Wr = /* @__PURE__ */ c((t, e, n, r, o, s) => {
|
|
359
|
+
if (Yr(t))
|
|
368
360
|
return tn(t.data, e);
|
|
369
|
-
if (
|
|
370
|
-
return
|
|
371
|
-
let i =
|
|
372
|
-
return ++r > e.maxDepth ?
|
|
361
|
+
if (Ur(t))
|
|
362
|
+
return Fr(t.data, e);
|
|
363
|
+
let i = te(t) ? "DocumentFragment" : t.tagName.toLowerCase();
|
|
364
|
+
return ++r > e.maxDepth ? ce(i, e) : ie(
|
|
373
365
|
i,
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
366
|
+
oe(
|
|
367
|
+
te(t) ? [] : Array.from(t.attributes, (a) => a.name).sort(),
|
|
368
|
+
te(t) ? {} : [...t.attributes].reduce(
|
|
377
369
|
(a, l) => (a[l.name] = l.value, a),
|
|
378
370
|
{}
|
|
379
371
|
),
|
|
@@ -383,7 +375,7 @@ var qr = /* @__PURE__ */ c((t, e, n, r, o, s) => {
|
|
|
383
375
|
o,
|
|
384
376
|
s
|
|
385
377
|
),
|
|
386
|
-
|
|
378
|
+
se(
|
|
387
379
|
Array.prototype.slice.call(t.childNodes || t.children),
|
|
388
380
|
e,
|
|
389
381
|
n + e.indent,
|
|
@@ -394,12 +386,12 @@ var qr = /* @__PURE__ */ c((t, e, n, r, o, s) => {
|
|
|
394
386
|
e,
|
|
395
387
|
n
|
|
396
388
|
);
|
|
397
|
-
}, "serialize$3"),
|
|
398
|
-
EYED__@@",
|
|
399
|
-
@@__IMMUTABLE_SET__@@",
|
|
400
|
-
(t) => `[${t}]`, "printAsLeaf"),
|
|
401
|
-
function
|
|
402
|
-
return ++r > e.maxDepth ? jt(bt(i)) : `${bt(i) +
|
|
389
|
+
}, "serialize$3"), Vr = { serialize: Wr, test: zr }, qr = "@@__IMMUTABLE_ITERABLE__@@", Kr = "@@__IMMUTABLE_LIST__@@", Gr = "@@__IMMUTABLE_K\
|
|
390
|
+
EYED__@@", Hr = "@@__IMMUTABLE_MAP__@@", je = "@@__IMMUTABLE_ORDERED__@@", Jr = "@@__IMMUTABLE_RECORD__@@", Xr = "@@__IMMUTABLE_SEQ__@@", Zr = "\
|
|
391
|
+
@@__IMMUTABLE_SET__@@", Qr = "@@__IMMUTABLE_STACK__@@", bt = /* @__PURE__ */ c((t) => `Immutable.${t}`, "getImmutableName"), jt = /* @__PURE__ */ c(
|
|
392
|
+
(t) => `[${t}]`, "printAsLeaf"), Ct = " ", Be = "\u2026";
|
|
393
|
+
function vr(t, e, n, r, o, s, i) {
|
|
394
|
+
return ++r > e.maxDepth ? jt(bt(i)) : `${bt(i) + Ct}{${Ot(
|
|
403
395
|
t.entries(),
|
|
404
396
|
e,
|
|
405
397
|
n,
|
|
@@ -408,8 +400,8 @@ function eo(t, e, n, r, o, s, i) {
|
|
|
408
400
|
s
|
|
409
401
|
)}}`;
|
|
410
402
|
}
|
|
411
|
-
c(
|
|
412
|
-
function
|
|
403
|
+
c(vr, "printImmutableEntries");
|
|
404
|
+
function to(t) {
|
|
413
405
|
let e = 0;
|
|
414
406
|
return {
|
|
415
407
|
next() {
|
|
@@ -421,11 +413,11 @@ function no(t) {
|
|
|
421
413
|
}
|
|
422
414
|
};
|
|
423
415
|
}
|
|
424
|
-
c(
|
|
425
|
-
function
|
|
416
|
+
c(to, "getRecordEntries");
|
|
417
|
+
function eo(t, e, n, r, o, s) {
|
|
426
418
|
let i = bt(t._name || "Record");
|
|
427
|
-
return ++r > e.maxDepth ? jt(i) : `${i +
|
|
428
|
-
|
|
419
|
+
return ++r > e.maxDepth ? jt(i) : `${i + Ct}{${Ot(
|
|
420
|
+
to(t),
|
|
429
421
|
e,
|
|
430
422
|
n,
|
|
431
423
|
r,
|
|
@@ -433,18 +425,18 @@ function ro(t, e, n, r, o, s) {
|
|
|
433
425
|
s
|
|
434
426
|
)}}`;
|
|
435
427
|
}
|
|
436
|
-
c(
|
|
437
|
-
function
|
|
428
|
+
c(eo, "printImmutableRecord");
|
|
429
|
+
function no(t, e, n, r, o, s) {
|
|
438
430
|
let i = bt("Seq");
|
|
439
|
-
return ++r > e.maxDepth ? jt(i) : t[
|
|
440
|
-
t._iter || t._object ?
|
|
431
|
+
return ++r > e.maxDepth ? jt(i) : t[Gr] ? `${i + Ct}{${// from Immutable collection of entries or from ECMAScript object
|
|
432
|
+
t._iter || t._object ? Ot(
|
|
441
433
|
t.entries(),
|
|
442
434
|
e,
|
|
443
435
|
n,
|
|
444
436
|
r,
|
|
445
437
|
o,
|
|
446
438
|
s
|
|
447
|
-
) : Be}}` : `${i +
|
|
439
|
+
) : Be}}` : `${i + Ct}[${t._iter || t._array || t._collection || t._iterable ? ne(
|
|
448
440
|
t.values(),
|
|
449
441
|
e,
|
|
450
442
|
n,
|
|
@@ -453,9 +445,9 @@ function oo(t, e, n, r, o, s) {
|
|
|
453
445
|
s
|
|
454
446
|
) : Be}]`;
|
|
455
447
|
}
|
|
456
|
-
c(
|
|
457
|
-
function
|
|
458
|
-
return ++r > e.maxDepth ? jt(bt(i)) : `${bt(i) +
|
|
448
|
+
c(no, "printImmutableSeq");
|
|
449
|
+
function ee(t, e, n, r, o, s, i) {
|
|
450
|
+
return ++r > e.maxDepth ? jt(bt(i)) : `${bt(i) + Ct}[${ne(
|
|
459
451
|
t.values(),
|
|
460
452
|
e,
|
|
461
453
|
n,
|
|
@@ -464,8 +456,8 @@ function te(t, e, n, r, o, s, i) {
|
|
|
464
456
|
s
|
|
465
457
|
)}]`;
|
|
466
458
|
}
|
|
467
|
-
c(
|
|
468
|
-
var
|
|
459
|
+
c(ee, "printImmutableValues");
|
|
460
|
+
var ro = /* @__PURE__ */ c((t, e, n, r, o, s) => t[Hr] ? vr(
|
|
469
461
|
t,
|
|
470
462
|
e,
|
|
471
463
|
n,
|
|
@@ -473,7 +465,7 @@ var so = /* @__PURE__ */ c((t, e, n, r, o, s) => t[Xr] ? eo(
|
|
|
473
465
|
o,
|
|
474
466
|
s,
|
|
475
467
|
t[je] ? "OrderedMap" : "Map"
|
|
476
|
-
) : t[
|
|
468
|
+
) : t[Kr] ? ee(
|
|
477
469
|
t,
|
|
478
470
|
e,
|
|
479
471
|
n,
|
|
@@ -481,7 +473,7 @@ var so = /* @__PURE__ */ c((t, e, n, r, o, s) => t[Xr] ? eo(
|
|
|
481
473
|
o,
|
|
482
474
|
s,
|
|
483
475
|
"List"
|
|
484
|
-
) : t[
|
|
476
|
+
) : t[Zr] ? ee(
|
|
485
477
|
t,
|
|
486
478
|
e,
|
|
487
479
|
n,
|
|
@@ -489,7 +481,7 @@ var so = /* @__PURE__ */ c((t, e, n, r, o, s) => t[Xr] ? eo(
|
|
|
489
481
|
o,
|
|
490
482
|
s,
|
|
491
483
|
t[je] ? "OrderedSet" : "Set"
|
|
492
|
-
) : t[
|
|
484
|
+
) : t[Qr] ? ee(
|
|
493
485
|
t,
|
|
494
486
|
e,
|
|
495
487
|
n,
|
|
@@ -497,15 +489,15 @@ var so = /* @__PURE__ */ c((t, e, n, r, o, s) => t[Xr] ? eo(
|
|
|
497
489
|
o,
|
|
498
490
|
s,
|
|
499
491
|
"Stack"
|
|
500
|
-
) : t[
|
|
501
|
-
test$2"),
|
|
492
|
+
) : t[Xr] ? no(t, e, n, r, o, s) : eo(t, e, n, r, o, s), "serialize$2"), oo = /* @__PURE__ */ c((t) => t && (t[qr] === !0 || t[Jr] === !0), "\
|
|
493
|
+
test$2"), so = { serialize: ro, test: oo };
|
|
502
494
|
function on(t) {
|
|
503
495
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
504
496
|
}
|
|
505
497
|
c(on, "getDefaultExportFromCjs");
|
|
506
498
|
var Mt = { exports: {} }, N = {};
|
|
507
499
|
var ke;
|
|
508
|
-
function
|
|
500
|
+
function io() {
|
|
509
501
|
if (ke) return N;
|
|
510
502
|
ke = 1;
|
|
511
503
|
var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.\
|
|
@@ -573,10 +565,10 @@ object" && u !== null && (u.$$typeof === f || u.$$typeof === p || u.$$typeof ===
|
|
|
573
565
|
y || u.getModuleId !== void 0);
|
|
574
566
|
}, N.typeOf = g, N;
|
|
575
567
|
}
|
|
576
|
-
c(
|
|
568
|
+
c(io, "requireReactIs_production");
|
|
577
569
|
var P = {};
|
|
578
570
|
var ze;
|
|
579
|
-
function
|
|
571
|
+
function co() {
|
|
580
572
|
return ze || (ze = 1, process.env.NODE_ENV !== "production" && function() {
|
|
581
573
|
function t(u) {
|
|
582
574
|
if (typeof u == "object" && u !== null) {
|
|
@@ -645,18 +637,18 @@ lazy"), y = Symbol.for("react.offscreen"), g = Symbol.for("react.client.referenc
|
|
|
645
637
|
}, P.typeOf = t;
|
|
646
638
|
}()), P;
|
|
647
639
|
}
|
|
648
|
-
c(
|
|
640
|
+
c(co, "requireReactIs_development$1");
|
|
649
641
|
var Ye;
|
|
650
|
-
function
|
|
651
|
-
return Ye || (Ye = 1, process.env.NODE_ENV === "production" ? Mt.exports =
|
|
642
|
+
function uo() {
|
|
643
|
+
return Ye || (Ye = 1, process.env.NODE_ENV === "production" ? Mt.exports = io() : Mt.exports = co()), Mt.exports;
|
|
652
644
|
}
|
|
653
|
-
c(
|
|
654
|
-
var sn = /* @__PURE__ */
|
|
645
|
+
c(uo, "requireReactIs$1");
|
|
646
|
+
var sn = /* @__PURE__ */ uo(), lo = /* @__PURE__ */ on(sn), ao = /* @__PURE__ */ Ze({
|
|
655
647
|
__proto__: null,
|
|
656
|
-
default:
|
|
648
|
+
default: lo
|
|
657
649
|
}, [sn]), Lt = { exports: {} }, w = {};
|
|
658
650
|
var Ue;
|
|
659
|
-
function
|
|
651
|
+
function fo() {
|
|
660
652
|
if (Ue) return w;
|
|
661
653
|
Ue = 1;
|
|
662
654
|
var t = Symbol.for("react.element"), e = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"),
|
|
@@ -729,131 +721,131 @@ object" && h !== null && (h.$$typeof === S || h.$$typeof === f || h.$$typeof ===
|
|
|
729
721
|
g || h.getModuleId !== void 0);
|
|
730
722
|
}, w.typeOf = u, w;
|
|
731
723
|
}
|
|
732
|
-
c(
|
|
724
|
+
c(fo, "requireReactIs_production_min");
|
|
733
725
|
var A = {};
|
|
734
726
|
var We;
|
|
735
|
-
function
|
|
727
|
+
function mo() {
|
|
736
728
|
return We || (We = 1, process.env.NODE_ENV !== "production" && function() {
|
|
737
729
|
var t = Symbol.for("react.element"), e = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"),
|
|
738
730
|
o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), a = Symbol.for("react.server_contex\
|
|
739
731
|
t"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), f = Symbol.for("react.mem\
|
|
740
732
|
o"), S = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), g = !1, u = !1, h = !1, b = !1, _ = !1, O;
|
|
741
733
|
O = Symbol.for("react.module.reference");
|
|
742
|
-
function d(
|
|
743
|
-
return !!(typeof
|
|
744
|
-
g || u || h || typeof
|
|
734
|
+
function d(C) {
|
|
735
|
+
return !!(typeof C == "string" || typeof C == "function" || C === n || C === o || _ || C === r || C === m || C === p || b || C === y ||
|
|
736
|
+
g || u || h || typeof C == "object" && C !== null && (C.$$typeof === S || C.$$typeof === f || C.$$typeof === s || C.$$typeof === i || C.
|
|
745
737
|
$$typeof === l || // This needs to include all possible module reference object
|
|
746
738
|
// types supported by any Flight configuration anywhere since
|
|
747
739
|
// we don't know which Flight build this will end up being used
|
|
748
740
|
// with.
|
|
749
|
-
|
|
741
|
+
C.$$typeof === O || C.getModuleId !== void 0));
|
|
750
742
|
}
|
|
751
743
|
c(d, "isValidElementType");
|
|
752
|
-
function E(
|
|
753
|
-
if (typeof
|
|
754
|
-
var
|
|
755
|
-
switch (
|
|
744
|
+
function E(C) {
|
|
745
|
+
if (typeof C == "object" && C !== null) {
|
|
746
|
+
var Qt = C.$$typeof;
|
|
747
|
+
switch (Qt) {
|
|
756
748
|
case t:
|
|
757
|
-
var
|
|
758
|
-
switch (
|
|
749
|
+
var Nt = C.type;
|
|
750
|
+
switch (Nt) {
|
|
759
751
|
case n:
|
|
760
752
|
case o:
|
|
761
753
|
case r:
|
|
762
754
|
case m:
|
|
763
755
|
case p:
|
|
764
|
-
return
|
|
756
|
+
return Nt;
|
|
765
757
|
default:
|
|
766
|
-
var
|
|
767
|
-
switch (
|
|
758
|
+
var Le = Nt && Nt.$$typeof;
|
|
759
|
+
switch (Le) {
|
|
768
760
|
case a:
|
|
769
761
|
case i:
|
|
770
762
|
case l:
|
|
771
763
|
case S:
|
|
772
764
|
case f:
|
|
773
765
|
case s:
|
|
774
|
-
return
|
|
766
|
+
return Le;
|
|
775
767
|
default:
|
|
776
|
-
return
|
|
768
|
+
return Qt;
|
|
777
769
|
}
|
|
778
770
|
}
|
|
779
771
|
case e:
|
|
780
|
-
return
|
|
772
|
+
return Qt;
|
|
781
773
|
}
|
|
782
774
|
}
|
|
783
775
|
}
|
|
784
776
|
c(E, "typeOf");
|
|
785
|
-
var $ = i,
|
|
786
|
-
function K(
|
|
777
|
+
var $ = i, T = s, R = t, J = l, et = n, L = S, z = f, X = e, V = o, M = r, F = m, D = p, Z = !1, B = !1;
|
|
778
|
+
function K(C) {
|
|
787
779
|
return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
788
780
|
}
|
|
789
781
|
c(K, "isAsyncMode");
|
|
790
|
-
function st(
|
|
782
|
+
function st(C) {
|
|
791
783
|
return B || (B = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
792
784
|
}
|
|
793
785
|
c(st, "isConcurrentMode");
|
|
794
|
-
function G(
|
|
795
|
-
return E(
|
|
786
|
+
function G(C) {
|
|
787
|
+
return E(C) === i;
|
|
796
788
|
}
|
|
797
789
|
c(G, "isContextConsumer");
|
|
798
|
-
function H(
|
|
799
|
-
return E(
|
|
790
|
+
function H(C) {
|
|
791
|
+
return E(C) === s;
|
|
800
792
|
}
|
|
801
793
|
c(H, "isContextProvider");
|
|
802
|
-
function ct(
|
|
803
|
-
return typeof
|
|
794
|
+
function ct(C) {
|
|
795
|
+
return typeof C == "object" && C !== null && C.$$typeof === t;
|
|
804
796
|
}
|
|
805
797
|
c(ct, "isElement");
|
|
806
|
-
function Q(
|
|
807
|
-
return E(
|
|
798
|
+
function Q(C) {
|
|
799
|
+
return E(C) === l;
|
|
808
800
|
}
|
|
809
801
|
c(Q, "isForwardRef");
|
|
810
|
-
function q(
|
|
811
|
-
return E(
|
|
802
|
+
function q(C) {
|
|
803
|
+
return E(C) === n;
|
|
812
804
|
}
|
|
813
805
|
c(q, "isFragment");
|
|
814
|
-
function it(
|
|
815
|
-
return E(
|
|
806
|
+
function it(C) {
|
|
807
|
+
return E(C) === S;
|
|
816
808
|
}
|
|
817
809
|
c(it, "isLazy");
|
|
818
|
-
function dt(
|
|
819
|
-
return E(
|
|
810
|
+
function dt(C) {
|
|
811
|
+
return E(C) === f;
|
|
820
812
|
}
|
|
821
813
|
c(dt, "isMemo");
|
|
822
|
-
function at(
|
|
823
|
-
return E(
|
|
814
|
+
function at(C) {
|
|
815
|
+
return E(C) === e;
|
|
824
816
|
}
|
|
825
817
|
c(at, "isPortal");
|
|
826
|
-
function
|
|
827
|
-
return E(
|
|
818
|
+
function Tt(C) {
|
|
819
|
+
return E(C) === o;
|
|
828
820
|
}
|
|
829
|
-
c(
|
|
830
|
-
function
|
|
831
|
-
return E(
|
|
821
|
+
c(Tt, "isProfiler");
|
|
822
|
+
function At(C) {
|
|
823
|
+
return E(C) === r;
|
|
832
824
|
}
|
|
833
|
-
c(
|
|
834
|
-
function
|
|
835
|
-
return E(
|
|
825
|
+
c(At, "isStrictMode");
|
|
826
|
+
function Rt(C) {
|
|
827
|
+
return E(C) === m;
|
|
836
828
|
}
|
|
837
|
-
c(
|
|
838
|
-
function pr(
|
|
839
|
-
return E(
|
|
829
|
+
c(Rt, "isSuspense");
|
|
830
|
+
function pr(C) {
|
|
831
|
+
return E(C) === p;
|
|
840
832
|
}
|
|
841
|
-
c(pr, "isSuspenseList"), A.ContextConsumer = $, A.ContextProvider =
|
|
833
|
+
c(pr, "isSuspenseList"), A.ContextConsumer = $, A.ContextProvider = T, A.Element = R, A.ForwardRef = J, A.Fragment = et, A.Lazy = L, A.Memo =
|
|
842
834
|
z, A.Portal = X, A.Profiler = V, A.StrictMode = M, A.Suspense = F, A.SuspenseList = D, A.isAsyncMode = K, A.isConcurrentMode = st, A.isContextConsumer =
|
|
843
835
|
G, A.isContextProvider = H, A.isElement = ct, A.isForwardRef = Q, A.isFragment = q, A.isLazy = it, A.isMemo = dt, A.isPortal = at, A.isProfiler =
|
|
844
|
-
|
|
836
|
+
Tt, A.isStrictMode = At, A.isSuspense = Rt, A.isSuspenseList = pr, A.isValidElementType = d, A.typeOf = E;
|
|
845
837
|
}()), A;
|
|
846
838
|
}
|
|
847
|
-
c(
|
|
839
|
+
c(mo, "requireReactIs_development");
|
|
848
840
|
var Ve;
|
|
849
|
-
function
|
|
850
|
-
return Ve || (Ve = 1, process.env.NODE_ENV === "production" ? Lt.exports =
|
|
841
|
+
function po() {
|
|
842
|
+
return Ve || (Ve = 1, process.env.NODE_ENV === "production" ? Lt.exports = fo() : Lt.exports = mo()), Lt.exports;
|
|
851
843
|
}
|
|
852
|
-
c(
|
|
853
|
-
var cn =
|
|
844
|
+
c(po, "requireReactIs");
|
|
845
|
+
var cn = po(), go = /* @__PURE__ */ on(cn), ho = /* @__PURE__ */ Ze({
|
|
854
846
|
__proto__: null,
|
|
855
|
-
default:
|
|
856
|
-
}, [cn]),
|
|
847
|
+
default: go
|
|
848
|
+
}, [cn]), yo = [
|
|
857
849
|
"isAsyncMode",
|
|
858
850
|
"isConcurrentMode",
|
|
859
851
|
"isContextConsumer",
|
|
@@ -870,7 +862,7 @@ var cn = ho(), yo = /* @__PURE__ */ on(cn), bo = /* @__PURE__ */ Ze({
|
|
|
870
862
|
"isSuspenseList",
|
|
871
863
|
"isValidElementType"
|
|
872
864
|
], mt = Object.fromEntries(
|
|
873
|
-
|
|
865
|
+
yo.map((t) => [t, (e) => ho[t](e) || ao[t](e)])
|
|
874
866
|
);
|
|
875
867
|
function un(t, e = []) {
|
|
876
868
|
if (Array.isArray(t))
|
|
@@ -909,15 +901,15 @@ function qe(t) {
|
|
|
909
901
|
return "UNDEFINED";
|
|
910
902
|
}
|
|
911
903
|
c(qe, "getType");
|
|
912
|
-
function
|
|
904
|
+
function bo(t) {
|
|
913
905
|
let { props: e } = t;
|
|
914
906
|
return Object.keys(e).filter((n) => n !== "children" && e[n] !== void 0).sort();
|
|
915
907
|
}
|
|
916
|
-
c(
|
|
917
|
-
var
|
|
908
|
+
c(bo, "getPropKeys$1");
|
|
909
|
+
var So = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? ce(qe(t), e) : ie(
|
|
918
910
|
qe(t),
|
|
919
|
-
|
|
920
|
-
|
|
911
|
+
oe(
|
|
912
|
+
bo(t),
|
|
921
913
|
t.props,
|
|
922
914
|
e,
|
|
923
915
|
n + e.indent,
|
|
@@ -925,7 +917,7 @@ var _o = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? ie(qe(t), e)
|
|
|
925
917
|
o,
|
|
926
918
|
s
|
|
927
919
|
),
|
|
928
|
-
|
|
920
|
+
se(
|
|
929
921
|
un(t.props.children),
|
|
930
922
|
e,
|
|
931
923
|
n + e.indent,
|
|
@@ -935,17 +927,17 @@ var _o = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? ie(qe(t), e)
|
|
|
935
927
|
),
|
|
936
928
|
e,
|
|
937
929
|
n
|
|
938
|
-
), "serialize$1"),
|
|
930
|
+
), "serialize$1"), Eo = /* @__PURE__ */ c((t) => t != null && mt.isElement(t), "test$1"), _o = { serialize: So, test: Eo }, To = typeof Symbol ==
|
|
939
931
|
"function" && Symbol.for ? Symbol.for("react.test.json") : 245830487;
|
|
940
|
-
function
|
|
932
|
+
function Co(t) {
|
|
941
933
|
let { props: e } = t;
|
|
942
934
|
return e ? Object.keys(e).filter((n) => e[n] !== void 0).sort() : [];
|
|
943
935
|
}
|
|
944
|
-
c(
|
|
945
|
-
var
|
|
936
|
+
c(Co, "getPropKeys");
|
|
937
|
+
var Oo = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? ce(t.type, e) : ie(
|
|
946
938
|
t.type,
|
|
947
|
-
t.props ?
|
|
948
|
-
|
|
939
|
+
t.props ? oe(
|
|
940
|
+
Co(t),
|
|
949
941
|
t.props,
|
|
950
942
|
e,
|
|
951
943
|
n + e.indent,
|
|
@@ -953,7 +945,7 @@ var wo = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? ie(t.type, e
|
|
|
953
945
|
o,
|
|
954
946
|
s
|
|
955
947
|
) : "",
|
|
956
|
-
t.children ?
|
|
948
|
+
t.children ? se(
|
|
957
949
|
t.children,
|
|
958
950
|
e,
|
|
959
951
|
n + e.indent,
|
|
@@ -963,17 +955,17 @@ var wo = /* @__PURE__ */ c((t, e, n, r, o, s) => ++r > e.maxDepth ? ie(t.type, e
|
|
|
963
955
|
) : "",
|
|
964
956
|
e,
|
|
965
957
|
n
|
|
966
|
-
), "serialize"),
|
|
967
|
-
|
|
958
|
+
), "serialize"), $o = /* @__PURE__ */ c((t) => t && t.$$typeof === To, "test"), wo = { serialize: Oo, test: $o }, ln = Object.prototype.toString,
|
|
959
|
+
Ao = Date.prototype.toISOString, Ro = Error.prototype.toString, Ke = RegExp.prototype.toString;
|
|
968
960
|
function xt(t) {
|
|
969
961
|
return typeof t.constructor == "function" && t.constructor.name || "Object";
|
|
970
962
|
}
|
|
971
963
|
c(xt, "getConstructorName");
|
|
972
|
-
function
|
|
964
|
+
function No(t) {
|
|
973
965
|
return typeof window < "u" && t === window;
|
|
974
966
|
}
|
|
975
|
-
c(
|
|
976
|
-
var
|
|
967
|
+
c(No, "isWindow");
|
|
968
|
+
var Po = /^Symbol\((.*)\)(.*)$/, Io = /\n/g, Dt = class extends Error {
|
|
977
969
|
static {
|
|
978
970
|
c(this, "PrettyFormatPluginError");
|
|
979
971
|
}
|
|
@@ -981,30 +973,30 @@ var Mo = /^Symbol\((.*)\)(.*)$/, Lo = /\n/g, Dt = class extends Error {
|
|
|
981
973
|
super(e), this.stack = n, this.name = this.constructor.name;
|
|
982
974
|
}
|
|
983
975
|
};
|
|
984
|
-
function
|
|
976
|
+
function Mo(t) {
|
|
985
977
|
return t === "[object Array]" || t === "[object ArrayBuffer]" || t === "[object DataView]" || t === "[object Float32Array]" || t === "[obj\
|
|
986
978
|
ect Float64Array]" || t === "[object Int8Array]" || t === "[object Int16Array]" || t === "[object Int32Array]" || t === "[object Uint8Array]" ||
|
|
987
979
|
t === "[object Uint8ClampedArray]" || t === "[object Uint16Array]" || t === "[object Uint32Array]";
|
|
988
980
|
}
|
|
989
|
-
c(
|
|
990
|
-
function
|
|
981
|
+
c(Mo, "isToStringedArrayType");
|
|
982
|
+
function Lo(t) {
|
|
991
983
|
return Object.is(t, -0) ? "-0" : String(t);
|
|
992
984
|
}
|
|
993
|
-
c(
|
|
994
|
-
function
|
|
985
|
+
c(Lo, "printNumber");
|
|
986
|
+
function xo(t) {
|
|
995
987
|
return `${t}n`;
|
|
996
988
|
}
|
|
997
|
-
c(
|
|
989
|
+
c(xo, "printBigInt");
|
|
998
990
|
function Ge(t, e) {
|
|
999
991
|
return e ? `[Function ${t.name || "anonymous"}]` : "[Function]";
|
|
1000
992
|
}
|
|
1001
993
|
c(Ge, "printFunction");
|
|
1002
994
|
function He(t) {
|
|
1003
|
-
return String(t).replace(
|
|
995
|
+
return String(t).replace(Po, "Symbol($1)");
|
|
1004
996
|
}
|
|
1005
997
|
c(He, "printSymbol");
|
|
1006
998
|
function Je(t) {
|
|
1007
|
-
return `[${
|
|
999
|
+
return `[${Ro.call(t)}]`;
|
|
1008
1000
|
}
|
|
1009
1001
|
c(Je, "printError");
|
|
1010
1002
|
function an(t, e, n, r) {
|
|
@@ -1016,9 +1008,9 @@ function an(t, e, n, r) {
|
|
|
1016
1008
|
return "null";
|
|
1017
1009
|
let o = typeof t;
|
|
1018
1010
|
if (o === "number")
|
|
1019
|
-
return
|
|
1011
|
+
return Lo(t);
|
|
1020
1012
|
if (o === "bigint")
|
|
1021
|
-
return
|
|
1013
|
+
return xo(t);
|
|
1022
1014
|
if (o === "string")
|
|
1023
1015
|
return r ? `"${t.replaceAll(/"|\\/g, "\\$&")}"` : `"${t}"`;
|
|
1024
1016
|
if (o === "function")
|
|
@@ -1027,7 +1019,7 @@ function an(t, e, n, r) {
|
|
|
1027
1019
|
return He(t);
|
|
1028
1020
|
let s = ln.call(t);
|
|
1029
1021
|
return s === "[object WeakMap]" ? "WeakMap {}" : s === "[object WeakSet]" ? "WeakSet {}" : s === "[object Function]" || s === "[object Gen\
|
|
1030
|
-
eratorFunction]" ? Ge(t, e) : s === "[object Symbol]" ? He(t) : s === "[object Date]" ? Number.isNaN(+t) ? "Date { NaN }" :
|
|
1022
|
+
eratorFunction]" ? Ge(t, e) : s === "[object Symbol]" ? He(t) : s === "[object Date]" ? Number.isNaN(+t) ? "Date { NaN }" : Ao.call(t) : s ===
|
|
1031
1023
|
"[object Error]" ? Je(t) : s === "[object RegExp]" ? n ? Ke.call(t).replaceAll(/[$()*+.?[\\\]^{|}]/g, "\\$&") : Ke.call(t) : t instanceof Error ?
|
|
1032
1024
|
Je(t) : null;
|
|
1033
1025
|
}
|
|
@@ -1047,8 +1039,8 @@ function fn(t, e, n, r, o, s) {
|
|
|
1047
1039
|
r,
|
|
1048
1040
|
o,
|
|
1049
1041
|
ft
|
|
1050
|
-
)}]` :
|
|
1051
|
-
`}[${Ft(t, e, n, r, o, ft)}]` : l === "[object Map]" ? i ? "[Map]" : `Map {${
|
|
1042
|
+
)}]` : Mo(l) ? i ? `[${t.constructor.name}]` : `${a || !e.printBasicPrototype && t.constructor.name === "Array" ? "" : `${t.constructor.name}\
|
|
1043
|
+
`}[${Ft(t, e, n, r, o, ft)}]` : l === "[object Map]" ? i ? "[Map]" : `Map {${Ot(
|
|
1052
1044
|
t.entries(),
|
|
1053
1045
|
e,
|
|
1054
1046
|
n,
|
|
@@ -1056,14 +1048,14 @@ function fn(t, e, n, r, o, s) {
|
|
|
1056
1048
|
o,
|
|
1057
1049
|
ft,
|
|
1058
1050
|
" => "
|
|
1059
|
-
)}}` : l === "[object Set]" ? i ? "[Set]" : `Set {${
|
|
1051
|
+
)}}` : l === "[object Set]" ? i ? "[Set]" : `Set {${ne(
|
|
1060
1052
|
t.values(),
|
|
1061
1053
|
e,
|
|
1062
1054
|
n,
|
|
1063
1055
|
r,
|
|
1064
1056
|
o,
|
|
1065
1057
|
ft
|
|
1066
|
-
)}}` : i ||
|
|
1058
|
+
)}}` : i || No(t) ? `[${xt(t)}]` : `${a || !e.printBasicPrototype && xt(t) === "Object" ? "" : `${xt(t)} `}{${re(
|
|
1067
1059
|
t,
|
|
1068
1060
|
e,
|
|
1069
1061
|
n,
|
|
@@ -1073,7 +1065,7 @@ function fn(t, e, n, r, o, s) {
|
|
|
1073
1065
|
)}}`;
|
|
1074
1066
|
}
|
|
1075
1067
|
c(fn, "printComplexValue");
|
|
1076
|
-
var
|
|
1068
|
+
var Fo = {
|
|
1077
1069
|
test: /* @__PURE__ */ c((t) => t && t instanceof Error, "test"),
|
|
1078
1070
|
serialize(t, e, n, r, o, s) {
|
|
1079
1071
|
if (o.includes(t))
|
|
@@ -1085,7 +1077,7 @@ var jo = {
|
|
|
1085
1077
|
...t instanceof AggregateError ? { errors: t.errors } : {},
|
|
1086
1078
|
...m
|
|
1087
1079
|
}, f = t.name !== "Error" ? t.name : xt(t);
|
|
1088
|
-
return i ? `[${f}]` : `${f} {${
|
|
1080
|
+
return i ? `[${f}]` : `${f} {${Ot(
|
|
1089
1081
|
Object.entries(p).values(),
|
|
1090
1082
|
e,
|
|
1091
1083
|
n,
|
|
@@ -1095,19 +1087,19 @@ var jo = {
|
|
|
1095
1087
|
)}}`;
|
|
1096
1088
|
}
|
|
1097
1089
|
};
|
|
1098
|
-
function
|
|
1090
|
+
function Do(t) {
|
|
1099
1091
|
return t.serialize != null;
|
|
1100
1092
|
}
|
|
1101
|
-
c(
|
|
1093
|
+
c(Do, "isNewPlugin");
|
|
1102
1094
|
function mn(t, e, n, r, o, s) {
|
|
1103
1095
|
let i;
|
|
1104
1096
|
try {
|
|
1105
|
-
i =
|
|
1097
|
+
i = Do(t) ? t.serialize(e, n, r, o, s, ft) : t.print(
|
|
1106
1098
|
e,
|
|
1107
1099
|
(a) => ft(a, n, r, o, s),
|
|
1108
1100
|
(a) => {
|
|
1109
1101
|
let l = r + n.indent;
|
|
1110
|
-
return l + a.replaceAll(
|
|
1102
|
+
return l + a.replaceAll(Io, `
|
|
1111
1103
|
${l}`);
|
|
1112
1104
|
},
|
|
1113
1105
|
{
|
|
@@ -1158,13 +1150,13 @@ function ft(t, e, n, r, o, s) {
|
|
|
1158
1150
|
);
|
|
1159
1151
|
}
|
|
1160
1152
|
c(ft, "printer");
|
|
1161
|
-
var
|
|
1153
|
+
var ue = {
|
|
1162
1154
|
comment: "gray",
|
|
1163
1155
|
content: "reset",
|
|
1164
1156
|
prop: "yellow",
|
|
1165
1157
|
tag: "cyan",
|
|
1166
1158
|
value: "green"
|
|
1167
|
-
}, gn = Object.keys(
|
|
1159
|
+
}, gn = Object.keys(ue), rt = {
|
|
1168
1160
|
callToJSON: !0,
|
|
1169
1161
|
compareKeys: void 0,
|
|
1170
1162
|
escapeRegex: !1,
|
|
@@ -1177,9 +1169,9 @@ var ce = {
|
|
|
1177
1169
|
plugins: [],
|
|
1178
1170
|
printBasicPrototype: !0,
|
|
1179
1171
|
printFunctionName: !0,
|
|
1180
|
-
theme:
|
|
1172
|
+
theme: ue
|
|
1181
1173
|
};
|
|
1182
|
-
function
|
|
1174
|
+
function jo(t) {
|
|
1183
1175
|
for (let e of Object.keys(t))
|
|
1184
1176
|
if (!Object.prototype.hasOwnProperty.call(rt, e))
|
|
1185
1177
|
throw new Error(`pretty-format: Unknown option "${e}".`);
|
|
@@ -1188,10 +1180,10 @@ function ko(t) {
|
|
|
1188
1180
|
'pretty-format: Options "min" and "indent" cannot be used together.'
|
|
1189
1181
|
);
|
|
1190
1182
|
}
|
|
1191
|
-
c(
|
|
1192
|
-
function
|
|
1183
|
+
c(jo, "validateOptions");
|
|
1184
|
+
function Bo() {
|
|
1193
1185
|
return gn.reduce((t, e) => {
|
|
1194
|
-
let n =
|
|
1186
|
+
let n = ue[e], r = n && nt[n];
|
|
1195
1187
|
if (r && typeof r.close == "string" && typeof r.open == "string")
|
|
1196
1188
|
t[e] = r;
|
|
1197
1189
|
else
|
|
@@ -1201,11 +1193,11 @@ function zo() {
|
|
|
1201
1193
|
return t;
|
|
1202
1194
|
}, /* @__PURE__ */ Object.create(null));
|
|
1203
1195
|
}
|
|
1204
|
-
c(
|
|
1205
|
-
function
|
|
1196
|
+
c(Bo, "getColorsHighlight");
|
|
1197
|
+
function ko() {
|
|
1206
1198
|
return gn.reduce((t, e) => (t[e] = { close: "", open: "" }, t), /* @__PURE__ */ Object.create(null));
|
|
1207
1199
|
}
|
|
1208
|
-
c(
|
|
1200
|
+
c(ko, "getColorsEmpty");
|
|
1209
1201
|
function hn(t) {
|
|
1210
1202
|
return t?.printFunctionName ?? rt.printFunctionName;
|
|
1211
1203
|
}
|
|
@@ -1221,11 +1213,11 @@ c(dn, "getEscapeString");
|
|
|
1221
1213
|
function Xe(t) {
|
|
1222
1214
|
return {
|
|
1223
1215
|
callToJSON: t?.callToJSON ?? rt.callToJSON,
|
|
1224
|
-
colors: t?.highlight ?
|
|
1216
|
+
colors: t?.highlight ? Bo() : ko(),
|
|
1225
1217
|
compareKeys: typeof t?.compareKeys == "function" || t?.compareKeys === null ? t.compareKeys : rt.compareKeys,
|
|
1226
1218
|
escapeRegex: yn(t),
|
|
1227
1219
|
escapeString: dn(t),
|
|
1228
|
-
indent: t?.min ? "" :
|
|
1220
|
+
indent: t?.min ? "" : zo(t?.indent ?? rt.indent),
|
|
1229
1221
|
maxDepth: t?.maxDepth ?? rt.maxDepth,
|
|
1230
1222
|
maxWidth: t?.maxWidth ?? rt.maxWidth,
|
|
1231
1223
|
min: t?.min ?? rt.min,
|
|
@@ -1239,12 +1231,12 @@ function Xe(t) {
|
|
|
1239
1231
|
};
|
|
1240
1232
|
}
|
|
1241
1233
|
c(Xe, "getConfig");
|
|
1242
|
-
function
|
|
1234
|
+
function zo(t) {
|
|
1243
1235
|
return Array.from({ length: t + 1 }).join(" ");
|
|
1244
1236
|
}
|
|
1245
|
-
c(
|
|
1237
|
+
c(zo, "createIndent");
|
|
1246
1238
|
function v(t, e) {
|
|
1247
|
-
if (e && (
|
|
1239
|
+
if (e && (jo(e), e.plugins)) {
|
|
1248
1240
|
let r = pn(e.plugins, t);
|
|
1249
1241
|
if (r !== null)
|
|
1250
1242
|
return mn(r, t, Xe(e), "", 0, []);
|
|
@@ -1258,14 +1250,14 @@ function v(t, e) {
|
|
|
1258
1250
|
return n !== null ? n : fn(t, Xe(e), "", 0, []);
|
|
1259
1251
|
}
|
|
1260
1252
|
c(v, "format");
|
|
1261
|
-
var
|
|
1262
|
-
AsymmetricMatcher:
|
|
1263
|
-
DOMCollection:
|
|
1264
|
-
DOMElement:
|
|
1265
|
-
Immutable:
|
|
1266
|
-
ReactElement:
|
|
1267
|
-
ReactTestComponent:
|
|
1268
|
-
Error:
|
|
1253
|
+
var $t = {
|
|
1254
|
+
AsymmetricMatcher: Ar,
|
|
1255
|
+
DOMCollection: xr,
|
|
1256
|
+
DOMElement: Vr,
|
|
1257
|
+
Immutable: so,
|
|
1258
|
+
ReactElement: _o,
|
|
1259
|
+
ReactTestComponent: wo,
|
|
1260
|
+
Error: Fo
|
|
1269
1261
|
};
|
|
1270
1262
|
|
|
1271
1263
|
// ../node_modules/loupe/lib/helpers.js
|
|
@@ -1297,7 +1289,7 @@ var bn = {
|
|
|
1297
1289
|
brightcyan: ["36;1", "39"],
|
|
1298
1290
|
brightwhite: ["37;1", "39"],
|
|
1299
1291
|
grey: ["90", "39"]
|
|
1300
|
-
},
|
|
1292
|
+
}, Yo = {
|
|
1301
1293
|
special: "cyan",
|
|
1302
1294
|
number: "yellow",
|
|
1303
1295
|
bigint: "yellow",
|
|
@@ -1309,11 +1301,11 @@ var bn = {
|
|
|
1309
1301
|
date: "magenta",
|
|
1310
1302
|
regexp: "red"
|
|
1311
1303
|
}, ut = "\u2026";
|
|
1312
|
-
function
|
|
1313
|
-
let n = bn[
|
|
1304
|
+
function Uo(t, e) {
|
|
1305
|
+
let n = bn[Yo[e]] || bn[e] || "";
|
|
1314
1306
|
return n ? `\x1B[${n[0]}m${String(t)}\x1B[${n[1]}m` : String(t);
|
|
1315
1307
|
}
|
|
1316
|
-
c(
|
|
1308
|
+
c(Uo, "colorise");
|
|
1317
1309
|
function Sn({
|
|
1318
1310
|
showHidden: t = !1,
|
|
1319
1311
|
depth: e = 2,
|
|
@@ -1340,13 +1332,13 @@ function Sn({
|
|
|
1340
1332
|
inspect: p,
|
|
1341
1333
|
stylize: m
|
|
1342
1334
|
};
|
|
1343
|
-
return f.colors && (f.stylize =
|
|
1335
|
+
return f.colors && (f.stylize = Uo), f;
|
|
1344
1336
|
}
|
|
1345
1337
|
c(Sn, "normaliseOptions");
|
|
1346
|
-
function
|
|
1338
|
+
function Wo(t) {
|
|
1347
1339
|
return t >= "\uD800" && t <= "\uDBFF";
|
|
1348
1340
|
}
|
|
1349
|
-
c(
|
|
1341
|
+
c(Wo, "isHighSurrogate");
|
|
1350
1342
|
function Y(t, e, n = ut) {
|
|
1351
1343
|
t = String(t);
|
|
1352
1344
|
let r = n.length, o = t.length;
|
|
@@ -1354,7 +1346,7 @@ function Y(t, e, n = ut) {
|
|
|
1354
1346
|
return n;
|
|
1355
1347
|
if (o > e && o > r) {
|
|
1356
1348
|
let s = e - r;
|
|
1357
|
-
return s > 0 &&
|
|
1349
|
+
return s > 0 && Wo(t[s - 1]) && (s = s - 1), `${t.slice(0, s)}${n}`;
|
|
1358
1350
|
}
|
|
1359
1351
|
return t;
|
|
1360
1352
|
}
|
|
@@ -1383,18 +1375,18 @@ function j(t, e, n, r = ", ") {
|
|
|
1383
1375
|
return `${i}${l}`;
|
|
1384
1376
|
}
|
|
1385
1377
|
c(j, "inspectList");
|
|
1386
|
-
function
|
|
1378
|
+
function Vo(t) {
|
|
1387
1379
|
return t.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/) ? t : JSON.stringify(t).replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
|
|
1388
1380
|
}
|
|
1389
|
-
c(
|
|
1381
|
+
c(Vo, "quoteComplexKey");
|
|
1390
1382
|
function lt([t, e], n) {
|
|
1391
|
-
return n.truncate -= 2, typeof t == "string" ? t =
|
|
1383
|
+
return n.truncate -= 2, typeof t == "string" ? t = Vo(t) : typeof t != "number" && (t = `[${n.inspect(t, n)}]`), n.truncate -= t.length, e =
|
|
1392
1384
|
n.inspect(e, n), `${t}: ${e}`;
|
|
1393
1385
|
}
|
|
1394
1386
|
c(lt, "inspectProperty");
|
|
1395
1387
|
|
|
1396
1388
|
// ../node_modules/loupe/lib/array.js
|
|
1397
|
-
function
|
|
1389
|
+
function le(t, e) {
|
|
1398
1390
|
let n = Object.keys(t).slice(t.length);
|
|
1399
1391
|
if (!t.length && !n.length)
|
|
1400
1392
|
return "[]";
|
|
@@ -1404,13 +1396,13 @@ function ue(t, e) {
|
|
|
1404
1396
|
let o = "";
|
|
1405
1397
|
return n.length && (o = j(n.map((s) => [s, t[s]]), e, lt)), `[ ${r}${o ? `, ${o}` : ""} ]`;
|
|
1406
1398
|
}
|
|
1407
|
-
c(
|
|
1399
|
+
c(le, "inspectArray");
|
|
1408
1400
|
|
|
1409
1401
|
// ../node_modules/loupe/lib/typedarray.js
|
|
1410
|
-
var
|
|
1402
|
+
var qo = /* @__PURE__ */ c((t) => typeof Buffer == "function" && t instanceof Buffer ? "Buffer" : t[Symbol.toStringTag] ? t[Symbol.toStringTag] :
|
|
1411
1403
|
t.constructor.name, "getArrayName");
|
|
1412
1404
|
function ot(t, e) {
|
|
1413
|
-
let n =
|
|
1405
|
+
let n = qo(t);
|
|
1414
1406
|
e.truncate -= n.length + 4;
|
|
1415
1407
|
let r = Object.keys(t).slice(t.length);
|
|
1416
1408
|
if (!t.length && !r.length)
|
|
@@ -1430,14 +1422,14 @@ function ot(t, e) {
|
|
|
1430
1422
|
c(ot, "inspectTypedArray");
|
|
1431
1423
|
|
|
1432
1424
|
// ../node_modules/loupe/lib/date.js
|
|
1433
|
-
function
|
|
1425
|
+
function ae(t, e) {
|
|
1434
1426
|
let n = t.toJSON();
|
|
1435
1427
|
if (n === null)
|
|
1436
1428
|
return "Invalid Date";
|
|
1437
1429
|
let r = n.split("T"), o = r[0];
|
|
1438
1430
|
return e.stylize(`${o}T${Y(r[1], e.truncate - o.length - 1)}`, "date");
|
|
1439
1431
|
}
|
|
1440
|
-
c(
|
|
1432
|
+
c(ae, "inspectDate");
|
|
1441
1433
|
|
|
1442
1434
|
// ../node_modules/loupe/lib/function.js
|
|
1443
1435
|
function Bt(t, e) {
|
|
@@ -1447,26 +1439,26 @@ function Bt(t, e) {
|
|
|
1447
1439
|
c(Bt, "inspectFunction");
|
|
1448
1440
|
|
|
1449
1441
|
// ../node_modules/loupe/lib/map.js
|
|
1450
|
-
function
|
|
1442
|
+
function Ko([t, e], n) {
|
|
1451
1443
|
return n.truncate -= 4, t = n.inspect(t, n), n.truncate -= t.length, e = n.inspect(e, n), `${t} => ${e}`;
|
|
1452
1444
|
}
|
|
1453
|
-
c(
|
|
1454
|
-
function
|
|
1445
|
+
c(Ko, "inspectMapEntry");
|
|
1446
|
+
function Go(t) {
|
|
1455
1447
|
let e = [];
|
|
1456
1448
|
return t.forEach((n, r) => {
|
|
1457
1449
|
e.push([r, n]);
|
|
1458
1450
|
}), e;
|
|
1459
1451
|
}
|
|
1460
|
-
c(
|
|
1461
|
-
function
|
|
1462
|
-
return t.size === 0 ? "Map{}" : (e.truncate -= 7, `Map{ ${j(
|
|
1452
|
+
c(Go, "mapToEntries");
|
|
1453
|
+
function fe(t, e) {
|
|
1454
|
+
return t.size === 0 ? "Map{}" : (e.truncate -= 7, `Map{ ${j(Go(t), e, Ko)} }`);
|
|
1463
1455
|
}
|
|
1464
|
-
c(
|
|
1456
|
+
c(fe, "inspectMap");
|
|
1465
1457
|
|
|
1466
1458
|
// ../node_modules/loupe/lib/number.js
|
|
1467
|
-
var
|
|
1459
|
+
var Ho = Number.isNaN || ((t) => t !== t);
|
|
1468
1460
|
function kt(t, e) {
|
|
1469
|
-
return
|
|
1461
|
+
return Ho(t) ? e.stylize("NaN", "number") : t === 1 / 0 ? e.stylize("Infinity", "number") : t === -1 / 0 ? e.stylize("-Infinity", "number") :
|
|
1470
1462
|
t === 0 ? e.stylize(1 / t === 1 / 0 ? "+0" : "-0", "number") : e.stylize(Y(String(t), e.truncate), "number");
|
|
1471
1463
|
}
|
|
1472
1464
|
c(kt, "inspectNumber");
|
|
@@ -1479,28 +1471,28 @@ function zt(t, e) {
|
|
|
1479
1471
|
c(zt, "inspectBigInt");
|
|
1480
1472
|
|
|
1481
1473
|
// ../node_modules/loupe/lib/regexp.js
|
|
1482
|
-
function
|
|
1474
|
+
function me(t, e) {
|
|
1483
1475
|
let n = t.toString().split("/")[2], r = e.truncate - (2 + n.length), o = t.source;
|
|
1484
1476
|
return e.stylize(`/${Y(o, r)}/${n}`, "regexp");
|
|
1485
1477
|
}
|
|
1486
|
-
c(
|
|
1478
|
+
c(me, "inspectRegExp");
|
|
1487
1479
|
|
|
1488
1480
|
// ../node_modules/loupe/lib/set.js
|
|
1489
|
-
function
|
|
1481
|
+
function Jo(t) {
|
|
1490
1482
|
let e = [];
|
|
1491
1483
|
return t.forEach((n) => {
|
|
1492
1484
|
e.push(n);
|
|
1493
1485
|
}), e;
|
|
1494
1486
|
}
|
|
1495
|
-
c(
|
|
1496
|
-
function
|
|
1497
|
-
return t.size === 0 ? "Set{}" : (e.truncate -= 7, `Set{ ${j(
|
|
1487
|
+
c(Jo, "arrayFromSet");
|
|
1488
|
+
function pe(t, e) {
|
|
1489
|
+
return t.size === 0 ? "Set{}" : (e.truncate -= 7, `Set{ ${j(Jo(t), e)} }`);
|
|
1498
1490
|
}
|
|
1499
|
-
c(
|
|
1491
|
+
c(pe, "inspectSet");
|
|
1500
1492
|
|
|
1501
1493
|
// ../node_modules/loupe/lib/string.js
|
|
1502
1494
|
var En = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\u\
|
|
1503
|
-
ffff]", "g"),
|
|
1495
|
+
ffff]", "g"), Xo = {
|
|
1504
1496
|
"\b": "\\b",
|
|
1505
1497
|
" ": "\\t",
|
|
1506
1498
|
"\n": "\\n",
|
|
@@ -1508,13 +1500,13 @@ ffff]", "g"), Qo = {
|
|
|
1508
1500
|
"\r": "\\r",
|
|
1509
1501
|
"'": "\\'",
|
|
1510
1502
|
"\\": "\\\\"
|
|
1511
|
-
},
|
|
1512
|
-
function
|
|
1513
|
-
return
|
|
1503
|
+
}, Zo = 16, Qo = 4;
|
|
1504
|
+
function vo(t) {
|
|
1505
|
+
return Xo[t] || `\\u${`0000${t.charCodeAt(0).toString(Zo)}`.slice(-Qo)}`;
|
|
1514
1506
|
}
|
|
1515
|
-
c(
|
|
1507
|
+
c(vo, "escape");
|
|
1516
1508
|
function Yt(t, e) {
|
|
1517
|
-
return En.test(t) && (t = t.replace(En,
|
|
1509
|
+
return En.test(t) && (t = t.replace(En, vo)), e.stylize(`'${Y(t, e.truncate - 2)}'`, "string");
|
|
1518
1510
|
}
|
|
1519
1511
|
c(Yt, "inspectString");
|
|
1520
1512
|
|
|
@@ -1534,7 +1526,7 @@ try {
|
|
|
1534
1526
|
}, "getPromiseValue"));
|
|
1535
1527
|
} catch {
|
|
1536
1528
|
}
|
|
1537
|
-
var
|
|
1529
|
+
var Tn = _n;
|
|
1538
1530
|
|
|
1539
1531
|
// ../node_modules/loupe/lib/object.js
|
|
1540
1532
|
function pt(t, e) {
|
|
@@ -1552,22 +1544,22 @@ function pt(t, e) {
|
|
|
1552
1544
|
c(pt, "inspectObject");
|
|
1553
1545
|
|
|
1554
1546
|
// ../node_modules/loupe/lib/class.js
|
|
1555
|
-
var
|
|
1556
|
-
function
|
|
1547
|
+
var ge = typeof Symbol < "u" && Symbol.toStringTag ? Symbol.toStringTag : !1;
|
|
1548
|
+
function he(t, e) {
|
|
1557
1549
|
let n = "";
|
|
1558
|
-
return
|
|
1550
|
+
return ge && ge in t && (n = t[ge]), n = n || t.constructor.name, (!n || n === "_class") && (n = "<Anonymous Class>"), e.truncate -= n.length,
|
|
1559
1551
|
`${n}${pt(t, e)}`;
|
|
1560
1552
|
}
|
|
1561
|
-
c(
|
|
1553
|
+
c(he, "inspectClass");
|
|
1562
1554
|
|
|
1563
1555
|
// ../node_modules/loupe/lib/arguments.js
|
|
1564
|
-
function
|
|
1556
|
+
function ye(t, e) {
|
|
1565
1557
|
return t.length === 0 ? "Arguments[]" : (e.truncate -= 13, `Arguments[ ${j(t, e)} ]`);
|
|
1566
1558
|
}
|
|
1567
|
-
c(
|
|
1559
|
+
c(ye, "inspectArguments");
|
|
1568
1560
|
|
|
1569
1561
|
// ../node_modules/loupe/lib/error.js
|
|
1570
|
-
var
|
|
1562
|
+
var ts = [
|
|
1571
1563
|
"stack",
|
|
1572
1564
|
"line",
|
|
1573
1565
|
"column",
|
|
@@ -1580,8 +1572,8 @@ var ns = [
|
|
|
1580
1572
|
"description",
|
|
1581
1573
|
"cause"
|
|
1582
1574
|
];
|
|
1583
|
-
function
|
|
1584
|
-
let n = Object.getOwnPropertyNames(t).filter((i) =>
|
|
1575
|
+
function de(t, e) {
|
|
1576
|
+
let n = Object.getOwnPropertyNames(t).filter((i) => ts.indexOf(i) === -1), r = t.name;
|
|
1585
1577
|
e.truncate -= r.length;
|
|
1586
1578
|
let o = "";
|
|
1587
1579
|
if (typeof t.message == "string" ? o = Y(t.message, e.truncate) : n.unshift("message"), o = o ? `: ${o}` : "", e.truncate -= o.length + 5,
|
|
@@ -1591,13 +1583,13 @@ function ye(t, e) {
|
|
|
1591
1583
|
let s = j(n.map((i) => [i, t[i]]), e, lt);
|
|
1592
1584
|
return `${r}${o}${s ? ` { ${s} }` : ""}`;
|
|
1593
1585
|
}
|
|
1594
|
-
c(
|
|
1586
|
+
c(de, "inspectObject");
|
|
1595
1587
|
|
|
1596
1588
|
// ../node_modules/loupe/lib/html.js
|
|
1597
|
-
function
|
|
1589
|
+
function es([t, e], n) {
|
|
1598
1590
|
return n.truncate -= 3, e ? `${n.stylize(String(t), "yellow")}=${n.stylize(`"${e}"`, "string")}` : `${n.stylize(String(t), "yellow")}`;
|
|
1599
1591
|
}
|
|
1600
|
-
c(
|
|
1592
|
+
c(es, "inspectAttribute");
|
|
1601
1593
|
function Wt(t, e) {
|
|
1602
1594
|
return j(t, e, Vt, `
|
|
1603
1595
|
`);
|
|
@@ -1608,21 +1600,21 @@ function Vt(t, e) {
|
|
|
1608
1600
|
`</${r}>`, "special");
|
|
1609
1601
|
e.truncate -= r.length * 2 + 5;
|
|
1610
1602
|
let a = "";
|
|
1611
|
-
n.length > 0 && (a += " ", a += j(n.map((p) => [p, t.getAttribute(p)]), e,
|
|
1603
|
+
n.length > 0 && (a += " ", a += j(n.map((p) => [p, t.getAttribute(p)]), e, es, " ")), e.truncate -= a.length;
|
|
1612
1604
|
let l = e.truncate, m = Wt(t.children, e);
|
|
1613
1605
|
return m && m.length > l && (m = `${ut}(${t.children.length})`), `${o}${a}${s}${m}${i}`;
|
|
1614
1606
|
}
|
|
1615
1607
|
c(Vt, "inspectHTML");
|
|
1616
1608
|
|
|
1617
1609
|
// ../node_modules/loupe/lib/index.js
|
|
1618
|
-
var
|
|
1610
|
+
var ns = typeof Symbol == "function" && typeof Symbol.for == "function", be = ns ? Symbol.for("chai/inspect") : "@@chai/inspect", St = !1;
|
|
1619
1611
|
try {
|
|
1620
1612
|
let t = require("util");
|
|
1621
1613
|
St = t.inspect ? t.inspect.custom : !1;
|
|
1622
1614
|
} catch {
|
|
1623
1615
|
St = !1;
|
|
1624
1616
|
}
|
|
1625
|
-
var
|
|
1617
|
+
var Cn = /* @__PURE__ */ new WeakMap(), On = {}, $n = {
|
|
1626
1618
|
undefined: /* @__PURE__ */ c((t, e) => e.stylize("undefined", "undefined"), "undefined"),
|
|
1627
1619
|
null: /* @__PURE__ */ c((t, e) => e.stylize("null", "null"), "null"),
|
|
1628
1620
|
boolean: /* @__PURE__ */ c((t, e) => e.stylize(String(t), "boolean"), "boolean"),
|
|
@@ -1638,16 +1630,16 @@ var Tn = /* @__PURE__ */ new WeakMap(), On = {}, $n = {
|
|
|
1638
1630
|
symbol: Ut,
|
|
1639
1631
|
// A Symbol polyfill will return `Symbol` not `symbol` from typedetect
|
|
1640
1632
|
Symbol: Ut,
|
|
1641
|
-
Array:
|
|
1642
|
-
Date:
|
|
1643
|
-
Map:
|
|
1644
|
-
Set:
|
|
1645
|
-
RegExp:
|
|
1646
|
-
Promise:
|
|
1633
|
+
Array: le,
|
|
1634
|
+
Date: ae,
|
|
1635
|
+
Map: fe,
|
|
1636
|
+
Set: pe,
|
|
1637
|
+
RegExp: me,
|
|
1638
|
+
Promise: Tn,
|
|
1647
1639
|
// WeakSet, WeakMap are totally opaque to us
|
|
1648
1640
|
WeakSet: /* @__PURE__ */ c((t, e) => e.stylize("WeakSet{\u2026}", "special"), "WeakSet"),
|
|
1649
1641
|
WeakMap: /* @__PURE__ */ c((t, e) => e.stylize("WeakMap{\u2026}", "special"), "WeakMap"),
|
|
1650
|
-
Arguments:
|
|
1642
|
+
Arguments: ye,
|
|
1651
1643
|
Int8Array: ot,
|
|
1652
1644
|
Uint8Array: ot,
|
|
1653
1645
|
Uint8ClampedArray: ot,
|
|
@@ -1660,42 +1652,42 @@ var Tn = /* @__PURE__ */ new WeakMap(), On = {}, $n = {
|
|
|
1660
1652
|
Generator: /* @__PURE__ */ c(() => "", "Generator"),
|
|
1661
1653
|
DataView: /* @__PURE__ */ c(() => "", "DataView"),
|
|
1662
1654
|
ArrayBuffer: /* @__PURE__ */ c(() => "", "ArrayBuffer"),
|
|
1663
|
-
Error:
|
|
1655
|
+
Error: de,
|
|
1664
1656
|
HTMLCollection: Wt,
|
|
1665
1657
|
NodeList: Wt
|
|
1666
|
-
},
|
|
1667
|
-
e.depth, e) : "inspect" in t && typeof t.inspect == "function" ? t.inspect(e.depth, e) : "constructor" in t &&
|
|
1668
|
-
t.constructor)(t, e) : On[n] ? On[n](t, e) : "", "inspectCustom"),
|
|
1658
|
+
}, rs = /* @__PURE__ */ c((t, e, n) => be in t && typeof t[be] == "function" ? t[be](e) : St && St in t && typeof t[St] == "function" ? t[St](
|
|
1659
|
+
e.depth, e) : "inspect" in t && typeof t.inspect == "function" ? t.inspect(e.depth, e) : "constructor" in t && Cn.has(t.constructor) ? Cn.get(
|
|
1660
|
+
t.constructor)(t, e) : On[n] ? On[n](t, e) : "", "inspectCustom"), os = Object.prototype.toString;
|
|
1669
1661
|
function qt(t, e = {}) {
|
|
1670
1662
|
let n = Sn(e, qt), { customInspect: r } = n, o = t === null ? "null" : typeof t;
|
|
1671
|
-
if (o === "object" && (o =
|
|
1663
|
+
if (o === "object" && (o = os.call(t).slice(8, -1)), o in $n)
|
|
1672
1664
|
return $n[o](t, n);
|
|
1673
1665
|
if (r && t) {
|
|
1674
|
-
let i =
|
|
1666
|
+
let i = rs(t, n, o);
|
|
1675
1667
|
if (i)
|
|
1676
1668
|
return typeof i == "string" ? i : qt(i, n);
|
|
1677
1669
|
}
|
|
1678
1670
|
let s = t ? Object.getPrototypeOf(t) : !1;
|
|
1679
1671
|
return s === Object.prototype || s === null ? pt(t, n) : t && typeof HTMLElement == "function" && t instanceof HTMLElement ? Vt(t, n) : "c\
|
|
1680
|
-
onstructor" in t ? t.constructor !== Object ?
|
|
1672
|
+
onstructor" in t ? t.constructor !== Object ? he(t, n) : pt(t, n) : t === Object(t) ? pt(t, n) : n.stylize(String(t), o);
|
|
1681
1673
|
}
|
|
1682
1674
|
c(qt, "inspect");
|
|
1683
1675
|
|
|
1684
1676
|
// ../node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
|
|
1685
1677
|
var {
|
|
1686
|
-
AsymmetricMatcher:
|
|
1687
|
-
DOMCollection:
|
|
1688
|
-
DOMElement:
|
|
1689
|
-
Immutable:
|
|
1690
|
-
ReactElement:
|
|
1691
|
-
ReactTestComponent:
|
|
1692
|
-
} =
|
|
1693
|
-
|
|
1694
|
-
ms,
|
|
1678
|
+
AsymmetricMatcher: is,
|
|
1679
|
+
DOMCollection: cs,
|
|
1680
|
+
DOMElement: us,
|
|
1681
|
+
Immutable: ls,
|
|
1682
|
+
ReactElement: as,
|
|
1683
|
+
ReactTestComponent: fs
|
|
1684
|
+
} = $t, wn = [
|
|
1685
|
+
fs,
|
|
1695
1686
|
as,
|
|
1687
|
+
us,
|
|
1688
|
+
cs,
|
|
1696
1689
|
ls,
|
|
1697
|
-
|
|
1698
|
-
us
|
|
1690
|
+
is
|
|
1699
1691
|
];
|
|
1700
1692
|
function gt(t, e = 10, { maxLength: n, ...r } = {}) {
|
|
1701
1693
|
let o = n ?? 1e4, s;
|
|
@@ -1720,15 +1712,15 @@ function gt(t, e = 10, { maxLength: n, ...r } = {}) {
|
|
|
1720
1712
|
return s.length >= o && e > 1 ? gt(t, Math.floor(Math.min(e, Number.MAX_SAFE_INTEGER) / 2), { maxLength: n, ...r }) : s;
|
|
1721
1713
|
}
|
|
1722
1714
|
c(gt, "stringify");
|
|
1723
|
-
var
|
|
1715
|
+
var ms = /%[sdjifoOc%]/g;
|
|
1724
1716
|
function An(...t) {
|
|
1725
1717
|
if (typeof t[0] != "string") {
|
|
1726
1718
|
let s = [];
|
|
1727
1719
|
for (let i = 0; i < t.length; i++)
|
|
1728
|
-
s.push(
|
|
1720
|
+
s.push(wt(t[i], { depth: 0, colors: !1 }));
|
|
1729
1721
|
return s.join(" ");
|
|
1730
1722
|
}
|
|
1731
|
-
let e = t.length, n = 1, r = t[0], o = String(r).replace(
|
|
1723
|
+
let e = t.length, n = 1, r = t[0], o = String(r).replace(ms, (s) => {
|
|
1732
1724
|
if (s === "%%")
|
|
1733
1725
|
return "%";
|
|
1734
1726
|
if (n >= e)
|
|
@@ -1737,7 +1729,7 @@ function An(...t) {
|
|
|
1737
1729
|
case "%s": {
|
|
1738
1730
|
let i = t[n++];
|
|
1739
1731
|
return typeof i == "bigint" ? `${i.toString()}n` : typeof i == "number" && i === 0 && 1 / i < 0 ? "-0" : typeof i == "object" && i !==
|
|
1740
|
-
null ? typeof i.toString == "function" && i.toString !== Object.prototype.toString ? i.toString() :
|
|
1732
|
+
null ? typeof i.toString == "function" && i.toString !== Object.prototype.toString ? i.toString() : wt(i, { depth: 0, colors: !1 }) :
|
|
1741
1733
|
String(i);
|
|
1742
1734
|
}
|
|
1743
1735
|
case "%d": {
|
|
@@ -1751,9 +1743,9 @@ function An(...t) {
|
|
|
1751
1743
|
case "%f":
|
|
1752
1744
|
return Number.parseFloat(String(t[n++])).toString();
|
|
1753
1745
|
case "%o":
|
|
1754
|
-
return
|
|
1746
|
+
return wt(t[n++], { showHidden: !0, showProxy: !0 });
|
|
1755
1747
|
case "%O":
|
|
1756
|
-
return
|
|
1748
|
+
return wt(t[n++]);
|
|
1757
1749
|
case "%c":
|
|
1758
1750
|
return n++, "";
|
|
1759
1751
|
case "%j":
|
|
@@ -1773,60 +1765,60 @@ function An(...t) {
|
|
|
1773
1765
|
}
|
|
1774
1766
|
});
|
|
1775
1767
|
for (let s = t[n]; n < e; s = t[++n])
|
|
1776
|
-
s === null || typeof s != "object" ? o += ` ${s}` : o += ` ${
|
|
1768
|
+
s === null || typeof s != "object" ? o += ` ${s}` : o += ` ${wt(s)}`;
|
|
1777
1769
|
return o;
|
|
1778
1770
|
}
|
|
1779
1771
|
c(An, "format");
|
|
1780
|
-
function
|
|
1772
|
+
function wt(t, e = {}) {
|
|
1781
1773
|
return e.truncate === 0 && (e.truncate = Number.POSITIVE_INFINITY), qt(t, e);
|
|
1782
1774
|
}
|
|
1783
|
-
c(
|
|
1775
|
+
c(wt, "inspect");
|
|
1784
1776
|
function Rn(t) {
|
|
1785
1777
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1786
1778
|
}
|
|
1787
1779
|
c(Rn, "getDefaultExportFromCjs");
|
|
1788
1780
|
|
|
1789
1781
|
// ../node_modules/@vitest/utils/dist/helpers.js
|
|
1790
|
-
function
|
|
1782
|
+
function ps(t) {
|
|
1791
1783
|
return t === Object.prototype || t === Function.prototype || t === RegExp.prototype;
|
|
1792
1784
|
}
|
|
1793
|
-
c(
|
|
1785
|
+
c(ps, "isFinalObj");
|
|
1794
1786
|
function Kt(t) {
|
|
1795
1787
|
return Object.prototype.toString.apply(t).slice(8, -1);
|
|
1796
1788
|
}
|
|
1797
1789
|
c(Kt, "getType");
|
|
1798
|
-
function
|
|
1790
|
+
function gs(t, e) {
|
|
1799
1791
|
let n = typeof e == "function" ? e : (r) => e.add(r);
|
|
1800
1792
|
Object.getOwnPropertyNames(t).forEach(n), Object.getOwnPropertySymbols(t).forEach(n);
|
|
1801
1793
|
}
|
|
1802
|
-
c(
|
|
1803
|
-
function
|
|
1794
|
+
c(gs, "collectOwnProperties");
|
|
1795
|
+
function Ee(t) {
|
|
1804
1796
|
let e = /* @__PURE__ */ new Set();
|
|
1805
|
-
return
|
|
1797
|
+
return ps(t) ? [] : (gs(t, e), Array.from(e));
|
|
1806
1798
|
}
|
|
1807
|
-
c(
|
|
1799
|
+
c(Ee, "getOwnProperties");
|
|
1808
1800
|
var Nn = { forceWritable: !1 };
|
|
1809
|
-
function
|
|
1810
|
-
return
|
|
1801
|
+
function _e(t, e = Nn) {
|
|
1802
|
+
return Se(t, /* @__PURE__ */ new WeakMap(), e);
|
|
1811
1803
|
}
|
|
1812
|
-
c(
|
|
1813
|
-
function
|
|
1804
|
+
c(_e, "deepClone");
|
|
1805
|
+
function Se(t, e, n = Nn) {
|
|
1814
1806
|
let r, o;
|
|
1815
1807
|
if (e.has(t))
|
|
1816
1808
|
return e.get(t);
|
|
1817
1809
|
if (Array.isArray(t)) {
|
|
1818
1810
|
for (o = Array.from({ length: r = t.length }), e.set(t, o); r--; )
|
|
1819
|
-
o[r] =
|
|
1811
|
+
o[r] = Se(t[r], e, n);
|
|
1820
1812
|
return o;
|
|
1821
1813
|
}
|
|
1822
1814
|
if (Object.prototype.toString.call(t) === "[object Object]") {
|
|
1823
1815
|
o = Object.create(Object.getPrototypeOf(t)), e.set(t, o);
|
|
1824
|
-
let s =
|
|
1816
|
+
let s = Ee(t);
|
|
1825
1817
|
for (let i of s) {
|
|
1826
1818
|
let a = Object.getOwnPropertyDescriptor(t, i);
|
|
1827
1819
|
if (!a)
|
|
1828
1820
|
continue;
|
|
1829
|
-
let l =
|
|
1821
|
+
let l = Se(t[i], e, n);
|
|
1830
1822
|
n.forceWritable ? Object.defineProperty(o, i, {
|
|
1831
1823
|
enumerable: a.enumerable,
|
|
1832
1824
|
configurable: !0,
|
|
@@ -1846,7 +1838,7 @@ function be(t, e, n = Nn) {
|
|
|
1846
1838
|
}
|
|
1847
1839
|
return t;
|
|
1848
1840
|
}
|
|
1849
|
-
c(
|
|
1841
|
+
c(Se, "clone");
|
|
1850
1842
|
|
|
1851
1843
|
// ../node_modules/@vitest/utils/dist/diff.js
|
|
1852
1844
|
var U = -1, k = 1, x = 0, I = class {
|
|
@@ -1859,7 +1851,7 @@ var U = -1, k = 1, x = 0, I = class {
|
|
|
1859
1851
|
this[0] = e, this[1] = n;
|
|
1860
1852
|
}
|
|
1861
1853
|
};
|
|
1862
|
-
function
|
|
1854
|
+
function hs(t, e) {
|
|
1863
1855
|
if (!t || !e || t.charAt(0) !== e.charAt(0))
|
|
1864
1856
|
return 0;
|
|
1865
1857
|
let n = 0, r = Math.min(t.length, e.length), o = r, s = 0;
|
|
@@ -1867,7 +1859,7 @@ function ds(t, e) {
|
|
|
1867
1859
|
t.substring(s, o) === e.substring(s, o) ? (n = o, s = n) : r = o, o = Math.floor((r - n) / 2 + n);
|
|
1868
1860
|
return o;
|
|
1869
1861
|
}
|
|
1870
|
-
c(
|
|
1862
|
+
c(hs, "diff_commonPrefix");
|
|
1871
1863
|
function qn(t, e) {
|
|
1872
1864
|
if (!t || !e || t.charAt(t.length - 1) !== e.charAt(e.length - 1))
|
|
1873
1865
|
return 0;
|
|
@@ -1895,7 +1887,7 @@ function Pn(t, e) {
|
|
|
1895
1887
|
}
|
|
1896
1888
|
}
|
|
1897
1889
|
c(Pn, "diff_commonOverlap_");
|
|
1898
|
-
function
|
|
1890
|
+
function ys(t) {
|
|
1899
1891
|
let e = !1, n = [], r = 0, o = null, s = 0, i = 0, a = 0, l = 0, m = 0;
|
|
1900
1892
|
for (; s < t.length; )
|
|
1901
1893
|
t[s][0] === x ? (n[r++] = s, i = l, a = m, l = 0, m = 0, o = t[s][1]) : (t[s][0] === k ? l += t[s][1].length : m += t[s][1].length, o &&
|
|
@@ -1904,7 +1896,7 @@ function bs(t) {
|
|
|
1904
1896
|
0,
|
|
1905
1897
|
new I(U, o)
|
|
1906
1898
|
), t[n[r - 1] + 1][0] = k, r--, r--, s = r > 0 ? n[r - 1] : -1, i = 0, a = 0, l = 0, m = 0, o = null, e = !0)), s++;
|
|
1907
|
-
for (e && Kn(t),
|
|
1899
|
+
for (e && Kn(t), Ss(t), s = 1; s < t.length; ) {
|
|
1908
1900
|
if (t[s - 1][0] === U && t[s][0] === k) {
|
|
1909
1901
|
let p = t[s - 1][1], f = t[s][1], S = Pn(p, f), y = Pn(f, p);
|
|
1910
1902
|
S >= y ? (S >= p.length / 2 || S >= f.length / 2) && (t.splice(
|
|
@@ -1926,9 +1918,9 @@ function bs(t) {
|
|
|
1926
1918
|
s++;
|
|
1927
1919
|
}
|
|
1928
1920
|
}
|
|
1929
|
-
c(
|
|
1930
|
-
var In = /[^a-z0-9]/i, Mn = /\s/, Ln = /[\r\n]/,
|
|
1931
|
-
function
|
|
1921
|
+
c(ys, "diff_cleanupSemantic");
|
|
1922
|
+
var In = /[^a-z0-9]/i, Mn = /\s/, Ln = /[\r\n]/, ds = /\n\r?\n$/, bs = /^\r?\n\r?\n/;
|
|
1923
|
+
function Ss(t) {
|
|
1932
1924
|
let e = 1;
|
|
1933
1925
|
for (; e < t.length - 1; ) {
|
|
1934
1926
|
if (t[e - 1][0] === x && t[e + 1][0] === x) {
|
|
@@ -1948,7 +1940,7 @@ function _s(t) {
|
|
|
1948
1940
|
e++;
|
|
1949
1941
|
}
|
|
1950
1942
|
}
|
|
1951
|
-
c(
|
|
1943
|
+
c(Ss, "diff_cleanupSemanticLossless");
|
|
1952
1944
|
function Kn(t) {
|
|
1953
1945
|
t.push(new I(x, ""));
|
|
1954
1946
|
let e = 0, n = 0, r = 0, o = "", s = "", i;
|
|
@@ -1961,7 +1953,7 @@ function Kn(t) {
|
|
|
1961
1953
|
n++, o += t[e][1], e++;
|
|
1962
1954
|
break;
|
|
1963
1955
|
case x:
|
|
1964
|
-
n + r > 1 ? (n !== 0 && r !== 0 && (i =
|
|
1956
|
+
n + r > 1 ? (n !== 0 && r !== 0 && (i = hs(s, o), i !== 0 && (e - n - r > 0 && t[e - n - r - 1][0] === x ? t[e - n - r - 1][1] += s.
|
|
1965
1957
|
substring(0, i) : (t.splice(
|
|
1966
1958
|
0,
|
|
1967
1959
|
0,
|
|
@@ -1993,13 +1985,13 @@ function Gt(t, e) {
|
|
|
1993
1985
|
if (!t || !e)
|
|
1994
1986
|
return 6;
|
|
1995
1987
|
let n = t.charAt(t.length - 1), r = e.charAt(0), o = n.match(In), s = r.match(In), i = o && n.match(Mn), a = s && r.match(Mn), l = i && n.
|
|
1996
|
-
match(Ln), m = a && r.match(Ln), p = l && t.match(
|
|
1988
|
+
match(Ln), m = a && r.match(Ln), p = l && t.match(ds), f = m && e.match(bs);
|
|
1997
1989
|
return p || f ? 5 : l || m ? 4 : o && !i && a ? 3 : i || a ? 2 : o || s ? 1 : 0;
|
|
1998
1990
|
}
|
|
1999
1991
|
c(Gt, "diff_cleanupSemanticScore_");
|
|
2000
|
-
var Gn = "Compared values have no visual difference.",
|
|
1992
|
+
var Gn = "Compared values have no visual difference.", Es = "Compared values serialize to the same structure.\nPrinting internal object struc\
|
|
2001
1993
|
ture without calling `toJSON` instead.", Ht = {}, xn;
|
|
2002
|
-
function
|
|
1994
|
+
function _s() {
|
|
2003
1995
|
if (xn) return Ht;
|
|
2004
1996
|
xn = 1, Object.defineProperty(Ht, "__esModule", {
|
|
2005
1997
|
value: !0
|
|
@@ -2015,7 +2007,7 @@ function Ts() {
|
|
|
2015
2007
|
g -= 1, h -= 1, _ += 1;
|
|
2016
2008
|
return _;
|
|
2017
2009
|
}, "countCommonItemsR"), o = /* @__PURE__ */ c((y, g, u, h, b, _, O) => {
|
|
2018
|
-
let d = 0, E = -y, $ = _[d],
|
|
2010
|
+
let d = 0, E = -y, $ = _[d], T = $;
|
|
2019
2011
|
_[d] += n(
|
|
2020
2012
|
$ + 1,
|
|
2021
2013
|
g,
|
|
@@ -2025,15 +2017,15 @@ function Ts() {
|
|
|
2025
2017
|
);
|
|
2026
2018
|
let R = y < O ? y : O;
|
|
2027
2019
|
for (d += 1, E += 2; d <= R; d += 1, E += 2) {
|
|
2028
|
-
if (d !== y &&
|
|
2020
|
+
if (d !== y && T < _[d])
|
|
2029
2021
|
$ = _[d];
|
|
2030
|
-
else if ($ =
|
|
2022
|
+
else if ($ = T + 1, g <= $)
|
|
2031
2023
|
return d - 1;
|
|
2032
|
-
|
|
2024
|
+
T = _[d], _[d] = $ + n($ + 1, g, h + $ - E + 1, u, b);
|
|
2033
2025
|
}
|
|
2034
2026
|
return O;
|
|
2035
2027
|
}, "extendPathsF"), s = /* @__PURE__ */ c((y, g, u, h, b, _, O) => {
|
|
2036
|
-
let d = 0, E = y, $ = _[d],
|
|
2028
|
+
let d = 0, E = y, $ = _[d], T = $;
|
|
2037
2029
|
_[d] -= r(
|
|
2038
2030
|
g,
|
|
2039
2031
|
$ - 1,
|
|
@@ -2043,11 +2035,11 @@ function Ts() {
|
|
|
2043
2035
|
);
|
|
2044
2036
|
let R = y < O ? y : O;
|
|
2045
2037
|
for (d += 1, E -= 2; d <= R; d += 1, E -= 2) {
|
|
2046
|
-
if (d !== y && _[d] <
|
|
2038
|
+
if (d !== y && _[d] < T)
|
|
2047
2039
|
$ = _[d];
|
|
2048
|
-
else if ($ =
|
|
2040
|
+
else if ($ = T - 1, $ < g)
|
|
2049
2041
|
return d - 1;
|
|
2050
|
-
|
|
2042
|
+
T = _[d], _[d] = $ - r(
|
|
2051
2043
|
g,
|
|
2052
2044
|
$ - 1,
|
|
2053
2045
|
u,
|
|
@@ -2056,7 +2048,7 @@ function Ts() {
|
|
|
2056
2048
|
);
|
|
2057
2049
|
}
|
|
2058
2050
|
return O;
|
|
2059
|
-
}, "extendPathsR"), i = /* @__PURE__ */ c((y, g, u, h, b, _, O, d, E, $,
|
|
2051
|
+
}, "extendPathsR"), i = /* @__PURE__ */ c((y, g, u, h, b, _, O, d, E, $, T) => {
|
|
2060
2052
|
let R = h - g, J = u - g, L = b - h - J, z = -L - (y - 1), X = -L + (y - 1), V = e, M = y < d ? y : d;
|
|
2061
2053
|
for (let F = 0, D = -y; F <= M; F += 1, D += 2) {
|
|
2062
2054
|
let Z = F === 0 || F !== y && V < O[F], B = Z ? O[F] : V, K = Z ? B : B + 1, st = R + K - D, G = n(
|
|
@@ -2075,18 +2067,18 @@ function Ts() {
|
|
|
2075
2067
|
h,
|
|
2076
2068
|
Q,
|
|
2077
2069
|
_
|
|
2078
|
-
), it = B - q, dt = Q - q, at = it + 1,
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
aCommonFollowing = K + 1,
|
|
2082
|
-
let
|
|
2083
|
-
return
|
|
2084
|
-
|
|
2070
|
+
), it = B - q, dt = Q - q, at = it + 1, Tt = dt + 1;
|
|
2071
|
+
T.nChangePreceding = y - 1, y - 1 === at + Tt - g - h ? (T.aEndPreceding = g, T.bEndPreceding = h) : (T.aEndPreceding = at, T.bEndPreceding =
|
|
2072
|
+
Tt), T.nCommonPreceding = q, q !== 0 && (T.aCommonPreceding = at, T.bCommonPreceding = Tt), T.nCommonFollowing = G, G !== 0 && (T.
|
|
2073
|
+
aCommonFollowing = K + 1, T.bCommonFollowing = st + 1);
|
|
2074
|
+
let At = H + 1, Rt = st + G + 1;
|
|
2075
|
+
return T.nChangeFollowing = y - 1, y - 1 === u + b - At - Rt ? (T.aStartFollowing = u, T.bStartFollowing = b) : (T.aStartFollowing =
|
|
2076
|
+
At, T.bStartFollowing = Rt), !0;
|
|
2085
2077
|
}
|
|
2086
2078
|
}
|
|
2087
2079
|
}
|
|
2088
2080
|
return !1;
|
|
2089
|
-
}, "extendOverlappablePathsF"), a = /* @__PURE__ */ c((y, g, u, h, b, _, O, d, E, $,
|
|
2081
|
+
}, "extendOverlappablePathsF"), a = /* @__PURE__ */ c((y, g, u, h, b, _, O, d, E, $, T) => {
|
|
2090
2082
|
let R = b - u, J = u - g, L = b - h - J, z = L - y, X = L + y, V = e, M = y < $ ? y : $;
|
|
2091
2083
|
for (let F = 0, D = y; F <= M; F += 1, D -= 2) {
|
|
2092
2084
|
let Z = F === 0 || F !== y && E[F] < V, B = Z ? E[F] : V, K = Z ? B : B - 1, st = R + K - D, G = r(
|
|
@@ -2100,9 +2092,9 @@ function Ts() {
|
|
|
2100
2092
|
let ct = (y + (D - L)) / 2;
|
|
2101
2093
|
if (ct <= d && H - 1 <= O[ct]) {
|
|
2102
2094
|
let Q = st - G;
|
|
2103
|
-
if (
|
|
2104
|
-
Q),
|
|
2105
|
-
|
|
2095
|
+
if (T.nChangePreceding = y, y === H + Q - g - h ? (T.aEndPreceding = g, T.bEndPreceding = h) : (T.aEndPreceding = H, T.bEndPreceding =
|
|
2096
|
+
Q), T.nCommonPreceding = G, G !== 0 && (T.aCommonPreceding = H, T.bCommonPreceding = Q), T.nChangeFollowing = y - 1, y === 1)
|
|
2097
|
+
T.nCommonFollowing = 0, T.aStartFollowing = u, T.bStartFollowing = b;
|
|
2106
2098
|
else {
|
|
2107
2099
|
let q = R + B - (Z ? D - 1 : D + 1), it = n(
|
|
2108
2100
|
B,
|
|
@@ -2111,9 +2103,9 @@ function Ts() {
|
|
|
2111
2103
|
b,
|
|
2112
2104
|
_
|
|
2113
2105
|
);
|
|
2114
|
-
|
|
2106
|
+
T.nCommonFollowing = it, it !== 0 && (T.aCommonFollowing = B, T.bCommonFollowing = q);
|
|
2115
2107
|
let dt = B + it, at = q + it;
|
|
2116
|
-
y - 1 === u + b - dt - at ? (
|
|
2108
|
+
y - 1 === u + b - dt - at ? (T.aStartFollowing = u, T.bStartFollowing = b) : (T.aStartFollowing = dt, T.bStartFollowing = at);
|
|
2117
2109
|
}
|
|
2118
2110
|
return !0;
|
|
2119
2111
|
}
|
|
@@ -2121,12 +2113,12 @@ function Ts() {
|
|
|
2121
2113
|
}
|
|
2122
2114
|
return !1;
|
|
2123
2115
|
}, "extendOverlappablePathsR"), l = /* @__PURE__ */ c((y, g, u, h, b, _, O, d, E) => {
|
|
2124
|
-
let $ = h - g,
|
|
2116
|
+
let $ = h - g, T = b - u, R = u - g, J = b - h, et = J - R, L = R, z = R;
|
|
2125
2117
|
if (O[0] = g - 1, d[0] = u, et % 2 === 0) {
|
|
2126
2118
|
let X = (y || et) / 2, V = (R + J) / 2;
|
|
2127
2119
|
for (let M = 1; M <= V; M += 1)
|
|
2128
2120
|
if (L = o(M, u, b, $, _, O, L), M < X)
|
|
2129
|
-
z = s(M, g, h,
|
|
2121
|
+
z = s(M, g, h, T, _, d, z);
|
|
2130
2122
|
else if (
|
|
2131
2123
|
// If a reverse path overlaps a forward path in the same diagonal,
|
|
2132
2124
|
// return a division of the index intervals at the middle change.
|
|
@@ -2152,7 +2144,7 @@ function Ts() {
|
|
|
2152
2144
|
M - 1,
|
|
2153
2145
|
g,
|
|
2154
2146
|
h,
|
|
2155
|
-
|
|
2147
|
+
T,
|
|
2156
2148
|
_,
|
|
2157
2149
|
d,
|
|
2158
2150
|
z
|
|
@@ -2194,7 +2186,7 @@ function Ts() {
|
|
|
2194
2186
|
let st = g, G = u;
|
|
2195
2187
|
g = h, u = b, h = st, b = G;
|
|
2196
2188
|
}
|
|
2197
|
-
let { foundSubsequence:
|
|
2189
|
+
let { foundSubsequence: T, isCommon: R } = O[_ ? 1 : 0];
|
|
2198
2190
|
l(
|
|
2199
2191
|
y,
|
|
2200
2192
|
g,
|
|
@@ -2231,7 +2223,7 @@ function Ts() {
|
|
|
2231
2223
|
d,
|
|
2232
2224
|
E,
|
|
2233
2225
|
$
|
|
2234
|
-
), z !== 0 &&
|
|
2226
|
+
), z !== 0 && T(z, X, V), M !== 0 && T(M, F, D), B < u && K < b && m(
|
|
2235
2227
|
Z,
|
|
2236
2228
|
B,
|
|
2237
2229
|
u,
|
|
@@ -2265,8 +2257,8 @@ function Ts() {
|
|
|
2265
2257
|
O,
|
|
2266
2258
|
g - 1,
|
|
2267
2259
|
u
|
|
2268
|
-
), E = y - d, $ = g - d,
|
|
2269
|
-
y !==
|
|
2260
|
+
), E = y - d, $ = g - d, T = b + d;
|
|
2261
|
+
y !== T && g !== T && m(
|
|
2270
2262
|
0,
|
|
2271
2263
|
_,
|
|
2272
2264
|
E,
|
|
@@ -2300,25 +2292,25 @@ function Ts() {
|
|
|
2300
2292
|
}
|
|
2301
2293
|
return c(S, "diffSequence"), Ht;
|
|
2302
2294
|
}
|
|
2303
|
-
c(
|
|
2304
|
-
var
|
|
2305
|
-
function
|
|
2295
|
+
c(_s, "requireBuild");
|
|
2296
|
+
var Ts = _s(), Hn = /* @__PURE__ */ Rn(Ts);
|
|
2297
|
+
function Cs(t, e) {
|
|
2306
2298
|
return t.replace(/\s+$/, (n) => e(n));
|
|
2307
2299
|
}
|
|
2308
|
-
c(
|
|
2309
|
-
function
|
|
2300
|
+
c(Cs, "formatTrailingSpaces");
|
|
2301
|
+
function Re(t, e, n, r, o, s) {
|
|
2310
2302
|
return t.length !== 0 ? n(
|
|
2311
|
-
`${r} ${
|
|
2303
|
+
`${r} ${Cs(t, o)}`
|
|
2312
2304
|
) : r !== " " ? n(r) : e && s.length !== 0 ? n(`${r} ${s}`) : "";
|
|
2313
2305
|
}
|
|
2314
|
-
c(
|
|
2306
|
+
c(Re, "printDiffLine");
|
|
2315
2307
|
function Jn(t, e, {
|
|
2316
2308
|
aColor: n,
|
|
2317
2309
|
aIndicator: r,
|
|
2318
2310
|
changeLineTrailingSpaceColor: o,
|
|
2319
2311
|
emptyFirstOrLastLinePlaceholder: s
|
|
2320
2312
|
}) {
|
|
2321
|
-
return
|
|
2313
|
+
return Re(
|
|
2322
2314
|
t,
|
|
2323
2315
|
e,
|
|
2324
2316
|
n,
|
|
@@ -2334,7 +2326,7 @@ function Xn(t, e, {
|
|
|
2334
2326
|
changeLineTrailingSpaceColor: o,
|
|
2335
2327
|
emptyFirstOrLastLinePlaceholder: s
|
|
2336
2328
|
}) {
|
|
2337
|
-
return
|
|
2329
|
+
return Re(
|
|
2338
2330
|
t,
|
|
2339
2331
|
e,
|
|
2340
2332
|
n,
|
|
@@ -2350,7 +2342,7 @@ function Zn(t, e, {
|
|
|
2350
2342
|
commonLineTrailingSpaceColor: o,
|
|
2351
2343
|
emptyFirstOrLastLinePlaceholder: s
|
|
2352
2344
|
}) {
|
|
2353
|
-
return
|
|
2345
|
+
return Re(
|
|
2354
2346
|
t,
|
|
2355
2347
|
e,
|
|
2356
2348
|
n,
|
|
@@ -2366,7 +2358,7 @@ function Fn(t, e, n, r, { patchColor: o }) {
|
|
|
2366
2358
|
);
|
|
2367
2359
|
}
|
|
2368
2360
|
c(Fn, "createPatchMark");
|
|
2369
|
-
function
|
|
2361
|
+
function Os(t, e) {
|
|
2370
2362
|
let n = t.length, r = e.contextLines, o = r + r, s = n, i = !1, a = 0, l = 0;
|
|
2371
2363
|
for (; l !== n; ) {
|
|
2372
2364
|
let d = l;
|
|
@@ -2425,8 +2417,8 @@ function ws(t, e) {
|
|
|
2425
2417
|
h,
|
|
2426
2418
|
e
|
|
2427
2419
|
), S = f.length, f.push("");
|
|
2428
|
-
let
|
|
2429
|
-
y = u +
|
|
2420
|
+
let T = E - o;
|
|
2421
|
+
y = u + T, g = h + T, u = y, h = g;
|
|
2430
2422
|
for (let R = l - r; R !== l; R += 1)
|
|
2431
2423
|
b(t[R][1]);
|
|
2432
2424
|
} else
|
|
@@ -2441,8 +2433,8 @@ function ws(t, e) {
|
|
|
2441
2433
|
return m && (f[S] = Fn(y, u, g, h, e)), f.join(`
|
|
2442
2434
|
`);
|
|
2443
2435
|
}
|
|
2444
|
-
c(
|
|
2445
|
-
function
|
|
2436
|
+
c(Os, "joinAlignedDiffsNoExpand");
|
|
2437
|
+
function $s(t, e) {
|
|
2446
2438
|
return t.map((n, r, o) => {
|
|
2447
2439
|
let s = n[1], i = r === 0 || r === o.length - 1;
|
|
2448
2440
|
switch (n[0]) {
|
|
@@ -2456,9 +2448,9 @@ function As(t, e) {
|
|
|
2456
2448
|
}).join(`
|
|
2457
2449
|
`);
|
|
2458
2450
|
}
|
|
2459
|
-
c(
|
|
2460
|
-
var
|
|
2461
|
-
function
|
|
2451
|
+
c($s, "joinAlignedDiffsExpand");
|
|
2452
|
+
var Te = /* @__PURE__ */ c((t) => t, "noColor"), Qn = 5, ws = 0;
|
|
2453
|
+
function As() {
|
|
2462
2454
|
return {
|
|
2463
2455
|
aAnnotation: "Expected",
|
|
2464
2456
|
aColor: nt.green,
|
|
@@ -2467,10 +2459,10 @@ function Ns() {
|
|
|
2467
2459
|
bColor: nt.red,
|
|
2468
2460
|
bIndicator: "+",
|
|
2469
2461
|
changeColor: nt.inverse,
|
|
2470
|
-
changeLineTrailingSpaceColor:
|
|
2462
|
+
changeLineTrailingSpaceColor: Te,
|
|
2471
2463
|
commonColor: nt.dim,
|
|
2472
2464
|
commonIndicator: " ",
|
|
2473
|
-
commonLineTrailingSpaceColor:
|
|
2465
|
+
commonLineTrailingSpaceColor: Te,
|
|
2474
2466
|
compareKeys: void 0,
|
|
2475
2467
|
contextLines: Qn,
|
|
2476
2468
|
emptyFirstOrLastLinePlaceholder: "",
|
|
@@ -2479,26 +2471,26 @@ function Ns() {
|
|
|
2479
2471
|
omitAnnotationLines: !1,
|
|
2480
2472
|
patchColor: nt.yellow,
|
|
2481
2473
|
printBasicPrototype: !1,
|
|
2482
|
-
truncateThreshold:
|
|
2474
|
+
truncateThreshold: ws,
|
|
2483
2475
|
truncateAnnotation: "... Diff result is truncated",
|
|
2484
|
-
truncateAnnotationColor:
|
|
2476
|
+
truncateAnnotationColor: Te
|
|
2485
2477
|
};
|
|
2486
2478
|
}
|
|
2487
|
-
c(
|
|
2488
|
-
function
|
|
2479
|
+
c(As, "getDefaultOptions");
|
|
2480
|
+
function Rs(t) {
|
|
2489
2481
|
return t && typeof t == "function" ? t : void 0;
|
|
2490
2482
|
}
|
|
2491
|
-
c(
|
|
2492
|
-
function
|
|
2483
|
+
c(Rs, "getCompareKeys");
|
|
2484
|
+
function Ns(t) {
|
|
2493
2485
|
return typeof t == "number" && Number.isSafeInteger(t) && t >= 0 ? t : Qn;
|
|
2494
2486
|
}
|
|
2495
|
-
c(
|
|
2487
|
+
c(Ns, "getContextLines");
|
|
2496
2488
|
function ht(t = {}) {
|
|
2497
2489
|
return {
|
|
2498
|
-
...
|
|
2490
|
+
...As(),
|
|
2499
2491
|
...t,
|
|
2500
|
-
compareKeys:
|
|
2501
|
-
contextLines:
|
|
2492
|
+
compareKeys: Rs(t.compareKeys),
|
|
2493
|
+
contextLines: Ns(t.contextLines)
|
|
2502
2494
|
};
|
|
2503
2495
|
}
|
|
2504
2496
|
c(ht, "normalizeDiffOptions");
|
|
@@ -2506,7 +2498,7 @@ function Et(t) {
|
|
|
2506
2498
|
return t.length === 1 && t[0].length === 0;
|
|
2507
2499
|
}
|
|
2508
2500
|
c(Et, "isEmptyString");
|
|
2509
|
-
function
|
|
2501
|
+
function Ps(t) {
|
|
2510
2502
|
let e = 0, n = 0;
|
|
2511
2503
|
return t.forEach((r) => {
|
|
2512
2504
|
switch (r[0]) {
|
|
@@ -2519,8 +2511,8 @@ function Ms(t) {
|
|
|
2519
2511
|
}
|
|
2520
2512
|
}), { a: e, b: n };
|
|
2521
2513
|
}
|
|
2522
|
-
c(
|
|
2523
|
-
function
|
|
2514
|
+
c(Ps, "countChanges");
|
|
2515
|
+
function Is({
|
|
2524
2516
|
aAnnotation: t,
|
|
2525
2517
|
aColor: e,
|
|
2526
2518
|
aIndicator: n,
|
|
@@ -2544,22 +2536,22 @@ ${o(S)}
|
|
|
2544
2536
|
|
|
2545
2537
|
`;
|
|
2546
2538
|
}
|
|
2547
|
-
c(
|
|
2548
|
-
function
|
|
2549
|
-
return
|
|
2539
|
+
c(Is, "printAnnotation");
|
|
2540
|
+
function Ne(t, e, n) {
|
|
2541
|
+
return Is(n, Ps(t)) + (n.expand ? $s(t, n) : Os(t, n)) + (e ? n.truncateAnnotationColor(`
|
|
2550
2542
|
${n.truncateAnnotation}`) : "");
|
|
2551
2543
|
}
|
|
2552
|
-
c(
|
|
2544
|
+
c(Ne, "printDiffLines");
|
|
2553
2545
|
function Xt(t, e, n) {
|
|
2554
2546
|
let r = ht(n), [o, s] = vn(
|
|
2555
2547
|
Et(t) ? [] : t,
|
|
2556
2548
|
Et(e) ? [] : e,
|
|
2557
2549
|
r
|
|
2558
2550
|
);
|
|
2559
|
-
return
|
|
2551
|
+
return Ne(o, s, r);
|
|
2560
2552
|
}
|
|
2561
2553
|
c(Xt, "diffLinesUnified");
|
|
2562
|
-
function
|
|
2554
|
+
function Ms(t, e, n, r, o) {
|
|
2563
2555
|
if (Et(t) && Et(n) && (t = [], n = []), Et(e) && Et(r) && (e = [], r = []), t.length !== n.length || e.length !== r.length)
|
|
2564
2556
|
return Xt(t, e, o);
|
|
2565
2557
|
let [s, i] = vn(
|
|
@@ -2578,9 +2570,9 @@ function xs(t, e, n, r, o) {
|
|
|
2578
2570
|
default:
|
|
2579
2571
|
m[1] = e[l], a += 1, l += 1;
|
|
2580
2572
|
}
|
|
2581
|
-
}),
|
|
2573
|
+
}), Ne(s, i, ht(o));
|
|
2582
2574
|
}
|
|
2583
|
-
c(
|
|
2575
|
+
c(Ms, "diffLinesUnified2");
|
|
2584
2576
|
function vn(t, e, n) {
|
|
2585
2577
|
let r = n?.truncateThreshold ?? !1, o = Math.max(
|
|
2586
2578
|
Math.floor(n?.truncateThreshold ?? 0),
|
|
@@ -2642,7 +2634,7 @@ function jn(t) {
|
|
|
2642
2634
|
`;
|
|
2643
2635
|
}
|
|
2644
2636
|
c(jn, "getNewLineSymbol");
|
|
2645
|
-
function
|
|
2637
|
+
function Ls(t, e, n) {
|
|
2646
2638
|
let r = n?.truncateThreshold ?? !1, o = Math.max(
|
|
2647
2639
|
Math.floor(n?.truncateThreshold ?? 0),
|
|
2648
2640
|
0
|
|
@@ -2661,14 +2653,14 @@ function Fs(t, e, n) {
|
|
|
2661
2653
|
p)));
|
|
2662
2654
|
}, "foundSubsequence")), m !== s && f.push(new I(U, t.slice(m))), p !== i && f.push(new I(k, e.slice(p))), [f, a];
|
|
2663
2655
|
}
|
|
2664
|
-
c(
|
|
2665
|
-
function
|
|
2656
|
+
c(Ls, "diffStrings");
|
|
2657
|
+
function xs(t, e, n) {
|
|
2666
2658
|
return e.reduce(
|
|
2667
2659
|
(r, o) => r + (o[0] === x ? o[1] : o[0] === t && o[1].length !== 0 ? n(o[1]) : ""),
|
|
2668
2660
|
""
|
|
2669
2661
|
);
|
|
2670
2662
|
}
|
|
2671
|
-
c(
|
|
2663
|
+
c(xs, "concatenateRelevantDiffs");
|
|
2672
2664
|
var Jt = class {
|
|
2673
2665
|
static {
|
|
2674
2666
|
c(this, "ChangeBuffer");
|
|
@@ -2689,7 +2681,7 @@ var Jt = class {
|
|
|
2689
2681
|
this.lines.push(
|
|
2690
2682
|
this.line.length !== 1 ? new I(
|
|
2691
2683
|
this.op,
|
|
2692
|
-
|
|
2684
|
+
xs(this.op, this.line, this.changeColor)
|
|
2693
2685
|
) : this.line[0][0] === this.op ? this.line[0] : new I(this.op, this.line[0][1])
|
|
2694
2686
|
// was common diff
|
|
2695
2687
|
), this.line.length = 0;
|
|
@@ -2718,7 +2710,7 @@ var Jt = class {
|
|
|
2718
2710
|
moveLinesTo(e) {
|
|
2719
2711
|
this.isLineEmpty() || this.pushLine(), e.push(...this.lines), this.lines.length = 0;
|
|
2720
2712
|
}
|
|
2721
|
-
},
|
|
2713
|
+
}, Oe = class {
|
|
2722
2714
|
static {
|
|
2723
2715
|
c(this, "CommonBuffer");
|
|
2724
2716
|
}
|
|
@@ -2761,8 +2753,8 @@ var Jt = class {
|
|
|
2761
2753
|
return this.flushChangeLines(), this.lines;
|
|
2762
2754
|
}
|
|
2763
2755
|
};
|
|
2764
|
-
function
|
|
2765
|
-
let n = new Jt(U, e), r = new Jt(k, e), o = new
|
|
2756
|
+
function Fs(t, e) {
|
|
2757
|
+
let n = new Jt(U, e), r = new Jt(k, e), o = new Oe(n, r);
|
|
2766
2758
|
return t.forEach((s) => {
|
|
2767
2759
|
switch (s[0]) {
|
|
2768
2760
|
case U:
|
|
@@ -2776,8 +2768,8 @@ function js(t, e) {
|
|
|
2776
2768
|
}
|
|
2777
2769
|
}), o.getLines();
|
|
2778
2770
|
}
|
|
2779
|
-
c(
|
|
2780
|
-
function
|
|
2771
|
+
c(Fs, "getAlignedDiffs");
|
|
2772
|
+
function Ds(t, e) {
|
|
2781
2773
|
if (e) {
|
|
2782
2774
|
let n = t.length - 1;
|
|
2783
2775
|
return t.some(
|
|
@@ -2787,8 +2779,8 @@ function Bs(t, e) {
|
|
|
2787
2779
|
}
|
|
2788
2780
|
return t.some((n) => n[0] === x);
|
|
2789
2781
|
}
|
|
2790
|
-
c(
|
|
2791
|
-
function
|
|
2782
|
+
c(Ds, "hasCommonDiff");
|
|
2783
|
+
function js(t, e, n) {
|
|
2792
2784
|
if (t !== e && t.length !== 0 && e.length !== 0) {
|
|
2793
2785
|
let r = t.includes(`
|
|
2794
2786
|
`) || e.includes(`
|
|
@@ -2801,49 +2793,49 @@ function ks(t, e, n) {
|
|
|
2801
2793
|
// cleanupSemantic
|
|
2802
2794
|
n
|
|
2803
2795
|
);
|
|
2804
|
-
if (
|
|
2805
|
-
let i = ht(n), a =
|
|
2806
|
-
return
|
|
2796
|
+
if (Ds(o, r)) {
|
|
2797
|
+
let i = ht(n), a = Fs(o, i.changeColor);
|
|
2798
|
+
return Ne(a, s, i);
|
|
2807
2799
|
}
|
|
2808
2800
|
}
|
|
2809
2801
|
return Xt(t.split(`
|
|
2810
2802
|
`), e.split(`
|
|
2811
2803
|
`), n);
|
|
2812
2804
|
}
|
|
2813
|
-
c(
|
|
2805
|
+
c(js, "diffStringsUnified");
|
|
2814
2806
|
function tr(t, e, n, r) {
|
|
2815
|
-
let [o, s] =
|
|
2816
|
-
return n &&
|
|
2807
|
+
let [o, s] = Ls(t, e, r);
|
|
2808
|
+
return n && ys(o), [o, s];
|
|
2817
2809
|
}
|
|
2818
2810
|
c(tr, "diffStringsRaw");
|
|
2819
|
-
function
|
|
2811
|
+
function $e(t, e) {
|
|
2820
2812
|
let { commonColor: n } = ht(e);
|
|
2821
2813
|
return n(t);
|
|
2822
2814
|
}
|
|
2823
|
-
c(
|
|
2815
|
+
c($e, "getCommonMessage");
|
|
2824
2816
|
var {
|
|
2825
|
-
AsymmetricMatcher:
|
|
2826
|
-
DOMCollection:
|
|
2827
|
-
DOMElement:
|
|
2828
|
-
Immutable:
|
|
2829
|
-
ReactElement:
|
|
2830
|
-
ReactTestComponent:
|
|
2831
|
-
} =
|
|
2832
|
-
qs,
|
|
2833
|
-
Vs,
|
|
2834
|
-
Us,
|
|
2835
|
-
Ys,
|
|
2817
|
+
AsymmetricMatcher: Bs,
|
|
2818
|
+
DOMCollection: ks,
|
|
2819
|
+
DOMElement: zs,
|
|
2820
|
+
Immutable: Ys,
|
|
2821
|
+
ReactElement: Us,
|
|
2822
|
+
ReactTestComponent: Ws
|
|
2823
|
+
} = $t, er = [
|
|
2836
2824
|
Ws,
|
|
2825
|
+
Us,
|
|
2837
2826
|
zs,
|
|
2838
|
-
|
|
2839
|
-
|
|
2827
|
+
ks,
|
|
2828
|
+
Ys,
|
|
2829
|
+
Bs,
|
|
2830
|
+
$t.Error
|
|
2831
|
+
], we = {
|
|
2840
2832
|
plugins: er
|
|
2841
2833
|
}, nr = {
|
|
2842
2834
|
callToJSON: !1,
|
|
2843
2835
|
maxDepth: 8,
|
|
2844
2836
|
plugins: er
|
|
2845
2837
|
};
|
|
2846
|
-
function
|
|
2838
|
+
function Vs(t, e, n) {
|
|
2847
2839
|
if (Object.is(t, e))
|
|
2848
2840
|
return "";
|
|
2849
2841
|
let r = Dn(t), o = r, s = !1;
|
|
@@ -2855,7 +2847,7 @@ function Ks(t, e, n) {
|
|
|
2855
2847
|
if (o !== Dn(e)) {
|
|
2856
2848
|
let i = /* @__PURE__ */ c(function(O) {
|
|
2857
2849
|
return O.length <= h ? O : `${O.slice(0, h)}...`;
|
|
2858
|
-
}, "truncate2"), { aAnnotation: a, aColor: l, aIndicator: m, bAnnotation: p, bColor: f, bIndicator: S } = ht(n), y =
|
|
2850
|
+
}, "truncate2"), { aAnnotation: a, aColor: l, aIndicator: m, bAnnotation: p, bColor: f, bIndicator: S } = ht(n), y = Ae(nr, n), g = v(t,
|
|
2859
2851
|
y), u = v(e, y), h = 1e5;
|
|
2860
2852
|
g = i(g), u = i(u);
|
|
2861
2853
|
let b = `${l(`${m} ${a}:`)}
|
|
@@ -2873,7 +2865,7 @@ ${_}`;
|
|
|
2873
2865
|
`), n);
|
|
2874
2866
|
case "boolean":
|
|
2875
2867
|
case "number":
|
|
2876
|
-
return
|
|
2868
|
+
return qs(t, e, n);
|
|
2877
2869
|
case "map":
|
|
2878
2870
|
return Ce(Bn(t), Bn(e), n);
|
|
2879
2871
|
case "set":
|
|
@@ -2882,14 +2874,14 @@ ${_}`;
|
|
|
2882
2874
|
return Ce(t, e, n);
|
|
2883
2875
|
}
|
|
2884
2876
|
}
|
|
2885
|
-
c(
|
|
2886
|
-
function
|
|
2887
|
-
let r = v(t,
|
|
2877
|
+
c(Vs, "diff");
|
|
2878
|
+
function qs(t, e, n) {
|
|
2879
|
+
let r = v(t, we), o = v(e, we);
|
|
2888
2880
|
return r === o ? "" : Xt(r.split(`
|
|
2889
2881
|
`), o.split(`
|
|
2890
2882
|
`), n);
|
|
2891
2883
|
}
|
|
2892
|
-
c(
|
|
2884
|
+
c(qs, "comparePrimitive");
|
|
2893
2885
|
function Bn(t) {
|
|
2894
2886
|
return new Map(Array.from(t.entries()).sort());
|
|
2895
2887
|
}
|
|
@@ -2901,16 +2893,16 @@ c(kn, "sortSet");
|
|
|
2901
2893
|
function Ce(t, e, n) {
|
|
2902
2894
|
let r, o = !1;
|
|
2903
2895
|
try {
|
|
2904
|
-
let i = we
|
|
2896
|
+
let i = Ae(we, n);
|
|
2905
2897
|
r = zn(t, e, i, n);
|
|
2906
2898
|
} catch {
|
|
2907
2899
|
o = !0;
|
|
2908
2900
|
}
|
|
2909
|
-
let s =
|
|
2901
|
+
let s = $e(Gn, n);
|
|
2910
2902
|
if (r === void 0 || r === s) {
|
|
2911
|
-
let i =
|
|
2912
|
-
r = zn(t, e, i, n), r !== s && !o && (r = `${
|
|
2913
|
-
|
|
2903
|
+
let i = Ae(nr, n);
|
|
2904
|
+
r = zn(t, e, i, n), r !== s && !o && (r = `${$e(
|
|
2905
|
+
Es,
|
|
2914
2906
|
n
|
|
2915
2907
|
)}
|
|
2916
2908
|
|
|
@@ -2919,7 +2911,7 @@ ${r}`);
|
|
|
2919
2911
|
return r;
|
|
2920
2912
|
}
|
|
2921
2913
|
c(Ce, "compareObjects");
|
|
2922
|
-
function
|
|
2914
|
+
function Ae(t, e) {
|
|
2923
2915
|
let { compareKeys: n, printBasicPrototype: r } = ht(e);
|
|
2924
2916
|
return {
|
|
2925
2917
|
...t,
|
|
@@ -2927,14 +2919,14 @@ function we(t, e) {
|
|
|
2927
2919
|
printBasicPrototype: r
|
|
2928
2920
|
};
|
|
2929
2921
|
}
|
|
2930
|
-
c(
|
|
2922
|
+
c(Ae, "getFormatOptions");
|
|
2931
2923
|
function zn(t, e, n, r) {
|
|
2932
2924
|
let o = { ...n, indent: 0 }, s = v(t, o), i = v(e, o);
|
|
2933
2925
|
if (s === i)
|
|
2934
|
-
return
|
|
2926
|
+
return $e(Gn, r);
|
|
2935
2927
|
{
|
|
2936
2928
|
let a = v(t, n), l = v(e, n);
|
|
2937
|
-
return
|
|
2929
|
+
return Ms(
|
|
2938
2930
|
a.split(`
|
|
2939
2931
|
`),
|
|
2940
2932
|
l.split(`
|
|
@@ -2964,24 +2956,24 @@ function rr(t, e, n) {
|
|
|
2964
2956
|
if (e.includes(`
|
|
2965
2957
|
`) || t.includes(`
|
|
2966
2958
|
`))
|
|
2967
|
-
return
|
|
2968
|
-
let [p] = tr(e, t, !0), f = p.some((u) => u[0] === x), S =
|
|
2959
|
+
return js(e, t, n);
|
|
2960
|
+
let [p] = tr(e, t, !0), f = p.some((u) => u[0] === x), S = Ks(r, o), y = S(r) + Js(
|
|
2969
2961
|
Vn(p, U, f)
|
|
2970
|
-
), g = S(o) +
|
|
2962
|
+
), g = S(o) + Hs(
|
|
2971
2963
|
Vn(p, k, f)
|
|
2972
2964
|
);
|
|
2973
2965
|
return `${y}
|
|
2974
2966
|
${g}`;
|
|
2975
2967
|
}
|
|
2976
|
-
let s =
|
|
2977
|
-
return
|
|
2968
|
+
let s = _e(e, { forceWritable: !0 }), i = _e(t, { forceWritable: !0 }), { replacedExpected: a, replacedActual: l } = or(i, s);
|
|
2969
|
+
return Vs(a, l, n);
|
|
2978
2970
|
}
|
|
2979
2971
|
c(rr, "printDiffOrStringify");
|
|
2980
2972
|
function or(t, e, n = /* @__PURE__ */ new WeakSet(), r = /* @__PURE__ */ new WeakSet()) {
|
|
2981
2973
|
return t instanceof Error && e instanceof Error && typeof t.cause < "u" && typeof e.cause > "u" ? (delete t.cause, {
|
|
2982
2974
|
replacedActual: t,
|
|
2983
2975
|
replacedExpected: e
|
|
2984
|
-
}) : Wn(t, e) ? n.has(t) || r.has(e) ? { replacedActual: t, replacedExpected: e } : (n.add(t), r.add(e),
|
|
2976
|
+
}) : Wn(t, e) ? n.has(t) || r.has(e) ? { replacedActual: t, replacedExpected: e } : (n.add(t), r.add(e), Ee(e).forEach((o) => {
|
|
2985
2977
|
let s = e[o], i = t[o];
|
|
2986
2978
|
if (Un(s))
|
|
2987
2979
|
s.asymmetricMatch(i) && (t[o] = s);
|
|
@@ -3002,27 +2994,27 @@ function or(t, e, n = /* @__PURE__ */ new WeakSet(), r = /* @__PURE__ */ new Wea
|
|
|
3002
2994
|
}) : { replacedActual: t, replacedExpected: e };
|
|
3003
2995
|
}
|
|
3004
2996
|
c(or, "replaceAsymmetricMatcher");
|
|
3005
|
-
function
|
|
2997
|
+
function Ks(...t) {
|
|
3006
2998
|
let e = t.reduce(
|
|
3007
2999
|
(n, r) => r.length > n ? r.length : n,
|
|
3008
3000
|
0
|
|
3009
3001
|
);
|
|
3010
3002
|
return (n) => `${n}: ${" ".repeat(e - n.length)}`;
|
|
3011
3003
|
}
|
|
3012
|
-
c(
|
|
3013
|
-
var
|
|
3004
|
+
c(Ks, "getLabelPrinter");
|
|
3005
|
+
var Gs = "\xB7";
|
|
3014
3006
|
function sr(t) {
|
|
3015
|
-
return t.replace(/\s+$/gm, (e) =>
|
|
3007
|
+
return t.replace(/\s+$/gm, (e) => Gs.repeat(e.length));
|
|
3016
3008
|
}
|
|
3017
3009
|
c(sr, "replaceTrailingSpaces");
|
|
3018
|
-
function
|
|
3010
|
+
function Hs(t) {
|
|
3019
3011
|
return nt.red(sr(gt(t)));
|
|
3020
3012
|
}
|
|
3021
|
-
c(
|
|
3022
|
-
function
|
|
3013
|
+
c(Hs, "printReceived");
|
|
3014
|
+
function Js(t) {
|
|
3023
3015
|
return nt.green(sr(gt(t)));
|
|
3024
3016
|
}
|
|
3025
|
-
c(
|
|
3017
|
+
c(Js, "printExpected");
|
|
3026
3018
|
function Vn(t, e, n) {
|
|
3027
3019
|
return t.reduce(
|
|
3028
3020
|
(r, o) => r + (o[0] === x ? o[1] : o[0] === e ? n ? nt.inverse(o[1]) : o[1] : ""),
|
|
@@ -3032,12 +3024,12 @@ function Vn(t, e, n) {
|
|
|
3032
3024
|
c(Vn, "getCommonAndChangedSubstrings");
|
|
3033
3025
|
|
|
3034
3026
|
// ../node_modules/@vitest/utils/dist/error.js
|
|
3035
|
-
var
|
|
3036
|
-
function
|
|
3037
|
-
return t && (t[
|
|
3027
|
+
var Xs = "@@__IMMUTABLE_RECORD__@@", Zs = "@@__IMMUTABLE_ITERABLE__@@";
|
|
3028
|
+
function Qs(t) {
|
|
3029
|
+
return t && (t[Zs] || t[Xs]);
|
|
3038
3030
|
}
|
|
3039
|
-
c(
|
|
3040
|
-
var
|
|
3031
|
+
c(Qs, "isImmutable");
|
|
3032
|
+
var vs = Object.getPrototypeOf({});
|
|
3041
3033
|
function ir(t) {
|
|
3042
3034
|
return t instanceof Error ? `<unserializable>: ${t.message}` : typeof t == "string" ? `<unserializable>: ${t}` : "<unserializable>";
|
|
3043
3035
|
}
|
|
@@ -3051,7 +3043,7 @@ function _t(t, e = /* @__PURE__ */ new WeakMap()) {
|
|
|
3051
3043
|
return t.toString();
|
|
3052
3044
|
if (typeof t != "object")
|
|
3053
3045
|
return t;
|
|
3054
|
-
if (
|
|
3046
|
+
if (Qs(t))
|
|
3055
3047
|
return _t(t.toJSON(), e);
|
|
3056
3048
|
if (t instanceof Promise || t.constructor && t.constructor.prototype === "AsyncFunction")
|
|
3057
3049
|
return "Promise";
|
|
@@ -3076,7 +3068,7 @@ function _t(t, e = /* @__PURE__ */ new WeakMap()) {
|
|
|
3076
3068
|
let n = /* @__PURE__ */ Object.create(null);
|
|
3077
3069
|
e.set(t, n);
|
|
3078
3070
|
let r = t;
|
|
3079
|
-
for (; r && r !==
|
|
3071
|
+
for (; r && r !== vs; )
|
|
3080
3072
|
Object.getOwnPropertyNames(r).forEach((o) => {
|
|
3081
3073
|
if (!(o in n))
|
|
3082
3074
|
try {
|
|
@@ -3089,11 +3081,11 @@ function _t(t, e = /* @__PURE__ */ new WeakMap()) {
|
|
|
3089
3081
|
}
|
|
3090
3082
|
}
|
|
3091
3083
|
c(_t, "serializeValue");
|
|
3092
|
-
function
|
|
3084
|
+
function ti(t) {
|
|
3093
3085
|
return t.replace(/__(vite_ssr_import|vi_import)_\d+__\./g, "");
|
|
3094
3086
|
}
|
|
3095
|
-
c(
|
|
3096
|
-
function
|
|
3087
|
+
c(ti, "normalizeErrorMessage");
|
|
3088
|
+
function Pe(t, e, n = /* @__PURE__ */ new WeakSet()) {
|
|
3097
3089
|
if (!t || typeof t != "object")
|
|
3098
3090
|
return { message: String(t) };
|
|
3099
3091
|
let r = t;
|
|
@@ -3103,11 +3095,11 @@ function Ne(t, e, n = /* @__PURE__ */ new WeakSet()) {
|
|
|
3103
3095
|
...r.diffOptions
|
|
3104
3096
|
})), typeof r.expected != "string" && (r.expected = gt(r.expected, 10)), typeof r.actual != "string" && (r.actual = gt(r.actual, 10));
|
|
3105
3097
|
try {
|
|
3106
|
-
typeof r.message == "string" && (r.message =
|
|
3098
|
+
typeof r.message == "string" && (r.message = ti(r.message));
|
|
3107
3099
|
} catch {
|
|
3108
3100
|
}
|
|
3109
3101
|
try {
|
|
3110
|
-
!n.has(r) && typeof r.cause == "object" && (n.add(r), r.cause =
|
|
3102
|
+
!n.has(r) && typeof r.cause == "object" && (n.add(r), r.cause = Pe(r.cause, e, n));
|
|
3111
3103
|
} catch {
|
|
3112
3104
|
}
|
|
3113
3105
|
try {
|
|
@@ -3121,7 +3113,7 @@ Inner error message: ${r?.message}`
|
|
|
3121
3113
|
);
|
|
3122
3114
|
}
|
|
3123
3115
|
}
|
|
3124
|
-
c(
|
|
3116
|
+
c(Pe, "processError");
|
|
3125
3117
|
|
|
3126
3118
|
// src/instrumenter/EVENTS.ts
|
|
3127
3119
|
var tt = {
|
|
@@ -3134,6 +3126,9 @@ var tt = {
|
|
|
3134
3126
|
END: "storybook/instrumenter/end"
|
|
3135
3127
|
};
|
|
3136
3128
|
|
|
3129
|
+
// src/instrumenter/preview-api.ts
|
|
3130
|
+
var Zt = globalThis.__STORYBOOK_ADDONS_PREVIEW;
|
|
3131
|
+
|
|
3137
3132
|
// src/instrumenter/types.ts
|
|
3138
3133
|
var cr = /* @__PURE__ */ ((o) => (o.DONE = "done", o.ERROR = "error", o.ACTIVE = "active", o.WAITING = "waiting", o))(cr || {});
|
|
3139
3134
|
|
|
@@ -3144,23 +3139,23 @@ var ur = {
|
|
|
3144
3139
|
goto: !1,
|
|
3145
3140
|
next: !1,
|
|
3146
3141
|
end: !1
|
|
3147
|
-
},
|
|
3142
|
+
}, ei = new Error(
|
|
3148
3143
|
"This function ran after the play function completed. Did you forget to `await` it?"
|
|
3149
|
-
), lr = /* @__PURE__ */ c((t) => Object.prototype.toString.call(t) === "[object Object]", "isObject"),
|
|
3150
|
-
prototype.toString.call(t) === "[object Module]", "isModule"),
|
|
3151
|
-
if (!lr(t) && !
|
|
3144
|
+
), lr = /* @__PURE__ */ c((t) => Object.prototype.toString.call(t) === "[object Object]", "isObject"), ni = /* @__PURE__ */ c((t) => Object.
|
|
3145
|
+
prototype.toString.call(t) === "[object Module]", "isModule"), ri = /* @__PURE__ */ c((t) => {
|
|
3146
|
+
if (!lr(t) && !ni(t))
|
|
3152
3147
|
return !1;
|
|
3153
3148
|
if (t.constructor === void 0)
|
|
3154
3149
|
return !0;
|
|
3155
3150
|
let e = t.constructor.prototype;
|
|
3156
3151
|
return !!lr(e);
|
|
3157
|
-
}, "isInstrumentable"),
|
|
3152
|
+
}, "isInstrumentable"), oi = /* @__PURE__ */ c((t) => {
|
|
3158
3153
|
try {
|
|
3159
3154
|
return new t.constructor();
|
|
3160
3155
|
} catch {
|
|
3161
3156
|
return {};
|
|
3162
3157
|
}
|
|
3163
|
-
}, "construct"),
|
|
3158
|
+
}, "construct"), Ie = /* @__PURE__ */ c(() => ({
|
|
3164
3159
|
renderPhase: void 0,
|
|
3165
3160
|
isDebugging: !1,
|
|
3166
3161
|
isPlaying: !1,
|
|
@@ -3182,7 +3177,7 @@ prototype.toString.call(t) === "[object Module]", "isModule"), si = /* @__PURE__
|
|
|
3182
3177
|
Array.from(t.callRefsByResult.entries()).filter(([, o]) => o.retain)
|
|
3183
3178
|
);
|
|
3184
3179
|
return { cursor: n.length, calls: n, callRefsByResult: r };
|
|
3185
|
-
}, "getRetainedState"),
|
|
3180
|
+
}, "getRetainedState"), Me = class {
|
|
3186
3181
|
constructor() {
|
|
3187
3182
|
this.initialized = !1;
|
|
3188
3183
|
this.state = W.global.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ || {};
|
|
@@ -3193,7 +3188,7 @@ prototype.toString.call(t) === "[object Module]", "isModule"), si = /* @__PURE__
|
|
|
3193
3188
|
}) => {
|
|
3194
3189
|
let f = this.getState(l);
|
|
3195
3190
|
this.setState(l, {
|
|
3196
|
-
...
|
|
3191
|
+
...Ie(),
|
|
3197
3192
|
...ar(f, p),
|
|
3198
3193
|
shadowCalls: p ? f.shadowCalls : [],
|
|
3199
3194
|
chainedCallIds: p ? f.chainedCallIds : /* @__PURE__ */ new Set(),
|
|
@@ -3249,21 +3244,19 @@ prototype.toString.call(t) === "[object Module]", "isModule"), si = /* @__PURE__
|
|
|
3249
3244
|
isPlaying: !1
|
|
3250
3245
|
});
|
|
3251
3246
|
}, "renderPhaseChanged");
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
this.channel.on(tt.NEXT, s(this.channel)), this.channel.on(tt.END, i);
|
|
3259
|
-
});
|
|
3247
|
+
Zt && Zt.ready().then(() => {
|
|
3248
|
+
this.channel = Zt.getChannel(), this.channel.on(yt.FORCE_REMOUNT, e), this.channel.on(yt.STORY_RENDER_PHASE_CHANGED, a), this.channel.
|
|
3249
|
+
on(yt.SET_CURRENT_STORY, () => {
|
|
3250
|
+
this.initialized ? this.cleanup() : this.initialized = !0;
|
|
3251
|
+
}), this.channel.on(tt.START, n(this.channel)), this.channel.on(tt.BACK, r(this.channel)), this.channel.on(tt.GOTO, o(this.channel)), this.
|
|
3252
|
+
channel.on(tt.NEXT, s(this.channel)), this.channel.on(tt.END, i);
|
|
3260
3253
|
});
|
|
3261
3254
|
}
|
|
3262
3255
|
static {
|
|
3263
3256
|
c(this, "Instrumenter");
|
|
3264
3257
|
}
|
|
3265
3258
|
getState(e) {
|
|
3266
|
-
return this.state[e] ||
|
|
3259
|
+
return this.state[e] || Ie();
|
|
3267
3260
|
}
|
|
3268
3261
|
setState(e, n) {
|
|
3269
3262
|
let r = this.getState(e), o = typeof n == "function" ? n(r) : n;
|
|
@@ -3274,7 +3267,7 @@ prototype.toString.call(t) === "[object Module]", "isModule"), si = /* @__PURE__
|
|
|
3274
3267
|
this.state = Object.entries(this.state).reduce(
|
|
3275
3268
|
(n, [r, o]) => {
|
|
3276
3269
|
let s = ar(o);
|
|
3277
|
-
return s && (n[r] = Object.assign(
|
|
3270
|
+
return s && (n[r] = Object.assign(Ie(), s)), n;
|
|
3278
3271
|
},
|
|
3279
3272
|
{}
|
|
3280
3273
|
);
|
|
@@ -3299,12 +3292,12 @@ prototype.toString.call(t) === "[object Module]", "isModule"), si = /* @__PURE__
|
|
|
3299
3292
|
// Returns the original object, or a new object with the same constructor,
|
|
3300
3293
|
// depending on whether it should mutate.
|
|
3301
3294
|
instrument(e, n, r = 0) {
|
|
3302
|
-
if (!
|
|
3295
|
+
if (!ri(e))
|
|
3303
3296
|
return e;
|
|
3304
3297
|
let { mutate: o = !1, path: s = [] } = n, i = n.getKeys ? n.getKeys(e, r) : Object.keys(e);
|
|
3305
3298
|
return r += 1, i.reduce(
|
|
3306
3299
|
(a, l) => {
|
|
3307
|
-
let m =
|
|
3300
|
+
let m = si(e, l);
|
|
3308
3301
|
if (typeof m?.get == "function") {
|
|
3309
3302
|
if (m.configurable) {
|
|
3310
3303
|
let f = /* @__PURE__ */ c(() => m?.get?.bind(e)?.(), "getter");
|
|
@@ -3322,7 +3315,7 @@ prototype.toString.call(t) === "[object Module]", "isModule"), si = /* @__PURE__
|
|
|
3322
3315
|
this.instrument({ ...p }, { ...n, path: s.concat(l) }, r)
|
|
3323
3316
|
), a);
|
|
3324
3317
|
},
|
|
3325
|
-
o ? e :
|
|
3318
|
+
o ? e : oi(e)
|
|
3326
3319
|
);
|
|
3327
3320
|
}
|
|
3328
3321
|
// Monkey patch an object method to record calls.
|
|
@@ -3395,7 +3388,7 @@ prototype.toString.call(t) === "[object Module]", "isModule"), si = /* @__PURE__
|
|
|
3395
3388
|
diff: b = void 0,
|
|
3396
3389
|
actual: _ = void 0,
|
|
3397
3390
|
expected: O = void 0
|
|
3398
|
-
} = f.name === "AssertionError" ?
|
|
3391
|
+
} = f.name === "AssertionError" ? Pe(f) : f, d = { name: S, message: y, stack: g, callId: u, showDiff: h, diff: b, actual: _, expected: O };
|
|
3399
3392
|
if (this.update({ ...m, status: "error", exception: d }), this.setState(r.storyId, (E) => ({
|
|
3400
3393
|
callRefsByResult: new Map([
|
|
3401
3394
|
...Array.from(E.callRefsByResult.entries()),
|
|
@@ -3408,8 +3401,8 @@ prototype.toString.call(t) === "[object Module]", "isModule"), si = /* @__PURE__
|
|
|
3408
3401
|
}, "handleException");
|
|
3409
3402
|
try {
|
|
3410
3403
|
if (i === "played" && !r.retain)
|
|
3411
|
-
throw
|
|
3412
|
-
let S = (o.getArgs ? o.getArgs(r, this.getState(r.storyId)) : r.args).map((g) => typeof g != "function" ||
|
|
3404
|
+
throw ei;
|
|
3405
|
+
let S = (o.getArgs ? o.getArgs(r, this.getState(r.storyId)) : r.args).map((g) => typeof g != "function" || ii(g) || Object.keys(g).length ?
|
|
3413
3406
|
g : (...u) => {
|
|
3414
3407
|
let { cursor: h, ancestors: b } = this.getState(r.storyId);
|
|
3415
3408
|
this.setState(r.storyId, { cursor: 0, ancestors: [...b, r.id] });
|
|
@@ -3476,14 +3469,14 @@ function mr(t, e = {}) {
|
|
|
3476
3469
|
let n = !1, r = !1;
|
|
3477
3470
|
return W.global.window?.location?.search?.includes("instrument=true") ? n = !0 : W.global.window?.location?.search?.includes("instrument\
|
|
3478
3471
|
=false") && (r = !0), W.global.window?.parent === W.global.window && !n || r ? t : (W.global.window && !W.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ &&
|
|
3479
|
-
(W.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ = new
|
|
3472
|
+
(W.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ = new Me()), (W.global.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).
|
|
3480
3473
|
instrument(t, e));
|
|
3481
3474
|
} catch (n) {
|
|
3482
3475
|
return fr.once.warn(n), t;
|
|
3483
3476
|
}
|
|
3484
3477
|
}
|
|
3485
3478
|
c(mr, "instrument");
|
|
3486
|
-
function
|
|
3479
|
+
function si(t, e) {
|
|
3487
3480
|
let n = t;
|
|
3488
3481
|
for (; n != null; ) {
|
|
3489
3482
|
let r = Object.getOwnPropertyDescriptor(n, e);
|
|
@@ -3492,11 +3485,11 @@ function ci(t, e) {
|
|
|
3492
3485
|
n = Object.getPrototypeOf(n);
|
|
3493
3486
|
}
|
|
3494
3487
|
}
|
|
3495
|
-
c(
|
|
3496
|
-
function
|
|
3488
|
+
c(si, "getPropertyDescriptor");
|
|
3489
|
+
function ii(t) {
|
|
3497
3490
|
if (typeof t != "function")
|
|
3498
3491
|
return !1;
|
|
3499
3492
|
let e = Object.getOwnPropertyDescriptor(t, "prototype");
|
|
3500
3493
|
return e ? !e.writable : !1;
|
|
3501
3494
|
}
|
|
3502
|
-
c(
|
|
3495
|
+
c(ii, "isClass");
|