storybook 9.0.8 → 9.0.9
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 +54 -61
- package/dist/bin/index.js +45 -52
- package/dist/cli/bin/index.cjs +572 -572
- package/dist/cli/bin/index.js +582 -582
- package/dist/common/index.cjs +677 -684
- package/dist/common/index.d.ts +0 -7
- package/dist/common/index.js +680 -687
- package/dist/core-server/presets/common-manager.js +2545 -2507
- package/dist/csf/index.d.ts +3 -1
- package/dist/instrumenter/index.cjs +958 -934
- package/dist/instrumenter/index.d.ts +1 -0
- package/dist/instrumenter/index.js +933 -908
- package/dist/manager/globals-runtime.js +8514 -8489
- package/dist/manager-api/index.cjs +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/preview/runtime.js +7488 -7459
- package/dist/preview-api/index.cjs +4438 -2648
- package/dist/preview-api/index.js +4231 -2435
- package/dist/telemetry/index.cjs +521 -521
- package/dist/telemetry/index.js +526 -526
- package/package.json +1 -185
- package/dist/actions/preview.cjs +0 -159
- package/dist/actions/preview.d.ts +0 -555
- package/dist/actions/preview.js +0 -149
- package/dist/backgrounds/index.cjs +0 -148
- package/dist/backgrounds/index.d.ts +0 -592
- package/dist/backgrounds/index.js +0 -130
- package/dist/backgrounds/preview.cjs +0 -143
- package/dist/backgrounds/preview.d.ts +0 -555
- package/dist/backgrounds/preview.js +0 -127
- package/dist/component-testing/index.cjs +0 -23
- package/dist/component-testing/index.d.ts +0 -3
- package/dist/component-testing/index.js +0 -5
- package/dist/component-testing/preview.cjs +0 -40
- package/dist/component-testing/preview.d.ts +0 -5
- package/dist/component-testing/preview.js +0 -25
- package/dist/controls/preview.cjs +0 -26
- package/dist/controls/preview.d.ts +0 -555
- package/dist/controls/preview.js +0 -9
- package/dist/highlight/preview.cjs +0 -590
- package/dist/highlight/preview.d.ts +0 -555
- package/dist/highlight/preview.js +0 -574
- package/dist/measure/index.cjs +0 -476
- package/dist/measure/index.d.ts +0 -567
- package/dist/measure/index.js +0 -464
- package/dist/measure/preview.cjs +0 -466
- package/dist/measure/preview.d.ts +0 -560
- package/dist/measure/preview.js +0 -450
- package/dist/outline/index.cjs +0 -528
- package/dist/outline/index.d.ts +0 -567
- package/dist/outline/index.js +0 -500
- package/dist/outline/preview.cjs +0 -518
- package/dist/outline/preview.d.ts +0 -560
- package/dist/outline/preview.js +0 -486
- package/dist/test/preview.cjs +0 -73
- package/dist/test/preview.d.ts +0 -555
- package/dist/test/preview.js +0 -66
- package/dist/viewport/preview.cjs +0 -35
- package/dist/viewport/preview.d.ts +0 -569
- package/dist/viewport/preview.js +0 -19
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var c = (e, t) =>
|
|
2
|
+
var Ne = Object.defineProperty;
|
|
3
|
+
var pr = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var gr = Object.getOwnPropertyNames;
|
|
5
|
+
var hr = Object.prototype.hasOwnProperty;
|
|
6
|
+
var c = (e, t) => Ne(e, "name", { value: t, configurable: !0 });
|
|
7
7
|
var dr = (e, t) => {
|
|
8
8
|
for (var n in t)
|
|
9
|
-
|
|
10
|
-
},
|
|
9
|
+
Ne(e, n, { get: t[n], enumerable: !0 });
|
|
10
|
+
}, yr = (e, t, n, r) => {
|
|
11
11
|
if (t && typeof t == "object" || typeof t == "function")
|
|
12
|
-
for (let o of
|
|
13
|
-
!
|
|
12
|
+
for (let o of gr(t))
|
|
13
|
+
!hr.call(e, o) && o !== n && Ne(e, o, { get: () => t[o], enumerable: !(r = pr(t, o)) || r.enumerable });
|
|
14
14
|
return e;
|
|
15
15
|
};
|
|
16
|
-
var
|
|
16
|
+
var br = (e) => yr(Ne({}, "__esModule", { value: !0 }), e);
|
|
17
17
|
|
|
18
18
|
// src/instrumenter/index.ts
|
|
19
|
-
var
|
|
20
|
-
dr(
|
|
19
|
+
var ii = {};
|
|
20
|
+
dr(ii, {
|
|
21
21
|
CallStates: () => cr,
|
|
22
22
|
EVENTS: () => ee,
|
|
23
|
-
instrument: () =>
|
|
23
|
+
instrument: () => fr
|
|
24
24
|
});
|
|
25
|
-
module.exports =
|
|
25
|
+
module.exports = br(ii);
|
|
26
26
|
|
|
27
27
|
// src/instrumenter/instrumenter.ts
|
|
28
|
-
var
|
|
28
|
+
var ar = require("storybook/internal/client-logger"), de = require("storybook/internal/core-events"), H = require("@storybook/global");
|
|
29
29
|
|
|
30
30
|
// ../node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
|
|
31
|
-
var
|
|
31
|
+
var Sr = {
|
|
32
32
|
reset: [0, 0],
|
|
33
33
|
bold: [1, 22, "\x1B[22m\x1B[1m"],
|
|
34
34
|
dim: [2, 22, "\x1B[22m\x1B[2m"],
|
|
@@ -70,7 +70,7 @@ var Er = {
|
|
|
70
70
|
bgMagentaBright: [105, 49],
|
|
71
71
|
bgCyanBright: [106, 49],
|
|
72
72
|
bgWhiteBright: [107, 49]
|
|
73
|
-
},
|
|
73
|
+
}, Er = Object.entries(Sr);
|
|
74
74
|
function Qe(e) {
|
|
75
75
|
return String(e);
|
|
76
76
|
}
|
|
@@ -84,25 +84,25 @@ function xt(e = !1) {
|
|
|
84
84
|
}
|
|
85
85
|
c(xt, "C");
|
|
86
86
|
function Dt(e = !1) {
|
|
87
|
-
let t = xt(e), n = /* @__PURE__ */ c((
|
|
87
|
+
let t = xt(e), n = /* @__PURE__ */ c((i, a, l, m) => {
|
|
88
88
|
let p = "", f = 0;
|
|
89
89
|
do
|
|
90
|
-
p +=
|
|
90
|
+
p += i.substring(f, m) + l, f = m + a.length, m = i.indexOf(a, f);
|
|
91
91
|
while (~m);
|
|
92
|
-
return p +
|
|
93
|
-
}, "i"), r = /* @__PURE__ */ c((
|
|
92
|
+
return p + i.substring(f);
|
|
93
|
+
}, "i"), r = /* @__PURE__ */ c((i, a, l = i) => {
|
|
94
94
|
let m = /* @__PURE__ */ c((p) => {
|
|
95
|
-
let f = String(p), b = f.indexOf(a,
|
|
96
|
-
return ~b ?
|
|
95
|
+
let f = String(p), b = f.indexOf(a, i.length);
|
|
96
|
+
return ~b ? i + n(f, a, l, b) + a : i + f + a;
|
|
97
97
|
}, "o");
|
|
98
|
-
return m.open =
|
|
98
|
+
return m.open = i, m.close = a, m;
|
|
99
99
|
}, "g"), o = {
|
|
100
100
|
isColorSupported: t
|
|
101
|
-
},
|
|
102
|
-
for (let [
|
|
103
|
-
o[
|
|
104
|
-
|
|
105
|
-
|
|
101
|
+
}, s = /* @__PURE__ */ c((i) => `\x1B[${i}m`, "d");
|
|
102
|
+
for (let [i, a] of Er)
|
|
103
|
+
o[i] = t ? r(
|
|
104
|
+
s(a[0]),
|
|
105
|
+
s(a[1]),
|
|
106
106
|
a[2]
|
|
107
107
|
) : Qe;
|
|
108
108
|
return o;
|
|
@@ -111,8 +111,8 @@ c(Dt, "p");
|
|
|
111
111
|
|
|
112
112
|
// ../node_modules/tinyrainbow/dist/node.js
|
|
113
113
|
var Ft = require("tty");
|
|
114
|
-
var
|
|
115
|
-
var ne = Dt(
|
|
114
|
+
var _r = process.env.FORCE_TTY !== void 0 || (0, Ft.isatty)(1);
|
|
115
|
+
var ne = Dt(_r);
|
|
116
116
|
|
|
117
117
|
// ../node_modules/@vitest/pretty-format/dist/index.js
|
|
118
118
|
function Zt(e, t) {
|
|
@@ -131,15 +131,15 @@ function Zt(e, t) {
|
|
|
131
131
|
}), Object.freeze(e);
|
|
132
132
|
}
|
|
133
133
|
c(Zt, "_mergeNamespaces");
|
|
134
|
-
function
|
|
134
|
+
function Tr(e, t) {
|
|
135
135
|
let n = Object.keys(e), r = t === null ? n : n.sort(t);
|
|
136
136
|
if (Object.getOwnPropertySymbols)
|
|
137
137
|
for (let o of Object.getOwnPropertySymbols(e))
|
|
138
138
|
Object.getOwnPropertyDescriptor(e, o).enumerable && r.push(o);
|
|
139
139
|
return r;
|
|
140
140
|
}
|
|
141
|
-
c(
|
|
142
|
-
function Oe(e, t, n, r, o,
|
|
141
|
+
c(Tr, "getKeysOfEnumerableProperties");
|
|
142
|
+
function Oe(e, t, n, r, o, s, i = ": ") {
|
|
143
143
|
let a = "", l = 0, m = e.next();
|
|
144
144
|
if (!m.done) {
|
|
145
145
|
a += t.spacingOuter;
|
|
@@ -149,186 +149,186 @@ function Oe(e, t, n, r, o, i, s = ": ") {
|
|
|
149
149
|
a += "\u2026";
|
|
150
150
|
break;
|
|
151
151
|
}
|
|
152
|
-
let f =
|
|
153
|
-
a += f +
|
|
152
|
+
let f = s(m.value[0], t, p, r, o), b = s(m.value[1], t, p, r, o);
|
|
153
|
+
a += f + i + b, m = e.next(), m.done ? t.min || (a += ",") : a += `,${t.spacingInner}`;
|
|
154
154
|
}
|
|
155
155
|
a += t.spacingOuter + n;
|
|
156
156
|
}
|
|
157
157
|
return a;
|
|
158
158
|
}
|
|
159
159
|
c(Oe, "printIteratorEntries");
|
|
160
|
-
function nt(e, t, n, r, o,
|
|
161
|
-
let
|
|
160
|
+
function nt(e, t, n, r, o, s) {
|
|
161
|
+
let i = "", a = 0, l = e.next();
|
|
162
162
|
if (!l.done) {
|
|
163
|
-
|
|
163
|
+
i += t.spacingOuter;
|
|
164
164
|
let m = n + t.indent;
|
|
165
165
|
for (; !l.done; ) {
|
|
166
|
-
if (
|
|
167
|
-
|
|
166
|
+
if (i += m, a++ === t.maxWidth) {
|
|
167
|
+
i += "\u2026";
|
|
168
168
|
break;
|
|
169
169
|
}
|
|
170
|
-
|
|
170
|
+
i += s(l.value, t, m, r, o), l = e.next(), l.done ? t.min || (i += ",") : i += `,${t.spacingInner}`;
|
|
171
171
|
}
|
|
172
|
-
|
|
172
|
+
i += t.spacingOuter + n;
|
|
173
173
|
}
|
|
174
|
-
return
|
|
174
|
+
return i;
|
|
175
175
|
}
|
|
176
176
|
c(nt, "printIteratorValues");
|
|
177
|
-
function De(e, t, n, r, o,
|
|
178
|
-
let
|
|
177
|
+
function De(e, t, n, r, o, s) {
|
|
178
|
+
let i = "";
|
|
179
179
|
e = e instanceof ArrayBuffer ? new DataView(e) : e;
|
|
180
180
|
let a = /* @__PURE__ */ c((m) => m instanceof DataView, "isDataView"), l = a(e) ? e.byteLength : e.length;
|
|
181
181
|
if (l > 0) {
|
|
182
|
-
|
|
182
|
+
i += t.spacingOuter;
|
|
183
183
|
let m = n + t.indent;
|
|
184
184
|
for (let p = 0; p < l; p++) {
|
|
185
|
-
if (
|
|
186
|
-
|
|
185
|
+
if (i += m, p === t.maxWidth) {
|
|
186
|
+
i += "\u2026";
|
|
187
187
|
break;
|
|
188
188
|
}
|
|
189
|
-
(a(e) || p in e) && (
|
|
189
|
+
(a(e) || p in e) && (i += s(a(e) ? e.getInt8(p) : e[p], t, m, r, o)), p < l - 1 ? i += `,${t.spacingInner}` : t.min || (i += ",");
|
|
190
190
|
}
|
|
191
|
-
|
|
191
|
+
i += t.spacingOuter + n;
|
|
192
192
|
}
|
|
193
|
-
return
|
|
193
|
+
return i;
|
|
194
194
|
}
|
|
195
195
|
c(De, "printListItems");
|
|
196
|
-
function rt(e, t, n, r, o,
|
|
197
|
-
let
|
|
196
|
+
function rt(e, t, n, r, o, s) {
|
|
197
|
+
let i = "", a = Tr(e, t.compareKeys);
|
|
198
198
|
if (a.length > 0) {
|
|
199
|
-
|
|
199
|
+
i += t.spacingOuter;
|
|
200
200
|
let l = n + t.indent;
|
|
201
201
|
for (let m = 0; m < a.length; m++) {
|
|
202
|
-
let p = a[m], f =
|
|
203
|
-
|
|
202
|
+
let p = a[m], f = s(p, t, l, r, o), b = s(e[p], t, l, r, o);
|
|
203
|
+
i += `${l + f}: ${b}`, m < a.length - 1 ? i += `,${t.spacingInner}` : t.min || (i += ",");
|
|
204
204
|
}
|
|
205
|
-
|
|
205
|
+
i += t.spacingOuter + n;
|
|
206
206
|
}
|
|
207
|
-
return
|
|
207
|
+
return i;
|
|
208
208
|
}
|
|
209
209
|
c(rt, "printObjectProperties");
|
|
210
|
-
var
|
|
211
|
-
let
|
|
212
|
-
if (
|
|
213
|
-
return ++r > t.maxDepth ? `[${
|
|
214
|
-
if (
|
|
215
|
-
return ++r > t.maxDepth ? `[${
|
|
216
|
-
if (
|
|
217
|
-
return
|
|
210
|
+
var Cr = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621, Ie = " ", Or = /* @__PURE__ */ c((e, t, n, r, o, s) => {
|
|
211
|
+
let i = e.toString();
|
|
212
|
+
if (i === "ArrayContaining" || i === "ArrayNotContaining")
|
|
213
|
+
return ++r > t.maxDepth ? `[${i}]` : `${i + Ie}[${De(e.sample, t, n, r, o, s)}]`;
|
|
214
|
+
if (i === "ObjectContaining" || i === "ObjectNotContaining")
|
|
215
|
+
return ++r > t.maxDepth ? `[${i}]` : `${i + Ie}{${rt(e.sample, t, n, r, o, s)}}`;
|
|
216
|
+
if (i === "StringMatching" || i === "StringNotMatching" || i === "StringContaining" || i === "StringNotContaining")
|
|
217
|
+
return i + Ie + s(e.sample, t, n, r, o);
|
|
218
218
|
if (typeof e.toAsymmetricMatcher != "function")
|
|
219
219
|
throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);
|
|
220
220
|
return e.toAsymmetricMatcher();
|
|
221
|
-
}, "serialize$5"),
|
|
222
|
-
serialize:
|
|
223
|
-
test:
|
|
224
|
-
},
|
|
221
|
+
}, "serialize$5"), $r = /* @__PURE__ */ c((e) => e && e.$$typeof === Cr, "test$5"), wr = {
|
|
222
|
+
serialize: Or,
|
|
223
|
+
test: $r
|
|
224
|
+
}, Ar = " ", vt = /* @__PURE__ */ new Set(["DOMStringMap", "NamedNodeMap"]), Rr = /^(?:HTML\w*Collection|NodeList)$/;
|
|
225
225
|
function Pr(e) {
|
|
226
|
-
return vt.has(e) ||
|
|
226
|
+
return vt.has(e) || Rr.test(e);
|
|
227
227
|
}
|
|
228
228
|
c(Pr, "testName");
|
|
229
|
-
var
|
|
230
|
-
function
|
|
229
|
+
var Nr = /* @__PURE__ */ c((e) => e && e.constructor && !!e.constructor.name && Pr(e.constructor.name), "test$4");
|
|
230
|
+
function Ir(e) {
|
|
231
231
|
return e.constructor.name === "NamedNodeMap";
|
|
232
232
|
}
|
|
233
|
-
c(
|
|
234
|
-
var
|
|
235
|
-
let
|
|
236
|
-
return ++r > t.maxDepth ? `[${
|
|
237
|
-
{}) : { ...e }, t, n, r, o,
|
|
238
|
-
}, "serialize$4"),
|
|
239
|
-
serialize:
|
|
240
|
-
test:
|
|
233
|
+
c(Ir, "isNamedNodeMap");
|
|
234
|
+
var Mr = /* @__PURE__ */ c((e, t, n, r, o, s) => {
|
|
235
|
+
let i = e.constructor.name;
|
|
236
|
+
return ++r > t.maxDepth ? `[${i}]` : (t.min ? "" : i + Ar) + (vt.has(i) ? `{${rt(Ir(e) ? [...e].reduce((a, l) => (a[l.name] = l.value, a),
|
|
237
|
+
{}) : { ...e }, t, n, r, o, s)}}` : `[${De([...e], t, n, r, o, s)}]`);
|
|
238
|
+
}, "serialize$4"), Lr = {
|
|
239
|
+
serialize: Mr,
|
|
240
|
+
test: Nr
|
|
241
241
|
};
|
|
242
242
|
function Qt(e) {
|
|
243
243
|
return e.replaceAll("<", "<").replaceAll(">", ">");
|
|
244
244
|
}
|
|
245
245
|
c(Qt, "escapeHTML");
|
|
246
|
-
function ot(e, t, n, r, o,
|
|
246
|
+
function ot(e, t, n, r, o, s, i) {
|
|
247
247
|
let a = r + n.indent, l = n.colors;
|
|
248
248
|
return e.map((m) => {
|
|
249
|
-
let p = t[m], f =
|
|
249
|
+
let p = t[m], f = i(p, n, a, o, s);
|
|
250
250
|
return typeof p != "string" && (f.includes(`
|
|
251
251
|
`) && (f = n.spacingOuter + a + f + n.spacingOuter + r), f = `{${f}}`), `${n.spacingInner + r + l.prop.open + m + l.prop.close}=${l.value.open}${f}${l.
|
|
252
252
|
value.close}`;
|
|
253
253
|
}).join("");
|
|
254
254
|
}
|
|
255
255
|
c(ot, "printProps");
|
|
256
|
-
function
|
|
257
|
-
return e.map((
|
|
256
|
+
function st(e, t, n, r, o, s) {
|
|
257
|
+
return e.map((i) => t.spacingOuter + n + (typeof i == "string" ? en(i, t) : s(i, t, n, r, o))).join("");
|
|
258
258
|
}
|
|
259
|
-
c(
|
|
259
|
+
c(st, "printChildren");
|
|
260
260
|
function en(e, t) {
|
|
261
261
|
let n = t.colors.content;
|
|
262
262
|
return n.open + Qt(e) + n.close;
|
|
263
263
|
}
|
|
264
264
|
c(en, "printText");
|
|
265
|
-
function
|
|
265
|
+
function xr(e, t) {
|
|
266
266
|
let n = t.colors.comment;
|
|
267
267
|
return `${n.open}<!--${Qt(e)}-->${n.close}`;
|
|
268
268
|
}
|
|
269
|
-
c(
|
|
270
|
-
function
|
|
271
|
-
let
|
|
272
|
-
return `${
|
|
273
|
-
!r.min ? "" : " "}/`}>${
|
|
269
|
+
c(xr, "printComment");
|
|
270
|
+
function it(e, t, n, r, o) {
|
|
271
|
+
let s = r.colors.tag;
|
|
272
|
+
return `${s.open}<${e}${t && s.close + t + r.spacingOuter + o + s.open}${n ? `>${s.close}${n}${r.spacingOuter}${o}${s.open}</${e}` : `${t &&
|
|
273
|
+
!r.min ? "" : " "}/`}>${s.close}`;
|
|
274
274
|
}
|
|
275
|
-
c(
|
|
275
|
+
c(it, "printElement");
|
|
276
276
|
function ct(e, t) {
|
|
277
277
|
let n = t.colors.tag;
|
|
278
278
|
return `${n.open}<${e}${n.close} \u2026${n.open} />${n.close}`;
|
|
279
279
|
}
|
|
280
280
|
c(ct, "printElementAsLeaf");
|
|
281
|
-
var
|
|
282
|
-
function
|
|
281
|
+
var Dr = 1, tn = 3, nn = 8, rn = 11, Fr = /^(?:(?:HTML|SVG)\w*)?Element$/;
|
|
282
|
+
function jr(e) {
|
|
283
283
|
try {
|
|
284
284
|
return typeof e.hasAttribute == "function" && e.hasAttribute("is");
|
|
285
285
|
} catch {
|
|
286
286
|
return !1;
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
|
-
c(
|
|
289
|
+
c(jr, "testHasAttribute");
|
|
290
290
|
function kr(e) {
|
|
291
|
-
let t = e.constructor.name, { nodeType: n, tagName: r } = e, o = typeof r == "string" && r.includes("-") ||
|
|
292
|
-
return n ===
|
|
291
|
+
let t = e.constructor.name, { nodeType: n, tagName: r } = e, o = typeof r == "string" && r.includes("-") || jr(e);
|
|
292
|
+
return n === Dr && (Fr.test(t) || o) || n === tn && t === "Text" || n === nn && t === "Comment" || n === rn && t === "DocumentFragment";
|
|
293
293
|
}
|
|
294
294
|
c(kr, "testNode");
|
|
295
|
-
var
|
|
295
|
+
var Br = /* @__PURE__ */ c((e) => {
|
|
296
296
|
var t;
|
|
297
297
|
return (e == null || (t = e.constructor) === null || t === void 0 ? void 0 : t.name) && kr(e);
|
|
298
298
|
}, "test$3");
|
|
299
|
-
function
|
|
299
|
+
function zr(e) {
|
|
300
300
|
return e.nodeType === tn;
|
|
301
301
|
}
|
|
302
|
-
c(
|
|
303
|
-
function
|
|
302
|
+
c(zr, "nodeIsText");
|
|
303
|
+
function Yr(e) {
|
|
304
304
|
return e.nodeType === nn;
|
|
305
305
|
}
|
|
306
|
-
c(
|
|
306
|
+
c(Yr, "nodeIsComment");
|
|
307
307
|
function et(e) {
|
|
308
308
|
return e.nodeType === rn;
|
|
309
309
|
}
|
|
310
310
|
c(et, "nodeIsFragment");
|
|
311
|
-
var
|
|
312
|
-
if (
|
|
311
|
+
var Ur = /* @__PURE__ */ c((e, t, n, r, o, s) => {
|
|
312
|
+
if (zr(e))
|
|
313
313
|
return en(e.data, t);
|
|
314
|
-
if (
|
|
315
|
-
return
|
|
316
|
-
let
|
|
317
|
-
return ++r > t.maxDepth ? ct(
|
|
318
|
-
reduce((a, l) => (a[l.name] = l.value, a), {}), t, n + t.indent, r, o,
|
|
319
|
-
t.indent, r, o,
|
|
320
|
-
}, "serialize$3"),
|
|
321
|
-
serialize:
|
|
322
|
-
test:
|
|
323
|
-
},
|
|
324
|
-
_IMMUTABLE_ORDERED__@@",
|
|
314
|
+
if (Yr(e))
|
|
315
|
+
return xr(e.data, t);
|
|
316
|
+
let i = et(e) ? "DocumentFragment" : e.tagName.toLowerCase();
|
|
317
|
+
return ++r > t.maxDepth ? ct(i, t) : it(i, ot(et(e) ? [] : Array.from(e.attributes, (a) => a.name).sort(), et(e) ? {} : [...e.attributes].
|
|
318
|
+
reduce((a, l) => (a[l.name] = l.value, a), {}), t, n + t.indent, r, o, s), st(Array.prototype.slice.call(e.childNodes || e.children), t, n +
|
|
319
|
+
t.indent, r, o, s), t, n);
|
|
320
|
+
}, "serialize$3"), Wr = {
|
|
321
|
+
serialize: Ur,
|
|
322
|
+
test: Br
|
|
323
|
+
}, Vr = "@@__IMMUTABLE_ITERABLE__@@", qr = "@@__IMMUTABLE_LIST__@@", Kr = "@@__IMMUTABLE_KEYED__@@", Gr = "@@__IMMUTABLE_MAP__@@", jt = "@@_\
|
|
324
|
+
_IMMUTABLE_ORDERED__@@", Hr = "@@__IMMUTABLE_RECORD__@@", Jr = "@@__IMMUTABLE_SEQ__@@", Xr = "@@__IMMUTABLE_SET__@@", Zr = "@@__IMMUTABLE_ST\
|
|
325
325
|
ACK__@@", be = /* @__PURE__ */ c((e) => `Immutable.${e}`, "getImmutableName"), je = /* @__PURE__ */ c((e) => `[${e}]`, "printAsLeaf"), Ce = "\
|
|
326
|
-
",
|
|
327
|
-
function
|
|
328
|
-
return ++r > t.maxDepth ? je(be(
|
|
326
|
+
", kt = "\u2026";
|
|
327
|
+
function vr(e, t, n, r, o, s, i) {
|
|
328
|
+
return ++r > t.maxDepth ? je(be(i)) : `${be(i) + Ce}{${Oe(e.entries(), t, n, r, o, s)}}`;
|
|
329
329
|
}
|
|
330
|
-
c(
|
|
331
|
-
function
|
|
330
|
+
c(vr, "printImmutableEntries");
|
|
331
|
+
function Qr(e) {
|
|
332
332
|
let t = 0;
|
|
333
333
|
return { next() {
|
|
334
334
|
if (t < e._keys.length) {
|
|
@@ -344,41 +344,41 @@ function eo(e) {
|
|
|
344
344
|
};
|
|
345
345
|
} };
|
|
346
346
|
}
|
|
347
|
-
c(
|
|
348
|
-
function
|
|
349
|
-
let
|
|
350
|
-
return ++r > t.maxDepth ? je(
|
|
347
|
+
c(Qr, "getRecordEntries");
|
|
348
|
+
function eo(e, t, n, r, o, s) {
|
|
349
|
+
let i = be(e._name || "Record");
|
|
350
|
+
return ++r > t.maxDepth ? je(i) : `${i + Ce}{${Oe(Qr(e), t, n, r, o, s)}}`;
|
|
351
351
|
}
|
|
352
|
-
c(
|
|
353
|
-
function
|
|
354
|
-
let
|
|
355
|
-
return ++r > t.maxDepth ? je(
|
|
356
|
-
e._array || e._collection || e._iterable ? nt(e.values(), t, n, r, o,
|
|
352
|
+
c(eo, "printImmutableRecord");
|
|
353
|
+
function to(e, t, n, r, o, s) {
|
|
354
|
+
let i = be("Seq");
|
|
355
|
+
return ++r > t.maxDepth ? je(i) : e[Kr] ? `${i + Ce}{${e._iter || e._object ? Oe(e.entries(), t, n, r, o, s) : kt}}` : `${i + Ce}[${e._iter ||
|
|
356
|
+
e._array || e._collection || e._iterable ? nt(e.values(), t, n, r, o, s) : kt}]`;
|
|
357
357
|
}
|
|
358
|
-
c(
|
|
359
|
-
function tt(e, t, n, r, o,
|
|
360
|
-
return ++r > t.maxDepth ? je(be(
|
|
358
|
+
c(to, "printImmutableSeq");
|
|
359
|
+
function tt(e, t, n, r, o, s, i) {
|
|
360
|
+
return ++r > t.maxDepth ? je(be(i)) : `${be(i) + Ce}[${nt(e.values(), t, n, r, o, s)}]`;
|
|
361
361
|
}
|
|
362
362
|
c(tt, "printImmutableValues");
|
|
363
|
-
var
|
|
364
|
-
List") : e[
|
|
365
|
-
|
|
366
|
-
serialize:
|
|
367
|
-
test:
|
|
363
|
+
var no = /* @__PURE__ */ c((e, t, n, r, o, s) => e[Gr] ? vr(e, t, n, r, o, s, e[jt] ? "OrderedMap" : "Map") : e[qr] ? tt(e, t, n, r, o, s, "\
|
|
364
|
+
List") : e[Xr] ? tt(e, t, n, r, o, s, e[jt] ? "OrderedSet" : "Set") : e[Zr] ? tt(e, t, n, r, o, s, "Stack") : e[Jr] ? to(e, t, n, r, o, s) :
|
|
365
|
+
eo(e, t, n, r, o, s), "serialize$2"), ro = /* @__PURE__ */ c((e) => e && (e[Vr] === !0 || e[Hr] === !0), "test$2"), oo = {
|
|
366
|
+
serialize: no,
|
|
367
|
+
test: ro
|
|
368
368
|
};
|
|
369
369
|
function on(e) {
|
|
370
370
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
371
371
|
}
|
|
372
372
|
c(on, "getDefaultExportFromCjs");
|
|
373
|
-
var Me = { exports: {} },
|
|
374
|
-
var
|
|
373
|
+
var Me = { exports: {} }, P = {};
|
|
374
|
+
var Bt;
|
|
375
375
|
function so() {
|
|
376
|
-
if (
|
|
377
|
-
|
|
376
|
+
if (Bt) return P;
|
|
377
|
+
Bt = 1;
|
|
378
378
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.\
|
|
379
|
-
strict_mode"), o = Symbol.for("react.profiler"),
|
|
379
|
+
strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.consumer"), i = Symbol.for("react.context"), a = Symbol.for("react.fo\
|
|
380
380
|
rward_ref"), l = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), f = Symbol.for("react.la\
|
|
381
|
-
zy"), b = Symbol.for("react.view_transition"),
|
|
381
|
+
zy"), b = Symbol.for("react.view_transition"), d = Symbol.for("react.client.reference");
|
|
382
382
|
function g(u) {
|
|
383
383
|
if (typeof u == "object" && u !== null) {
|
|
384
384
|
var h = u.$$typeof;
|
|
@@ -394,12 +394,12 @@ zy"), b = Symbol.for("react.view_transition"), y = Symbol.for("react.client.refe
|
|
|
394
394
|
return u;
|
|
395
395
|
default:
|
|
396
396
|
switch (u = u && u.$$typeof, u) {
|
|
397
|
-
case
|
|
397
|
+
case i:
|
|
398
398
|
case a:
|
|
399
399
|
case f:
|
|
400
400
|
case p:
|
|
401
401
|
return u;
|
|
402
|
-
case
|
|
402
|
+
case s:
|
|
403
403
|
return u;
|
|
404
404
|
default:
|
|
405
405
|
return h;
|
|
@@ -410,41 +410,41 @@ zy"), b = Symbol.for("react.view_transition"), y = Symbol.for("react.client.refe
|
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
|
-
return c(g, "typeOf"),
|
|
414
|
-
p,
|
|
415
|
-
return g(u) === i;
|
|
416
|
-
}, N.isContextProvider = function(u) {
|
|
413
|
+
return c(g, "typeOf"), P.ContextConsumer = s, P.ContextProvider = i, P.Element = e, P.ForwardRef = a, P.Fragment = n, P.Lazy = f, P.Memo =
|
|
414
|
+
p, P.Portal = t, P.Profiler = o, P.StrictMode = r, P.Suspense = l, P.SuspenseList = m, P.isContextConsumer = function(u) {
|
|
417
415
|
return g(u) === s;
|
|
418
|
-
},
|
|
416
|
+
}, P.isContextProvider = function(u) {
|
|
417
|
+
return g(u) === i;
|
|
418
|
+
}, P.isElement = function(u) {
|
|
419
419
|
return typeof u == "object" && u !== null && u.$$typeof === e;
|
|
420
|
-
},
|
|
420
|
+
}, P.isForwardRef = function(u) {
|
|
421
421
|
return g(u) === a;
|
|
422
|
-
},
|
|
422
|
+
}, P.isFragment = function(u) {
|
|
423
423
|
return g(u) === n;
|
|
424
|
-
},
|
|
424
|
+
}, P.isLazy = function(u) {
|
|
425
425
|
return g(u) === f;
|
|
426
|
-
},
|
|
426
|
+
}, P.isMemo = function(u) {
|
|
427
427
|
return g(u) === p;
|
|
428
|
-
},
|
|
428
|
+
}, P.isPortal = function(u) {
|
|
429
429
|
return g(u) === t;
|
|
430
|
-
},
|
|
430
|
+
}, P.isProfiler = function(u) {
|
|
431
431
|
return g(u) === o;
|
|
432
|
-
},
|
|
432
|
+
}, P.isStrictMode = function(u) {
|
|
433
433
|
return g(u) === r;
|
|
434
|
-
},
|
|
434
|
+
}, P.isSuspense = function(u) {
|
|
435
435
|
return g(u) === l;
|
|
436
|
-
},
|
|
436
|
+
}, P.isSuspenseList = function(u) {
|
|
437
437
|
return g(u) === m;
|
|
438
|
-
},
|
|
438
|
+
}, P.isValidElementType = function(u) {
|
|
439
439
|
return typeof u == "string" || typeof u == "function" || u === n || u === o || u === r || u === l || u === m || typeof u == "object" && u !==
|
|
440
|
-
null && (u.$$typeof === f || u.$$typeof === p || u.$$typeof ===
|
|
440
|
+
null && (u.$$typeof === f || u.$$typeof === p || u.$$typeof === i || u.$$typeof === s || u.$$typeof === a || u.$$typeof === d || u.getModuleId !==
|
|
441
441
|
void 0);
|
|
442
|
-
},
|
|
442
|
+
}, P.typeOf = g, P;
|
|
443
443
|
}
|
|
444
444
|
c(so, "requireReactIs_production");
|
|
445
|
-
var
|
|
445
|
+
var N = {};
|
|
446
446
|
var zt;
|
|
447
|
-
function
|
|
447
|
+
function io() {
|
|
448
448
|
return zt || (zt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
449
449
|
function e(u) {
|
|
450
450
|
if (typeof u == "object" && u !== null) {
|
|
@@ -453,11 +453,11 @@ function co() {
|
|
|
453
453
|
case t:
|
|
454
454
|
switch (u = u.type, u) {
|
|
455
455
|
case r:
|
|
456
|
-
case
|
|
456
|
+
case s:
|
|
457
457
|
case o:
|
|
458
458
|
case m:
|
|
459
459
|
case p:
|
|
460
|
-
case
|
|
460
|
+
case d:
|
|
461
461
|
return u;
|
|
462
462
|
default:
|
|
463
463
|
switch (u = u && u.$$typeof, u) {
|
|
@@ -466,7 +466,7 @@ function co() {
|
|
|
466
466
|
case b:
|
|
467
467
|
case f:
|
|
468
468
|
return u;
|
|
469
|
-
case
|
|
469
|
+
case i:
|
|
470
470
|
return u;
|
|
471
471
|
default:
|
|
472
472
|
return h;
|
|
@@ -479,59 +479,59 @@ function co() {
|
|
|
479
479
|
}
|
|
480
480
|
c(e, "typeOf");
|
|
481
481
|
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("reac\
|
|
482
|
-
t.strict_mode"),
|
|
482
|
+
t.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.consumer"), a = Symbol.for("react.context"), l = Symbol.for("react.\
|
|
483
483
|
forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), b = Symbol.for("react.\
|
|
484
|
-
lazy"),
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
return e(u) ===
|
|
488
|
-
},
|
|
484
|
+
lazy"), d = Symbol.for("react.view_transition"), g = Symbol.for("react.client.reference");
|
|
485
|
+
N.ContextConsumer = i, N.ContextProvider = a, N.Element = t, N.ForwardRef = l, N.Fragment = r, N.Lazy = b, N.Memo = f, N.Portal = n, N.Profiler =
|
|
486
|
+
s, N.StrictMode = o, N.Suspense = m, N.SuspenseList = p, N.isContextConsumer = function(u) {
|
|
487
|
+
return e(u) === i;
|
|
488
|
+
}, N.isContextProvider = function(u) {
|
|
489
489
|
return e(u) === a;
|
|
490
|
-
},
|
|
490
|
+
}, N.isElement = function(u) {
|
|
491
491
|
return typeof u == "object" && u !== null && u.$$typeof === t;
|
|
492
|
-
},
|
|
492
|
+
}, N.isForwardRef = function(u) {
|
|
493
493
|
return e(u) === l;
|
|
494
|
-
},
|
|
494
|
+
}, N.isFragment = function(u) {
|
|
495
495
|
return e(u) === r;
|
|
496
|
-
},
|
|
496
|
+
}, N.isLazy = function(u) {
|
|
497
497
|
return e(u) === b;
|
|
498
|
-
},
|
|
498
|
+
}, N.isMemo = function(u) {
|
|
499
499
|
return e(u) === f;
|
|
500
|
-
},
|
|
500
|
+
}, N.isPortal = function(u) {
|
|
501
501
|
return e(u) === n;
|
|
502
|
-
},
|
|
503
|
-
return e(u) ===
|
|
504
|
-
},
|
|
502
|
+
}, N.isProfiler = function(u) {
|
|
503
|
+
return e(u) === s;
|
|
504
|
+
}, N.isStrictMode = function(u) {
|
|
505
505
|
return e(u) === o;
|
|
506
|
-
},
|
|
506
|
+
}, N.isSuspense = function(u) {
|
|
507
507
|
return e(u) === m;
|
|
508
|
-
},
|
|
508
|
+
}, N.isSuspenseList = function(u) {
|
|
509
509
|
return e(u) === p;
|
|
510
|
-
},
|
|
511
|
-
return typeof u == "string" || typeof u == "function" || u === r || u ===
|
|
512
|
-
u !== null && (u.$$typeof === b || u.$$typeof === f || u.$$typeof === a || u.$$typeof ===
|
|
510
|
+
}, N.isValidElementType = function(u) {
|
|
511
|
+
return typeof u == "string" || typeof u == "function" || u === r || u === s || u === o || u === m || u === p || typeof u == "object" &&
|
|
512
|
+
u !== null && (u.$$typeof === b || u.$$typeof === f || u.$$typeof === a || u.$$typeof === i || u.$$typeof === l || u.$$typeof === g ||
|
|
513
513
|
u.getModuleId !== void 0);
|
|
514
|
-
},
|
|
515
|
-
}()),
|
|
514
|
+
}, N.typeOf = e;
|
|
515
|
+
}()), N;
|
|
516
516
|
}
|
|
517
|
-
c(
|
|
517
|
+
c(io, "requireReactIs_development$1");
|
|
518
518
|
var Yt;
|
|
519
|
-
function
|
|
520
|
-
return Yt || (Yt = 1, process.env.NODE_ENV === "production" ? Me.exports = so() : Me.exports =
|
|
519
|
+
function co() {
|
|
520
|
+
return Yt || (Yt = 1, process.env.NODE_ENV === "production" ? Me.exports = so() : Me.exports = io()), Me.exports;
|
|
521
521
|
}
|
|
522
|
-
c(
|
|
523
|
-
var sn =
|
|
522
|
+
c(co, "requireReactIs$1");
|
|
523
|
+
var sn = co(), uo = /* @__PURE__ */ on(sn), lo = /* @__PURE__ */ Zt({
|
|
524
524
|
__proto__: null,
|
|
525
|
-
default:
|
|
525
|
+
default: uo
|
|
526
526
|
}, [sn]), Le = { exports: {} }, w = {};
|
|
527
527
|
var Ut;
|
|
528
|
-
function
|
|
528
|
+
function ao() {
|
|
529
529
|
if (Ut) return w;
|
|
530
530
|
Ut = 1;
|
|
531
531
|
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"),
|
|
532
|
-
o = Symbol.for("react.profiler"),
|
|
532
|
+
o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), a = Symbol.for("react.server_context"),
|
|
533
533
|
l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"),
|
|
534
|
-
b = Symbol.for("react.lazy"),
|
|
534
|
+
b = Symbol.for("react.lazy"), d = Symbol.for("react.offscreen"), g;
|
|
535
535
|
g = Symbol.for("react.module.reference");
|
|
536
536
|
function u(h) {
|
|
537
537
|
if (typeof h == "object" && h !== null) {
|
|
@@ -548,11 +548,11 @@ function fo() {
|
|
|
548
548
|
default:
|
|
549
549
|
switch (h = h && h.$$typeof, h) {
|
|
550
550
|
case a:
|
|
551
|
-
case
|
|
551
|
+
case i:
|
|
552
552
|
case l:
|
|
553
553
|
case b:
|
|
554
554
|
case f:
|
|
555
|
-
case
|
|
555
|
+
case s:
|
|
556
556
|
return h;
|
|
557
557
|
default:
|
|
558
558
|
return S;
|
|
@@ -563,15 +563,15 @@ function fo() {
|
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
|
-
return c(u, "v"), w.ContextConsumer =
|
|
566
|
+
return c(u, "v"), w.ContextConsumer = i, w.ContextProvider = s, w.Element = e, w.ForwardRef = l, w.Fragment = n, w.Lazy = b, w.Memo = f, w.
|
|
567
567
|
Portal = t, w.Profiler = o, w.StrictMode = r, w.Suspense = m, w.SuspenseList = p, w.isAsyncMode = function() {
|
|
568
568
|
return !1;
|
|
569
569
|
}, w.isConcurrentMode = function() {
|
|
570
570
|
return !1;
|
|
571
571
|
}, w.isContextConsumer = function(h) {
|
|
572
|
-
return u(h) === s;
|
|
573
|
-
}, w.isContextProvider = function(h) {
|
|
574
572
|
return u(h) === i;
|
|
573
|
+
}, w.isContextProvider = function(h) {
|
|
574
|
+
return u(h) === s;
|
|
575
575
|
}, w.isElement = function(h) {
|
|
576
576
|
return typeof h == "object" && h !== null && h.$$typeof === e;
|
|
577
577
|
}, w.isForwardRef = function(h) {
|
|
@@ -593,53 +593,53 @@ function fo() {
|
|
|
593
593
|
}, w.isSuspenseList = function(h) {
|
|
594
594
|
return u(h) === p;
|
|
595
595
|
}, w.isValidElementType = function(h) {
|
|
596
|
-
return typeof h == "string" || typeof h == "function" || h === n || h === o || h === r || h === m || h === p || h ===
|
|
597
|
-
object" && h !== null && (h.$$typeof === b || h.$$typeof === f || h.$$typeof ===
|
|
596
|
+
return typeof h == "string" || typeof h == "function" || h === n || h === o || h === r || h === m || h === p || h === d || typeof h == "\
|
|
597
|
+
object" && h !== null && (h.$$typeof === b || h.$$typeof === f || h.$$typeof === s || h.$$typeof === i || h.$$typeof === l || h.$$typeof ===
|
|
598
598
|
g || h.getModuleId !== void 0);
|
|
599
599
|
}, w.typeOf = u, w;
|
|
600
600
|
}
|
|
601
|
-
c(
|
|
601
|
+
c(ao, "requireReactIs_production_min");
|
|
602
602
|
var A = {};
|
|
603
603
|
var Wt;
|
|
604
|
-
function
|
|
604
|
+
function fo() {
|
|
605
605
|
return Wt || (Wt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
606
606
|
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"),
|
|
607
|
-
o = Symbol.for("react.profiler"),
|
|
607
|
+
o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), a = Symbol.for("react.server_contex\
|
|
608
608
|
t"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), f = Symbol.for("react.mem\
|
|
609
|
-
o"), b = Symbol.for("react.lazy"),
|
|
609
|
+
o"), b = Symbol.for("react.lazy"), d = Symbol.for("react.offscreen"), g = !1, u = !1, h = !1, S = !1, _ = !1, O;
|
|
610
610
|
O = Symbol.for("react.module.reference");
|
|
611
|
-
function
|
|
612
|
-
return !!(typeof C == "string" || typeof C == "function" || C === n || C === o || _ || C === r || C === m || C === p || S || C ===
|
|
613
|
-
g || u || h || typeof C == "object" && C !== null && (C.$$typeof === b || C.$$typeof === f || C.$$typeof ===
|
|
611
|
+
function y(C) {
|
|
612
|
+
return !!(typeof C == "string" || typeof C == "function" || C === n || C === o || _ || C === r || C === m || C === p || S || C === d ||
|
|
613
|
+
g || u || h || typeof C == "object" && C !== null && (C.$$typeof === b || C.$$typeof === f || C.$$typeof === s || C.$$typeof === i || C.
|
|
614
614
|
$$typeof === l || // This needs to include all possible module reference object
|
|
615
615
|
// types supported by any Flight configuration anywhere since
|
|
616
616
|
// we don't know which Flight build this will end up being used
|
|
617
617
|
// with.
|
|
618
618
|
C.$$typeof === O || C.getModuleId !== void 0));
|
|
619
619
|
}
|
|
620
|
-
c(
|
|
620
|
+
c(y, "isValidElementType");
|
|
621
621
|
function E(C) {
|
|
622
622
|
if (typeof C == "object" && C !== null) {
|
|
623
623
|
var ve = C.$$typeof;
|
|
624
624
|
switch (ve) {
|
|
625
625
|
case e:
|
|
626
|
-
var
|
|
627
|
-
switch (
|
|
626
|
+
var Pe = C.type;
|
|
627
|
+
switch (Pe) {
|
|
628
628
|
case n:
|
|
629
629
|
case o:
|
|
630
630
|
case r:
|
|
631
631
|
case m:
|
|
632
632
|
case p:
|
|
633
|
-
return
|
|
633
|
+
return Pe;
|
|
634
634
|
default:
|
|
635
|
-
var Lt =
|
|
635
|
+
var Lt = Pe && Pe.$$typeof;
|
|
636
636
|
switch (Lt) {
|
|
637
637
|
case a:
|
|
638
|
-
case
|
|
638
|
+
case i:
|
|
639
639
|
case l:
|
|
640
640
|
case b:
|
|
641
641
|
case f:
|
|
642
|
-
case
|
|
642
|
+
case s:
|
|
643
643
|
return Lt;
|
|
644
644
|
default:
|
|
645
645
|
return ve;
|
|
@@ -651,23 +651,23 @@ o"), b = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), g = !1, u
|
|
|
651
651
|
}
|
|
652
652
|
}
|
|
653
653
|
c(E, "typeOf");
|
|
654
|
-
var $ =
|
|
655
|
-
function
|
|
654
|
+
var $ = i, T = s, R = e, J = l, te = n, L = b, z = f, X = t, W = o, M = r, D = m, F = p, Z = !1, k = !1;
|
|
655
|
+
function q(C) {
|
|
656
656
|
return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
657
657
|
}
|
|
658
|
-
c(
|
|
659
|
-
function
|
|
660
|
-
return
|
|
658
|
+
c(q, "isAsyncMode");
|
|
659
|
+
function se(C) {
|
|
660
|
+
return k || (k = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
661
|
+
}
|
|
662
|
+
c(se, "isConcurrentMode");
|
|
663
|
+
function K(C) {
|
|
664
|
+
return E(C) === i;
|
|
661
665
|
}
|
|
662
|
-
c(
|
|
666
|
+
c(K, "isContextConsumer");
|
|
663
667
|
function G(C) {
|
|
664
668
|
return E(C) === s;
|
|
665
669
|
}
|
|
666
|
-
c(G, "
|
|
667
|
-
function H(C) {
|
|
668
|
-
return E(C) === i;
|
|
669
|
-
}
|
|
670
|
-
c(H, "isContextProvider");
|
|
670
|
+
c(G, "isContextProvider");
|
|
671
671
|
function ce(C) {
|
|
672
672
|
return typeof C == "object" && C !== null && C.$$typeof === e;
|
|
673
673
|
}
|
|
@@ -676,18 +676,18 @@ o"), b = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), g = !1, u
|
|
|
676
676
|
return E(C) === l;
|
|
677
677
|
}
|
|
678
678
|
c(v, "isForwardRef");
|
|
679
|
-
function
|
|
679
|
+
function V(C) {
|
|
680
680
|
return E(C) === n;
|
|
681
681
|
}
|
|
682
|
-
c(
|
|
683
|
-
function
|
|
682
|
+
c(V, "isFragment");
|
|
683
|
+
function ie(C) {
|
|
684
684
|
return E(C) === b;
|
|
685
685
|
}
|
|
686
|
-
c(
|
|
687
|
-
function
|
|
686
|
+
c(ie, "isLazy");
|
|
687
|
+
function ye(C) {
|
|
688
688
|
return E(C) === f;
|
|
689
689
|
}
|
|
690
|
-
c(
|
|
690
|
+
c(ye, "isMemo");
|
|
691
691
|
function ae(C) {
|
|
692
692
|
return E(C) === t;
|
|
693
693
|
}
|
|
@@ -704,25 +704,25 @@ o"), b = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), g = !1, u
|
|
|
704
704
|
return E(C) === m;
|
|
705
705
|
}
|
|
706
706
|
c(Re, "isSuspense");
|
|
707
|
-
function
|
|
707
|
+
function mr(C) {
|
|
708
708
|
return E(C) === p;
|
|
709
709
|
}
|
|
710
|
-
c(
|
|
711
|
-
z, A.Portal = X, A.Profiler =
|
|
712
|
-
|
|
713
|
-
Te, A.isStrictMode = Ae, A.isSuspense = Re, A.isSuspenseList =
|
|
710
|
+
c(mr, "isSuspenseList"), A.ContextConsumer = $, A.ContextProvider = T, A.Element = R, A.ForwardRef = J, A.Fragment = te, A.Lazy = L, A.Memo =
|
|
711
|
+
z, A.Portal = X, A.Profiler = W, A.StrictMode = M, A.Suspense = D, A.SuspenseList = F, A.isAsyncMode = q, A.isConcurrentMode = se, A.isContextConsumer =
|
|
712
|
+
K, A.isContextProvider = G, A.isElement = ce, A.isForwardRef = v, A.isFragment = V, A.isLazy = ie, A.isMemo = ye, A.isPortal = ae, A.isProfiler =
|
|
713
|
+
Te, A.isStrictMode = Ae, A.isSuspense = Re, A.isSuspenseList = mr, A.isValidElementType = y, A.typeOf = E;
|
|
714
714
|
}()), A;
|
|
715
715
|
}
|
|
716
|
-
c(
|
|
716
|
+
c(fo, "requireReactIs_development");
|
|
717
717
|
var Vt;
|
|
718
|
-
function
|
|
719
|
-
return Vt || (Vt = 1, process.env.NODE_ENV === "production" ? Le.exports =
|
|
718
|
+
function mo() {
|
|
719
|
+
return Vt || (Vt = 1, process.env.NODE_ENV === "production" ? Le.exports = ao() : Le.exports = fo()), Le.exports;
|
|
720
720
|
}
|
|
721
|
-
c(
|
|
722
|
-
var cn =
|
|
721
|
+
c(mo, "requireReactIs");
|
|
722
|
+
var cn = mo(), po = /* @__PURE__ */ on(cn), go = /* @__PURE__ */ Zt({
|
|
723
723
|
__proto__: null,
|
|
724
|
-
default:
|
|
725
|
-
}, [cn]),
|
|
724
|
+
default: po
|
|
725
|
+
}, [cn]), ho = [
|
|
726
726
|
"isAsyncMode",
|
|
727
727
|
"isConcurrentMode",
|
|
728
728
|
"isContextConsumer",
|
|
@@ -738,7 +738,7 @@ var cn = po(), go = /* @__PURE__ */ on(cn), ho = /* @__PURE__ */ Zt({
|
|
|
738
738
|
"isSuspense",
|
|
739
739
|
"isSuspenseList",
|
|
740
740
|
"isValidElementType"
|
|
741
|
-
], me = Object.fromEntries(
|
|
741
|
+
], me = Object.fromEntries(ho.map((e) => [e, (t) => go[e](t) || lo[e](t)]));
|
|
742
742
|
function un(e, t = []) {
|
|
743
743
|
if (Array.isArray(e))
|
|
744
744
|
for (let n of e)
|
|
@@ -776,37 +776,37 @@ function qt(e) {
|
|
|
776
776
|
return "UNDEFINED";
|
|
777
777
|
}
|
|
778
778
|
c(qt, "getType");
|
|
779
|
-
function
|
|
779
|
+
function yo(e) {
|
|
780
780
|
let { props: t } = e;
|
|
781
781
|
return Object.keys(t).filter((n) => n !== "children" && t[n] !== void 0).sort();
|
|
782
782
|
}
|
|
783
|
-
c(
|
|
784
|
-
var
|
|
785
|
-
un(e.props.children), t, n + t.indent, r, o,
|
|
786
|
-
|
|
787
|
-
serialize:
|
|
788
|
-
test:
|
|
789
|
-
},
|
|
790
|
-
function
|
|
783
|
+
c(yo, "getPropKeys$1");
|
|
784
|
+
var bo = /* @__PURE__ */ c((e, t, n, r, o, s) => ++r > t.maxDepth ? ct(qt(e), t) : it(qt(e), ot(yo(e), e.props, t, n + t.indent, r, o, s), st(
|
|
785
|
+
un(e.props.children), t, n + t.indent, r, o, s), t, n), "serialize$1"), So = /* @__PURE__ */ c((e) => e != null && me.isElement(e), "test$1"),
|
|
786
|
+
Eo = {
|
|
787
|
+
serialize: bo,
|
|
788
|
+
test: So
|
|
789
|
+
}, _o = typeof Symbol == "function" && Symbol.for ? Symbol.for("react.test.json") : 245830487;
|
|
790
|
+
function To(e) {
|
|
791
791
|
let { props: t } = e;
|
|
792
792
|
return t ? Object.keys(t).filter((n) => t[n] !== void 0).sort() : [];
|
|
793
793
|
}
|
|
794
|
-
c(
|
|
795
|
-
var
|
|
796
|
-
r, o,
|
|
797
|
-
|
|
798
|
-
serialize:
|
|
799
|
-
test:
|
|
800
|
-
}, ln = Object.prototype.toString,
|
|
794
|
+
c(To, "getPropKeys");
|
|
795
|
+
var Co = /* @__PURE__ */ c((e, t, n, r, o, s) => ++r > t.maxDepth ? ct(e.type, t) : it(e.type, e.props ? ot(To(e), e.props, t, n + t.indent,
|
|
796
|
+
r, o, s) : "", e.children ? st(e.children, t, n + t.indent, r, o, s) : "", t, n), "serialize"), Oo = /* @__PURE__ */ c((e) => e && e.$$typeof ===
|
|
797
|
+
_o, "test"), $o = {
|
|
798
|
+
serialize: Co,
|
|
799
|
+
test: Oo
|
|
800
|
+
}, ln = Object.prototype.toString, wo = Date.prototype.toISOString, Ao = Error.prototype.toString, Kt = RegExp.prototype.toString;
|
|
801
801
|
function xe(e) {
|
|
802
802
|
return typeof e.constructor == "function" && e.constructor.name || "Object";
|
|
803
803
|
}
|
|
804
804
|
c(xe, "getConstructorName");
|
|
805
|
-
function
|
|
805
|
+
function Ro(e) {
|
|
806
806
|
return typeof window < "u" && e === window;
|
|
807
807
|
}
|
|
808
|
-
c(
|
|
809
|
-
var Po = /^Symbol\((.*)\)(.*)$/,
|
|
808
|
+
c(Ro, "isWindow");
|
|
809
|
+
var Po = /^Symbol\((.*)\)(.*)$/, No = /\n/g, Fe = class extends Error {
|
|
810
810
|
static {
|
|
811
811
|
c(this, "PrettyFormatPluginError");
|
|
812
812
|
}
|
|
@@ -814,20 +814,20 @@ var Po = /^Symbol\((.*)\)(.*)$/, Io = /\n/g, Fe = class extends Error {
|
|
|
814
814
|
super(t), this.stack = n, this.name = this.constructor.name;
|
|
815
815
|
}
|
|
816
816
|
};
|
|
817
|
-
function
|
|
817
|
+
function Io(e) {
|
|
818
818
|
return e === "[object Array]" || e === "[object ArrayBuffer]" || e === "[object DataView]" || e === "[object Float32Array]" || e === "[obj\
|
|
819
819
|
ect Float64Array]" || e === "[object Int8Array]" || e === "[object Int16Array]" || e === "[object Int32Array]" || e === "[object Uint8Array]" ||
|
|
820
820
|
e === "[object Uint8ClampedArray]" || e === "[object Uint16Array]" || e === "[object Uint32Array]";
|
|
821
821
|
}
|
|
822
|
-
c(
|
|
823
|
-
function
|
|
822
|
+
c(Io, "isToStringedArrayType");
|
|
823
|
+
function Mo(e) {
|
|
824
824
|
return Object.is(e, -0) ? "-0" : String(e);
|
|
825
825
|
}
|
|
826
|
-
c(
|
|
827
|
-
function
|
|
826
|
+
c(Mo, "printNumber");
|
|
827
|
+
function Lo(e) {
|
|
828
828
|
return `${e}n`;
|
|
829
829
|
}
|
|
830
|
-
c(
|
|
830
|
+
c(Lo, "printBigInt");
|
|
831
831
|
function Gt(e, t) {
|
|
832
832
|
return t ? `[Function ${e.name || "anonymous"}]` : "[Function]";
|
|
833
833
|
}
|
|
@@ -837,7 +837,7 @@ function Ht(e) {
|
|
|
837
837
|
}
|
|
838
838
|
c(Ht, "printSymbol");
|
|
839
839
|
function Jt(e) {
|
|
840
|
-
return `[${
|
|
840
|
+
return `[${Ao.call(e)}]`;
|
|
841
841
|
}
|
|
842
842
|
c(Jt, "printError");
|
|
843
843
|
function an(e, t, n, r) {
|
|
@@ -849,62 +849,62 @@ function an(e, t, n, r) {
|
|
|
849
849
|
return "null";
|
|
850
850
|
let o = typeof e;
|
|
851
851
|
if (o === "number")
|
|
852
|
-
return
|
|
852
|
+
return Mo(e);
|
|
853
853
|
if (o === "bigint")
|
|
854
|
-
return
|
|
854
|
+
return Lo(e);
|
|
855
855
|
if (o === "string")
|
|
856
856
|
return r ? `"${e.replaceAll(/"|\\/g, "\\$&")}"` : `"${e}"`;
|
|
857
857
|
if (o === "function")
|
|
858
858
|
return Gt(e, t);
|
|
859
859
|
if (o === "symbol")
|
|
860
860
|
return Ht(e);
|
|
861
|
-
let
|
|
862
|
-
return
|
|
863
|
-
eratorFunction]" ? Gt(e, t) :
|
|
864
|
-
"[object Error]" ? Jt(e) :
|
|
861
|
+
let s = ln.call(e);
|
|
862
|
+
return s === "[object WeakMap]" ? "WeakMap {}" : s === "[object WeakSet]" ? "WeakSet {}" : s === "[object Function]" || s === "[object Gen\
|
|
863
|
+
eratorFunction]" ? Gt(e, t) : s === "[object Symbol]" ? Ht(e) : s === "[object Date]" ? Number.isNaN(+e) ? "Date { NaN }" : wo.call(e) : s ===
|
|
864
|
+
"[object Error]" ? Jt(e) : s === "[object RegExp]" ? n ? Kt.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g, "\\$&") : Kt.call(e) : e instanceof Error ?
|
|
865
865
|
Jt(e) : null;
|
|
866
866
|
}
|
|
867
867
|
c(an, "printBasicValue");
|
|
868
|
-
function fn(e, t, n, r, o,
|
|
868
|
+
function fn(e, t, n, r, o, s) {
|
|
869
869
|
if (o.includes(e))
|
|
870
870
|
return "[Circular]";
|
|
871
871
|
o = [...o], o.push(e);
|
|
872
|
-
let
|
|
873
|
-
if (t.callToJSON && !
|
|
872
|
+
let i = ++r > t.maxDepth, a = t.min;
|
|
873
|
+
if (t.callToJSON && !i && e.toJSON && typeof e.toJSON == "function" && !s)
|
|
874
874
|
return fe(e.toJSON(), t, n, r, o, !0);
|
|
875
875
|
let l = ln.call(e);
|
|
876
|
-
return l === "[object Arguments]" ?
|
|
876
|
+
return l === "[object Arguments]" ? i ? "[Arguments]" : `${a ? "" : "Arguments "}[${De(e, t, n, r, o, fe)}]` : Io(l) ? i ? `[${e.constructor.
|
|
877
877
|
name}]` : `${a || !t.printBasicPrototype && e.constructor.name === "Array" ? "" : `${e.constructor.name} `}[${De(e, t, n, r, o, fe)}]` : l ===
|
|
878
|
-
"[object Map]" ?
|
|
879
|
-
t, n, r, o, fe)}}` :
|
|
878
|
+
"[object Map]" ? i ? "[Map]" : `Map {${Oe(e.entries(), t, n, r, o, fe, " => ")}}` : l === "[object Set]" ? i ? "[Set]" : `Set {${nt(e.values(),
|
|
879
|
+
t, n, r, o, fe)}}` : i || Ro(e) ? `[${xe(e)}]` : `${a || !t.printBasicPrototype && xe(e) === "Object" ? "" : `${xe(e)} `}{${rt(e, t, n, r,
|
|
880
880
|
o, fe)}}`;
|
|
881
881
|
}
|
|
882
882
|
c(fn, "printComplexValue");
|
|
883
|
-
var
|
|
883
|
+
var xo = {
|
|
884
884
|
test: /* @__PURE__ */ c((e) => e && e instanceof Error, "test"),
|
|
885
|
-
serialize(e, t, n, r, o,
|
|
885
|
+
serialize(e, t, n, r, o, s) {
|
|
886
886
|
if (o.includes(e))
|
|
887
887
|
return "[Circular]";
|
|
888
888
|
o = [...o, e];
|
|
889
|
-
let
|
|
889
|
+
let i = ++r > t.maxDepth, { message: a, cause: l, ...m } = e, p = {
|
|
890
890
|
message: a,
|
|
891
891
|
...typeof l < "u" ? { cause: l } : {},
|
|
892
892
|
...e instanceof AggregateError ? { errors: e.errors } : {},
|
|
893
893
|
...m
|
|
894
894
|
}, f = e.name !== "Error" ? e.name : xe(e);
|
|
895
|
-
return
|
|
895
|
+
return i ? `[${f}]` : `${f} {${Oe(Object.entries(p).values(), t, n, r, o, s)}}`;
|
|
896
896
|
}
|
|
897
897
|
};
|
|
898
|
-
function
|
|
898
|
+
function Do(e) {
|
|
899
899
|
return e.serialize != null;
|
|
900
900
|
}
|
|
901
|
-
c(
|
|
902
|
-
function mn(e, t, n, r, o,
|
|
903
|
-
let
|
|
901
|
+
c(Do, "isNewPlugin");
|
|
902
|
+
function mn(e, t, n, r, o, s) {
|
|
903
|
+
let i;
|
|
904
904
|
try {
|
|
905
|
-
|
|
905
|
+
i = Do(e) ? e.serialize(t, n, r, o, s, fe) : e.print(t, (a) => fe(a, n, r, o, s), (a) => {
|
|
906
906
|
let l = r + n.indent;
|
|
907
|
-
return l + a.replaceAll(
|
|
907
|
+
return l + a.replaceAll(No, `
|
|
908
908
|
${l}`);
|
|
909
909
|
}, {
|
|
910
910
|
edgeSpacing: n.spacingOuter,
|
|
@@ -914,9 +914,9 @@ ${l}`);
|
|
|
914
914
|
} catch (a) {
|
|
915
915
|
throw new Fe(a.message, a.stack);
|
|
916
916
|
}
|
|
917
|
-
if (typeof
|
|
918
|
-
throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof
|
|
919
|
-
return
|
|
917
|
+
if (typeof i != "string")
|
|
918
|
+
throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof i}".`);
|
|
919
|
+
return i;
|
|
920
920
|
}
|
|
921
921
|
c(mn, "printPlugin");
|
|
922
922
|
function pn(e, t) {
|
|
@@ -930,12 +930,12 @@ function pn(e, t) {
|
|
|
930
930
|
return null;
|
|
931
931
|
}
|
|
932
932
|
c(pn, "findPlugin");
|
|
933
|
-
function fe(e, t, n, r, o,
|
|
934
|
-
let
|
|
935
|
-
if (
|
|
936
|
-
return mn(
|
|
933
|
+
function fe(e, t, n, r, o, s) {
|
|
934
|
+
let i = pn(t.plugins, e);
|
|
935
|
+
if (i !== null)
|
|
936
|
+
return mn(i, e, t, n, r, o);
|
|
937
937
|
let a = an(e, t.printFunctionName, t.escapeRegex, t.escapeString);
|
|
938
|
-
return a !== null ? a : fn(e, t, n, r, o,
|
|
938
|
+
return a !== null ? a : fn(e, t, n, r, o, s);
|
|
939
939
|
}
|
|
940
940
|
c(fe, "printer");
|
|
941
941
|
var ut = {
|
|
@@ -959,15 +959,15 @@ var ut = {
|
|
|
959
959
|
printFunctionName: !0,
|
|
960
960
|
theme: ut
|
|
961
961
|
};
|
|
962
|
-
function
|
|
962
|
+
function Fo(e) {
|
|
963
963
|
for (let t of Object.keys(e))
|
|
964
964
|
if (!Object.prototype.hasOwnProperty.call(re, t))
|
|
965
965
|
throw new Error(`pretty-format: Unknown option "${t}".`);
|
|
966
966
|
if (e.min && e.indent !== void 0 && e.indent !== 0)
|
|
967
967
|
throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');
|
|
968
968
|
}
|
|
969
|
-
c(
|
|
970
|
-
function
|
|
969
|
+
c(Fo, "validateOptions");
|
|
970
|
+
function jo() {
|
|
971
971
|
return gn.reduce((e, t) => {
|
|
972
972
|
let n = ut[t], r = n && ne[n];
|
|
973
973
|
if (r && typeof r.close == "string" && typeof r.open == "string")
|
|
@@ -977,7 +977,7 @@ function Bo() {
|
|
|
977
977
|
return e;
|
|
978
978
|
}, /* @__PURE__ */ Object.create(null));
|
|
979
979
|
}
|
|
980
|
-
c(
|
|
980
|
+
c(jo, "getColorsHighlight");
|
|
981
981
|
function ko() {
|
|
982
982
|
return gn.reduce((e, t) => (e[t] = {
|
|
983
983
|
close: "",
|
|
@@ -989,22 +989,22 @@ function hn(e) {
|
|
|
989
989
|
return e?.printFunctionName ?? re.printFunctionName;
|
|
990
990
|
}
|
|
991
991
|
c(hn, "getPrintFunctionName");
|
|
992
|
-
function
|
|
992
|
+
function dn(e) {
|
|
993
993
|
return e?.escapeRegex ?? re.escapeRegex;
|
|
994
994
|
}
|
|
995
|
-
c(
|
|
996
|
-
function
|
|
995
|
+
c(dn, "getEscapeRegex");
|
|
996
|
+
function yn(e) {
|
|
997
997
|
return e?.escapeString ?? re.escapeString;
|
|
998
998
|
}
|
|
999
|
-
c(
|
|
999
|
+
c(yn, "getEscapeString");
|
|
1000
1000
|
function Xt(e) {
|
|
1001
1001
|
return {
|
|
1002
1002
|
callToJSON: e?.callToJSON ?? re.callToJSON,
|
|
1003
|
-
colors: e?.highlight ?
|
|
1003
|
+
colors: e?.highlight ? jo() : ko(),
|
|
1004
1004
|
compareKeys: typeof e?.compareKeys == "function" || e?.compareKeys === null ? e.compareKeys : re.compareKeys,
|
|
1005
|
-
escapeRegex:
|
|
1006
|
-
escapeString:
|
|
1007
|
-
indent: e?.min ? "" :
|
|
1005
|
+
escapeRegex: dn(e),
|
|
1006
|
+
escapeString: yn(e),
|
|
1007
|
+
indent: e?.min ? "" : Bo(e?.indent ?? re.indent),
|
|
1008
1008
|
maxDepth: e?.maxDepth ?? re.maxDepth,
|
|
1009
1009
|
maxWidth: e?.maxWidth ?? re.maxWidth,
|
|
1010
1010
|
min: e?.min ?? re.min,
|
|
@@ -1018,28 +1018,28 @@ function Xt(e) {
|
|
|
1018
1018
|
};
|
|
1019
1019
|
}
|
|
1020
1020
|
c(Xt, "getConfig");
|
|
1021
|
-
function
|
|
1021
|
+
function Bo(e) {
|
|
1022
1022
|
return Array.from({ length: e + 1 }).join(" ");
|
|
1023
1023
|
}
|
|
1024
|
-
c(
|
|
1024
|
+
c(Bo, "createIndent");
|
|
1025
1025
|
function Q(e, t) {
|
|
1026
|
-
if (t && (
|
|
1026
|
+
if (t && (Fo(t), t.plugins)) {
|
|
1027
1027
|
let r = pn(t.plugins, e);
|
|
1028
1028
|
if (r !== null)
|
|
1029
1029
|
return mn(r, e, Xt(t), "", 0, []);
|
|
1030
1030
|
}
|
|
1031
|
-
let n = an(e, hn(t),
|
|
1031
|
+
let n = an(e, hn(t), dn(t), yn(t));
|
|
1032
1032
|
return n !== null ? n : fn(e, Xt(t), "", 0, []);
|
|
1033
1033
|
}
|
|
1034
1034
|
c(Q, "format");
|
|
1035
1035
|
var $e = {
|
|
1036
|
-
AsymmetricMatcher:
|
|
1037
|
-
DOMCollection:
|
|
1038
|
-
DOMElement:
|
|
1039
|
-
Immutable:
|
|
1040
|
-
ReactElement:
|
|
1041
|
-
ReactTestComponent:
|
|
1042
|
-
Error:
|
|
1036
|
+
AsymmetricMatcher: wr,
|
|
1037
|
+
DOMCollection: Lr,
|
|
1038
|
+
DOMElement: Wr,
|
|
1039
|
+
Immutable: oo,
|
|
1040
|
+
ReactElement: Eo,
|
|
1041
|
+
ReactTestComponent: $o,
|
|
1042
|
+
Error: xo
|
|
1043
1043
|
};
|
|
1044
1044
|
|
|
1045
1045
|
// ../node_modules/loupe/lib/helpers.js
|
|
@@ -1071,7 +1071,7 @@ var bn = {
|
|
|
1071
1071
|
brightcyan: ["36;1", "39"],
|
|
1072
1072
|
brightwhite: ["37;1", "39"],
|
|
1073
1073
|
grey: ["90", "39"]
|
|
1074
|
-
},
|
|
1074
|
+
}, zo = {
|
|
1075
1075
|
special: "cyan",
|
|
1076
1076
|
number: "yellow",
|
|
1077
1077
|
bigint: "yellow",
|
|
@@ -1083,19 +1083,19 @@ var bn = {
|
|
|
1083
1083
|
date: "magenta",
|
|
1084
1084
|
regexp: "red"
|
|
1085
1085
|
}, ue = "\u2026";
|
|
1086
|
-
function
|
|
1087
|
-
let n = bn[
|
|
1086
|
+
function Yo(e, t) {
|
|
1087
|
+
let n = bn[zo[t]] || bn[t] || "";
|
|
1088
1088
|
return n ? `\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m` : String(e);
|
|
1089
1089
|
}
|
|
1090
|
-
c(
|
|
1090
|
+
c(Yo, "colorise");
|
|
1091
1091
|
function Sn({
|
|
1092
1092
|
showHidden: e = !1,
|
|
1093
1093
|
depth: t = 2,
|
|
1094
1094
|
colors: n = !1,
|
|
1095
1095
|
customInspect: r = !0,
|
|
1096
1096
|
showProxy: o = !1,
|
|
1097
|
-
maxArrayLength:
|
|
1098
|
-
breakLength:
|
|
1097
|
+
maxArrayLength: s = 1 / 0,
|
|
1098
|
+
breakLength: i = 1 / 0,
|
|
1099
1099
|
seen: a = [],
|
|
1100
1100
|
// eslint-disable-next-line no-shadow
|
|
1101
1101
|
truncate: l = 1 / 0,
|
|
@@ -1107,28 +1107,28 @@ function Sn({
|
|
|
1107
1107
|
colors: !!n,
|
|
1108
1108
|
customInspect: !!r,
|
|
1109
1109
|
showProxy: !!o,
|
|
1110
|
-
maxArrayLength: Number(
|
|
1111
|
-
breakLength: Number(
|
|
1110
|
+
maxArrayLength: Number(s),
|
|
1111
|
+
breakLength: Number(i),
|
|
1112
1112
|
truncate: Number(l),
|
|
1113
1113
|
seen: a,
|
|
1114
1114
|
inspect: p,
|
|
1115
1115
|
stylize: m
|
|
1116
1116
|
};
|
|
1117
|
-
return f.colors && (f.stylize =
|
|
1117
|
+
return f.colors && (f.stylize = Yo), f;
|
|
1118
1118
|
}
|
|
1119
1119
|
c(Sn, "normaliseOptions");
|
|
1120
|
-
function
|
|
1120
|
+
function Uo(e) {
|
|
1121
1121
|
return e >= "\uD800" && e <= "\uDBFF";
|
|
1122
1122
|
}
|
|
1123
|
-
c(
|
|
1123
|
+
c(Uo, "isHighSurrogate");
|
|
1124
1124
|
function Y(e, t, n = ue) {
|
|
1125
1125
|
e = String(e);
|
|
1126
1126
|
let r = n.length, o = e.length;
|
|
1127
1127
|
if (r > t && o > r)
|
|
1128
1128
|
return n;
|
|
1129
1129
|
if (o > t && o > r) {
|
|
1130
|
-
let
|
|
1131
|
-
return
|
|
1130
|
+
let s = t - r;
|
|
1131
|
+
return s > 0 && Uo(e[s - 1]) && (s = s - 1), `${e.slice(0, s)}${n}`;
|
|
1132
1132
|
}
|
|
1133
1133
|
return e;
|
|
1134
1134
|
}
|
|
@@ -1138,31 +1138,31 @@ function j(e, t, n, r = ", ") {
|
|
|
1138
1138
|
let o = e.length;
|
|
1139
1139
|
if (o === 0)
|
|
1140
1140
|
return "";
|
|
1141
|
-
let
|
|
1141
|
+
let s = t.truncate, i = "", a = "", l = "";
|
|
1142
1142
|
for (let m = 0; m < o; m += 1) {
|
|
1143
1143
|
let p = m + 1 === e.length, f = m + 2 === e.length;
|
|
1144
1144
|
l = `${ue}(${e.length - m})`;
|
|
1145
1145
|
let b = e[m];
|
|
1146
|
-
t.truncate =
|
|
1147
|
-
let
|
|
1148
|
-
if (p && g >
|
|
1149
|
-
length >
|
|
1146
|
+
t.truncate = s - i.length - (p ? 0 : r.length);
|
|
1147
|
+
let d = a || n(b, t) + (p ? "" : r), g = i.length + d.length, u = g + l.length;
|
|
1148
|
+
if (p && g > s && i.length + l.length <= s || !p && !f && u > s || (a = p ? "" : n(e[m + 1], t) + (f ? "" : r), !p && f && u > s && g + a.
|
|
1149
|
+
length > s))
|
|
1150
1150
|
break;
|
|
1151
|
-
if (
|
|
1151
|
+
if (i += d, !p && !f && g + a.length >= s) {
|
|
1152
1152
|
l = `${ue}(${e.length - m - 1})`;
|
|
1153
1153
|
break;
|
|
1154
1154
|
}
|
|
1155
1155
|
l = "";
|
|
1156
1156
|
}
|
|
1157
|
-
return `${
|
|
1157
|
+
return `${i}${l}`;
|
|
1158
1158
|
}
|
|
1159
1159
|
c(j, "inspectList");
|
|
1160
|
-
function
|
|
1160
|
+
function Wo(e) {
|
|
1161
1161
|
return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/) ? e : JSON.stringify(e).replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
|
|
1162
1162
|
}
|
|
1163
|
-
c(
|
|
1163
|
+
c(Wo, "quoteComplexKey");
|
|
1164
1164
|
function le([e, t], n) {
|
|
1165
|
-
return n.truncate -= 2, typeof e == "string" ? e =
|
|
1165
|
+
return n.truncate -= 2, typeof e == "string" ? e = Wo(e) : typeof e != "number" && (e = `[${n.inspect(e, n)}]`), n.truncate -= e.length, t =
|
|
1166
1166
|
n.inspect(t, n), `${e}: ${t}`;
|
|
1167
1167
|
}
|
|
1168
1168
|
c(le, "inspectProperty");
|
|
@@ -1176,30 +1176,30 @@ function lt(e, t) {
|
|
|
1176
1176
|
let r = j(e, t);
|
|
1177
1177
|
t.truncate -= r.length;
|
|
1178
1178
|
let o = "";
|
|
1179
|
-
return n.length && (o = j(n.map((
|
|
1179
|
+
return n.length && (o = j(n.map((s) => [s, e[s]]), t, le)), `[ ${r}${o ? `, ${o}` : ""} ]`;
|
|
1180
1180
|
}
|
|
1181
1181
|
c(lt, "inspectArray");
|
|
1182
1182
|
|
|
1183
1183
|
// ../node_modules/loupe/lib/typedarray.js
|
|
1184
|
-
var
|
|
1184
|
+
var Vo = /* @__PURE__ */ c((e) => typeof Buffer == "function" && e instanceof Buffer ? "Buffer" : e[Symbol.toStringTag] ? e[Symbol.toStringTag] :
|
|
1185
1185
|
e.constructor.name, "getArrayName");
|
|
1186
1186
|
function oe(e, t) {
|
|
1187
|
-
let n =
|
|
1187
|
+
let n = Vo(e);
|
|
1188
1188
|
t.truncate -= n.length + 4;
|
|
1189
1189
|
let r = Object.keys(e).slice(e.length);
|
|
1190
1190
|
if (!e.length && !r.length)
|
|
1191
1191
|
return `${n}[]`;
|
|
1192
1192
|
let o = "";
|
|
1193
|
-
for (let
|
|
1194
|
-
let a = `${t.stylize(Y(e[
|
|
1195
|
-
if (t.truncate -= a.length, e[
|
|
1196
|
-
o += `${ue}(${e.length - e[
|
|
1193
|
+
for (let i = 0; i < e.length; i++) {
|
|
1194
|
+
let a = `${t.stylize(Y(e[i], t.truncate), "number")}${i === e.length - 1 ? "" : ", "}`;
|
|
1195
|
+
if (t.truncate -= a.length, e[i] !== e.length && t.truncate <= 3) {
|
|
1196
|
+
o += `${ue}(${e.length - e[i] + 1})`;
|
|
1197
1197
|
break;
|
|
1198
1198
|
}
|
|
1199
1199
|
o += a;
|
|
1200
1200
|
}
|
|
1201
|
-
let
|
|
1202
|
-
return r.length && (
|
|
1201
|
+
let s = "";
|
|
1202
|
+
return r.length && (s = j(r.map((i) => [i, e[i]]), t, le)), `${n}[ ${o}${s ? `, ${s}` : ""} ]`;
|
|
1203
1203
|
}
|
|
1204
1204
|
c(oe, "inspectTypedArray");
|
|
1205
1205
|
|
|
@@ -1214,36 +1214,36 @@ function at(e, t) {
|
|
|
1214
1214
|
c(at, "inspectDate");
|
|
1215
1215
|
|
|
1216
1216
|
// ../node_modules/loupe/lib/function.js
|
|
1217
|
-
function
|
|
1217
|
+
function ke(e, t) {
|
|
1218
1218
|
let n = e[Symbol.toStringTag] || "Function", r = e.name;
|
|
1219
1219
|
return r ? t.stylize(`[${n} ${Y(r, t.truncate - 11)}]`, "special") : t.stylize(`[${n}]`, "special");
|
|
1220
1220
|
}
|
|
1221
|
-
c(
|
|
1221
|
+
c(ke, "inspectFunction");
|
|
1222
1222
|
|
|
1223
1223
|
// ../node_modules/loupe/lib/map.js
|
|
1224
|
-
function
|
|
1224
|
+
function qo([e, t], n) {
|
|
1225
1225
|
return n.truncate -= 4, e = n.inspect(e, n), n.truncate -= e.length, t = n.inspect(t, n), `${e} => ${t}`;
|
|
1226
1226
|
}
|
|
1227
|
-
c(
|
|
1228
|
-
function
|
|
1227
|
+
c(qo, "inspectMapEntry");
|
|
1228
|
+
function Ko(e) {
|
|
1229
1229
|
let t = [];
|
|
1230
1230
|
return e.forEach((n, r) => {
|
|
1231
1231
|
t.push([r, n]);
|
|
1232
1232
|
}), t;
|
|
1233
1233
|
}
|
|
1234
|
-
c(
|
|
1234
|
+
c(Ko, "mapToEntries");
|
|
1235
1235
|
function ft(e, t) {
|
|
1236
|
-
return e.size === 0 ? "Map{}" : (t.truncate -= 7, `Map{ ${j(
|
|
1236
|
+
return e.size === 0 ? "Map{}" : (t.truncate -= 7, `Map{ ${j(Ko(e), t, qo)} }`);
|
|
1237
1237
|
}
|
|
1238
1238
|
c(ft, "inspectMap");
|
|
1239
1239
|
|
|
1240
1240
|
// ../node_modules/loupe/lib/number.js
|
|
1241
|
-
var
|
|
1242
|
-
function
|
|
1243
|
-
return
|
|
1241
|
+
var Go = Number.isNaN || ((e) => e !== e);
|
|
1242
|
+
function Be(e, t) {
|
|
1243
|
+
return Go(e) ? t.stylize("NaN", "number") : e === 1 / 0 ? t.stylize("Infinity", "number") : e === -1 / 0 ? t.stylize("-Infinity", "number") :
|
|
1244
1244
|
e === 0 ? t.stylize(1 / e === 1 / 0 ? "+0" : "-0", "number") : t.stylize(Y(String(e), t.truncate), "number");
|
|
1245
1245
|
}
|
|
1246
|
-
c(
|
|
1246
|
+
c(Be, "inspectNumber");
|
|
1247
1247
|
|
|
1248
1248
|
// ../node_modules/loupe/lib/bigint.js
|
|
1249
1249
|
function ze(e, t) {
|
|
@@ -1260,21 +1260,21 @@ function mt(e, t) {
|
|
|
1260
1260
|
c(mt, "inspectRegExp");
|
|
1261
1261
|
|
|
1262
1262
|
// ../node_modules/loupe/lib/set.js
|
|
1263
|
-
function
|
|
1263
|
+
function Ho(e) {
|
|
1264
1264
|
let t = [];
|
|
1265
1265
|
return e.forEach((n) => {
|
|
1266
1266
|
t.push(n);
|
|
1267
1267
|
}), t;
|
|
1268
1268
|
}
|
|
1269
|
-
c(
|
|
1269
|
+
c(Ho, "arrayFromSet");
|
|
1270
1270
|
function pt(e, t) {
|
|
1271
|
-
return e.size === 0 ? "Set{}" : (t.truncate -= 7, `Set{ ${j(
|
|
1271
|
+
return e.size === 0 ? "Set{}" : (t.truncate -= 7, `Set{ ${j(Ho(e), t)} }`);
|
|
1272
1272
|
}
|
|
1273
1273
|
c(pt, "inspectSet");
|
|
1274
1274
|
|
|
1275
1275
|
// ../node_modules/loupe/lib/string.js
|
|
1276
1276
|
var En = new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\u\
|
|
1277
|
-
ffff]", "g"),
|
|
1277
|
+
ffff]", "g"), Jo = {
|
|
1278
1278
|
"\b": "\\b",
|
|
1279
1279
|
" ": "\\t",
|
|
1280
1280
|
"\n": "\\n",
|
|
@@ -1282,13 +1282,13 @@ ffff]", "g"), Xo = {
|
|
|
1282
1282
|
"\r": "\\r",
|
|
1283
1283
|
"'": "\\'",
|
|
1284
1284
|
"\\": "\\\\"
|
|
1285
|
-
},
|
|
1286
|
-
function
|
|
1287
|
-
return
|
|
1285
|
+
}, Xo = 16, Zo = 4;
|
|
1286
|
+
function vo(e) {
|
|
1287
|
+
return Jo[e] || `\\u${`0000${e.charCodeAt(0).toString(Xo)}`.slice(-Zo)}`;
|
|
1288
1288
|
}
|
|
1289
|
-
c(
|
|
1289
|
+
c(vo, "escape");
|
|
1290
1290
|
function Ye(e, t) {
|
|
1291
|
-
return En.test(e) && (e = e.replace(En,
|
|
1291
|
+
return En.test(e) && (e = e.replace(En, vo)), t.stylize(`'${Y(e, t.truncate - 2)}'`, "string");
|
|
1292
1292
|
}
|
|
1293
1293
|
c(Ye, "inspectString");
|
|
1294
1294
|
|
|
@@ -1303,8 +1303,8 @@ var _n = /* @__PURE__ */ c(() => "Promise{\u2026}", "getPromiseValue");
|
|
|
1303
1303
|
try {
|
|
1304
1304
|
let { getPromiseDetails: e, kPending: t, kRejected: n } = process.binding("util");
|
|
1305
1305
|
Array.isArray(e(Promise.resolve())) && (_n = /* @__PURE__ */ c((r, o) => {
|
|
1306
|
-
let [
|
|
1307
|
-
return
|
|
1306
|
+
let [s, i] = e(r);
|
|
1307
|
+
return s === t ? "Promise{<pending>}" : `Promise${s === n ? "!" : ""}{${o.inspect(i, o)}}`;
|
|
1308
1308
|
}, "getPromiseValue"));
|
|
1309
1309
|
} catch {
|
|
1310
1310
|
}
|
|
@@ -1318,10 +1318,10 @@ function pe(e, t) {
|
|
|
1318
1318
|
if (t.truncate -= 4, t.seen = t.seen || [], t.seen.includes(e))
|
|
1319
1319
|
return "[Circular]";
|
|
1320
1320
|
t.seen.push(e);
|
|
1321
|
-
let o = j(n.map((a) => [a, e[a]]), t, le),
|
|
1321
|
+
let o = j(n.map((a) => [a, e[a]]), t, le), s = j(r.map((a) => [a, e[a]]), t, le);
|
|
1322
1322
|
t.seen.pop();
|
|
1323
|
-
let
|
|
1324
|
-
return o &&
|
|
1323
|
+
let i = "";
|
|
1324
|
+
return o && s && (i = ", "), `{ ${o}${i}${s} }`;
|
|
1325
1325
|
}
|
|
1326
1326
|
c(pe, "inspectObject");
|
|
1327
1327
|
|
|
@@ -1335,13 +1335,13 @@ function ht(e, t) {
|
|
|
1335
1335
|
c(ht, "inspectClass");
|
|
1336
1336
|
|
|
1337
1337
|
// ../node_modules/loupe/lib/arguments.js
|
|
1338
|
-
function
|
|
1338
|
+
function dt(e, t) {
|
|
1339
1339
|
return e.length === 0 ? "Arguments[]" : (t.truncate -= 13, `Arguments[ ${j(e, t)} ]`);
|
|
1340
1340
|
}
|
|
1341
|
-
c(
|
|
1341
|
+
c(dt, "inspectArguments");
|
|
1342
1342
|
|
|
1343
1343
|
// ../node_modules/loupe/lib/error.js
|
|
1344
|
-
var
|
|
1344
|
+
var Qo = [
|
|
1345
1345
|
"stack",
|
|
1346
1346
|
"line",
|
|
1347
1347
|
"column",
|
|
@@ -1354,42 +1354,42 @@ var ei = [
|
|
|
1354
1354
|
"description",
|
|
1355
1355
|
"cause"
|
|
1356
1356
|
];
|
|
1357
|
-
function
|
|
1358
|
-
let n = Object.getOwnPropertyNames(e).filter((
|
|
1357
|
+
function yt(e, t) {
|
|
1358
|
+
let n = Object.getOwnPropertyNames(e).filter((i) => Qo.indexOf(i) === -1), r = e.name;
|
|
1359
1359
|
t.truncate -= r.length;
|
|
1360
1360
|
let o = "";
|
|
1361
1361
|
if (typeof e.message == "string" ? o = Y(e.message, t.truncate) : n.unshift("message"), o = o ? `: ${o}` : "", t.truncate -= o.length + 5,
|
|
1362
1362
|
t.seen = t.seen || [], t.seen.includes(e))
|
|
1363
1363
|
return "[Circular]";
|
|
1364
1364
|
t.seen.push(e);
|
|
1365
|
-
let
|
|
1366
|
-
return `${r}${o}${
|
|
1365
|
+
let s = j(n.map((i) => [i, e[i]]), t, le);
|
|
1366
|
+
return `${r}${o}${s ? ` { ${s} }` : ""}`;
|
|
1367
1367
|
}
|
|
1368
|
-
c(
|
|
1368
|
+
c(yt, "inspectObject");
|
|
1369
1369
|
|
|
1370
1370
|
// ../node_modules/loupe/lib/html.js
|
|
1371
|
-
function
|
|
1371
|
+
function es([e, t], n) {
|
|
1372
1372
|
return n.truncate -= 3, t ? `${n.stylize(String(e), "yellow")}=${n.stylize(`"${t}"`, "string")}` : `${n.stylize(String(e), "yellow")}`;
|
|
1373
1373
|
}
|
|
1374
|
-
c(
|
|
1374
|
+
c(es, "inspectAttribute");
|
|
1375
1375
|
function We(e, t) {
|
|
1376
1376
|
return j(e, t, Ve, `
|
|
1377
1377
|
`);
|
|
1378
1378
|
}
|
|
1379
1379
|
c(We, "inspectHTMLCollection");
|
|
1380
1380
|
function Ve(e, t) {
|
|
1381
|
-
let n = e.getAttributeNames(), r = e.tagName.toLowerCase(), o = t.stylize(`<${r}`, "special"),
|
|
1381
|
+
let n = e.getAttributeNames(), r = e.tagName.toLowerCase(), o = t.stylize(`<${r}`, "special"), s = t.stylize(">", "special"), i = t.stylize(
|
|
1382
1382
|
`</${r}>`, "special");
|
|
1383
1383
|
t.truncate -= r.length * 2 + 5;
|
|
1384
1384
|
let a = "";
|
|
1385
|
-
n.length > 0 && (a += " ", a += j(n.map((p) => [p, e.getAttribute(p)]), t,
|
|
1385
|
+
n.length > 0 && (a += " ", a += j(n.map((p) => [p, e.getAttribute(p)]), t, es, " ")), t.truncate -= a.length;
|
|
1386
1386
|
let l = t.truncate, m = We(e.children, t);
|
|
1387
|
-
return m && m.length > l && (m = `${ue}(${e.children.length})`), `${o}${a}${
|
|
1387
|
+
return m && m.length > l && (m = `${ue}(${e.children.length})`), `${o}${a}${s}${m}${i}`;
|
|
1388
1388
|
}
|
|
1389
1389
|
c(Ve, "inspectHTML");
|
|
1390
1390
|
|
|
1391
1391
|
// ../node_modules/loupe/lib/index.js
|
|
1392
|
-
var
|
|
1392
|
+
var ts = typeof Symbol == "function" && typeof Symbol.for == "function", bt = ts ? Symbol.for("chai/inspect") : "@@chai/inspect", Se = !1;
|
|
1393
1393
|
try {
|
|
1394
1394
|
let e = require("util");
|
|
1395
1395
|
Se = e.inspect ? e.inspect.custom : !1;
|
|
@@ -1401,14 +1401,14 @@ var Cn = /* @__PURE__ */ new WeakMap(), On = {}, $n = {
|
|
|
1401
1401
|
null: /* @__PURE__ */ c((e, t) => t.stylize("null", "null"), "null"),
|
|
1402
1402
|
boolean: /* @__PURE__ */ c((e, t) => t.stylize(String(e), "boolean"), "boolean"),
|
|
1403
1403
|
Boolean: /* @__PURE__ */ c((e, t) => t.stylize(String(e), "boolean"), "Boolean"),
|
|
1404
|
-
number:
|
|
1405
|
-
Number:
|
|
1404
|
+
number: Be,
|
|
1405
|
+
Number: Be,
|
|
1406
1406
|
bigint: ze,
|
|
1407
1407
|
BigInt: ze,
|
|
1408
1408
|
string: Ye,
|
|
1409
1409
|
String: Ye,
|
|
1410
|
-
function:
|
|
1411
|
-
Function:
|
|
1410
|
+
function: ke,
|
|
1411
|
+
Function: ke,
|
|
1412
1412
|
symbol: Ue,
|
|
1413
1413
|
// A Symbol polyfill will return `Symbol` not `symbol` from typedetect
|
|
1414
1414
|
Symbol: Ue,
|
|
@@ -1421,7 +1421,7 @@ var Cn = /* @__PURE__ */ new WeakMap(), On = {}, $n = {
|
|
|
1421
1421
|
// WeakSet, WeakMap are totally opaque to us
|
|
1422
1422
|
WeakSet: /* @__PURE__ */ c((e, t) => t.stylize("WeakSet{\u2026}", "special"), "WeakSet"),
|
|
1423
1423
|
WeakMap: /* @__PURE__ */ c((e, t) => t.stylize("WeakMap{\u2026}", "special"), "WeakMap"),
|
|
1424
|
-
Arguments:
|
|
1424
|
+
Arguments: dt,
|
|
1425
1425
|
Int8Array: oe,
|
|
1426
1426
|
Uint8Array: oe,
|
|
1427
1427
|
Uint8ClampedArray: oe,
|
|
@@ -1434,47 +1434,47 @@ var Cn = /* @__PURE__ */ new WeakMap(), On = {}, $n = {
|
|
|
1434
1434
|
Generator: /* @__PURE__ */ c(() => "", "Generator"),
|
|
1435
1435
|
DataView: /* @__PURE__ */ c(() => "", "DataView"),
|
|
1436
1436
|
ArrayBuffer: /* @__PURE__ */ c(() => "", "ArrayBuffer"),
|
|
1437
|
-
Error:
|
|
1437
|
+
Error: yt,
|
|
1438
1438
|
HTMLCollection: We,
|
|
1439
1439
|
NodeList: We
|
|
1440
|
-
},
|
|
1440
|
+
}, ns = /* @__PURE__ */ c((e, t, n) => bt in e && typeof e[bt] == "function" ? e[bt](t) : Se && Se in e && typeof e[Se] == "function" ? e[Se](
|
|
1441
1441
|
t.depth, t) : "inspect" in e && typeof e.inspect == "function" ? e.inspect(t.depth, t) : "constructor" in e && Cn.has(e.constructor) ? Cn.get(
|
|
1442
|
-
e.constructor)(e, t) : On[n] ? On[n](e, t) : "", "inspectCustom"),
|
|
1442
|
+
e.constructor)(e, t) : On[n] ? On[n](e, t) : "", "inspectCustom"), rs = Object.prototype.toString;
|
|
1443
1443
|
function qe(e, t = {}) {
|
|
1444
1444
|
let n = Sn(t, qe), { customInspect: r } = n, o = e === null ? "null" : typeof e;
|
|
1445
|
-
if (o === "object" && (o =
|
|
1445
|
+
if (o === "object" && (o = rs.call(e).slice(8, -1)), o in $n)
|
|
1446
1446
|
return $n[o](e, n);
|
|
1447
1447
|
if (r && e) {
|
|
1448
|
-
let
|
|
1449
|
-
if (
|
|
1450
|
-
return typeof
|
|
1448
|
+
let i = ns(e, n, o);
|
|
1449
|
+
if (i)
|
|
1450
|
+
return typeof i == "string" ? i : qe(i, n);
|
|
1451
1451
|
}
|
|
1452
|
-
let
|
|
1453
|
-
return
|
|
1452
|
+
let s = e ? Object.getPrototypeOf(e) : !1;
|
|
1453
|
+
return s === Object.prototype || s === null ? pe(e, n) : e && typeof HTMLElement == "function" && e instanceof HTMLElement ? Ve(e, n) : "c\
|
|
1454
1454
|
onstructor" in e ? e.constructor !== Object ? ht(e, n) : pe(e, n) : e === Object(e) ? pe(e, n) : n.stylize(String(e), o);
|
|
1455
1455
|
}
|
|
1456
1456
|
c(qe, "inspect");
|
|
1457
1457
|
|
|
1458
1458
|
// ../node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
|
|
1459
|
-
var { AsymmetricMatcher:
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1459
|
+
var { AsymmetricMatcher: ss, DOMCollection: is, DOMElement: cs, Immutable: us, ReactElement: ls, ReactTestComponent: as } = $e, wn = [
|
|
1460
|
+
as,
|
|
1461
|
+
ls,
|
|
1462
|
+
cs,
|
|
1463
|
+
is,
|
|
1464
|
+
us,
|
|
1465
|
+
ss
|
|
1466
1466
|
];
|
|
1467
1467
|
function ge(e, t = 10, { maxLength: n, ...r } = {}) {
|
|
1468
|
-
let o = n ?? 1e4,
|
|
1468
|
+
let o = n ?? 1e4, s;
|
|
1469
1469
|
try {
|
|
1470
|
-
|
|
1470
|
+
s = Q(e, {
|
|
1471
1471
|
maxDepth: t,
|
|
1472
1472
|
escapeString: !1,
|
|
1473
1473
|
plugins: wn,
|
|
1474
1474
|
...r
|
|
1475
1475
|
});
|
|
1476
1476
|
} catch {
|
|
1477
|
-
|
|
1477
|
+
s = Q(e, {
|
|
1478
1478
|
callToJSON: !1,
|
|
1479
1479
|
maxDepth: t,
|
|
1480
1480
|
escapeString: !1,
|
|
@@ -1482,44 +1482,44 @@ function ge(e, t = 10, { maxLength: n, ...r } = {}) {
|
|
|
1482
1482
|
...r
|
|
1483
1483
|
});
|
|
1484
1484
|
}
|
|
1485
|
-
return
|
|
1485
|
+
return s.length >= o && t > 1 ? ge(e, Math.floor(Math.min(t, Number.MAX_SAFE_INTEGER) / 2), {
|
|
1486
1486
|
maxLength: n,
|
|
1487
1487
|
...r
|
|
1488
|
-
}) :
|
|
1488
|
+
}) : s;
|
|
1489
1489
|
}
|
|
1490
1490
|
c(ge, "stringify");
|
|
1491
|
-
var
|
|
1491
|
+
var fs = /%[sdjifoOc%]/g;
|
|
1492
1492
|
function An(...e) {
|
|
1493
1493
|
if (typeof e[0] != "string") {
|
|
1494
|
-
let
|
|
1495
|
-
for (let
|
|
1496
|
-
|
|
1494
|
+
let s = [];
|
|
1495
|
+
for (let i = 0; i < e.length; i++)
|
|
1496
|
+
s.push(we(e[i], {
|
|
1497
1497
|
depth: 0,
|
|
1498
1498
|
colors: !1
|
|
1499
1499
|
}));
|
|
1500
|
-
return
|
|
1500
|
+
return s.join(" ");
|
|
1501
1501
|
}
|
|
1502
|
-
let t = e.length, n = 1, r = e[0], o = String(r).replace(
|
|
1503
|
-
if (
|
|
1502
|
+
let t = e.length, n = 1, r = e[0], o = String(r).replace(fs, (s) => {
|
|
1503
|
+
if (s === "%%")
|
|
1504
1504
|
return "%";
|
|
1505
1505
|
if (n >= t)
|
|
1506
|
-
return
|
|
1507
|
-
switch (
|
|
1506
|
+
return s;
|
|
1507
|
+
switch (s) {
|
|
1508
1508
|
case "%s": {
|
|
1509
|
-
let
|
|
1510
|
-
return typeof
|
|
1511
|
-
null ? typeof
|
|
1509
|
+
let i = e[n++];
|
|
1510
|
+
return typeof i == "bigint" ? `${i.toString()}n` : typeof i == "number" && i === 0 && 1 / i < 0 ? "-0" : typeof i == "object" && i !==
|
|
1511
|
+
null ? typeof i.toString == "function" && i.toString !== Object.prototype.toString ? i.toString() : we(i, {
|
|
1512
1512
|
depth: 0,
|
|
1513
1513
|
colors: !1
|
|
1514
|
-
}) : String(
|
|
1514
|
+
}) : String(i);
|
|
1515
1515
|
}
|
|
1516
1516
|
case "%d": {
|
|
1517
|
-
let
|
|
1518
|
-
return typeof
|
|
1517
|
+
let i = e[n++];
|
|
1518
|
+
return typeof i == "bigint" ? `${i.toString()}n` : Number(i).toString();
|
|
1519
1519
|
}
|
|
1520
1520
|
case "%i": {
|
|
1521
|
-
let
|
|
1522
|
-
return typeof
|
|
1521
|
+
let i = e[n++];
|
|
1522
|
+
return typeof i == "bigint" ? `${i.toString()}n` : Number.parseInt(String(i)).toString();
|
|
1523
1523
|
}
|
|
1524
1524
|
case "%f":
|
|
1525
1525
|
return Number.parseFloat(String(e[n++])).toString();
|
|
@@ -1535,18 +1535,18 @@ function An(...e) {
|
|
|
1535
1535
|
case "%j":
|
|
1536
1536
|
try {
|
|
1537
1537
|
return JSON.stringify(e[n++]);
|
|
1538
|
-
} catch (
|
|
1539
|
-
let a =
|
|
1538
|
+
} catch (i) {
|
|
1539
|
+
let a = i.message;
|
|
1540
1540
|
if (a.includes("circular structure") || a.includes("cyclic structures") || a.includes("cyclic object"))
|
|
1541
1541
|
return "[Circular]";
|
|
1542
|
-
throw
|
|
1542
|
+
throw i;
|
|
1543
1543
|
}
|
|
1544
1544
|
default:
|
|
1545
|
-
return
|
|
1545
|
+
return s;
|
|
1546
1546
|
}
|
|
1547
1547
|
});
|
|
1548
|
-
for (let
|
|
1549
|
-
|
|
1548
|
+
for (let s = e[n]; n < t; s = e[++n])
|
|
1549
|
+
s === null || typeof s != "object" ? o += ` ${s}` : o += ` ${we(s)}`;
|
|
1550
1550
|
return o;
|
|
1551
1551
|
}
|
|
1552
1552
|
c(An, "format");
|
|
@@ -1560,30 +1560,30 @@ function Rn(e) {
|
|
|
1560
1560
|
c(Rn, "getDefaultExportFromCjs");
|
|
1561
1561
|
|
|
1562
1562
|
// ../node_modules/@vitest/utils/dist/helpers.js
|
|
1563
|
-
function
|
|
1563
|
+
function ms(e) {
|
|
1564
1564
|
return e === Object.prototype || e === Function.prototype || e === RegExp.prototype;
|
|
1565
1565
|
}
|
|
1566
|
-
c(
|
|
1566
|
+
c(ms, "isFinalObj");
|
|
1567
1567
|
function Ke(e) {
|
|
1568
1568
|
return Object.prototype.toString.apply(e).slice(8, -1);
|
|
1569
1569
|
}
|
|
1570
1570
|
c(Ke, "getType");
|
|
1571
|
-
function
|
|
1571
|
+
function ps(e, t) {
|
|
1572
1572
|
let n = typeof t == "function" ? t : (r) => t.add(r);
|
|
1573
1573
|
Object.getOwnPropertyNames(e).forEach(n), Object.getOwnPropertySymbols(e).forEach(n);
|
|
1574
1574
|
}
|
|
1575
|
-
c(
|
|
1575
|
+
c(ps, "collectOwnProperties");
|
|
1576
1576
|
function Et(e) {
|
|
1577
1577
|
let t = /* @__PURE__ */ new Set();
|
|
1578
|
-
return
|
|
1578
|
+
return ms(e) ? [] : (ps(e, t), Array.from(t));
|
|
1579
1579
|
}
|
|
1580
1580
|
c(Et, "getOwnProperties");
|
|
1581
|
-
var
|
|
1582
|
-
function _t(e, t =
|
|
1581
|
+
var Pn = { forceWritable: !1 };
|
|
1582
|
+
function _t(e, t = Pn) {
|
|
1583
1583
|
return St(e, /* @__PURE__ */ new WeakMap(), t);
|
|
1584
1584
|
}
|
|
1585
1585
|
c(_t, "deepClone");
|
|
1586
|
-
function St(e, t, n =
|
|
1586
|
+
function St(e, t, n = Pn) {
|
|
1587
1587
|
let r, o;
|
|
1588
1588
|
if (t.has(e))
|
|
1589
1589
|
return t.get(e);
|
|
@@ -1594,23 +1594,23 @@ function St(e, t, n = Nn) {
|
|
|
1594
1594
|
}
|
|
1595
1595
|
if (Object.prototype.toString.call(e) === "[object Object]") {
|
|
1596
1596
|
o = Object.create(Object.getPrototypeOf(e)), t.set(e, o);
|
|
1597
|
-
let
|
|
1598
|
-
for (let
|
|
1599
|
-
let a = Object.getOwnPropertyDescriptor(e,
|
|
1597
|
+
let s = Et(e);
|
|
1598
|
+
for (let i of s) {
|
|
1599
|
+
let a = Object.getOwnPropertyDescriptor(e, i);
|
|
1600
1600
|
if (!a)
|
|
1601
1601
|
continue;
|
|
1602
|
-
let l = St(e[
|
|
1603
|
-
n.forceWritable ? Object.defineProperty(o,
|
|
1602
|
+
let l = St(e[i], t, n);
|
|
1603
|
+
n.forceWritable ? Object.defineProperty(o, i, {
|
|
1604
1604
|
enumerable: a.enumerable,
|
|
1605
1605
|
configurable: !0,
|
|
1606
1606
|
writable: !0,
|
|
1607
1607
|
value: l
|
|
1608
|
-
}) : "get" in a ? Object.defineProperty(o,
|
|
1608
|
+
}) : "get" in a ? Object.defineProperty(o, i, {
|
|
1609
1609
|
...a,
|
|
1610
1610
|
get() {
|
|
1611
1611
|
return l;
|
|
1612
1612
|
}
|
|
1613
|
-
}) : Object.defineProperty(o,
|
|
1613
|
+
}) : Object.defineProperty(o, i, {
|
|
1614
1614
|
...a,
|
|
1615
1615
|
value: l
|
|
1616
1616
|
});
|
|
@@ -1622,7 +1622,7 @@ function St(e, t, n = Nn) {
|
|
|
1622
1622
|
c(St, "clone");
|
|
1623
1623
|
|
|
1624
1624
|
// ../node_modules/@vitest/utils/dist/diff.js
|
|
1625
|
-
var U = -1,
|
|
1625
|
+
var U = -1, B = 1, x = 0, I = class {
|
|
1626
1626
|
static {
|
|
1627
1627
|
c(this, "Diff");
|
|
1628
1628
|
}
|
|
@@ -1632,26 +1632,26 @@ var U = -1, k = 1, x = 0, I = class {
|
|
|
1632
1632
|
this[0] = t, this[1] = n;
|
|
1633
1633
|
}
|
|
1634
1634
|
};
|
|
1635
|
-
function
|
|
1635
|
+
function gs(e, t) {
|
|
1636
1636
|
if (!e || !t || e.charAt(0) !== t.charAt(0))
|
|
1637
1637
|
return 0;
|
|
1638
|
-
let n = 0, r = Math.min(e.length, t.length), o = r,
|
|
1638
|
+
let n = 0, r = Math.min(e.length, t.length), o = r, s = 0;
|
|
1639
1639
|
for (; n < o; )
|
|
1640
|
-
e.substring(
|
|
1640
|
+
e.substring(s, o) === t.substring(s, o) ? (n = o, s = n) : r = o, o = Math.floor((r - n) / 2 + n);
|
|
1641
1641
|
return o;
|
|
1642
1642
|
}
|
|
1643
|
-
c(
|
|
1643
|
+
c(gs, "diff_commonPrefix");
|
|
1644
1644
|
function qn(e, t) {
|
|
1645
1645
|
if (!e || !t || e.charAt(e.length - 1) !== t.charAt(t.length - 1))
|
|
1646
1646
|
return 0;
|
|
1647
|
-
let n = 0, r = Math.min(e.length, t.length), o = r,
|
|
1647
|
+
let n = 0, r = Math.min(e.length, t.length), o = r, s = 0;
|
|
1648
1648
|
for (; n < o; )
|
|
1649
|
-
e.substring(e.length - o, e.length -
|
|
1649
|
+
e.substring(e.length - o, e.length - s) === t.substring(t.length - o, t.length - s) ? (n = o, s = n) : r = o, o = Math.floor((r - n) / 2 +
|
|
1650
1650
|
n);
|
|
1651
1651
|
return o;
|
|
1652
1652
|
}
|
|
1653
1653
|
c(qn, "diff_commonSuffix");
|
|
1654
|
-
function
|
|
1654
|
+
function Nn(e, t) {
|
|
1655
1655
|
let n = e.length, r = t.length;
|
|
1656
1656
|
if (n === 0 || r === 0)
|
|
1657
1657
|
return 0;
|
|
@@ -1659,71 +1659,71 @@ function Pn(e, t) {
|
|
|
1659
1659
|
let o = Math.min(n, r);
|
|
1660
1660
|
if (e === t)
|
|
1661
1661
|
return o;
|
|
1662
|
-
let
|
|
1662
|
+
let s = 0, i = 1;
|
|
1663
1663
|
for (; ; ) {
|
|
1664
|
-
let a = e.substring(o -
|
|
1664
|
+
let a = e.substring(o - i), l = t.indexOf(a);
|
|
1665
1665
|
if (l === -1)
|
|
1666
|
-
return
|
|
1667
|
-
|
|
1668
|
-
}
|
|
1669
|
-
}
|
|
1670
|
-
c(
|
|
1671
|
-
function
|
|
1672
|
-
let t = !1, n = [], r = 0, o = null,
|
|
1673
|
-
for (;
|
|
1674
|
-
e[
|
|
1675
|
-
o.length <= Math.max(
|
|
1676
|
-
0 ? n[r - 1] : -1,
|
|
1677
|
-
for (t && Kn(e),
|
|
1678
|
-
if (e[
|
|
1679
|
-
let p = e[
|
|
1680
|
-
b >=
|
|
1681
|
-
b), e[
|
|
1682
|
-
1][0] =
|
|
1666
|
+
return s;
|
|
1667
|
+
i += l, (l === 0 || e.substring(o - i) === t.substring(0, i)) && (s = i, i++);
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1670
|
+
c(Nn, "diff_commonOverlap_");
|
|
1671
|
+
function hs(e) {
|
|
1672
|
+
let t = !1, n = [], r = 0, o = null, s = 0, i = 0, a = 0, l = 0, m = 0;
|
|
1673
|
+
for (; s < e.length; )
|
|
1674
|
+
e[s][0] === x ? (n[r++] = s, i = l, a = m, l = 0, m = 0, o = e[s][1]) : (e[s][0] === B ? l += e[s][1].length : m += e[s][1].length, o &&
|
|
1675
|
+
o.length <= Math.max(i, a) && o.length <= Math.max(l, m) && (e.splice(n[r - 1], 0, new I(U, o)), e[n[r - 1] + 1][0] = B, r--, r--, s = r >
|
|
1676
|
+
0 ? n[r - 1] : -1, i = 0, a = 0, l = 0, m = 0, o = null, t = !0)), s++;
|
|
1677
|
+
for (t && Kn(e), bs(e), s = 1; s < e.length; ) {
|
|
1678
|
+
if (e[s - 1][0] === U && e[s][0] === B) {
|
|
1679
|
+
let p = e[s - 1][1], f = e[s][1], b = Nn(p, f), d = Nn(f, p);
|
|
1680
|
+
b >= d ? (b >= p.length / 2 || b >= f.length / 2) && (e.splice(s, 0, new I(x, f.substring(0, b))), e[s - 1][1] = p.substring(0, p.length -
|
|
1681
|
+
b), e[s + 1][1] = f.substring(b), s++) : (d >= p.length / 2 || d >= f.length / 2) && (e.splice(s, 0, new I(x, p.substring(0, d))), e[s -
|
|
1682
|
+
1][0] = B, e[s - 1][1] = f.substring(0, f.length - d), e[s + 1][0] = U, e[s + 1][1] = p.substring(d), s++), s++;
|
|
1683
1683
|
}
|
|
1684
|
-
|
|
1684
|
+
s++;
|
|
1685
1685
|
}
|
|
1686
1686
|
}
|
|
1687
|
-
c(
|
|
1688
|
-
var In = /[^a-z0-9]/i, Mn = /\s/, Ln = /[\r\n]/,
|
|
1689
|
-
function
|
|
1687
|
+
c(hs, "diff_cleanupSemantic");
|
|
1688
|
+
var In = /[^a-z0-9]/i, Mn = /\s/, Ln = /[\r\n]/, ds = /\n\r?\n$/, ys = /^\r?\n\r?\n/;
|
|
1689
|
+
function bs(e) {
|
|
1690
1690
|
let t = 1;
|
|
1691
1691
|
for (; t < e.length - 1; ) {
|
|
1692
1692
|
if (e[t - 1][0] === x && e[t + 1][0] === x) {
|
|
1693
|
-
let n = e[t - 1][1], r = e[t][1], o = e[t + 1][1],
|
|
1694
|
-
if (
|
|
1695
|
-
let p = r.substring(r.length -
|
|
1696
|
-
n = n.substring(0, n.length -
|
|
1693
|
+
let n = e[t - 1][1], r = e[t][1], o = e[t + 1][1], s = qn(n, r);
|
|
1694
|
+
if (s) {
|
|
1695
|
+
let p = r.substring(r.length - s);
|
|
1696
|
+
n = n.substring(0, n.length - s), r = p + r.substring(0, r.length - s), o = p + o;
|
|
1697
1697
|
}
|
|
1698
|
-
let
|
|
1698
|
+
let i = n, a = r, l = o, m = Ge(n, r) + Ge(r, o);
|
|
1699
1699
|
for (; r.charAt(0) === o.charAt(0); ) {
|
|
1700
1700
|
n += r.charAt(0), r = r.substring(1) + o.charAt(0), o = o.substring(1);
|
|
1701
1701
|
let p = Ge(n, r) + Ge(r, o);
|
|
1702
|
-
p >= m && (m = p,
|
|
1702
|
+
p >= m && (m = p, i = n, a = r, l = o);
|
|
1703
1703
|
}
|
|
1704
|
-
e[t - 1][1] !==
|
|
1704
|
+
e[t - 1][1] !== i && (i ? e[t - 1][1] = i : (e.splice(t - 1, 1), t--), e[t][1] = a, l ? e[t + 1][1] = l : (e.splice(t + 1, 1), t--));
|
|
1705
1705
|
}
|
|
1706
1706
|
t++;
|
|
1707
1707
|
}
|
|
1708
1708
|
}
|
|
1709
|
-
c(
|
|
1709
|
+
c(bs, "diff_cleanupSemanticLossless");
|
|
1710
1710
|
function Kn(e) {
|
|
1711
1711
|
e.push(new I(x, ""));
|
|
1712
|
-
let t = 0, n = 0, r = 0, o = "",
|
|
1712
|
+
let t = 0, n = 0, r = 0, o = "", s = "", i;
|
|
1713
1713
|
for (; t < e.length; )
|
|
1714
1714
|
switch (e[t][0]) {
|
|
1715
|
-
case
|
|
1716
|
-
r++,
|
|
1715
|
+
case B:
|
|
1716
|
+
r++, s += e[t][1], t++;
|
|
1717
1717
|
break;
|
|
1718
1718
|
case U:
|
|
1719
1719
|
n++, o += e[t][1], t++;
|
|
1720
1720
|
break;
|
|
1721
1721
|
case x:
|
|
1722
|
-
n + r > 1 ? (n !== 0 && r !== 0 && (
|
|
1723
|
-
substring(0,
|
|
1724
|
-
(e[t][1] =
|
|
1725
|
-
splice(t, n + r), o.length && (e.splice(t, 0, new I(U, o)), t++),
|
|
1726
|
-
1][0] === x ? (e[t - 1][1] += e[t][1], e.splice(t, 1)) : t++, r = 0, n = 0, o = "",
|
|
1722
|
+
n + r > 1 ? (n !== 0 && r !== 0 && (i = gs(s, o), i !== 0 && (t - n - r > 0 && e[t - n - r - 1][0] === x ? e[t - n - r - 1][1] += s.
|
|
1723
|
+
substring(0, i) : (e.splice(0, 0, new I(x, s.substring(0, i))), t++), s = s.substring(i), o = o.substring(i)), i = qn(s, o), i !== 0 &&
|
|
1724
|
+
(e[t][1] = s.substring(s.length - i) + e[t][1], s = s.substring(0, s.length - i), o = o.substring(0, o.length - i))), t -= n + r, e.
|
|
1725
|
+
splice(t, n + r), o.length && (e.splice(t, 0, new I(U, o)), t++), s.length && (e.splice(t, 0, new I(B, s)), t++), t++) : t !== 0 && e[t -
|
|
1726
|
+
1][0] === x ? (e[t - 1][1] += e[t][1], e.splice(t, 1)) : t++, r = 0, n = 0, o = "", s = "";
|
|
1727
1727
|
break;
|
|
1728
1728
|
}
|
|
1729
1729
|
e[e.length - 1][1] === "" && e.pop();
|
|
@@ -1739,62 +1739,62 @@ c(Kn, "diff_cleanupMerge");
|
|
|
1739
1739
|
function Ge(e, t) {
|
|
1740
1740
|
if (!e || !t)
|
|
1741
1741
|
return 6;
|
|
1742
|
-
let n = e.charAt(e.length - 1), r = t.charAt(0), o = n.match(In),
|
|
1743
|
-
match(Ln), m = a && r.match(Ln), p = l && e.match(
|
|
1744
|
-
return p || f ? 5 : l || m ? 4 : o && !
|
|
1742
|
+
let n = e.charAt(e.length - 1), r = t.charAt(0), o = n.match(In), s = r.match(In), i = o && n.match(Mn), a = s && r.match(Mn), l = i && n.
|
|
1743
|
+
match(Ln), m = a && r.match(Ln), p = l && e.match(ds), f = m && t.match(ys);
|
|
1744
|
+
return p || f ? 5 : l || m ? 4 : o && !i && a ? 3 : i || a ? 2 : o || s ? 1 : 0;
|
|
1745
1745
|
}
|
|
1746
1746
|
c(Ge, "diff_cleanupSemanticScore_");
|
|
1747
|
-
var Gn = "Compared values have no visual difference.",
|
|
1747
|
+
var Gn = "Compared values have no visual difference.", Ss = "Compared values serialize to the same structure.\nPrinting internal object struc\
|
|
1748
1748
|
ture without calling `toJSON` instead.", He = {}, xn;
|
|
1749
|
-
function
|
|
1749
|
+
function Es() {
|
|
1750
1750
|
if (xn) return He;
|
|
1751
1751
|
xn = 1, Object.defineProperty(He, "__esModule", {
|
|
1752
1752
|
value: !0
|
|
1753
1753
|
}), He.default = b;
|
|
1754
|
-
let e = "diff-sequences", t = 0, n = /* @__PURE__ */ c((
|
|
1754
|
+
let e = "diff-sequences", t = 0, n = /* @__PURE__ */ c((d, g, u, h, S) => {
|
|
1755
1755
|
let _ = 0;
|
|
1756
|
-
for (;
|
|
1757
|
-
|
|
1756
|
+
for (; d < g && u < h && S(d, u); )
|
|
1757
|
+
d += 1, u += 1, _ += 1;
|
|
1758
1758
|
return _;
|
|
1759
|
-
}, "countCommonItemsF"), r = /* @__PURE__ */ c((
|
|
1759
|
+
}, "countCommonItemsF"), r = /* @__PURE__ */ c((d, g, u, h, S) => {
|
|
1760
1760
|
let _ = 0;
|
|
1761
|
-
for (;
|
|
1761
|
+
for (; d <= g && u <= h && S(g, h); )
|
|
1762
1762
|
g -= 1, h -= 1, _ += 1;
|
|
1763
1763
|
return _;
|
|
1764
|
-
}, "countCommonItemsR"), o = /* @__PURE__ */ c((
|
|
1765
|
-
let
|
|
1766
|
-
_[
|
|
1764
|
+
}, "countCommonItemsR"), o = /* @__PURE__ */ c((d, g, u, h, S, _, O) => {
|
|
1765
|
+
let y = 0, E = -d, $ = _[y], T = $;
|
|
1766
|
+
_[y] += n(
|
|
1767
1767
|
$ + 1,
|
|
1768
1768
|
g,
|
|
1769
1769
|
h + $ - E + 1,
|
|
1770
1770
|
u,
|
|
1771
1771
|
S
|
|
1772
1772
|
);
|
|
1773
|
-
let R =
|
|
1774
|
-
for (
|
|
1775
|
-
if (
|
|
1776
|
-
$ = _[
|
|
1773
|
+
let R = d < O ? d : O;
|
|
1774
|
+
for (y += 1, E += 2; y <= R; y += 1, E += 2) {
|
|
1775
|
+
if (y !== d && T < _[y])
|
|
1776
|
+
$ = _[y];
|
|
1777
1777
|
else if ($ = T + 1, g <= $)
|
|
1778
|
-
return
|
|
1779
|
-
T = _[
|
|
1778
|
+
return y - 1;
|
|
1779
|
+
T = _[y], _[y] = $ + n($ + 1, g, h + $ - E + 1, u, S);
|
|
1780
1780
|
}
|
|
1781
1781
|
return O;
|
|
1782
|
-
}, "extendPathsF"),
|
|
1783
|
-
let
|
|
1784
|
-
_[
|
|
1782
|
+
}, "extendPathsF"), s = /* @__PURE__ */ c((d, g, u, h, S, _, O) => {
|
|
1783
|
+
let y = 0, E = d, $ = _[y], T = $;
|
|
1784
|
+
_[y] -= r(
|
|
1785
1785
|
g,
|
|
1786
1786
|
$ - 1,
|
|
1787
1787
|
u,
|
|
1788
1788
|
h + $ - E - 1,
|
|
1789
1789
|
S
|
|
1790
1790
|
);
|
|
1791
|
-
let R =
|
|
1792
|
-
for (
|
|
1793
|
-
if (
|
|
1794
|
-
$ = _[
|
|
1791
|
+
let R = d < O ? d : O;
|
|
1792
|
+
for (y += 1, E -= 2; y <= R; y += 1, E -= 2) {
|
|
1793
|
+
if (y !== d && _[y] < T)
|
|
1794
|
+
$ = _[y];
|
|
1795
1795
|
else if ($ = T - 1, $ < g)
|
|
1796
|
-
return
|
|
1797
|
-
T = _[
|
|
1796
|
+
return y - 1;
|
|
1797
|
+
T = _[y], _[y] = $ - r(
|
|
1798
1798
|
g,
|
|
1799
1799
|
$ - 1,
|
|
1800
1800
|
u,
|
|
@@ -1803,77 +1803,77 @@ function _i() {
|
|
|
1803
1803
|
);
|
|
1804
1804
|
}
|
|
1805
1805
|
return O;
|
|
1806
|
-
}, "extendPathsR"),
|
|
1807
|
-
let R = h - g, J = u - g, L = S - h - J, z = -L - (
|
|
1808
|
-
for (let D = 0, F = -
|
|
1809
|
-
let Z = D === 0 || D !==
|
|
1810
|
-
|
|
1806
|
+
}, "extendPathsR"), i = /* @__PURE__ */ c((d, g, u, h, S, _, O, y, E, $, T) => {
|
|
1807
|
+
let R = h - g, J = u - g, L = S - h - J, z = -L - (d - 1), X = -L + (d - 1), W = t, M = d < y ? d : y;
|
|
1808
|
+
for (let D = 0, F = -d; D <= M; D += 1, F += 2) {
|
|
1809
|
+
let Z = D === 0 || D !== d && W < O[D], k = Z ? O[D] : W, q = Z ? k : k + 1, se = R + q - F, K = n(
|
|
1810
|
+
q + 1,
|
|
1811
1811
|
u,
|
|
1812
|
-
|
|
1812
|
+
se + 1,
|
|
1813
1813
|
S,
|
|
1814
1814
|
_
|
|
1815
|
-
),
|
|
1816
|
-
if (
|
|
1817
|
-
let ce = (
|
|
1818
|
-
if (ce <= $ && E[ce] - 1 <=
|
|
1819
|
-
let v = R +
|
|
1815
|
+
), G = q + K;
|
|
1816
|
+
if (W = O[D], O[D] = G, z <= F && F <= X) {
|
|
1817
|
+
let ce = (d - 1 - (F + L)) / 2;
|
|
1818
|
+
if (ce <= $ && E[ce] - 1 <= G) {
|
|
1819
|
+
let v = R + k - (Z ? F + 1 : F - 1), V = r(
|
|
1820
1820
|
g,
|
|
1821
|
-
|
|
1821
|
+
k,
|
|
1822
1822
|
h,
|
|
1823
1823
|
v,
|
|
1824
1824
|
_
|
|
1825
|
-
),
|
|
1826
|
-
T.nChangePreceding =
|
|
1827
|
-
Te), T.nCommonPreceding =
|
|
1828
|
-
aCommonFollowing =
|
|
1829
|
-
let Ae =
|
|
1830
|
-
return T.nChangeFollowing =
|
|
1825
|
+
), ie = k - V, ye = v - V, ae = ie + 1, Te = ye + 1;
|
|
1826
|
+
T.nChangePreceding = d - 1, d - 1 === ae + Te - g - h ? (T.aEndPreceding = g, T.bEndPreceding = h) : (T.aEndPreceding = ae, T.bEndPreceding =
|
|
1827
|
+
Te), T.nCommonPreceding = V, V !== 0 && (T.aCommonPreceding = ae, T.bCommonPreceding = Te), T.nCommonFollowing = K, K !== 0 && (T.
|
|
1828
|
+
aCommonFollowing = q + 1, T.bCommonFollowing = se + 1);
|
|
1829
|
+
let Ae = G + 1, Re = se + K + 1;
|
|
1830
|
+
return T.nChangeFollowing = d - 1, d - 1 === u + S - Ae - Re ? (T.aStartFollowing = u, T.bStartFollowing = S) : (T.aStartFollowing =
|
|
1831
1831
|
Ae, T.bStartFollowing = Re), !0;
|
|
1832
1832
|
}
|
|
1833
1833
|
}
|
|
1834
1834
|
}
|
|
1835
1835
|
return !1;
|
|
1836
|
-
}, "extendOverlappablePathsF"), a = /* @__PURE__ */ c((
|
|
1837
|
-
let R = S - u, J = u - g, L = S - h - J, z = L -
|
|
1838
|
-
for (let D = 0, F =
|
|
1839
|
-
let Z = D === 0 || D !==
|
|
1836
|
+
}, "extendOverlappablePathsF"), a = /* @__PURE__ */ c((d, g, u, h, S, _, O, y, E, $, T) => {
|
|
1837
|
+
let R = S - u, J = u - g, L = S - h - J, z = L - d, X = L + d, W = t, M = d < $ ? d : $;
|
|
1838
|
+
for (let D = 0, F = d; D <= M; D += 1, F -= 2) {
|
|
1839
|
+
let Z = D === 0 || D !== d && E[D] < W, k = Z ? E[D] : W, q = Z ? k : k - 1, se = R + q - F, K = r(
|
|
1840
1840
|
g,
|
|
1841
|
-
|
|
1841
|
+
q - 1,
|
|
1842
1842
|
h,
|
|
1843
|
-
|
|
1843
|
+
se - 1,
|
|
1844
1844
|
_
|
|
1845
|
-
),
|
|
1846
|
-
if (
|
|
1847
|
-
let ce = (
|
|
1848
|
-
if (ce <=
|
|
1849
|
-
let v =
|
|
1850
|
-
if (T.nChangePreceding =
|
|
1851
|
-
v), T.nCommonPreceding =
|
|
1845
|
+
), G = q - K;
|
|
1846
|
+
if (W = E[D], E[D] = G, z <= F && F <= X) {
|
|
1847
|
+
let ce = (d + (F - L)) / 2;
|
|
1848
|
+
if (ce <= y && G - 1 <= O[ce]) {
|
|
1849
|
+
let v = se - K;
|
|
1850
|
+
if (T.nChangePreceding = d, d === G + v - g - h ? (T.aEndPreceding = g, T.bEndPreceding = h) : (T.aEndPreceding = G, T.bEndPreceding =
|
|
1851
|
+
v), T.nCommonPreceding = K, K !== 0 && (T.aCommonPreceding = G, T.bCommonPreceding = v), T.nChangeFollowing = d - 1, d === 1)
|
|
1852
1852
|
T.nCommonFollowing = 0, T.aStartFollowing = u, T.bStartFollowing = S;
|
|
1853
1853
|
else {
|
|
1854
|
-
let
|
|
1855
|
-
|
|
1854
|
+
let V = R + k - (Z ? F - 1 : F + 1), ie = n(
|
|
1855
|
+
k,
|
|
1856
1856
|
u,
|
|
1857
|
-
|
|
1857
|
+
V,
|
|
1858
1858
|
S,
|
|
1859
1859
|
_
|
|
1860
1860
|
);
|
|
1861
|
-
T.nCommonFollowing =
|
|
1862
|
-
let
|
|
1863
|
-
|
|
1861
|
+
T.nCommonFollowing = ie, ie !== 0 && (T.aCommonFollowing = k, T.bCommonFollowing = V);
|
|
1862
|
+
let ye = k + ie, ae = V + ie;
|
|
1863
|
+
d - 1 === u + S - ye - ae ? (T.aStartFollowing = u, T.bStartFollowing = S) : (T.aStartFollowing = ye, T.bStartFollowing = ae);
|
|
1864
1864
|
}
|
|
1865
1865
|
return !0;
|
|
1866
1866
|
}
|
|
1867
1867
|
}
|
|
1868
1868
|
}
|
|
1869
1869
|
return !1;
|
|
1870
|
-
}, "extendOverlappablePathsR"), l = /* @__PURE__ */ c((
|
|
1870
|
+
}, "extendOverlappablePathsR"), l = /* @__PURE__ */ c((d, g, u, h, S, _, O, y, E) => {
|
|
1871
1871
|
let $ = h - g, T = S - u, R = u - g, J = S - h, te = J - R, L = R, z = R;
|
|
1872
|
-
if (O[0] = g - 1,
|
|
1873
|
-
let X = (
|
|
1874
|
-
for (let M = 1; M <=
|
|
1872
|
+
if (O[0] = g - 1, y[0] = u, te % 2 === 0) {
|
|
1873
|
+
let X = (d || te) / 2, W = (R + J) / 2;
|
|
1874
|
+
for (let M = 1; M <= W; M += 1)
|
|
1875
1875
|
if (L = o(M, u, S, $, _, O, L), M < X)
|
|
1876
|
-
z =
|
|
1876
|
+
z = s(M, g, h, T, _, y, z);
|
|
1877
1877
|
else if (
|
|
1878
1878
|
// If a reverse path overlaps a forward path in the same diagonal,
|
|
1879
1879
|
// return a division of the index intervals at the middle change.
|
|
@@ -1886,29 +1886,29 @@ function _i() {
|
|
|
1886
1886
|
_,
|
|
1887
1887
|
O,
|
|
1888
1888
|
L,
|
|
1889
|
-
|
|
1889
|
+
y,
|
|
1890
1890
|
z,
|
|
1891
1891
|
E
|
|
1892
1892
|
)
|
|
1893
1893
|
)
|
|
1894
1894
|
return;
|
|
1895
1895
|
} else {
|
|
1896
|
-
let X = ((
|
|
1897
|
-
for (L = o(M, u, S, $, _, O, L), M += 1; M <=
|
|
1898
|
-
if (z =
|
|
1896
|
+
let X = ((d || te) + 1) / 2, W = (R + J + 1) / 2, M = 1;
|
|
1897
|
+
for (L = o(M, u, S, $, _, O, L), M += 1; M <= W; M += 1)
|
|
1898
|
+
if (z = s(
|
|
1899
1899
|
M - 1,
|
|
1900
1900
|
g,
|
|
1901
1901
|
h,
|
|
1902
1902
|
T,
|
|
1903
1903
|
_,
|
|
1904
|
-
|
|
1904
|
+
y,
|
|
1905
1905
|
z
|
|
1906
1906
|
), M < X)
|
|
1907
1907
|
L = o(M, u, S, $, _, O, L);
|
|
1908
1908
|
else if (
|
|
1909
1909
|
// If a forward path overlaps a reverse path in the same diagonal,
|
|
1910
1910
|
// return a division of the index intervals at the middle change.
|
|
1911
|
-
|
|
1911
|
+
i(
|
|
1912
1912
|
M,
|
|
1913
1913
|
g,
|
|
1914
1914
|
u,
|
|
@@ -1917,7 +1917,7 @@ function _i() {
|
|
|
1917
1917
|
_,
|
|
1918
1918
|
O,
|
|
1919
1919
|
L,
|
|
1920
|
-
|
|
1920
|
+
y,
|
|
1921
1921
|
z,
|
|
1922
1922
|
E
|
|
1923
1923
|
)
|
|
@@ -1927,29 +1927,29 @@ function _i() {
|
|
|
1927
1927
|
throw new Error(
|
|
1928
1928
|
`${e}: no overlap aStart=${g} aEnd=${u} bStart=${h} bEnd=${S}`
|
|
1929
1929
|
);
|
|
1930
|
-
}, "divide"), m = /* @__PURE__ */ c((
|
|
1930
|
+
}, "divide"), m = /* @__PURE__ */ c((d, g, u, h, S, _, O, y, E, $) => {
|
|
1931
1931
|
if (S - h < u - g) {
|
|
1932
1932
|
if (_ = !_, _ && O.length === 1) {
|
|
1933
|
-
let { foundSubsequence:
|
|
1933
|
+
let { foundSubsequence: G, isCommon: ce } = O[0];
|
|
1934
1934
|
O[1] = {
|
|
1935
|
-
foundSubsequence: /* @__PURE__ */ c((v,
|
|
1936
|
-
|
|
1935
|
+
foundSubsequence: /* @__PURE__ */ c((v, V, ie) => {
|
|
1936
|
+
G(v, ie, V);
|
|
1937
1937
|
}, "foundSubsequence"),
|
|
1938
|
-
isCommon: /* @__PURE__ */ c((v,
|
|
1938
|
+
isCommon: /* @__PURE__ */ c((v, V) => ce(V, v), "isCommon")
|
|
1939
1939
|
};
|
|
1940
1940
|
}
|
|
1941
|
-
let
|
|
1942
|
-
g = h, u = S, h =
|
|
1941
|
+
let se = g, K = u;
|
|
1942
|
+
g = h, u = S, h = se, S = K;
|
|
1943
1943
|
}
|
|
1944
1944
|
let { foundSubsequence: T, isCommon: R } = O[_ ? 1 : 0];
|
|
1945
1945
|
l(
|
|
1946
|
-
|
|
1946
|
+
d,
|
|
1947
1947
|
g,
|
|
1948
1948
|
u,
|
|
1949
1949
|
h,
|
|
1950
1950
|
S,
|
|
1951
1951
|
R,
|
|
1952
|
-
|
|
1952
|
+
y,
|
|
1953
1953
|
E,
|
|
1954
1954
|
$
|
|
1955
1955
|
);
|
|
@@ -1959,13 +1959,13 @@ function _i() {
|
|
|
1959
1959
|
bEndPreceding: L,
|
|
1960
1960
|
nCommonPreceding: z,
|
|
1961
1961
|
aCommonPreceding: X,
|
|
1962
|
-
bCommonPreceding:
|
|
1962
|
+
bCommonPreceding: W,
|
|
1963
1963
|
nCommonFollowing: M,
|
|
1964
1964
|
aCommonFollowing: D,
|
|
1965
1965
|
bCommonFollowing: F,
|
|
1966
1966
|
nChangeFollowing: Z,
|
|
1967
|
-
aStartFollowing:
|
|
1968
|
-
bStartFollowing:
|
|
1967
|
+
aStartFollowing: k,
|
|
1968
|
+
bStartFollowing: q
|
|
1969
1969
|
} = $;
|
|
1970
1970
|
g < te && h < L && m(
|
|
1971
1971
|
J,
|
|
@@ -1975,45 +1975,45 @@ function _i() {
|
|
|
1975
1975
|
L,
|
|
1976
1976
|
_,
|
|
1977
1977
|
O,
|
|
1978
|
-
|
|
1978
|
+
y,
|
|
1979
1979
|
E,
|
|
1980
1980
|
$
|
|
1981
|
-
), z !== 0 && T(z, X,
|
|
1981
|
+
), z !== 0 && T(z, X, W), M !== 0 && T(M, D, F), k < u && q < S && m(
|
|
1982
1982
|
Z,
|
|
1983
|
-
|
|
1983
|
+
k,
|
|
1984
1984
|
u,
|
|
1985
|
-
|
|
1985
|
+
q,
|
|
1986
1986
|
S,
|
|
1987
1987
|
_,
|
|
1988
1988
|
O,
|
|
1989
|
-
|
|
1989
|
+
y,
|
|
1990
1990
|
E,
|
|
1991
1991
|
$
|
|
1992
1992
|
);
|
|
1993
|
-
}, "findSubsequences"), p = /* @__PURE__ */ c((
|
|
1993
|
+
}, "findSubsequences"), p = /* @__PURE__ */ c((d, g) => {
|
|
1994
1994
|
if (typeof g != "number")
|
|
1995
|
-
throw new TypeError(`${e}: ${
|
|
1995
|
+
throw new TypeError(`${e}: ${d} typeof ${typeof g} is not a number`);
|
|
1996
1996
|
if (!Number.isSafeInteger(g))
|
|
1997
|
-
throw new RangeError(`${e}: ${
|
|
1997
|
+
throw new RangeError(`${e}: ${d} value ${g} is not a safe integer`);
|
|
1998
1998
|
if (g < 0)
|
|
1999
|
-
throw new RangeError(`${e}: ${
|
|
2000
|
-
}, "validateLength"), f = /* @__PURE__ */ c((
|
|
1999
|
+
throw new RangeError(`${e}: ${d} value ${g} is a negative integer`);
|
|
2000
|
+
}, "validateLength"), f = /* @__PURE__ */ c((d, g) => {
|
|
2001
2001
|
let u = typeof g;
|
|
2002
2002
|
if (u !== "function")
|
|
2003
|
-
throw new TypeError(`${e}: ${
|
|
2003
|
+
throw new TypeError(`${e}: ${d} typeof ${u} is not a function`);
|
|
2004
2004
|
}, "validateCallback");
|
|
2005
|
-
function b(
|
|
2006
|
-
p("aLength",
|
|
2007
|
-
let S = n(0,
|
|
2008
|
-
if (S !== 0 && h(S, 0, 0),
|
|
2009
|
-
let _ = S, O = S,
|
|
2005
|
+
function b(d, g, u, h) {
|
|
2006
|
+
p("aLength", d), p("bLength", g), f("isCommon", u), f("foundSubsequence", h);
|
|
2007
|
+
let S = n(0, d, 0, g, u);
|
|
2008
|
+
if (S !== 0 && h(S, 0, 0), d !== S || g !== S) {
|
|
2009
|
+
let _ = S, O = S, y = r(
|
|
2010
2010
|
_,
|
|
2011
|
-
|
|
2011
|
+
d - 1,
|
|
2012
2012
|
O,
|
|
2013
2013
|
g - 1,
|
|
2014
2014
|
u
|
|
2015
|
-
), E =
|
|
2016
|
-
|
|
2015
|
+
), E = d - y, $ = g - y, T = S + y;
|
|
2016
|
+
d !== T && g !== T && m(
|
|
2017
2017
|
0,
|
|
2018
2018
|
_,
|
|
2019
2019
|
E,
|
|
@@ -2042,124 +2042,124 @@ function _i() {
|
|
|
2042
2042
|
nCommonFollowing: t,
|
|
2043
2043
|
nCommonPreceding: t
|
|
2044
2044
|
}
|
|
2045
|
-
),
|
|
2045
|
+
), y !== 0 && h(y, E, $);
|
|
2046
2046
|
}
|
|
2047
2047
|
}
|
|
2048
2048
|
return c(b, "diffSequence"), He;
|
|
2049
2049
|
}
|
|
2050
|
-
c(
|
|
2051
|
-
var
|
|
2052
|
-
function
|
|
2050
|
+
c(Es, "requireBuild");
|
|
2051
|
+
var _s = Es(), Hn = /* @__PURE__ */ Rn(_s);
|
|
2052
|
+
function Ts(e, t) {
|
|
2053
2053
|
return e.replace(/\s+$/, (n) => t(n));
|
|
2054
2054
|
}
|
|
2055
|
-
c(
|
|
2056
|
-
function Rt(e, t, n, r, o,
|
|
2057
|
-
return e.length !== 0 ? n(`${r} ${
|
|
2055
|
+
c(Ts, "formatTrailingSpaces");
|
|
2056
|
+
function Rt(e, t, n, r, o, s) {
|
|
2057
|
+
return e.length !== 0 ? n(`${r} ${Ts(e, o)}`) : r !== " " ? n(r) : t && s.length !== 0 ? n(`${r} ${s}`) : "";
|
|
2058
2058
|
}
|
|
2059
2059
|
c(Rt, "printDiffLine");
|
|
2060
|
-
function Jn(e, t, { aColor: n, aIndicator: r, changeLineTrailingSpaceColor: o, emptyFirstOrLastLinePlaceholder:
|
|
2061
|
-
return Rt(e, t, n, r, o,
|
|
2060
|
+
function Jn(e, t, { aColor: n, aIndicator: r, changeLineTrailingSpaceColor: o, emptyFirstOrLastLinePlaceholder: s }) {
|
|
2061
|
+
return Rt(e, t, n, r, o, s);
|
|
2062
2062
|
}
|
|
2063
2063
|
c(Jn, "printDeleteLine");
|
|
2064
|
-
function Xn(e, t, { bColor: n, bIndicator: r, changeLineTrailingSpaceColor: o, emptyFirstOrLastLinePlaceholder:
|
|
2065
|
-
return Rt(e, t, n, r, o,
|
|
2064
|
+
function Xn(e, t, { bColor: n, bIndicator: r, changeLineTrailingSpaceColor: o, emptyFirstOrLastLinePlaceholder: s }) {
|
|
2065
|
+
return Rt(e, t, n, r, o, s);
|
|
2066
2066
|
}
|
|
2067
2067
|
c(Xn, "printInsertLine");
|
|
2068
|
-
function Zn(e, t, { commonColor: n, commonIndicator: r, commonLineTrailingSpaceColor: o, emptyFirstOrLastLinePlaceholder:
|
|
2069
|
-
return Rt(e, t, n, r, o,
|
|
2068
|
+
function Zn(e, t, { commonColor: n, commonIndicator: r, commonLineTrailingSpaceColor: o, emptyFirstOrLastLinePlaceholder: s }) {
|
|
2069
|
+
return Rt(e, t, n, r, o, s);
|
|
2070
2070
|
}
|
|
2071
2071
|
c(Zn, "printCommonLine");
|
|
2072
2072
|
function Dn(e, t, n, r, { patchColor: o }) {
|
|
2073
2073
|
return o(`@@ -${e + 1},${t - e} +${n + 1},${r - n} @@`);
|
|
2074
2074
|
}
|
|
2075
2075
|
c(Dn, "createPatchMark");
|
|
2076
|
-
function
|
|
2077
|
-
let n = e.length, r = t.contextLines, o = r + r,
|
|
2076
|
+
function Cs(e, t) {
|
|
2077
|
+
let n = e.length, r = t.contextLines, o = r + r, s = n, i = !1, a = 0, l = 0;
|
|
2078
2078
|
for (; l !== n; ) {
|
|
2079
|
-
let
|
|
2079
|
+
let y = l;
|
|
2080
2080
|
for (; l !== n && e[l][0] === x; )
|
|
2081
2081
|
l += 1;
|
|
2082
|
-
if (
|
|
2083
|
-
if (
|
|
2084
|
-
l > r && (
|
|
2082
|
+
if (y !== l)
|
|
2083
|
+
if (y === 0)
|
|
2084
|
+
l > r && (s -= l - r, i = !0);
|
|
2085
2085
|
else if (l === n) {
|
|
2086
|
-
let E = l -
|
|
2087
|
-
E > r && (
|
|
2086
|
+
let E = l - y;
|
|
2087
|
+
E > r && (s -= E - r, i = !0);
|
|
2088
2088
|
} else {
|
|
2089
|
-
let E = l -
|
|
2090
|
-
E > o && (
|
|
2089
|
+
let E = l - y;
|
|
2090
|
+
E > o && (s -= E - o, a += 1);
|
|
2091
2091
|
}
|
|
2092
2092
|
for (; l !== n && e[l][0] !== x; )
|
|
2093
2093
|
l += 1;
|
|
2094
2094
|
}
|
|
2095
|
-
let m = a !== 0 ||
|
|
2096
|
-
a !== 0 ?
|
|
2097
|
-
let p =
|
|
2095
|
+
let m = a !== 0 || i;
|
|
2096
|
+
a !== 0 ? s += a + 1 : i && (s += 1);
|
|
2097
|
+
let p = s - 1, f = [], b = 0;
|
|
2098
2098
|
m && f.push("");
|
|
2099
|
-
let
|
|
2099
|
+
let d = 0, g = 0, u = 0, h = 0, S = /* @__PURE__ */ c((y) => {
|
|
2100
2100
|
let E = f.length;
|
|
2101
|
-
f.push(Zn(
|
|
2102
|
-
}, "pushCommonLine"), _ = /* @__PURE__ */ c((
|
|
2101
|
+
f.push(Zn(y, E === 0 || E === p, t)), u += 1, h += 1;
|
|
2102
|
+
}, "pushCommonLine"), _ = /* @__PURE__ */ c((y) => {
|
|
2103
2103
|
let E = f.length;
|
|
2104
|
-
f.push(Jn(
|
|
2105
|
-
}, "pushDeleteLine"), O = /* @__PURE__ */ c((
|
|
2104
|
+
f.push(Jn(y, E === 0 || E === p, t)), u += 1;
|
|
2105
|
+
}, "pushDeleteLine"), O = /* @__PURE__ */ c((y) => {
|
|
2106
2106
|
let E = f.length;
|
|
2107
|
-
f.push(Xn(
|
|
2107
|
+
f.push(Xn(y, E === 0 || E === p, t)), h += 1;
|
|
2108
2108
|
}, "pushInsertLine");
|
|
2109
2109
|
for (l = 0; l !== n; ) {
|
|
2110
|
-
let
|
|
2110
|
+
let y = l;
|
|
2111
2111
|
for (; l !== n && e[l][0] === x; )
|
|
2112
2112
|
l += 1;
|
|
2113
|
-
if (
|
|
2114
|
-
if (
|
|
2115
|
-
l > r && (
|
|
2116
|
-
for (let E =
|
|
2113
|
+
if (y !== l)
|
|
2114
|
+
if (y === 0) {
|
|
2115
|
+
l > r && (y = l - r, d = y, g = y, u = d, h = g);
|
|
2116
|
+
for (let E = y; E !== l; E += 1)
|
|
2117
2117
|
S(e[E][1]);
|
|
2118
2118
|
} else if (l === n) {
|
|
2119
|
-
let E = l -
|
|
2120
|
-
for (let $ =
|
|
2119
|
+
let E = l - y > r ? y + r : l;
|
|
2120
|
+
for (let $ = y; $ !== E; $ += 1)
|
|
2121
2121
|
S(e[$][1]);
|
|
2122
2122
|
} else {
|
|
2123
|
-
let E = l -
|
|
2123
|
+
let E = l - y;
|
|
2124
2124
|
if (E > o) {
|
|
2125
|
-
let $ =
|
|
2126
|
-
for (let R =
|
|
2125
|
+
let $ = y + r;
|
|
2126
|
+
for (let R = y; R !== $; R += 1)
|
|
2127
2127
|
S(e[R][1]);
|
|
2128
|
-
f[b] = Dn(
|
|
2128
|
+
f[b] = Dn(d, u, g, h, t), b = f.length, f.push("");
|
|
2129
2129
|
let T = E - o;
|
|
2130
|
-
|
|
2130
|
+
d = u + T, g = h + T, u = d, h = g;
|
|
2131
2131
|
for (let R = l - r; R !== l; R += 1)
|
|
2132
2132
|
S(e[R][1]);
|
|
2133
2133
|
} else
|
|
2134
|
-
for (let $ =
|
|
2134
|
+
for (let $ = y; $ !== l; $ += 1)
|
|
2135
2135
|
S(e[$][1]);
|
|
2136
2136
|
}
|
|
2137
2137
|
for (; l !== n && e[l][0] === U; )
|
|
2138
2138
|
_(e[l][1]), l += 1;
|
|
2139
|
-
for (; l !== n && e[l][0] ===
|
|
2139
|
+
for (; l !== n && e[l][0] === B; )
|
|
2140
2140
|
O(e[l][1]), l += 1;
|
|
2141
2141
|
}
|
|
2142
|
-
return m && (f[b] = Dn(
|
|
2142
|
+
return m && (f[b] = Dn(d, u, g, h, t)), f.join(`
|
|
2143
2143
|
`);
|
|
2144
2144
|
}
|
|
2145
|
-
c(
|
|
2146
|
-
function
|
|
2145
|
+
c(Cs, "joinAlignedDiffsNoExpand");
|
|
2146
|
+
function Os(e, t) {
|
|
2147
2147
|
return e.map((n, r, o) => {
|
|
2148
|
-
let
|
|
2148
|
+
let s = n[1], i = r === 0 || r === o.length - 1;
|
|
2149
2149
|
switch (n[0]) {
|
|
2150
2150
|
case U:
|
|
2151
|
-
return Jn(
|
|
2152
|
-
case
|
|
2153
|
-
return Xn(
|
|
2151
|
+
return Jn(s, i, t);
|
|
2152
|
+
case B:
|
|
2153
|
+
return Xn(s, i, t);
|
|
2154
2154
|
default:
|
|
2155
|
-
return Zn(
|
|
2155
|
+
return Zn(s, i, t);
|
|
2156
2156
|
}
|
|
2157
2157
|
}).join(`
|
|
2158
2158
|
`);
|
|
2159
2159
|
}
|
|
2160
|
-
c(
|
|
2161
|
-
var Tt = /* @__PURE__ */ c((e) => e, "noColor"), vn = 5,
|
|
2162
|
-
function
|
|
2160
|
+
c(Os, "joinAlignedDiffsExpand");
|
|
2161
|
+
var Tt = /* @__PURE__ */ c((e) => e, "noColor"), vn = 5, $s = 0;
|
|
2162
|
+
function ws() {
|
|
2163
2163
|
return {
|
|
2164
2164
|
aAnnotation: "Expected",
|
|
2165
2165
|
aColor: ne.green,
|
|
@@ -2180,26 +2180,26 @@ function Ai() {
|
|
|
2180
2180
|
omitAnnotationLines: !1,
|
|
2181
2181
|
patchColor: ne.yellow,
|
|
2182
2182
|
printBasicPrototype: !1,
|
|
2183
|
-
truncateThreshold:
|
|
2183
|
+
truncateThreshold: $s,
|
|
2184
2184
|
truncateAnnotation: "... Diff result is truncated",
|
|
2185
2185
|
truncateAnnotationColor: Tt
|
|
2186
2186
|
};
|
|
2187
2187
|
}
|
|
2188
|
-
c(
|
|
2189
|
-
function
|
|
2188
|
+
c(ws, "getDefaultOptions");
|
|
2189
|
+
function As(e) {
|
|
2190
2190
|
return e && typeof e == "function" ? e : void 0;
|
|
2191
2191
|
}
|
|
2192
|
-
c(
|
|
2193
|
-
function
|
|
2192
|
+
c(As, "getCompareKeys");
|
|
2193
|
+
function Rs(e) {
|
|
2194
2194
|
return typeof e == "number" && Number.isSafeInteger(e) && e >= 0 ? e : vn;
|
|
2195
2195
|
}
|
|
2196
|
-
c(
|
|
2196
|
+
c(Rs, "getContextLines");
|
|
2197
2197
|
function he(e = {}) {
|
|
2198
2198
|
return {
|
|
2199
|
-
...
|
|
2199
|
+
...ws(),
|
|
2200
2200
|
...e,
|
|
2201
|
-
compareKeys:
|
|
2202
|
-
contextLines:
|
|
2201
|
+
compareKeys: As(e.compareKeys),
|
|
2202
|
+
contextLines: Rs(e.contextLines)
|
|
2203
2203
|
};
|
|
2204
2204
|
}
|
|
2205
2205
|
c(he, "normalizeDiffOptions");
|
|
@@ -2207,14 +2207,14 @@ function Ee(e) {
|
|
|
2207
2207
|
return e.length === 1 && e[0].length === 0;
|
|
2208
2208
|
}
|
|
2209
2209
|
c(Ee, "isEmptyString");
|
|
2210
|
-
function
|
|
2210
|
+
function Ps(e) {
|
|
2211
2211
|
let t = 0, n = 0;
|
|
2212
2212
|
return e.forEach((r) => {
|
|
2213
2213
|
switch (r[0]) {
|
|
2214
2214
|
case U:
|
|
2215
2215
|
t += 1;
|
|
2216
2216
|
break;
|
|
2217
|
-
case
|
|
2217
|
+
case B:
|
|
2218
2218
|
n += 1;
|
|
2219
2219
|
break;
|
|
2220
2220
|
}
|
|
@@ -2223,66 +2223,66 @@ function Pi(e) {
|
|
|
2223
2223
|
b: n
|
|
2224
2224
|
};
|
|
2225
2225
|
}
|
|
2226
|
-
c(
|
|
2227
|
-
function
|
|
2226
|
+
c(Ps, "countChanges");
|
|
2227
|
+
function Ns({ aAnnotation: e, aColor: t, aIndicator: n, bAnnotation: r, bColor: o, bIndicator: s, includeChangeCounts: i, omitAnnotationLines: a }, l) {
|
|
2228
2228
|
if (a)
|
|
2229
2229
|
return "";
|
|
2230
2230
|
let m = "", p = "";
|
|
2231
|
-
if (
|
|
2232
|
-
let
|
|
2233
|
-
|
|
2234
|
-
m = `${h} ${n} ${O}${
|
|
2231
|
+
if (i) {
|
|
2232
|
+
let d = String(l.a), g = String(l.b), u = r.length - e.length, h = " ".repeat(Math.max(0, u)), S = " ".repeat(Math.max(0, -u)), _ = g.length -
|
|
2233
|
+
d.length, O = " ".repeat(Math.max(0, _)), y = " ".repeat(Math.max(0, -_));
|
|
2234
|
+
m = `${h} ${n} ${O}${d}`, p = `${S} ${s} ${y}${g}`;
|
|
2235
2235
|
}
|
|
2236
|
-
let f = `${n} ${e}${m}`, b = `${
|
|
2236
|
+
let f = `${n} ${e}${m}`, b = `${s} ${r}${p}`;
|
|
2237
2237
|
return `${t(f)}
|
|
2238
2238
|
${o(b)}
|
|
2239
2239
|
|
|
2240
2240
|
`;
|
|
2241
2241
|
}
|
|
2242
|
-
c(
|
|
2243
|
-
function
|
|
2244
|
-
return
|
|
2242
|
+
c(Ns, "printAnnotation");
|
|
2243
|
+
function Pt(e, t, n) {
|
|
2244
|
+
return Ns(n, Ps(e)) + (n.expand ? Os(e, n) : Cs(e, n)) + (t ? n.truncateAnnotationColor(`
|
|
2245
2245
|
${n.truncateAnnotation}`) : "");
|
|
2246
2246
|
}
|
|
2247
|
-
c(
|
|
2247
|
+
c(Pt, "printDiffLines");
|
|
2248
2248
|
function Xe(e, t, n) {
|
|
2249
|
-
let r = he(n), [o,
|
|
2250
|
-
return
|
|
2249
|
+
let r = he(n), [o, s] = Qn(Ee(e) ? [] : e, Ee(t) ? [] : t, r);
|
|
2250
|
+
return Pt(o, s, r);
|
|
2251
2251
|
}
|
|
2252
2252
|
c(Xe, "diffLinesUnified");
|
|
2253
|
-
function
|
|
2253
|
+
function Is(e, t, n, r, o) {
|
|
2254
2254
|
if (Ee(e) && Ee(n) && (e = [], n = []), Ee(t) && Ee(r) && (t = [], r = []), e.length !== n.length || t.length !== r.length)
|
|
2255
2255
|
return Xe(e, t, o);
|
|
2256
|
-
let [
|
|
2257
|
-
return
|
|
2256
|
+
let [s, i] = Qn(n, r, o), a = 0, l = 0;
|
|
2257
|
+
return s.forEach((m) => {
|
|
2258
2258
|
switch (m[0]) {
|
|
2259
2259
|
case U:
|
|
2260
2260
|
m[1] = e[a], a += 1;
|
|
2261
2261
|
break;
|
|
2262
|
-
case
|
|
2262
|
+
case B:
|
|
2263
2263
|
m[1] = t[l], l += 1;
|
|
2264
2264
|
break;
|
|
2265
2265
|
default:
|
|
2266
2266
|
m[1] = t[l], a += 1, l += 1;
|
|
2267
2267
|
}
|
|
2268
|
-
}),
|
|
2268
|
+
}), Pt(s, i, he(o));
|
|
2269
2269
|
}
|
|
2270
|
-
c(
|
|
2270
|
+
c(Is, "diffLinesUnified2");
|
|
2271
2271
|
function Qn(e, t, n) {
|
|
2272
|
-
let r = n?.truncateThreshold ?? !1, o = Math.max(Math.floor(n?.truncateThreshold ?? 0), 0),
|
|
2273
|
-
Math.min(t.length, o) : t.length, a =
|
|
2272
|
+
let r = n?.truncateThreshold ?? !1, o = Math.max(Math.floor(n?.truncateThreshold ?? 0), 0), s = r ? Math.min(e.length, o) : e.length, i = r ?
|
|
2273
|
+
Math.min(t.length, o) : t.length, a = s !== e.length || i !== t.length, l = /* @__PURE__ */ c((d, g) => e[d] === t[g], "isCommon"), m = [],
|
|
2274
2274
|
p = 0, f = 0;
|
|
2275
|
-
for (Hn(
|
|
2275
|
+
for (Hn(s, i, l, /* @__PURE__ */ c((d, g, u) => {
|
|
2276
2276
|
for (; p !== g; p += 1)
|
|
2277
2277
|
m.push(new I(U, e[p]));
|
|
2278
2278
|
for (; f !== u; f += 1)
|
|
2279
|
-
m.push(new I(
|
|
2280
|
-
for (;
|
|
2279
|
+
m.push(new I(B, t[f]));
|
|
2280
|
+
for (; d !== 0; d -= 1, p += 1, f += 1)
|
|
2281
2281
|
m.push(new I(x, t[f]));
|
|
2282
|
-
}, "foundSubsequence")); p !==
|
|
2282
|
+
}, "foundSubsequence")); p !== s; p += 1)
|
|
2283
2283
|
m.push(new I(U, e[p]));
|
|
2284
|
-
for (; f !==
|
|
2285
|
-
m.push(new I(
|
|
2284
|
+
for (; f !== i; f += 1)
|
|
2285
|
+
m.push(new I(B, t[f]));
|
|
2286
2286
|
return [m, a];
|
|
2287
2287
|
}
|
|
2288
2288
|
c(Qn, "diffLinesRaw");
|
|
@@ -2327,27 +2327,27 @@ function jn(e) {
|
|
|
2327
2327
|
`;
|
|
2328
2328
|
}
|
|
2329
2329
|
c(jn, "getNewLineSymbol");
|
|
2330
|
-
function
|
|
2331
|
-
let r = n?.truncateThreshold ?? !1, o = Math.max(Math.floor(n?.truncateThreshold ?? 0), 0),
|
|
2330
|
+
function Ms(e, t, n) {
|
|
2331
|
+
let r = n?.truncateThreshold ?? !1, o = Math.max(Math.floor(n?.truncateThreshold ?? 0), 0), s = e.length, i = t.length;
|
|
2332
2332
|
if (r) {
|
|
2333
|
-
let
|
|
2333
|
+
let d = e.includes(`
|
|
2334
2334
|
`), g = t.includes(`
|
|
2335
|
-
`), u = jn(e), h = jn(t), S =
|
|
2335
|
+
`), u = jn(e), h = jn(t), S = d ? `${e.split(u, o).join(u)}
|
|
2336
2336
|
` : e, _ = g ? `${t.split(h, o).join(h)}
|
|
2337
2337
|
` : t;
|
|
2338
|
-
|
|
2338
|
+
s = S.length, i = _.length;
|
|
2339
2339
|
}
|
|
2340
|
-
let a =
|
|
2341
|
-
return Hn(
|
|
2342
|
-
m !== g && f.push(new I(U, e.slice(m, g))), p !== u && f.push(new I(
|
|
2340
|
+
let a = s !== e.length || i !== t.length, l = /* @__PURE__ */ c((d, g) => e[d] === t[g], "isCommon"), m = 0, p = 0, f = [];
|
|
2341
|
+
return Hn(s, i, l, /* @__PURE__ */ c((d, g, u) => {
|
|
2342
|
+
m !== g && f.push(new I(U, e.slice(m, g))), p !== u && f.push(new I(B, t.slice(p, u))), m = g + d, p = u + d, f.push(new I(x, t.slice(u,
|
|
2343
2343
|
p)));
|
|
2344
|
-
}, "foundSubsequence")), m !==
|
|
2344
|
+
}, "foundSubsequence")), m !== s && f.push(new I(U, e.slice(m))), p !== i && f.push(new I(B, t.slice(p))), [f, a];
|
|
2345
2345
|
}
|
|
2346
|
-
c(
|
|
2347
|
-
function
|
|
2346
|
+
c(Ms, "diffStrings");
|
|
2347
|
+
function Ls(e, t, n) {
|
|
2348
2348
|
return t.reduce((r, o) => r + (o[0] === x ? o[1] : o[0] === e && o[1].length !== 0 ? n(o[1]) : ""), "");
|
|
2349
2349
|
}
|
|
2350
|
-
c(
|
|
2350
|
+
c(Ls, "concatenateRelevantDiffs");
|
|
2351
2351
|
var Je = class {
|
|
2352
2352
|
static {
|
|
2353
2353
|
c(this, "ChangeBuffer");
|
|
@@ -2363,7 +2363,7 @@ var Je = class {
|
|
|
2363
2363
|
this.pushDiff(new I(this.op, t));
|
|
2364
2364
|
}
|
|
2365
2365
|
pushLine() {
|
|
2366
|
-
this.lines.push(this.line.length !== 1 ? new I(this.op,
|
|
2366
|
+
this.lines.push(this.line.length !== 1 ? new I(this.op, Ls(this.op, this.line, this.changeColor)) : this.line[0][0] === this.op ? this.line[0] :
|
|
2367
2367
|
new I(this.op, this.line[0][1])), this.line.length = 0;
|
|
2368
2368
|
}
|
|
2369
2369
|
isLineEmpty() {
|
|
@@ -2378,8 +2378,8 @@ var Je = class {
|
|
|
2378
2378
|
`)) {
|
|
2379
2379
|
let r = n.split(`
|
|
2380
2380
|
`), o = r.length - 1;
|
|
2381
|
-
r.forEach((
|
|
2382
|
-
|
|
2381
|
+
r.forEach((s, i) => {
|
|
2382
|
+
i < o ? (this.pushSubstring(s), this.pushLine()) : s.length !== 0 && this.pushSubstring(s);
|
|
2383
2383
|
});
|
|
2384
2384
|
} else
|
|
2385
2385
|
this.pushDiff(t);
|
|
@@ -2413,13 +2413,13 @@ var Je = class {
|
|
|
2413
2413
|
if (r.includes(`
|
|
2414
2414
|
`)) {
|
|
2415
2415
|
let o = r.split(`
|
|
2416
|
-
`),
|
|
2417
|
-
o.forEach((
|
|
2416
|
+
`), s = o.length - 1;
|
|
2417
|
+
o.forEach((i, a) => {
|
|
2418
2418
|
if (a === 0) {
|
|
2419
|
-
let l = new I(n,
|
|
2419
|
+
let l = new I(n, i);
|
|
2420
2420
|
this.deleteBuffer.isLineEmpty() && this.insertBuffer.isLineEmpty() ? (this.flushChangeLines(), this.pushDiffCommonLine(l)) : (this.
|
|
2421
2421
|
pushDiffChangeLines(l), this.flushChangeLines());
|
|
2422
|
-
} else a <
|
|
2422
|
+
} else a < s ? this.pushDiffCommonLine(new I(n, i)) : i.length !== 0 && this.pushDiffChangeLines(new I(n, i));
|
|
2423
2423
|
});
|
|
2424
2424
|
} else
|
|
2425
2425
|
this.pushDiffChangeLines(t);
|
|
@@ -2428,23 +2428,23 @@ var Je = class {
|
|
|
2428
2428
|
return this.flushChangeLines(), this.lines;
|
|
2429
2429
|
}
|
|
2430
2430
|
};
|
|
2431
|
-
function
|
|
2432
|
-
let n = new Je(U, t), r = new Je(
|
|
2433
|
-
return e.forEach((
|
|
2434
|
-
switch (
|
|
2431
|
+
function xs(e, t) {
|
|
2432
|
+
let n = new Je(U, t), r = new Je(B, t), o = new Ot(n, r);
|
|
2433
|
+
return e.forEach((s) => {
|
|
2434
|
+
switch (s[0]) {
|
|
2435
2435
|
case U:
|
|
2436
|
-
n.align(
|
|
2436
|
+
n.align(s);
|
|
2437
2437
|
break;
|
|
2438
|
-
case
|
|
2439
|
-
r.align(
|
|
2438
|
+
case B:
|
|
2439
|
+
r.align(s);
|
|
2440
2440
|
break;
|
|
2441
2441
|
default:
|
|
2442
|
-
o.align(
|
|
2442
|
+
o.align(s);
|
|
2443
2443
|
}
|
|
2444
2444
|
}), o.getLines();
|
|
2445
2445
|
}
|
|
2446
|
-
c(
|
|
2447
|
-
function
|
|
2446
|
+
c(xs, "getAlignedDiffs");
|
|
2447
|
+
function Ds(e, t) {
|
|
2448
2448
|
if (t) {
|
|
2449
2449
|
let n = e.length - 1;
|
|
2450
2450
|
return e.some((r, o) => r[0] === x && (o !== n || r[1] !== `
|
|
@@ -2452,27 +2452,27 @@ function Fi(e, t) {
|
|
|
2452
2452
|
}
|
|
2453
2453
|
return e.some((n) => n[0] === x);
|
|
2454
2454
|
}
|
|
2455
|
-
c(
|
|
2456
|
-
function
|
|
2455
|
+
c(Ds, "hasCommonDiff");
|
|
2456
|
+
function Fs(e, t, n) {
|
|
2457
2457
|
if (e !== t && e.length !== 0 && t.length !== 0) {
|
|
2458
2458
|
let r = e.includes(`
|
|
2459
2459
|
`) || t.includes(`
|
|
2460
|
-
`), [o,
|
|
2460
|
+
`), [o, s] = er(r ? `${e}
|
|
2461
2461
|
` : e, r ? `${t}
|
|
2462
2462
|
` : t, !0, n);
|
|
2463
|
-
if (
|
|
2464
|
-
let
|
|
2465
|
-
return
|
|
2463
|
+
if (Ds(o, r)) {
|
|
2464
|
+
let i = he(n), a = xs(o, i.changeColor);
|
|
2465
|
+
return Pt(a, s, i);
|
|
2466
2466
|
}
|
|
2467
2467
|
}
|
|
2468
2468
|
return Xe(e.split(`
|
|
2469
2469
|
`), t.split(`
|
|
2470
2470
|
`), n);
|
|
2471
2471
|
}
|
|
2472
|
-
c(
|
|
2472
|
+
c(Fs, "diffStringsUnified");
|
|
2473
2473
|
function er(e, t, n, r) {
|
|
2474
|
-
let [o,
|
|
2475
|
-
return n &&
|
|
2474
|
+
let [o, s] = Ms(e, t, r);
|
|
2475
|
+
return n && hs(o), [o, s];
|
|
2476
2476
|
}
|
|
2477
2477
|
c(er, "diffStringsRaw");
|
|
2478
2478
|
function $t(e, t) {
|
|
@@ -2480,13 +2480,13 @@ function $t(e, t) {
|
|
|
2480
2480
|
return n(e);
|
|
2481
2481
|
}
|
|
2482
2482
|
c($t, "getCommonMessage");
|
|
2483
|
-
var { AsymmetricMatcher:
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2483
|
+
var { AsymmetricMatcher: js, DOMCollection: ks, DOMElement: Bs, Immutable: zs, ReactElement: Ys, ReactTestComponent: Us } = $e, tr = [
|
|
2484
|
+
Us,
|
|
2485
|
+
Ys,
|
|
2486
|
+
Bs,
|
|
2487
|
+
ks,
|
|
2488
|
+
zs,
|
|
2489
|
+
js,
|
|
2490
2490
|
$e.Error
|
|
2491
2491
|
], wt = {
|
|
2492
2492
|
maxDepth: 20,
|
|
@@ -2496,31 +2496,31 @@ var { AsymmetricMatcher: Bi, DOMCollection: ki, DOMElement: zi, Immutable: Yi, R
|
|
|
2496
2496
|
maxDepth: 8,
|
|
2497
2497
|
plugins: tr
|
|
2498
2498
|
};
|
|
2499
|
-
function
|
|
2499
|
+
function Ws(e, t, n) {
|
|
2500
2500
|
if (Object.is(e, t))
|
|
2501
2501
|
return "";
|
|
2502
|
-
let r = Fn(e), o = r,
|
|
2502
|
+
let r = Fn(e), o = r, s = !1;
|
|
2503
2503
|
if (r === "object" && typeof e.asymmetricMatch == "function") {
|
|
2504
2504
|
if (e.$$typeof !== Symbol.for("jest.asymmetricMatcher") || typeof e.getExpectedType != "function")
|
|
2505
2505
|
return;
|
|
2506
|
-
o = e.getExpectedType(),
|
|
2506
|
+
o = e.getExpectedType(), s = o === "string";
|
|
2507
2507
|
}
|
|
2508
2508
|
if (o !== Fn(t)) {
|
|
2509
2509
|
let h = function(O) {
|
|
2510
2510
|
return O.length <= u ? O : `${O.slice(0, u)}...`;
|
|
2511
2511
|
};
|
|
2512
2512
|
c(h, "truncate");
|
|
2513
|
-
let { aAnnotation:
|
|
2513
|
+
let { aAnnotation: i, aColor: a, aIndicator: l, bAnnotation: m, bColor: p, bIndicator: f } = he(n), b = At(nr, n), d = Q(e, b), g = Q(t,
|
|
2514
2514
|
b), u = 1e5;
|
|
2515
|
-
|
|
2516
|
-
let S = `${a(`${l} ${
|
|
2517
|
-
${
|
|
2515
|
+
d = h(d), g = h(g);
|
|
2516
|
+
let S = `${a(`${l} ${i}:`)}
|
|
2517
|
+
${d}`, _ = `${p(`${f} ${m}:`)}
|
|
2518
2518
|
${g}`;
|
|
2519
2519
|
return `${S}
|
|
2520
2520
|
|
|
2521
2521
|
${_}`;
|
|
2522
2522
|
}
|
|
2523
|
-
if (!
|
|
2523
|
+
if (!s)
|
|
2524
2524
|
switch (r) {
|
|
2525
2525
|
case "string":
|
|
2526
2526
|
return Xe(e.split(`
|
|
@@ -2528,43 +2528,43 @@ ${_}`;
|
|
|
2528
2528
|
`), n);
|
|
2529
2529
|
case "boolean":
|
|
2530
2530
|
case "number":
|
|
2531
|
-
return
|
|
2531
|
+
return Vs(e, t, n);
|
|
2532
2532
|
case "map":
|
|
2533
|
-
return Ct(Bn(e), Bn(t), n);
|
|
2534
|
-
case "set":
|
|
2535
2533
|
return Ct(kn(e), kn(t), n);
|
|
2534
|
+
case "set":
|
|
2535
|
+
return Ct(Bn(e), Bn(t), n);
|
|
2536
2536
|
default:
|
|
2537
2537
|
return Ct(e, t, n);
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
2540
|
-
c(
|
|
2541
|
-
function
|
|
2540
|
+
c(Ws, "diff");
|
|
2541
|
+
function Vs(e, t, n) {
|
|
2542
2542
|
let r = Q(e, wt), o = Q(t, wt);
|
|
2543
2543
|
return r === o ? "" : Xe(r.split(`
|
|
2544
2544
|
`), o.split(`
|
|
2545
2545
|
`), n);
|
|
2546
2546
|
}
|
|
2547
|
-
c(
|
|
2548
|
-
function
|
|
2547
|
+
c(Vs, "comparePrimitive");
|
|
2548
|
+
function kn(e) {
|
|
2549
2549
|
return new Map(Array.from(e.entries()).sort());
|
|
2550
2550
|
}
|
|
2551
|
-
c(
|
|
2552
|
-
function
|
|
2551
|
+
c(kn, "sortMap");
|
|
2552
|
+
function Bn(e) {
|
|
2553
2553
|
return new Set(Array.from(e.values()).sort());
|
|
2554
2554
|
}
|
|
2555
|
-
c(
|
|
2555
|
+
c(Bn, "sortSet");
|
|
2556
2556
|
function Ct(e, t, n) {
|
|
2557
2557
|
let r, o = !1;
|
|
2558
2558
|
try {
|
|
2559
|
-
let
|
|
2560
|
-
r = zn(e, t,
|
|
2559
|
+
let i = At(wt, n);
|
|
2560
|
+
r = zn(e, t, i, n);
|
|
2561
2561
|
} catch {
|
|
2562
2562
|
o = !0;
|
|
2563
2563
|
}
|
|
2564
|
-
let
|
|
2565
|
-
if (r === void 0 || r ===
|
|
2566
|
-
let
|
|
2567
|
-
r = zn(e, t,
|
|
2564
|
+
let s = $t(Gn, n);
|
|
2565
|
+
if (r === void 0 || r === s) {
|
|
2566
|
+
let i = At(nr, n);
|
|
2567
|
+
r = zn(e, t, i, n), r !== s && !o && (r = `${$t(Ss, n)}
|
|
2568
2568
|
|
|
2569
2569
|
${r}`);
|
|
2570
2570
|
}
|
|
@@ -2585,15 +2585,15 @@ function zn(e, t, n, r) {
|
|
|
2585
2585
|
let o = {
|
|
2586
2586
|
...n,
|
|
2587
2587
|
indent: 0
|
|
2588
|
-
},
|
|
2589
|
-
if (
|
|
2588
|
+
}, s = Q(e, o), i = Q(t, o);
|
|
2589
|
+
if (s === i)
|
|
2590
2590
|
return $t(Gn, r);
|
|
2591
2591
|
{
|
|
2592
2592
|
let a = Q(e, n), l = Q(t, n);
|
|
2593
|
-
return
|
|
2593
|
+
return Is(a.split(`
|
|
2594
2594
|
`), l.split(`
|
|
2595
|
-
`), i.split(`
|
|
2596
2595
|
`), s.split(`
|
|
2596
|
+
`), i.split(`
|
|
2597
2597
|
`), r);
|
|
2598
2598
|
}
|
|
2599
2599
|
}
|
|
@@ -2614,13 +2614,13 @@ function rr(e, t, n) {
|
|
|
2614
2614
|
if (t.includes(`
|
|
2615
2615
|
`) || e.includes(`
|
|
2616
2616
|
`))
|
|
2617
|
-
return
|
|
2618
|
-
let [p] = er(t, e, !0), f = p.some((u) => u[0] === x), b =
|
|
2619
|
-
return `${
|
|
2617
|
+
return Fs(t, e, n);
|
|
2618
|
+
let [p] = er(t, e, !0), f = p.some((u) => u[0] === x), b = qs(r, o), d = b(r) + Hs(Vn(p, U, f)), g = b(o) + Gs(Vn(p, B, f));
|
|
2619
|
+
return `${d}
|
|
2620
2620
|
${g}`;
|
|
2621
2621
|
}
|
|
2622
|
-
let
|
|
2623
|
-
return
|
|
2622
|
+
let s = _t(t, { forceWritable: !0 }), i = _t(e, { forceWritable: !0 }), { replacedExpected: a, replacedActual: l } = or(i, s);
|
|
2623
|
+
return Ws(a, l, n);
|
|
2624
2624
|
}
|
|
2625
2625
|
c(rr, "printDiffOrStringify");
|
|
2626
2626
|
function or(e, t, n = /* @__PURE__ */ new WeakSet(), r = /* @__PURE__ */ new WeakSet()) {
|
|
@@ -2631,13 +2631,13 @@ function or(e, t, n = /* @__PURE__ */ new WeakSet(), r = /* @__PURE__ */ new Wea
|
|
|
2631
2631
|
replacedActual: e,
|
|
2632
2632
|
replacedExpected: t
|
|
2633
2633
|
} : (n.add(e), r.add(t), Et(t).forEach((o) => {
|
|
2634
|
-
let
|
|
2635
|
-
if (Un(
|
|
2636
|
-
|
|
2637
|
-
else if (Un(
|
|
2638
|
-
|
|
2639
|
-
else if (Wn(
|
|
2640
|
-
let a = or(
|
|
2634
|
+
let s = t[o], i = e[o];
|
|
2635
|
+
if (Un(s))
|
|
2636
|
+
s.asymmetricMatch(i) && (e[o] = s);
|
|
2637
|
+
else if (Un(i))
|
|
2638
|
+
i.asymmetricMatch(s) && (t[o] = i);
|
|
2639
|
+
else if (Wn(i, s)) {
|
|
2640
|
+
let a = or(i, s, n, r);
|
|
2641
2641
|
e[o] = a.replacedActual, t[o] = a.replacedExpected;
|
|
2642
2642
|
}
|
|
2643
2643
|
}), {
|
|
@@ -2649,40 +2649,40 @@ function or(e, t, n = /* @__PURE__ */ new WeakSet(), r = /* @__PURE__ */ new Wea
|
|
|
2649
2649
|
};
|
|
2650
2650
|
}
|
|
2651
2651
|
c(or, "replaceAsymmetricMatcher");
|
|
2652
|
-
function
|
|
2652
|
+
function qs(...e) {
|
|
2653
2653
|
let t = e.reduce((n, r) => r.length > n ? r.length : n, 0);
|
|
2654
2654
|
return (n) => `${n}: ${" ".repeat(t - n.length)}`;
|
|
2655
2655
|
}
|
|
2656
|
-
c(
|
|
2657
|
-
var
|
|
2658
|
-
function
|
|
2659
|
-
return e.replace(/\s+$/gm, (t) =>
|
|
2656
|
+
c(qs, "getLabelPrinter");
|
|
2657
|
+
var Ks = "\xB7";
|
|
2658
|
+
function sr(e) {
|
|
2659
|
+
return e.replace(/\s+$/gm, (t) => Ks.repeat(t.length));
|
|
2660
2660
|
}
|
|
2661
|
-
c(
|
|
2662
|
-
function
|
|
2663
|
-
return ne.red(
|
|
2661
|
+
c(sr, "replaceTrailingSpaces");
|
|
2662
|
+
function Gs(e) {
|
|
2663
|
+
return ne.red(sr(ge(e)));
|
|
2664
2664
|
}
|
|
2665
|
-
c(
|
|
2666
|
-
function
|
|
2667
|
-
return ne.green(
|
|
2665
|
+
c(Gs, "printReceived");
|
|
2666
|
+
function Hs(e) {
|
|
2667
|
+
return ne.green(sr(ge(e)));
|
|
2668
2668
|
}
|
|
2669
|
-
c(
|
|
2669
|
+
c(Hs, "printExpected");
|
|
2670
2670
|
function Vn(e, t, n) {
|
|
2671
2671
|
return e.reduce((r, o) => r + (o[0] === x ? o[1] : o[0] === t ? n ? ne.inverse(o[1]) : o[1] : ""), "");
|
|
2672
2672
|
}
|
|
2673
2673
|
c(Vn, "getCommonAndChangedSubstrings");
|
|
2674
2674
|
|
|
2675
2675
|
// ../node_modules/@vitest/utils/dist/error.js
|
|
2676
|
-
var
|
|
2677
|
-
function
|
|
2678
|
-
return e && (e[
|
|
2676
|
+
var Js = "@@__IMMUTABLE_RECORD__@@", Xs = "@@__IMMUTABLE_ITERABLE__@@";
|
|
2677
|
+
function Zs(e) {
|
|
2678
|
+
return e && (e[Xs] || e[Js]);
|
|
2679
2679
|
}
|
|
2680
|
-
c(
|
|
2681
|
-
var
|
|
2682
|
-
function
|
|
2680
|
+
c(Zs, "isImmutable");
|
|
2681
|
+
var vs = Object.getPrototypeOf({});
|
|
2682
|
+
function ir(e) {
|
|
2683
2683
|
return e instanceof Error ? `<unserializable>: ${e.message}` : typeof e == "string" ? `<unserializable>: ${e}` : "<unserializable>";
|
|
2684
2684
|
}
|
|
2685
|
-
c(
|
|
2685
|
+
c(ir, "getUnserializableMessage");
|
|
2686
2686
|
function _e(e, t = /* @__PURE__ */ new WeakMap()) {
|
|
2687
2687
|
if (!e || typeof e == "string")
|
|
2688
2688
|
return e;
|
|
@@ -2692,7 +2692,7 @@ function _e(e, t = /* @__PURE__ */ new WeakMap()) {
|
|
|
2692
2692
|
return e.toString();
|
|
2693
2693
|
if (typeof e != "object")
|
|
2694
2694
|
return e;
|
|
2695
|
-
if (
|
|
2695
|
+
if (Zs(e))
|
|
2696
2696
|
return _e(e.toJSON(), t);
|
|
2697
2697
|
if (e instanceof Promise || e.constructor && e.constructor.prototype === "AsyncFunction")
|
|
2698
2698
|
return "Promise";
|
|
@@ -2709,32 +2709,32 @@ function _e(e, t = /* @__PURE__ */ new WeakMap()) {
|
|
|
2709
2709
|
return t.set(e, n), e.forEach((r, o) => {
|
|
2710
2710
|
try {
|
|
2711
2711
|
n[o] = _e(r, t);
|
|
2712
|
-
} catch (
|
|
2713
|
-
n[o] =
|
|
2712
|
+
} catch (s) {
|
|
2713
|
+
n[o] = ir(s);
|
|
2714
2714
|
}
|
|
2715
2715
|
}), n;
|
|
2716
2716
|
} else {
|
|
2717
2717
|
let n = /* @__PURE__ */ Object.create(null);
|
|
2718
2718
|
t.set(e, n);
|
|
2719
2719
|
let r = e;
|
|
2720
|
-
for (; r && r !==
|
|
2720
|
+
for (; r && r !== vs; )
|
|
2721
2721
|
Object.getOwnPropertyNames(r).forEach((o) => {
|
|
2722
2722
|
if (!(o in n))
|
|
2723
2723
|
try {
|
|
2724
2724
|
n[o] = _e(e[o], t);
|
|
2725
|
-
} catch (
|
|
2726
|
-
delete n[o], n[o] =
|
|
2725
|
+
} catch (s) {
|
|
2726
|
+
delete n[o], n[o] = ir(s);
|
|
2727
2727
|
}
|
|
2728
2728
|
}), r = Object.getPrototypeOf(r);
|
|
2729
2729
|
return n;
|
|
2730
2730
|
}
|
|
2731
2731
|
}
|
|
2732
2732
|
c(_e, "serializeValue");
|
|
2733
|
-
function
|
|
2733
|
+
function Qs(e) {
|
|
2734
2734
|
return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g, "");
|
|
2735
2735
|
}
|
|
2736
|
-
c(
|
|
2737
|
-
function
|
|
2736
|
+
c(Qs, "normalizeErrorMessage");
|
|
2737
|
+
function Nt(e, t, n = /* @__PURE__ */ new WeakSet()) {
|
|
2738
2738
|
if (!e || typeof e != "object")
|
|
2739
2739
|
return { message: String(e) };
|
|
2740
2740
|
let r = e;
|
|
@@ -2744,11 +2744,11 @@ function Pt(e, t, n = /* @__PURE__ */ new WeakSet()) {
|
|
|
2744
2744
|
...r.diffOptions
|
|
2745
2745
|
})), typeof r.expected != "string" && (r.expected = ge(r.expected, 10)), typeof r.actual != "string" && (r.actual = ge(r.actual, 10));
|
|
2746
2746
|
try {
|
|
2747
|
-
typeof r.message == "string" && (r.message =
|
|
2747
|
+
typeof r.message == "string" && (r.message = Qs(r.message));
|
|
2748
2748
|
} catch {
|
|
2749
2749
|
}
|
|
2750
2750
|
try {
|
|
2751
|
-
!n.has(r) && typeof r.cause == "object" && (n.add(r), r.cause =
|
|
2751
|
+
!n.has(r) && typeof r.cause == "object" && (n.add(r), r.cause = Nt(r.cause, t, n));
|
|
2752
2752
|
} catch {
|
|
2753
2753
|
}
|
|
2754
2754
|
try {
|
|
@@ -2758,7 +2758,7 @@ function Pt(e, t, n = /* @__PURE__ */ new WeakSet()) {
|
|
|
2758
2758
|
Inner error message: ${r?.message}`));
|
|
2759
2759
|
}
|
|
2760
2760
|
}
|
|
2761
|
-
c(
|
|
2761
|
+
c(Nt, "processError");
|
|
2762
2762
|
|
|
2763
2763
|
// src/instrumenter/EVENTS.ts
|
|
2764
2764
|
var ee = {
|
|
@@ -2778,23 +2778,17 @@ var Ze = globalThis.__STORYBOOK_ADDONS_PREVIEW;
|
|
|
2778
2778
|
var cr = /* @__PURE__ */ ((o) => (o.DONE = "done", o.ERROR = "error", o.ACTIVE = "active", o.WAITING = "waiting", o))(cr || {});
|
|
2779
2779
|
|
|
2780
2780
|
// src/instrumenter/instrumenter.ts
|
|
2781
|
-
var
|
|
2782
|
-
start: !1,
|
|
2783
|
-
back: !1,
|
|
2784
|
-
goto: !1,
|
|
2785
|
-
next: !1,
|
|
2786
|
-
end: !1
|
|
2787
|
-
}, ts = new Error(
|
|
2781
|
+
var ei = new Error(
|
|
2788
2782
|
"This function ran after the play function completed. Did you forget to `await` it?"
|
|
2789
|
-
),
|
|
2790
|
-
prototype.toString.call(e) === "[object Module]", "isModule"),
|
|
2791
|
-
if (!
|
|
2783
|
+
), ur = /* @__PURE__ */ c((e) => Object.prototype.toString.call(e) === "[object Object]", "isObject"), ti = /* @__PURE__ */ c((e) => Object.
|
|
2784
|
+
prototype.toString.call(e) === "[object Module]", "isModule"), ni = /* @__PURE__ */ c((e) => {
|
|
2785
|
+
if (!ur(e) && !ti(e))
|
|
2792
2786
|
return !1;
|
|
2793
2787
|
if (e.constructor === void 0)
|
|
2794
2788
|
return !0;
|
|
2795
2789
|
let t = e.constructor.prototype;
|
|
2796
|
-
return !!
|
|
2797
|
-
}, "isInstrumentable"),
|
|
2790
|
+
return !!ur(t);
|
|
2791
|
+
}, "isInstrumentable"), ri = /* @__PURE__ */ c((e) => {
|
|
2798
2792
|
try {
|
|
2799
2793
|
return new e.constructor();
|
|
2800
2794
|
} catch {
|
|
@@ -2814,7 +2808,7 @@ prototype.toString.call(e) === "[object Module]", "isModule"), rs = /* @__PURE__
|
|
|
2814
2808
|
playUntil: void 0,
|
|
2815
2809
|
resolvers: {},
|
|
2816
2810
|
syncTimeout: void 0
|
|
2817
|
-
}), "getInitialState"),
|
|
2811
|
+
}), "getInitialState"), lr = /* @__PURE__ */ c((e, t = !1) => {
|
|
2818
2812
|
let n = (t ? e.shadowCalls : e.calls).filter((o) => o.retain);
|
|
2819
2813
|
if (!n.length)
|
|
2820
2814
|
return;
|
|
@@ -2824,8 +2818,25 @@ prototype.toString.call(e) === "[object Module]", "isModule"), rs = /* @__PURE__
|
|
|
2824
2818
|
return { cursor: n.length, calls: n, callRefsByResult: r };
|
|
2825
2819
|
}, "getRetainedState"), Mt = class {
|
|
2826
2820
|
constructor() {
|
|
2821
|
+
this.detached = !1;
|
|
2827
2822
|
this.initialized = !1;
|
|
2828
|
-
|
|
2823
|
+
// State is tracked per story to deal with multiple stories on the same canvas (i.e. docs mode)
|
|
2824
|
+
this.state = {};
|
|
2825
|
+
this.loadParentWindowState = /* @__PURE__ */ c(() => {
|
|
2826
|
+
try {
|
|
2827
|
+
this.state = H.global.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ || {};
|
|
2828
|
+
} catch {
|
|
2829
|
+
this.detached = !0;
|
|
2830
|
+
}
|
|
2831
|
+
}, "loadParentWindowState");
|
|
2832
|
+
this.updateParentWindowState = /* @__PURE__ */ c(() => {
|
|
2833
|
+
try {
|
|
2834
|
+
H.global.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ = this.state;
|
|
2835
|
+
} catch {
|
|
2836
|
+
this.detached = !0;
|
|
2837
|
+
}
|
|
2838
|
+
}, "updateParentWindowState");
|
|
2839
|
+
this.loadParentWindowState();
|
|
2829
2840
|
let t = /* @__PURE__ */ c(({
|
|
2830
2841
|
storyId: l,
|
|
2831
2842
|
isPlaying: m = !0,
|
|
@@ -2834,7 +2845,7 @@ prototype.toString.call(e) === "[object Module]", "isModule"), rs = /* @__PURE__
|
|
|
2834
2845
|
let f = this.getState(l);
|
|
2835
2846
|
this.setState(l, {
|
|
2836
2847
|
...It(),
|
|
2837
|
-
...
|
|
2848
|
+
...lr(f, p),
|
|
2838
2849
|
shadowCalls: p ? f.shadowCalls : [],
|
|
2839
2850
|
chainedCallIds: p ? f.chainedCallIds : /* @__PURE__ */ new Set(),
|
|
2840
2851
|
playUntil: p ? f.playUntil : void 0,
|
|
@@ -2844,38 +2855,38 @@ prototype.toString.call(e) === "[object Module]", "isModule"), rs = /* @__PURE__
|
|
|
2844
2855
|
}, "resetState"), n = /* @__PURE__ */ c((l) => ({ storyId: m, playUntil: p }) => {
|
|
2845
2856
|
this.getState(m).isDebugging || this.setState(m, ({ calls: b }) => ({
|
|
2846
2857
|
calls: [],
|
|
2847
|
-
shadowCalls: b.map((
|
|
2858
|
+
shadowCalls: b.map((d) => ({ ...d, status: "waiting" })),
|
|
2848
2859
|
isDebugging: !0
|
|
2849
2860
|
}));
|
|
2850
2861
|
let f = this.getLog(m);
|
|
2851
2862
|
this.setState(m, ({ shadowCalls: b }) => {
|
|
2852
2863
|
if (p || !f.length)
|
|
2853
2864
|
return { playUntil: p };
|
|
2854
|
-
let
|
|
2865
|
+
let d = b.findIndex((g) => g.id === f[0].callId);
|
|
2855
2866
|
return {
|
|
2856
|
-
playUntil: b.slice(0,
|
|
2867
|
+
playUntil: b.slice(0, d).filter((g) => g.interceptable && !g.ancestors?.length).slice(-1)[0]?.id
|
|
2857
2868
|
};
|
|
2858
|
-
}), l.emit(
|
|
2869
|
+
}), l.emit(de.FORCE_REMOUNT, { storyId: m, isDebugging: !0 });
|
|
2859
2870
|
}, "start"), r = /* @__PURE__ */ c((l) => ({ storyId: m }) => {
|
|
2860
|
-
let p = this.getLog(m).filter((b) => !b.ancestors?.length), f = p.reduceRight((b,
|
|
2871
|
+
let p = this.getLog(m).filter((b) => !b.ancestors?.length), f = p.reduceRight((b, d, g) => b >= 0 || d.status === "waiting" ? b : g, -1);
|
|
2861
2872
|
n(l)({ storyId: m, playUntil: p[f - 1]?.callId });
|
|
2862
2873
|
}, "back"), o = /* @__PURE__ */ c((l) => ({ storyId: m, callId: p }) => {
|
|
2863
|
-
let { calls: f, shadowCalls: b, resolvers:
|
|
2874
|
+
let { calls: f, shadowCalls: b, resolvers: d } = this.getState(m), g = f.find(({ id: h }) => h === p), u = b.find(({ id: h }) => h ===
|
|
2864
2875
|
p);
|
|
2865
|
-
if (!g && u && Object.values(
|
|
2876
|
+
if (!g && u && Object.values(d).length > 0) {
|
|
2866
2877
|
let h = this.getLog(m).find((S) => S.status === "waiting")?.callId;
|
|
2867
|
-
u.id !== h && this.setState(m, { playUntil: u.id }), Object.values(
|
|
2878
|
+
u.id !== h && this.setState(m, { playUntil: u.id }), Object.values(d).forEach((S) => S());
|
|
2868
2879
|
} else
|
|
2869
2880
|
n(l)({ storyId: m, playUntil: p });
|
|
2870
|
-
}, "goto"),
|
|
2881
|
+
}, "goto"), s = /* @__PURE__ */ c((l) => ({ storyId: m }) => {
|
|
2871
2882
|
let { resolvers: p } = this.getState(m);
|
|
2872
2883
|
if (Object.values(p).length > 0)
|
|
2873
2884
|
Object.values(p).forEach((f) => f());
|
|
2874
2885
|
else {
|
|
2875
2886
|
let f = this.getLog(m).find((b) => b.status === "waiting")?.callId;
|
|
2876
|
-
f ? n(l)({ storyId: m, playUntil: f }) :
|
|
2887
|
+
f ? n(l)({ storyId: m, playUntil: f }) : i({ storyId: m });
|
|
2877
2888
|
}
|
|
2878
|
-
}, "next"),
|
|
2889
|
+
}, "next"), i = /* @__PURE__ */ c(({ storyId: l }) => {
|
|
2879
2890
|
this.setState(l, { playUntil: void 0, isDebugging: !1 }), Object.values(this.getState(l).resolvers).forEach((m) => m());
|
|
2880
2891
|
}, "end"), a = /* @__PURE__ */ c(({ storyId: l, newPhase: m }) => {
|
|
2881
2892
|
let { isDebugging: p } = this.getState(l);
|
|
@@ -2890,11 +2901,11 @@ prototype.toString.call(e) === "[object Module]", "isModule"), rs = /* @__PURE__
|
|
|
2890
2901
|
});
|
|
2891
2902
|
}, "renderPhaseChanged");
|
|
2892
2903
|
Ze && Ze.ready().then(() => {
|
|
2893
|
-
this.channel = Ze.getChannel(), this.channel.on(
|
|
2894
|
-
on(
|
|
2904
|
+
this.channel = Ze.getChannel(), this.channel.on(de.FORCE_REMOUNT, t), this.channel.on(de.STORY_RENDER_PHASE_CHANGED, a), this.channel.
|
|
2905
|
+
on(de.SET_CURRENT_STORY, () => {
|
|
2895
2906
|
this.initialized ? this.cleanup() : this.initialized = !0;
|
|
2896
2907
|
}), this.channel.on(ee.START, n(this.channel)), this.channel.on(ee.BACK, r(this.channel)), this.channel.on(ee.GOTO, o(this.channel)), this.
|
|
2897
|
-
channel.on(ee.NEXT,
|
|
2908
|
+
channel.on(ee.NEXT, s(this.channel)), this.channel.on(ee.END, i);
|
|
2898
2909
|
});
|
|
2899
2910
|
}
|
|
2900
2911
|
static {
|
|
@@ -2905,79 +2916,84 @@ prototype.toString.call(e) === "[object Module]", "isModule"), rs = /* @__PURE__
|
|
|
2905
2916
|
}
|
|
2906
2917
|
setState(t, n) {
|
|
2907
2918
|
let r = this.getState(t), o = typeof n == "function" ? n(r) : n;
|
|
2908
|
-
this.state = { ...this.state, [t]: { ...r, ...o } },
|
|
2909
|
-
this.state);
|
|
2919
|
+
this.state = { ...this.state, [t]: { ...r, ...o } }, this.updateParentWindowState();
|
|
2910
2920
|
}
|
|
2911
2921
|
cleanup() {
|
|
2912
2922
|
this.state = Object.entries(this.state).reduce(
|
|
2913
|
-
(
|
|
2914
|
-
let i =
|
|
2915
|
-
return i && (
|
|
2923
|
+
(r, [o, s]) => {
|
|
2924
|
+
let i = lr(s);
|
|
2925
|
+
return i && (r[o] = Object.assign(It(), i)), r;
|
|
2916
2926
|
},
|
|
2917
2927
|
{}
|
|
2918
2928
|
);
|
|
2919
|
-
let
|
|
2920
|
-
|
|
2921
|
-
|
|
2929
|
+
let n = { controlStates: {
|
|
2930
|
+
detached: this.detached,
|
|
2931
|
+
start: !1,
|
|
2932
|
+
back: !1,
|
|
2933
|
+
goto: !1,
|
|
2934
|
+
next: !1,
|
|
2935
|
+
end: !1
|
|
2936
|
+
}, logItems: [] };
|
|
2937
|
+
this.channel?.emit(ee.SYNC, n), this.updateParentWindowState();
|
|
2922
2938
|
}
|
|
2923
2939
|
getLog(t) {
|
|
2924
2940
|
let { calls: n, shadowCalls: r } = this.getState(t), o = [...r];
|
|
2925
|
-
n.forEach((
|
|
2926
|
-
o[a] =
|
|
2941
|
+
n.forEach((i, a) => {
|
|
2942
|
+
o[a] = i;
|
|
2927
2943
|
});
|
|
2928
|
-
let
|
|
2929
|
-
return o.reduceRight((
|
|
2930
|
-
l?.__callId__ &&
|
|
2944
|
+
let s = /* @__PURE__ */ new Set();
|
|
2945
|
+
return o.reduceRight((i, a) => (a.args.forEach((l) => {
|
|
2946
|
+
l?.__callId__ && s.add(l.__callId__);
|
|
2931
2947
|
}), a.path.forEach((l) => {
|
|
2932
|
-
l.__callId__ &&
|
|
2933
|
-
}), (a.interceptable || a.exception) && !
|
|
2934
|
-
id)),
|
|
2948
|
+
l.__callId__ && s.add(l.__callId__);
|
|
2949
|
+
}), (a.interceptable || a.exception) && !s.has(a.id) && (i.unshift({ callId: a.id, status: a.status, ancestors: a.ancestors }), s.add(a.
|
|
2950
|
+
id)), i), []);
|
|
2935
2951
|
}
|
|
2936
2952
|
// Traverses the object structure to recursively patch all function properties.
|
|
2937
2953
|
// Returns the original object, or a new object with the same constructor,
|
|
2938
2954
|
// depending on whether it should mutate.
|
|
2939
2955
|
instrument(t, n, r = 0) {
|
|
2940
|
-
if (!
|
|
2956
|
+
if (!ni(t))
|
|
2941
2957
|
return t;
|
|
2942
|
-
let { mutate: o = !1, path:
|
|
2943
|
-
return r += 1,
|
|
2958
|
+
let { mutate: o = !1, path: s = [] } = n, i = n.getKeys ? n.getKeys(t, r) : Object.keys(t);
|
|
2959
|
+
return r += 1, i.reduce(
|
|
2944
2960
|
(a, l) => {
|
|
2945
|
-
let m =
|
|
2961
|
+
let m = oi(t, l);
|
|
2946
2962
|
if (typeof m?.get == "function") {
|
|
2947
2963
|
if (m.configurable) {
|
|
2948
2964
|
let f = /* @__PURE__ */ c(() => m?.get?.bind(t)?.(), "getter");
|
|
2949
2965
|
Object.defineProperty(a, l, {
|
|
2950
|
-
get: /* @__PURE__ */ c(() => this.instrument(f(), { ...n, path:
|
|
2966
|
+
get: /* @__PURE__ */ c(() => this.instrument(f(), { ...n, path: s.concat(l) }, r), "get")
|
|
2951
2967
|
});
|
|
2952
2968
|
}
|
|
2953
2969
|
return a;
|
|
2954
2970
|
}
|
|
2955
2971
|
let p = t[l];
|
|
2956
|
-
return typeof p != "function" ? (a[l] = this.instrument(p, { ...n, path:
|
|
2972
|
+
return typeof p != "function" ? (a[l] = this.instrument(p, { ...n, path: s.concat(l) }, r), a) : "__originalFn__" in p && typeof p.__originalFn__ ==
|
|
2957
2973
|
"function" ? (a[l] = p, a) : (a[l] = (...f) => this.track(l, p, t, f, n), a[l].__originalFn__ = p, Object.defineProperty(a[l], "name",
|
|
2958
2974
|
{ value: l, writable: !1 }), Object.keys(p).length > 0 && Object.assign(
|
|
2959
2975
|
a[l],
|
|
2960
|
-
this.instrument({ ...p }, { ...n, path:
|
|
2976
|
+
this.instrument({ ...p }, { ...n, path: s.concat(l) }, r)
|
|
2961
2977
|
), a);
|
|
2962
2978
|
},
|
|
2963
|
-
o ? t :
|
|
2979
|
+
o ? t : ri(t)
|
|
2964
2980
|
);
|
|
2965
2981
|
}
|
|
2966
2982
|
// Monkey patch an object method to record calls.
|
|
2967
2983
|
// Returns a function that invokes the original function, records the invocation ("call") and
|
|
2968
2984
|
// returns the original result.
|
|
2969
|
-
track(t, n, r, o,
|
|
2970
|
-
let
|
|
2971
|
-
|
|
2972
|
-
this.setState(
|
|
2973
|
-
let m = `${l.slice(-1)[0] ||
|
|
2974
|
-
p) : f, g = { id: m, cursor: a, storyId:
|
|
2975
|
-
this.intercept : this.invoke).call(this, n, r, g,
|
|
2976
|
-
return this.instrument(h, { ...
|
|
2985
|
+
track(t, n, r, o, s) {
|
|
2986
|
+
let i = o?.[0]?.__storyId__ || H.global.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId, { cursor: a, ancestors: l } = this.getState(
|
|
2987
|
+
i);
|
|
2988
|
+
this.setState(i, { cursor: a + 1 });
|
|
2989
|
+
let m = `${l.slice(-1)[0] || i} [${a}] ${t}`, { path: p = [], intercept: f = !1, retain: b = !1 } = s, d = typeof f == "function" ? f(t,
|
|
2990
|
+
p) : f, g = { id: m, cursor: a, storyId: i, ancestors: l, path: p, method: t, args: o, interceptable: d, retain: b }, h = (d && !l.length ?
|
|
2991
|
+
this.intercept : this.invoke).call(this, n, r, g, s);
|
|
2992
|
+
return this.instrument(h, { ...s, mutate: !0, path: [{ __callId__: g.id }] });
|
|
2977
2993
|
}
|
|
2978
2994
|
intercept(t, n, r, o) {
|
|
2979
|
-
let { chainedCallIds:
|
|
2980
|
-
return !
|
|
2995
|
+
let { chainedCallIds: s, isDebugging: i, playUntil: a } = this.getState(r.storyId), l = s.has(r.id);
|
|
2996
|
+
return !i || l || a ? (a === r.id && this.setState(r.storyId, { playUntil: void 0 }), this.invoke(t, n, r, o)) : new Promise((m) => {
|
|
2981
2997
|
this.setState(r.storyId, ({ resolvers: p }) => ({
|
|
2982
2998
|
isLocked: !1,
|
|
2983
2999
|
resolvers: { ...p, [r.id]: m }
|
|
@@ -2988,15 +3004,15 @@ prototype.toString.call(e) === "[object Module]", "isModule"), rs = /* @__PURE__
|
|
|
2988
3004
|
}), this.invoke(t, n, r, o)));
|
|
2989
3005
|
}
|
|
2990
3006
|
invoke(t, n, r, o) {
|
|
2991
|
-
let { callRefsByResult:
|
|
2992
|
-
if (
|
|
3007
|
+
let { callRefsByResult: s, renderPhase: i } = this.getState(r.storyId), a = 25, l = /* @__PURE__ */ c((f, b, d) => {
|
|
3008
|
+
if (d.includes(f))
|
|
2993
3009
|
return "[Circular]";
|
|
2994
|
-
if (
|
|
3010
|
+
if (d = [...d, f], b > a)
|
|
2995
3011
|
return "...";
|
|
2996
|
-
if (
|
|
2997
|
-
return
|
|
3012
|
+
if (s.has(f))
|
|
3013
|
+
return s.get(f);
|
|
2998
3014
|
if (f instanceof Array)
|
|
2999
|
-
return f.map((g) => l(g, ++b,
|
|
3015
|
+
return f.map((g) => l(g, ++b, d));
|
|
3000
3016
|
if (f instanceof Date)
|
|
3001
3017
|
return { __date__: { value: f.toISOString() } };
|
|
3002
3018
|
if (f instanceof Error) {
|
|
@@ -3007,7 +3023,7 @@ prototype.toString.call(e) === "[object Module]", "isModule"), rs = /* @__PURE__
|
|
|
3007
3023
|
let { flags: g, source: u } = f;
|
|
3008
3024
|
return { __regexp__: { flags: g, source: u } };
|
|
3009
3025
|
}
|
|
3010
|
-
if (f instanceof
|
|
3026
|
+
if (f instanceof H.global.window?.HTMLElement) {
|
|
3011
3027
|
let { prefix: g, localName: u, id: h, classList: S, innerText: _ } = f, O = Array.from(S);
|
|
3012
3028
|
return { __element__: { prefix: g, localName: u, id: h, classNames: O, innerText: _ } };
|
|
3013
3029
|
}
|
|
@@ -3015,7 +3031,7 @@ prototype.toString.call(e) === "[object Module]", "isModule"), rs = /* @__PURE__
|
|
|
3015
3031
|
__function__: { name: "getMockName" in f ? f.getMockName() : f.name }
|
|
3016
3032
|
} : typeof f == "symbol" ? { __symbol__: { description: f.description } } : typeof f == "object" && f?.constructor?.name && f?.constructor?.
|
|
3017
3033
|
name !== "Object" ? { __class__: { name: f.constructor.name } } : Object.prototype.toString.call(f) === "[object Object]" ? Object.fromEntries(
|
|
3018
|
-
Object.entries(f).map(([g, u]) => [g, l(u, ++b,
|
|
3034
|
+
Object.entries(f).map(([g, u]) => [g, l(u, ++b, d)])
|
|
3019
3035
|
) : f;
|
|
3020
3036
|
}, "serializeValues"), m = {
|
|
3021
3037
|
...r,
|
|
@@ -3028,13 +3044,13 @@ prototype.toString.call(e) === "[object Module]", "isModule"), rs = /* @__PURE__
|
|
|
3028
3044
|
});
|
|
3029
3045
|
let p = /* @__PURE__ */ c((f) => {
|
|
3030
3046
|
if (f instanceof Error) {
|
|
3031
|
-
let { name: b, message:
|
|
3047
|
+
let { name: b, message: d, stack: g, callId: u = r.id } = f, {
|
|
3032
3048
|
showDiff: h = void 0,
|
|
3033
3049
|
diff: S = void 0,
|
|
3034
3050
|
actual: _ = void 0,
|
|
3035
3051
|
expected: O = void 0
|
|
3036
|
-
} = f.name === "AssertionError" ?
|
|
3037
|
-
if (this.update({ ...m, status: "error", exception:
|
|
3052
|
+
} = f.name === "AssertionError" ? Nt(f) : f, y = { name: b, message: d, stack: g, callId: u, showDiff: h, diff: S, actual: _, expected: O };
|
|
3053
|
+
if (this.update({ ...m, status: "error", exception: y }), this.setState(r.storyId, (E) => ({
|
|
3038
3054
|
callRefsByResult: new Map([
|
|
3039
3055
|
...Array.from(E.callRefsByResult.entries()),
|
|
3040
3056
|
[f, { __callId__: r.id, retain: r.retain }]
|
|
@@ -3045,29 +3061,29 @@ prototype.toString.call(e) === "[object Module]", "isModule"), rs = /* @__PURE__
|
|
|
3045
3061
|
throw f;
|
|
3046
3062
|
}, "handleException");
|
|
3047
3063
|
try {
|
|
3048
|
-
if (
|
|
3049
|
-
throw
|
|
3050
|
-
let b = (o.getArgs ? o.getArgs(r, this.getState(r.storyId)) : r.args).map((g) => typeof g != "function" ||
|
|
3064
|
+
if (i === "played" && !r.retain)
|
|
3065
|
+
throw ei;
|
|
3066
|
+
let b = (o.getArgs ? o.getArgs(r, this.getState(r.storyId)) : r.args).map((g) => typeof g != "function" || si(g) || Object.keys(g).length ?
|
|
3051
3067
|
g : (...u) => {
|
|
3052
3068
|
let { cursor: h, ancestors: S } = this.getState(r.storyId);
|
|
3053
3069
|
this.setState(r.storyId, { cursor: 0, ancestors: [...S, r.id] });
|
|
3054
3070
|
let _ = /* @__PURE__ */ c(() => this.setState(r.storyId, { cursor: h, ancestors: S }), "restore"), O = !1;
|
|
3055
3071
|
try {
|
|
3056
|
-
let
|
|
3057
|
-
return
|
|
3072
|
+
let y = g(...u);
|
|
3073
|
+
return y instanceof Promise ? (O = !0, y.finally(_)) : y;
|
|
3058
3074
|
} finally {
|
|
3059
3075
|
O || _();
|
|
3060
3076
|
}
|
|
3061
|
-
}),
|
|
3062
|
-
return
|
|
3077
|
+
}), d = t.apply(n, b);
|
|
3078
|
+
return d && ["object", "function", "symbol"].includes(typeof d) && this.setState(r.storyId, (g) => ({
|
|
3063
3079
|
callRefsByResult: new Map([
|
|
3064
3080
|
...Array.from(g.callRefsByResult.entries()),
|
|
3065
|
-
[
|
|
3081
|
+
[d, { __callId__: r.id, retain: r.retain }]
|
|
3066
3082
|
])
|
|
3067
3083
|
})), this.update({
|
|
3068
3084
|
...m,
|
|
3069
|
-
status:
|
|
3070
|
-
}),
|
|
3085
|
+
status: d instanceof Promise ? "active" : "done"
|
|
3086
|
+
}), d instanceof Promise ? d.then((g) => (this.update({ ...m, status: "done" }), g), p) : d;
|
|
3071
3087
|
} catch (f) {
|
|
3072
3088
|
return p(f);
|
|
3073
3089
|
}
|
|
@@ -3075,11 +3091,11 @@ prototype.toString.call(e) === "[object Module]", "isModule"), rs = /* @__PURE__
|
|
|
3075
3091
|
// Sends the call info to the manager and synchronizes the log.
|
|
3076
3092
|
update(t) {
|
|
3077
3093
|
this.channel?.emit(ee.CALL, t), this.setState(t.storyId, ({ calls: n }) => {
|
|
3078
|
-
let r = n.concat(t).reduce((o,
|
|
3094
|
+
let r = n.concat(t).reduce((o, s) => Object.assign(o, { [s.id]: s }), {});
|
|
3079
3095
|
return {
|
|
3080
3096
|
// Calls are sorted to ensure parent calls always come before calls in their callback.
|
|
3081
3097
|
calls: Object.values(r).sort(
|
|
3082
|
-
(o,
|
|
3098
|
+
(o, s) => o.id.localeCompare(s.id, void 0, { numeric: !0 })
|
|
3083
3099
|
)
|
|
3084
3100
|
};
|
|
3085
3101
|
}), this.sync(t.storyId);
|
|
@@ -3088,40 +3104,48 @@ prototype.toString.call(e) === "[object Module]", "isModule"), rs = /* @__PURE__
|
|
|
3088
3104
|
// Uses a 0ms debounce because this might get called many times in one tick.
|
|
3089
3105
|
sync(t) {
|
|
3090
3106
|
let n = /* @__PURE__ */ c(() => {
|
|
3091
|
-
let { isLocked: r, isPlaying: o } = this.getState(t),
|
|
3092
|
-
status === "waiting")?.callId, a =
|
|
3093
|
-
if (r || a ||
|
|
3094
|
-
let
|
|
3095
|
-
|
|
3107
|
+
let { isLocked: r, isPlaying: o } = this.getState(t), s = this.getLog(t), i = s.filter(({ ancestors: f }) => !f.length).find((f) => f.
|
|
3108
|
+
status === "waiting")?.callId, a = s.some((f) => f.status === "active");
|
|
3109
|
+
if (this.detached || r || a || s.length === 0) {
|
|
3110
|
+
let b = { controlStates: {
|
|
3111
|
+
detached: this.detached,
|
|
3112
|
+
start: !1,
|
|
3113
|
+
back: !1,
|
|
3114
|
+
goto: !1,
|
|
3115
|
+
next: !1,
|
|
3116
|
+
end: !1
|
|
3117
|
+
}, logItems: s };
|
|
3118
|
+
this.channel?.emit(ee.SYNC, b);
|
|
3096
3119
|
return;
|
|
3097
3120
|
}
|
|
3098
|
-
let l =
|
|
3121
|
+
let l = s.some(
|
|
3099
3122
|
(f) => f.status === "done" || f.status === "error"
|
|
3100
3123
|
), p = { controlStates: {
|
|
3124
|
+
detached: this.detached,
|
|
3101
3125
|
start: l,
|
|
3102
3126
|
back: l,
|
|
3103
3127
|
goto: !0,
|
|
3104
3128
|
next: o,
|
|
3105
3129
|
end: o
|
|
3106
|
-
}, logItems:
|
|
3130
|
+
}, logItems: s, pausedAt: i };
|
|
3107
3131
|
this.channel?.emit(ee.SYNC, p);
|
|
3108
3132
|
}, "synchronize");
|
|
3109
3133
|
this.setState(t, ({ syncTimeout: r }) => (clearTimeout(r), { syncTimeout: setTimeout(n, 0) }));
|
|
3110
3134
|
}
|
|
3111
3135
|
};
|
|
3112
|
-
function
|
|
3136
|
+
function fr(e, t = {}) {
|
|
3113
3137
|
try {
|
|
3114
3138
|
let n = !1, r = !1;
|
|
3115
|
-
return
|
|
3116
|
-
=false") && (r = !0),
|
|
3117
|
-
(
|
|
3139
|
+
return H.global.window?.location?.search?.includes("instrument=true") ? n = !0 : H.global.window?.location?.search?.includes("instrument\
|
|
3140
|
+
=false") && (r = !0), H.global.window?.parent === H.global.window && !n || r ? e : (H.global.window && !H.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ &&
|
|
3141
|
+
(H.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ = new Mt()), (H.global.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).
|
|
3118
3142
|
instrument(e, t));
|
|
3119
3143
|
} catch (n) {
|
|
3120
|
-
return
|
|
3144
|
+
return ar.once.warn(n), e;
|
|
3121
3145
|
}
|
|
3122
3146
|
}
|
|
3123
|
-
c(
|
|
3124
|
-
function
|
|
3147
|
+
c(fr, "instrument");
|
|
3148
|
+
function oi(e, t) {
|
|
3125
3149
|
let n = e;
|
|
3126
3150
|
for (; n != null; ) {
|
|
3127
3151
|
let r = Object.getOwnPropertyDescriptor(n, t);
|
|
@@ -3130,11 +3154,11 @@ function is(e, t) {
|
|
|
3130
3154
|
n = Object.getPrototypeOf(n);
|
|
3131
3155
|
}
|
|
3132
3156
|
}
|
|
3133
|
-
c(
|
|
3134
|
-
function
|
|
3157
|
+
c(oi, "getPropertyDescriptor");
|
|
3158
|
+
function si(e) {
|
|
3135
3159
|
if (typeof e != "function")
|
|
3136
3160
|
return !1;
|
|
3137
3161
|
let t = Object.getOwnPropertyDescriptor(e, "prototype");
|
|
3138
3162
|
return t ? !t.writable : !1;
|
|
3139
3163
|
}
|
|
3140
|
-
c(
|
|
3164
|
+
c(si, "isClass");
|